From a46e500f9ee6110bbefe042ae28e32f7e562dc76 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 21 Nov 2018 19:24:00 +0100 Subject: [PATCH] updates --- detect.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/detect.py b/detect.py index 4e4f466d..5c1d9fb8 100755 --- a/detect.py +++ b/detect.py @@ -141,9 +141,10 @@ def main(opt): # Save generated image with detections cv2.imwrite(results_img_path.replace('.bmp', '.jpg').replace('.tif', '.jpg'), img) + if platform == 'darwin': # MacOS (local) + os.system('open ' + opt.output_folder) + if __name__ == '__main__': torch.cuda.empty_cache() main(opt) - if platform == 'darwin': # MacOS (local) - os.system('open ' + opt.output_folder)