Instructions to use shadowlilac/visor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shadowlilac/visor with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="shadowlilac/visor")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("shadowlilac/visor") model = AutoModelForMultimodalLM.from_pretrained("shadowlilac/visor", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
d71f7ea
1
Parent(s): bf0a6a0
Update preprocessor_config.json
Browse files- preprocessor_config.json +2 -2
preprocessor_config.json
CHANGED
|
@@ -19,8 +19,8 @@
|
|
| 19 |
"resample": 3,
|
| 20 |
"rescale_factor": 0.00392156862745098,
|
| 21 |
"size": {
|
| 22 |
-
"height":
|
| 23 |
-
"width":
|
| 24 |
},
|
| 25 |
"size_divisor": 32
|
| 26 |
}
|
|
|
|
| 19 |
"resample": 3,
|
| 20 |
"rescale_factor": 0.00392156862745098,
|
| 21 |
"size": {
|
| 22 |
+
"height": 768,
|
| 23 |
+
"width": 768
|
| 24 |
},
|
| 25 |
"size_divisor": 32
|
| 26 |
}
|