Spaces:
Runtime error
Runtime error
Commit
·
c756bdd
1
Parent(s):
ce1d429
Update inference.py
Browse files- inference.py +5 -5
inference.py
CHANGED
@@ -424,11 +424,11 @@ def non_max_suppression(
|
|
424 |
width = prediction[..., 2]*pix2w
|
425 |
wc = width < max_length
|
426 |
|
427 |
-
print(0.1, sum(sum(width
|
428 |
-
print(0.8, sum(sum(width
|
429 |
-
print(1.5, sum(sum(width
|
430 |
-
print(10, sum(sum(width
|
431 |
-
print(10, sum(sum(width
|
432 |
print(prediction[1,512,:])
|
433 |
print("mean", torch.mean(width))
|
434 |
|
|
|
424 |
width = prediction[..., 2]*pix2w
|
425 |
wc = width < max_length
|
426 |
|
427 |
+
print(0.1, sum(sum(width < 0.1)))
|
428 |
+
print(0.8, sum(sum(width < 0.8)))
|
429 |
+
print(1.5, sum(sum(width < 1.5)))
|
430 |
+
print(10, sum(sum(width < 10 )))
|
431 |
+
print(10, sum(sum(width < 10 )))
|
432 |
print(prediction[1,512,:])
|
433 |
print("mean", torch.mean(width))
|
434 |
|