Upload folder using huggingface_hub
Browse files- config.json +20 -0
- onnx/prompt_encoder_mask_decoder.onnx +3 -0
- onnx/prompt_encoder_mask_decoder_quantized.onnx +3 -0
- onnx/vision_encoder.onnx +3 -0
- onnx/vision_encoder_quantized.onnx +3 -0
- preprocessor_config.json +28 -0
- quantize_config.json +82 -0
config.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "nielsr/slimsam-77-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": 168,
|
17 |
+
"mlp_dim": 696,
|
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:9f8433273a6750b587779baa0cf5508111001bf7e7acfcf585d370139fd366d0
|
3 |
+
size 23276014
|
onnx/vision_encoder_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cce23c7b2e5d4f330932738fb67ba518e04b0d99ccdd1cccd22a7da4e01f2971
|
3 |
+
size 8882165
|
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 |
+
"Slice",
|
8 |
+
"Pow",
|
9 |
+
"Neg",
|
10 |
+
"OneHot",
|
11 |
+
"ConstantOfShape",
|
12 |
+
"Relu",
|
13 |
+
"Cast",
|
14 |
+
"Expand",
|
15 |
+
"ConvTranspose",
|
16 |
+
"Add",
|
17 |
+
"Div",
|
18 |
+
"ScatterND",
|
19 |
+
"Range",
|
20 |
+
"Tile",
|
21 |
+
"Concat",
|
22 |
+
"Not",
|
23 |
+
"Constant",
|
24 |
+
"Cos",
|
25 |
+
"ReduceMean",
|
26 |
+
"Sin",
|
27 |
+
"Transpose",
|
28 |
+
"Sub",
|
29 |
+
"Reshape",
|
30 |
+
"Erf",
|
31 |
+
"Sqrt",
|
32 |
+
"MatMul",
|
33 |
+
"Shape",
|
34 |
+
"Unsqueeze",
|
35 |
+
"Equal",
|
36 |
+
"Gather",
|
37 |
+
"Mul",
|
38 |
+
"Where",
|
39 |
+
"Softmax"
|
40 |
+
],
|
41 |
+
"weight_type": "QInt8"
|
42 |
+
},
|
43 |
+
"vision_encoder": {
|
44 |
+
"op_types": [
|
45 |
+
"Slice",
|
46 |
+
"Pow",
|
47 |
+
"Mod",
|
48 |
+
"Einsum",
|
49 |
+
"ConstantOfShape",
|
50 |
+
"Resize",
|
51 |
+
"Cast",
|
52 |
+
"Expand",
|
53 |
+
"Add",
|
54 |
+
"Div",
|
55 |
+
"Range",
|
56 |
+
"Tile",
|
57 |
+
"Concat",
|
58 |
+
"Constant",
|
59 |
+
"Cos",
|
60 |
+
"ReduceMean",
|
61 |
+
"Transpose",
|
62 |
+
"Sin",
|
63 |
+
"Conv",
|
64 |
+
"Sub",
|
65 |
+
"Reshape",
|
66 |
+
"Erf",
|
67 |
+
"Squeeze",
|
68 |
+
"Sqrt",
|
69 |
+
"Split",
|
70 |
+
"MatMul",
|
71 |
+
"Shape",
|
72 |
+
"Unsqueeze",
|
73 |
+
"Gather",
|
74 |
+
"Identity",
|
75 |
+
"Mul",
|
76 |
+
"Pad",
|
77 |
+
"Softmax"
|
78 |
+
],
|
79 |
+
"weight_type": "QUInt8"
|
80 |
+
}
|
81 |
+
}
|
82 |
+
}
|