Extraltodeus / depthmap2mask

Create masks out of depthmaps in img2img
355 stars 35 forks source link

Error loading script: depthmap_for_depth2img.py #52

Open trdahl opened 1 year ago

trdahl commented 1 year ago

Im getting this error after installing this extension in Stable Diffusion, any1 know how to fix this?

Error loading script: depthmap_for_depth2img.py Traceback (most recent call last): File "C:\A1111 Web UI Autoinstaller\stable-diffusion-webui\modules\scripts.py", line 256, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\A1111 Web UI Autoinstaller\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:\A1111 Web UI Autoinstaller\stable-diffusion-webui\extensions\depthmap2mask\scripts\depthmap_for_depth2img.py", line 13, in from repositories.midas.midas.dpt_depth import DPTDepthModel File "C:\A1111 Web UI Autoinstaller\stable-diffusion-webui\repositories\midas\midas\dpt_depth.py", line 5, in from .blocks import ( File "C:\A1111 Web UI Autoinstaller\stable-diffusion-webui\repositories\midas\midas\blocks.py", line 4, in from .backbones.beit import ( File "C:\A1111 Web UI Autoinstaller\stable-diffusion-webui\repositories\midas\midas\backbones\beit.py", line 9, in from timm.models.beit import gen_relative_position_index ModuleNotFoundError: No module named 'timm.models.beit'

magestyx commented 1 year ago

You should search before posting. There's already been a lengthy discussion of this issue here: https://github.com/Extraltodeus/depthmap2mask/issues/35