Update model card for medium
Browse files
README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: google/siglip2-base-patch16-224
|
| 3 |
+
library_name: onnxruntime
|
| 4 |
+
tags:
|
| 5 |
+
- onnx
|
| 6 |
+
- scene-atlas
|
| 7 |
+
- siglip2
|
| 8 |
+
- vision-language
|
| 9 |
+
- image-embedding
|
| 10 |
+
- text-embedding
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# medium (ONNX)
|
| 14 |
+
|
| 15 |
+
**This is an ONNX export and quantisation of [google/siglip2-base-patch16-224](https://huggingface.co/google/siglip2-base-patch16-224), not an original model.**
|
| 16 |
+
|
| 17 |
+
All credit for the original model goes to its authors. This repo exists solely to host
|
| 18 |
+
pre-exported ONNX variants for use by [Scene Atlas](https://github.com/jennis0/scene-atlas),
|
| 19 |
+
a tabletop RPG scene management tool.
|
| 20 |
+
|
| 21 |
+
## Source Model
|
| 22 |
+
|
| 23 |
+
- **Original:** [google/siglip2-base-patch16-224](https://huggingface.co/google/siglip2-base-patch16-224)
|
| 24 |
+
- **Family:** siglip2
|
| 25 |
+
- **Embedding dimension:** 768
|
| 26 |
+
- **Image size:** 224x224
|
| 27 |
+
|
| 28 |
+
## Quantisation
|
| 29 |
+
|
| 30 |
+
| Encoder | Quantisation | Size |
|
| 31 |
+
|---------|-------------|------|
|
| 32 |
+
| Vision | fp16 | 177.4 MB |
|
| 33 |
+
| Text | int8 | 290.6 MB |
|
| 34 |
+
| **Total** | | **468.0 MB** |
|
| 35 |
+
|
| 36 |
+
## Model Parameters
|
| 37 |
+
|
| 38 |
+
| Parameter | Value |
|
| 39 |
+
|-----------|-------|
|
| 40 |
+
| `model_family` | `siglip2` |
|
| 41 |
+
| `embedding_dim` | `768` |
|
| 42 |
+
| `image_size` | `224` |
|
| 43 |
+
| `image_mean` | `0.5000, 0.5000, 0.5000` |
|
| 44 |
+
| `image_std` | `0.5000, 0.5000, 0.5000` |
|
| 45 |
+
| `interpolation` | `bilinear` |
|
| 46 |
+
| `resize_mode` | `direct_resize` |
|
| 47 |
+
| `tokenizer_type` | `sentencepiece` |
|
| 48 |
+
| `tokenizer_max_length` | `64` |
|
| 49 |
+
|
| 50 |
+
## Usage
|
| 51 |
+
|
| 52 |
+
These models are intended for use with Scene Atlas. The repo contains
|
| 53 |
+
`clip_vision_encoder.onnx`, `clip_text_encoder.onnx`, `manifest.json`,
|
| 54 |
+
and a `tokenizer/` directory — all at the repo root.
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
from huggingface_hub import hf_hub_download
|
| 58 |
+
|
| 59 |
+
# Download encoder files
|
| 60 |
+
hf_hub_download(
|
| 61 |
+
repo_id="jennis0/scene-atlas-medium",
|
| 62 |
+
filename="clip_vision_encoder.onnx",
|
| 63 |
+
)
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
## License
|
| 67 |
+
|
| 68 |
+
Please refer to the [original model card](https://huggingface.co/google/siglip2-base-patch16-224) for
|
| 69 |
+
licensing information.
|