python val.py --data data.yaml --weights runs/train/exp15/weights/best.pt
参考参数:
usage: val.py [-h] [--data DATA] [--weights WEIGHTS [WEIGHTS ...]] [--batch-size BATCH_SIZE] [--imgsz IMGSZ] [--conf-thres CONF_THRES] [--iou-thres IOU_THRES] [--max-det MAX_DET] [--task TASK]
[--device DEVICE] [--workers WORKERS] [--single-cls] [--augment] [--verbose] [--save-txt] [--save-hybrid] [--save-conf] [--save-json] [--project PROJECT] [--name NAME] [--exist-ok]
[--half] [--dnn]