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

RuntimeError: (NotFound) Cannot open file exported_model/smoke.pdmodel, please confirm whether the file is normal.单目3D进行推理预测时一直报模型错误,使用提供的预训练模型还有自己训练的模型都这样 #355

Open
Jarvisxize opened this issue May 27, 2023 · 7 comments
Assignees

Comments

@Jarvisxize
Copy link

RuntimeError: (NotFound) Cannot open file exported_model/smoke.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/paddle/fluid/inference/api/analysis_predictor.cc:1901)

@LielinJiang
Copy link
Collaborator

可以确认一下 『exported_model/smoke.pdmodel』这个地址是否存在

@Jarvisxize
Copy link
Author

可以确认一下 『exported_model/smoke.pdmodel』这个地址是否存在

是的,我确定它的存在

@LielinJiang
Copy link
Collaborator

贴一下ls 该文件的截图,以及你运行的代码的位置?

@Jarvisxize
Copy link
Author

贴一下ls 该文件的截图,以及你运行的代码的位置?
2023-06-07 15-21-15屏幕截图
2023-06-07 15-23-07屏幕截图

@Jarvisxize
Copy link
Author

贴一下ls 该文件的截图,以及你运行的代码的位置?
2023-06-07 15-21-15屏幕截图
2023-06-07 15-23-07屏幕截图

在上面的截图中我无论运行infer.py 还是vis.py 都会报同样的错,同样运行caddn算法也会报同样的错
2023-06-07 15-27-16屏幕截图

@LielinJiang
Copy link
Collaborator

还是路径的问题吧,你如果是在~/code/test/Paddle3d/deploy/smoke/python文件夹下运行这个命令,那么你就需要在这个目录下来能找到models/caddn_ocrnet_hrnet_w18/caddn.model这个文件,也就是在这个文件夹下执行ls models/caddn_ocrnet_hrnet_w18/caddn.model 这个命令,能找到该文件

@dongdongzi
Copy link

我也是遇到这个问题,我改为了相对路径,就解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants