浏览代码

Update detect.py

5.0
Glenn Jocher GitHub 4 年前
父节点
当前提交
8c5b6220f5
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      detect.py

+ 1
- 1
detect.py 查看文件

@@ -80,7 +80,7 @@ def detect(save_img=False):
p, s, im0 = path, '', im0s

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
gn = torch.tensor(im0.shape)[[1, 0, 1, 0]] #  normalization gain whwh
if det is not None and len(det):

正在加载...
取消
保存