oskarastrom commited on
Commit
c756bdd
·
1 Parent(s): ce1d429

Update inference.py

Browse files
Files changed (1) hide show
  1. 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*pix2w < 0.1)))
428
- print(0.8, sum(sum(width*pix2w < 0.8)))
429
- print(1.5, sum(sum(width*pix2w < 1.5)))
430
- print(10, sum(sum(width*pix2w < 10 )))
431
- print(10, sum(sum(width*pix2w < 10 )))
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