Update README.md
Browse files
README.md
CHANGED
|
@@ -9,3 +9,29 @@ Previously, inference with the model [[https://huggingface.co/rednote-hilab/dots
|
|
| 9 |
**Error loading dots-ocr model: Received a NoneType for argument 'video_processor', but a BaseVideoProcessor was expected.** in the latest Transformers versions.
|
| 10 |
|
| 11 |
This page, which includes the model weights and corrected configuration, fixed the issue and allowed Transformers inference to run smoothly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
**Error loading dots-ocr model: Received a NoneType for argument 'video_processor', but a BaseVideoProcessor was expected.** in the latest Transformers versions.
|
| 10 |
|
| 11 |
This page, which includes the model weights and corrected configuration, fixed the issue and allowed Transformers inference to run smoothly.
|
| 12 |
+
|
| 13 |
+
> [!note]
|
| 14 |
+
Last updated: 4:00 AM (IST), October 25, 2025.
|
| 15 |
+
|
| 16 |
+
> [!note]
|
| 17 |
+
The latest transformers version used as of the above date is `transformers==4.57.1` and the torch version `2.8.0+cu126`
|
| 18 |
+
|
| 19 |
+
## Quick Start with Transformers
|
| 20 |
+
|
| 21 |
+
> #### Install the required packages
|
| 22 |
+
|
| 23 |
+
```py
|
| 24 |
+
!pip install transformers torch torchvision gradio hf_xet \
|
| 25 |
+
huggingface_hub pillow accelerate peft \
|
| 26 |
+
matplotlib requests einops av sentencepiece\
|
| 27 |
+
transformers-stream-generator
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
> ### notebook login
|
| 31 |
+
|
| 32 |
+
```py
|
| 33 |
+
from huggingface_hub import notebook_login, HfApi
|
| 34 |
+
notebook_login()
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
> ### Run [app.py]
|