Closed smrlehdgus closed 1 year ago
This issue is marked as stale because it has been marked as invalid or awaiting response for 7 days without any further response. It will be closed in 5 days if the stale label is not removed or if there is no further response.
This issue is closed because it has been stale for 5 days. Please open a new issue if you have similar issues or you have any new updates now.
Checklist
Describe the bug
I trained a yolox_m model with custom dataset. The pytorch model predicts well but exported models(onnx, tensorRT engine) don't.
Prediction of Pytorch model
Prediction of ONNX model
The ONNX model predicts even non-existent objects. I tried adjusting the Threshold values but they didn't work. (Because sometimes the Confidence value of the false prediction was over 0.6.)
Reproduction
python tools/test.py \ configs/yolox/yolox_m_fast_8xb8-300e-rtmdet-hyp_custom.py \ work_dirs/yolox_m_fast_8xb8-300e-rtmdet-hyp_custom/best_coco_bbox_mAP_epoch_50.pth \ --show-dir show_results
python export.py \ configs/yolox/yolox_m_fast_8xb8-300e-rtmdet-hyp_custom.py \ work_dirs/yolox_m_fast_8xb8-300e-rtmdet-hyp_custom/best_coco_bbox_mAP_epoch_50.pth \ --work-dir work_dirs/yolox_m_fast_8xb8-300e-rtmdet-hyp_custom/onnx \ --img-size 640 640 \ --batch 1 \ --device cuda:0 \ --opset 11 \ --backend 1 \ --pre-topk 1000 \ --keep-topk 100 \ --iou-threshold 0.5 \ --score-threshold 0.3 \ --simplify
python image-demo.py \ /home/data/ObjectDetection/LGUP/20221017/images/train/ \ configs/yolox/yolox_m_fast_8xb8-300e-rtmdet-hyp_custom.py \ work_dirs/yolox_m_fast_8xb8-300e-rtmdet-hyp_custom/onnx/end2end.onnx \ --device cuda:0 \ --out-dir work_dirs/yolox_m_fast_8xb8-300e-rtmdet-hyp_custom/outputs/onnx/
Error traceback