updates
This commit is contained in:
parent
8ac8d0a382
commit
a46e500f9e
|
@ -141,9 +141,10 @@ def main(opt):
|
||||||
# Save generated image with detections
|
# Save generated image with detections
|
||||||
cv2.imwrite(results_img_path.replace('.bmp', '.jpg').replace('.tif', '.jpg'), img)
|
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__':
|
if __name__ == '__main__':
|
||||||
torch.cuda.empty_cache()
|
torch.cuda.empty_cache()
|
||||||
main(opt)
|
main(opt)
|
||||||
if platform == 'darwin': # MacOS (local)
|
|
||||||
os.system('open ' + opt.output_folder)
|
|
||||||
|
|
Loading…
Reference in New Issue