Demonstration for NVIDIA's Nemotron-Parse-v1.1 model, designed for advanced document parsing and OCR. Upload images of documents (e.g., papers, forms) to extract structured content: text, tables (LaTeX), figures, and titles. Outputs annotated images with colored bounding boxes and processed markdown/LaTeX text for easy integration.
7
stars
6
commits
Python
primary language
Dec 24, 2025
updated
A Gradio-based demonstration for NVIDIA's Nemotron-Parse-v1.1 model, designed for advanced document parsing and OCR. Upload images of documents (e.g., papers, forms) to extract structured content: text, tables (LaTeX), figures, and titles. Outputs annotated images with colored bounding boxes and processed markdown/LaTeX text for easy integration.
Clone the repository:
git clone https://github.com/PRITHIVSAKTHIUR/NVIDIA-Nemotron-Parse-OCR.git
cd NVIDIA-Nemotron-Parse-OCR
Install dependencies:
Create a requirements.txt file with the following content, then run:
pip install -r requirements.txt
requirements.txt content:
git+https://github.com/huggingface/transformers.git@v4.57.3
opencv_python_headless==4.9.0.80
opencv_python==4.8.0.74
huggingface_hub
open-clip-torch
beautifulsoup4
albumentations
sentencepiece
numpy==1.26.4
torchmetrics
torchvision
mdtex2html
html2text
spaces
einops
gradio
pillow
torch
timm
Start the application:
python app.py
The demo launches at http://localhost:7860 (or a public URL with share=True).
Upload Image: Select a document scan (supports upload/clipboard; height up to 400px preview).
Process Document: Click "Process Document" to run inference.
Output:
| Example File | Description |
|---|---|
| examples/1.jpg | Research paper with tables/figures |
| examples/2.jpg | Form with structured text |
| examples/3.jpg | Invoice layout |
| examples/4.jpg | Multi-column document |
| examples/5.jpg | Diagram-heavy page |
torch.cuda.empty_cache().max_size in demo.queue(); 60s cache default.mcp_server=True for Spaces.Contributions encouraged! Fork the repo, add examples or enhance postprocessing (e.g., custom formats), and submit PRs with tests. Focus areas:
Repository: https://github.com/PRITHIVSAKTHIUR/NVIDIA-Nemotron-Parse-OCR.git
Apache License 2.0. See LICENSE for details.
Built by Prithiv Sakthi. Report issues via the repository.
6 commits
Python
100.0%
Demonstration for NVIDIA's Nemotron-Parse-v1.1 model, designed for advanced document parsing and OCR. Upload images of documents (e.g., papers, forms) to extract structured content: text, tables (LaTeX), figures, and titles. Outputs annotated images with colored bounding boxes and processed markdown/LaTeX text for easy integration.
7
stars
6
commits
Python
primary language
Dec 24, 2025
updated
A Gradio-based demonstration for NVIDIA's Nemotron-Parse-v1.1 model, designed for advanced document parsing and OCR. Upload images of documents (e.g., papers, forms) to extract structured content: text, tables (LaTeX), figures, and titles. Outputs annotated images with colored bounding boxes and processed markdown/LaTeX text for easy integration.
Clone the repository:
git clone https://github.com/PRITHIVSAKTHIUR/NVIDIA-Nemotron-Parse-OCR.git
cd NVIDIA-Nemotron-Parse-OCR
Install dependencies:
Create a requirements.txt file with the following content, then run:
pip install -r requirements.txt
requirements.txt content:
git+https://github.com/huggingface/transformers.git@v4.57.3
opencv_python_headless==4.9.0.80
opencv_python==4.8.0.74
huggingface_hub
open-clip-torch
beautifulsoup4
albumentations
sentencepiece
numpy==1.26.4
torchmetrics
torchvision
mdtex2html
html2text
spaces
einops
gradio
pillow
torch
timm
Start the application:
python app.py
The demo launches at http://localhost:7860 (or a public URL with share=True).
Upload Image: Select a document scan (supports upload/clipboard; height up to 400px preview).
Process Document: Click "Process Document" to run inference.
Output:
| Example File | Description |
|---|---|
| examples/1.jpg | Research paper with tables/figures |
| examples/2.jpg | Form with structured text |
| examples/3.jpg | Invoice layout |
| examples/4.jpg | Multi-column document |
| examples/5.jpg | Diagram-heavy page |
torch.cuda.empty_cache().max_size in demo.queue(); 60s cache default.mcp_server=True for Spaces.Contributions encouraged! Fork the repo, add examples or enhance postprocessing (e.g., custom formats), and submit PRs with tests. Focus areas:
Repository: https://github.com/PRITHIVSAKTHIUR/NVIDIA-Nemotron-Parse-OCR.git
Apache License 2.0. See LICENSE for details.
Built by Prithiv Sakthi. Report issues via the repository.
6 commits
Python
100.0%