riffusion: AttributeError: module 'PIL.Image' has no attribute 'Resampling'
Getting this error: AttributeError: module 'PIL.Image' has no attribute 'Resampling'
Any idea how to solve this?
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 2
- Comments: 15 (1 by maintainers)
@tralala87 Thanks! I was able to reproduce the issue.
Commenting out the last line in the
Install requirementscell fixed it for me, so:For some reason that last line was causing issues for me.
I recommend running
and making sure the output is
9.4.0. If it’s not, restart the runtime and try again. It was7.1.2for me until I commented out that line. Colab environment management can be finnicky.9.4 has taken out the deprecated method to call this
Resamplingthing so thatfrom diffusers import StableDiffusionImg2ImgPipelineimport fails.It works if you use pillow 9.1 to 9.3
I believe you just need an upgraded verison of pillow. Have you tried pillow>=9.1.0 per the requirements file?