Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

ImportError: cannot import name 'WatermarkEncoder' from 'imWatermark'

Writer Olivia Zamora

I'm trying to run stable diffusion on my local pc. It's a macbook pro m1. Even though I did follow every single step, I keep getting an import error. What might possibly be the reason and how may I fix it?

ImportError: cannot import name 'WatermarkEncoder' from 'imWatermark'

I was referring an online tutorial so I did end up searching through the comments. Found nothing so far.

2

2 Answers

If you look in the txt2img.py script it references

Install with pip install invisible-watermark

It seems they forgot to add it into requirements.txt or smt like that. If you continue getting the error after invisible-watermark installation, change the line from imWatermark import WatermarkEncoder in txt2img.py to from imwatermark import WatermarkEncoder (lowercase)

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.