sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

Error loading script:

Open monmonchan opened this issue 2 years ago • 4 comments

The following error message appears and the file does not load properly. Help

Error loading script: controlnet.py Traceback (most recent call last): File "C:\Users\〇〇〇〇\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\〇〇〇〇\stable-diffusion-webui\modules\script_loading.py", line 11, 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\〇〇〇〇\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 16, in from kohya_sd_scripts_webui.scripts.utils import load_state_dict ModuleNotFoundError: No module named 'kohya_sd_scripts_webui'

Error loading script: xyz_grid_support.py Traceback (most recent call last): File "C:\Users\〇〇〇〇\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Users\〇〇〇〇\stable-diffusion-webui\modules\script_loading.py", line 11, 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\〇〇〇〇\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\xyz_grid_support.py", line 2, in from scripts import controlnet File "C:\Users\〇〇〇〇\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 16, in from kohya_sd_scripts_webui.scripts.utils import load_state_dict ModuleNotFoundError: No module named 'kohya_sd_scripts_webui'

monmonchan avatar Feb 18 '23 17:02 monmonchan

cc @ddPn08

Mikubill avatar Feb 19 '23 02:02 Mikubill

Having the same issue as well, using on a PaperSpace notebook if that makes a difference.

taraxis1 avatar Feb 19 '23 12:02 taraxis1

I fixed it by temporarily renaming the file. It will be reflected if you update kohya-sd-scripts-webui. https://github.com/ddPn08/kohya-sd-scripts-webui/commit/977c3f56ded8e405a8fa9d9b6d710c16298ef4d4

However, I honestly don't know if this is the correct way to fix it.

ddPn08 avatar Feb 19 '23 15:02 ddPn08

Thank you very much. Resolved.

monmonchan avatar Feb 20 '23 09:02 monmonchan