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

smoke转tensorrt报错 #253

Open Yutong-gannis opened 1 year ago

Yutong-gannis commented 1 year ago
E0220 18:10:05.958732 58484 helper.h:114] 4: Output tensor tmp_21795 of type Float produced from output of incompatible type Bool
E0220 18:10:05.958732 58484 helper.h:114] 4: Output tensor tmp_21795 of type Float produced from output of incompatible type Bool
E0220 18:10:05.958732 58484 helper.h:114] 4: Output tensor tmp_21795 of type Float produced from output of incompatible type Bool
E0220 18:10:05.958732 58484 helper.h:114] 4: Output tensor tmp_21795 of type Float produced from output of incompatible type Bool
W0220 18:10:48.365917 58484 helper.h:110] Skipping tactic 0 due to Myelin error: Mismatched type for tensor tmp_21795', f32 vs. expected type:b.
E0220 18:10:48.366914 58484 helper.h:114] 10: [optimizer.cpp::nvinfer1::builder::`anonymous-namespace'::LeafCNode::computeCosts::2033] Error Code 10: Internal Error (Could not find any implementation for node {ForeignNode[equal (Output: tmp_21795)]}.)
E0220 18:10:48.366914 58484 helper.h:114] 2: [builder.cpp::nvinfer1::builder::Builder::buildSerializedNetwork::619] Error Code 2: Internal Error (Assertion engine != nullptr failed. )

好像有一些不支持的算子

nepeplwu commented 1 year ago

@Yutong-gannis 可以试试直接导出Paddle的模型后使用PaddleInference + TRT推理,参考https://github.com/PaddlePaddle/Paddle3D/tree/release/1.0/docs/models/smoke#python%E9%83%A8%E7%BD%B2

Yutong-gannis commented 1 year ago

@nepeplwu 我就是用的python infer.py --model_file /path/to/smoke.pdmodel --params_file /path/to/smoke.pdiparams --image /path/to/image --use_trt --dynamic_shape_file /path/to/shape_info.txt依然会报这个错

perfectworld0415 commented 1 year ago

smoke.pdiparams 这个文件在哪里下载?model里面没有这个文件

nepeplwu commented 9 months ago

@Yutong-gannis 辛苦补充下完整的日志, @perfectworld0415 这个是通过动转静导出的模型,可以参考这个步骤https://github.com/PaddlePaddle/Paddle3D/tree/develop/configs/smoke#%E5%AF%BC%E5%87%BA%E9%83%A8%E7%BD%B2