mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-11-04 23:37:31 +00:00
[PR #2105] [MERGED] Add Custom Node - Save Checkpoint with Metadata #2283
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/ComfyUI-Manager#2283
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/ComfyUI-Manager/pull/2105
Author: @a-l-e-x-d-s-9
Created: 8/25/2025
Status: ✅ Merged
Merged: 8/26/2025
Merged by: @ltdrdata
Base:
main← Head:main📝 Commits (2)
931ff63Added entry for ComfyUI-SaveCheckpointWithMetadata891d343Added entry for ComfyUI-SaveCheckpointWithMetadata in git-clone section📊 Changes
1 file changed (+10 additions, -1 deletions)
View changed files
📝
custom-node-list.json(+10 -1)📄 Description
Summary
Adds a custom node that saves
.safetensorscheckpoints with explicit control over metadata and filename behavior.Repository
Motivation
Stock save nodes do not let users fully replace or precisely control safetensors header metadata. This node enables a clean replace or a minimal merge of metadata, and exposes predictable filename policies.
Key Features
metadata_json: write exact header keys. Non-strings are JSON-encoded to comply with safetensors.metadata_mode:replace: write onlymetadata_json.merge_minimal: base header includes prompt and optionalEXTRA_PNGINFO, then applymetadata_json(user keys win).prompt_override: visible field to override hidden PROMPT in merge mode.filename_mode:smart_counter: first save uses unsuffixedprefix.safetensorsif free; subsequent saves useprefix_00001_,prefix_00002_, etc., based on existing files.no_counter_overwrite: always write toprefix.safetensorsand overwrite if it exists.ckpt_path: final file path.saved_metadata: final header JSON written.saved_prompt: value stored underprompt(if any).saved_extra_pnginfo: subset ofEXTRA_PNGINFOactually merged.Security and Behavior
comfy.sd.save_checkpoint.Install Type
git-clone🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.