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

AIO_Preprocessor 401 Client Error #511

Open
tak196 opened this issue Feb 20, 2025 · 7 comments
Open

AIO_Preprocessor 401 Client Error #511

tak196 opened this issue Feb 20, 2025 · 7 comments

Comments

@tak196
Copy link

tak196 commented Feb 20, 2025

Hi everyone I wanted to create a pose from a photo using AIO Aux Preprocessor. However, I encountered this problem. I have uploaded the logs below. I wanted to do it on runpod. I downloaded the repository using the manager, I didn't change anything. I know that below in the error it says that the file is missing, just don't know if that helps, and secondly I don't even know where to put this file. It seems to me that this repository is cloning wrong or something else because when I go into ckpts it pops up something like this (attached picture) and when I go into folders there is nothing there as if there are missing files or something, but I also tried to put files there but it did not solve my problem.

AIO_Preprocessor
401 Client Error. (Request ID: Root=1-67b76cb6-6f3d8e6c3bd4864f61a3b4f4;82bca1d7-7cfb-46d1-8cb8-3391d4c053ce)

Repository Not Found for url: https://huggingface.co/lllyasviel/Annotators/resolve/main/body_pose_model.pth.
Please make sure you specified the correct repo_id and repo_type.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid credentials in Authorization header

Logs:

ComfyUI Error Report

Error Details

  • Node Type: AIO_Preprocessor
  • Exception Type: huggingface_hub.errors.RepositoryNotFoundError
  • Exception Message: 401 Client Error. (Request ID: Root=1-67b76c72-14e504f86eb374707274074e;b68c89d0-042b-4458-ab70-419b0ae12e26)

Repository Not Found for url: https://huggingface.co/lllyasviel/Annotators/resolve/main/body_pose_model.pth.
Please make sure you specified the correct repo_id and repo_type.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid credentials in Authorization header

Stack Trace

  File "/workspace/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

  File "/workspace/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

  File "/workspace/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/workspace/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/__init__.py", line 120, in execute
    return getattr(aux_class(), aux_class.FUNCTION)(**params)

  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/node_wrappers/openpose.py", line 29, in estimate_pose
    model = OpenposeDetector.from_pretrained().to(model_management.get_torch_device())

  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/src/custom_controlnet_aux/open_pose/__init__.py", line 123, in from_pretrained
    body_model_path = custom_hf_download(pretrained_model_or_path, filename, subfolder=subfolder)

  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/src/custom_controlnet_aux/util.py", line 333, in custom_hf_download
    model_path = hf_hub_download(repo_id=pretrained_model_or_path,

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f
    return f(*args, **kwargs)

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1212, in hf_hub_download
    return _hf_hub_download_to_local_dir(

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1461, in _hf_hub_download_to_local_dir
    _raise_on_head_call_error(head_call_error, force_download, local_files_only)

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1854, in _raise_on_head_call_error
    raise head_call_error

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1746, in _get_metadata_or_catch_error
    metadata = get_hf_file_metadata(

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1666, in get_hf_file_metadata
    r = _request_wrapper(

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 364, in _request_wrapper
    response = _request_wrapper(

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 388, in _request_wrapper
    hf_raise_for_status(response)

  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 454, in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e

System Information

  • ComfyUI Version: v0.2.3-10-gc695c4a
  • Arguments: /workspace/ComfyUI/main.py --listen
  • OS: posix
  • Python Version: 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0]
  • Embedded Python: false
  • PyTorch Version: 2.4.0+cu121

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 25430786048
    • VRAM Free: 25158156288
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

Logs

2025-02-20 17:52:18,899 - root - INFO - Total VRAM 24253 MB, total RAM 515751 MB
2025-02-20 17:52:18,900 - root - INFO - pytorch version: 2.4.0+cu121
2025-02-20 17:52:18,900 - root - INFO - Set vram state to: NORMAL_VRAM
2025-02-20 17:52:18,900 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync
2025-02-20 17:52:19,740 - root - INFO - Using pytorch cross attention
2025-02-20 17:52:20,549 - root - INFO - [Prompt Server] web root: /workspace/ComfyUI/web
2025-02-20 17:52:23,605 - root - INFO - Total VRAM 24253 MB, total RAM 515751 MB
2025-02-20 17:52:23,605 - root - INFO - pytorch version: 2.4.0+cu121
2025-02-20 17:52:23,605 - root - INFO - Set vram state to: NORMAL_VRAM
2025-02-20 17:52:23,605 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3090 : cudaMallocAsync
2025-02-20 17:52:24,656 - root - INFO - 
Import times for custom nodes:
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/websocket_image_save.py
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/cg-use-everywhere
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Logic
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/cg-image-picker
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI_JPS-Nodes
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Flowty-LDSR
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Florence2
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/comfy-plasma
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Custom-Scripts
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-AdvancedLivePortrait
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/rgthree-comfy
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/x-flux-comfyui
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-KJNodes
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-GGUF
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI_essentials
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux
2025-02-20 17:52:24,657 - root - INFO -    0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager
2025-02-20 17:52:24,657 - root - INFO -    0.1 seconds: /workspace/ComfyUI/custom_nodes/comfyui-art-venture
2025-02-20 17:52:24,657 - root - INFO -    0.1 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Impact-Pack
2025-02-20 17:52:24,657 - root - INFO -    0.2 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Easy-Use
2025-02-20 17:52:24,657 - root - INFO -    0.2 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-ControlnetAux
2025-02-20 17:52:24,657 - root - INFO -    0.3 seconds: /workspace/ComfyUI/custom_nodes/comfyui-reactor-node
2025-02-20 17:52:24,657 - root - INFO -    0.5 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-YoloNasPose-Tensorrt
2025-02-20 17:52:24,657 - root - INFO -    0.5 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-SUPIR
2025-02-20 17:52:24,657 - root - INFO -    0.9 seconds: /workspace/ComfyUI/custom_nodes/was-node-suite-comfyui
2025-02-20 17:52:24,657 - root - INFO -    1.2 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI_LayerStyle
2025-02-20 17:52:24,657 - root - INFO - 
2025-02-20 17:52:24,668 - root - INFO - Starting server

2025-02-20 17:52:24,668 - root - INFO - To see the GUI go to: http://0.0.0.0:8188
2025-02-20 17:52:24,669 - root - INFO - To see the GUI go to: http://[::]:8188
2025-02-20 17:53:50,220 - root - INFO - got prompt
2025-02-20 17:53:50,477 - root - ERROR - !!! Exception during processing !!! 401 Client Error. (Request ID: Root=1-67b76c2e-09276aad3e22d042604770d9;fb73cc6c-2f88-48c5-89d1-51adaae076b3)

Repository Not Found for url: https://huggingface.co/yzd-v/DWPose/resolve/main/yolox_l.onnx.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid credentials in Authorization header
2025-02-20 17:53:50,479 - root - ERROR - Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 406, in hf_raise_for_status
    response.raise_for_status()
  File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/yzd-v/DWPose/resolve/main/yolox_l.onnx

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "/workspace/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "/workspace/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/workspace/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/node_wrappers/dwpose.py", line 73, in estimate_pose
    model = DwposeDetector.from_pretrained(
  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/src/custom_controlnet_aux/dwpose/__init__.py", line 233, in from_pretrained
    det_model_path = custom_hf_download(pretrained_det_model_or_path, det_filename)
  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/src/custom_controlnet_aux/util.py", line 333, in custom_hf_download
    model_path = hf_hub_download(repo_id=pretrained_model_or_path,
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1212, in hf_hub_download
    return _hf_hub_download_to_local_dir(
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1461, in _hf_hub_download_to_local_dir
    _raise_on_head_call_error(head_call_error, force_download, local_files_only)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1854, in _raise_on_head_call_error
    raise head_call_error
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1746, in _get_metadata_or_catch_error
    metadata = get_hf_file_metadata(
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1666, in get_hf_file_metadata
    r = _request_wrapper(
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 364, in _request_wrapper
    response = _request_wrapper(
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 388, in _request_wrapper
    hf_raise_for_status(response)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 454, in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-67b76c2e-09276aad3e22d042604770d9;fb73cc6c-2f88-48c5-89d1-51adaae076b3)

Repository Not Found for url: https://huggingface.co/yzd-v/DWPose/resolve/main/yolox_l.onnx.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid credentials in Authorization header

2025-02-20 17:53:50,479 - root - INFO - Prompt executed in 0.23 seconds
2025-02-20 17:54:58,767 - root - INFO - got prompt
2025-02-20 17:54:58,920 - root - ERROR - !!! Exception during processing !!! 401 Client Error. (Request ID: Root=1-67b76c72-14e504f86eb374707274074e;b68c89d0-042b-4458-ab70-419b0ae12e26)

Repository Not Found for url: https://huggingface.co/lllyasviel/Annotators/resolve/main/body_pose_model.pth.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid credentials in Authorization header
2025-02-20 17:54:58,921 - root - ERROR - Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 406, in hf_raise_for_status
    response.raise_for_status()
  File "/usr/local/lib/python3.10/dist-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/lllyasviel/Annotators/resolve/main/body_pose_model.pth

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "/workspace/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "/workspace/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/workspace/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/__init__.py", line 120, in execute
    return getattr(aux_class(), aux_class.FUNCTION)(**params)
  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/node_wrappers/openpose.py", line 29, in estimate_pose
    model = OpenposeDetector.from_pretrained().to(model_management.get_torch_device())
  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/src/custom_controlnet_aux/open_pose/__init__.py", line 123, in from_pretrained
    body_model_path = custom_hf_download(pretrained_model_or_path, filename, subfolder=subfolder)
  File "/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/src/custom_controlnet_aux/util.py", line 333, in custom_hf_download
    model_path = hf_hub_download(repo_id=pretrained_model_or_path,
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_deprecation.py", line 101, in inner_f
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1212, in hf_hub_download
    return _hf_hub_download_to_local_dir(
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1461, in _hf_hub_download_to_local_dir
    _raise_on_head_call_error(head_call_error, force_download, local_files_only)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1854, in _raise_on_head_call_error
    raise head_call_error
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1746, in _get_metadata_or_catch_error
    metadata = get_hf_file_metadata(
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 1666, in get_hf_file_metadata
    r = _request_wrapper(
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 364, in _request_wrapper
    response = _request_wrapper(
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/file_download.py", line 388, in _request_wrapper
    hf_raise_for_status(response)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_http.py", line 454, in hf_raise_for_status
    raise _format(RepositoryNotFoundError, message, response) from e
huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: Root=1-67b76c72-14e504f86eb374707274074e;b68c89d0-042b-4458-ab70-419b0ae12e26)

Repository Not Found for url: https://huggingface.co/lllyasviel/Annotators/resolve/main/body_pose_model.pth.
Please make sure you specified the correct `repo_id` and `repo_type`.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid credentials in Authorization header

2025-02-20 17:54:58,922 - root - INFO - Prompt executed in 0.13 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

Workflow too large. Please manually upload the workflow from local file system.

Additional Context

(Please add any additional context or steps to reproduce the error here)

attached Image:
Image

@TriLif3
Copy link

TriLif3 commented Feb 21, 2025

I'm getting the same after building a run pod today. I read about a fix being in place a week before though I installed into ComfyUI with the GIT URL and still resulting in the error.

@tak196
Copy link
Author

tak196 commented Feb 21, 2025

I'm getting the same after building a run pod today. I read about a fix being in place a week before though I installed into ComfyUI with the GIT URL and still resulting in the error.

Well that is what is kind of weird. I saw a video of a person installing this repository using the confyui manager locally on his computer, and it created the files for a specific processor in the files of this repository by itself, and with them it also created the .huggingface folder. it looks like something is failing on the runpod, but it can probably be fixed, only you will have to put the files in the right folders by yourself, or still do it differently. I don't know if there is innt way to create a pose from a photo, I also tried other ways, but it didn't work out, maybe you know some other ways. How would you manage this error on runpod then write. Thanks for your comment. Have a nice day.

@spiritform
Copy link

i get the same error..

i deleted / reinstalled huggingface hub and now i get this one

@spiritform
Copy link

Image

@gayratv
Copy link

gayratv commented Feb 23, 2025

I have the same problem.
I couldn't find the place in the code that needs to be fixed, but I was able to get the node to work

You need all the files from here
https://huggingface.co/lllyasviel/Annotators/tree/main
put into the directory
/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts/lllyasviel/Annotators

#!/bin/bash
# https://huggingface.co/lllyasviel/Annotators/tree/main

MODEL_DIR="/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts/lllyasviel/Annotators"


./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/150_16_swin_l_oneformer_coco_100ep.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/250_16_swin_l_oneformer_ade20k_160k.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/ControlNetHED.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/ControlNetLama.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/upernet_global_small.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/table5_pidinet.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/sk_model2.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/sk_model.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/scannet.pt"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/res101.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/network-bsds500.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/netG.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/mlsd_large_512_fp32.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/latest_net_G.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/lama.ckpt"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/hand_pose_model.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/facenet.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/erika.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/dpt_hybrid-midas-501f0c75.pt"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/clip_g.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/body_pose_model.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/ZoeD_M12_N.pt"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/RealESRGAN_x4plus.pth"

@tak196
Copy link
Author

tak196 commented Feb 27, 2025

I have the same problem. I couldn't find the place in the code that needs to be fixed, but I was able to get the node to work

You need all the files from here https://huggingface.co/lllyasviel/Annotators/tree/main put into the directory /workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts/lllyasviel/Annotators

#!/bin/bash
# https://huggingface.co/lllyasviel/Annotators/tree/main

MODEL_DIR="/workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts/lllyasviel/Annotators"


./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/150_16_swin_l_oneformer_coco_100ep.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/250_16_swin_l_oneformer_ade20k_160k.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/ControlNetHED.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/ControlNetLama.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/upernet_global_small.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/table5_pidinet.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/sk_model2.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/sk_model.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/scannet.pt"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/res101.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/network-bsds500.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/netG.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/mlsd_large_512_fp32.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/latest_net_G.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/lama.ckpt"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/hand_pose_model.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/facenet.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/erika.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/dpt_hybrid-midas-501f0c75.pt"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/clip_g.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/body_pose_model.pth"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/ZoeD_M12_N.pt"
./download-file.sh "$MODEL_DIR" "https://huggingface.co/lllyasviel/Annotators/resolve/main/RealESRGAN_x4plus.pth"

Thank you, I checked it, it seriously works and now it works normally. Thanks again because you helped me a lot

@TriLif3
Copy link

TriLif3 commented Feb 28, 2025

I'm getting the same after building a run pod today. I read about a fix being in place a week before though I installed into ComfyUI with the GIT URL and still resulting in the error.

Well that is what is kind of weird. I saw a video of a person installing this repository using the confyui manager locally on his computer, and it created the files for a specific processor in the files of this repository by itself, and with them it also created the .huggingface folder. it looks like something is failing on the runpod, but it can probably be fixed, only you will have to put the files in the right folders by yourself, or still do it differently. I don't know if there is innt way to create a pose from a photo, I also tried other ways, but it didn't work out, maybe you know some other ways. How would you manage this error on runpod then write. Thanks for your comment. Have a nice day.

I have it working for my local install in docker so I dug into the folder where the files are downloaded and ended up uploading them into my runpod instance through scp. It's kind of temporary for me but it somewhat works for now.

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

4 participants