XLabs-AI / x-flux

Apache License 2.0
1.63k stars 118 forks source link

safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge #64

Closed LilyXiehn closed 3 months ago

LilyXiehn commented 3 months ago

when i finished training lora model, i must convert it to comfyui format: https://huggingface.co/comfyanonymous/flux_RealismLora_converted_comfyui/blob/main/convert.py, then i git the error:safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge,this means my model fie is corrupted,how can i solve it?

LilyXiehn commented 3 months ago

i solved it, i should fist convert lora.bin to lora.safetensors