Instructions to use RISys-Lab/ReasonSigLIP-So14-384-S2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RISys-Lab/ReasonSigLIP-So14-384-S2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="RISys-Lab/ReasonSigLIP-So14-384-S2") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("RISys-Lab/ReasonSigLIP-So14-384-S2") model = AutoModelForZeroShotImageClassification.from_pretrained("RISys-Lab/ReasonSigLIP-So14-384-S2") - Notebooks
- Google Colab
- Kaggle
Upload processor
Browse files- processor_config.json +26 -0
- tokenizer_config.json +36 -34
processor_config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"image_processor": {
|
| 3 |
+
"data_format": "channels_first",
|
| 4 |
+
"do_normalize": true,
|
| 5 |
+
"do_rescale": true,
|
| 6 |
+
"do_resize": true,
|
| 7 |
+
"image_mean": [
|
| 8 |
+
0.5,
|
| 9 |
+
0.5,
|
| 10 |
+
0.5
|
| 11 |
+
],
|
| 12 |
+
"image_processor_type": "SiglipImageProcessorFast",
|
| 13 |
+
"image_std": [
|
| 14 |
+
0.5,
|
| 15 |
+
0.5,
|
| 16 |
+
0.5
|
| 17 |
+
],
|
| 18 |
+
"resample": 3,
|
| 19 |
+
"rescale_factor": 0.00392156862745098,
|
| 20 |
+
"size": {
|
| 21 |
+
"height": 384,
|
| 22 |
+
"width": 384
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
"processor_class": "SiglipProcessor"
|
| 26 |
+
}
|
tokenizer_config.json
CHANGED
|
@@ -1,34 +1,36 @@
|
|
| 1 |
-
{
|
| 2 |
-
"added_tokens_decoder": {
|
| 3 |
-
"1": {
|
| 4 |
-
"content": "</s>",
|
| 5 |
-
"lstrip": true,
|
| 6 |
-
"normalized": false,
|
| 7 |
-
"rstrip": true,
|
| 8 |
-
"single_word": false,
|
| 9 |
-
"special": true
|
| 10 |
-
},
|
| 11 |
-
"2": {
|
| 12 |
-
"content": "<unk>",
|
| 13 |
-
"lstrip": true,
|
| 14 |
-
"normalized": false,
|
| 15 |
-
"rstrip": true,
|
| 16 |
-
"single_word": false,
|
| 17 |
-
"special": true
|
| 18 |
-
}
|
| 19 |
-
},
|
| 20 |
-
"additional_special_tokens":
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
-
"
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
"
|
| 31 |
-
"
|
| 32 |
-
"
|
| 33 |
-
"
|
| 34 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"1": {
|
| 4 |
+
"content": "</s>",
|
| 5 |
+
"lstrip": true,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": true,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"2": {
|
| 12 |
+
"content": "<unk>",
|
| 13 |
+
"lstrip": true,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": true,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"additional_special_tokens": null,
|
| 21 |
+
"backend": "sentencepiece",
|
| 22 |
+
"clean_up_tokenization_spaces": true,
|
| 23 |
+
"do_lower_case": true,
|
| 24 |
+
"eos_token": "</s>",
|
| 25 |
+
"extra_special_tokens": [],
|
| 26 |
+
"is_local": false,
|
| 27 |
+
"model_input_names": [
|
| 28 |
+
"input_ids"
|
| 29 |
+
],
|
| 30 |
+
"model_max_length": 64,
|
| 31 |
+
"pad_token": "</s>",
|
| 32 |
+
"processor_class": "SiglipProcessor",
|
| 33 |
+
"sp_model_kwargs": {},
|
| 34 |
+
"tokenizer_class": "SiglipTokenizer",
|
| 35 |
+
"unk_token": "<unk>"
|
| 36 |
+
}
|