Unverified 提交 d0d3dd10 authored 作者: hopesala's avatar hopesala 提交者: GitHub

Update detect.py (#629)

* Update detect.py Update print info for relative path and absolute otherwise the info below is misleading Results saved to /workspace//output_path * Update detect.py Co-authored-by: 's avatarGlenn Jocher <glenn.jocher@ultralytics.com>
上级 b8f3b1b3
...@@ -137,7 +137,7 @@ def detect(save_img=False): ...@@ -137,7 +137,7 @@ def detect(save_img=False):
vid_writer.write(im0) vid_writer.write(im0)
if save_txt or save_img: if save_txt or save_img:
print('Results saved to %s' % os.getcwd() + os.sep + out) print('Results saved to %s' % Path(out))
if platform == 'darwin' and not opt.update: # MacOS if platform == 'darwin' and not opt.update: # MacOS
os.system('open ' + save_path) os.system('open ' + save_path)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论