binarization_2017 icon indicating copy to clipboard operation
binarization_2017 copied to clipboard

problem about nvidia-docker

Open gsygsy96 opened this issue 8 years ago • 1 comments

xxx@xxx:~$ sudo nvidia-docker run -v /home/xxx:/data tensmeyerc/icdar2017:binarization_gpu python binarize_plm.py /data/input_file.jpg /data/output_file.png 0 libdc1394 error: Failed to initialize libdc1394 Traceback (most recent call last): File "binarize_plm.py", line 257, in main(in_image, out_image) File "binarize_plm.py", line 191, in main rd_im = relative_darkness(image) File "binarize_plm.py", line 35, in relative_darkness if im.ndim == 3: AttributeError: 'NoneType' object has no attribute 'ndim' Loading Image Computing RD features

Do you know how to fix it?

gsygsy96 avatar Nov 17 '17 12:11 gsygsy96

The issue here is that the code cannot find the input image. When cv2.imread() loads an image from a non-existent file, it returns None rather than throwing an exception.

Are you sure that the path /home/xxx/input_file.jpg exists on your system and is a valid image file?

ctensmeyer avatar Nov 20 '17 19:11 ctensmeyer