TensorRT deploy and PTQ/QAT tools development for FastBEV, total time only need 6.9ms!!!
233
stars
37
forks
source link
fast-bev的pytorch模型转tensorrt报错 Assertion failed: scaleAllPositive && "Scale coefficients must all be positive" #35
Open
Anmidy opened 2 weeks ago
你好,我重训练得到模型,想转tensorrt模型,走以下流程: 1、用fast-bev工程,本工程的config文件:fastbev_m0_r18_s256x704_v200x200x4_c192_d2_f1.py进行训练,得到了epoch_20.pth, 2、再经过 python ptq_bev.py和 python export_onnx.py流程,得到了两个onnx文件,fastbev_pre_trt_ptq.onnx 和fastbev_post_trt_ptq.onnx 3、最后,执行 bash tool/build_trt_engine.sh生成tensorrt文件时报错,请问是哪个步骤出错了吗?是步骤2中未执行 python qat_bev.py?但是 qat_bev.py 文件找不到。tensorrt转换日志内容如下所示(长度受限制,中间省略了一部分,出错内容在文末):