Hindi Language support not working
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 15/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- machine-learning
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 6.4k
- Fork
- 684
- Merge trung bình
- 20 giờ 28 phút
- Pull request đã merge (30 ngày)
- 28
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mindee/doctr
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ext: tests topic: ci type: enhancement
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
mindee/doctr#2171 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Per-task YAML configuration for the reference training scriptsCó thể đã có người làm @felixdittrich92 đã nhận 19 ngày trước. Đang mởext: references topic: documentation type: new feature
mindee/doctr#2149 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Release tracker - v1.2.0Có thể làm lại được @felixdittrich92 đã nhận 61 ngày trước và không có pull request nào đang mở. Đang mởcritical
mindee/doctr#2126 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[table structure] Extend table structure datasetCó thể làm lại được @simont2k đã nhận 82 ngày trước và không có pull request nào đang mở. Đang mởtopic: table comprehension
mindee/doctr#2119 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
documentation good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
drevendev/HungryCrab#273 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
drevendev/BeautifulRepo#19 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Moonshot: Kimi K3 always sends `reasoning_effort="max"`, though the API now accepts `low` and `high`Đang mởaccepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
UKGovernmentBEIS/inspect_ai#5939 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug linux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Fill paper for Screen2WordsĐang mởarea:data data-quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
reacher-z/Awesome-CUA#1468 ·
Maintainer thường phản hồi trong vòng 1 ngày