Skip to content

Commit

Permalink
Update detect.py (#629)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
hopesala and glenn-jocher committed Aug 5, 2020
1 parent b8f3b1b commit d0d3dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d0d3dd1

Please sign in to comment.