Instructions to use imperiusrex/Handwritten_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use imperiusrex/Handwritten_model 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="imperiusrex/Handwritten_model")# Load model directly from transformers import AutoTokenizer, AutoModelForImageTextToText tokenizer = AutoTokenizer.from_pretrained("imperiusrex/Handwritten_model") model = AutoModelForImageTextToText.from_pretrained("imperiusrex/Handwritten_model") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +3 -1
config.json
CHANGED
|
@@ -50,5 +50,7 @@
|
|
| 50 |
"model_type": "vision-encoder-decoder",
|
| 51 |
"tie_word_embeddings": false,
|
| 52 |
"torch_dtype": "float32",
|
| 53 |
-
"transformers_version": "4.53.3"
|
|
|
|
|
|
|
| 54 |
}
|
|
|
|
| 50 |
"model_type": "vision-encoder-decoder",
|
| 51 |
"tie_word_embeddings": false,
|
| 52 |
"torch_dtype": "float32",
|
| 53 |
+
"transformers_version": "4.53.3",
|
| 54 |
+
"library_name": "transformers",
|
| 55 |
+
"pipeline_tag": "image-to-text"
|
| 56 |
}
|