text: Title: The reasoning result is abnormal
  Body: ### Search before asking
  
  - [X] I have searched the YOLOv5 [issues](https://github.com/ultralytics/yolov5/issues) and found no similar bug report.
  
  
  ### YOLOv5 Component
  
  _No response_
  
  ### Bug
  
  I'm training on a custom dataset that has only one category，The training is all normal, and the final val result visualization is also normal.
  ![image](https://github.com/ultralytics/yolov5/assets/72087870/1720fb0a-6ca5-48b4-9322-68d00b843fc8)
  
  But when I use the trained model for inference：
  
  > python detect.py --weights runs/train/exp/weights/last.pt  --data data/bdd100k.yaml --source  /root/yolov5/datasets/bdd100k/images/val
  
  log：
  
      (base) root@autodl-container-23c2469e43-849f7d78:~/yolov5# python detect.py --weights runs/train/exp/weights/last.pt  --data data/bdd100k.yaml --source  /root/yolov5/datasets/bdd100k/images/train --conf_thres=0.5 --iou_thres=0.1 
      usage: detect.py [-h] [--weights WEIGHTS [WEIGHTS ...]] [--source SOURCE] [--data DATA] [--imgsz IMGSZ [IMGSZ ...]] [--conf-thres CONF_THRES] [--iou-thres IOU_THRES] [--max-det MAX_DET] [--device DEVICE] [--view-img] [--save-txt] [--save-csv] [--save-conf] [--save-crop] [--nosave]
                       [--classes CLASSES [CLASSES ...]] [--agnostic-nms] [--augment] [--visualize] [--update] [--project PROJECT] [--name NAME] [--exist-ok] [--line-thickness LINE_THICKNESS] [--hide-labels] [--hide-conf] [--half] [--dnn] [--vid-stride VID_STRIDE]
      detect.py: error: unrecognized arguments: --conf_thres=0.5 --iou_thres=0.1
      (base) root@autodl-container-23c2469e43-849f7d78:~/yolov5# python detect.py --weights runs/train/exp/weights/last.pt  --data data/bdd100k.yaml --source  /root/yolov5/datasets/bdd100k/images/val
      detect: weights=['runs/train/exp/weights/last.pt'], source=/root/yolov5/datasets/bdd100k/images/val, data=data/bdd100k.yaml, imgsz=[640, 640], conf_thres=0.25, iou_thres=0.45, max_det=1000, device=, view_img=False, save_txt=False, save_csv=False, save_conf=False, save_crop=False, nosave=False, classes=None, agnostic_nms=False, augment=False, visualize=False, update=False, project=runs/detect, name=exp, exist_ok=False, line_thickness=3, hide_labels=False, hide_conf=False, half=False, dnn=False, vid_stride=1
      YOLOv5 🚀  v7.0-290-gb2ffe055 Python-3.8.10 torch-1.9.0+cu111 CUDA:0 (NVIDIA GeForce RTX 4090, 24217MiB)
      
      Fusing layers... 
  
  
  As a result, many bboxes appeared that should not have appeared：
  ![image](https://github.com/ultralytics/yolov5/assets/72087870/4cb4ce5f-1cdb-4205-bc4b-bf1d43a39a96)
  ![image](https://github.com/ultralytics/yolov5/assets/72087870/912d5276-69fd-4741-a3ce-477d178dc147)
  ![image](https://github.com/ultralytics/yolov5/assets/72087870/f3ed3239-bee5-46a4-a48b-6eb44a998ee0)
  
  How should I deal with this problem？
  
  ### Environment
  
  _No response_
  
  ### Minimal Reproducible Example
  
  _No response_
  
  ### Additional
  
  _No response_
  
  ### Are you willing to submit a PR?
  
  - [ ] Yes I'd like to help by submitting a PR!