Instructions to use brainventures/deplot_kr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use brainventures/deplot_kr 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="brainventures/deplot_kr")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("brainventures/deplot_kr") model = AutoModelForMultimodalLM.from_pretrained("brainventures/deplot_kr") - Notebooks
- Google Colab
- Kaggle
dltjwl commited on
Commit ·
fe44f2b
1
Parent(s): 1443bd9
Add : preprocessor_config.json
Browse files- preprocessor_config.json +12 -0
preprocessor_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_convert_rgb": true,
|
| 3 |
+
"do_normalize": true,
|
| 4 |
+
"image_processor_type": "Pix2StructImageProcessor",
|
| 5 |
+
"is_vqa": false,
|
| 6 |
+
"max_patches": 2048,
|
| 7 |
+
"patch_size": {
|
| 8 |
+
"height": 16,
|
| 9 |
+
"width": 16
|
| 10 |
+
},
|
| 11 |
+
"processor_class": "Pix2StructProcessor"
|
| 12 |
+
}
|