1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

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 841e74ac40
commit f3bc40223a

View File

@@ -264,6 +264,7 @@ class CLIPSave:
metadata = {} metadata = {}
if not args.disable_metadata: if not args.disable_metadata:
metadata["format"] = "pt"
metadata["prompt"] = prompt_info metadata["prompt"] = prompt_info
if extra_pnginfo is not None: if extra_pnginfo is not None:
for x in extra_pnginfo: for x in extra_pnginfo: