PaddlePaddle / Paddle3D

A 3D computer vision development toolkit based on PaddlePaddle. It supports point-cloud object detection, segmentation, and monocular 3D object detection models.
Apache License 2.0
552 stars 136 forks source link

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

Open Jarvisxize opened 1 year ago

Jarvisxize commented 1 year ago

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 commented 1 year ago

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

Jarvisxize commented 1 year ago

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

是的,我确定它的存在

LielinJiang commented 1 year ago

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

Jarvisxize commented 1 year ago

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

Jarvisxize commented 1 year ago

贴一下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 commented 1 year ago

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