Paddle 无法复现《Python 预测 API介绍》官网结果

cfh9epnr  于 2021-11-30  发布在  Java
关注(0)|答案(1)|浏览(267)

按照官网https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/advanced_usage/deploy/inference/python_infer_cn.html
执行python resnet50_infer.py --model_dir model --prog_file model --params_file params --batch_size 2
错误如下:
Traceback (most recent call last):
File "infer.py", line 53, in
main()
File "infer.py", line 18, in main
predictor = create_paddle_predictor(config)
paddle.fluid.core_avx.EnforceNotMet: Cannot open file model/modelat [/home/teamcity/work/ef54dc8a5b211854/paddle/fluid/inference/api/analysis_predictor.cc:639]

gojuced7

gojuced71#

看log就是路径问题,把这个resnet50_infer.py脚本放到下载模型的文件夹试试

相关问题