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:
1 parent
b8f3b1b373
commit
d0d3dd1040
1 file changed
+1
-1
@@ -137,7 +137,7 @@ def detect(save_img=False):
|
||||
vid_writer.write(im0)
|
||||
|
||||
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
|
||||
os.system('open ' + save_path)
|
||||
|
||||
|
||||
Reference in new issue
Block a user