arpitbansal297 / Universal-Guided-Diffusion

442 stars 38 forks source link

Error in Pillow dependencies #9

Open codeaudit opened 1 year ago

codeaudit commented 1 year ago

from PIL import Image, ImageOps, ImageEnhance, PILLOW_VERSION ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (/home/hpc/anaconda3/envs/ldm/lib/python3.8/site-packages/PIL/init.py)

dribnet commented 1 year ago

I got the examples from the README working, however I did have to downgrade diffusers from 0.13 to fix an error (cannot import name 'SAFE_WEIGHTS_NAME' from 'transformers.utils'):

pip install diffusers==0.12.1

FWIW: with everything working, the version of pillow that got installed for me is 9.3.0