Xenova HF staff commited on
Commit
89ab7a6
1 Parent(s): f3d51b6

Upload folder using huggingface_hub

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