Uminosachi / sd-webui-inpaint-anything

Inpaint Anything extension performs stable diffusion inpainting on a browser UI using masks from Segment Anything.
Apache License 2.0
1.11k stars 101 forks source link

Error loading script: inpaint_anything.py #75

Open lucifer726 opened 1 year ago

lucifer726 commented 1 year ago

Error loading script: inpaint_anything.py Traceback (most recent call last): File "/root/autodl-tmp/stable-diffusion-webui/modules/scripts.py", line 248, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/root/autodl-tmp/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 "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-webui-inpaint-anything-main/scripts/inpaint_anything.py", line 46, in from ia_threading import (clear_cache_decorator, await_pre_unload_model_weights, await_pre_reload_model_weights, await_backup_reload_ckpt_info, File "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-webui-inpaint-anything-main/ia_threading.py", line 4, in from modules.sd_models import unload_model_weights, reload_model_weights ImportError: cannot import name 'unload_model_weights' from 'modules.sd_models' (/root/autodl-tmp/stable-diffusion-webui/modules/sd_models.py)

Uminosachi commented 1 year ago

Duplicate of #62

Uminosachi commented 1 year ago

The version of webUI you are currently using might be outdated. To update it, you can execute the git pull command in your local stable-diffusion-webui directory.

Alternatively, you can download specific versions directly from the 'tags' page on GitHub.

https://github.com/AUTOMATIC1111/stable-diffusion-webui/tags