stablediffusion icon indicating copy to clipboard operation
stablediffusion copied to clipboard

ModuleNotFoundError: No module named 'imwatermark'

Open woctezuma opened this issue 1 year ago • 3 comments

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

woctezuma avatar Nov 24 '22 23:11 woctezuma

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 .

AlexNolasco avatar Nov 26 '22 23:11 AlexNolasco

It is not in the requirements.txt.

woctezuma avatar Nov 27 '22 09:11 woctezuma

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.

profgiuseppe avatar Feb 24 '23 13:02 profgiuseppe