ExponentialML / ComfyUI_ELLA

ComfyUI Implementaion of ELLA: Equip Diffusion Models with LLM for Enhanced Semantic Alignment
Apache License 2.0
155 stars 10 forks source link

facing issue Error while deserializing header: HeaderTooLarge #21

Open vvonchain opened 2 months ago

vvonchain commented 2 months ago

!!! Exception during processing !!! Traceback (most recent call last): File "/teamspace/studios/this_studio/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/teamspace/studios/this_studio/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 "/teamspace/studios/this_studio/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/teamspace/studios/this_studio/ComfyUI/custom_nodes/ComfyUI_ELLA/ella.py", line 68, in load_ella t5_model = T5TextEmbedder(t5_path).to(self.device, self.dtype) File "/teamspace/studios/this_studio/ComfyUI/custom_nodes/ComfyUI_ELLA/ella_model/model.py", line 240, in init self.model = T5EncoderModel.from_pretrained(pretrained_path) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/transformers/modeling_utils.py", line 3706, in from_pretrained ) = cls._load_pretrained_model( File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/transformers/modeling_utils.py", line 4091, in _load_pretrained_model state_dict = load_state_dict(shard_file) File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/transformers/modeling_utils.py", line 503, in load_state_dict with safe_open(checkpoint_file, framework="pt") as f: safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge

Limbicnation commented 2 months ago

Encountered the same issue with the model is downloaded from: https://huggingface.co/QQGYLab/ELLA/blob/main/ella-sd1.5-tsc-t5xl.safetensors

Limbicnation commented 2 months ago

Encountered the same issue with the model is downloaded from: https://huggingface.co/QQGYLab/ELLA/blob/main/ella-sd1.5-tsc-t5xl.safetensors

Resolved the error by addressing missing components: the FLAN-T5-XL models were not correctly placed in ComfyUI/models/t5_model/flan-t5-xl/, and the ELLA model was incorrectly located in ComfyUI/models/ella.

Jhaul1974 commented 2 months ago

Encountered the same issue with the model is downloaded from: https://huggingface.co/QQGYLab/ELLA/blob/main/ella-sd1.5-tsc-t5xl.safetensors

Resolved the error by addressing missing components: the FLAN-T5-XL models were not correctly placed in ComfyUI/models/t5_model/flan-t5-xl/, and the ELLA model was incorrectly located in ComfyUI/models/ella.

same issue which is the correct location? tanks

quixot1c commented 2 months ago

From the Readme of this repo:

In summary, you should have the following model directory structure: ComfyUI/models/ella/ella-sd1.5-tsc-t5xl.safetensors ComfyUI/models/t5_model/flan-t5-xl/all_downloaded_t5_models

Mladen2802 commented 2 months ago

I am still getting same issue. My directory structure looks ok. image

JakeSSRN commented 2 months ago

Same issue. All models are placed correctly. Any luck?