Xenova HF staff commited on
Commit
a86d6ea
1 Parent(s): 3946e7a

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nielsr/slimsam-50-uniform",
3
+ "architectures": [
4
+ "SamModel"
5
+ ],
6
+ "initializer_range": 0.02,
7
+ "mask_decoder_config": {
8
+ "model_type": ""
9
+ },
10
+ "model_type": "sam",
11
+ "prompt_encoder_config": {
12
+ "model_type": ""
13
+ },
14
+ "transformers_version": "4.36.2",
15
+ "vision_config": {
16
+ "hidden_size": 384,
17
+ "mlp_dim": 1536,
18
+ "model_type": ""
19
+ }
20
+ }
onnx/prompt_encoder_mask_decoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73f6e8cfd2652dba7c5df09a25331f09872d8c64ac6e101e14c44a6fd0e5233c
3
+ size 16557792
onnx/prompt_encoder_mask_decoder_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27ada922d178f07e19be8a549811ac1f93d1786b016b6758f8a3b8bfdda0e7db
3
+ size 4903640
onnx/vision_encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ffb40bdee86cbfb7ec96ecefc6f0cdeba3f1f160a8f091084cdb1cde3ac7fdd
3
+ size 96229054
onnx/vision_encoder_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84934ceb504b07a757c63f56440699c9c593933b41bea3e11c261eb27a35baab
3
+ size 30068885
preprocessor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_normalize": true,
4
+ "do_pad": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.485,
9
+ 0.456,
10
+ 0.406
11
+ ],
12
+ "image_processor_type": "SamImageProcessor",
13
+ "image_std": [
14
+ 0.229,
15
+ 0.224,
16
+ 0.225
17
+ ],
18
+ "pad_size": {
19
+ "height": 1024,
20
+ "width": 1024
21
+ },
22
+ "processor_class": "SamProcessor",
23
+ "resample": 2,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "longest_edge": 1024
27
+ }
28
+ }
quantize_config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": true,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "prompt_encoder_mask_decoder": {
6
+ "op_types": [
7
+ "Neg",
8
+ "Transpose",
9
+ "Pow",
10
+ "Gather",
11
+ "MatMul",
12
+ "Slice",
13
+ "Softmax",
14
+ "Erf",
15
+ "Cos",
16
+ "Unsqueeze",
17
+ "Sub",
18
+ "ConstantOfShape",
19
+ "Not",
20
+ "Mul",
21
+ "Sin",
22
+ "ReduceMean",
23
+ "Sqrt",
24
+ "OneHot",
25
+ "Shape",
26
+ "Expand",
27
+ "Concat",
28
+ "Equal",
29
+ "ScatterND",
30
+ "Reshape",
31
+ "Cast",
32
+ "Where",
33
+ "Relu",
34
+ "Constant",
35
+ "Div",
36
+ "Tile",
37
+ "ConvTranspose",
38
+ "Range",
39
+ "Add"
40
+ ],
41
+ "weight_type": "QInt8"
42
+ },
43
+ "vision_encoder": {
44
+ "op_types": [
45
+ "Pad",
46
+ "Squeeze",
47
+ "Transpose",
48
+ "Pow",
49
+ "Split",
50
+ "MatMul",
51
+ "Gather",
52
+ "Slice",
53
+ "Softmax",
54
+ "Erf",
55
+ "Cos",
56
+ "Unsqueeze",
57
+ "Resize",
58
+ "Sub",
59
+ "Einsum",
60
+ "ConstantOfShape",
61
+ "Mul",
62
+ "Sin",
63
+ "ReduceMean",
64
+ "Sqrt",
65
+ "Identity",
66
+ "Shape",
67
+ "Mod",
68
+ "Expand",
69
+ "Concat",
70
+ "Conv",
71
+ "Reshape",
72
+ "Cast",
73
+ "Constant",
74
+ "Div",
75
+ "Tile",
76
+ "Range",
77
+ "Add"
78
+ ],
79
+ "weight_type": "QUInt8"
80
+ }
81
+ }
82
+ }