isl-org / DPT

Dense Prediction Transformers
MIT License
1.96k stars 254 forks source link

Add pillow in requirements.txt #74

Open Salvatore-tech opened 2 years ago

Salvatore-tech commented 2 years ago

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'

v-parmar commented 1 year ago

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