From d0d3dd104045d5b2765cb7afc7da1e9fe1336a7c Mon Sep 17 00:00:00 2001 From: hopesala <1806804825@qq.com> Date: Thu, 6 Aug 2020 03:01:24 +0800 Subject: [PATCH] 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 --- detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect.py b/detect.py index 95a17a1..cfb1ad5 100644 --- a/detect.py +++ b/detect.py @@ -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)