Open TtopsBo opened 2 weeks ago
Star RTDETR 请先在RTDETR主页点击star以支持本项目 Star RTDETR to help more people discover this project.
Describe the bug
您好 是否注释掉assert 强制使用一样的dtype 不影响使用呢 To Reproduce !python rtdetrv2_pytorch/tools/export_onnx.py -c rtdetrv2_pytorch/configs/rtdetrv2/rtdetrv2_r18vd_120e_coco.yml -r output/rtdetrv2_r18vd_120e_coco/best.pth --check !trtexec --onnx=model.onnx --saveEngine=model.trt --fp16 !python rtdetrv2_pytorch/references/deploy/rtdetrv2_tensorrt.py --trt-file=model.trt --im-file=image.jpg
你去掉试一下,结果应该不对。 在数据类型上最好保持一致
Wenyu您好, 我强制指定dtype一样,在custom dataset上使用tensorrt运行起来没问题,谢谢您的回答!
Star RTDETR 请先在RTDETR主页点击star以支持本项目 Star RTDETR to help more people discover this project.
Describe the bug
您好 是否注释掉assert 强制使用一样的dtype 不影响使用呢 To Reproduce !python rtdetrv2_pytorch/tools/export_onnx.py -c rtdetrv2_pytorch/configs/rtdetrv2/rtdetrv2_r18vd_120e_coco.yml -r output/rtdetrv2_r18vd_120e_coco/best.pth --check !trtexec --onnx=model.onnx --saveEngine=model.trt --fp16 !python rtdetrv2_pytorch/references/deploy/rtdetrv2_tensorrt.py --trt-file=model.trt --im-file=image.jpg