Hindi Language support not working
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 15/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 6.4k
- 派生
- 684
- 平均合并
- 20 小时 28 分钟
- 30 天内合并 PR
- 28
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mindee/doctr 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
ext: tests topic: ci type: enhancement
难度 3/5 半天 新手友好度 45/100
维护者通常 1 天内回复
-
Per-task YAML configuration for the reference training scripts可能已有人在做 @felixdittrich92 于 19 天前认领。 未关闭ext: references topic: documentation type: new feature
mindee/doctr#2149 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Release tracker - v1.2.0可能重新可做 @felixdittrich92 于 61 天前认领,目前没有进行中的 PR。 未关闭critical
维护者通常 1 天内回复
-
[table structure] Extend table structure dataset可能重新可做 @simont2k 于 82 天前认领,目前没有进行中的 PR。 未关闭topic: table comprehension
mindee/doctr#2119 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
webrecorder/warcio#209 ·
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
Jeffy123-zhu/logspecter#20 ·
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复