Xenova HF staff commited on
Commit
b701cfa
·
1 Parent(s): 7a03e40

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": "bf486d01a7d9e3dbcc8400f7942835caf0eaf76e",
3
+ "_name_or_path": "hustvl/vitmatte-base-composition-1k",
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:f6978437f5068849bcbf49b1f4e37b90aaca5155744e9fde4e6c689f70c2b9ee
3
+ size 387371620
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fafacae424df98b6c849b269d8973929419765058863da5e6500290ac2f50406
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
+ "Softmax",
9
+ "Transpose",
10
+ "Reshape",
11
+ "Squeeze",
12
+ "ConstantOfShape",
13
+ "Sub",
14
+ "MatMul",
15
+ "Range",
16
+ "Shape",
17
+ "Conv",
18
+ "Einsum",
19
+ "Unsqueeze",
20
+ "Sqrt",
21
+ "Identity",
22
+ "Mul",
23
+ "Add",
24
+ "Gather",
25
+ "Erf",
26
+ "Split",
27
+ "Concat",
28
+ "Pow",
29
+ "Div",
30
+ "Mod",
31
+ "ReduceMean",
32
+ "Relu",
33
+ "Pad",
34
+ "Cast",
35
+ "Slice",
36
+ "Resize",
37
+ "Sigmoid"
38
+ ],
39
+ "weight_type": "QUInt8"
40
+ }
41
+ }
42
+ }