Browse Source

Update detect.py

5.0
Glenn Jocher GitHub 4 years ago
parent
commit
8c5b6220f5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      detect.py

+ 1
- 1
detect.py View File

p, s, im0 = path, '', im0s p, s, im0 = path, '', im0s


save_path = str(Path(out) / Path(p).name) save_path = str(Path(out) / Path(p).name)
txt_path = save_path[:save_path.rfind('.')] + ('_%g' % dataset.frame if dataset.mode == 'video' else '')
txt_path = str(Path(out) / Path(p).stem) + ('_%g' % dataset.frame if dataset.mode == 'video' else '')
s += '%gx%g ' % img.shape[2:] # print string s += '%gx%g ' % img.shape[2:] # print string
gn = torch.tensor(im0.shape)[[1, 0, 1, 0]] #  normalization gain whwh gn = torch.tensor(im0.shape)[[1, 0, 1, 0]] #  normalization gain whwh
if det is not None and len(det): if det is not None and len(det):

Loading…
Cancel
Save