-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundError: [Errno 2] No such file or directory: './externals/Next_ViT/classification/nextvit.py' #36
Comments
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. |
this seems to work https://www.youtube.com/watch?v=tIo0b0YJ2GA |
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
|
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'`
The text was updated successfully, but these errors were encountered: