shreyas-bk / u2netdemo

Demonstration using Google Colab to show how U-2-NET can be used for Background Removal, Changing Backgrounds, Bounding Box Creation, Salient Feature Highlighting and Salient Object Cropping.
MIT License
198 stars 35 forks source link

error while running the result cell #2

Open SreenijaK opened 3 years ago

SreenijaK commented 3 years ago

I get the following error when i run the results cell in colab.

/usr/local/lib/python3.6/dist-packages/keras_preprocessing/image/utils.py in load_img(path, grayscale, color_mode, target_size, interpolation) 111 raise ImportError('Could not import PIL.Image. ' 112 'The use of load_img requires PIL.') --> 113 with open(path, 'rb') as f: 114 img = pil_image.open(io.BytesIO(f.read())) 115 if color_mode == 'grayscale':

FileNotFoundError: [Errno 2] No such file or directory: '/content/U-2-Net/results/.ipynb_checkpo.png'

shreyas-bk commented 3 years ago

Implemented a quick fix #4 for this error: FileNotFoundError: [Errno 2] No such file or directory: '/content/U-2-Net/results/.ipynb_checkpo.png'. Let me know if it works.