Xenova HF staff commited on
Commit
16963a6
·
1 Parent(s): bc62536

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": "6b23d6c77892dd51f7afbdc286b7546a20bf584c",
3
+ "_name_or_path": "hustvl/vitmatte-base-distinctions-646",
4
+ "architectures": [
5
+ "VitMatteForImageMatting"
6
+ ],
7
+ "backbone_config": {
8
+ "image_size": 512,
9
+ "model_type": "vitdet",
10
+ "num_channels": 4,
11
+ "out_features": [
12
+ "stage12"
13
+ ],
14
+ "out_indices": [
15
+ 12
16
+ ],
17
+ "residual_block_indices": [
18
+ 2,
19
+ 5,
20
+ 8,
21
+ 11
22
+ ],
23
+ "use_relative_position_embeddings": true,
24
+ "window_block_indices": [
25
+ 0,
26
+ 1,
27
+ 3,
28
+ 4,
29
+ 6,
30
+ 7,
31
+ 9,
32
+ 10
33
+ ],
34
+ "window_size": 14
35
+ },
36
+ "batch_norm_eps": 1e-05,
37
+ "convstream_hidden_sizes": [
38
+ 48,
39
+ 96,
40
+ 192
41
+ ],
42
+ "fusion_hidden_sizes": [
43
+ 256,
44
+ 128,
45
+ 64,
46
+ 32
47
+ ],
48
+ "hidden_size": 768,
49
+ "initializer_range": 0.02,
50
+ "model_type": "vitmatte",
51
+ "torch_dtype": "float32",
52
+ "transformers_version": null
53
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:161f71cd6ac6b336a67e8b83bee0c3b9c039292b16b3db867035a65dbcb3df32
3
+ size 387371620
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dbf40cbdd315a7726c60fa6b010a46e09f7253cf75e6a74007ddac7d53eb4017
3
+ size 99003292
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
+ "Constant",
8
+ "Shape",
9
+ "Identity",
10
+ "Einsum",
11
+ "Transpose",
12
+ "Relu",
13
+ "Mod",
14
+ "MatMul",
15
+ "Gather",
16
+ "Split",
17
+ "Reshape",
18
+ "Range",
19
+ "Conv",
20
+ "Sqrt",
21
+ "Div",
22
+ "Pow",
23
+ "Add",
24
+ "ReduceMean",
25
+ "Slice",
26
+ "Pad",
27
+ "Sigmoid",
28
+ "Cast",
29
+ "Sub",
30
+ "Softmax",
31
+ "Squeeze",
32
+ "ConstantOfShape",
33
+ "Unsqueeze",
34
+ "Erf",
35
+ "Resize",
36
+ "Mul",
37
+ "Concat"
38
+ ],
39
+ "weight_type": "QUInt8"
40
+ }
41
+ }
42
+ }