-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
按照教程导出的模型,导入出错 #81
Comments
@aixier 请给下导出模型时的运行命令,注意模型要加载通过指定 [inference_program, feed_target_names, fetch_targets] = fluid.io.load_inference_model(dirname=save_freeze_dir, executor=exe) 中最好指定下 |
python tools/export_model.py -c configs/dcn/cascade_rcnn_dcn_r50_fpn_1x.yml --output_dir=./inference_model_cas -o weights=/home/aistudio/work/PaddleDetection/ResNet50_cos_pretrained.tar YoloTestFeed.image_shape=[3,448,448] @qingqing01 |
@aixier 保存模型选错了,请注意选择cascade_rcnn_dcn_r50_fpn_1x对应的模型是: 另外:
|
可以load了 会报错 |
强制转换就行了 im_info= np.array([800.,800.,1.], dtype='float32') |
@aixier 既然解决了,那就close了 |
https://github.com/PaddlePaddle/PaddleDetection/blob/release/0.1/docs/EXPORT_MODEL.md
使用:
[inference_program, feed_target_names, fetch_targets] = fluid.io.load_inference_model(dirname=save_freeze_dir, executor=exe)
Error Message Summary:
PaddleCheckError: Cannot open file G:\NewMj_project\frlib\cascade_rcnn_dcn_r50_fpn_1x\res4d_branch2c_weights for load op
at [D:\1.6.1\paddle\paddle/fluid/operators/load_op.h:37]
[operator < load > error]
The text was updated successfully, but these errors were encountered: