/ Модель

Характеристики

Лицензия
Своя лицензия
Базовая модель
indic-ocr
Опубликована
27 сен 2026

indic-ocr-int8-onnx

Описание изображенийИзображение → текст10 профессий

Квантизированная производная Indic-OCR для локального распознавания текста и структуры документов на английском и индийских языках.

141скачиваний за 30 дней2лайкавеса обновлены27 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

adidsh/indic-ocr-int8-onnx — созданная сообществом производная модели Indic-OCR от Bodhan AI / AI4Bharat, представленная в форматах ONNX и GGUF и предназначенная для локального распознавания и разбора документов. Она использует двухэтапный конвейер: RT-DETR находит и классифицирует области документа, затем визуально-языковая модель распознаёт текст в этих областях, сохраняя порядок чтения, переносы строк и структуру таблиц.

Модель рассчитана на автономную работу с документами на английском и 22 индийских языках, в том числе на устройствах с CPU и без серверного GPU. Квантизированные варианты уменьшают размер и ускоряют выполнение; в README приведены результаты замеров на CPU x86_64 с AVX2. Указанная в карточке лицензия — other; README называет лицензию исходной модели Indic Open Model License v1.0 и требует атрибуции Bodhan AI / AI4Bharat.

Сценарии применения

  • распознавание печатного текста на сканах документов
  • распознавание рукописного текста на индийских языках
  • извлечение текста из таблиц с сохранением структуры
  • определение порядка чтения многостолбцовых страниц
  • разбор областей документа, включая заголовки, подписи и формулы
  • автономное OCR на CPU и периферийных устройствах

Ограничения

Замеры производительности в README относятся к CPU x86_64 с AVX2 и не гарантируют такую же скорость на других устройствах. Карточка не уточняет точные показатели качества распознавания для каждого языка и формата квантизации.

Для каких профессий подходит10

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Pipeline ONNX INT8 GGUF Languages License

Indic-OCR (INT8 ONNX & GGUF)

Edge-Optimized, Quantized Document Parsing & Multilingual OCR for English and 22 Scheduled Indian Languages.

This repository provides high-performance, quantized INT8 ONNX and GGUF derivatives of Bodhan AI's Indic-OCR model. Designed specifically for low-latency, privacy-preserving, on-device document extraction, it allows offline execution on commodity CPUs, edge devices, and consumer hardware without requiring high-end server GPUs.

Mandatory Attribution: Built with Indic-OCR from Bodhan AI / AI4Bharat.


Model Provenance & Heritage

  • Derivative Author: Community Contributor (2026)
  • Direct Upstream Model: bodhan-ai/indic-ocr
  • Original Authors: IITM BODHAN-AI FOUNDATION & AI4Bharat, supported by the Ministry of Education, Govt. of India.
  • Upstream License: Indic Open Model License v1.0 (Plain language deed: LICENSE_DEED.md)
  • Base Neural Architectures:
    • Layout Engine: RT-DETR (~33M params, Apache 2.0)
    • Recognition Engine: Qwen2.5-VL / Qwen3.5 vision-language architecture (~0.8B params, Apache 2.0)

Pipeline Architecture

Indic-OCR operates as an integrated two-stage cooperative pipeline:

Document Image (Scan / Photo / PDF)
                │
                ▼
  ┌───────────────────────────┐
  │  Stage 1: IndicDocLayout  │  RT-DETR (33M params)
  │  (Layout & Reading Order) │  Outputs: Text blocks, tables, titles, figures
  └─────────────┬─────────────┘
                │
                ▼
  ┌───────────────────────────┐
  │  Stage 2: IndicBlockOCR   │  Qwen VLM (0.8B params)
  │  (Block-Level Recognition)│  Transcribes text with natural reading order
  └─────────────┬─────────────┘
                │
                ▼
  Structured Document Output (JSON / Markdown / Plain Text)
  1. Stage 1 — IndicDocLayout: Detects semantic bounding boxes and categorizes regions into 10 document classes: text, title, list, table, figure, header, footer, caption, formula, and stamp. It simultaneously establishes natural top-to-bottom, column-aware reading order.
  2. Stage 2 — IndicBlockOCR: Crops each block and performs layout-aware transcription preserving intra-block line breaks, tabular formatting, and complex Indic conjuncts (ଯୁକ୍ତାକ୍ଷର, संयुक्ताक्षर, etc.).

Quantization Benchmarks

All models were evaluated on Intel/AMD x86_64 CPU cores (single-socket, AVX2 enabled):

1. Model Storage Footprint

ComponentVariantSize (MB)FormatCompression
IndicDocLayoutUpstream FP32127.5 MBONNXBaseline (1.0x)
IndicDocLayoutINT8 Quantized107.3 MBONNX15.8% reduction
IndicDocLayoutQ8_057.1 MBGGUF55.2% reduction
IndicDocLayoutF1663.9 MBGGUF49.9% reduction
IndicBlockOCR (Vision)Upstream FP32336.0 MBONNXBaseline (1.0x)
IndicBlockOCR (Vision)INT8 Quantized93.2 MBONNX72.3% reduction
IndicBlockOCR (Full)Q8_0792.5 MBGGUF54.3% reduction
IndicBlockOCR (Full)Q5_K_M566.2 MBGGUF67.4% reduction

2. Runtime Latency (CPU)

Stage / ModuleFP32 LatencyINT8 / Quantized LatencySpeedupAccuracy Delta
IndicDocLayout (Full Page)980 ms856 ms1.14x0.0% mAP loss
Block Vision Encoder (Crop)242 ms57.9 ms4.17x< 0.1% CER delta
End-to-End Paragraph OCR1.82 s0.91 s2.00x100% Exact Match

Verified on formal Odia broadcast news document segments: Produced 100% exact character reproduction (କେଉଁଠି ପାଣିରେ ବୁଡ଼ିଲା ଘରଦ୍ୱାର ତ କେଉଁଠି ରାସ୍ତାରେ ଛୁଟୁଛି ବନ୍ୟା ଜଳ...).


Repository Contents

├── .gitattributes
├── LICENSE                    # Bodhan AI Open Model License v1.0
├── LICENSE_DEED.md            # Plain language license summary
├── NOTICE.md                  # Attribution and architectural credits
├── README.md                  # This documentation
├── ARCHITECTURE.md            # In-depth architectural specification
├── TROUBLESHOOTING.md         # Common execution tips
├── indic-ocr-banner.png       # Visual banner
├── requirements.txt           # Python dependencies
├── indic_ocr.py               # Complete Python pipeline wrapper
├── idp_*.py                   # Modular inference engine components
├── config/
│   ├── config.json            # Pipeline routing specification
│   ├── layout_config.json     # IndicDocLayout configuration
│   ├── ocr_config.json        # IndicBlockOCR configuration
│   ├── generation_config.json # Autoregressive generation parameters
│   ├── processor_config.json  # Image preprocessor parameters
│   ├── tokenizer_config.json  # Tokenizer settings
│   └── chat_template.jinja    # Jinja conversation formatting template
├── tokenizer/
│   └── tokenizer.json         # Vocabulary and merges (33.6 MB)
├── onnx/
│   ├── indic_doclayout_int8.onnx          # Layout detector (INT8, 107.3 MB)
│   ├── indic_doclayout.onnx               # Layout detector (FP32, 127.5 MB)
│   ├── indic_block_ocr_vision_int8.onnx   # Vision encoder (INT8, 93.2 MB)
│   └── indic_block_ocr_vision.onnx        # Vision encoder (FP32, 336.0 MB)
├── gguf/
│   ├── indic-ocr-q8_0.gguf                # Block OCR (Q8_0, 792.5 MB)
│   ├── indic-ocr-q5_k_m.gguf              # Block OCR (Q5_K_M, 566.2 MB)
│   ├── indic_doclayout-q8_0.gguf          # Layout detector (Q8_0, 57.1 MB)
│   └── indic_doclayout-f16.gguf           # Layout detector (F16, 63.9 MB)
└── metadata/
    ├── manifest.json          # Deployment metadata & engine signatures
    └── checksums.sha256       # Cryptographic verification hashes

Supported Languages (23 Languages)

LanguageScriptISO CodeLanguageScriptISO Code
AssameseBengali-AssameseasMarathiDevanagarimr
BengaliBengalibnNepaliDevanagarine
BodoDevanagaribrxOdiaOdiaor
DogriDevanagaridoiPunjabiGurmukhipa
EnglishLatinenSanskritDevanagarisa
GujaratiGujaratiguSantaliOl Chiki / Latinsat
HindiDevanagarihiSindhiArabic / Devanagarisd
KannadaKannadaknTamilTamilta
KashmiriPerso-ArabicksTeluguTelugute
KonkaniDevanagarikokUrduPerso-Arabicur
MaithiliDevanagarimaiMalayalamMalayalamml
ManipuriMeetei Mayek / Bengalimni

Quickstart: Python Inference

1. Installation

pip install onnxruntime opencv-python pillow numpy torchvision

2. Running ONNX INT8 Layout + Vision Pipeline

import cv2
import numpy as np
import onnxruntime as ort
from huggingface_hub import hf_hub_download

REPO_ID = "adidsh/indic-ocr-int8-onnx"

# 1. Download INT8 ONNX models
layout_model_path = hf_hub_download(repo_id=REPO_ID, filename="onnx/indic_doclayout_int8.onnx")
vision_model_path = hf_hub_download(repo_id=REPO_ID, filename="onnx/indic_block_ocr_vision_int8.onnx")

# 2. Initialize ONNX Runtime session
sess_opts = ort.SessionOptions()
sess_opts.intra_op_num_threads = 4
layout_session = ort.InferenceSession(layout_model_path, sess_opts, providers=["CPUExecutionProvider"])
vision_session = ort.InferenceSession(vision_model_path, sess_opts, providers=["CPUExecutionProvider"])

print("Indic-OCR INT8 ONNX Pipeline Initialized Successfully!")

3. Running with GGUF via llama.cpp

# Run text block generation with 8-bit quantized GGUF
./llama-cli \
  -m indic-ocr-q8_0.gguf \
  --prompt "<|image_pad|> Transcribe the document block accurately:" \
  -n 512 \
  --threads 4

Licensing & Attribution

This model is licensed under the Indic Open Model License v1.0.

Required Attribution

Any distribution, application, or derivative work utilizing this model must prominently include the notice:

"Built with Indic-OCR from Bodhan AI / AI4Bharat."

Key License Provisions

  1. Commercial & Non-Commercial Use: You are free to run, self-host, fine-tune, distill, quantize, and embed this model into your products and applications.
  2. Derivative Works Copyleft: Any derivative model distributed to third parties must carry the exact Indic Open Model License v1.0.
  3. No Multi-Tenant Hosting: Providing a multi-tenant public hosted API or SaaS endpoint directly exposing the model's inference requires prior written approval from Bodhan AI (unless covered by the Open-Release Waiver in Section 4).
  4. Acceptable Use: Strict prohibition against unlawful activities, non-consensual biometric processing, mass surveillance, and disinformation campaigns.
  5. High-Volume Threshold: Deployments exceeding 500 million monthly active users or $250 million annual revenue require a separate commercial agreement.

For full legal terms, see LICENSE and LICENSE_DEED.md.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

GGUF-веса поддерживаются только для текстовых LLM (llama.cpp).

Ревизия весов
33e4960

0 моделей