mirror of
https://github.com/WongKinYiu/yolov7.git
synced 2025-02-17 12:50:14 +08:00
minor fix
This commit is contained in:
parent
cfde076fb4
commit
591c5b0236
@ -125,10 +125,10 @@ def detect(save_img=False):
|
||||
|
||||
if save_img or view_img: # Add bbox to image
|
||||
label = f'{names[int(cls)]} {conf:.2f}'
|
||||
plot_one_box(xyxy, im0, label=label, color=colors[int(cls)], line_thickness=3)
|
||||
plot_one_box(xyxy, im0, label=label, color=colors[int(cls)], line_thickness=1)
|
||||
|
||||
# Print time (inference + NMS)
|
||||
#print(f'{s}Done. ({(1E3 * (t2 - t1)):.1f}ms) Inference, ({(1E3 * (t3 - t2)):.1f}s) NMS')
|
||||
print(f'{s}Done. ({(1E3 * (t2 - t1)):.1f}ms) Inference, ({(1E3 * (t3 - t2)):.1f}ms) NMS')
|
||||
|
||||
# Stream results
|
||||
if view_img:
|
||||
|
Loading…
Reference in New Issue
Block a user