Skip to content

Commit f3bc402

Browse files
authored
Add format metadata to CLIP save to make compatible with diffusers safetensors loading (#4233)
1 parent 841e74a commit f3bc402

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

comfy_extras/nodes_model_merging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ def save(self, clip, filename_prefix, prompt=None, extra_pnginfo=None):
264264

265265
metadata = {}
266266
if not args.disable_metadata:
267+
metadata["format"] = "pt"
267268
metadata["prompt"] = prompt_info
268269
if extra_pnginfo is not None:
269270
for x in extra_pnginfo:

0 commit comments

Comments
 (0)