zhongpei/Comfyui_image2prompt

Error occurred when executing LoadImage2TextModel: HfApi.__init__() got an unexpected keyword argument 'headers'

boogalwop opened this issue · 0 comments

Me again, this time im trying on linux machine and i get this? Thank you!

Full Error
Error occurred when executing LoadImage2TextModel:

HfApi.init() got an unexpected keyword argument 'headers'

File "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/fv/inno-comfyui-hosting/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 "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/custom_nodes/ComfyUI-0246/utils.py", line 381, in new_func
res_value = old_func(*final_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/custom_nodes/Comfyui_image2prompt/src/image2text.py", line 50, in get_model
return (DeepseekVLModel(device=device,low_memory=low_memory,model_name=model), )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/fv/inno-comfyui-hosting/ComfyUI/custom_nodes/Comfyui_image2prompt/src/deepseek_model.py", line 26, in init
model_path = snapshot_download(repo, local_dir=local_dir,force_download=True, resume_download=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/anaconda3/envs/inno-comfyui-hosting/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
File "/home/ubuntu/anaconda3/envs/inno-comfyui-hosting/lib/python3.11/site-packages/huggingface_hub/_snapshot_download.py", line 179, in snapshot_download
api = HfApi(
^^^^^^