zhongpei/Comfyui_image2prompt

Failed to import transformers.models.cohere.configuration_cohere

unhack57 opened this issue · 0 comments

HELP!
Error occurred when executing LoadImage2TextModel:

Failed to import transformers.models.cohere.configuration_cohere because of the following error (look up to see its traceback):
No module named 'transformers.models.cohere.configuration_cohere'

File "D:\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI-aki-v1.3\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ComfyUI-aki-v1.3\custom_nodes\Comfyui_image2prompt\src\image2text.py", line 52, in get_model
return (DeepseekVLModel(device=device,low_memory=low_memory,model_name=model), )
File "D:\ComfyUI-aki-v1.3\custom_nodes\Comfyui_image2prompt\src\deepseek_model.py", line 31, in init
vl_gpt: MultiModalityCausalLM = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\models\auto\auto_factory.py", line 541, in from_pretrained
)
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\models\auto\auto_factory.py", line 752, in keys
if key in self._model_mapping.keys()
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\models\auto\auto_factory.py", line 753, in
]
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\models\auto\auto_factory.py", line 749, in _load_attr_from_module
mapping_keys = [
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\models\auto\auto_factory.py", line 693, in getattribute_from_module

object at the top level.

File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\utils\import_utils.py", line 1550, in getattr
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\utils\import_utils.py", line 1562, in _get_module