mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
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: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
b8f3b1b373
commit
d0d3dd1040
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user