kijai / ComfyUI-CogVideoXWrapper

981 stars 59 forks source link

ERREUR COMFYUI ; DownloadAndLoadCogVideoModel 'CogVideoXTransformer3DModel' object has no attribute 'encoder' #251

Closed ABIA2024 closed 2 days ago

ABIA2024 commented 2 days ago

when i execute a workflow from Future Thinkers Benji since : https://www.youtube.com/watch?v=IhYR-F33dek i get this message DownloadAndLoadCogVideoModel 'CogVideoXTransformer3DModel' object has no attribute 'encoder' the LOG is šŸ‘ Prompt executed in 0.56 seconds got prompt [{'path': 'D:\PINOKIO2\ComfyUI_windows_portable\ComfyUI\models\CogVideo\loras\orbit_up_lora_weights.safetensors', 'strength': 1.0, 'name': 'orbit_up_lora_weights', 'fuse_lora': True}] !!! Exception during processing !!! 'CogVideoXTransformer3DModel' object has no attribute 'encoder' Traceback (most recent call last): File "D:\PINOKIO2\ComfyUI_windows_portable\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 "D:\PINOKIO2\ComfyUI_windows_portable\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 "D:\PINOKIO2\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "D:\PINOKIO2\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(*inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PINOKIO2\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-CogVideoXWrapper\model_loading.py", line 179, in loadmodel transformer = CogVideoXTransformer3DModel.from_pretrained(base_path, subfolder="transformer") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PINOKIO2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn return fn(args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "D:\PINOKIO2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\modeling_utils.py", line 929, in from_pretrained raise e File "D:\PINOKIO2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\modeling_utils.py", line 886, in from_pretrained accelerate.load_checkpoint_and_dispatch( File "D:\PINOKIO2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\accelerate\big_modeling.py", line 613, in load_checkpoint_and_dispatch load_checkpoint_in_model( File "D:\PINOKIO2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\accelerate\utils\modeling.py", line 1821, in load_checkpoint_in_model set_module_tensor_to_device( File "D:\PINOKIO2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\accelerate\utils\modeling.py", line 334, in set_module_tensor_to_device new_module = getattr(module, split) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\PINOKIO2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\diffusers\models\modeling_utils.py", line 155, in getattr return super().getattr(name) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\PINOKIO2\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1931, in getattr raise AttributeError( AttributeError: 'CogVideoXTransformer3DModel' object has no attribute 'encoder'

Prompt executed in 0.49 seconds