ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Error happend:safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer

Open CuteBadEgg opened this issue 10 months ago • 11 comments

When I load the ControlNet model I trained with diffusers, I receive an error message:safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer.how to solve it? 20240408-103718

CuteBadEgg avatar Apr 08 '24 02:04 CuteBadEgg

I think your safetensors file is most likely corrupted. MetadataIncompleteBuffer is explained as "The metadata is invalid because the data offsets of the tensor does not fully cover the buffer part of the file. The last offset must be the end of the file. "

Alternatively, it could be a bug in the safetensors library.

Either way, this is not a bug in ComfyUI.

asagi4 avatar Apr 08 '24 12:04 asagi4