-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Depth Anything V2 - UDAV2 depth Preprocessor #2969
Conversation
Added depth_anything_v2 preprocessor
Added depth_anything_v2 preprocessor
Added depth_anything_v2 to general_depth_modules
Added depth_anything_v2 to expected_module_names & expected_module_alias
Added depth_anything_v2 to install.py
For the time being, please use this transformers .whl that I put together for testing - https://github.com/MackinationsAi/sd-webui-controlnet/releases/tag/transformers-4.44.1.dev0. (I'm still working on getting the transformers uploaded) |
) | ||
remote_url = os.environ.get( | ||
"CONTROLNET_DEPTH_ANYTHING_V2_MODEL_URL", | ||
"https://huggingface.co/MackinationsAi/Depth-Anything-V2_Safetensors/blob/main/depth_anything_v2_vitl.safetensors", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"blob" => "resolve"
Otherwise you download an HTML file.
Continued in #2977. I don't have the push access to your branch @MackinationsAi |
Hi, How to solve this problem? SUPER SD 2.0 Dependencies\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\depth_anything_v2.py", line 9, in Cheers! |
@zthrx it looks like the depth_anything_v2.dpt module which is installed from the depth_anything_v2-2024.7.1.0-py2.py3-none-any.whl didn't properly install on your end. I just removed my sd-webui-controlnet extension & reinstalled it to see if the same error would happen for me which it didn't. So my advice would be to remove & reinstall sd-webui-controlnet. You should be good after that. If the issue persists open up an issue ticket & @ tag me so I can assist you further. |
Hey, Cheers! |
@zthrx move the models folder somewhere else on your machine, delete the sd-webui-control folder in extensions. (Just to make sure & to be clear, I am NOT saying to delete your controlnet models folder in the main models folder. If your models are here - move this folder out of the sd-webui-controlnet extensions folder before deleting it). Then its a simple matter of opening up a1111 & reinstalling sd-webui-controlnet from the extensions tab & restart a1111, then move all of your models back into that folder I linked above. |
Hey, Thank you for your time by helping me. Unfortunately after reinstalling I keep getting this error. Other preprocessors like Depth_anything or midas works fine. I've started new topic: Cheers! |
I've made the necessary updates for the depth_anything_v2 preprocessor to function properly (I've done multiple tests & it's working great!). After this I will be uploading the new depth_anything_v2 hf transformers.