mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-06 09:07:04 +08:00
Merge e0c5a8778af5f5978ccbddf364417ce4561b5d5f into d9c80a85e54ebdd5aaba3374d76a6e32e1988c97
This commit is contained in:
commit
78f0ad1b59
@ -146,6 +146,7 @@ def insert_or_replace_vorbis_comment(flac_io, comment_dict):
|
||||
|
||||
class SaveAudio:
|
||||
def __init__(self):
|
||||
self.id: str
|
||||
self.output_dir = folder_paths.get_output_directory()
|
||||
self.type = "output"
|
||||
self.prefix_append = ""
|
||||
@ -176,6 +177,7 @@ class SaveAudio:
|
||||
if extra_pnginfo is not None:
|
||||
for x in extra_pnginfo:
|
||||
metadata[x] = json.dumps(extra_pnginfo[x])
|
||||
metadata["output_node_id"] = self.id
|
||||
|
||||
for (batch_number, waveform) in enumerate(audio["waveform"].cpu()):
|
||||
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
|
||||
|
||||
@ -311,6 +311,7 @@ def execute(server, dynprompt, caches, current_item, extra_data, executed, promp
|
||||
obj = caches.objects.get(unique_id)
|
||||
if obj is None:
|
||||
obj = class_def()
|
||||
obj.id = unique_id
|
||||
caches.objects.set(unique_id, obj)
|
||||
|
||||
if hasattr(obj, "check_lazy_status"):
|
||||
|
||||
2
nodes.py
2
nodes.py
@ -1557,6 +1557,7 @@ class KSamplerAdvanced:
|
||||
|
||||
class SaveImage:
|
||||
def __init__(self):
|
||||
self.id: str
|
||||
self.output_dir = folder_paths.get_output_directory()
|
||||
self.type = "output"
|
||||
self.prefix_append = ""
|
||||
@ -1597,6 +1598,7 @@ class SaveImage:
|
||||
if extra_pnginfo is not None:
|
||||
for x in extra_pnginfo:
|
||||
metadata.add_text(x, json.dumps(extra_pnginfo[x]))
|
||||
metadata.add_text("output_node_id", self.id)
|
||||
|
||||
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
|
||||
file = f"{filename_with_batch_num}_{counter:05}_.png"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user