Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

手写数学公式识别算法-CAN-使用样例代码也无法识别 #12109

Closed
charliedream1 opened this issue May 13, 2024 · 10 comments
Closed
Assignees

Comments

@charliedream1
Copy link

charliedream1 commented May 13, 2024

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

  • 系统环境/System Environment:Ubuntu 22
  • 版本号/Version:Paddle:Realease 2.7 PaddleOCR: 问题相关组件/Related components:
  • 运行指令/Command Code:
    • 使用algorithm_rec_can.md中的样例脚本跑测试
    • python3 tools/infer_rec.py -c configs/rec/rec_d28_can.yml -o Architecture.Head.attdecoder.is_train=False Global.infer_img='./doc/datasets/crohme_demo/hme_00.jpg' Global.pretrained_model=./rec_d28_can_train/best_accuracy.pdparams
  • 完整报错/Complete Error Message:
    [2024/05/13 20:09:06] ppocr INFO: load pretrain successful from /data/nvme0/mdl/mdl_zoo/ocr/rec_d28_can_train/best_accuracy
    [2024/05/13 20:09:06] ppocr INFO: infer_img: ./doc/datasets/CDLA_demo/val_0633.jpg
    [2024/05/13 20:09:07] ppocr INFO: result: []
    [2024/05/13 20:09:07] ppocr INFO: success!
输出的result为什么是空呢?
@UserWangZz
Copy link
Collaborator

image
你好,这边复现,没有发现问题,需要你再检查一下

@charliedream1
Copy link
Author

image
请问一下,可能的原因会是什么呢?还是出不来

@charliedream1
Copy link
Author

我安装的版本:
image

@UserWangZz
Copy link
Collaborator

Global.checkpoints=./rec_d28_can_train/best_accuracy
改成这样试试

@UserWangZz
Copy link
Collaborator

看你执行的命令,目前没有发现有什么问题

@charliedream1
Copy link
Author

Global.checkpoints=./rec_d28_can_train/best_accuracy 改成这样试试

改完还是没有效果

@UserWangZz
Copy link
Collaborator

尝试使用cpu推理一下看看

@charliedream1
Copy link
Author

charliedream1 commented May 15, 2024

使用cpu的传参是什么,没有找到,直接写use_gpu=False?

@UserWangZz
Copy link
Collaborator

是的

@UserWangZz
Copy link
Collaborator

你好,请问使用cpu推理后,是否可以得到正常结果呢?

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators May 25, 2024
@SWHL SWHL converted this issue into discussion #12187 May 25, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants