Hindi Language support not working
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- machine-learning
Línea de trabajo
The report concerns loading a custom Hindi vocab and a locally downloaded crnn_vgg16_bn checkpoint into the ocr_predictor pipeline, so the relevant code is the recognition model construction and state-dict loading in doctr's models package. Reproduce with a Hindi sample image and check whether the predictor output is empty because of the vocab mismatch or the detection step. Done would mean Hindi text is recognized from a documented setup; no comments or linked work exist, so the maintainers' stance is unknown.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
from doctr.models import ocr_predictor, crnn_vgg16_bn, db_resnet50 from doctr.io import DocumentFile from doctr.datasets import VOCABS # Vocab copied from the indic-doctr repo vocab = 'ॲऽऐथफएऎह८॥ॉम९ुँ१ं।षघठर॓ॼड़गछिॱटऩॄऑवल५ढ़य़अञसऔयण॑क़॒ौॽशऍ॰ूीऒॊख़उज़ॻॅ३ओऌळनॠ०ेढङ४़ॢग़पऊॐज२डैभझकआदबऋखॾ॔ोइ्धतफ़ईृःा६चऱऴ७-' reco_model = crnn_vgg16_bn(pretrained=False, pretrained_backbone=False, vocab=vocab) # Download: https://github.com/iitb-research-code/indic-doctr/releases/download/model2/crnn_vgg16_bn_hindi.pt local_model_path = "crnn_vgg16_bn_hindi.pt" reco_params = torch.load(local_model_path, map_location="cpu") reco_model.load_state_dict(reco_params) predictor = ocr_predictor(det_arch='db_resnet50',reco_arch=reco_model, pretrained=True) single_img_doc = DocumentFile.from_images("0022-0024_3_5_2.jpg") result = predictor(single_img_doc) print(result.pages[0].export()) # print the result of the first page as a list of #dicts``` I got an empty array with no output for a Hindi image. How to fix? Please help.
Originally posted by @manit2004 in #1617
- Lenguaje dominante
- Python
- Estrellas
- 6.4k
- Forks
- 684
- Merge medio
- 20 h 40 min
- PR fusionados (30 d)
- 30
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mindee/doctr
-
ext: tests topic: ci type: enhancement
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
mindee/doctr#2171 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Per-task YAML configuration for the reference training scriptsPosiblemente ocupada @felixdittrich92 la tomó hace 20 días. Abiertoext: references topic: documentation type: new feature
mindee/doctr#2149 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Release tracker - v1.2.0Quizá libre de nuevo @felixdittrich92 la tomó hace 62 días y no hay ningún pull request abierto. Abiertocritical
mindee/doctr#2126 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[table structure] Extend table structure datasetQuizá libre de nuevo @simont2k la tomó hace 83 días y no hay ningún pull request abierto. Abiertotopic: table comprehension
mindee/doctr#2119 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
type: enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
Los mantenedores suelen responder en 1 día
Todos los issues de mindee/doctr
Issues similares
-
good first issue tools
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Commits pushed after #1095 merged did not land (ahmi/unified-nova-mcp-review-e095 @ 80fa23a)Abiertobug deferred domain:ci P1
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
get_page_thumbnail modifies cached page images, affecting later thumbnails and picture exportsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
docling-project/docling-mcp#147 ·
-
issue: A pipe model's Valves button ignores the Allow Chat Valves permissionPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug confirmed issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
open-webui/open-webui#32771 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Scheduled Security Scan is failing on mainPosiblemente ocupada @pkupt la tomó hoy. Abiertosecurity-scan-failure
Dificultad 1/5 1-3 horas Aptitud para principiantes 74/100
semantica-agi/semantica#2045 ·
Los mantenedores suelen responder en 2 días