Depth-Anything icon indicating copy to clipboard operation
Depth-Anything copied to clipboard

Error occurred when executing DepthAnythingPreprocessor:

Open Idiosyncras opened this issue 1 year ago • 6 comments

Error occurred when executing DepthAnythingPreprocessor:

An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

File "E:\SD\ComfyUI-aki-v1.1\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "E:\SD\ComfyUI-aki-v1.1\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "E:\SD\ComfyUI-aki-v1.1\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "E:\SD\ComfyUI-aki-v1.1\custom_nodes\comfyui_controlnet_aux\node_wrappers\depth_anything.py", line 19, in execute model = DepthAnythingDetector.from_pretrained(filename=ckpt_name).to(model_management.get_torch_device()) File "E:\SD\ComfyUI-aki-v1.1\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\depth_anything_init_.py", line 40, in from_pretrained model_path = custom_hf_download(pretrained_model_or_path, filename, subfolder="checkpoints", repo_type="space") File "E:\SD\ComfyUI-aki-v1.1\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\util.py", line 323, in custom_hf_download model_path = hf_hub_download(repo_id=pretrained_model_or_path, File "", line 52, in hf_hub_download_wrapper_inner File "E:\SD\ComfyUI-aki-v1.1\python\lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) File "E:\SD\ComfyUI-aki-v1.1\python\lib\site-packages\huggingface_hub\file_download.py", line 1202, in hf_hub_download return _hf_hub_download_to_local_dir( File "E:\SD\ComfyUI-aki-v1.1\python\lib\site-packages\huggingface_hub\file_download.py", line 1440, in _hf_hub_download_to_local_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "E:\SD\ComfyUI-aki-v1.1\python\lib\site-packages\huggingface_hub\file_download.py", line 1826, in _raise_on_head_call_error raise LocalEntryNotFoundError(

Idiosyncras avatar May 27 '24 11:05 Idiosyncras

有解决吗

LinAnRan113 avatar Jun 16 '24 11:06 LinAnRan113

我的错误代码似乎也一样: Error occurred when executing Zoe_DepthAnythingPreprocessor:

An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\depth_anything.py", line 39, in execute model = ZoeDepthAnythingDetector.from_pretrained(filename=ckpt_name).to(model_management.get_torch_device()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\zoe_init_.py", line 71, in from_pretrained model_path = custom_hf_download(pretrained_model_or_path, filename, subfolder="checkpoints_metric_depth", repo_type="space") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\util.py", line 333, in custom_hf_download model_path = hf_hub_download(repo_id=pretrained_model_or_path, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda3\envs\comfyui\Lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "D:\anaconda3\envs\comfyui\Lib\site-packages\huggingface_hub\file_download.py", line 1202, in hf_hub_download return _hf_hub_download_to_local_dir( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda3\envs\comfyui\Lib\site-packages\huggingface_hub\file_download.py", line 1440, in _hf_hub_download_to_local_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "D:\anaconda3\envs\comfyui\Lib\site-packages\huggingface_hub\file_download.py", line 1826, in _raise_on_head_call_error raise LocalEntryNotFoundError(

rzw520 avatar Jul 11 '24 05:07 rzw520

Anyone resolved?

Levennn avatar Jul 16 '24 08:07 Levennn

Same issue with all the ControlNet processor except Canny!

amirasht avatar Jul 21 '24 17:07 amirasht

Anyone resolved?

thinghesi avatar Aug 15 '24 19:08 thinghesi