Xenova HF staff commited on
Commit
5e04250
·
1 Parent(s): 4bb010d

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": "03f5646d1ed954c462f3837123fba723dfd1b3d5",
3
+ "_name_or_path": "hustvl/vitmatte-small-composition-1k",
4
+ "architectures": [
5
+ "VitMatteForImageMatting"
6
+ ],
7
+ "backbone_config": {
8
+ "hidden_size": 384,
9
+ "image_size": 512,
10
+ "model_type": "vitdet",
11
+ "num_attention_heads": 6,
12
+ "num_channels": 4,
13
+ "out_features": [
14
+ "stage12"
15
+ ],
16
+ "out_indices": [
17
+ 12
18
+ ],
19
+ "residual_block_indices": [
20
+ 2,
21
+ 5,
22
+ 8,
23
+ 11
24
+ ],
25
+ "use_relative_position_embeddings": true,
26
+ "window_block_indices": [
27
+ 0,
28
+ 1,
29
+ 3,
30
+ 4,
31
+ 6,
32
+ 7,
33
+ 9,
34
+ 10
35
+ ],
36
+ "window_size": 14
37
+ },
38
+ "batch_norm_eps": 1e-05,
39
+ "convstream_hidden_sizes": [
40
+ 48,
41
+ 96,
42
+ 192
43
+ ],
44
+ "fusion_hidden_sizes": [
45
+ 256,
46
+ 128,
47
+ 64,
48
+ 32
49
+ ],
50
+ "hidden_size": 384,
51
+ "initializer_range": 0.02,
52
+ "model_type": "vitmatte",
53
+ "torch_dtype": "float32",
54
+ "transformers_version": null
55
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf28d2e0be2c073286e88d60ad649d7123da2749a2d99133fd1098d5887e0225
3
+ size 103885865
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8216103d998864e122333e17d7d346feb1d6558d96bf08695a9838dba4f114e0
3
+ size 27499369
preprocessor_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_pad": true,
4
+ "do_rescale": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "VitMatteImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "rescale_factor": 0.00392156862745098,
17
+ "size_divisibility": 32
18
+ }
quantize_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": true,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "model": {
6
+ "op_types": [
7
+ "ReduceMean",
8
+ "Div",
9
+ "Resize",
10
+ "Softmax",
11
+ "Sub",
12
+ "Constant",
13
+ "Relu",
14
+ "ConstantOfShape",
15
+ "Sqrt",
16
+ "Erf",
17
+ "Split",
18
+ "Range",
19
+ "Add",
20
+ "Shape",
21
+ "MatMul",
22
+ "Unsqueeze",
23
+ "Einsum",
24
+ "Reshape",
25
+ "Mul",
26
+ "Concat",
27
+ "Slice",
28
+ "Conv",
29
+ "Pad",
30
+ "Identity",
31
+ "Sigmoid",
32
+ "Gather",
33
+ "Pow",
34
+ "Mod",
35
+ "Transpose",
36
+ "Squeeze",
37
+ "Cast"
38
+ ],
39
+ "weight_type": "QUInt8"
40
+ }
41
+ }
42
+ }