Add format metadata to CLIP save to make compatible with diffusers safetensors loading (#4233)

This commit is contained in:
Silver 2024-08-06 07:45:24 +02:00 committed by GitHub
parent e4558e56aa
commit a4c5e04e27

View File

@ -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: