Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法使用已有的模块 #331

Open
12dc32d opened this issue Jun 24, 2024 · 0 comments
Open

无法使用已有的模块 #331

12dc32d opened this issue Jun 24, 2024 · 0 comments

Comments

@12dc32d
Copy link

12dc32d commented Jun 24, 2024

报错:from cnocr.trainer import OcrTrainer里的OcrTrainer
Cannot find reference 'OcrTrainer' in 'trainer.py'

但是我在查询模块的时候,是具备这个trainer的:
(.venv) PS D:\Python_model\vcodeocr> dir D:\Python_model\vcodeocr.venv\Lib\site-packages\cnocr

目录: D:\Python_model\vcodeocr\.venv\Lib\site-packages\cnocr

Mode LastWriteTime Length Name


d----- 2024/6/24 17:19 classification
d----- 2024/6/24 17:19 data_utils
d----- 2024/6/24 17:19 models
d----- 2024/6/24 17:19 ppocr
d----- 2024/6/24 17:19 pycache
-a---- 2024/6/24 17:19 7024 app.py
-a---- 2024/6/24 17:19 8314 clf_cli.py
-a---- 2024/6/24 17:19 20393 cli.py
-a---- 2024/6/24 17:19 17853 cn_ocr.py
-a---- 2024/6/24 17:19 13733 consts.py
-a---- 2024/6/24 17:19 6380 dataset.py
-a---- 2024/6/24 17:19 3931 dataset_utils.py
-a---- 2024/6/24 17:19 8873 gradio_app.py
-a---- 2024/6/24 17:19 9676 gradio_app2.py
-a---- 2024/6/24 17:19 26570 label_cn.txt
-a---- 2024/6/24 17:19 19 label_number.txt
-a---- 2024/6/24 17:19 4596 line_split.py
-a---- 2024/6/24 17:19 7573 lr_scheduler.py
-a---- 2024/6/24 17:19 17227 recognizer.py
-a---- 2024/6/24 17:19 1797 serve.py
-a---- 2024/6/24 17:19 13168 trainer.py
-a---- 2024/6/24 17:19 14898 utils.py
-a---- 2024/6/24 17:19 1276 init.py
-a---- 2024/6/24 17:19 898 version.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant