dots.ocr-base-fix / README.md
prithivMLmods's picture
Update README.md
200ae8f verified
|
raw
history blame
1.38 kB
metadata
license: mit

This is a copy of the model weights from the https://huggingface.co/rednote-hilab/dots.ocr model. These weights cannot be used for other purposes. If you wish to do so, please visit the original model page.

Previously, inference with the model [https://huggingface.co/rednote-hilab/dots.ocr] would fail with the following error: Error loading dots-ocr model: Received a NoneType for argument 'video_processor', but a BaseVideoProcessor was expected. in the latest Transformers versions.

This page, which includes the model weights and corrected configuration, fixed the issue and allowed Transformers inference to run smoothly.

Last updated: 4:00 AM (IST), October 25, 2025.

The latest transformers version used as of the above date is transformers==4.57.1 and the torch version 2.8.0+cu126

Quick Start with Transformers

Install the required packages

!pip install transformers torch torchvision gradio hf_xet \
             huggingface_hub pillow accelerate peft \
             matplotlib requests einops av sentencepiece\
             transformers-stream-generator

notebook login

from huggingface_hub import notebook_login, HfApi
notebook_login()

Run [app.py]