Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Missing PTH file #1537

Open
vanillbaum opened this issue Jan 13, 2025 · 3 comments
Open

Missing PTH file #1537

vanillbaum opened this issue Jan 13, 2025 · 3 comments

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

@kurt93D
Copy link

kurt93D commented Jan 28, 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

Hello, I have the same error Server execution error: [Errno 2] No such file or directory: 'C:\Users\kurt\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' how can I reinstall manually or fix it? I already reinstalled the software and the ia but the error is still happening.

@Acly
Copy link
Owner

Acly commented Feb 2, 2025

According to #1584 (comment) long filepath might be an issue.

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

No branches or pull requests

3 participants