Update inference multiple-counting (#2019)
* Update inference multiple-counting * update github check
This commit is contained in:
1 parent
85b75d6018
commit
aac33f87ad
3 files changed
+3
-3
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user