depthmap2mask
depthmap2mask copied to clipboard
Error loading script: No module named 'timm.models.beit'
I used the script a few days ago on colab pro with no problem. Today I can't get it to work.
Maybe it has something to do with this Midas update yesterday?
They added this file which references the now missing module as a dependency.
Thats at least as far as I got. Might be completely off.
Here is the full error message:
Error loading script: depthmap_for_depth2img.py
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 195, in load_scripts
module = script_loading.load_module(scriptfile.path)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
exec(compiled, module.__dict__)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/depthmap2mask/scripts/depthmap_for_depth2img.py", line 11, in <module>
from repositories.midas.midas.dpt_depth import DPTDepthModel
File "/content/gdrive/MyDrive/sd/stablediffusion/repositories/midas/midas/dpt_depth.py", line 5, in <module>
from .blocks import (
File "/content/gdrive/MyDrive/sd/stablediffusion/repositories/midas/midas/blocks.py", line 4, in <module>
from .backbones.beit import (
File "/content/gdrive/MyDrive/sd/stablediffusion/repositories/midas/midas/backbones/beit.py", line 9, in <module>
from timm.models.beit import gen_relative_position_index
ModuleNotFoundError: No module named 'timm.models.beit'
Thanks for the awesome script btw! :D