Open sev222 opened 1 year ago
You have to run the "install_next_vit.sh" in the midas directory (which just does a "git clone" ), and your problem is actually downstream from mine, but both are solved by manual operations.
I did that but still had same error, then I changed the file manually to point to correct dir but it gives me another error:
Is this windows realted? May I missing something ?
this seems to work https://www.youtube.com/watch?v=tIo0b0YJ2GA
You have to run the "install_next_vit.sh" in the midas directory (which just does a "git clone" ), and your problem is actually downstream from mine, but both are solved by manual operations.
Where do you git clone it to?
I have rolled back Midas to v3. That works good enough for me.
stable-diffusion-webui-docker/data/config/auto/startup.sh
cd repositories && git clone "https://github.com/isl-org/MiDaS.git" &&
mv MiDaS midas &&
cd midas &&
./install_next_vit.sh &&
cd midas/backbones &&
sed -i 's#./externals/Next_ViT/classification/nextvit.py#repositories/midas/midas/backbones/vit.py#' next_vit.py
You need to be in the webui root folder, then enter
git clone https://github.com/bytedance/Next-ViT.git externals/Next_ViT
` File "D:\stable-diffusion-webui\extensions\depthmap2mask\scripts\depth2image_depthmask.py", line 76, in run sdmg = module_from_file("depthmap_for_depth2img",'extensions/depthmap2mask/scripts/depthmap_for_depth2img.py')
File "D:\stable-diffusion-webui\extensions\depthmap2mask\scripts\depth2image_depthmask.py", line 22, in module_from_file spec.loader.exec_module(module) File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "extensions/depthmap2mask/scripts/depthmap_for_depth2img.py", line 11, in
from repositories.midas.midas.dpt_depth import DPTDepthModel
File "D:\stable-diffusion-webui\repositories\midas\midas\dpt_depth.py", line 5, in
from .blocks import (
File "D:\stable-diffusion-webui\repositories\midas\midas\blocks.py", line 21, in
from .backbones.next_vit import (
File "D:\stable-diffusion-webui\repositories\midas\midas\backbones\next_vit.py", line 15, in
file = open("./externals/Next_ViT/classification/nextvit.py", "r")
FileNotFoundError: [Errno 2] No such file or directory: './externals/Next_ViT/classification/nextvit.py'`