DPT icon indicating copy to clipboard operation
DPT copied to clipboard

Add pillow in requirements.txt

Open Salvatore-tech opened this issue 3 years ago • 1 comments

Hi, As you can observe from the following stacktrace, we need to also provide pillow in the environment.

Traceback (most recent call last): File "run_segmentation.py", line 11, in import util.io File "/home/s/DepthNets/DPT/util/io.py", line 9, in from PIL import Image ModuleNotFoundError: No module named 'PIL' Traceback (most recent call last): File "run_segmentation.py", line 11, in import util.io File "/home/s/DepthNets/DPT/util/io.py", line 9, in from PIL import Image ModuleNotFoundError: No module named 'PIL'

Salvatore-tech avatar Aug 15 '22 14:08 Salvatore-tech

Hey @Salvatore-tech, This error message says "ModuleNotFoundError: No module named 'PIL'". This indicates that the Python Imaging Library (PIL) is not installed in your environment. Use this code to install PIL, pip install pillow

v-parmar avatar Feb 07 '23 14:02 v-parmar