Image-to-Text
Transformers
Safetensors
Polish
vision-encoder-decoder
image-text-to-text
ocr
trocr
polish
opencv
frozen-engine
modern-print-smoke
Instructions to use PiotrSty/slayer-ocr-print-engine-frozen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PiotrSty/slayer-ocr-print-engine-frozen 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="PiotrSty/slayer-ocr-print-engine-frozen")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("PiotrSty/slayer-ocr-print-engine-frozen") model = AutoModelForMultimodalLM.from_pretrained("PiotrSty/slayer-ocr-print-engine-frozen", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download runtime-versions.json from PiotrSty/slayer-ocr-print-engine-frozen: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/PiotrSty/slayer-ocr-print-engine-frozen/resolve/main/runtime-versions.json
- Command line
-
hf download hf://PiotrSty/slayer-ocr-print-engine-frozen/runtime-versions.json
-
curl -L -o runtime-versions.json https://huggingface.co/PiotrSty/slayer-ocr-print-engine-frozen/resolve/main/runtime-versions.json
488 Bytes
| { | |
| "python": "3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]", | |
| "packages": { | |
| "torch": "2.14.0", | |
| "torchvision": "0.29.0", | |
| "transformers": "4.57.6", | |
| "opencv-python-headless": "4.11.0.86", | |
| "pillow": "12.2.0", | |
| "numpy": "2.3.5", | |
| "huggingface_hub": "0.36.2", | |
| "safetensors": "0.8.0", | |
| "tokenizers": "0.22.2", | |
| "langdetect": "1.0.9", | |
| "PyMuPDF": "1.28.0", | |
| "jiwer": "4.0.0" | |
| }, | |
| "device": "cpu" | |
| } |