Open dineshdaultani opened 3 years ago
Hi, it is caused by the display function of OpenCV. You may comment on lines 185-189
in test.py
. And add a line to save images, such as cv2.imwrite(os.path.join(save_path, img_id+".png"), np.uint8(ori_image))
@yijingru , thanks for your quick response. It works after your suggested fix. Maybe we can add this functionality as part of the script through maybe an argument, so that if someone's running the script on docker / without display, will not face this issue. What do you think?
I am getting this error while running the test script on remote docker container.
I looked into several blog / stackoverflow but none of the solutions work.