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.
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'
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.
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'