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.03k stars 93 forks source link

ModuleNotFoundError: No module named 'lama_cleaner' #97

Closed anibalinbalin closed 4 weeks ago

anibalinbalin commented 9 months ago

Hey guys, I just installed the extension (I'm using google colab) and I dont have the tab. Checking the console I found:

*** 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 9 months ago

Are you adding the --enable-insecure-extension-access flag when starting the web UI?

Example:

!python launch.py --share --xformers --enable-insecure-extension-access
Uminosachi commented 9 months ago

Duplicate of #88

anibalinbalin commented 9 months ago

Are you adding the --enable-insecure-extension-access flag when starting the web UI?

Example:

!python launch.py --share --xformers --enable-insecure-extension-access

Thanks for your reply. Yes, this is my line (that comes by default): webui.py $share --api --disable-safe-unpickle --enable-insecure-extension-access --no-download-sd-model --no-half-vae --ckpt "$model" --xformers $auth --disable-console-progressbars --upcast-sampling $ckptdir

I'm using the last ben google colab btw.

Uminosachi commented 4 weeks ago

I have added the lama_cleaner package to this repository, so I am closing this issue.