Adding ONNX file of this model
#3
by
MidnightPhreaker
- opened
- README.md +1 -0
- onnx/config.json +38 -0
- onnx/model.onnx +3 -0
- onnx/preprocessor_config.json +24 -0
README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
tags:
|
| 4 |
- vision
|
|
|
|
| 5 |
widget:
|
| 6 |
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/cat-dog-music.png
|
| 7 |
candidate_labels: playing music, playing sports
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
tags:
|
| 4 |
- vision
|
| 5 |
+
- onnx
|
| 6 |
widget:
|
| 7 |
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/cat-dog-music.png
|
| 8 |
candidate_labels: playing music, playing sports
|
onnx/config.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_attn_implementation_autoset": true,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"SiglipModel"
|
| 5 |
+
],
|
| 6 |
+
"initializer_factor": 1.0,
|
| 7 |
+
"model_type": "siglip",
|
| 8 |
+
"text_config": {
|
| 9 |
+
"attention_dropout": 0.0,
|
| 10 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"intermediate_size": 3072,
|
| 13 |
+
"layer_norm_eps": 1e-06,
|
| 14 |
+
"max_position_embeddings": 64,
|
| 15 |
+
"model_type": "siglip_text_model",
|
| 16 |
+
"num_attention_heads": 12,
|
| 17 |
+
"num_hidden_layers": 12,
|
| 18 |
+
"projection_size": 768,
|
| 19 |
+
"torch_dtype": "float32",
|
| 20 |
+
"vocab_size": 32000
|
| 21 |
+
},
|
| 22 |
+
"torch_dtype": "float32",
|
| 23 |
+
"transformers_version": "4.51.3",
|
| 24 |
+
"vision_config": {
|
| 25 |
+
"attention_dropout": 0.0,
|
| 26 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 27 |
+
"hidden_size": 768,
|
| 28 |
+
"image_size": 512,
|
| 29 |
+
"intermediate_size": 3072,
|
| 30 |
+
"layer_norm_eps": 1e-06,
|
| 31 |
+
"model_type": "siglip_vision_model",
|
| 32 |
+
"num_attention_heads": 12,
|
| 33 |
+
"num_channels": 3,
|
| 34 |
+
"num_hidden_layers": 12,
|
| 35 |
+
"patch_size": 16,
|
| 36 |
+
"torch_dtype": "float32"
|
| 37 |
+
}
|
| 38 |
+
}
|
onnx/model.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48ec8e10dc6cbf0c69bf4ccd56838f01edfb670e7c91dde13e9e38138a7e16a9
|
| 3 |
+
size 815723292
|
onnx/preprocessor_config.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": null,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"do_rescale": true,
|
| 5 |
+
"do_resize": true,
|
| 6 |
+
"image_mean": [
|
| 7 |
+
0.5,
|
| 8 |
+
0.5,
|
| 9 |
+
0.5
|
| 10 |
+
],
|
| 11 |
+
"image_processor_type": "SiglipImageProcessor",
|
| 12 |
+
"image_std": [
|
| 13 |
+
0.5,
|
| 14 |
+
0.5,
|
| 15 |
+
0.5
|
| 16 |
+
],
|
| 17 |
+
"processor_class": "SiglipProcessor",
|
| 18 |
+
"resample": 3,
|
| 19 |
+
"rescale_factor": 0.00392156862745098,
|
| 20 |
+
"size": {
|
| 21 |
+
"height": 512,
|
| 22 |
+
"width": 512
|
| 23 |
+
}
|
| 24 |
+
}
|