[X] I have searched the existing issues and checked the recent builds/commits
What happened?
I'm getting the following error with a freshly installed venv upon calling depth-related ControlNet preprocessors.
Traceback (most recent call last):
File "K:\stablediffusionwebui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
output = await app.get_blocks().process_api(
File "K:\stablediffusionwebui\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api
result = await self.call_function(
File "K:\stablediffusionwebui\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function
prediction = await anyio.to_thread.run_sync(
File "K:\stablediffusionwebui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "K:\stablediffusionwebui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "K:\stablediffusionwebui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
result = context.run(func, *args)
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 399, in run_annotator
result, is_image = preprocessor(img, res=pres, thr_a=pthr_a, thr_b=pthr_b)
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\scripts\processor.py", line 427, in zoe_depth
result = model_zoe_depth(img)
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\zoe\__init__.py", line 38, in __call__
self.load_model()
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\zoe\__init__.py", line 27, in load_model
model = ZoeDepth.build_from_config(conf)
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\zoe\zoedepth\models\zoedepth\zoedepth_v1.py", line 250, in build_from_config
return ZoeDepth.build(**config)
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\zoe\zoedepth\models\zoedepth\zoedepth_v1.py", line 240, in build
core = MidasCore.build(midas_model_type=midas_model_type, use_pretrained_midas=use_pretrained_midas,
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\zoe\zoedepth\models\base_models\midas.py", line 343, in build
midas = torch.hub.load(midas_path, midas_model_type,
File "K:\stablediffusionwebui\venv\lib\site-packages\torch\hub.py", line 542, in load
model = _load_local(repo_or_dir, model, *args, **kwargs)
File "K:\stablediffusionwebui\venv\lib\site-packages\torch\hub.py", line 569, in _load_local
hub_module = _import_module(MODULE_HUBCONF, hubconf_path)
File "K:\stablediffusionwebui\venv\lib\site-packages\torch\hub.py", line 90, in _import_module
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\zoe\zoedepth\models\base_models\midas_repo\hubconf.py", line 5, in <module>
from midas.dpt_depth import DPTDepthModel
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\zoe\zoedepth\models\base_models\midas_repo\midas\dpt_depth.py", line 5, in <module>
from .blocks import (
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\zoe\zoedepth\models\base_models\midas_repo\midas\blocks.py", line 4, in <module>
from .backbones.beit import (
File "K:\stablediffusionwebui\extensions\sd-webui-controlnet\annotator\zoe\zoedepth\models\base_models\midas_repo\midas\backbones\beit.py", line 9, in <module>
from timm.models.beit import gen_relative_position_index
ModuleNotFoundError: No module named 'timm.models.beit'
Steps to reproduce the problem
I have no idea if and how this might be reproducable...
What should have happened?
Well, the error should not have occurred in the first place. Depth delated stuff should work.
It happens with other extensions too that use midas depth. Deforum for example. Is it still an extension related issue if it happens with multiple extensions?
Is there an existing issue for this?
What happened?
I'm getting the following error with a freshly installed venv upon calling depth-related ControlNet preprocessors.
Steps to reproduce the problem
I have no idea if and how this might be reproducable...
What should have happened?
Well, the error should not have occurred in the first place. Depth delated stuff should work.
Commit where the problem happens
d75b3fb2f0f6b7794898b7baaa90e0a097586fda
What platforms do you use to access the UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
Console logs
Additional information
No response
Then you should create the issue on that related extensions.. sd-webui-controlnet
It happens with other extensions too that use midas depth. Deforum for example. Is it still an extension related issue if it happens with multiple extensions?
Opened another similar issue in the sd-webui-controlnet repo.
Closing as this is clearly an sd-webui-controlnet issue.