Image-Text-to-Text
PEFT
ONNX
Safetensors
Transformers.js
Arabic
English
roberta
feature-extraction
lora
receipt-understanding
key-information-extraction
zatca
webgpu
conversational
Instructions to use osos3lom/receiptai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use osos3lom/receiptai with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolVLM-256M-Instruct") model = PeftModel.from_pretrained(base_model, "osos3lom/receiptai") - Transformers.js
How to use osos3lom/receiptai with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-text-to-text', 'osos3lom/receiptai'); - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from osos3lom/receiptai: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/osos3lom/receiptai/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://osos3lom/receiptai/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/osos3lom/receiptai/resolve/main/preprocessor_config.json
514 Bytes
| { | |
| "do_convert_rgb": true, | |
| "do_image_splitting": true, | |
| "do_normalize": true, | |
| "do_pad": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "Idefics3ImageProcessor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "max_image_size": { | |
| "longest_edge": 512 | |
| }, | |
| "processor_class": "Idefics3Processor", | |
| "resample": 1, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "longest_edge": 2048 | |
| } | |
| } | |