Skip to content
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

Missing PTH file #1537

Open
vanillbaum opened this issue Jan 13, 2025 · 1 comment
Open

Missing PTH file #1537

vanillbaum opened this issue Jan 13, 2025 · 1 comment

Comments

@vanillbaum
Copy link

Hi there! I have the same problem as described in #809. I can not add a comment there thou. My Error is: "Server execution error: [Errno 2] No such file or directory: 'C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\depth-anything\Depth-Anything-V2-Base\.cache\huggingface\download\depth_anything_v2_vitb.pth.0d2b7002e62d39d655571c371333340bd88f67ab95050c03591555aa05645328.incomplete'"

So i downloaded the file linked there (https://huggingface.co/hr16/ControlNet-HandRefiner-pruned/blob/main/hrnetv2_w64_imagenet_pretrained.pth). saddly i do not understand, in which folder i need to place it, so i tried lots of different variations, that all did not work. the errormessage stayed the same with every trial.

i tried different folders, firstly the one shown in the error message
(C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\hr16\ControlNet-HandRefiner-pruned.huggingface\download) first i copied i just the pth file, then the folder hr16 respectivly ControlNet-HandRefinder-pruned with the file.

then the one i think was described in the other post
(C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts). first i copied i just the pth file, then the folder hr16 with the file.

but i can not work it out. can someone tell me what is meant by the last post here (#809) with "...it was supposed to be placed in the hr16/ControlNet-HandRefiner-pruned folder directly"

@Acly
Copy link
Owner

Acly commented Jan 13, 2025

Your error message is about one file depth_anything_v2_vitb.pth and the file you downloaded and linked is a completely different file hrnetv2_w64_imagenet_pretrained.pth so I guess that's why it doesn't work?

I'd delete the the cache folder mentioned: C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts\depth-anything\Depth-Anything-V2-Base\.cache

Then try again to use it.

If you really need to download manually I think this would be the link: https://huggingface.co/depth-anything/Depth-Anything-V2-Base/resolve/main/depth_anything_v2_vitb.pth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants