This commit is contained in:
Glenn Jocher 2018-11-21 19:24:00 +01:00
parent 8ac8d0a382
commit a46e500f9e
1 changed files with 3 additions and 2 deletions

View File

@ -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)