首页 Paddle Inference 帖子详情
Cannot open file xxx/model.pdmode
收藏
快速回复
Paddle Inference 问答部署 1920 1
Cannot open file xxx/model.pdmode
收藏
快速回复
Paddle Inference 问答部署 1920 1

本地paddlepaddle安装预测部署模型读取报错

D:\IT_2\python38\lib\site-packages\setuptools\depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
(NotFound) Cannot open file D:/IT_2/matlab_motocar/l1/model.pdmodel, please confirm whether the file is normal.
[Hint: Expected static_cast(fin.is_open()) == true, but received static_cast(fin.is_open()):0 != true:1.] (at ..\paddle\fluid\inference\api\analysis_predictor.cc:1116)

Traceback (most recent call last):
File "d:/IT_2/matlab_motocar/l1/model/model_test.py", line 75, in
predictor = predict_config(model_file, params_file)
File "d:/IT_2/matlab_motocar/l1/model/model_test.py", line 43, in predict_config
predictor = paddle_infer.create_predictor(config)
RuntimeError: Unknown exception

0
收藏
回复
全部评论(1)
时间顺序
十进制到二进制
#2 回复于2022-02

imp 已经被删了,你看下importlib文档改成什么api了

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户