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

fastdeploy部署服务后怎么修改配置参数呢 #10227

Closed
zhouyiminga opened this issue Jun 21, 2023 · 5 comments
Closed

fastdeploy部署服务后怎么修改配置参数呢 #10227

zhouyiminga opened this issue Jun 21, 2023 · 5 comments
Assignees
Labels
expneeded need extra experiment to fix issue stale status/close

Comments

@zhouyiminga
Copy link

系统环境/System Environment:docker
版本号/Version: fastdeploy:1.0.4-cpu-only-21.10

我需要配置最大只识别两行文字,看文档是有max_candidates这么个配置参数是符合我要求的。fastdeploy那块问了两次都没人解答,跑来这边也问一下··
我能通过下面的命令使用工具获取只有两个文本框的图片
python3 infer_det.py -c ch_PP-OCRv3_det_student.yml -o Global.infer_img="12.jpg" Global.pretrained_model="student" Global.use_gpu=False PostProcess.max_candidates=2
12

但是这个配置我怎么在FastDeploy服务里配置呢?我想在java上面调用,所以只能调用服务。我看着服务里的文件也没有长得像yml的东西啊
QQ图片20230622034214

@teymur-git
Copy link

@zhouyiminga 直接对服务响应结果做修改,
image

@teymur-git
Copy link

或者对fastdeploy服务模型仓库的det_postprocess内的model.py文件响应结果做限制

@zhouyiminga
Copy link
Author

或者对fastdeploy服务模型仓库的det_postprocess内的model.py文件响应结果做限制

这两种方案都是处理识别结果不够治本啊。我图片来源不稳定,我担心一些图片需要识别太久所以想设一个识别上限,就算有10行文字也只识别两行啥的。不过这个model.py我之前也翻到过,不知道能不能在这里设置参数呢,我之前搞了下没生效。
det_preprocess里的model.py
QQ图片20230628165147
det_postprocess里的model.py
QQ截图20230628171002

@shiyutang
Copy link
Collaborator

@teymur-git 我们开启了飞桨套件的ISSUE攻关活动,欢迎感兴趣的开发者参加:PaddlePaddle/PaddleOCR#10223

@shiyutang shiyutang added the expneeded need extra experiment to fix issue label Jun 29, 2023
Copy link

github-actions bot commented Jan 3, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
expneeded need extra experiment to fix issue stale status/close
Projects
None yet
Development

No branches or pull requests

4 participants