cloneofsimo / lora

Using Low-rank adaptation to quickly fine-tune diffusion models.
https://arxiv.org/abs/2106.09685
Apache License 2.0
6.94k stars 479 forks source link

AttributeError: module 'PIL.Image' has no attribute 'Resampling' #174

Closed oscarnevarezleal closed 1 year ago

oscarnevarezleal commented 1 year ago
Generating 12 captions...
100% 12/12 [00:07<00:00,  1.69it/s]
Generating 12 masks...
12it [00:01, 11.38it/s]
Upscaling 12 images...

AttributeError: module 'PIL.Image' has no attribute 'Resampling'

Just found this error by using the preprocessing script, seems to be an unspecified dependency in the requirements nor README for PIL package. I think it's ok since it's a helper rather than core but decided to put it here in case someone else stumble into the same situation.

Fixed using v9.1.0 of PIL

pip install Pillow==9.1.0