-
Notifications
You must be signed in to change notification settings - Fork 971
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
paddleX推理产线缺少inference.yml #2736
Comments
##并且我确认我的方法1里面转移过来的docker中的officia目录已经包含模型: ##但是执行官方的产线启动命令仍然报错: During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
没太明白的你的意思,看你补充的信息,更像是网络的问题,在您补充的信息里,我注意到了URL的链接是https://paddle-model-ecology.bj.bcebos.com/paddlex/official_inference_model/paddle3.0b2/PP-OCRv4_mobile_rec_infer.tar |
我发现了,我的远程win下载下来没有yml,本地下载有yml,太神奇了。先谢谢您! |
远程的win是怎么下载的呢?这个按理来说不应该 |
Checklist:
描述问题
我的服务器无法联公网,我尝试使用paddleX的docker+指定生产线文件+外挂模型,但是报错:
FileNotFoundError: [Errno 2] No such file or directory: '/root/PaddleX/paddlex/paddle_model_yaml/PP-OCRv4_mobile_rec/inference.yml'
我尝试了如下:
1.在能连接公网的服务器上,进入PaddleX的docker执行paddlex --pipeline OCR --input paddle/docker/1.png --device gpu:0 --save_path /paddle,看到了下载完成rec\det模型的信息,然后将docker保存打包,迁移到无网服务器上,仍然提示无法连接网络下载模型
2.更改产线配置文件,产生了FileNotFoundError]): [Errno 2] No such file or directory: '/root/PaddleX/paddlex/paddle_model_yaml/PP-OCRv4_mobile_rec/inference.yml'
已经尝试了尝试了#2619中的下载方式,其中v4的server和mobile仍然没有yml文件
使用的产线配置yml如下:
Global:
pipeline_name: OCR
input: paddle/docker/1.png
Pipeline:
text_det_model: /root/PaddleX/paddlex/paddle_model_yaml/PP-OCRv4_mobile_det_infer
text_rec_model: /root/PaddleX/paddlex/paddle_model_yaml/PP-OCRv4_server_rec
text_rec_batch_size: 1
device: "gpu:0"
我确认对应路径能被访问,文件来自官网。
请求您的帮助,我更倾向于能使用外挂模型+自定义产线配置yaml来执行
复现
产线配置yaml:
Global:
pipeline_name: OCR
input: paddle/docker/1.png
Pipeline:
text_det_model: /root/PaddleX/paddlex/paddle_model_yaml/PP-OCRv4_mobile_det_infer
text_rec_model: /root/PaddleX/paddlex/paddle_model_yaml/PP-OCRv4_server_rec
text_rec_batch_size: 1
device: "gpu:0"
执行指令:
paddlex --pipeline /root/PaddleX/paddlex/paddle_model_yaml/OCR.yaml --input paddle/docker/1.png --device gpu:0 --save_path /paddle
1.服务化部署
*未能跑通服务化部署流程
2.您使用的模型和数据集是?
PP-OCRv4_server_det_infer和PP-OCRv4_server_rec_infer,均使用#2619中提到的官网地址下载
如问题描述所写
环境
PaddleX docker 使用如下命令下载
docker run --gpus all --name paddlex -v $PWD:/paddle --shm-size=8G --network=host -it ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:3.0.0b2-gpu-cuda12.3-cudnn9.0-trt8.6 /bin/bash
Ubuntu22.04
12.3
The text was updated successfully, but these errors were encountered: