Image-to-Text
Transformers
Safetensors
Persian
English
nemotron_parse
feature-extraction
bina
ocr
persian
farsi
document-understanding
custom_code
Instructions to use Reza2kn/Bina-0.4-Koochik with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Reza2kn/Bina-0.4-Koochik 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="Reza2kn/Bina-0.4-Koochik", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Reza2kn/Bina-0.4-Koochik", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from Reza2kn/Bina-0.4-Koochik: direct link, hf CLI and curl.
- Browser
- Download file 593 Bytes
-
https://huggingface.co/Reza2kn/Bina-0.4-Koochik/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://Reza2kn/Bina-0.4-Koochik/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/Reza2kn/Bina-0.4-Koochik/resolve/main/preprocessor_config.json
593 Bytes
| { | |
| "feature_extractor_type": "NemotronParseImageProcessor", | |
| "image_processor_type": "NemotronParseImageProcessor", | |
| "processor_class": "NemotronParseProcessor", | |
| "size": { | |
| "height": 2048, | |
| "width": 1664, | |
| "longest_edge": [ | |
| 2048, | |
| 1664 | |
| ] | |
| }, | |
| "final_size": [ | |
| 2048, | |
| 1664 | |
| ], | |
| "do_normalize": true, | |
| "navit_packing": true, | |
| "navit_padding_mode": "top_left_white", | |
| "navit_coordinate_frame": "content_normalized", | |
| "image_mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "image_std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ] | |
| } |