Add format metadata to CLIP save to make compatible with diffusers safetensors loading (#4233)
This commit is contained in:
parent
841e74ac40
commit
f3bc40223a
|
@ -264,6 +264,7 @@ class CLIPSave:
|
|||
|
||||
metadata = {}
|
||||
if not args.disable_metadata:
|
||||
metadata["format"] = "pt"
|
||||
metadata["prompt"] = prompt_info
|
||||
if extra_pnginfo is not None:
|
||||
for x in extra_pnginfo:
|
||||
|
|
Loading…
Reference in New Issue