Russ Ferriday commited on
Commit
0d5065d
1 Parent(s): 0bc80e1

Remove non-ascii that breaks pdb single-stepping

Browse files
Files changed (1) hide show
  1. detect.py +1 -1
detect.py CHANGED
@@ -82,7 +82,7 @@ def detect(save_img=False):
82
  save_path = str(Path(out) / Path(p).name)
83
  txt_path = str(Path(out) / Path(p).stem) + ('_%g' % dataset.frame if dataset.mode == 'video' else '')
84
  s += '%gx%g ' % img.shape[2:] # print string
85
- gn = torch.tensor(im0.shape)[[1, 0, 1, 0]] #  normalization gain whwh
86
  if det is not None and len(det):
87
  # Rescale boxes from img_size to im0 size
88
  det[:, :4] = scale_coords(img.shape[2:], det[:, :4], im0.shape).round()
 
82
  save_path = str(Path(out) / Path(p).name)
83
  txt_path = str(Path(out) / Path(p).stem) + ('_%g' % dataset.frame if dataset.mode == 'video' else '')
84
  s += '%gx%g ' % img.shape[2:] # print string
85
+ gn = torch.tensor(im0.shape)[[1, 0, 1, 0]] # normalization gain whwh
86
  if det is not None and len(det):
87
  # Rescale boxes from img_size to im0 size
88
  det[:, :4] = scale_coords(img.shape[2:], det[:, :4], im0.shape).round()