stable-diffusion icon indicating copy to clipboard operation
stable-diffusion copied to clipboard

There is a version conflict between pillow and torchvision

Open ruxiliang opened this issue 3 years ago • 0 comments

When I was trying to make a docker image for this stable diffusion I found that there was an error saying that they cannot find 'PILLOW_VERSION' in line 5 of the file /root/miniconda3/envs/ldm/lib/python3.8/site-packages/torchvision/transforms/functional.py. Then I began to search and found that PILLOW_VERSION has been removed., so I tried to use sed -i '5s/PILLOW_VERSION/__version__ as PILLOW_VERSION/' /root/miniconda3/envs/ldm/lib/python3.8/site-packages/torchvision/transforms/functional.py and it solved my problem, but could you please fix that dependency problem so that it could be much easier for others to build a runnable docker image when using stable diffusion.

ruxiliang avatar Feb 16 '23 16:02 ruxiliang