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
573 stars 141 forks source link

使用apollo官方提供的 camera训练部署quick start 将Paddle3D转换的smoke_paddle 进行部署时出错 #409

Open Hgsil opened 1 year ago

Hgsil commented 1 year ago

按照camera训练部署quick start的步骤执行,将模型install成功并修改完smoke.pt之后,运行mainboard -d /apollo/modules/perception/production/dag/dag_streaming_perception_camera.dag出现错误。

System information

Supporting materials (screenshots, command lines, code/script snippets):

mainboard -d /apollo/modules/perception/production/dag/dag_streaming_perception_camera.dag

WARNING: Logging before InitGoogleLogging() is written to STDERR
I0822 14:50:33.783541 60180 module_argument.cc:84] []command: mainboard -d modules/perception/production/dag/dag_streaming_perception_camera.dag 
I0822 14:50:33.783852 60180 global_data.cc:153] []host ip: 172.17.24.44
I0822 14:50:33.784493 60180 module_argument.cc:59] []binary_name_ is mainboard, process_group_ is mainboard_default, has 1 dag conf
I0822 14:50:33.784500 60180 module_argument.cc:62] []dag_conf: modules/perception/production/dag/dag_streaming_perception_camera.dag
[libprotobuf ERROR /apollo/data/Paddle/build/third_party/protobuf/src/extern_protobuf/src/google/protobuf/message_lite.cc:119] Can't parse message of type "paddle.framework.proto.ProgramDesc" because it is missing required fields: blocks[0].ops[1146].attrs[13].type, blocks[0].ops[1153].attrs[13].type, blocks[0].ops[1253].attrs[13].type, blocks[0].ops[1257].attrs[13].type, blocks[0].ops[1274].attrs[13].type, blocks[0].ops[1315].attrs[13].type, blocks[0].ops[1320].attrs[13].type, blocks[0].ops[1325].attrs[13].type, blocks[0].ops[1330].attrs[13].type, blocks[0].ops[1334].attrs[13].type, blocks[0].ops[1338].attrs[13].type, blocks[0].ops[1342].attrs[13].type, blocks[0].ops[1346].attrs[13].type
--- Running analysis [ir_graph_build_pass]
[libprotobuf ERROR /apollo/data/Paddle/build/third_party/protobuf/src/extern_protobuf/src/google/protobuf/message_lite.cc:119] Can't parse message of type "paddle.framework.proto.ProgramDesc" because it is missing required fields: blocks[0].ops[1146].attrs[13].type, blocks[0].ops[1153].attrs[13].type, blocks[0].ops[1253].attrs[13].type, blocks[0].ops[1257].attrs[13].type, blocks[0].ops[1274].attrs[13].type, blocks[0].ops[1315].attrs[13].type, blocks[0].ops[1320].attrs[13].type, blocks[0].ops[1325].attrs[13].type, blocks[0].ops[1330].attrs[13].type, blocks[0].ops[1334].attrs[13].type, blocks[0].ops[1338].attrs[13].type, blocks[0].ops[1342].attrs[13].type, blocks[0].ops[1346].attrs[13].type
terminate called after throwing an instance of 'phi::enforce::EnforceNotMet'
  what():  (InvalidArgument) Failed to parse program_desc from binary string.
  [Hint: Expected desc_.ParseFromString(binary_str) == true, but received desc_.ParseFromString(binary_str):0 != true:1.] (at /apollo/data/Paddle/paddle/fluid/framework/program_desc.cc:143)

Aborted (core dumped)
nepeplwu commented 9 months ago

@Hgsil 感谢反馈,这种问题一般是导出模型的Paddle版本和推理所用的版本不匹配导致,请升级到最新的Paddle版本试试