Update inference multiple-counting (#2019)

* Update inference multiple-counting

* update github check
This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-01-22 15:39:08 -08:00
1 parent 85b75d6018
commit aac33f87ad
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ def detect(save_img=False):
# Print results
for c in det[:, -1].unique():
n = (det[:, -1] == c).sum() # detections per class
s += f'{n} {names[int(c)]}s, ' # add to string
s += f"{n} {names[int(c)]}{'s' * (n > 1)}, " # add to string
# Write results
for *xyxy, conf, cls in reversed(det):