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

Inpaint_anything incompatibility with other extensions. #112

Closed iaclaudioia8 closed 5 months ago

iaclaudioia8 commented 11 months ago

Hi all,

I have figured out that when I install the extension for the first time it works properly, but when I restart the webui it does not load again, after trying to disable another extension that I have and enable just inpaint anything it works again :(

Civitai Helper: Get Custom Model Folder *** Error loading script: inpaint_anything.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/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 "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-inpaint-anything/scripts/inpaint_anything.py", line 20, in from lama_cleaner.model_manager import ModelManager ModuleNotFoundError: No module named 'lama_cleaner

Uminosachi commented 11 months ago

Which other extension did you disable? I'll investigate the cause.

iaclaudioia8 commented 11 months ago

Sorry, i figured out now, that it had started work again because i have reinstalled the extension, i do not know why if i restart the WEBUI, extension stop to work, and give me the same output:

*** Error loading script: inpaint_anything.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/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 "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-inpaint-anything/scripts/inpaint_anything.py", line 20, in from lama_cleaner.model_manager import ModelManager ModuleNotFoundError: No module named 'lama_cleaner'

image

image

Uminosachi commented 11 months ago

There's a possibility that the package is damaged. I recommend deleting the venv folder under stable-diffusion-webui and then starting webui.sh to reinstall the package from scratch.

iaclaudioia8 commented 11 months ago

Probably webuii automtic111 is not working properly, because i have installed more extension and i am getting the same issue:

*** Error loading script: iib_setup.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/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 "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-infinite-image-browsing/scripts/iib_setup.py", line 1, in from scripts.iib.api import infinite_image_browsing_api, send_img_path File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-infinite-image-browsing/scripts/iib/api.py", line 52, in from functional import seq ModuleNotFoundError: No module named 'functional'


*** Error loading script: inpaint_anything.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/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 "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-webui-inpaint-anything/scripts/inpaint_anything.py", line 20, in from lama_cleaner.model_manager import ModelManager ModuleNotFoundError: No module named 'lama_cleaner'

I have already informed @TheLasBen about it. https://github.com/TheLastBen/fast-stable-diffusion/issues/2643

Uminosachi commented 5 months ago

I have included lama_cleaner in the repository, so I am closing this issue.