【案例分享】离线模型转换失败,报错:Error parsing text-format caffe.NetParameter
收藏回复举报
【案例分享】离线模型转换失败,报错:Error parsing text-format caffe.NetParameter
发表于2022-10-21 19:21:17
0 查看

【问题描述】caffe模型转换失败,查看错误信息如下:

[INFO] FMK:2019-04-29-17:43:29.111.046 Parse:framework/domi/omg/parser/caffe/caffe_parser.cpp:499:"Caffe Parse model file /home/mindstudio/tools/che/model-zoo/my-model/.temp/tarmac_1220/tarmac_1220.prototxt"

[libprotobuf ERROR google/protobuf/text_format.cc:288] Error parsing text-format caffe.NetParameter: 418:33: Message type "caffe.LayerParameter" has no field named "yolo_detection_output_param".

[ERROR] FMK:2019-04-29-17:43:29.112.191 ReadProtoFromText:framework/domi/common/util.cpp:320:"call [google::protobuf::TextFormat::Parse] func ret fail, please check your text file."

【问题分析】从上面的信息看,模型转换过程中,"caffe.LayerParameter" has no field named "yolo_detection_output_param", 貌似是说yolo_detection_output_param这个参数找不到,于是查看prototxt文件,发现yolo_detection_output_param是存在的,但是看起来像是自定义的层,并不是原生caffe所支持的层,于是与开发确认的确不是原生caffe,那么目前离线模型转换暂不支持非原生caffe。

【结论】离线模型转换暂不支持非原生caffe,所以暂时请各位先用原生caffe模型,多谢理解。

本帖最后由 匿名用户 于 2025/04/01 16:42:07 编辑

我要发帖子