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

ModuleNotFoundError: No module named 'imwatermark' (SD 1.5)

Open Owenonly opened this issue 3 years ago • 1 comments

Hi! How can I solve the problem 'ModuleNotFoundError: No module named 'imwatermark'' ? I have attepmted 'pip install invisible-watermark' through cmd already,but the Error still remains the same. the following is the error message in texts

*** Error loading script: img2img.py Traceback (most recent call last): File "C:\Users\anchw\OneDrive\桌面\etc. etc\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\anchw\OneDrive\桌面\etc. etc\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\anchw\OneDrive\桌面\etc. etc\stable-diffusion-webui\extensions\stablediffusion\scripts\img2img.py", line 16, in from imwatermark import WatermarkEncoder ModuleNotFoundError: No module named 'imwatermark'


*** Error loading script: txt2img.py Traceback (most recent call last): File "C:\Users\anchw\OneDrive\桌面\etc. etc\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\anchw\OneDrive\桌面\etc. etc\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\anchw\OneDrive\桌面\etc. etc\stable-diffusion-webui\extensions\stablediffusion\scripts\txt2img.py", line 14, in from imwatermark import WatermarkEncoder ModuleNotFoundError: No module named 'imwatermark'

Owenonly avatar Nov 22 '23 10:11 Owenonly

Install with !pip install invisible-watermark will resolve the issue. Tested.

KuiperGamesGithub avatar Nov 24 '23 09:11 KuiperGamesGithub