stablediffusion
stablediffusion copied to clipboard
ModuleNotFoundError: No module named 'imwatermark'
Traceback (most recent call last):
File "scripts/txt2img.py", line 14, in <module>
from imwatermark import WatermarkEncoder
ModuleNotFoundError: No module named 'imwatermark'
Unintuitively, this is not solved by installing imWatermark
, but:
%pip install invisible-watermark
it's part of the requirement list, unsure as to why is not part of environment.yaml
conda install pytorch==1.12.1 torchvision==0.13.1 -c pytorch
pip install transformers==4.19.2 diffusers invisible-watermark
pip install -e .
It is not in the requirements.txt
.
The same problem appears after following the installation instructions for the pip package stable-diffusion-sdkit Please notice that in the PyPi page the "Installation" section does not mention that library, while it is mentioned in the "Requirements" after the phrase "You can update an existing latent diffusion environment". From a user's perspective, one would expect that requirements should be met by pip itself, then no "update" should be needed.