如图:
PS D:\Download\yolo_study\yolov5-master> python detect.py
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.25, device='', exist_ok=False, img_size=640, iou_thres=0.45, name='exp', project='runs/detect', save_conf=False, save_txt=True, source='data/images', update=False, view_img=False, weights='yolov5s.pt')
Fusing layers...
Model Summary: 224 layers, 7266973 parameters, 0 gradients, 17.0 GFLOPS
image 1/2 D:\Download\yolo_study\yolov5-master\data\images\bus.jpg: 640x480 Done. (0.050s)
image 2/2 D:\Download\yolo_study\yolov5-master\data\images\zidane.jpg: 384x640 Done. (0.037s)
Results saved to runs\detect\exp5
0 labels saved to runs\detect\exp5\labels
Done. (0.233s)
权重文件使用官方的yolov5s.pt文件,运行过程中没有报错,但没有任何结果。输出图片大小后就直接结束了,得不到结果。