<!-- # hard line break macro for HTML -->

<a id="model-zoo-unlimited-ocr-torch"></a>

# unlimited-ocr-torch

Unlimited-OCR document parser that reads a page into layout elements (titles, paragraphs, tables, figures) with recognized text, including long and multi-column documents.

**Details**

- Model name: `unlimited-ocr-torch`
- Model source: [https://huggingface.co/baidu/Unlimited-OCR](https://huggingface.co/baidu/Unlimited-OCR)
- Model author: Baidu
- Model license: MIT
- Model size: 6.21 GB
- Exposes embeddings? no
- Tags: `ocr, detection, torch, transformer, vlm`

**Requirements**

- Packages: `torch, torchvision, transformers>=4.49,<5, easydict, einops, addict`
- CPU support
  - yes
- GPU support
  - yes

**Example usage**

```python
import fiftyone as fo
import fiftyone.zoo as foz

dataset = foz.load_zoo_dataset(
    "coco-2017",
    split="validation",
    dataset_name=fo.get_default_dataset_name(),
    max_samples=50,
    shuffle=True,
)

model = foz.load_zoo_model("unlimited-ocr-torch")

dataset.apply_model(model, label_field="predictions")

session = fo.launch_app(dataset)
```
