Open OBaruch opened 1 year ago
After executing an inference whit:
python detect.py --weights 'runs/train/yolov5m_csl_dotav1.5/weights/best.pt' --source 'dataset/dataset_demo/images/' --img 2048 --device 0 --conf-thres 0.25 --iou-thres 0.2 --hide-labels --hide-conf
how to get the bound box coordinates of the predictions?
输出的参数是向量,你需要解析
just add --save_txt, it save a txt file for every image . so in this file from 1 to 9 these are boundry box value in every line of text file
After executing an inference whit:
python detect.py --weights 'runs/train/yolov5m_csl_dotav1.5/weights/best.pt' --source 'dataset/dataset_demo/images/' --img 2048 --device 0 --conf-thres 0.25 --iou-thres 0.2 --hide-labels --hide-conf
how to get the bound box coordinates of the predictions?