HEL-892 document Z-Image eighteen-style general a reference

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-31 18:42:45 +08:00
co-authored by multica-agent
parent d3447f2e66
commit 0472551155
179 changed files with 172126 additions and 1 deletions
@@ -15,6 +15,9 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
DEFINITIONS = {
(
"example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json"
): "3487c8fc3ea14f1469b2bc1f9d5d8ea590728ebc40fb6d9ad06a77f1583210e7",
(
"example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json"
): "eb7640e36f7df5f0f5b0d05033a580c954b6db2cb4d087446acc8c9844dec6f4",
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,198 @@
"Exact graph binding, all saved positions, dual scopes and closed eligibility."
import copy
import hashlib
import json
import runpy
import sys
from pathlib import Path
import pytest
from calliope.comfyui.fixed_document import DEFINITIONS, canonical
from calliope.comfyui.library import build_document
from calliope.comfyui.source_reviews import review_for
REPO = Path(__file__).resolve().parents[2]
OUT = REPO / ("docs/hel-892/zimage-generala-document-evidence")
PATH = "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json"
RAW = (REPO / PATH).read_bytes()
SOURCE = json.loads(RAW)
REVIEW = review_for(PATH, hashlib.sha1(RAW).hexdigest())
BLOCK = REVIEW["fixed_version_document"]
def pointer(obj, p):
for x in p.strip("/").split("/"):
obj = obj[int(x)] if isinstance(obj, list) else obj[x]
return obj
def doc(s=SOURCE, r=REVIEW):
return build_document(PATH, s, None, None, [], r)
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
def test_each_saved_position_and_citation(f):
assert canonical(pointer(SOURCE, f["pointer"])) == canonical(f["value"])
assert type(pointer(SOURCE, f["pointer"])).__name__ == f["json_type"]
assert "无此具名保存键" in f["named_pointer"] and "named_value" not in f
assert all(
f[k] for k in ["label", "unit", "limits", "schema_default", "effect", "execution_note"]
)
if f["input_pointer"].startswith("/"):
assert pointer(SOURCE, f["input_pointer"])["name"] == f["input_name"]
for i in f["evidence"]:
e = BLOCK["sources"][i]
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["source", "text"])
def test_caller_rehash_cannot_expand_trust(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
p, _, key = f["pointer"].rpartition("/")
pointer(s, p)[int(key)] = "forged"
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
assert not doc(s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize("key", ["extra", "links", "id", "groups", "version"])
def test_whole_graph_mutations_fail_closed(key):
source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
source[key] = "forged"
review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(
canonical(source)
).hexdigest()
assert not doc(source, review)["fixed_version"]["matched"]
@pytest.mark.parametrize("key", ["mode", "properties", "inputs", "outputs"])
@pytest.mark.parametrize("index", [0, 4, 7, 8])
def test_node_identity_and_state_fail_closed(key, index):
source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
source["nodes"][index][key] = "forged"
review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(
canonical(source)
).hexdigest()
assert not doc(source, review)["fixed_version"]["matched"]
def test_exact_build_and_qualification():
assert canonical(runpy.run_path(str(OUT / "build_definition.py"))["build"]()) == canonical(
BLOCK
)
assert len(DEFINITIONS) == 75 and doc()["fixed_version"]["matched"]
assert BLOCK["counts"]["saved_fields"] == 175 and BLOCK["counts"]["root_saved_fields"] == 175
assert BLOCK["counts"]["source_notes"] == 4 and len(BLOCK["comments"]) == 4
assert not doc()["status"]["doc_done"] and not doc()["status"]["exec_verified"]
sys.path.insert(0, str(OUT))
try:
runpy.run_path(str(OUT / "verify_sources.py"))["main"]()
finally:
sys.path.remove(str(OUT))
def test_path_and_source_binding_cannot_be_extended():
from calliope.comfyui.fixed_document import fixed_document_for
assert fixed_document_for(PATH + "forged", SOURCE, REVIEW) is None
review = copy.deepcopy(REVIEW)
review["source_sha"] = "forged"
assert not doc(SOURCE, review)["fixed_version"]["matched"]
@pytest.mark.parametrize("suffix", [b"\n", b" ", b"\t"])
def test_original_byte_identity_rejects_equivalent_json(suffix):
altered = RAW + suffix
assert json.loads(altered) == SOURCE
assert review_for(PATH, hashlib.sha1(altered).hexdigest()) is None
@pytest.mark.parametrize("key", ["user_overview", "source_sha256", "sources", "flow", "counts"])
def test_editorial_or_citation_rehash_cannot_replace_code_owned_pin(key):
source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
review["fixed_version_document"][key] = "forged"
review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(
canonical(source)
).hexdigest()
assert not doc(source, review)["fixed_version"]["matched"]
def test_static_templates_modes_objects_bad_and_branches():
ns = {n["id"]: n for n in SOURCE["nodes"]}
assert len(SOURCE["nodes"]) == 266 and len(SOURCE["links"]) == 332
assert sum(n["mode"] == 2 for n in ns.values()) == 38 and "definitions" not in SOURCE
templates = [n for n in ns.values() if n["type"] == "PrimitiveStringMultiline"]
assert len(templates) == 18 and [n["id"] for n in templates if n["mode"] == 0] == [125]
assert all("{$@}" in n["widgets_values"][0] for n in templates)
assert ns[392]["widgets_values"] == [{}, {"type": "PowerLoraLoaderHeaderWidget"}, {}, ""]
assert ns[566]["inputs"][0]["label"] == "BAD" and ns[566]["inputs"][0]["type"] == "*"
assert not ns[57]["widgets_values"][0].endswith("\n") and ns[385]["widgets_values"][1] == "Both"
assert ns[60]["widgets_values"] == [""] and ns[6]["widgets_values"] == [""]
assert ns[50]["inputs"][0]["link"] is None and ns[50]["inputs"][5]["link"] == 936
assert ns[563]["widgets_values"][3] == 20 and ns[563]["widgets_values"][7:9] == [18, 20]
assert ns[244]["widgets_values"] == [1088, 1600, 1] and ns[56]["widgets_values"] == [
944,
1408,
1,
]
assert [n["link"] for n in ns[244]["inputs"]] == [1410, 1411, 1420]
assert SOURCE["extra"]["frontendVersion"] == "1.35.9"
assert sum(n["type"] == "VAEDecode" for n in ns.values()) == 6
assert not any("widgets_values_named" in n for n in ns.values())
@pytest.mark.parametrize("note", BLOCK["comments"])
def test_full_note_original_and_forgery(note):
assert pointer(SOURCE, note["pointer"]) == note["text"]
r = copy.deepcopy(REVIEW)
r["fixed_version_document"]["comments"][BLOCK["comments"].index(note)]["text"] = "forged"
assert not doc(SOURCE, r)["fixed_version"]["matched"]
@pytest.mark.parametrize("key", ["properties", "inputs", "outputs", "mode"])
@pytest.mark.parametrize("nid", [125, 524, 531, 37, 459, 392, 566, 96, 307, 244, 9])
def test_control_identity_and_state_forgery_fail_closed(nid, key):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
next(n for n in s["nodes"] if n["id"] == nid)[key] = "forged"
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
assert not doc(s, r)["fixed_version"]["matched"]
def test_general_a_active_style_history_and_switches_are_independent():
ns = {n["id"]: n for n in SOURCE["nodes"]}
assert hashlib.sha256(RAW).hexdigest() == (
"e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
)
assert ns[125]["mode"] == 0 and ns[38]["mode"] == 2
assert "android phone cam-quality" in ns[125]["widgets_values"][0]
assert "Hollywood golden age" in ns[38]["widgets_values"][0]
assert "Dynamic Heroic Realism" in ns[165]["widgets_values"][0]
assert ns[524]["mode"] == 0 and ns[531]["mode"] == 2
assert ns[572]["widgets_values"] == [r"Z-Image\Z-Image_RED_v1.5.safetensors", "default"]
assert ns[9]["outputs"] == []
assert [i["name"] for i in ns[341]["inputs"]] == ["image", "seed", "strength"]
seed = next(f for f in BLOCK["fields"] if f["node_id"] == "341" and f["field"] == "seed")
assert seed["input_pointer"] == "/nodes/159/inputs/1"
assert pointer(SOURCE, "/nodes/258/inputs/0") == ns[566]["inputs"][0]
text = ns[57]["widgets_values"][0]
assert "steampunk workshop" in text and "mechanical spider" in text
assert text == ns[54]["widgets_values"][0] == ns[385]["widgets_values"][0]
assert not text.endswith("\n")
assert {n["node_id"]: len(n["text"]) for n in BLOCK["comments"]} == {
"111": 234,
"569": 209,
"570": 622,
"571": 1615,
}
prerequisite = next(n for n in BLOCK["comments"] if n["node_id"] == "571")["text"]
assert prerequisite.startswith("Amazing Z-Image WF v4.0") and "## More Info ##" in prerequisite
assert "Created by Martin Rizzo" in prerequisite
assert BLOCK["counts"]["linked_saved_fields"] == 14
assert "仅125手机摄影" in BLOCK["user_overview"]
assert "不代表当前模板或生成内容" in BLOCK["user_overview"]
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,24 @@
{
"total": 155,
"audit_scope": "current_delivery",
"source_files": 156,
"target_files": 155,
"user_excluded": 1,
"source_structure_purpose_partially_reviewed": 155,
"full_documents_completed": 0,
"files_with_selected_named_fields_reviewed": 41,
"selected_named_fields_reviewed": 1217,
"real_executions": 0,
"states": {
"pending_check": 16,
"needs_conversion": 139
},
"named_values_preserved": 1217,
"unnamed_widget_nodes": 3660,
"semantic_batch_files": 139,
"semantic_batch_without_named_fields": 114,
"semantic_batch_named_fields": 490,
"named_values_without_manual_field_review": 0,
"named_values_without_verified_units_ranges_effects": 1217,
"scope_limit": "人工结论与机械原值清单分开;源语义局部审校非完整说明定稿"
}
@@ -0,0 +1,4 @@
Building source distribution...
Building wheel from source distribution...
Successfully built calliope-backend/dist/calliope-1.5.8.tar.gz
Successfully built calliope-backend/dist/calliope-1.5.8-py3-none-any.whl
@@ -0,0 +1,96 @@
{
"fixed_count": 233,
"fixed_paths": {
"/api/workflows": 3,
"/api/workflows/86": 4,
"/api/workflows/85": 4,
"/api/workflows/84": 3,
"/api/workflows/74": 3,
"/api/workflows/73": 3,
"/api/workflows/72": 3,
"/api/workflows/83": 3,
"/api/workflows/82": 3,
"/api/workflows/81": 3,
"/api/workflows/80": 3,
"/api/workflows/79": 3,
"/api/workflows/78": 3,
"/api/workflows/77": 3,
"/api/workflows/76": 3,
"/api/workflows/75": 3,
"/api/workflows/54": 3,
"/api/workflows/55": 3,
"/api/workflows/56": 3,
"/api/workflows/58": 3,
"/api/workflows/57": 3,
"/api/workflows/44": 3,
"/api/workflows/53": 3,
"/api/workflows/52": 3,
"/api/workflows/51": 3,
"/api/workflows/50": 3,
"/api/workflows/49": 3,
"/api/workflows/47": 3,
"/api/workflows/48": 3,
"/api/workflows/46": 3,
"/api/workflows/45": 3,
"/api/workflows/42": 3,
"/api/workflows/41": 3,
"/api/workflows/40": 3,
"/api/workflows/39": 3,
"/api/workflows/38": 3,
"/api/workflows/37": 3,
"/api/workflows/18": 3,
"/api/workflows/20": 3,
"/api/workflows/30": 3,
"/api/workflows/32": 3,
"/api/workflows/34": 3,
"/api/workflows/33": 3,
"/api/workflows/31": 3,
"/api/workflows/29": 3,
"/api/workflows/28": 3,
"/api/workflows/27": 3,
"/api/workflows/26": 3,
"/api/workflows/17": 3,
"/api/workflows/4": 3,
"/api/workflows/15": 3,
"/api/workflows/11": 3,
"/api/workflows/3": 3,
"/api/workflows/9": 3,
"/api/workflows/16": 3,
"/api/workflows/10": 3,
"/api/workflows/23": 3,
"/api/workflows/8": 3,
"/api/workflows/22": 3,
"/api/workflows/5": 3,
"/api/workflows/6": 3,
"/api/workflows/7": 3,
"/api/workflows/19": 3,
"/api/workflows/13": 3,
"/api/workflows/12": 3,
"/api/workflows/64": 3,
"/api/workflows/62": 3,
"/api/workflows/70": 3,
"/api/workflows/1": 3,
"/api/workflows/36": 3,
"/api/workflows/35": 3,
"/api/workflows/2": 3,
"/api/workflows/25": 3,
"/api/workflows/24": 3,
"/api/workflows/21": 3,
"/api/workflows/14": 3,
"/api/settings": 1,
"/api/workflows/156": 1,
"/api/workflows/157": 1
},
"polling_count": 40,
"polling_paths": {
"/api/jobs": 40
},
"readiness_gets": 1,
"detail_fixture_intercepts": 6,
"fixed_paths_browser_minus_fixtures_plus_readiness_matches_backend": true,
"polling_snapshot_delta": {
"/api/jobs": 0,
"/api/events": 0
},
"polling_snapshot_tolerance": 1
}
@@ -0,0 +1,16 @@
........................................................................ [ 11%]
........................................................................ [ 23%]
........................................................................ [ 34%]
........................................................................ [ 46%]
........................................................................ [ 58%]
........................................................................ [ 69%]
........................................................................ [ 81%]
........................................................................ [ 93%]
........................................... [100%]
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-8d94b12fc336/workdir/aigc-home/calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
619 passed, 1 warning in 15.28s
@@ -0,0 +1,728 @@
{
"base": "d3447f2e6600c515d712127d8cab01ecae72bf48",
"files": [
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed"
},
{
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49"
},
{
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c"
},
{
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a"
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071"
},
{
"path": "docs/hel-892/supplied-api/02.api.json",
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b"
},
{
"path": "docs/hel-892/supplied-api/01.api.json",
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e"
},
{
"path": "docs/hel-892/supplied-api/07.api.json",
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d"
},
{
"path": "docs/hel-892/supplied-api/06.api.json",
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b"
},
{
"path": "docs/hel-892/supplied-api/04.api.json",
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e"
},
{
"path": "docs/hel-892/supplied-api/03.api.json",
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce"
},
{
"path": "docs/hel-892/supplied-api/05.api.json",
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8"
},
{
"path": "calliope-backend/src/calliope/comfyui/registry.py",
"sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d"
},
{
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
},
{
"path": "calliope-backend/src/calliope/comfyui/client.py",
"sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72"
},
{
"path": "calliope-backend/src/calliope/comfyui/output_map.py",
"sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.py",
"sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4"
},
{
"path": "calliope-backend/src/calliope/routers/workflows.py",
"sha256": "3f1d5fdacc841080973dcafb9cd87a42433ec19080a3ff14a29561f13d512c97"
},
{
"path": "calliope-backend/src/calliope/queue/worker.py",
"sha256": "54f5505ae78802f77fedf23690579444c9ccfbb0949b32f9e96980e8d55c2d3b"
},
{
"path": "docs/hel-892/h3-chain-evidence/library.json",
"sha256": "667c09ebd5ba14c281366a1b9f7647d74f74e055a863b121d9324ac75a423cd4"
},
{
"path": "docs/hel-892/media-evidence/protected-six-cases.json",
"sha256": "c2b9dffd7f1a9c5f0de51c26c9dd81beedd3ad7f6b67a54aa3eb5cead55c8c5f"
},
{
"path": "calliope-backend/src/calliope/comfyui/structure_reference.py",
"sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb"
},
{
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
"sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1"
},
{
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
"sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py",
"sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py",
"sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741"
},
{
"path": "calliope-backend/src/calliope/comfyui/library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
}
],
"originals": 156,
"old_blocks_unchanged": 74,
"drawer_css_unchanged": true,
"drawer_whole_file_unchanged": true,
"drawer_sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1",
"conversion_rerun": false,
"profiles_28_candidates_9_diffs_6": "unchanged"
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,553 @@
"Exact-source general a_ workflow reference; no upstream execution."
import ast
import hashlib
import json
from pathlib import Path
REPO = Path(__file__).resolve().parents[3]
OUT = Path(__file__).resolve().parent
REF = OUT.parent / "zimage-generala-reference"
PATHS = [("example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json")]
def canonical(v):
return json.dumps(v, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
LAYOUTS = {
"CLIPTextEncode": ["text"],
"EmptyLatentImage": ["width", "height", "batch_size"],
"EmptySD3LatentImage": ["width", "height", "batch_size"],
"KSamplerAdvanced": [
"add_noise",
"noise_seed",
"seed_control_candidate",
"steps",
"cfg",
"sampler_name",
"scheduler",
"start_at_step",
"end_at_step",
"return_with_leftover_noise",
],
"PrimitiveString": ["value"],
"StringReplace": ["string", "find", "replace"],
"SetFirstSigma": ["sigma"],
"ExtendIntermediateSigmas": ["steps", "start_at_sigma", "end_at_sigma", "spacing"],
"KarrasScheduler": ["steps", "sigma_max", "sigma_min", "rho"],
"SplitSigmas": ["step"],
"KSamplerSelect": ["sampler_name"],
"Display Any (rgthree)": ["saved_display_text"],
"StringTrim": ["string", "mode"],
"PrimitiveInt": ["value", "seed_control_candidate"],
"SamplerCustom": ["add_noise", "noise_seed", "seed_control_candidate", "cfg"],
"Image Resize (rgthree)": ["measurement", "width", "height", "fit", "method"],
"ImageAddNoise": ["seed", "seed_control_candidate", "strength"],
"Power Lora Loader (rgthree)": [
"saved_object_0",
"saved_header_object",
"saved_object_2",
"saved_empty_string",
],
"SaveImage": ["filename_prefix"],
"UpscaleModelLoader": ["model_name"],
"PrimitiveStringMultiline": ["value"],
"UNETLoader": ["unet_name", "weight_dtype"],
"CLIPLoader": ["clip_name", "type", "device"],
"VAELoader": ["vae_name"],
"PrimitiveNode": ["author_text"],
}
LABELS = {
"text": "完整编码缓存文本",
"width": "宽度/水平尺寸保存值",
"height": "高度/垂直尺寸保存值",
"batch_size": "批量保存值",
"add_noise": "加噪选择",
"noise_seed": "噪声种子保存值",
"seed": "种子保存值",
"seed_control_candidate": "前端种子控制辅助",
"steps": "步数保存值",
"cfg": "引导系数",
"sampler_name": "采样器",
"scheduler": "调度器",
"start_at_step": "采样起点保存值",
"end_at_step": "采样终点保存值",
"return_with_leftover_noise": "保留剩余噪声选择",
"value": "完整模板/整数/标签原值",
"string": "完整字符串缓存",
"find": "查找字符串",
"replace": "替换字符串",
"sigma": "首sigma保存值",
"start_at_sigma": "扩展起始sigma条件",
"end_at_sigma": "扩展结束sigma条件",
"spacing": "sigma扩展间隔选择",
"sigma_max": "sigma上界保存值",
"sigma_min": "sigma下界保存值",
"rho": "Karras rho保存值",
"step": "拆分位置保存值",
"saved_display_text": "完整显示历史(非本次产物)",
"mode": "修剪模式",
"measurement": "尺寸度量选择",
"fit": "适配条件",
"method": "插值方法",
"strength": "加噪强度",
"saved_object_0": "完整保存对象0(非LoRA配置)",
"saved_header_object": "完整Header控件对象",
"saved_object_2": "完整保存对象2(非LoRA配置)",
"saved_empty_string": "完整末尾空串",
"filename_prefix": "正式保存前缀字符串",
"model_name": "放大模型引用",
"unet_name": "扩散模型引用",
"weight_dtype": "权重类型",
"clip_name": "文本模型引用",
"type": "编码器类型",
"device": "设备选择",
"vae_name": "VAE引用",
"author_text": "完整作者英文(原样保留)",
}
NOTE_MEANING = {
"111": (
"作者说明黄色组缩放快捷键、LoRA与模式选择"
"器可能影响质量。仅文案,不模拟快捷键、切换组"
"或保证质量。"
),
"569": (
"作者称BAD连接用于避免插图模式同时启用RE"
"FINER/UPSCALER,实际节点566"
"输入label='BAD',不是据此判非法边"
"/类型;互斥控制未认证,不修图。"
),
"571": (
"作者前置Amazing Z-Image WF"
" v4.0的rgthree、四模型/目录/U"
"RL及More Info/作者信息全文保留。"
"实际RED引用和前置bf16建议分层,模型/"
"源码许可、目标依赖与宿主恢复未知。所有链接仅"
"文本,不浏览/下载或当已安装。"
),
"570": (
"作者说明{$@}模板标签、可选{$spicy"
"-content-with}及尚未完全验证的"
"风格观察/实验性增强器;完整原文保留,不替换"
"标签、执行拼接或保证效果。"
),
}
def provider(node):
p = node.get("properties", {})
if p.get("cnr_id") == "comfy-core":
return "core" + p["ver"].replace(".", "")
if p.get("cnr_id") == "rgthree-comfy":
return {
"e9d56181883d4e05c4236f09422582f49abdec86": "rgold",
"8ff50e4521881eca1fe26aec9615fc9362474931": "rgnew",
"1.0.2511270846": "rgpkg",
}.get(p.get("ver"))
return None
def build(index=0):
raw = (REPO / PATHS[index]).read_bytes()
g = json.loads(raw)
editorial = json.loads((OUT / "editorial.json").read_bytes())
scopes = [("", "", g)]
nodes = [
(pre + ":" + str(n["id"]) if pre else str(n["id"]), ptr + f"/nodes/{i}", pre or "root", n)
for (pre, ptr, sg) in scopes
for (i, n) in enumerate(sg["nodes"])
]
manifest = json.loads((REF / "sources.json").read_bytes())["sources"]
sources = []
for e in manifest:
data = (REF / e["local_file"]).read_bytes()
assert hashlib.sha256(data).hexdigest() == e["sha256"]
sources.append(
dict(
e,
local_file="../zimage-generala-reference/" + e["local_file"],
lines=[1, len(data.decode().splitlines())],
claim="本图准确来源原文;Git与发布成员分列,源码许可不等于模型素材许可,未执行",
)
)
class_refs = {}
schemas = {}
for nid, _ptr, _scope, node in nodes:
key = provider(node)
cls = node["type"]
refs = []
for i, e in enumerate(manifest):
if e["id"] != key or not e["file"].endswith(".py"):
continue
data = (REF / e["local_file"]).read_bytes()
try:
tree = ast.parse(data)
except SyntaxError:
continue
symbol = {
"CR Prompt Text": "CR_PromptText",
"PrimitiveString": "String",
"PrimitiveStringMultiline": "StringMultiline",
"PrimitiveInt": "Int",
"Any Switch (rgthree)": "RgthreeAnySwitch",
"LayerUtility: PurgeVRAM": "PurgeVRAM",
"ImageSharpen": "Sharpen",
"easy seed": "easySeed",
"LayerUtility: ImageReel": "ImageReel",
"LayerUtility: ImageReelComposit": "ImageReelComposit",
"ShowText|pysssss": "ShowText",
"Image Comparer (rgthree)": "RgthreeImageComparer",
"Image Resize (rgthree)": "RgthreeImageResize",
"Power Lora Loader (rgthree)": "RgthreePowerLoraLoader",
"Display Any (rgthree)": "RgthreeDisplayAny",
"LayerUtility: ImageScaleByAspectRatio V2": "ImageScaleByAspectRatioV2",
"LayerUtility: PurgeVRAM V2": "PurgeVRAM_V2",
}.get(cls, cls)
for c in ast.walk(tree):
if isinstance(c, ast.ClassDef) and c.name == symbol:
sources.append(
dict(
sources[i],
lines=[c.lineno, c.end_lineno],
claim="本图准确声明类实现;保存索引映射/运行恢复仍需区分",
)
)
refs.append(len(sources) - 1)
for d in ast.walk(c):
if not isinstance(d, ast.Dict):
continue
for k, v in zip(d.keys, d.values, strict=True):
if (
isinstance(k, ast.Constant)
and isinstance(k.value, str)
and isinstance(v, ast.Tuple)
):
default = "无显式default;动态枚举或方法条件见准确原文"
for a in v.elts[1:]:
if isinstance(a, ast.Dict):
for dk, dv in zip(a.keys, a.values, strict=True):
if (
isinstance(dk, ast.Constant)
and dk.value == "default"
):
default = ast.unparse(dv)
schemas[nid, k.value] = (default, ast.unparse(v))
for call in ast.walk(c):
if (
isinstance(call, ast.Call)
and isinstance(call.func, ast.Attribute)
and (call.func.attr == "Input")
and call.args
and isinstance(call.args[0], ast.Constant)
and isinstance(call.args[0].value, str)
):
name = call.args[0].value
default = next(
(ast.unparse(k.value) for k in call.keywords if k.arg == "default"),
"无显式default;不从方法缺省补值",
)
schemas[nid, name] = (default, ast.unparse(call))
class_refs[nid] = refs + [
i
for (i, e) in enumerate(manifest)
if e["id"] == key and (e["file"].endswith("__init__.py") or not refs)
]
(fields, empty, comments, flow) = ([], [], [], [])
for nid, ptr, scope, n in nodes:
cls = n["type"]
if cls in ["Note", "MarkdownNote"]:
comments.append(
dict(
node_id=nid,
pointer=ptr + "/widgets_values/0",
text=n["widgets_values"][0],
meaning=NOTE_MEANING[nid],
evidence=[],
)
)
continue
effect = (
editorial[nid]
+ " 原始mode="
+ str(n["mode"])
+ ("(静音保存态,不当旁路穿透)" if n["mode"] == 2 else "(保存活动态,不认证执行)")
)
flow.extend(
[
effect,
nid + " 原属性 " + json.dumps(n.get("properties", {}), ensure_ascii=False),
nid
+ " 原具名保存(缺键与空对象分列,仅文本) "
+ (
json.dumps(n["widgets_values_named"], ensure_ascii=False)
if "widgets_values_named" in n
else "missing"
),
nid
+ " 原输入/输出(缺键/null/[]分列) "
+ json.dumps({k: n[k] for k in ["inputs", "outputs"]}, ensure_ascii=False),
]
)
if not n.get("widgets_values"):
empty.append(
dict(
node_id=nid,
class_type=cls,
pointer=ptr,
scope=scope,
state="missing" if "widgets_values" not in n else "empty_list",
effect=effect,
)
)
continue
for j, (name, value) in enumerate(zip(LAYOUTS[cls], n["widgets_values"], strict=True)):
matches = [k for (k, x) in enumerate(n["inputs"]) if x["name"] == name]
inp = matches[0] if len(matches) == 1 else None
boundary = False
linked = inp is not None and n["inputs"][inp].get("link") is not None
aux = name in [
"seed_control_candidate",
"saved_display_text",
"author_text",
] or name.startswith("saved_")
(default, limits) = schemas.get(
(nid, name), ("无准确独立后端widget默认", "完整保存位置/前端辅助,不补运行值")
)
if name == "seed_control_candidate":
(default, limits) = (
("准确frontend1.35.9辅助缺省randomize,保存fixed与函数缺省/恢复顺序分开"),
"fixed/increment/decrement/ra"
+ "ndomize;函数缺省与节点调用/恢复顺序分开,不执行",
)
unit = {
"largest_size": "最长边目标像素;按本版分支设置,非仅超限截断",
"scale_by": "图像宽高乘数,非denoise",
"steps": "采样步数接口,不保证实际完整执行",
"cfg": "引导系数,无物理单位",
"denoise": "采样降噪系数,不与图像百分比缩放混同",
"text": "完整作者文本/空串,非产物保证",
"shift": "AuraFlow采样参数,无物理单位",
"seed": "整数种子保存值,非最终执行seed",
"filename_prefix": "保存文件前缀字符串",
"saved_comparison_history": "完整A/B历史列表,仅文本,不访问/view",
"width": ("latent为像素请求;Resize按measurement解释百分比或像素,不试算最终尺寸"),
"height": (
"latent为像素请求;Resize按measurement解释百分比或像素,0值按准确实现条件看"
),
"batch_size": "图像批量数量,非帧率或分辨率",
"strength_model": "LoRA模型权重强度,无物理单位;兼容与效果未知",
"tile_size": "空间分块尺寸接口,像素;准确实现可调整,不保证显存",
"overlap": "空间分块重叠接口,像素;非时间重叠",
"temporal_size": "时间分块尺寸接口,非秒;准确VAE/模型压缩关系待核",
"temporal_overlap": "时间分块重叠接口,非空间像素或秒",
"resize_type.multiplier": "图像宽高乘数,非denoise",
"prompt": "完整作者文本字符串,末尾换行保留;非生成请求",
"purge_cache": "布尔保存开关;准确实现未判断该参数,不能据此阻止清理",
"purge_models": "布尔保存开关;准确实现控制模型卸载,未执行",
"noise_seed": "噪声整数种子;连线覆盖与前端fixed另列,非最终seed",
"value": "模板/标签为完整字符串;PrimitiveInt为整数参考,非最终尺寸或种子",
"author_text": "完整作者英文字符串,无末尾换行",
"saved_display_text": "完整历史字符串,仅文本,非本次产物",
"string": "完整保存字符串;外线覆盖缓存,不执行处理",
"find": "完整查找字符串,空格及标签保留,不执行",
"replace": "完整替换字符串或外线缓存,不执行",
"sigma": "sigma接口保存系数,不计算序列或认证模型范围",
"sigma_max": "sigma上界接口保存系数,不生成调度",
"sigma_min": "sigma下界接口保存系数,不生成调度",
"rho": "Karras调度形状参数,无物理单位,不计算",
"start_at_sigma": "sigma阈值接口保存系数,不计算扩展",
"end_at_sigma": "sigma阈值接口保存系数,不计算扩展",
"start_at_step": "采样步索引保存值,非秒或实际执行步数",
"end_at_step": "采样步索引保存值,非秒或实际执行步数",
"step": "sigmas拆分位置保存值,不计算序列长度",
"strength": "加噪强度接口,无物理单位;不执行噪声",
}.get(name, "保存枚举/模型文件引用/前端对象,无独立物理单位;目标环境未知")
fields.append(
dict(
node_id=nid,
definition_node_id=str(n["id"]),
scope=scope,
class_type=cls,
field=name,
label=LABELS[name],
pointer=f"{ptr}/widgets_values/{j}",
value=value,
json_type=type(value).__name__,
named_pointer=ptr
+ "/widgets_values_named/"
+ {
"alias": "Constant",
"seed_control_candidate": "control_after_generate",
"saved_comparison_history": "rgthree_comparer",
}.get(name, name)
if {
"alias": "Constant",
"seed_control_candidate": "control_after_generate",
"saved_comparison_history": "rgthree_comparer",
}.get(name, name)
in n.get("widgets_values_named", {})
else "源无此具名保存键,不构造值",
**{
"named_value": n["widgets_values_named"][
{
"alias": "Constant",
"seed_control_candidate": "control_after_generate",
"saved_comparison_history": "rgthree_comparer",
}.get(name, name)
]
}
if {
"alias": "Constant",
"seed_control_candidate": "control_after_generate",
"saved_comparison_history": "rgthree_comparer",
}.get(name, name)
in n.get("widgets_values_named", {})
else {},
input_pointer=f"{ptr}/inputs/{inp}"
if inp is not None
else "无可靠独立输入映射:仅保存位置/前端辅助",
input_name=n["inputs"][inp]["name"] if inp is not None else None,
type=n["inputs"][inp]["type"] if inp is not None else "保存参考",
role="frontend_reference_only"
if aux
else "boundary_saved_cache"
if boundary
else "linked_saved_cache"
if linked
else "saved_reference",
schema_default=default,
limits=limits,
unit=unit,
effect=effect,
evidence=class_refs[nid]
+ (
[
i
for (i, e) in enumerate(manifest)
if e["id"] == "frontend" and e["file"] == "src/scripts/widgets.ts"
]
if name == "seed_control_candidate"
else []
),
execution_note="仅静态参考,不构造prompt或执行上游/模型/GPU/"
+ "媒体/随机/钩子/恢复/表达式/缓存清理;转换执行资格不"
+ "变。",
)
)
for (nid, name), (default, limits) in schemas.items():
flow.append(
f"节点{nid}准确具名schema {name}:default={default};{limits}。"
"仅接口参考,不补缺保存或认证运行恢复。"
)
for pre, ptr, sg in scopes:
flow.extend(
((pre or "root") + " 物理边 " + json.dumps(e, ensure_ascii=False) for e in sg["links"])
)
boundaries = []
flow.extend(json.loads((OUT / "findings.json").read_bytes())["findings"])
for note in comments:
flow.append("注释" + note["node_id"] + " 中文核对:" + note["meaning"])
overview = (
"这张通用a_图将Z-Image文生图与十八份"
"混合插画/摄影模板、分段sigma采样、重采"
"样和模型放大分支组合。仅125手机摄影模板保"
"存mode0,其余17份mode2;165仍"
"是Dynamic Heroic Realis"
"m漫画封面历史,不代表当前模板或生成内容。完"
"整英文主提示、空编码缓存和LoRA对象原样保"
"留。524活动/531静音分别看,RED兼容"
"、控制器和转接恢复未核;不拼装prompt或"
"保证18路/18张、最终尺寸与效果。"
)
assert len(fields) == 175 and len(comments) == 4
return dict(
source_path=PATHS[index],
source_sha1=hashlib.sha1(raw).hexdigest(),
source_sha256=hashlib.sha256(raw).hexdigest(),
canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),
notice="仅参考:目标依赖/静音控制/转接与动态口恢复未核,转换执行资格不变。",
user_overview=overview,
versions=[
f"{e['id']} {e['tag']} commit {e['commit']} tree {e['tree']};许可{e['license_file']}"
for e in {e["id"]: e for e in manifest}.values()
]
+ [
(
"旧74块3464位置+90注释冻结;新增17"
"5位置/4注释,总75图3639位置+94注"
"释仅参考;local_file以docs/h"
"el-892/zimage-generala"
"-document-evidence为基准。"
)
],
counts=dict(
saved_fields=175,
root_saved_fields=175,
internal_saved_fields=0,
linked_saved_fields=sum((f["role"] == "linked_saved_cache" for f in fields)),
boundary_saved_fields=sum((f["role"] == "boundary_saved_cache" for f in fields)),
frontend_only=sum((f["role"] == "frontend_reference_only" for f in fields)),
source_nodes=266,
root_nodes=266,
internal_nodes=0,
physical_edges=332,
source_notes=4,
saved_objects=3,
history_objects=0,
display_history_texts=1,
final_scalars=0,
final_prompt_constructed=False,
),
fields=fields,
sources=sources,
comments=comments,
flow=flow,
flow_evidence=list(range(len(sources))),
zero_saved_nodes=empty,
boundaries=boundaries,
steps=[
overview,
(
"阅读1:十八份插画/摄影模板完整保留,仅12"
"5手机摄影活动,其余17份静音;38是黄金时"
"代胶片模板。57/54/385英文无末尾换行"
"与165漫画封面历史不合并,后者不证明当前生"
"成。6/60空串、Both及四替换串分列,不"
"替换标签/拼prompt。"
),
(
"阅读2:524保存mode0、531保存mo"
"de2,动态口/index/label与直接"
"边原样看;四Muter/五Repeater/"
"五Collector无身份处保持未知,16S"
"witch/普通与rgthree转接不补身份"
"、不追线,不模拟惰性、静音传播/互斥或控制图"
"恢复。566 BAD只是标签。"
),
(
"阅读3:56四通道空latent与244十六"
"通道接口、六PrimitiveInt静音及覆"
"线分开。两Advanced/五Custom/"
"五Karras/三Split/两SetFir"
"st/两Extend保存参数和latent出"
"口分别看,不计算sigma或承诺无缝接力/完"
"整步数/可复现。"
),
(
"阅读4:六Decode与两模型放大/五Res"
"ize/加噪逐链声明;百分比和area/bi"
"linear/contain只条件,不试算尺"
"寸/加载模型。Save9仅按原images边"
"714和正式output源码说明,日期模板只"
"字符串;不造媒体产物或同时执行保证。"
),
(
"常见问题:标题18风格不等于18路活动;空L"
"oRA对象不等于已装LoRA;作者前置URL"
"不等于依赖/许可已满足。模型/运行支持未知,"
"155定稿、可靠转换、环境核对和必要实跑仍未"
"完成。"
),
],
)
@@ -0,0 +1,75 @@
"Collect final completed browser evidence and independently verify port release."
import collections
import json
import re
import shutil
import socket
from pathlib import Path
from urllib.parse import urlsplit
ROOT = Path(__file__).resolve().parents[3]
OUT = Path(__file__).resolve().parent
LOCAL = ROOT / (".local-evidence/zimage-generala-document/browser")
def main():
stopped = json.loads((LOCAL / "service-stop.json").read_bytes())
assert stopped["ports_released"] == [8247, 5173]
ports = []
for port in [8247, 5173]:
with socket.socket() as s:
s.settimeout(1)
result = s.connect_ex(("127.0.0.1", port))
assert result != 0
ports.append({"port": port, "connect_ex": result, "connection_refused": True})
data = json.loads((LOCAL / "browser-results.json").read_bytes())
assert not data["errors"] and data["viewports"] == [1440, 390]
backend = collections.Counter(
re.findall('"GET ([^ ]+) HTTP/1.1"', (LOCAL / "service-0.log").read_text())
)
polling = {p: n for (p, n) in backend.items() if p in ["/api/events", "/api/jobs"]}
fixed = {p: n for (p, n) in backend.items() if p not in polling}
browser = collections.Counter((urlsplit(r["url"]).path for r in data["requests"]))
intercepted = collections.Counter((urlsplit(r["url"]).path for r in data["interceptions"]))
expected = browser.copy()
for p, n in intercepted.items():
expected[p] -= n
expected["/api/workflows"] += 1
polling_delta = {p: backend[p] - expected[p] for p in ["/api/jobs", "/api/events"]}
assert all((abs(n) <= 1 for n in polling_delta.values()))
assert {p: n for (p, n) in expected.items() if p not in polling_delta} == fixed
counts = {
"fixed_count": sum(fixed.values()),
"fixed_paths": fixed,
"polling_count": sum(polling.values()),
"polling_paths": polling,
"readiness_gets": 1,
"detail_fixture_intercepts": len(data["interceptions"]),
("fixed_paths_browser_minus_fixtures_plus_readiness_matches_backend"): True,
"polling_snapshot_delta": polling_delta,
"polling_snapshot_tolerance": 1,
}
(OUT / "backend-request-counts.json").write_text(
json.dumps(counts, ensure_ascii=False, indent=2) + "\n"
)
(OUT / "ports-independent.json").write_text(json.dumps(ports, indent=2) + "\n")
for name in ["browser-results.json", "service-stop.json", "service-0.log", "service-1.log"]:
shutil.copyfile(LOCAL / name, OUT / name.replace(".log", ".txt"))
print(
"PASS browser",
data["assertion_count"],
data["assertionGroups"],
"fixed/polling/fixture",
data["request_accounting"]["fixed_count"],
data["request_accounting"]["polling_count"],
len(data["interceptions"]),
"backend",
counts["fixed_count"],
counts["polling_count"],
"readiness1; independently refused8247/5173",
)
if __name__ == "__main__":
main()
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,21 @@
第94批仅处理 `Z_Image_turbo_十八种风格_通用a_.json`,保持a_原拼,不连做通用b。原分支agent/agent/a64a969a6a44/PR25/base main继续,真实基线d3447f2e6600c515d712127d8cab01ecae72bf48。
原字节SHA256 `e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23`;266根节点332物理边,无子图,228 mode0/38 mode2。175位置=172标量+392三完整对象,另四完整Note;27节点widgets=[]、161缺键、无具名键。输入label、完整输出形态和节点顺序从本图重新取指针,物理边清单相同不证明恢复、路径或执行等价。
混合插画/摄影十八模板仅125 android phone cam-quality活动,38黄金时代电影及其余16份静音;完整原文、标签、罕见空格/连字符/作者拼写保留,不拼prompt或求值。165是Dynamic Heroic Realism漫画封面/城市交通go-kart完整历史,与125当前模板及57/54/385英文主提示分别保留,不去重/翻译替换或当执行产物。两编码空串、14处外线覆盖、Both及四替换节点完整串/双空格分别核。
524 mode0、531 mode2,直接边和动态口只静态声明;四Muter/五Repeater/五Collector无身份保持未知,131普通/16rgthree转接及16Switch不补身份、不追线、不模拟惰性/静音传播/互斥或组开关。BAD是566输入标签,本图准确/nodes/258/inputs/0,type=*/1483输入/1485输出保留;Note569质量/互斥只是作者文案。
UNET572保存Z-Image反斜杠RED_v1.5/default,573 qwen_3_4b/lumina2/default、574 ae分别绑定;Note571 Amazing Z-Image WF v4.0前置bf16等四模型建议、目录、URL及More Info/作者说明全文保留,与实际模型名分层。Note111/569/570/571完整234/209/622/1615码点及空白保留并给中文解释,URL只文本,不取资产或承诺安装/许可/兼容。392四位置三个完整对象不合并、不虚构LoRA或强度。
Save9源outputs=[]与准确core0.3.75空RETURN_TYPES一致,无源IMAGE口冲突,images714及日期前缀只保存字符串。341仅image/seed/strength三口,唯一seed输入/nodes/159/inputs/1与fixed辅助分列。两Advanced/五Custom/五Karras/三Split/两SetFirst/两Extend、六Decode/三Encode、四/十六通道空latent/六PrimitiveInt、两模型放大/五Resize/加噪逐准确版本、缓存/外线/单位/条件核准。50 model=null/输出links=null,563独立20步18/20窗口及两latent出口不合并;不求sigma/尺寸/seed、不认证完整步数/无缝接力/兼容/可复现或画质。
core0.3.75/0.3.77/0.5.1/0.7.0、rgthree e9d/8ff Git与1.0.2511270846发布、frontend1.35.9同树锁/LiteGraph逐节点准确绑定。116来源闭包原字节重核;commit/tag/选定blob重算,tree完整列表不冒充完整tree对象重算;成员SHA/CRC不当整包SHA/Git绑定。LG/UE声明、无身份辅助类/缺类/许可/宿主恢复/目标模型兼容未知保持,本轮只复用仓内文本,不新增网络获取或依赖。
只新增本图固定参考块、代码拥有摘要、专项测试与证据;其它155审校对象、旧74块3464位置+90注释逐对象冻结,累计75图3639位置/94注释仅参考。原件/191资源、28profile/九候选hash/六差分、转换资格、Drawer整文件/CSS/依赖不变。遵循SQLite→router→parser/output map→worker边界,不改转换器或执行器。
619项专项+库回归,15份自写Python显式项目配置Ruff/format、JS语法和前后端构建通过;三条正式入口实际执行且只选generala模块。两次定义/渲染零差异,wheel/sdist三资源字节一致。真实基线旧代码隔离库恰1更新/154整行不变、幂等155、精确回退1再升、前后用户编辑各1冲突/29列保护;155/排除1、16/139、1217/3660/294及停用未检查/空定稿实跑时间戳不变。
本轮7242项浏览断言通过:新图5450/旧74图1776/共享14/总量2。六夹具和一次字体CSS拦截逐路径对账,禁止请求0;实际GET与文档一致,临时服务停止后8247/5173独立拒绝连接。1440/390逐175位置、四Note、18完整模板、英文主提示与不一致历史、三对象、来源及本图模式/输出/指针差异;旧74概要、默认折叠、旧空错绑定回退、迟到重试、焦点/无横溢由本地GET浏览复核。最终计数、逐路径对账、实际GET绑定、目验和端口释放分别见browser-results、backend-request-counts、get-binding、ports-independent。截图不入Git,完整补丁、逐文件用途/SHA索引、实际GET和最终head在附件包。
开发失败保留,不累加轮次、不机械跑无关全仓套件、不称全仓绿。155最终定稿、可靠转换、环境核对和必要实跑仍未完成。未连接目标、启停TTS/ComfyUI、构造prompt、执行上游/SDK/模型/GPU/媒体/随机/sigma/控制图/组开关/表达式/显存缓存,未取权重素材字体运行库、增依赖付费、写在线库、合并或部署。完成本图交总管一次功能+界面审核再推进。
@@ -0,0 +1,5 @@
本轮初次Ruff检查发现10处问题:六处导入排序、四处格式串超长,完整输出保留于ruff-initial.txt;按显式项目配置整理导入、拆分相邻格式串后通过,修复输出见ruff-fix.txt。普通长字符串预先拆分时用AST dump前后比较一致,未修改字符串码点;最终两次定义与中文渲染一致。
本轮无pytest、构建或浏览失败;最终正式三入口选通用a_专项,测试只报告本轮619项,不累加旧批。既有Starlette/anyio弃用及前端未用导入/chunk体积提示原样留档,不称全仓绿。
来源原文、许可和身份材料复用仓内必要准确文本,逐图重新核准完整commit/tag/tree/blob/SHA、类行段和许可,没有新网络获取/安装。原字节含上游空白/CRLF,diff --check只排除原始来源文本;不格式化上游以掩盖空白。历史SeedVR整包获取越界及删除事实保留于旧批记录,未重写或删除。
@@ -0,0 +1,264 @@
{
"60": "完整编码缓存与外线覆盖分开:6和60保存空串,54保存完整英文蒸汽朋克工坊/红发发明家/机械蜘蛛句子,不带末尾换行;不构造条件或保证摄影效果。 节点60保存直接输入=[{\"name\": \"clip\", \"type\": \"CLIP\", \"link\": null, \"localized_name\": \"clip\"}, {\"name\": \"text\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"文本\", \"widget\": {\"name\": \"text\"}}];直接输出=[{\"localized_name\": \"条件\", \"name\": \"CONDITIONING\", \"type\": \"CONDITIONING\", \"links\": [90]}]。不追线、不模拟执行。",
"56": "空latent宽高/批量接口,准确实现四通道;944/1408/1与244十六通道支路分开,不当最终尺寸。 节点56保存直接输入=[{\"name\": \"width\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"宽度\", \"widget\": {\"name\": \"width\"}}, {\"name\": \"height\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"高度\", \"widget\": {\"name\": \"height\"}}, {\"name\": \"batch_size\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"批量大小\", \"widget\": {\"name\": \"batch_size\"}}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"LATENT\", \"type\": \"LATENT\", \"links\": [81]}]。不追线、不模拟执行。",
"50": "完整保存加噪、seed/fixed、步数、cfg、sampler/scheduler、起止与剩余噪声选择;seed前端辅助与后端缓存分开。仅直接端口/边记录,不执行采样/随机或保证完整步数、无缝接力/可复现。 准确core0.3.75保存8步、起止0/10000,noise_seed936覆盖缓存2;model=null且输出links=null,不认证可执行。 节点50保存直接输入=[{\"name\": \"model\", \"type\": \"MODEL\", \"link\": null, \"localized_name\": \"模型\"}, {\"name\": \"positive\", \"type\": \"CONDITIONING\", \"link\": 78, \"localized_name\": \"正面条件\"}, {\"name\": \"negative\", \"type\": \"CONDITIONING\", \"link\": 90, \"localized_name\": \"负面条件\"}, {\"name\": \"latent_image\", \"type\": \"LATENT\", \"link\": 81, \"localized_name\": \"Latent图像\"}, {\"name\": \"add_noise\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"添加噪波\", \"widget\": {\"name\": \"add_noise\"}}, {\"name\": \"noise_seed\", \"type\": \"INT\", \"link\": 936, \"localized_name\": \"随机种\", \"widget\": {\"name\": \"noise_seed\"}}, {\"name\": \"steps\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"steps\"}}, {\"name\": \"cfg\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"cfg\", \"widget\": {\"name\": \"cfg\"}}, {\"name\": \"sampler_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"采样器名称\", \"widget\": {\"name\": \"sampler_name\"}}, {\"name\": \"scheduler\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"调度器\", \"widget\": {\"name\": \"scheduler\"}}, {\"name\": \"start_at_step\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"开始步数\", \"widget\": {\"name\": \"start_at_step\"}}, {\"name\": \"end_at_step\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"结束步数\", \"widget\": {\"name\": \"end_at_step\"}}, {\"name\": \"return_with_leftover_noise\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"返回剩余噪波\", \"widget\": {\"name\": \"return_with_leftover_noise\"}}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"LATENT\", \"type\": \"LATENT\", \"links\": null}]。不追线、不模拟执行。",
"151": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点151保存直接输入=[{\"name\": \"any_01\", \"type\": \"STRING\", \"link\": 563, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"STRING\", \"link\": 565, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"STRING\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"STRING\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"STRING\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\"}];直接输出=[{\"dir\": 4, \"label\": \"STRING\", \"name\": \"*\", \"shape\": 3, \"type\": \"STRING\", \"links\": [466]}]。不追线、不模拟执行。",
"34": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点34保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 381}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [788, 803]}]。不追线、不模拟执行。",
"35": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点35保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 472}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [789, 804]}]。不追线、不模拟执行。",
"36": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点36保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 509}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [790, 805]}]。不追线、不模拟执行。",
"42": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点42保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 560}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [791, 806]}]。不追线、不模拟执行。",
"44": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点44保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 510}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [792, 807]}]。不追线、不模拟执行。",
"46": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点46保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 492}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [793, 808]}]。不追线、不模拟执行。",
"48": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点48保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 497}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [794, 809]}]。不追线、不模拟执行。",
"64": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点64保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 559}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [795, 810]}]。不追线、不模拟执行。",
"94": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点94保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 538}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [796, 811]}]。不追线、不模拟执行。",
"102": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点102保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 550}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [797, 812]}]。不追线、不模拟执行。",
"118": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点118保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 552}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [798, 813]}]。不追线、不模拟执行。",
"121": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点121保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 555}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [799, 814]}]。不追线、不模拟执行。",
"127": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点127保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 556}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [801, 816]}]。不追线、不模拟执行。",
"131": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点131保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 513}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [802, 817]}]。不追线、不模拟执行。",
"104": "没有准确身份/版本;输入列表、输出slot及mode是原图声明,不借其它节点版本或推演收集/控制次序。 节点104保存直接输入=[{\"name\": \"无\", \"type\": \"*\", \"link\": 786, \"dir\": 3}, {\"name\": \"风格:手机照片\", \"type\": \"*\", \"link\": 788, \"dir\": 3}, {\"name\": \"风格:随拍照片\", \"type\": \"*\", \"link\": 789, \"dir\": 3}, {\"name\": \"风格:怀旧90年代照片\", \"type\": \"*\", \"link\": 790, \"dir\": 3}, {\"name\": \"风格:田园牧歌照片\", \"type\": \"*\", \"link\": 791, \"dir\": 3}, {\"name\": \"风格:静谧奢雅照片\", \"type\": \"*\", \"link\": 792, \"dir\": 3}, {\"name\": \"风格:经典胶片照片\", \"type\": \"*\", \"link\": 793, \"dir\": 3}, {\"name\": \"风格:赛博朋克雨夜照片\", \"type\": \"*\", \"link\": 794, \"dir\": 3}, {\"name\": \"风格:广角/猫眼\", \"type\": \"*\", \"link\": 795, \"dir\": 3}, {\"name\": \"风格:低清像素画\", \"type\": \"*\", \"link\": 796, \"dir\": 3}, {\"name\": \"风格:简约3D渲染\", \"type\": \"*\", \"link\": 797, \"dir\": 3}, {\"name\": \"风格:动漫\", \"type\": \"*\", \"link\": 798, \"dir\": 3}, {\"name\": \"风格:美式漫画\", \"type\": \"*\", \"link\": 799, \"dir\": 3}, {\"name\": \"风格:80年代复古漫画\", \"type\": \"*\", \"link\": 800, \"dir\": 3}, {\"name\": \"风格:复古漫画集\", \"type\": \"*\", \"link\": 801, \"dir\": 3}, {\"name\": \"风格:复古插画\", \"type\": \"*\", \"link\": 802, \"dir\": 3}, {\"name\": \"风格:奇幻水彩\", \"type\": \"*\", \"link\": 1271, \"dir\": 3}, {\"name\": \"风格:现代印象派\", \"type\": \"*\", \"link\": 1273, \"dir\": 3}, {\"name\": \"风格:史诗宏大\", \"type\": \"*\", \"link\": 1275, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"dir\": 4, \"name\": \"Output\", \"type\": \"*\", \"links\": [1112]}]。不追线、不模拟执行。",
"90": "完整标签字符串{$@}处于mode2静音,不执行替换或当已进入最终prompt。 节点90保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [786, 787]}]。不追线、不模拟执行。",
"75": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点75保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1264}];直接输出=[{\"name\": \"\", \"type\": \"SAMPLER\", \"links\": [911]}]。不追线、不模拟执行。",
"144": "完整string/find/replace各保存串保留;外线覆盖与空串/双空格分开,不执行替换/拼接。 节点144保存直接输入=[{\"name\": \"string\", \"type\": \"STRING\", \"link\": 430, \"localized_name\": \"字符串\", \"widget\": {\"name\": \"string\"}}, {\"name\": \"find\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"查找\", \"widget\": {\"name\": \"find\"}}, {\"name\": \"replace\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"替换\", \"widget\": {\"name\": \"replace\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [563, 564]}]。不追线、不模拟执行。",
"202": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点202保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1132}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [856]}]。不追线、不模拟执行。",
"293": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点293保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 909}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1174]}]。不追线、不模拟执行。",
"294": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点294保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 911}];直接输出=[{\"name\": \"\", \"type\": \"SAMPLER\", \"links\": [1175]}]。不追线、不模拟执行。",
"292": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点292保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 907}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1173]}]。不追线、不模拟执行。",
"323": "只保存首sigma修改接口;保留直接sigmas输入与输出,mode0/2分开,不计算序列/截断或认证接力。 节点323保存直接输入=[{\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 957, \"localized_name\": \"sigmas\"}, {\"name\": \"sigma\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"sigma\", \"widget\": {\"name\": \"sigma\"}}];直接输出=[{\"localized_name\": \"Sigmas\", \"name\": \"SIGMAS\", \"type\": \"SIGMAS\", \"links\": [958]}]。不追线、不模拟执行。",
"324": "只静态列steps/start_at_sigma/end_at_sigma/spacing及sigmas输入,linear与cosine分开,不扩展/插值/拼接或保证实际步数。 节点324保存直接输入=[{\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 958, \"localized_name\": \"sigmas\"}, {\"name\": \"steps\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"steps\"}}, {\"name\": \"start_at_sigma\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"起始 sigma\", \"widget\": {\"name\": \"start_at_sigma\"}}, {\"name\": \"end_at_sigma\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"结束 sigma\", \"widget\": {\"name\": \"end_at_sigma\"}}, {\"name\": \"spacing\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"间距方式\", \"widget\": {\"name\": \"spacing\"}}];直接输出=[{\"localized_name\": \"Sigmas\", \"name\": \"SIGMAS\", \"type\": \"SIGMAS\", \"links\": [952]}]。不追线、不模拟执行。",
"321": "steps/sigma_max/sigma_min/rho完整保存;准确版本接口与原类型分列,不生成sigmas、不计算调度或执行模型。 节点321保存直接输入=[{\"name\": \"steps\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"steps\"}}, {\"name\": \"sigma_max\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"sigma最大值\", \"localized_name\": \"sigma最大值\", \"widget\": {\"name\": \"sigma_max\"}}, {\"name\": \"sigma_min\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"sigma最小值\", \"localized_name\": \"sigma最小值\", \"widget\": {\"name\": \"sigma_min\"}}, {\"name\": \"rho\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"rho\", \"widget\": {\"name\": \"rho\"}}];直接输出=[{\"localized_name\": \"Sigmas\", \"name\": \"SIGMAS\", \"type\": \"SIGMAS\", \"links\": [956]}]。不追线、不模拟执行。",
"325": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点325保存直接输入=[{\"name\": \"any_01\", \"type\": \"SIGMAS\", \"link\": 989, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"SIGMAS\", \"link\": 987, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"SIGMAS\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"SIGMAS\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"SIGMAS\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"SIGMAS\", \"name\": \"*\", \"shape\": 3, \"type\": \"SIGMAS\", \"links\": [1176]}]。不追线、不模拟执行。",
"322": "保留拆分step和high_sigmas/low_sigmas两个出口;不实际切分、推算重叠或保证采样连续。 节点322保存直接输入=[{\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 956, \"localized_name\": \"Sigmas\"}, {\"name\": \"step\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"step\"}}];直接输出=[{\"localized_name\": \"高方差\", \"name\": \"high_sigmas\", \"type\": \"SIGMAS\", \"links\": [986]}, {\"localized_name\": \"低方差\", \"name\": \"low_sigmas\", \"type\": \"SIGMAS\", \"links\": [957]}]。不追线、不模拟执行。",
"317": "只静态列steps/start_at_sigma/end_at_sigma/spacing及sigmas输入,linear与cosine分开,不扩展/插值/拼接或保证实际步数。 节点317保存直接输入=[{\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 953, \"localized_name\": \"sigmas\"}, {\"name\": \"steps\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"steps\"}}, {\"name\": \"start_at_sigma\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"起始 sigma\", \"widget\": {\"name\": \"start_at_sigma\"}}, {\"name\": \"end_at_sigma\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"结束 sigma\", \"widget\": {\"name\": \"end_at_sigma\"}}, {\"name\": \"spacing\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"间距方式\", \"widget\": {\"name\": \"spacing\"}}];直接输出=[{\"localized_name\": \"Sigmas\", \"name\": \"SIGMAS\", \"type\": \"SIGMAS\", \"links\": [951, 990]}]。不追线、不模拟执行。",
"337": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点337保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 992}];直接输出=[{\"name\": \"\", \"type\": \"SIGMAS\", \"links\": [993]}]。不追线、不模拟执行。",
"336": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点336保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 990}];直接输出=[{\"name\": \"\", \"type\": \"SIGMAS\", \"links\": [991]}]。不追线、不模拟执行。",
"319": "保留拆分step和high_sigmas/low_sigmas两个出口;不实际切分、推算重叠或保证采样连续。 节点319保存直接输入=[{\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 955, \"localized_name\": \"Sigmas\"}, {\"name\": \"step\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"step\"}}];直接输出=[{\"localized_name\": \"高方差\", \"name\": \"high_sigmas\", \"type\": \"SIGMAS\", \"links\": [988]}, {\"localized_name\": \"低方差\", \"name\": \"low_sigmas\", \"type\": \"SIGMAS\", \"links\": [954, 994]}]。不追线、不模拟执行。",
"338": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点338保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 994}];直接输出=[{\"name\": \"\", \"type\": \"SIGMAS\", \"links\": [995]}]。不追线、不模拟执行。",
"339": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点339保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 996}];直接输出=[{\"name\": \"\", \"type\": \"SIGMAS\", \"links\": [997]}]。不追线、不模拟执行。",
"335": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点335保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 988}];直接输出=[{\"name\": \"\", \"type\": \"SIGMAS\", \"links\": [989]}]。不追线、不模拟执行。",
"334": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点334保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 986}];直接输出=[{\"name\": \"\", \"type\": \"SIGMAS\", \"links\": [987]}]。不追线、不模拟执行。",
"315": "无准确身份/版本;原mode和端口不认证mute/bypass控制图改写,不模拟静音/旁路传播。 节点315保存直接输入=[{\"name\": \"插值扩展Sigmas\", \"type\": \"*\", \"link\": 991, \"dir\": 3}, {\"name\": \"设置首个 Sigma\", \"type\": \"*\", \"link\": 993, \"dir\": 3}, {\"name\": \"分割 Sigmas [2] + [4]\", \"type\": \"*\", \"link\": 995, \"dir\": 3}, {\"name\": \"Karras 调度器 (6步)\", \"type\": \"*\", \"link\": 997, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"color_off\": \"#a80\", \"color_on\": \"#Fc0\", \"dir\": 4, \"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": [982]}]。不追线、不模拟执行。",
"364": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点364保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1069, \"label\": \"NEG\"}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1073]}]。不追线、不模拟执行。",
"370": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点370保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1073}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1076]}]。不追线、不模拟执行。",
"363": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点363保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1068, \"label\": \"POS\"}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1072]}]。不追线、不模拟执行。",
"369": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点369保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1072}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1075]}]。不追线、不模拟执行。",
"166": "完整string/find/replace各保存串保留;外线覆盖与空串/双空格分开,不执行替换/拼接。 节点166保存直接输入=[{\"name\": \"string\", \"type\": \"STRING\", \"link\": 466, \"localized_name\": \"字符串\", \"widget\": {\"name\": \"string\"}}, {\"name\": \"find\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"查找\", \"widget\": {\"name\": \"find\"}}, {\"name\": \"replace\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"替换\", \"widget\": {\"name\": \"replace\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [764, 1115]}]。不追线、不模拟执行。",
"361": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点361保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1065, \"label\": \"MODEL\"}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1070]}]。不追线、不模拟执行。",
"146": "完整string/find/replace各保存串保留;外线覆盖与空串/双空格分开,不执行替换/拼接。 节点146保存直接输入=[{\"name\": \"string\", \"type\": \"STRING\", \"link\": 431, \"localized_name\": \"字符串\", \"widget\": {\"name\": \"string\"}}, {\"name\": \"find\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"查找\", \"widget\": {\"name\": \"find\"}}, {\"name\": \"replace\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"替换\", \"widget\": {\"name\": \"replace\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [565]}]。不追线、不模拟执行。",
"31": "完整string/find/replace各保存串保留;外线覆盖与空串/双空格分开,不执行替换/拼接。 节点31保存直接输入=[{\"name\": \"string\", \"type\": \"STRING\", \"link\": 232, \"localized_name\": \"字符串\", \"widget\": {\"name\": \"string\"}}, {\"name\": \"find\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"查找\", \"widget\": {\"name\": \"find\"}}, {\"name\": \"replace\", \"type\": \"STRING\", \"link\": 1104, \"localized_name\": \"替换\", \"widget\": {\"name\": \"replace\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [430, 431]}]。不追线、不模拟执行。",
"413": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点413保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1160}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1162]}]。不追线、不模拟执行。",
"414": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点414保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1161}];直接输出=[{\"name\": \"CLIP\", \"type\": \"CLIP\", \"links\": [1163]}]。不追线、不模拟执行。",
"54": "完整编码缓存与外线覆盖分开:6和60保存空串,54保存完整英文蒸汽朋克工坊/红发发明家/机械蜘蛛句子,不带末尾换行;不构造条件或保证摄影效果。 节点54保存直接输入=[{\"name\": \"clip\", \"type\": \"CLIP\", \"link\": null, \"localized_name\": \"clip\"}, {\"name\": \"text\", \"type\": \"STRING\", \"link\": 296, \"localized_name\": \"文本\", \"widget\": {\"name\": \"text\"}}];直接输出=[{\"localized_name\": \"条件\", \"name\": \"CONDITIONING\", \"type\": \"CONDITIONING\", \"slot_index\": 0, \"links\": [78]}]。不追线、不模拟执行。",
"156": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点156保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 564}];直接输出=[{\"label\": \"CTRL\", \"name\": \"\", \"type\": \"STRING\", \"links\": [1196]}]。不追线、不模拟执行。",
"291": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点291保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 905}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1172]}]。不追线、不模拟执行。",
"68": "保存采样器枚举,仅输出SAMPLER声明,不执行采样或认证可用性/模型兼容。 节点68保存直接输入=[{\"name\": \"sampler_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"采样器名称\", \"widget\": {\"name\": \"sampler_name\"}}];直接输出=[{\"localized_name\": \"采样器\", \"name\": \"SAMPLER\", \"type\": \"SAMPLER\", \"links\": [373]}]。不追线、不模拟执行。",
"95": "保存采样器枚举,仅输出SAMPLER声明,不执行采样或认证可用性/模型兼容。 节点95保存直接输入=[{\"name\": \"sampler_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"采样器名称\", \"widget\": {\"name\": \"sampler_name\"}}];直接输出=[{\"localized_name\": \"采样器\", \"name\": \"SAMPLER\", \"type\": \"SAMPLER\", \"links\": [372, 1202]}]。不追线、不模拟执行。",
"382": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点382保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1203}];直接输出=[{\"name\": \"\", \"type\": \"SAMPLER\", \"links\": [1206]}]。不追线、不模拟执行。",
"185": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点185保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1128, \"label\": \"POS\"}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1132]}]。不追线、不模拟执行。",
"183": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点183保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1129, \"label\": \"MODEL\"}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1131]}]。不追线、不模拟执行。",
"408": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点408保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1163, \"label\": \" \", \"dir\": 3}];直接输出=[{\"dir\": 2, \"label\": \" \", \"name\": \"CLIP\", \"type\": \"CLIP\", \"links\": [1152]}]。不追线、不模拟执行。",
"407": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点407保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1162, \"label\": \" \", \"dir\": 3}];直接输出=[{\"dir\": 2, \"label\": \" \", \"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1151]}]。不追线、不模拟执行。",
"274": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点274保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1122, \"label\": \" \", \"dir\": 3}];直接输出=[{\"dir\": 2, \"label\": \" \", \"name\": \"output\", \"type\": \"LATENT\", \"links\": [852]}]。不追线、不模拟执行。",
"420": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点420保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1173}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1242]}]。不追线、不模拟执行。",
"419": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点419保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1174}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1243]}]。不追线、不模拟执行。",
"422": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点422保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1175}];直接输出=[{\"name\": \"\", \"type\": \"SAMPLER\", \"links\": [1244]}]。不追线、不模拟执行。",
"448": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点448保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1242}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1249, 1250]}]。不追线、不模拟执行。",
"449": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点449保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1243}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1251, 1252]}]。不追线、不模拟执行。",
"450": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点450保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1244}];直接输出=[{\"name\": \"\", \"type\": \"SAMPLER\", \"links\": [1253, 1254]}]。不追线、不模拟执行。",
"451": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点451保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1245}];直接输出=[{\"name\": \"\", \"type\": \"SIGMAS\", \"links\": [1255]}]。不追线、不模拟执行。",
"418": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点418保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1172}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1241]}]。不追线、不模拟执行。",
"237": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点237保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1261, \"label\": \" \", \"dir\": 2}];直接输出=[{\"dir\": 3, \"label\": \" \", \"name\": \"*\", \"type\": \"IMAGE\", \"links\": [714]}]。不追线、不模拟执行。",
"96": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点96保存直接输入=[{\"name\": \"any_01\", \"type\": \"SAMPLER\", \"link\": 372, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"SAMPLER\", \"link\": 373, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"SAMPLER\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"SAMPLER\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"SAMPLER\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"SAMPLER\", \"name\": \"*\", \"shape\": 3, \"type\": \"SAMPLER\", \"links\": [1263]}]。不追线、不模拟执行。",
"455": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点455保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1263}];直接输出=[{\"name\": \"SAMPLER\", \"type\": \"SAMPLER\", \"links\": [1264]}]。不追线、不模拟执行。",
"432": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点432保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1199}];直接输出=[{\"name\": \"CONDITIONING\", \"type\": \"CONDITIONING\", \"links\": [1200, 1201]}]。不追线、不模拟执行。",
"433": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点433保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1202}];直接输出=[{\"label\": \"CTRL\", \"name\": \"\", \"type\": \"SAMPLER\", \"links\": [1203]}]。不追线、不模拟执行。",
"396": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点396保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1166}];直接输出=[{\"name\": \"\", \"type\": \"MODEL\", \"links\": [1138]}]。不追线、不模拟执行。",
"395": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点395保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1167}];直接输出=[{\"name\": \"\", \"type\": \"CLIP\", \"links\": [1139]}]。不追线、不模拟执行。",
"415": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点415保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1488}];直接输出=[{\"name\": \"\", \"type\": \"MODEL\", \"links\": [1166]}]。不追线、不模拟执行。",
"416": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点416保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1489}];直接输出=[{\"name\": \"\", \"type\": \"CLIP\", \"links\": [1167]}]。不追线、不模拟执行。",
"398": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点398保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1490}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1262]}]。不追线、不模拟执行。",
"388": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点388保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1115, \"widget\": {\"name\": \"value\"}}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [1116]}]。不追线、不模拟执行。",
"165": "准确e9d显示节点165的完整历史为Dynamic Heroic Realism漫画封面及城市交通/go-kart长文,不代表当前125手机摄影模板或主提示内容。原文独立保留,不翻译替换/去重,不证明当前执行选择、生成内容或产物。 节点165保存直接输入=[{\"name\": \"source\", \"type\": \"*\", \"link\": 764, \"label\": \"输入\", \"localized_name\": \"输入\", \"dir\": 3}];直接输出=[]。不追线、不模拟执行。",
"6": "完整编码缓存与外线覆盖分开:6和60保存空串,54保存完整英文蒸汽朋克工坊/红发发明家/机械蜘蛛句子,不带末尾换行;不构造条件或保证摄影效果。 节点6保存直接输入=[{\"name\": \"clip\", \"type\": \"CLIP\", \"link\": 1155, \"localized_name\": \"clip\"}, {\"name\": \"text\", \"type\": \"STRING\", \"link\": 1117, \"localized_name\": \"文本\", \"widget\": {\"name\": \"text\"}}];直接输出=[{\"localized_name\": \"条件\", \"name\": \"CONDITIONING\", \"type\": \"CONDITIONING\", \"slot_index\": 0, \"links\": [1199]}]。不追线、不模拟执行。",
"389": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点389保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1116, \"widget\": {\"name\": \"value\"}}];直接输出=[{\"name\": \"STRING\", \"type\": \"STRING\", \"links\": [1117]}]。不追线、不模拟执行。",
"421": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点421保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1176}];直接输出=[{\"name\": \"\", \"type\": \"SIGMAS\", \"links\": [1245]}]。不追线、不模拟执行。",
"316": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点316保存直接输入=[{\"name\": \"any_01\", \"type\": \"SIGMAS\", \"link\": 951, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"SIGMAS\", \"link\": 952, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"SIGMAS\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"SIGMAS\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"SIGMAS\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"SIGMAS\", \"name\": \"*\", \"shape\": 3, \"type\": \"SIGMAS\", \"links\": [1265]}]。不追线、不模拟执行。",
"423": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点423保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1226}];直接输出=[{\"name\": \"\", \"type\": \"LATENT\", \"links\": [1246]}]。不追线、不模拟执行。",
"456": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点456保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1265}];直接输出=[{\"name\": \"\", \"type\": \"SIGMAS\", \"links\": [1266]}]。不追线、不模拟执行。",
"458": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点458保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1266}];直接输出=[{\"name\": \"\", \"type\": \"SIGMAS\", \"links\": [1267]}]。不追线、不模拟执行。",
"452": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点452保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1246}];直接输出=[{\"name\": \"\", \"type\": \"LATENT\", \"links\": [1257]}]。不追线、不模拟执行。",
"453": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点453保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1258}];直接输出=[{\"name\": \"\", \"type\": \"LATENT\", \"links\": [1259]}]。不追线、不模拟执行。",
"446": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点446保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1259}];直接输出=[{\"name\": \"\", \"type\": \"LATENT\", \"links\": [1235]}]。不追线、不模拟执行。",
"447": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点447保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1241}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1247, 1248]}]。不追线、不模拟执行。",
"126": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点126保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 557}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [800, 815]}]。不追线、不模拟执行。",
"462": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点462保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1268}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [1271, 1272]}]。不追线、不模拟执行。",
"463": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点463保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1269}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [1273, 1274]}]。不追线、不模拟执行。",
"464": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点464保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1270}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [1275, 1276]}]。不追线、不模拟执行。",
"87": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点87保存直接输入=[{\"name\": \"any_01\", \"type\": \"STRING\", \"link\": 787, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"STRING\", \"link\": 803, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"STRING\", \"link\": 804, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"STRING\", \"link\": 805, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"STRING\", \"link\": 806, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}, {\"name\": \"any_06\", \"type\": \"STRING\", \"link\": 807, \"dir\": 3}, {\"name\": \"any_07\", \"type\": \"STRING\", \"link\": 808, \"dir\": 3}, {\"name\": \"any_08\", \"type\": \"STRING\", \"link\": 809, \"dir\": 3}, {\"name\": \"any_09\", \"type\": \"STRING\", \"link\": 810, \"dir\": 3}, {\"name\": \"any_10\", \"type\": \"STRING\", \"link\": 811, \"dir\": 3}, {\"name\": \"any_11\", \"type\": \"STRING\", \"link\": 812, \"dir\": 3}, {\"name\": \"any_12\", \"type\": \"STRING\", \"link\": 813, \"dir\": 3}, {\"name\": \"any_13\", \"type\": \"STRING\", \"link\": 814, \"dir\": 3}, {\"name\": \"any_14\", \"type\": \"STRING\", \"link\": 815, \"dir\": 3}, {\"name\": \"any_15\", \"type\": \"STRING\", \"link\": 816, \"dir\": 3}, {\"name\": \"any_16\", \"type\": \"STRING\", \"link\": 817, \"dir\": 3}, {\"name\": \"any_17\", \"type\": \"STRING\", \"link\": 1272, \"dir\": 3}, {\"name\": \"any_18\", \"type\": \"STRING\", \"link\": 1274, \"dir\": 3}, {\"name\": \"any_19\", \"type\": \"STRING\", \"link\": 1276, \"dir\": 3}, {\"name\": \"any_20\", \"type\": \"STRING\", \"link\": null}];直接输出=[{\"dir\": 4, \"label\": \"STRING\", \"name\": \"*\", \"shape\": 3, \"type\": \"STRING\", \"links\": [232]}]。不追线、不模拟执行。",
"386": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点386保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1103, \"label\": \" \", \"widget\": {\"name\": \"value\"}, \"dir\": 4}];直接输出=[{\"dir\": 1, \"label\": \" \", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [1104]}]。不追线、不模拟执行。",
"385": "完整英文缓存与57/54分别保留,Both为准确模式;本图无末尾换行,输入外线覆盖缓存,不预执行修剪或去重。 节点385保存直接输入=[{\"name\": \"string\", \"type\": \"STRING\", \"link\": 1102, \"localized_name\": \"字符串\", \"widget\": {\"name\": \"string\"}}, {\"name\": \"mode\", \"type\": \"COMBO\", \"link\": null, \"label\": \"模式\", \"localized_name\": \"模式\", \"widget\": {\"name\": \"mode\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [1103]}]。不追线、不模拟执行。",
"307": "整数与fixed前端辅助分开,mode2缓存仍保留;由输出外线使用的数字不归为最终执行尺寸/种子,不求值。 int1输出934/935/936分别给289/286/50种子口,缓存种子被覆线,不执行控制。 节点307保存直接输入=[{\"name\": \"value\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"数值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"整数\", \"name\": \"INT\", \"type\": \"INT\", \"links\": [934, 935, 936]}]。不追线、不模拟执行。",
"286": "add_noise、noise_seed/fixed、cfg四保存位置分别保留;模型/正负/sampler/sigmas/latent外线只静态记录,output和denoised_output两个latent出口分开,不保证执行、接力或可复现。 节点286保存直接输入=[{\"name\": \"model\", \"type\": \"MODEL\", \"link\": 1248, \"localized_name\": \"模型\"}, {\"name\": \"positive\", \"type\": \"CONDITIONING\", \"link\": 1250, \"localized_name\": \"正面条件\"}, {\"name\": \"negative\", \"type\": \"CONDITIONING\", \"link\": 1252, \"localized_name\": \"负面条件\"}, {\"name\": \"sampler\", \"type\": \"SAMPLER\", \"link\": 1254, \"localized_name\": \"采样器\"}, {\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 1267, \"localized_name\": \"Sigmas\"}, {\"name\": \"latent_image\", \"type\": \"LATENT\", \"link\": 1235, \"localized_name\": \"Latent\"}, {\"name\": \"add_noise\", \"type\": \"BOOLEAN\", \"link\": null, \"localized_name\": \"添加噪波\", \"widget\": {\"name\": \"add_noise\"}}, {\"name\": \"noise_seed\", \"type\": \"INT\", \"link\": 935, \"localized_name\": \"噪波种子\", \"widget\": {\"name\": \"noise_seed\"}}, {\"name\": \"cfg\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"cfg\", \"widget\": {\"name\": \"cfg\"}}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"output\", \"type\": \"LATENT\", \"links\": [1122]}, {\"localized_name\": \"降噪Latent\", \"name\": \"denoised_output\", \"type\": \"LATENT\", \"links\": []}]。不追线、不模拟执行。",
"289": "add_noise、noise_seed/fixed、cfg四保存位置分别保留;模型/正负/sampler/sigmas/latent外线只静态记录,output和denoised_output两个latent出口分开,不保证执行、接力或可复现。 节点289保存直接输入=[{\"name\": \"model\", \"type\": \"MODEL\", \"link\": 1247, \"localized_name\": \"模型\"}, {\"name\": \"positive\", \"type\": \"CONDITIONING\", \"link\": 1249, \"localized_name\": \"正面条件\"}, {\"name\": \"negative\", \"type\": \"CONDITIONING\", \"link\": 1251, \"localized_name\": \"负面条件\"}, {\"name\": \"sampler\", \"type\": \"SAMPLER\", \"link\": 1253, \"localized_name\": \"采样器\"}, {\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 1255, \"localized_name\": \"Sigmas\"}, {\"name\": \"latent_image\", \"type\": \"LATENT\", \"link\": 1257, \"localized_name\": \"Latent\"}, {\"name\": \"add_noise\", \"type\": \"BOOLEAN\", \"link\": null, \"localized_name\": \"添加噪波\", \"widget\": {\"name\": \"add_noise\"}}, {\"name\": \"noise_seed\", \"type\": \"INT\", \"link\": 934, \"localized_name\": \"噪波种子\", \"widget\": {\"name\": \"noise_seed\"}}, {\"name\": \"cfg\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"cfg\", \"widget\": {\"name\": \"cfg\"}}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"output\", \"type\": \"LATENT\", \"links\": [1258]}, {\"localized_name\": \"降噪Latent\", \"name\": \"denoised_output\", \"type\": \"LATENT\", \"links\": []}]。不追线、不模拟执行。",
"431": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点431保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1196}];直接输出=[{\"name\": \"\", \"type\": \"STRING\", \"links\": [1277]}]。不追线、不模拟执行。",
"320": "steps/sigma_max/sigma_min/rho完整保存;准确版本接口与原类型分列,不生成sigmas、不计算调度或执行模型。 节点320保存直接输入=[{\"name\": \"steps\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"steps\"}}, {\"name\": \"sigma_max\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"sigma最大值\", \"localized_name\": \"sigma最大值\", \"widget\": {\"name\": \"sigma_max\"}}, {\"name\": \"sigma_min\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"sigma最小值\", \"localized_name\": \"sigma最小值\", \"widget\": {\"name\": \"sigma_min\"}}, {\"name\": \"rho\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"rho\", \"widget\": {\"name\": \"rho\"}}];直接输出=[{\"localized_name\": \"Sigmas\", \"name\": \"SIGMAS\", \"type\": \"SIGMAS\", \"links\": [955, 996]}]。不追线、不模拟执行。",
"318": "只保存首sigma修改接口;保留直接sigmas输入与输出,mode0/2分开,不计算序列/截断或认证接力。 节点318保存直接输入=[{\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 954, \"localized_name\": \"sigmas\"}, {\"name\": \"sigma\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"sigma\", \"widget\": {\"name\": \"sigma\"}}];直接输出=[{\"localized_name\": \"Sigmas\", \"name\": \"SIGMAS\", \"type\": \"SIGMAS\", \"links\": [953, 992]}]。不追线、不模拟执行。",
"465": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点465保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1305, \"label\": \"NEG\"}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1278]}]。不追线、不模拟执行。",
"466": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点466保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1278}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1284]}]。不追线、不模拟执行。",
"467": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点467保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1304, \"label\": \"POS\"}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1279]}]。不追线、不模拟执行。",
"468": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点468保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1279}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1283]}]。不追线、不模拟执行。",
"470": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点470保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1281}];直接输出=[{\"name\": \"\", \"type\": \"SAMPLER\", \"links\": [1280]}]。不追线、不模拟执行。",
"472": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点472保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1303, \"label\": \"MODEL\"}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1290]}]。不追线、不模拟执行。",
"481": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点481保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1487, \"label\": \"VAE\"}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1294]}]。不追线、不模拟执行。",
"362": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点362保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1204, \"label\": \"VAE\"}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1123]}]。不追线、不模拟执行。",
"278": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点278保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 853, \"label\": \" \", \"dir\": 4}];直接输出=[{\"dir\": 1, \"label\": \" \", \"name\": \"output\", \"type\": \"LATENT\", \"links\": [1085]}]。不追线、不模拟执行。",
"410": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点410保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1152, \"label\": \" \", \"dir\": 1}];直接输出=[{\"dir\": 3, \"label\": \" \", \"name\": \"CLIP\", \"type\": \"CLIP\", \"links\": [1154]}]。不追线、不模拟执行。",
"434": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点434保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1206}];直接输出=[{\"name\": \"\", \"type\": \"SAMPLER\", \"links\": [1207]}]。不追线、不模拟执行。",
"409": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点409保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1151, \"label\": \" \", \"dir\": 1}];直接输出=[{\"dir\": 3, \"label\": \" \", \"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1153]}]。不追线、不模拟执行。",
"280": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点280保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1086, \"label\": \"LATENT\"}];直接输出=[{\"name\": \"output\", \"type\": \"LATENT\", \"links\": [1092, 1368]}]。不追线、不模拟执行。",
"360": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点360保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1126, \"label\": \"VAE\"}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1376, 1377]}]。不追线、不模拟执行。",
"523": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点523保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1370}];直接输出=[{\"name\": \"\", \"type\": \"IMAGE\", \"links\": [1360]}]。不追线、不模拟执行。",
"186": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点186保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1127, \"label\": \"NEG\"}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1133]}]。不追线、不模拟执行。",
"526": "独立准确core版本按直接samples/vae连线记录,六个解码分支不合并为同次执行;mode2静音不当旁路穿透,不产生图像。 节点526保存直接输入=[{\"name\": \"samples\", \"type\": \"LATENT\", \"link\": 1368, \"localized_name\": \"Latent\"}, {\"name\": \"vae\", \"type\": \"VAE\", \"link\": 1377, \"localized_name\": \"vae\"}];直接输出=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"slot_index\": 0, \"links\": [1370]}]。不追线、不模拟执行。",
"510": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点510保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1378}];直接输出=[{\"name\": \"output\", \"type\": \"LATENT\", \"links\": [1379]}]。不追线、不模拟执行。",
"71": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点71保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1198}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [905, 1065, 1129, 1303, 1382]}]。不追线、不模拟执行。",
"73": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点73保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1200}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [907, 1068, 1128, 1304, 1383]}]。不追线、不模拟执行。",
"74": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点74保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1201}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [909, 1069, 1127, 1305, 1384]}]。不追线、不模拟执行。",
"532": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点532保存直接输入=[{\"name\": \"any_01\", \"type\": \"IMAGE\", \"link\": 1400, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"IMAGE\", \"link\": 1401, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\"}];直接输出=[{\"dir\": 4, \"label\": \"IMAGE\", \"name\": \"*\", \"shape\": 3, \"type\": \"IMAGE\", \"links\": [1402]}]。不追线、不模拟执行。",
"487": "准确8ff图像缩放接口,percentage的50/75/150、height0、contain和area/bilinear按本提交条件解释,非模型质量保证;不试算最终尺寸、读取媒体或运行GPU。 节点487保存直接输入=[{\"name\": \"image\", \"type\": \"IMAGE\", \"link\": 1301, \"label\": \"图像\", \"localized_name\": \"图像\"}, {\"name\": \"measurement\", \"type\": \"COMBO\", \"link\": null, \"label\": \"模式\", \"localized_name\": \"模式\", \"widget\": {\"name\": \"measurement\"}}, {\"name\": \"width\", \"type\": \"INT\", \"link\": null, \"label\": \"宽度\", \"localized_name\": \"宽度\", \"widget\": {\"name\": \"width\"}}, {\"name\": \"height\", \"type\": \"INT\", \"link\": null, \"label\": \"高度\", \"localized_name\": \"高度\", \"widget\": {\"name\": \"height\"}}, {\"name\": \"fit\", \"type\": \"COMBO\", \"link\": null, \"label\": \"适合\", \"localized_name\": \"适合\", \"widget\": {\"name\": \"fit\"}}, {\"name\": \"method\", \"type\": \"COMBO\", \"link\": null, \"label\": \"方法\", \"localized_name\": \"方法\", \"widget\": {\"name\": \"method\"}}];直接输出=[{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1296]}, {\"label\": \"宽度\", \"localized_name\": \"宽度\", \"name\": \"WIDTH\", \"type\": \"INT\", \"links\": null}, {\"label\": \"高度\", \"localized_name\": \"高度\", \"name\": \"HEIGHT\", \"type\": \"INT\", \"links\": null}]。不追线、不模拟执行。",
"482": "准确core0.7.0按upscale_model/image输入记录,加载权重/显存管理只是源码行为,本轮不加载模型、清理缓存或执行GPU。 节点482保存直接输入=[{\"name\": \"upscale_model\", \"type\": \"UPSCALE_MODEL\", \"link\": 1295, \"localized_name\": \"放大模型\"}, {\"name\": \"image\", \"type\": \"IMAGE\", \"link\": 1296, \"localized_name\": \"图像\"}];直接输出=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1299]}]。不追线、不模拟执行。",
"478": "独立准确core0.3.77版本按pixels/vae等直接端口记录,不编码或认证模型兼容。 节点478保存直接输入=[{\"name\": \"pixels\", \"type\": \"IMAGE\", \"link\": 1291, \"localized_name\": \"像素\"}, {\"name\": \"vae\", \"type\": \"VAE\", \"link\": 1292, \"localized_name\": \"vae\"}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"LATENT\", \"type\": \"LATENT\", \"links\": [1287]}]。不追线、不模拟执行。",
"486": "准确8ff图像缩放接口,percentage的50/75/150、height0、contain和area/bilinear按本提交条件解释,非模型质量保证;不试算最终尺寸、读取媒体或运行GPU。 节点486保存直接输入=[{\"name\": \"image\", \"type\": \"IMAGE\", \"link\": 1299, \"label\": \"图像\", \"localized_name\": \"图像\"}, {\"name\": \"measurement\", \"type\": \"COMBO\", \"link\": null, \"label\": \"模式\", \"localized_name\": \"模式\", \"widget\": {\"name\": \"measurement\"}}, {\"name\": \"width\", \"type\": \"INT\", \"link\": null, \"label\": \"宽度\", \"localized_name\": \"宽度\", \"widget\": {\"name\": \"width\"}}, {\"name\": \"height\", \"type\": \"INT\", \"link\": null, \"label\": \"高度\", \"localized_name\": \"高度\", \"widget\": {\"name\": \"height\"}}, {\"name\": \"fit\", \"type\": \"COMBO\", \"link\": null, \"label\": \"适合\", \"localized_name\": \"适合\", \"widget\": {\"name\": \"fit\"}}, {\"name\": \"method\", \"type\": \"COMBO\", \"link\": null, \"label\": \"方法\", \"localized_name\": \"方法\", \"widget\": {\"name\": \"method\"}}];直接输出=[{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1291]}, {\"label\": \"宽度\", \"localized_name\": \"宽度\", \"name\": \"WIDTH\", \"type\": \"INT\", \"links\": null}, {\"label\": \"高度\", \"localized_name\": \"高度\", \"name\": \"HEIGHT\", \"type\": \"INT\", \"links\": null}]。不追线、不模拟执行。",
"480": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点480保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1294}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1292, 1293]}]。不追线、不模拟执行。",
"479": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点479保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1293}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1431]}]。不追线、不模拟执行。",
"485": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点485保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1433, \"label\": \"CTRL\"}];直接输出=[{\"name\": \"\", \"type\": \"IMAGE\", \"links\": [1318]}]。不追线、不模拟执行。",
"477": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点477保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1290}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1282]}]。不追线、不模拟执行。",
"469": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点469保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1280}];直接输出=[{\"name\": \"\", \"type\": \"SAMPLER\", \"links\": [1285]}]。不追线、不模拟执行。",
"529": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点529保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1475, \"label\": \" \", \"dir\": 1}];直接输出=[{\"dir\": 3, \"label\": \" \", \"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1385]}]。不追线、不模拟执行。",
"380": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点380保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1224, \"label\": \" \", \"dir\": 1}];直接输出=[{\"dir\": 3, \"label\": \" \", \"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1096]}]。不追线、不模拟执行。",
"441": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点441保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1361}];直接输出=[{\"label\": \"IMAGE\", \"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1224]}]。不追线、不模拟执行。",
"442": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点442保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1222}];直接输出=[{\"label\": \"CTRL\", \"name\": \"\", \"type\": \"IMAGE\", \"links\": [1316]}]。不追线、不模拟执行。",
"375": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点375保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1376}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1088]}]。不追线、不模拟执行。",
"281": "独立准确core版本按直接samples/vae连线记录,六个解码分支不合并为同次执行;mode2静音不当旁路穿透,不产生图像。 节点281保存直接输入=[{\"name\": \"samples\", \"type\": \"LATENT\", \"link\": 862, \"localized_name\": \"Latent\"}, {\"name\": \"vae\", \"type\": \"VAE\", \"link\": 1088, \"localized_name\": \"vae\"}];直接输出=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1222, 1358]}]。不追线、不模拟执行。",
"279": "add_noise、noise_seed/fixed、cfg四保存位置分别保留;模型/正负/sampler/sigmas/latent外线只静态记录,output和denoised_output两个latent出口分开,不保证执行、接力或可复现。 节点279保存直接输入=[{\"name\": \"model\", \"type\": \"MODEL\", \"link\": 855, \"localized_name\": \"模型\"}, {\"name\": \"positive\", \"type\": \"CONDITIONING\", \"link\": 856, \"localized_name\": \"正面条件\"}, {\"name\": \"negative\", \"type\": \"CONDITIONING\", \"link\": 857, \"localized_name\": \"负面条件\"}, {\"name\": \"sampler\", \"type\": \"SAMPLER\", \"link\": 1091, \"localized_name\": \"采样器\"}, {\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 943, \"localized_name\": \"Sigmas\"}, {\"name\": \"latent_image\", \"type\": \"LATENT\", \"link\": 1093, \"localized_name\": \"Latent\"}, {\"name\": \"add_noise\", \"type\": \"BOOLEAN\", \"link\": null, \"localized_name\": \"添加噪波\", \"widget\": {\"name\": \"add_noise\"}}, {\"name\": \"noise_seed\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"噪波种子\", \"widget\": {\"name\": \"noise_seed\"}}, {\"name\": \"cfg\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"cfg\", \"widget\": {\"name\": \"cfg\"}}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"output\", \"type\": \"LATENT\", \"links\": [862]}, {\"localized_name\": \"降噪Latent\", \"name\": \"denoised_output\", \"type\": \"LATENT\", \"links\": null}]。不追线、不模拟执行。",
"201": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点201保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1133}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [857]}]。不追线、不模拟执行。",
"203": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点203保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1131}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [855]}]。不追线、不模拟执行。",
"377": "保存采样器枚举,仅输出SAMPLER声明,不执行采样或认证可用性/模型兼容。 节点377保存直接输入=[{\"name\": \"sampler_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"采样器名称\", \"widget\": {\"name\": \"sampler_name\"}}];直接输出=[{\"localized_name\": \"采样器\", \"name\": \"SAMPLER\", \"type\": \"SAMPLER\", \"links\": [1091]}]。不追线、不模拟执行。",
"189": "保留拆分step和high_sigmas/low_sigmas两个出口;不实际切分、推算重叠或保证采样连续。 节点189保存直接输入=[{\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 611, \"localized_name\": \"Sigmas\"}, {\"name\": \"step\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"step\"}}];直接输出=[{\"localized_name\": \"高方差\", \"name\": \"high_sigmas\", \"type\": \"SIGMAS\", \"links\": []}, {\"localized_name\": \"低方差\", \"name\": \"low_sigmas\", \"type\": \"SIGMAS\", \"links\": [943]}]。不追线、不模拟执行。",
"378": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点378保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1092}];直接输出=[{\"name\": \"output\", \"type\": \"LATENT\", \"links\": [1093]}]。不追线、不模拟执行。",
"195": "steps/sigma_max/sigma_min/rho完整保存;准确版本接口与原类型分列,不生成sigmas、不计算调度或执行模型。 节点195保存直接输入=[{\"name\": \"steps\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"steps\"}}, {\"name\": \"sigma_max\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"sigma最大值\", \"localized_name\": \"sigma最大值\", \"widget\": {\"name\": \"sigma_max\"}}, {\"name\": \"sigma_min\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"sigma最小值\", \"localized_name\": \"sigma最小值\", \"widget\": {\"name\": \"sigma_min\"}}, {\"name\": \"rho\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"rho\", \"widget\": {\"name\": \"rho\"}}];直接输出=[{\"localized_name\": \"Sigmas\", \"name\": \"SIGMAS\", \"type\": \"SIGMAS\", \"links\": [611]}]。不追线、不模拟执行。",
"438": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点438保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1437, \"label\": \"CTRL\"}];直接输出=[{\"name\": \"\", \"type\": \"IMAGE\", \"links\": [1317]}]。不追线、不模拟执行。",
"181": "add_noise、noise_seed/fixed、cfg四保存位置分别保留;模型/正负/sampler/sigmas/latent外线只静态记录,output和denoised_output两个latent出口分开,不保证执行、接力或可复现。 节点181保存直接输入=[{\"name\": \"model\", \"type\": \"MODEL\", \"link\": 1074, \"localized_name\": \"模型\"}, {\"name\": \"positive\", \"type\": \"CONDITIONING\", \"link\": 1075, \"localized_name\": \"正面条件\"}, {\"name\": \"negative\", \"type\": \"CONDITIONING\", \"link\": 1076, \"localized_name\": \"负面条件\"}, {\"name\": \"sampler\", \"type\": \"SAMPLER\", \"link\": 1080, \"localized_name\": \"采样器\"}, {\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 1168, \"localized_name\": \"Sigmas\"}, {\"name\": \"latent_image\", \"type\": \"LATENT\", \"link\": 677, \"localized_name\": \"Latent\"}, {\"name\": \"add_noise\", \"type\": \"BOOLEAN\", \"link\": null, \"localized_name\": \"添加噪波\", \"widget\": {\"name\": \"add_noise\"}}, {\"name\": \"noise_seed\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"噪波种子\", \"widget\": {\"name\": \"noise_seed\"}}, {\"name\": \"cfg\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"cfg\", \"widget\": {\"name\": \"cfg\"}}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"output\", \"type\": \"LATENT\", \"links\": [1434]}, {\"localized_name\": \"降噪Latent\", \"name\": \"denoised_output\", \"type\": \"LATENT\", \"links\": null}]。不追线、不模拟执行。",
"218": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点218保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 652}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1435]}]。不追线、不模拟执行。",
"372": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点372保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1082}];直接输出=[{\"name\": \"\", \"type\": \"SAMPLER\", \"links\": [1080]}]。不追线、不模拟执行。",
"367": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点367保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1070}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1074]}]。不追线、不模拟执行。",
"371": "保存采样器枚举,仅输出SAMPLER声明,不执行采样或认证可用性/模型兼容。 节点371保存直接输入=[{\"name\": \"sampler_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"采样器名称\", \"widget\": {\"name\": \"sampler_name\"}}];直接输出=[{\"localized_name\": \"采样器\", \"name\": \"SAMPLER\", \"type\": \"SAMPLER\", \"links\": [1081]}]。不追线、不模拟执行。",
"373": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点373保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1081}];直接输出=[{\"name\": \"\", \"type\": \"SAMPLER\", \"links\": [1082]}]。不追线、不模拟执行。",
"346": "steps/sigma_max/sigma_min/rho完整保存;准确版本接口与原类型分列,不生成sigmas、不计算调度或执行模型。 节点346保存直接输入=[{\"name\": \"steps\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"steps\"}}, {\"name\": \"sigma_max\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"sigma最大值\", \"localized_name\": \"sigma最大值\", \"widget\": {\"name\": \"sigma_max\"}}, {\"name\": \"sigma_min\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"sigma最小值\", \"localized_name\": \"sigma最小值\", \"widget\": {\"name\": \"sigma_min\"}}, {\"name\": \"rho\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"rho\", \"widget\": {\"name\": \"rho\"}}];直接输出=[{\"localized_name\": \"Sigmas\", \"name\": \"SIGMAS\", \"type\": \"SIGMAS\", \"links\": [1168]}]。不追线、不模拟执行。",
"180": "独立准确core0.3.77版本按pixels/vae等直接端口记录,不编码或认证模型兼容。 节点180保存直接输入=[{\"name\": \"pixels\", \"type\": \"IMAGE\", \"link\": 1006, \"localized_name\": \"像素\"}, {\"name\": \"vae\", \"type\": \"VAE\", \"link\": 651, \"localized_name\": \"vae\"}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"LATENT\", \"type\": \"LATENT\", \"links\": [677]}]。不追线、不模拟执行。",
"217": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点217保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1123}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [651, 652]}]。不追线、不模拟执行。",
"341": "准确core0.5.1保存699669/fixed/0.04,本图仅image/seed/strength三输入,唯一seed口与fixed前端辅助分列;加噪强度与Resize百分比分开。不生成噪声、执行随机或认证模型/尺寸结果。 节点341保存直接输入=[{\"name\": \"image\", \"type\": \"IMAGE\", \"link\": 1062, \"label\": \"图像\", \"localized_name\": \"图像\"}, {\"name\": \"seed\", \"type\": \"INT\", \"link\": null, \"label\": \"种子\", \"localized_name\": \"种子\", \"widget\": {\"name\": \"seed\"}}, {\"name\": \"strength\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"强度\", \"localized_name\": \"强度\", \"widget\": {\"name\": \"strength\"}}];直接输出=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1006]}]。不追线、不模拟执行。",
"344": "准确8ff图像缩放接口,percentage的50/75/150、height0、contain和area/bilinear按本提交条件解释,非模型质量保证;不试算最终尺寸、读取媒体或运行GPU。 节点344保存直接输入=[{\"name\": \"image\", \"type\": \"IMAGE\", \"link\": 1365, \"label\": \"图像\", \"localized_name\": \"图像\"}, {\"name\": \"measurement\", \"type\": \"COMBO\", \"link\": null, \"label\": \"模式\", \"localized_name\": \"模式\", \"widget\": {\"name\": \"measurement\"}}, {\"name\": \"width\", \"type\": \"INT\", \"link\": null, \"label\": \"宽度\", \"localized_name\": \"宽度\", \"widget\": {\"name\": \"width\"}}, {\"name\": \"height\", \"type\": \"INT\", \"link\": null, \"label\": \"高度\", \"localized_name\": \"高度\", \"widget\": {\"name\": \"height\"}}, {\"name\": \"fit\", \"type\": \"COMBO\", \"link\": null, \"label\": \"适合\", \"localized_name\": \"适合\", \"widget\": {\"name\": \"fit\"}}, {\"name\": \"method\", \"type\": \"COMBO\", \"link\": null, \"label\": \"方法\", \"localized_name\": \"方法\", \"widget\": {\"name\": \"method\"}}];直接输出=[{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1062]}, {\"label\": \"宽度\", \"localized_name\": \"宽度\", \"name\": \"WIDTH\", \"type\": \"INT\", \"links\": null}, {\"label\": \"高度\", \"localized_name\": \"高度\", \"name\": \"HEIGHT\", \"type\": \"INT\", \"links\": null}]。不追线、不模拟执行。",
"374": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点374保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1085}];直接输出=[{\"name\": \"output\", \"type\": \"LATENT\", \"links\": [1086, 1378]}]。不追线、不模拟执行。",
"411": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点411保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1153, \"label\": \" \", \"dir\": 4}];直接输出=[{\"dir\": 1, \"label\": \" \", \"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1198]}]。不追线、不模拟执行。",
"412": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点412保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1154, \"label\": \" \", \"dir\": 4}];直接输出=[{\"dir\": 1, \"label\": \" \", \"name\": \"CLIP\", \"type\": \"CLIP\", \"links\": [1155]}]。不追线、不模拟执行。",
"454": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点454保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1402, \"label\": \" \", \"dir\": 3}];直接输出=[{\"dir\": 1, \"label\": \" \", \"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1261]}]。不追线、不模拟执行。",
"501": "没有准确身份/版本;输入列表、输出slot及mode是原图声明,不借其它节点版本或推演收集/控制次序。 节点501保存直接输入=[{\"name\": \"\\\"照片\\\"模式\", \"type\": \"*\", \"link\": 1397, \"dir\": 3}, {\"name\": \"\\\"插画\\\"艺术模式\", \"type\": \"*\", \"link\": 1398, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"dir\": 4, \"name\": \"Output\", \"type\": \"*\", \"links\": [1332]}]。不追线、不模拟执行。",
"276": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点276保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 852, \"label\": \" \", \"dir\": 1}];直接输出=[{\"dir\": 3, \"label\": \" \", \"name\": \"output\", \"type\": \"LATENT\", \"links\": [853]}]。不追线、不模拟执行。",
"77": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点77保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1421}];直接输出=[{\"label\": \"LATENT\", \"name\": \"\", \"type\": \"LATENT\", \"links\": [1226]}]。不追线、不模拟执行。",
"136": "没有准确身份/版本;输入列表、输出slot及mode是原图声明,不借其它节点版本或推演收集/控制次序。 节点136保存直接输入=[{\"name\": \"备选采样器\", \"type\": \"*\", \"link\": 1207, \"dir\": 3}, {\"name\": \"横向方向\", \"type\": \"*\", \"link\": 783, \"dir\": 3}, {\"name\": \"Spicy 增强器 (实验性)\", \"type\": \"*\", \"link\": 1277, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"dir\": 4, \"name\": \"Output\", \"type\": \"*\", \"links\": [1324]}]。不追线、不模拟执行。",
"331": "没有准确身份/版本;输入列表、输出slot及mode是原图声明,不借其它节点版本或推演收集/控制次序。 节点331保存直接输入=[{\"name\": \"仅7步\", \"type\": \"*\", \"link\": 982, \"label\": \"\", \"dir\": 3}, {\"name\": \"小图生成\", \"type\": \"*\", \"link\": 1227, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"dir\": 4, \"name\": \"Output\", \"type\": \"*\", \"links\": [1309]}]。不追线、不模拟执行。",
"355": "没有准确身份/版本;输入列表、输出slot及mode是原图声明,不借其它节点版本或推演收集/控制次序。 节点355保存直接输入=[{\"name\": \"精炼器\", \"type\": \"*\", \"link\": 1322, \"dir\": 3}, {\"name\": \"放大器\", \"type\": \"*\", \"link\": 1323, \"dir\": 3}, {\"name\": \"节点集合\", \"type\": \"*\", \"link\": 1324, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"dir\": 4, \"name\": \"Output\", \"type\": \"*\", \"links\": [1311]}]。不追线、不模拟执行。",
"255": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点255保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 751}];直接输出=[{\"label\": \"CTRL\", \"name\": \"\", \"type\": \"*\", \"links\": [1227]}]。不追线、不模拟执行。",
"244": "准确实现十六通道空latent接口,保存1088/1600/1,各尺寸/批量输入已有外线覆盖;不与56四通道混同,不执行尺寸表达式或认证模型兼容。 节点244保存直接输入=[{\"name\": \"width\", \"type\": \"INT\", \"link\": 1410, \"localized_name\": \"宽度\", \"widget\": {\"name\": \"width\"}}, {\"name\": \"height\", \"type\": \"INT\", \"link\": 1411, \"localized_name\": \"高度\", \"widget\": {\"name\": \"height\"}}, {\"name\": \"batch_size\", \"type\": \"INT\", \"link\": 1420, \"localized_name\": \"批量大小\", \"widget\": {\"name\": \"batch_size\"}}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"LATENT\", \"type\": \"LATENT\", \"slot_index\": 0, \"links\": [1421]}]。不追线、不模拟执行。",
"443": "整数与fixed前端辅助分开,mode2缓存仍保留;由输出外线使用的数字不归为最终执行尺寸/种子,不求值。 节点443保存直接输入=[{\"name\": \"value\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"数值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"整数\", \"name\": \"INT\", \"type\": \"INT\", \"links\": [1420]}]。不追线、不模拟执行。",
"536": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点536保存直接输入=[{\"name\": \"any_01\", \"type\": \"INT\", \"link\": 1423, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"INT\", \"link\": 1425, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"INT\", \"name\": \"*\", \"shape\": 3, \"type\": \"INT\", \"links\": [1410]}]。不追线、不模拟执行。",
"537": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点537保存直接输入=[{\"name\": \"any_01\", \"type\": \"INT\", \"link\": 1422, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"INT\", \"link\": 1424, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"INT\", \"name\": \"*\", \"shape\": 3, \"type\": \"INT\", \"links\": [1411]}]。不追线、不模拟执行。",
"538": "无准确身份/版本;原mode和端口不认证mute/bypass控制图改写,不模拟静音/旁路传播。 节点538保存直接输入=[{\"name\": \"短边选择器\", \"type\": \"*\", \"link\": 1417, \"dir\": 3}, {\"name\": \"长边选择器\", \"type\": \"*\", \"link\": 1418, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"color_off\": \"#a80\", \"color_on\": \"#Fc0\", \"dir\": 4, \"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": [1419]}]。不追线、不模拟执行。",
"252": "无准确身份/版本;原mode和端口不认证mute/bypass控制图改写,不模拟静音/旁路传播。 节点252保存直接输入=[{\"name\": \"小图短边\", \"type\": \"*\", \"link\": 1231, \"dir\": 3}, {\"name\": \"小图长边\", \"type\": \"*\", \"link\": 1233, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"color_off\": \"#a80\", \"color_on\": \"#Fc0\", \"dir\": 4, \"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": [751]}]。不追线、不模拟执行。",
"248": "整数与fixed前端辅助分开,mode2缓存仍保留;由输出外线使用的数字不归为最终执行尺寸/种子,不求值。 节点248保存直接输入=[{\"name\": \"value\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"数值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"整数\", \"name\": \"INT\", \"type\": \"INT\", \"links\": [730, 1415]}]。不追线、不模拟执行。",
"242": "整数与fixed前端辅助分开,mode2缓存仍保留;由输出外线使用的数字不归为最终执行尺寸/种子,不求值。 节点242保存直接输入=[{\"name\": \"value\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"数值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"整数\", \"name\": \"INT\", \"type\": \"INT\", \"links\": [727, 1230, 1412]}]。不追线、不模拟执行。",
"444": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点444保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1230}];直接输出=[{\"name\": \"\", \"type\": \"INT\", \"links\": [1231]}]。不追线、不模拟执行。",
"445": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点445保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1232}];直接输出=[{\"name\": \"\", \"type\": \"INT\", \"links\": [1233]}]。不追线、不模拟执行。",
"243": "整数与fixed前端辅助分开,mode2缓存仍保留;由输出外线使用的数字不归为最终执行尺寸/种子,不求值。 节点243保存直接输入=[{\"name\": \"value\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"数值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"整数\", \"name\": \"INT\", \"type\": \"INT\", \"links\": [728, 1414]}]。不追线、不模拟执行。",
"247": "整数与fixed前端辅助分开,mode2缓存仍保留;由输出外线使用的数字不归为最终执行尺寸/种子,不求值。 节点247保存直接输入=[{\"name\": \"value\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"数值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"整数\", \"name\": \"INT\", \"type\": \"INT\", \"links\": [729, 1232, 1413]}]。不追线、不模拟执行。",
"254": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点254保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1419}];直接输出=[{\"label\": \"CTRL\", \"name\": \"\", \"type\": \"*\", \"links\": [783]}]。不追线、不模拟执行。",
"246": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点246保存直接输入=[{\"name\": \"any_01\", \"type\": \"INT\", \"link\": 727, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"INT\", \"link\": 728, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"INT\", \"name\": \"*\", \"shape\": 3, \"type\": \"INT\", \"links\": [1417, 1422]}]。不追线、不模拟执行。",
"535": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点535保存直接输入=[{\"name\": \"any_01\", \"type\": \"INT\", \"link\": 1413, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"INT\", \"link\": 1415, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"INT\", \"name\": \"*\", \"shape\": 3, \"type\": \"INT\", \"links\": [1418, 1423]}]。不追线、不模拟执行。",
"249": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点249保存直接输入=[{\"name\": \"any_01\", \"type\": \"INT\", \"link\": 729, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"INT\", \"link\": 730, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"INT\", \"name\": \"*\", \"shape\": 3, \"type\": \"INT\", \"links\": [1424]}]。不追线、不模拟执行。",
"534": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点534保存直接输入=[{\"name\": \"any_01\", \"type\": \"INT\", \"link\": 1412, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"INT\", \"link\": 1414, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"INT\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"INT\", \"name\": \"*\", \"shape\": 3, \"type\": \"INT\", \"links\": [1425]}]。不追线、不模拟执行。",
"522": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点522保存直接输入=[{\"name\": \"any_01\", \"type\": \"IMAGE\", \"link\": 1358, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"IMAGE\", \"link\": 1360, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\"}];直接输出=[{\"dir\": 4, \"label\": \"IMAGE\", \"name\": \"*\", \"shape\": 3, \"type\": \"IMAGE\", \"links\": [1361]}]。不追线、不模拟执行。",
"543": "独立准确core版本按直接samples/vae连线记录,六个解码分支不合并为同次执行;mode2静音不当旁路穿透,不产生图像。 节点543保存直接输入=[{\"name\": \"samples\", \"type\": \"LATENT\", \"link\": 1434, \"localized_name\": \"Latent\"}, {\"name\": \"vae\", \"type\": \"VAE\", \"link\": 1435, \"localized_name\": \"vae\"}];直接输出=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1436, 1437]}]。不追线、不模拟执行。",
"524": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 本图524保存mode0活动,不能据此认证任何惰性分支执行。 节点524保存直接输入=[{\"name\": \"any_01\", \"type\": \"IMAGE\", \"link\": 1436, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"IMAGE\", \"link\": 1366, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"IMAGE\", \"name\": \"*\", \"shape\": 3, \"type\": \"IMAGE\", \"links\": [1397, 1400]}]。不追线、不模拟执行。",
"494": "无准确身份/版本;原mode和端口不认证mute/bypass控制图改写,不模拟静音/旁路传播。 节点494保存直接输入=[{\"name\": \"照片精炼\", \"type\": \"*\", \"link\": 1316, \"dir\": 3}, {\"name\": \"VAE解码\", \"type\": \"*\", \"link\": 1388, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"color_off\": \"#a80\", \"color_on\": \"#Fc0\", \"dir\": 4, \"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": [1322]}]。不追线、不模拟执行。",
"495": "无准确身份/版本;原mode和端口不认证mute/bypass控制图改写,不模拟静音/旁路传播。 节点495保存直接输入=[{\"name\": \"VAE解码\", \"type\": \"*\", \"link\": 1317, \"label\": \"\", \"dir\": 3}, {\"name\": \"VAE解码\", \"type\": \"*\", \"link\": 1318, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"color_off\": \"#a80\", \"color_on\": \"#Fc0\", \"dir\": 4, \"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": [1323]}]。不追线、不模拟执行。",
"531": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 本图531保存mode2静音,不当旁路穿透或推演静音传播/互斥。 节点531保存直接输入=[{\"name\": \"any_01\", \"type\": \"IMAGE\", \"link\": 1432, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"IMAGE\", \"link\": 1404, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\"}];直接输出=[{\"dir\": 4, \"label\": \"IMAGE\", \"name\": \"*\", \"shape\": 3, \"type\": \"IMAGE\", \"links\": [1398, 1401]}]。不追线、不模拟执行。",
"392": "准确8ff完整四位置[{},Header对象,{},空串],三个对象原样保留,不合并空对象、虚构LoRA或强度;前端配置控件与后端动态输入不认证一一映射。 节点392保存直接输入=[{\"name\": \"model\", \"type\": \"MODEL\", \"link\": 1138, \"label\": \"模型\", \"localized_name\": \"模型\", \"dir\": 3}, {\"name\": \"clip\", \"type\": \"CLIP\", \"link\": 1139, \"label\": \"CLIP\", \"localized_name\": \"CLIP\", \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"模型\", \"localized_name\": \"模型\", \"name\": \"MODEL\", \"shape\": 3, \"type\": \"MODEL\", \"links\": [1160]}, {\"dir\": 4, \"name\": \"CLIP\", \"shape\": 3, \"type\": \"CLIP\", \"links\": [1161]}]。不追线、不模拟执行。",
"9": "准确core0.3.75正式output保存;本图源outputs=[]与准确RETURN_TYPES=()一致,无源IMAGE出口冲突。输入images边714及前缀ZImage/%date:yyyy_MM_dd%/ZI完整字符串,方法返回ui.images且无result。不解析日期、创建路径或认证永久产物。 节点9保存直接输入=[{\"name\": \"images\", \"type\": \"IMAGE\", \"link\": 714, \"localized_name\": \"图片\"}, {\"name\": \"filename_prefix\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"文件名前缀\", \"widget\": {\"name\": \"filename_prefix\"}}];直接输出=[]。不追线、不模拟执行。",
"332": "无准确身份/版本;groups及属性只是保存声明,不模拟组开关或假定互斥控制。 节点332保存直接输入=[{\"name\": \"仅7步\", \"type\": \"*\", \"link\": 1310, \"label\": \"\", \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": null}]。不追线、不模拟执行。",
"491": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点491保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1311}];直接输出=[{\"name\": \"\", \"type\": \"*\", \"links\": [1312]}]。不追线、不模拟执行。",
"490": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点490保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1309}];直接输出=[{\"name\": \"\", \"type\": \"*\", \"links\": [1310]}]。不追线、不模拟执行。",
"483": "准确core0.7.0两个Loader均保存4x_foolhardy_Remacri.safetensors,仅模型引用;模型本体、许可与机器可用性未知,不下载/加载。 节点483保存直接输入=[{\"name\": \"model_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"模型名称\", \"widget\": {\"name\": \"model_name\"}}];直接输出=[{\"localized_name\": \"放大模型\", \"name\": \"UPSCALE_MODEL\", \"type\": \"UPSCALE_MODEL\", \"links\": [1295]}]。不追线、不模拟执行。",
"475": "add_noise、noise_seed/fixed、cfg四保存位置分别保留;模型/正负/sampler/sigmas/latent外线只静态记录,output和denoised_output两个latent出口分开,不保证执行、接力或可复现。 节点475保存直接输入=[{\"name\": \"model\", \"type\": \"MODEL\", \"link\": 1282, \"localized_name\": \"模型\"}, {\"name\": \"positive\", \"type\": \"CONDITIONING\", \"link\": 1283, \"localized_name\": \"正面条件\"}, {\"name\": \"negative\", \"type\": \"CONDITIONING\", \"link\": 1284, \"localized_name\": \"负面条件\"}, {\"name\": \"sampler\", \"type\": \"SAMPLER\", \"link\": 1285, \"localized_name\": \"采样器\"}, {\"name\": \"sigmas\", \"type\": \"SIGMAS\", \"link\": 1286, \"localized_name\": \"Sigmas\"}, {\"name\": \"latent_image\", \"type\": \"LATENT\", \"link\": 1287, \"localized_name\": \"Latent\"}, {\"name\": \"add_noise\", \"type\": \"BOOLEAN\", \"link\": null, \"localized_name\": \"添加噪波\", \"widget\": {\"name\": \"add_noise\"}}, {\"name\": \"noise_seed\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"噪波种子\", \"widget\": {\"name\": \"noise_seed\"}}, {\"name\": \"cfg\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"cfg\", \"widget\": {\"name\": \"cfg\"}}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"output\", \"type\": \"LATENT\", \"links\": [1430]}, {\"localized_name\": \"降噪Latent\", \"name\": \"denoised_output\", \"type\": \"LATENT\", \"links\": null}]。不追线、不模拟执行。",
"555": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点555保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1453}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1472]}]。不追线、不模拟执行。",
"515": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点515保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1382, \"label\": \"MODEL\"}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1452]}]。不追线、不模拟执行。",
"514": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点514保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1383, \"label\": \"POS\"}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1453]}]。不追线、不模拟执行。",
"512": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点512保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1384, \"label\": \"NEG\"}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1454]}]。不追线、不模拟执行。",
"542": "独立准确core版本按直接samples/vae连线记录,六个解码分支不合并为同次执行;mode2静音不当旁路穿透,不产生图像。 节点542保存直接输入=[{\"name\": \"samples\", \"type\": \"LATENT\", \"link\": 1430, \"localized_name\": \"Latent\"}, {\"name\": \"vae\", \"type\": \"VAE\", \"link\": 1431, \"localized_name\": \"vae\"}];直接输出=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1432, 1433]}]。不追线、不模拟执行。",
"471": "保存采样器枚举,仅输出SAMPLER声明,不执行采样或认证可用性/模型兼容。 节点471保存直接输入=[{\"name\": \"sampler_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"采样器名称\", \"widget\": {\"name\": \"sampler_name\"}}];直接输出=[{\"localized_name\": \"采样器\", \"name\": \"SAMPLER\", \"type\": \"SAMPLER\", \"links\": [1281]}]。不追线、不模拟执行。",
"488": "steps/sigma_max/sigma_min/rho完整保存;准确版本接口与原类型分列,不生成sigmas、不计算调度或执行模型。 节点488保存直接输入=[{\"name\": \"steps\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"steps\"}}, {\"name\": \"sigma_max\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"sigma最大值\", \"localized_name\": \"sigma最大值\", \"widget\": {\"name\": \"sigma_max\"}}, {\"name\": \"sigma_min\", \"type\": \"FLOAT\", \"link\": null, \"label\": \"sigma最小值\", \"localized_name\": \"sigma最小值\", \"widget\": {\"name\": \"sigma_min\"}}, {\"name\": \"rho\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"rho\", \"widget\": {\"name\": \"rho\"}}];直接输出=[{\"localized_name\": \"Sigmas\", \"name\": \"SIGMAS\", \"type\": \"SIGMAS\", \"links\": [1286]}]。不追线、不模拟执行。",
"557": "独立准确core版本按直接samples/vae连线记录,六个解码分支不合并为同次执行;mode2静音不当旁路穿透,不产生图像。 节点557保存直接输入=[{\"name\": \"samples\", \"type\": \"LATENT\", \"link\": 1470, \"localized_name\": \"Latent\"}, {\"name\": \"vae\", \"type\": \"VAE\", \"link\": 1464, \"localized_name\": \"vae\"}];直接输出=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1456, 1460]}]。不追线、不模拟执行。",
"540": "按本节点准确Git或发布身份分别核静态选择接口;动态输入index/slot/保存mode仅声明,不模拟惰性选择、执行次序、静音改写或追踪转接。 节点540保存直接输入=[{\"name\": \"any_01\", \"type\": \"IMAGE\", \"link\": 1456, \"label\": \"输入_01\", \"localized_name\": \"输入_01\", \"dir\": 3}, {\"name\": \"any_02\", \"type\": \"IMAGE\", \"link\": 1429, \"label\": \"输入_02\", \"localized_name\": \"输入_02\", \"dir\": 3}, {\"name\": \"any_03\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_03\", \"localized_name\": \"输入_03\", \"dir\": 3}, {\"name\": \"any_04\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_04\", \"localized_name\": \"输入_04\", \"dir\": 3}, {\"name\": \"any_05\", \"type\": \"IMAGE\", \"link\": null, \"label\": \"输入_05\", \"localized_name\": \"输入_05\"}];直接输出=[{\"dir\": 4, \"label\": \"IMAGE\", \"name\": \"*\", \"shape\": 3, \"type\": \"IMAGE\", \"links\": [1475]}]。不追线、不模拟执行。",
"550": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点550保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1442}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1461, 1463]}]。不追线、不模拟执行。",
"552": "独立准确core0.3.77版本按pixels/vae等直接端口记录,不编码或认证模型兼容。 节点552保存直接输入=[{\"name\": \"pixels\", \"type\": \"IMAGE\", \"link\": 1462, \"localized_name\": \"像素\"}, {\"name\": \"vae\", \"type\": \"VAE\", \"link\": 1461, \"localized_name\": \"vae\"}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"LATENT\", \"type\": \"LATENT\", \"links\": [1474]}]。不追线、不模拟执行。",
"556": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点556保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1452}];直接输出=[{\"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1471]}]。不追线、不模拟执行。",
"554": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点554保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1454}];直接输出=[{\"name\": \"\", \"type\": \"CONDITIONING\", \"links\": [1473]}]。不追线、不模拟执行。",
"547": "准确core0.7.0按upscale_model/image输入记录,加载权重/显存管理只是源码行为,本轮不加载模型、清理缓存或执行GPU。 节点547保存直接输入=[{\"name\": \"upscale_model\", \"type\": \"UPSCALE_MODEL\", \"link\": 1438, \"localized_name\": \"放大模型\"}, {\"name\": \"image\", \"type\": \"IMAGE\", \"link\": 1439, \"localized_name\": \"图像\"}];直接输出=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1440]}]。不追线、不模拟执行。",
"545": "准确core0.7.0两个Loader均保存4x_foolhardy_Remacri.safetensors,仅模型引用;模型本体、许可与机器可用性未知,不下载/加载。 节点545保存直接输入=[{\"name\": \"model_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"模型名称\", \"widget\": {\"name\": \"model_name\"}}];直接输出=[{\"localized_name\": \"放大模型\", \"name\": \"UPSCALE_MODEL\", \"type\": \"UPSCALE_MODEL\", \"links\": [1438]}]。不追线、不模拟执行。",
"513": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点513保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1357}];直接输出=[{\"name\": \"VAE\", \"type\": \"VAE\", \"links\": [1380, 1442]}]。不追线、不模拟执行。",
"546": "准确8ff图像缩放接口,percentage的50/75/150、height0、contain和area/bilinear按本提交条件解释,非模型质量保证;不试算最终尺寸、读取媒体或运行GPU。 节点546保存直接输入=[{\"name\": \"image\", \"type\": \"IMAGE\", \"link\": 1444, \"label\": \"图像\", \"localized_name\": \"图像\"}, {\"name\": \"measurement\", \"type\": \"COMBO\", \"link\": null, \"label\": \"模式\", \"localized_name\": \"模式\", \"widget\": {\"name\": \"measurement\"}}, {\"name\": \"width\", \"type\": \"INT\", \"link\": null, \"label\": \"宽度\", \"localized_name\": \"宽度\", \"widget\": {\"name\": \"width\"}}, {\"name\": \"height\", \"type\": \"INT\", \"link\": null, \"label\": \"高度\", \"localized_name\": \"高度\", \"widget\": {\"name\": \"height\"}}, {\"name\": \"fit\", \"type\": \"COMBO\", \"link\": null, \"label\": \"适合\", \"localized_name\": \"适合\", \"widget\": {\"name\": \"fit\"}}, {\"name\": \"method\", \"type\": \"COMBO\", \"link\": null, \"label\": \"方法\", \"localized_name\": \"方法\", \"widget\": {\"name\": \"method\"}}];直接输出=[{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1439]}, {\"label\": \"宽度\", \"localized_name\": \"宽度\", \"name\": \"WIDTH\", \"type\": \"INT\", \"links\": null}, {\"label\": \"高度\", \"localized_name\": \"高度\", \"name\": \"HEIGHT\", \"type\": \"INT\", \"links\": null}]。不追线、不模拟执行。",
"548": "准确8ff图像缩放接口,percentage的50/75/150、height0、contain和area/bilinear按本提交条件解释,非模型质量保证;不试算最终尺寸、读取媒体或运行GPU。 节点548保存直接输入=[{\"name\": \"image\", \"type\": \"IMAGE\", \"link\": 1440, \"label\": \"图像\", \"localized_name\": \"图像\"}, {\"name\": \"measurement\", \"type\": \"COMBO\", \"link\": null, \"label\": \"模式\", \"localized_name\": \"模式\", \"widget\": {\"name\": \"measurement\"}}, {\"name\": \"width\", \"type\": \"INT\", \"link\": null, \"label\": \"宽度\", \"localized_name\": \"宽度\", \"widget\": {\"name\": \"width\"}}, {\"name\": \"height\", \"type\": \"INT\", \"link\": null, \"label\": \"高度\", \"localized_name\": \"高度\", \"widget\": {\"name\": \"height\"}}, {\"name\": \"fit\", \"type\": \"COMBO\", \"link\": null, \"label\": \"适合\", \"localized_name\": \"适合\", \"widget\": {\"name\": \"fit\"}}, {\"name\": \"method\", \"type\": \"COMBO\", \"link\": null, \"label\": \"方法\", \"localized_name\": \"方法\", \"widget\": {\"name\": \"method\"}}];直接输出=[{\"label\": \"图像\", \"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"links\": [1462]}, {\"label\": \"宽度\", \"localized_name\": \"宽度\", \"name\": \"WIDTH\", \"type\": \"INT\", \"links\": null}, {\"label\": \"高度\", \"localized_name\": \"高度\", \"name\": \"HEIGHT\", \"type\": \"INT\", \"links\": null}]。不追线、不模拟执行。",
"520": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点520保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1460}];直接输出=[{\"label\": \"CTRL\", \"name\": \"\", \"type\": \"IMAGE\", \"links\": [1388]}]。不追线、不模拟执行。",
"563": "完整保存加噪、seed/fixed、步数、cfg、sampler/scheduler、起止与剩余噪声选择;seed前端辅助与后端缓存分开。仅直接端口/边记录,不执行采样/随机或保证完整步数、无缝接力/可复现。 准确core0.7.0保存20步、起止18/20和696969/fixed;latent1474/输出1470独立,不自动认证接力。 节点563保存直接输入=[{\"name\": \"model\", \"type\": \"MODEL\", \"link\": 1471, \"localized_name\": \"模型\"}, {\"name\": \"positive\", \"type\": \"CONDITIONING\", \"link\": 1472, \"localized_name\": \"正面条件\"}, {\"name\": \"negative\", \"type\": \"CONDITIONING\", \"link\": 1473, \"localized_name\": \"负面条件\"}, {\"name\": \"latent_image\", \"type\": \"LATENT\", \"link\": 1474, \"localized_name\": \"Latent图像\"}, {\"name\": \"add_noise\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"添加噪波\", \"widget\": {\"name\": \"add_noise\"}}, {\"name\": \"noise_seed\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"随机种\", \"widget\": {\"name\": \"noise_seed\"}}, {\"name\": \"steps\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"步数\", \"widget\": {\"name\": \"steps\"}}, {\"name\": \"cfg\", \"type\": \"FLOAT\", \"link\": null, \"localized_name\": \"cfg\", \"widget\": {\"name\": \"cfg\"}}, {\"name\": \"sampler_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"采样器名称\", \"widget\": {\"name\": \"sampler_name\"}}, {\"name\": \"scheduler\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"调度器\", \"widget\": {\"name\": \"scheduler\"}}, {\"name\": \"start_at_step\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"开始步数\", \"widget\": {\"name\": \"start_at_step\"}}, {\"name\": \"end_at_step\", \"type\": \"INT\", \"link\": null, \"localized_name\": \"结束步数\", \"widget\": {\"name\": \"end_at_step\"}}, {\"name\": \"return_with_leftover_noise\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"返回剩余噪波\", \"widget\": {\"name\": \"return_with_leftover_noise\"}}];直接输出=[{\"localized_name\": \"Latent\", \"name\": \"LATENT\", \"type\": \"LATENT\", \"links\": [1470]}]。不追线、不模拟执行。",
"541": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点541保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1428}];直接输出=[{\"name\": \"\", \"type\": \"IMAGE\", \"links\": [1429]}]。不追线、不模拟执行。",
"561": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点561保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1463}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1464]}]。不追线、不模拟执行。",
"381": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点381保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1096, \"label\": \" \", \"dir\": 4}];直接输出=[{\"dir\": 2, \"label\": \" \", \"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1209, 1476]}]。不追线、不模拟执行。",
"564": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点564保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1476, \"label\": \"DEFAULT\"}];直接输出=[{\"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1477]}]。不追线、不模拟执行。",
"436": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点436保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1209, \"label\": \"INPUT\"}];直接输出=[{\"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1365]}]。不追线、不模拟执行。",
"525": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点525保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1477}];直接输出=[{\"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1366]}]。不追线、不模拟执行。",
"565": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点565保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1481, \"label\": \"DEFAULT\"}];直接输出=[{\"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1479]}]。不追线、不模拟执行。",
"489": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点489保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1485, \"label\": \"INPUT\"}];直接输出=[{\"name\": \"\", \"type\": \"IMAGE\", \"links\": [1301]}]。不追线、不模拟执行。",
"533": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点533保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1479, \"label\": \"DEFAULT\"}];直接输出=[{\"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1404]}]。不追线、不模拟执行。",
"57": "无准确身份版本,57完整英文蒸汽朋克工坊/红发发明家/机械蜘蛛句子原样保留,无末尾换行;输出296给54、1102给385。无独立后端字段映射,不翻译替换原值、不构造prompt。 节点57保存直接输入=[];直接输出=[{\"name\": \"STRING\", \"type\": \"STRING\", \"widget\": {\"name\": \"text\"}, \"links\": [296, 1102]}]。不追线、不模拟执行。",
"500": "无准确身份/版本;groups及属性只是保存声明,不模拟组开关或假定互斥控制。 节点500保存直接输入=[{\"name\": \"\\\"照片\\\"模式\", \"type\": \"*\", \"link\": 1332, \"label\": \"\", \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": null}]。不追线、不模拟执行。",
"88": "无准确身份/版本;groups及属性只是保存声明,不模拟组开关或假定互斥控制。 节点88保存直接输入=[{\"name\": \"无\", \"type\": \"*\", \"link\": 1112, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": null}]。不追线、不模拟执行。",
"97": "无准确身份/版本;groups及属性只是保存声明,不模拟组开关或假定互斥控制。 节点97保存直接输入=[{\"name\": \"精炼器\", \"type\": \"*\", \"link\": 1312, \"dir\": 3}, {\"name\": \"\", \"type\": \"*\", \"link\": null, \"dir\": 3}];直接输出=[{\"dir\": 4, \"label\": \"可选连接\", \"localized_name\": \"可选连接\", \"name\": \"OPT_CONNECTION\", \"type\": \"*\", \"links\": null}]。不追线、不模拟执行。",
"459": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点459保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [1268]}]。不追线、不模拟执行。",
"124": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点124保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [513]}]。不追线、不模拟执行。",
"45": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点45保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [556]}]。不追线、不模拟执行。",
"130": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点130保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [557]}]。不追线、不模拟执行。",
"93": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点93保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [555]}]。不追线、不模拟执行。",
"43": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点43保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [552]}]。不追线、不模拟执行。",
"122": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点122保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [550]}]。不追线、不模拟执行。",
"41": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点41保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [538]}]。不追线、不模拟执行。",
"37": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点37保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [559]}]。不追线、不模拟执行。",
"92": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点92保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [497]}]。不追线、不模拟执行。",
"38": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点38保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [492]}]。不追线、不模拟执行。",
"47": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点47保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [510]}]。不追线、不模拟执行。",
"63": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点63保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [560]}]。不追线、不模拟执行。",
"117": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点117保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [509]}]。不追线、不模拟执行。",
"101": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点101保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [472]}]。不追线、不模拟执行。",
"460": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点460保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [1269]}]。不追线、不模拟执行。",
"461": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点461保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [1270]}]。不追线、不模拟执行。",
"528": "独立准确core版本按直接samples/vae连线记录,六个解码分支不合并为同次执行;mode2静音不当旁路穿透,不产生图像。 节点528保存直接输入=[{\"name\": \"samples\", \"type\": \"LATENT\", \"link\": 1379, \"localized_name\": \"Latent\"}, {\"name\": \"vae\", \"type\": \"VAE\", \"link\": 1380, \"localized_name\": \"vae\"}];直接输出=[{\"localized_name\": \"图像\", \"name\": \"IMAGE\", \"type\": \"IMAGE\", \"slot_index\": 0, \"links\": [1428, 1444, 1483]}]。不追线、不模拟执行。",
"567": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点567保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1484, \"label\": \"GOOD\"}];直接输出=[{\"name\": \"*\", \"type\": \"IMAGE\", \"links\": null}]。不追线、不模拟执行。",
"530": "rgthree名转接但没有准确身份/版本,不借其它rgthree版本;无保存参数,不模拟追线/恢复。 节点530保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1385, \"label\": \" \", \"dir\": 4}];直接输出=[{\"dir\": 2, \"label\": \" \", \"name\": \"*\", \"type\": \"IMAGE\", \"links\": [1481, 1484]}]。不追线、不模拟执行。",
"391": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点391保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1262}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1126, 1204, 1357, 1486]}]。不追线、不模拟执行。",
"568": "普通转接,无准确提供方/版本;无参数保存位置,仅保留直接输入/输出及原type/link;不推演跨转接追线或穿透。 节点568保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1486}];直接输出=[{\"name\": \"\", \"type\": \"VAE\", \"links\": [1487]}]。不追线、不模拟执行。",
"566": "普通转接无准确提供方/版本,无保存位置。本图BAD仅是输入label,准确位置/nodes/258/inputs/0,type=*、link1483/输出1485保留;不判坏边、修图或认证REFINER/UPSCALER互斥和质量。 节点566保存直接输入=[{\"name\": \"\", \"type\": \"*\", \"link\": 1483, \"label\": \"BAD\"}];直接输出=[{\"name\": \"\", \"type\": \"IMAGE\", \"links\": [1485]}]。不追线、不模拟执行。",
"125": "本图混合插画与摄影的十八份完整模板含{$@}/{$spicy-content-with},原码点保留罕见空格/连字符/作者拼写;仅125 android phone cam-quality手机摄影模板mode0,38黄金时代胶片模板及其它16份mode2。静音不当旁路,不替换标签/构造prompt,不认证18路生效或18张;保存风格描述不保证画质/写实/镜头效果。 节点125保存直接输入=[{\"name\": \"value\", \"type\": \"STRING\", \"link\": null, \"localized_name\": \"值\", \"widget\": {\"name\": \"value\"}}];直接输出=[{\"localized_name\": \"字符串\", \"name\": \"STRING\", \"type\": \"STRING\", \"links\": [381]}]。不追线、不模拟执行。",
"572": "准确core0.3.75保存Z-Image反斜杠Z-Image_RED_v1.5.safetensors/default,路径不归一化。Note571仍建议turbo bf16,保存模型名与作者前置建议分别保留;RED兼容性、许可与目标可用性未知,不加载模型。 节点572保存直接输入=[{\"name\": \"unet_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"UNet名称\", \"widget\": {\"name\": \"unet_name\"}}, {\"name\": \"weight_dtype\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"数据类型\", \"widget\": {\"name\": \"weight_dtype\"}}];直接输出=[{\"localized_name\": \"模型\", \"name\": \"MODEL\", \"type\": \"MODEL\", \"links\": [1488]}]。不追线、不模拟执行。",
"573": "准确core0.3.75保存qwen_3_4b.safetensors/lumina2/default,编码器接口枚举与实际模型兼容性分开,目标依赖/模型/许可待核。 节点573保存直接输入=[{\"name\": \"clip_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"CLIP名称\", \"widget\": {\"name\": \"clip_name\"}}, {\"name\": \"type\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"类型\", \"widget\": {\"name\": \"type\"}}, {\"name\": \"device\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"设备\", \"widget\": {\"name\": \"device\"}}];直接输出=[{\"localized_name\": \"CLIP\", \"name\": \"CLIP\", \"type\": \"CLIP\", \"links\": [1489]}]。不追线、不模拟执行。",
"574": "准确core0.3.75保存ae.safetensors,VAE各解码/编码支路仅直接线声明,不承诺同模型适配。 节点574保存直接输入=[{\"name\": \"vae_name\", \"type\": \"COMBO\", \"link\": null, \"localized_name\": \"vae名称\", \"widget\": {\"name\": \"vae_name\"}}];直接输出=[{\"localized_name\": \"VAE\", \"name\": \"VAE\", \"type\": \"VAE\", \"links\": [1490]}]。不追线、不模拟执行。"
}
@@ -0,0 +1 @@
PASS three exact formal pytest/lint/format entries
@@ -0,0 +1,17 @@
[
{
"command": "PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_zimage_generala_fixed_document.py calliope-backend/tests/test_workflow_library.py -q",
"exit_code": 0,
"log": "backend-tests.txt"
},
{
"command": "uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/zimage-generala-document-evidence/*.py calliope-backend/tests/test_zimage_generala_fixed_document.py e2e/run-zimage-generala-document.py calliope-backend/src/calliope/comfyui/fixed_document.py",
"exit_code": 0,
"log": "ruff-entry.txt"
},
{
"command": "uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/zimage-generala-document-evidence/*.py calliope-backend/tests/test_zimage_generala_fixed_document.py e2e/run-zimage-generala-document.py calliope-backend/src/calliope/comfyui/fixed_document.py",
"exit_code": 0,
"log": "format-entry.txt"
}
]
@@ -0,0 +1,51 @@
"Acquire only supporting exact-tree source/registration/license text."
import hashlib
import json
import subprocess
from pathlib import Path
ROOT = Path(__file__).resolve().parents[3]
REF = Path(__file__).resolve().parent.parent / "zimage-generala-reference"
def main():
data = json.loads((REF / "sources.json").read_bytes())
additions = {
"rgold": ["py/context_utils.py", "web/comfyui/display_any.js"],
"rgnew": ["py/context_utils.py", "py/power_prompt_utils.py"],
"frontend": ["src/lib/litegraph/LICENSE", "src/lib/litegraph/src/LGraph.ts"],
}
absent = []
for key, files in additions.items():
prototype = next((e for e in data["sources"] if e["id"] == key))
tree = json.loads((REF / (key + "-tree.json")).read_bytes())["tree"]
for file in files:
if any((e["id"] == key and e["file"] == file for e in data["sources"])):
continue
entry = next((e for e in tree if e["path"] == file), None)
if entry is None:
absent.append([key, file])
continue
cache = ROOT / ".local-evidence" / ("zimage-generala-" + key + "-git")
raw = subprocess.check_output(
["git", "-C", str(cache), "show", prototype["commit"] + ":" + file]
)
name = key + "__" + file.replace("/", "__")
(REF / name).write_bytes(raw)
e = dict(prototype)
e.update(
file=file,
local_file=name,
url=f"https://raw.githubusercontent.com/{e['repo']}/{e['commit']}/{file}",
sha256=hashlib.sha256(raw).hexdigest(),
git_blob_sha1=entry["sha"],
)
data["sources"].append(e)
(REF / "supporting-absent.json").write_text(json.dumps(absent, indent=2) + "\n")
(REF / "sources.json").write_text(json.dumps(data, ensure_ascii=False, indent=2) + "\n")
print("PASS selected supporting exact text", absent)
if __name__ == "__main__":
main()
@@ -0,0 +1,104 @@
"Range-read exact release necessary text only; never install or import upstream."
import datetime
import hashlib
import io
import json
import urllib.request
import zipfile
from pathlib import Path
REF = Path(__file__).resolve().parent.parent / "zimage-generala-reference"
class Remote(io.RawIOBase):
def __init__(self, url):
self.url = url
self.pos = 0
self.log = []
with urllib.request.urlopen(urllib.request.Request(url, method="HEAD"), timeout=30) as r:
self.size = int(r.headers["Content-Length"])
self.headers = dict(r.headers)
def seekable(self):
return True
def readable(self):
return True
def tell(self):
return self.pos
def seek(self, off, whence=0):
self.pos = off if whence == 0 else self.pos + off if whence == 1 else self.size + off
return self.pos
def read(self, n=-1):
n = min(self.size - self.pos, n if n >= 0 else self.size - self.pos)
if n <= 0:
return b""
a = self.pos
b = a + n - 1
req = urllib.request.Request(self.url, headers={"Range": f"bytes={a}-{b}"})
with urllib.request.urlopen(req, timeout=40) as r:
assert r.status == 206 and r.headers["Content-Range"].startswith(f"bytes {a}-{b}/")
raw = r.read(n + 1)
assert len(raw) == n
self.pos += n
self.log.append(dict(start=a, end=b, sha256=hashlib.sha256(raw).hexdigest()))
return raw
def main():
url = "https://api.comfy.org/nodes/rgthree-comfy/versions/1.0.2511270846"
with urllib.request.urlopen(url, timeout=30) as r:
raw = r.read()
(REF / "rgpkg-registry.json").write_bytes(raw)
meta = json.loads(raw)
download = meta.get("downloadUrl", meta.get("download_url"))
archive = Remote(download)
rows = []
members = []
selected = ["__init__.py", "py/any_switch.py", "py/utils.py", "py/constants.py", "LICENSE"]
with zipfile.ZipFile(archive) as z:
for info in z.infolist():
members.append(dict(name=info.filename, size=info.file_size, crc=info.CRC))
f = info.filename
if f not in selected:
continue
data = z.read(f)
name = "rgpkg__" + f.replace("/", "__")
(REF / name).write_bytes(data)
rows.append(
dict(
id="rgpkg",
file=f,
local_file=name,
tag="1.0.2511270846",
commit="发布成员到Git绑定未知",
tree="未知",
url=download,
sha256=hashlib.sha256(data).hexdigest(),
package_sha256="unknown-not-downloaded-whole-archive",
member_crc32=info.CRC,
acquisition_time=datetime.datetime.now(datetime.timezone.utc).isoformat(),
license_file="rgpkg__LICENSE",
identity_root=".",
identity_key="rgpkg",
applicability="仅本图96/87准确发布声明,Range必要文本;整包SHA/Git绑定未知",
)
)
assert any((e["file"] == "py/any_switch.py" for e in rows))
(REF / "rgpkg-members.json").write_text(json.dumps(members, indent=2) + "\n")
(REF / "rgpkg-range-proof.json").write_text(json.dumps(archive.log, indent=2) + "\n")
(REF / "rgpkg-sources.json").write_text(
json.dumps(dict(sources=rows), ensure_ascii=False, indent=2) + "\n"
)
x = json.loads((REF / "sources.json").read_bytes())
x["sources"] = [e for e in x["sources"] if e["id"] != "rgpkg"] + rows
(REF / "sources.json").write_text(json.dumps(x, ensure_ascii=False, indent=2) + "\n")
print("PASS Range necessary release texts", len(rows), "whole package not acquired")
if __name__ == "__main__":
main()
@@ -0,0 +1,17 @@
{
"findings": [
"原图266根节点332物理边、无子图;228 mode0/38 mode2,不把静音称旁路穿透。175非注释位置=172标量+392三完整对象,另四完整Note;27节点widgets=[]、161缺键,无具名键。131普通和16rgthree转接无保存位置,所有指针按通用a_独立顺序生成。",
"18段模板仅125 android phone cam-quality手机摄影mode0,38黄金时代胶片及其余16份mode2。插画/摄影混合模板全部保留,罕见空格/连字符/作者拼写、{$@}/{$spicy-content-with}只文本,不替换求值/拼prompt,不认证18路同时生效或18张。",
"57/54/385完整英文steampunk workshop/red-haired inventor/mechanical spider句子无末尾换行,逐位置不去重或翻译替换;385 Both、31/144/146/166完整空串/双空格/标签替换和6/60编码空串、14处外线覆盖分别保留。165漫画封面历史与当前手机摄影模板不一致,不当执行选择或产物证明。",
"56 EmptyLatentImage准确四通道944/1408/1;244 EmptySD3LatentImage准确十六通道1088/1600/1且宽高/批量被1410/1411/1420外线覆盖。六PrimitiveInt的整数与fixed及mode2缓存分开,307的int1经934/935/936覆线给289/286/50,不试算最终尺寸或执行种子。",
"分支调度:321→322→323→324,320 mode2→319 mode2→318 mode2→317 mode2;195→189低sigmas943给279;346 sigmas1168给181;488 sigmas1286给475。只按直接物理边声明,不计算sigma、扩展/拼接/拆分或保证实际步数/无缝接力。",
"两KSamplerAdvanced50/563准确版本各自核,50保存8/起止0与10000/model=null、seed936外接、输出links=null;563保存20与18/20、latent1474外接。五Custom模型/条件/sampler/sigmas/latent输入与output/denoised_output分列,噪声控制只保存,不认证任何支路同时执行/可复现。",
"六VAEDecode:526 samples1368/vae1377、528 samples1379/vae1380、281 samples862/vae1088(mode2)、543 samples1434/vae1435(mode2)、542 samples1430/vae1431(mode2)、557 samples1470/vae1464(mode2)。静音不模拟穿透;编码/放大/缩放/加噪各直接口另列,不造媒体产物或比较器。",
"两模型放大静态链:483模型1295→482,487图1296→482,482图1299→486;545模型1438→547,546图1439→547,547图1440→548。五Resize百分比/插值/contain条件与341加噪分开,不试算尺寸、加载权重、运行GPU或清理显存。",
"566输入BAD标签实际位置/nodes/258/inputs/0,type=*/link1483/输出1485保留,不判非法边。Note569互斥/质量意图仅文案;四Fast Muter/五Repeater/五Collector无身份,16Switch按各自准确版本或未知分列。524 mode0、531 mode2原样保留,不追踪转接或模拟惰性/静音传播/组开关。",
"Save9准确core0.3.75空RETURN_TYPES/正式output返回ui.images且无result,源outputs=[]一致,无源IMAGE口冲突;输入images边714、各支路及日期前缀只原声明/字符串,不创建路径或认证永久产物。",
"191资源、旧74块及其它155审校对象冻结。frontend1.35.9同树锁/LiteGraph原文与LG/UE7.8保存声明分层。Note571 Amazing Z-Image WF v4.0包含前置四模型/目录/URL与More Info/作者信息全文,仅文本不访问;实际UNET为RED_v1.5,bf16建议不等于兼容或许可承诺。无身份辅助节点/目标依赖/宿主恢复未知。",
"341仅image/seed/strength三输入,seed唯一具名口;699669/fixed/0.04的保存/前端辅助/后端接口分列,不执行随机。两Advanced/五Custom/六PrimitiveInt准确版本分别核,fixed不是已执行。",
"原links与照片摄影相同只证明保存物理边列表等值,不证明执行/恢复/路径等价;模板、165历史、524-531模式、输入label与节点排列独立核对,未沿用旧位置索引或旧图身份信任。"
]
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1 @@
15 files already formatted
@@ -0,0 +1 @@
2 files reformatted, 13 files left unchanged
@@ -0,0 +1 @@
15 files reformatted
@@ -0,0 +1,267 @@
> calliope-web@1.5.8 build
> vite build
vite v6.4.3 building SSR bundle for production...
transforming...
6:38:40 PM [vite-plugin-svelte] src/routes/workbench/[id]/+page.svelte:345:3 Self-closing HTML tags for non-void elements are ambiguous — use `<div ...></div>` rather than `<div ... />`
https://svelte.dev/e/element_invalid_self_closing_tag
343: <div class="page-pad">
344: <Skeleton height="64px" />
345: <div class="gap" />
^
346: <Skeleton height="280px" />
347: </div>
6:38:40 PM [vite-plugin-svelte] src/lib/components/workbench/ShotStagePanel.svelte:156:5 `<video>` elements must have a `<track kind="captions">`
https://svelte.dev/e/a11y_media_has_caption
154: {#if shot.description}<p class="vshot-desc">{shot.description}</p>{/if}
155: {#if shot.job?.status === 'done' && shot.job.output}
156: <video
^
157: class="vshot-video"
158: src={assetUrl(shot.job.output) ?? undefined}
"handleConnectionChange" and "handleAttributionWarning" are imported from external module "@xyflow/system" but never used in "node_modules/@xyflow/svelte/dist/lib/hooks/useNodeConnections.svelte.js", "node_modules/@xyflow/svelte/dist/lib/components/Handle/Handle.svelte" and "node_modules/@xyflow/svelte/dist/lib/components/Attribution/Attribution.svelte".
✓ 521 modules transformed.
rendering chunks...
vite v6.4.3 building for production...
transforming...
6:38:42 PM [vite-plugin-svelte] src/routes/workbench/[id]/+page.svelte:345:3 Self-closing HTML tags for non-void elements are ambiguous — use `<div ...></div>` rather than `<div ... />`
https://svelte.dev/e/element_invalid_self_closing_tag
343: <div class="page-pad">
344: <Skeleton height="64px" />
345: <div class="gap" />
^
346: <Skeleton height="280px" />
347: </div>
6:38:43 PM [vite-plugin-svelte] src/lib/components/workbench/ShotStagePanel.svelte:156:5 `<video>` elements must have a `<track kind="captions">`
https://svelte.dev/e/a11y_media_has_caption
154: {#if shot.description}<p class="vshot-desc">{shot.description}</p>{/if}
155: {#if shot.job?.status === 'done' && shot.job.output}
156: <video
^
157: class="vshot-video"
158: src={assetUrl(shot.job.output) ?? undefined}
✓ 763 modules transformed.
rendering chunks...
computing gzip size...
.svelte-kit/output/client/_app/version.json 0.03 kB │ gzip: 0.05 kB
.svelte-kit/output/client/.vite/manifest.json 26.73 kB │ gzip: 3.24 kB
.svelte-kit/output/client/_app/immutable/assets/Icon.BrXLPzfy.css 0.08 kB │ gzip: 0.10 kB
.svelte-kit/output/client/_app/immutable/assets/12.IyyrLGyK.css 0.22 kB │ gzip: 0.15 kB
.svelte-kit/output/client/_app/immutable/assets/6.C62bpzl4.css 0.22 kB │ gzip: 0.15 kB
.svelte-kit/output/client/_app/immutable/assets/LanguageSwitcher.BHCsXcey.css 0.33 kB │ gzip: 0.22 kB
.svelte-kit/output/client/_app/immutable/assets/Skeleton.BQeWIsLh.css 0.39 kB │ gzip: 0.22 kB
.svelte-kit/output/client/_app/immutable/assets/SafeMedia.CBqd7Keo.css 0.54 kB │ gzip: 0.34 kB
.svelte-kit/output/client/_app/immutable/assets/EmptyState.BXjpyO2u.css 0.58 kB │ gzip: 0.31 kB
.svelte-kit/output/client/_app/immutable/assets/Spinner.us8fwMZC.css 0.73 kB │ gzip: 0.37 kB
.svelte-kit/output/client/_app/immutable/assets/ConfirmDialog.DOfiQL0c.css 0.91 kB │ gzip: 0.38 kB
.svelte-kit/output/client/_app/immutable/assets/ProgressBar.DG8dH-U_.css 1.44 kB │ gzip: 0.58 kB
.svelte-kit/output/client/_app/immutable/assets/18.DG2SembM.css 1.87 kB │ gzip: 0.70 kB
.svelte-kit/output/client/_app/immutable/assets/ImageLightbox.BK2SuPZK.css 2.20 kB │ gzip: 0.72 kB
.svelte-kit/output/client/_app/immutable/assets/10.-McisAlK.css 4.49 kB │ gzip: 1.20 kB
.svelte-kit/output/client/_app/immutable/assets/15.Do7_3xO3.css 4.84 kB │ gzip: 1.32 kB
.svelte-kit/output/client/_app/immutable/assets/ComfyDynamicForm.BMZDOzpt.css 4.86 kB │ gzip: 1.14 kB
.svelte-kit/output/client/_app/immutable/assets/16.D3s-Wa9z.css 5.02 kB │ gzip: 1.31 kB
.svelte-kit/output/client/_app/immutable/assets/AgentComposer.ub9gqAax.css 6.39 kB │ gzip: 1.59 kB
.svelte-kit/output/client/_app/immutable/assets/4.D4ArXiOU.css 10.48 kB │ gzip: 2.23 kB
.svelte-kit/output/client/_app/immutable/assets/11.CkE-wdAx.css 10.49 kB │ gzip: 2.33 kB
.svelte-kit/output/client/_app/immutable/assets/3.CU9FCfPU.css 10.86 kB │ gzip: 2.39 kB
.svelte-kit/output/client/_app/immutable/assets/AgentChat.DoddhUHp.css 11.39 kB │ gzip: 2.53 kB
.svelte-kit/output/client/_app/immutable/assets/AppShell.BDTKT42t.css 12.74 kB │ gzip: 2.91 kB
.svelte-kit/output/client/_app/immutable/assets/5.CYAHcbnz.css 15.04 kB │ gzip: 3.15 kB
.svelte-kit/output/client/_app/immutable/assets/0.DtQ4sRph.css 19.40 kB │ gzip: 4.66 kB
.svelte-kit/output/client/_app/immutable/assets/StudioGenerate.DLzq3T0v.css 21.08 kB │ gzip: 4.13 kB
.svelte-kit/output/client/_app/immutable/assets/19.DdIn3xwb.css 22.49 kB │ gzip: 3.73 kB
.svelte-kit/output/client/_app/immutable/assets/8.F76ywLuB.css 28.78 kB │ gzip: 5.24 kB
.svelte-kit/output/client/_app/immutable/assets/7._yLDI1qf.css 31.71 kB │ gzip: 5.43 kB
.svelte-kit/output/client/_app/immutable/nodes/5.DUJAhBNk.js 0.09 kB │ gzip: 0.10 kB
.svelte-kit/output/client/_app/immutable/chunks/Bzak7iHL.js 0.10 kB │ gzip: 0.10 kB
.svelte-kit/output/client/_app/immutable/chunks/DTQKaZHR.js 0.10 kB │ gzip: 0.11 kB
.svelte-kit/output/client/_app/immutable/chunks/IKQcdn9t.js 0.12 kB │ gzip: 0.12 kB
.svelte-kit/output/client/_app/immutable/entry/start.CMEztLg4.js 0.12 kB │ gzip: 0.11 kB
.svelte-kit/output/client/_app/immutable/chunks/B0XwC4Ot.js 0.15 kB │ gzip: 0.14 kB
.svelte-kit/output/client/_app/immutable/nodes/17.DwhGJ1KV.js 0.16 kB │ gzip: 0.14 kB
.svelte-kit/output/client/_app/immutable/nodes/9.CvhWaZ4-.js 0.16 kB │ gzip: 0.14 kB
.svelte-kit/output/client/_app/immutable/chunks/BsCRBkET.js 0.18 kB │ gzip: 0.16 kB
.svelte-kit/output/client/_app/immutable/chunks/PLPYKeY9.js 0.19 kB │ gzip: 0.17 kB
.svelte-kit/output/client/_app/immutable/chunks/CI9jXNKC.js 0.19 kB │ gzip: 0.16 kB
.svelte-kit/output/client/_app/immutable/chunks/CbSJjxqA.js 0.19 kB │ gzip: 0.15 kB
.svelte-kit/output/client/_app/immutable/nodes/14.DzhME1wO.js 0.23 kB │ gzip: 0.21 kB
.svelte-kit/output/client/_app/immutable/chunks/DkrMbCO4.js 0.23 kB │ gzip: 0.18 kB
.svelte-kit/output/client/_app/immutable/nodes/13.d8cRwCTU.js 0.24 kB │ gzip: 0.22 kB
.svelte-kit/output/client/_app/immutable/chunks/jbvGh2cr.js 0.26 kB │ gzip: 0.22 kB
.svelte-kit/output/client/_app/immutable/chunks/DuR33ltU.js 0.28 kB │ gzip: 0.19 kB
.svelte-kit/output/client/_app/immutable/chunks/LOG_p0wv.js 0.29 kB │ gzip: 0.22 kB
.svelte-kit/output/client/_app/immutable/nodes/2.2yb082P1.js 0.37 kB │ gzip: 0.25 kB
.svelte-kit/output/client/_app/immutable/chunks/BqqYkBFO.js 0.37 kB │ gzip: 0.26 kB
.svelte-kit/output/client/_app/immutable/nodes/1.a3JIcLqP.js 0.40 kB │ gzip: 0.28 kB
.svelte-kit/output/client/_app/immutable/chunks/C9dRlz4w.js 0.46 kB │ gzip: 0.30 kB
.svelte-kit/output/client/_app/immutable/chunks/DizlLVgY.js 0.47 kB │ gzip: 0.34 kB
.svelte-kit/output/client/_app/immutable/chunks/BkYbArkN.js 0.49 kB │ gzip: 0.34 kB
.svelte-kit/output/client/_app/immutable/chunks/-UyI9lYi.js 0.51 kB │ gzip: 0.30 kB
.svelte-kit/output/client/_app/immutable/chunks/D41pZ3kD.js 0.56 kB │ gzip: 0.32 kB
.svelte-kit/output/client/_app/immutable/chunks/O29yiedF.js 0.61 kB │ gzip: 0.36 kB
.svelte-kit/output/client/_app/immutable/chunks/D8EAmlG6.js 0.62 kB │ gzip: 0.36 kB
.svelte-kit/output/client/_app/immutable/chunks/BXakyGcx.js 0.71 kB │ gzip: 0.43 kB
.svelte-kit/output/client/_app/immutable/chunks/0jsz6oxm.js 0.75 kB │ gzip: 0.42 kB
.svelte-kit/output/client/_app/immutable/chunks/BzVl9ZHh.js 0.83 kB │ gzip: 0.42 kB
.svelte-kit/output/client/_app/immutable/chunks/f7zKxHYB.js 0.84 kB │ gzip: 0.45 kB
.svelte-kit/output/client/_app/immutable/chunks/BpPWQjN7.js 0.92 kB │ gzip: 0.44 kB
.svelte-kit/output/client/_app/immutable/chunks/B_dFkj9f.js 1.08 kB │ gzip: 0.61 kB
.svelte-kit/output/client/_app/immutable/nodes/12.Hen2oQAf.js 1.18 kB │ gzip: 0.71 kB
.svelte-kit/output/client/_app/immutable/chunks/Dp1pzeXC.js 1.27 kB │ gzip: 0.73 kB
.svelte-kit/output/client/_app/immutable/nodes/6.BSVIJ2lD.js 1.29 kB │ gzip: 0.76 kB
.svelte-kit/output/client/_app/immutable/chunks/wbPk3Yxo.js 1.37 kB │ gzip: 0.66 kB
.svelte-kit/output/client/_app/immutable/chunks/DroLD1Vd.js 1.48 kB │ gzip: 0.78 kB
.svelte-kit/output/client/_app/immutable/chunks/DvVbqmqL.js 1.49 kB │ gzip: 0.75 kB
.svelte-kit/output/client/_app/immutable/chunks/DphahfjY.js 2.00 kB │ gzip: 1.06 kB
.svelte-kit/output/client/_app/immutable/chunks/C6NPzxMU.js 2.24 kB │ gzip: 0.99 kB
.svelte-kit/output/client/_app/immutable/chunks/DBfOsHAR.js 2.77 kB │ gzip: 1.28 kB
.svelte-kit/output/client/_app/immutable/chunks/Cfp5XeNU.js 2.94 kB │ gzip: 1.24 kB
.svelte-kit/output/client/_app/immutable/chunks/tTl_1iKp.js 3.08 kB │ gzip: 1.57 kB
.svelte-kit/output/client/_app/immutable/chunks/DY6GL6X4.js 3.23 kB │ gzip: 1.55 kB
.svelte-kit/output/client/_app/immutable/nodes/18.DVpMY1_Y.js 3.50 kB │ gzip: 1.69 kB
.svelte-kit/output/client/_app/immutable/chunks/-yw0ATYa.js 4.27 kB │ gzip: 1.52 kB
.svelte-kit/output/client/_app/immutable/chunks/Dwm6yq4L.js 5.19 kB │ gzip: 2.50 kB
.svelte-kit/output/client/_app/immutable/chunks/Bn-IQ-PY.js 5.29 kB │ gzip: 2.16 kB
.svelte-kit/output/client/_app/immutable/chunks/DI6q8wJU.js 6.87 kB │ gzip: 3.09 kB
.svelte-kit/output/client/_app/immutable/chunks/B0Wlifky.js 9.22 kB │ gzip: 2.13 kB
.svelte-kit/output/client/_app/immutable/nodes/16.DRAFmgjr.js 10.26 kB │ gzip: 3.94 kB
.svelte-kit/output/client/_app/immutable/chunks/Dq0gzhJg.js 10.98 kB │ gzip: 4.12 kB
.svelte-kit/output/client/_app/immutable/entry/app.C1uw3AYK.js 11.97 kB │ gzip: 4.01 kB
.svelte-kit/output/client/_app/immutable/nodes/0.CcvzD77g.js 12.03 kB │ gzip: 4.41 kB
.svelte-kit/output/client/_app/immutable/nodes/10.DEeVWRGF.js 16.63 kB │ gzip: 6.09 kB
.svelte-kit/output/client/_app/immutable/chunks/b4rAb54u.js 16.64 kB │ gzip: 6.28 kB
.svelte-kit/output/client/_app/immutable/chunks/BJXZgoNf.js 17.38 kB │ gzip: 6.37 kB
.svelte-kit/output/client/_app/immutable/chunks/kyNCFls4.js 20.28 kB │ gzip: 7.19 kB
.svelte-kit/output/client/_app/immutable/nodes/15.UUKKQX7p.js 23.02 kB │ gzip: 7.51 kB
.svelte-kit/output/client/_app/immutable/chunks/DkAjJpLk.js 23.99 kB │ gzip: 9.32 kB
.svelte-kit/output/client/_app/immutable/nodes/11.CjaC9t2k.js 24.95 kB │ gzip: 8.35 kB
.svelte-kit/output/client/_app/immutable/nodes/3.CIrxHVZt.js 25.68 kB │ gzip: 8.33 kB
.svelte-kit/output/client/_app/immutable/nodes/4.Cd-QOSF1.js 29.61 kB │ gzip: 10.00 kB
.svelte-kit/output/client/_app/immutable/chunks/SBMx5f2U.js 33.93 kB │ gzip: 13.15 kB
.svelte-kit/output/client/_app/immutable/chunks/r5SSd_O7.js 38.54 kB │ gzip: 13.85 kB
.svelte-kit/output/client/_app/immutable/chunks/CPluiqx0.js 41.30 kB │ gzip: 15.68 kB
.svelte-kit/output/client/_app/immutable/nodes/19.nRJcBvrr.js 52.59 kB │ gzip: 14.34 kB
.svelte-kit/output/client/_app/immutable/chunks/BbmTSwTk.js 71.50 kB │ gzip: 26.91 kB
.svelte-kit/output/client/_app/immutable/chunks/DCKuF2qd.js 81.38 kB │ gzip: 27.49 kB
.svelte-kit/output/client/_app/immutable/nodes/8.Bls6PVuq.js 86.49 kB │ gzip: 28.96 kB
.svelte-kit/output/client/_app/immutable/nodes/7.Cfht7vUP.js 214.51 kB │ gzip: 69.05 kB
.svelte-kit/output/client/_app/immutable/chunks/BsrzHLJP.js 684.82 kB │ gzip: 180.09 kB
.svelte-kit/output/client/_app/immutable/chunks/2QcV1iOV.js 720.35 kB │ gzip: 209.00 kB
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 3.65s
.svelte-kit/output/server/.vite/manifest.json 23.36 kB
.svelte-kit/output/server/_app/immutable/assets/Icon.BrXLPzfy.css 0.08 kB
.svelte-kit/output/server/_app/immutable/assets/_page.C62bpzl4.css 0.22 kB
.svelte-kit/output/server/_app/immutable/assets/_page.IyyrLGyK.css 0.22 kB
.svelte-kit/output/server/_app/immutable/assets/LanguageSwitcher.BHCsXcey.css 0.33 kB
.svelte-kit/output/server/_app/immutable/assets/Skeleton.BQeWIsLh.css 0.39 kB
.svelte-kit/output/server/_app/immutable/assets/SafeMedia.CBqd7Keo.css 0.54 kB
.svelte-kit/output/server/_app/immutable/assets/EmptyState.BXjpyO2u.css 0.58 kB
.svelte-kit/output/server/_app/immutable/assets/Spinner.us8fwMZC.css 0.73 kB
.svelte-kit/output/server/_app/immutable/assets/ConfirmDialog.C_pBcjz1.css 0.89 kB
.svelte-kit/output/server/_app/immutable/assets/ProgressBar.DG8dH-U_.css 1.44 kB
.svelte-kit/output/server/_app/immutable/assets/_page.DG2SembM.css 1.87 kB
.svelte-kit/output/server/_app/immutable/assets/ImageLightbox.Mjqtht7n.css 2.18 kB
.svelte-kit/output/server/_app/immutable/assets/_page.CxLkc7AF.css 3.49 kB
.svelte-kit/output/server/_app/immutable/assets/_page.-McisAlK.css 4.49 kB
.svelte-kit/output/server/_app/immutable/assets/RefImageGrid.Cg0JH9u1.css 4.86 kB
.svelte-kit/output/server/_app/immutable/assets/_page.D3s-Wa9z.css 5.02 kB
.svelte-kit/output/server/_app/immutable/assets/AgentComposer.BeAeVWGq.css 6.34 kB
.svelte-kit/output/server/_app/immutable/assets/_page.DH5AEk6F.css 9.35 kB
.svelte-kit/output/server/_app/immutable/assets/_page.Bra3CMMT.css 10.42 kB
.svelte-kit/output/server/_app/immutable/assets/_page.BUR6RoLt.css 10.46 kB
.svelte-kit/output/server/_app/immutable/assets/_page.0zMz792f.css 10.78 kB
.svelte-kit/output/server/_app/immutable/assets/AgentChat.C1veD2Ar.css 11.37 kB
.svelte-kit/output/server/_app/immutable/assets/AppShell.ymPBcNjP.css 12.64 kB
.svelte-kit/output/server/_app/immutable/assets/_layout.B1MJuaEd.css 19.33 kB
.svelte-kit/output/server/_app/immutable/assets/StudioGenerate.pbw6ZUUi.css 20.96 kB
.svelte-kit/output/server/_app/immutable/assets/_page.DdIn3xwb.css 22.49 kB
.svelte-kit/output/server/_app/immutable/assets/_page.Bs4Fx5Yn.css 28.74 kB
.svelte-kit/output/server/_app/immutable/assets/_page.BC6N9k4h.css 31.67 kB
.svelte-kit/output/server/entries/pages/_layout.ts.js 0.06 kB
.svelte-kit/output/server/entries/pages/agents/_page.ts.js 0.08 kB
.svelte-kit/output/server/entries/pages/library/_page.ts.js 0.08 kB
.svelte-kit/output/server/entries/pages/models/_page.ts.js 0.08 kB
.svelte-kit/output/server/entries/pages/settings/_page.ts.js 0.08 kB
.svelte-kit/output/server/entries/pages/workbench/_page.ts.js 0.08 kB
.svelte-kit/output/server/entries/pages/workbench/_id_/_page.ts.js 0.08 kB
.svelte-kit/output/server/entries/pages/_page.ts.js 0.12 kB
.svelte-kit/output/server/entries/hooks.server.js 0.13 kB
.svelte-kit/output/server/chunks/wideLayout.js 0.15 kB
.svelte-kit/output/server/entries/pages/build-scene/_page.ts.js 0.17 kB
.svelte-kit/output/server/entries/pages/canvas/_page.ts.js 0.17 kB
.svelte-kit/output/server/entries/pages/canvas/_id_/_page.ts.js 0.17 kB
.svelte-kit/output/server/entries/pages/playground/_page.ts.js 0.17 kB
.svelte-kit/output/server/entries/pages/projects/_page.ts.js 0.17 kB
.svelte-kit/output/server/entries/pages/image/_page.svelte.js 0.20 kB
.svelte-kit/output/server/entries/pages/video/_page.svelte.js 0.20 kB
.svelte-kit/output/server/entries/pages/project/_id_/_page.ts.js 0.20 kB
.svelte-kit/output/server/chunks/index-server.js 0.22 kB
.svelte-kit/output/server/env.js 0.23 kB
.svelte-kit/output/server/chunks/client.js 0.31 kB
.svelte-kit/output/server/chunks/index-server2.js 0.31 kB
.svelte-kit/output/server/internal.js 0.35 kB
.svelte-kit/output/server/entries/fallbacks/error.svelte.js 0.35 kB
.svelte-kit/output/server/chunks/state.svelte.js 0.45 kB
.svelte-kit/output/server/chunks/Skeleton.js 0.48 kB
.svelte-kit/output/server/chunks/Spinner.js 0.52 kB
.svelte-kit/output/server/entries/pages/canvas/_id_/_layout.svelte.js 0.55 kB
.svelte-kit/output/server/chunks/index2.js 0.57 kB
.svelte-kit/output/server/chunks/server.js 0.62 kB
.svelte-kit/output/server/entries/pages/canvas/_page.svelte.js 0.66 kB
.svelte-kit/output/server/entries/pages/playground/_page.svelte.js 0.67 kB
.svelte-kit/output/server/chunks/utils2.js 0.72 kB
.svelte-kit/output/server/chunks/ids.js 0.77 kB
.svelte-kit/output/server/chunks/Icon.svelte_svelte_type_style_lang.js 0.86 kB
.svelte-kit/output/server/chunks/endpointKind.js 0.95 kB
.svelte-kit/output/server/chunks/createMutation.js 1.03 kB
.svelte-kit/output/server/chunks/EmptyState.js 1.04 kB
.svelte-kit/output/server/chunks/toast.js 1.14 kB
.svelte-kit/output/server/chunks/context.js 1.20 kB
.svelte-kit/output/server/chunks/LanguageSwitcher.js 1.36 kB
.svelte-kit/output/server/chunks/AppShell.svelte_svelte_type_style_lang.js 1.46 kB
.svelte-kit/output/server/chunks/SafeMedia.js 1.65 kB
.svelte-kit/output/server/chunks/ProgressBar.js 1.88 kB
.svelte-kit/output/server/chunks/useUpload.svelte.js 2.16 kB
.svelte-kit/output/server/chunks/takeDelete.svelte.js 2.57 kB
.svelte-kit/output/server/chunks/index3.js 2.77 kB
.svelte-kit/output/server/entries/pages/_layout.svelte.js 3.08 kB
.svelte-kit/output/server/chunks/ConfirmDialog.js 3.25 kB
.svelte-kit/output/server/chunks/internal.js 3.79 kB
.svelte-kit/output/server/entries/pages/workbench/_page.svelte.js 4.93 kB
.svelte-kit/output/server/chunks/exports.js 5.54 kB
.svelte-kit/output/server/chunks/Icon.js 6.04 kB
.svelte-kit/output/server/entries/pages/agents/_page.svelte.js 7.88 kB
.svelte-kit/output/server/entries/pages/tasks/_page.svelte.js 13.44 kB
.svelte-kit/output/server/entries/pages/settings/_page.svelte.js 15.12 kB
.svelte-kit/output/server/chunks/LanguageSwitcher.svelte_svelte_type_style_lang.js 16.32 kB
.svelte-kit/output/server/entries/pages/library/_page.svelte.js 19.77 kB
.svelte-kit/output/server/entries/pages/_page.svelte.js 25.48 kB
.svelte-kit/output/server/chunks/RefImageGrid.js 25.96 kB
.svelte-kit/output/server/chunks/root.js 29.43 kB
.svelte-kit/output/server/chunks/AgentComposer.js 34.01 kB
.svelte-kit/output/server/chunks/utils.js 34.14 kB
.svelte-kit/output/server/entries/pages/models/_page.svelte.js 36.24 kB
.svelte-kit/output/server/remote-entry.js 36.81 kB
.svelte-kit/output/server/chunks/AppShell.js 39.27 kB
.svelte-kit/output/server/entries/pages/workbench/_id_/_page.svelte.js 50.91 kB
.svelte-kit/output/server/entries/pages/build-scene/_page.svelte.js 51.30 kB
.svelte-kit/output/server/chunks/StudioGenerate.js 99.49 kB
.svelte-kit/output/server/chunks/index.js 101.49 kB
.svelte-kit/output/server/index.js 130.14 kB
.svelte-kit/output/server/entries/pages/connections/_page.svelte.js 132.44 kB
.svelte-kit/output/server/entries/pages/canvas/_id_/_page.svelte.js 145.51 kB
.svelte-kit/output/server/chunks/i18n.svelte.js 786.88 kB
✓ built in 6.90s
Run npm run preview to preview your production build locally.
> Using @sveltejs/adapter-static
Wrote site to "build"
✔ done
@@ -0,0 +1,771 @@
{
"base": "d3447f2e6600c515d712127d8cab01ecae72bf48",
"files": [
{
"path": "calliope-backend/src/calliope/comfyui/__init__.py",
"sha256": "1d3488bcc2eadcd8a8f2e84ab4f6e9bdf52096b8af637c4da399db041d5a0543"
},
{
"path": "calliope-backend/src/calliope/comfyui/client.py",
"sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72"
},
{
"path": "calliope-backend/src/calliope/comfyui/companions.py",
"sha256": "7dde205059bf489e3d39539a8b42333b3947c3989d890441f70a45cf67d9ab04"
},
{
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.json",
"sha256": "3a85718f877a63be54c843e2610b24dcc3013a6011f705d6348c91e2c7f78fd6"
},
{
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.py",
"sha256": "0b849256dbb06f709c1ba856c34b3df04d2fccf09984a6e1fe1284b792eaf867"
},
{
"path": "calliope-backend/src/calliope/comfyui/dry_run.py",
"sha256": "f8bf4d1b91d959044de1dbc4aeb11bf0bb521f51f1928d36a46c670381a08ed7"
},
{
"path": "calliope-backend/src/calliope/comfyui/endpoints.py",
"sha256": "fc99a623850b581ae38843bbc3baf1b71ca9fd633e6103a34cb809a345e5a647"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py",
"sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py",
"sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f"
},
{
"path": "calliope-backend/src/calliope/comfyui/library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
},
{
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
},
{
"path": "calliope-backend/src/calliope/comfyui/lint.py",
"sha256": "9b79bf162e13fb68321727fb17f96d6fc0c217d60db85de38235c4270bf9b4e3"
},
{
"path": "calliope-backend/src/calliope/comfyui/output_map.py",
"sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e"
},
{
"path": "calliope-backend/src/calliope/comfyui/parser.py",
"sha256": "a02d583c6a1cf7f85e77341a20308823771c233fb95241118a264e202a5230a0"
},
{
"path": "calliope-backend/src/calliope/comfyui/patcher.py",
"sha256": "8ac1417f0f78d952cdb219b10811a6ed7d4ce3bb0d561708858c4a8f5d15b45d"
},
{
"path": "calliope-backend/src/calliope/comfyui/preflight.py",
"sha256": "6629961d33204cbe5b3fc3d8a5a0a4de0c86d235e73f542d191429cf7f4bd2ec"
},
{
"path": "calliope-backend/src/calliope/comfyui/profiles.py",
"sha256": "4ca33343fc3f20e0fb82558cb428548f6415af04fb90213a694fb759515732f2"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.py",
"sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916"
},
{
"path": "calliope-backend/src/calliope/comfyui/registry.py",
"sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d"
},
{
"path": "calliope-backend/src/calliope/comfyui/roles.py",
"sha256": "cc0b45eac2d881a6f7cc5ea88ceadb03f71715240a45257fef3a76bfc53d56c4"
},
{
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
"sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1"
},
{
"path": "calliope-backend/src/calliope/comfyui/smart_fill.py",
"sha256": "adc34e80cca7a2b38cc834a713c9e64001caac84413af288389e5554e304bab6"
},
{
"path": "calliope-backend/src/calliope/comfyui/source_reviews.py",
"sha256": "b85e26f1e4fce77f75429b7bc0653401065b2cd28151bdf5d9edc87c096e9419"
},
{
"path": "calliope-backend/src/calliope/comfyui/structure_reference.py",
"sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb"
},
{
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
"sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f"
},
{
"path": "calliope-backend/src/calliope/comfyui/validate.py",
"sha256": "c27fca69a604705b06809fdd692975ca0e7a08d05d558172962f8910a6a0491d"
},
{
"path": "docs/hel-892/supplied-api/01.api.json",
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e"
},
{
"path": "docs/hel-892/supplied-api/02.api.json",
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b"
},
{
"path": "docs/hel-892/supplied-api/03.api.json",
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce"
},
{
"path": "docs/hel-892/supplied-api/04.api.json",
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e"
},
{
"path": "docs/hel-892/supplied-api/05.api.json",
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8"
},
{
"path": "docs/hel-892/supplied-api/06.api.json",
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b"
},
{
"path": "docs/hel-892/supplied-api/07.api.json",
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d"
},
{
"path": "docs/hel-892/supplied-api/manifest.json",
"sha256": "f1367b4fa7a8377fb57512d17c80bc697d4d3abd0adb77adc3c06c6dedab69ea"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b"
},
{
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313"
},
{
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757"
},
{
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40"
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce"
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c"
}
],
"original_files": 156,
"all_unchanged": true
}
@@ -0,0 +1,15 @@
{
"actual_get_equal": true,
"actual_get_sha256": "269aa329f4937ddd5383b6ddbd5e8e003fd314003b4284833edeac16c03dc3aa",
"document_sha256": "4489bbff6d05b36d49d920e396433622a184af48b6671eb0fb250eaa5aa3a940",
"browser_assertions": 7242,
"forbidden_requests": 0,
"font_css_intercepts": 1,
"visually_reviewed": [
"1440-86-default.png",
"390-86-default.png",
"390-86-125-value.png",
"390-86-111-note.png",
"390-86-571-note.png"
]
}
@@ -0,0 +1,69 @@
{
"base": "d3447f2e6600c515d712127d8cab01ecae72bf48",
"first": {
"imported": 155,
"user_excluded": 1
},
"upgrade": {
"skipped": 154,
"updated": 1,
"user_excluded": 1
},
"repeat": {
"skipped": 155,
"user_excluded": 1
},
"restored_rows": 1,
"untouched_whole_rows": 154,
"eligibility_unchanged": true,
"redo": {
"skipped": 154,
"updated": 1,
"user_excluded": 1
},
"user_protection": [
{
"phase": "user-before",
"counts": {
"skipped": 154,
"conflict": 1,
"user_excluded": 1
},
"whole_rows": 1,
"columns": 29
},
{
"phase": "user-after",
"counts": {
"skipped": 154,
"conflict": 1,
"user_excluded": 1
},
"whole_rows": 1,
"columns": 29
}
],
"fresh": {
"imported": 155,
"user_excluded": 1
},
"fresh_repeat": {
"skipped": 155,
"user_excluded": 1
},
"states": {
"pending_check": 16,
"needs_conversion": 139
},
"source_named_fields": 1217,
"positional_widgets": 3660,
"companion_values": 294,
"new_saved": 175,
"new_notes": 4,
"old_saved": 3464,
"old_notes": 90,
"overviews": 75,
"all_disabled": true,
"doc_done": 0,
"executed": 0
}
@@ -0,0 +1,338 @@
{
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23",
"physical_links_equal": true,
"same_links_do_not_certify_execution": true,
"node_changes": [
{
"id": 151,
"pointer": "/nodes/3",
"different_keys": [
"inputs"
]
},
{
"id": 104,
"pointer": "/nodes/18",
"different_keys": [
"inputs"
]
},
{
"id": 165,
"pointer": "/nodes/80",
"different_keys": [
"widgets_values"
]
},
{
"id": 87,
"pointer": "/nodes/96",
"different_keys": [
"inputs"
]
},
{
"id": 524,
"pointer": "/nodes/191",
"different_keys": [
"mode"
]
},
{
"id": 531,
"pointer": "/nodes/194",
"different_keys": [
"mode"
]
},
{
"id": 111,
"pointer": "/nodes/200",
"different_keys": [
"order",
"widgets_values"
]
},
{
"id": 483,
"pointer": "/nodes/201",
"different_keys": [
"order"
]
},
{
"id": 471,
"pointer": "/nodes/208",
"different_keys": [
"order"
]
},
{
"id": 488,
"pointer": "/nodes/209",
"different_keys": [
"order"
]
},
{
"id": 545,
"pointer": "/nodes/217",
"different_keys": [
"order"
]
},
{
"id": 57,
"pointer": "/nodes/232",
"different_keys": [
"order"
]
},
{
"id": 459,
"pointer": "/nodes/236",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 124,
"pointer": "/nodes/237",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 45,
"pointer": "/nodes/238",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 130,
"pointer": "/nodes/239",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 93,
"pointer": "/nodes/240",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 43,
"pointer": "/nodes/241",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 122,
"pointer": "/nodes/242",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 41,
"pointer": "/nodes/243",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 37,
"pointer": "/nodes/244",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 92,
"pointer": "/nodes/245",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 38,
"pointer": "/nodes/246",
"different_keys": [
"mode",
"order",
"title",
"widgets_values"
]
},
{
"id": 47,
"pointer": "/nodes/247",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 63,
"pointer": "/nodes/248",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 117,
"pointer": "/nodes/249",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 101,
"pointer": "/nodes/250",
"different_keys": [
"order"
]
},
{
"id": 460,
"pointer": "/nodes/251",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 461,
"pointer": "/nodes/252",
"different_keys": [
"order",
"title",
"widgets_values"
]
},
{
"id": 569,
"pointer": "/nodes/259",
"different_keys": [
"order"
]
},
{
"id": 125,
"pointer": "/nodes/260",
"different_keys": [
"mode",
"order"
]
},
{
"id": 570,
"pointer": "/nodes/261",
"different_keys": [
"order"
]
},
{
"id": 572,
"pointer": "/nodes/262",
"different_keys": [
"order"
]
},
{
"id": 573,
"pointer": "/nodes/263",
"different_keys": [
"order"
]
},
{
"id": 574,
"pointer": "/nodes/264",
"different_keys": [
"order"
]
},
{
"id": 571,
"pointer": "/nodes/265",
"different_keys": [
"widgets_values"
]
}
],
"notes": [
{
"id": 111,
"pointer": "/nodes/200/widgets_values/0",
"characters": 234
},
{
"id": 569,
"pointer": "/nodes/259/widgets_values/0",
"characters": 209
},
{
"id": 570,
"pointer": "/nodes/261/widgets_values/0",
"characters": 622
},
{
"id": 571,
"pointer": "/nodes/265/widgets_values/0",
"characters": 1615
}
],
"template_modes": {
"459": 2,
"124": 2,
"45": 2,
"130": 2,
"93": 2,
"43": 2,
"122": 2,
"41": 2,
"37": 2,
"92": 2,
"38": 2,
"47": 2,
"63": 2,
"117": 2,
"101": 2,
"460": 2,
"461": 2,
"125": 0
},
"bad_pointer": "/nodes/258/inputs/0",
"seed_pointer": "/nodes/159/inputs/1"
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1 @@
Saved 175 notes 4 scopes [{'pointer': '/', 'nodes': 266, 'edges': 332, 'modes': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 2, 0, 0, 0, 2, 0, 2, 2, 0, 0, 0, 2, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'named_nodes': 0}]
@@ -0,0 +1,87 @@
"Independent original bytes and every physical boundary; no layout mapping."
import hashlib
import json
from pathlib import Path
ROOT = Path(__file__).resolve().parents[3]
OUT = Path(__file__).resolve().parent
PATH = "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json"
def inventory():
raw = (ROOT / PATH).read_bytes()
g = json.loads(raw)
(fields, empty, notes, scopes) = ([], [], [], [])
graphs = [("", g)] + [
(f"/definitions/subgraphs/{i}", s)
for (i, s) in enumerate(g.get("definitions", {}).get("subgraphs", []))
]
for prefix, graph in graphs:
scopes.append(
dict(
pointer=prefix or "/",
nodes=len(graph["nodes"]),
edges=len(graph["links"]),
modes=[n["mode"] for n in graph["nodes"]],
named_nodes=sum(("widgets_values_named" in n for n in graph["nodes"])),
)
)
for i, n in enumerate(graph["nodes"]):
p = f"{prefix}/nodes/{i}"
if "widgets_values" not in n or n["widgets_values"] in [None, []]:
empty.append(
dict(
node=n["id"],
pointer=p,
state="missing"
if "widgets_values" not in n
else "null"
if n["widgets_values"] is None
else "empty_list",
)
)
if n["type"] in ["Note", "MarkdownNote"]:
notes.append(
dict(
node=n["id"],
pointer=p + "/widgets_values/0",
text=n["widgets_values"][0],
characters=len(n["widgets_values"][0]),
)
)
continue
for j, v in enumerate(n.get("widgets_values") or []):
fields.append(
dict(
node=n["id"],
pointer=f"{p}/widgets_values/{j}",
value=v,
json_type=type(v).__name__,
scope="root" if not prefix else prefix,
named=n.get("widgets_values_named"),
)
)
return dict(
path=PATH,
sha256=hashlib.sha256(raw).hexdigest(),
git_blob_sha1=hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\x00" + raw).hexdigest(),
fields=fields,
empty=empty,
notes=notes,
scopes=scopes,
extra=g["extra"],
hosts=[n for n in g["nodes"] if n["id"] in [110]],
definition_boundary=[
{k: s[k] for k in ["id", "inputNode", "outputNode", "inputs", "outputs", "widgets"]}
for s in g.get("definitions", {}).get("subgraphs", [])
],
)
if __name__ == "__main__":
x = inventory()
(OUT / "independent-inventory.json").write_text(
json.dumps(x, ensure_ascii=False, indent=2) + "\n"
)
print("Saved", len(x["fields"]), "notes", len(x["notes"]), "scopes", x["scopes"])
@@ -0,0 +1,23 @@
[
{
"file": "fixed_document.py",
"sha256": "f21b609f6c2cf49e806a6de7e3dd65aab736e38ba67140ff11d618926d8c25d5",
"wheel": true,
"sdist": true,
"definitions": 75
},
{
"file": "source_reviews.json",
"sha256": "a8975b80946d51ffa931de908bdae93672ee061493d4e5b1f1290b8d901ade01",
"wheel": true,
"sdist": true,
"definitions": 75
},
{
"file": "library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
"wheel": true,
"sdist": true,
"definitions": 75
}
]
@@ -0,0 +1,3 @@
{
"example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json": "3487c8fc3ea14f1469b2bc1f9d5d8ea590728ebc40fb6d9ad06a77f1583210e7"
}
@@ -0,0 +1,12 @@
[
{
"port": 8247,
"connect_ex": 111,
"connection_refused": true
},
{
"port": 5173,
"connect_ex": 111,
"connection_refused": true
}
]
@@ -0,0 +1,259 @@
"Reuse exact necessary bytes, then acquire bounded missing pinned source text only."
import datetime
import hashlib
import json
import subprocess
from pathlib import Path
ROOT = Path(__file__).resolve().parents[3]
OUT = Path(__file__).resolve().parent
REF = OUT.parent / "zimage-generala-reference"
REF.mkdir(exist_ok=True)
SPECS = [
(
"core0375",
"Comfy-Org/ComfyUI",
"v0.3.75",
[
"nodes.py",
"folder_paths.py",
"comfy_extras/nodes_string.py",
"comfy_extras/nodes_primitive.py",
"comfy_extras/nodes_custom_sampler.py",
"comfy_extras/nodes_images.py",
"comfy_extras/nodes_sd3.py",
"comfy_extras/nodes_upscale_model.py",
"LICENSE",
],
),
(
"core0377",
"Comfy-Org/ComfyUI",
"v0.3.77",
[
"nodes.py",
"folder_paths.py",
"comfy_extras/nodes_string.py",
"comfy_extras/nodes_primitive.py",
"comfy_extras/nodes_custom_sampler.py",
"comfy_extras/nodes_images.py",
"comfy_extras/nodes_sd3.py",
"comfy_extras/nodes_upscale_model.py",
"LICENSE",
],
),
(
"core051",
"Comfy-Org/ComfyUI",
"v0.5.1",
[
"nodes.py",
"folder_paths.py",
"comfy_extras/nodes_string.py",
"comfy_extras/nodes_primitive.py",
"comfy_extras/nodes_custom_sampler.py",
"comfy_extras/nodes_images.py",
"comfy_extras/nodes_sd3.py",
"comfy_extras/nodes_upscale_model.py",
"LICENSE",
],
),
(
"core070",
"Comfy-Org/ComfyUI",
"v0.7.0",
[
"nodes.py",
"folder_paths.py",
"comfy_extras/nodes_string.py",
"comfy_extras/nodes_primitive.py",
"comfy_extras/nodes_custom_sampler.py",
"comfy_extras/nodes_images.py",
"comfy_extras/nodes_sd3.py",
"comfy_extras/nodes_upscale_model.py",
"LICENSE",
],
),
(
"rgold",
"rgthree/rgthree-comfy",
"e9d56181883d4e05c4236f09422582f49abdec86",
[
"__init__.py",
"py/any_switch.py",
"py/display_any.py",
"py/image_resize.py",
"py/power_lora_loader.py",
"py/utils.py",
"py/constants.py",
"web/comfyui/power_lora_loader.js",
"web/comfyui/image_resize.js",
"web/comfyui/any_switch.js",
"LICENSE",
],
),
(
"rgnew",
"rgthree/rgthree-comfy",
"8ff50e4521881eca1fe26aec9615fc9362474931",
[
"__init__.py",
"py/any_switch.py",
"py/display_any.py",
"py/image_resize.py",
"py/power_lora_loader.py",
"py/utils.py",
"py/constants.py",
"web/comfyui/power_lora_loader.js",
"web/comfyui/image_resize.js",
"web/comfyui/any_switch.js",
"LICENSE",
],
),
(
"frontend",
"Comfy-Org/ComfyUI_frontend",
"v1.35.9",
[
"package.json",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
"src/scripts/widgets.ts",
"src/scripts/app.ts",
"src/lib/litegraph/src/litegraph.ts",
"src/lib/litegraph/src/LGraphNode.ts",
"LICENSE",
],
),
]
def main():
rows = []
selections = []
for folder, ids in selections:
root = REF.parent / folder
for original in json.loads((root / "sources.json").read_bytes())["sources"]:
if original["id"] not in ids:
continue
e = original.copy()
e["identity_key"] = e.get("identity_key", e["id"])
e["id"] = ids[original["id"]]
if any((x["id"] == e["id"] and x["file"] == e["file"] for x in rows)):
continue
for keyname in ["local_file", "identity_root"]:
e[keyname] = "../" + folder + "/" + e.get(keyname, ".")
if not e["license_file"].startswith("未知"):
e["license_file"] = "../" + folder + "/" + e["license_file"]
e.setdefault("tag", e["commit"])
e["applicability"] = (
"本图独立准确声明身份;旧采集时间保留、原字节重核。包到Git未知、宿主和别名恢复未知。"
)
rows.append(e)
for key, repo, tag, files in SPECS:
cache = ROOT / ".local-evidence" / ("zimage-generala-" + key + "-git")
cache.mkdir(parents=True, exist_ok=True)
subprocess.run(["git", "init", "--bare", str(cache)], check=True, stdout=subprocess.DEVNULL)
if not (cache / "FETCH_HEAD").exists():
subprocess.run(
[
"git",
"-C",
str(cache),
"fetch",
"--filter=blob:none",
"--depth=1",
"https://github.com/" + repo + ".git",
"refs/tags/" + tag if tag.startswith("v") else tag,
],
check=True,
)
def git(*args):
return subprocess.check_output(["git", "-C", str(cache), *args])
rev = git("rev-parse", "FETCH_HEAD^{commit}").decode().strip()
tree = git("rev-parse", rev + "^{tree}").decode().strip()
(REF / (key + "-commit.txt")).write_bytes(git("cat-file", "commit", rev))
(REF / (key + "-tag.txt")).write_bytes(git("cat-file", "-p", "FETCH_HEAD"))
(REF / (key + "-tag.json")).write_text(
json.dumps(
dict(ref=tag, commit=rev, object=git("rev-parse", "FETCH_HEAD").decode().strip()),
indent=2,
)
+ "\n"
)
entries = []
for line in git("ls-tree", "-r", rev).decode().splitlines():
(head, path) = line.split("\t", 1)
(mode, kind, sha) = head.split()
entries.append(dict(path=path, mode=mode, type=kind, sha=sha))
(REF / (key + "-tree.json")).write_text(
json.dumps(dict(sha=tree, truncated=False, tree=entries), indent=2) + "\n"
)
missing = []
if key in ["easy", "reel", "core0270", "layer"]:
files += [
e["path"]
for e in entries
if e["path"].endswith(".py")
and any(
(
s in e["path"].lower()
for s in (
["seedvr", "resize"]
if key == "core0270"
else ["purge"]
if key == "layer"
else ["seed", "reel"]
)
)
)
]
if key == "easy":
files += [
e["path"]
for e in entries
if e["path"].endswith(".js") and "seed" in e["path"].lower()
]
for f in dict.fromkeys(files):
ent = next((x for x in entries if x["path"] == f), None)
if ent is None:
missing.append(f)
continue
raw = git("show", rev + ":" + f)
name = key + "__" + f.replace("/", "__")
(REF / name).write_bytes(raw)
rows.append(
dict(
id=key,
repo=repo,
file=f,
local_file=name,
commit=rev,
tree=tree,
tag=tag,
url=f"https://raw.githubusercontent.com/{repo}/{rev}/{f}",
sha256=hashlib.sha256(raw).hexdigest(),
git_blob_sha1=ent["sha"],
acquisition_time=datetime.datetime.now(datetime.timezone.utc).isoformat(),
license_file=key + "__LICENSE",
transport="filtered git; selected text only",
applicability="本图准确声明版本静态参考;不执行上游或认证目标环境",
identity_root=".",
identity_key=key,
)
)
(REF / (key + "-absent.json")).write_text(json.dumps(missing, indent=2) + "\n")
for e in rows:
if e["id"] == "core0211":
e["identity_root"] = "../flux2-img-reference"
(REF / "sources.json").write_text(
json.dumps(dict(sources=rows), ensure_ascii=False, indent=2) + "\n"
)
print("PINNED", key, rev, flush=True)
if __name__ == "__main__":
main()
@@ -0,0 +1,63 @@
"Offline batch evidence tooling; no upstream execution."
from __future__ import annotations
import hashlib
import json
import subprocess
from build_definition import OUT, PATHS, REPO, build, canonical
BASE = "d3447f2e6600c515d712127d8cab01ecae72bf48"
RESOURCE = "calliope-backend/src/calliope/" + "co" + "mfyui/source_reviews.json"
def build_all():
previous = json.loads(subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO))
reviews = json.loads(json.dumps(previous, ensure_ascii=False))
for i, path in enumerate(PATHS):
block = build(i)
assert reviews[path]["source_sha"] == block["source_sha1"]
assert "fixed_version_document" not in previous[path]
reviews[path]["fixed_version_document"] = block
return (reviews, previous)
def main():
current = json.loads((REPO / RESOURCE).read_bytes())
(reviews, _previous) = build_all()
(REPO / RESOURCE).write_text(json.dumps(reviews, ensure_ascii=False, indent=2) + "\n")
pins = {}
for i, path in enumerate(PATHS):
block = reviews[path]["fixed_version_document"]
pins[path] = hashlib.sha256(canonical(block)).hexdigest()
(OUT / f"definition-{i}.json").write_text(
json.dumps(block, ensure_ascii=False, indent=2) + "\n"
)
module = REPO / ("calliope-backend/src/calliope/" + "co" + "mfyui/fixed_document.py")
text = module.read_text()
for path, digest in pins.items():
old_block = current[path].get("fixed_version_document")
old_digest = hashlib.sha256(canonical(old_block)).hexdigest() if old_block else None
if old_digest and old_digest in text:
text = text.replace(old_digest, digest)
elif digest in text:
pass
else:
text = text.replace(
"DEFINITIONS = {",
"DEFINITIONS = {\n (\n"
+ "".join(
(" " + repr(path[i : i + 41]) + "\n" for i in range(0, len(path), 41))
)
+ " ): "
+ repr(digest)
+ ",",
)
module.write_text(text)
(OUT / "pins.json").write_text(json.dumps(pins, ensure_ascii=False, indent=2) + "\n")
print(("PASS one new definition; other 155 reviews and old 74 blocks unchanged"))
if __name__ == "__main__":
main()
@@ -0,0 +1,359 @@
"Offline batch evidence tooling; no upstream execution."
from __future__ import annotations
import hashlib
import io
import json
import os
import sqlite3
import subprocess
import sys
import tarfile
import tempfile
import zipfile
from pathlib import Path
from build_definition import OUT, PATHS, REPO, canonical
from rebuild import BASE, RESOURCE, build_all
BASE = os.environ.get("TTS_IMPORT_BASE", BASE)
sys.path.insert(0, str(REPO / "calliope-backend"))
def write(name, value):
(OUT / name).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n")
def require_packages():
dist = REPO / "calliope-backend/dist"
w = sorted(dist.glob("*.whl"))
s = sorted(dist.glob("*.tar.gz"))
if not w or not s:
raise SystemExit(
"缺少wheel/sdist包产物,请先在仓库根执行:uv bui"
+ "ld --project calliope-backend --"
+ "offline"
)
return (w[-1], s[-1])
def main():
from calliope.comfyui.fixed_document import DEFINITIONS
from calliope.comfyui.library import rollback_batch
from scripts.audit_library_documents import audit
(wheels, sdists) = require_packages()
from verify_sources import main as verify_sources
verify_sources()
(rebuilt, previous) = build_all()
assert rebuilt == json.loads((REPO / RESOURCE).read_bytes())
old_blocks = {
p: r["fixed_version_document"]
for (p, r) in previous.items()
if "fixed_version_document" in r
}
assert len(old_blocks) == 74
assert all((rebuilt[p]["fixed_version_document"] == b for (p, b) in old_blocks.items()))
assert sum((len(b["fields"]) for b in old_blocks.values())) == 3464
for p, d in DEFINITIONS.items():
assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d
write(
"review-delta.json",
{
"base": BASE,
"changed_paths": PATHS,
"other_reviews_unchanged": 155,
"old_blocks_unchanged": 74,
"old_saved": 3464,
"old_notes": 90,
"new_saved": 175,
"new_notes": 4,
"total_documents": 75,
"total_saved": 3639,
"total_notes": 94,
},
)
with tempfile.TemporaryDirectory() as directory:
work = Path(directory)
old = work / "old"
old.mkdir()
data = subprocess.check_output(["git", "archive", BASE, "calliope-backend/src"], cwd=REPO)
with tarfile.open(fileobj=io.BytesIO(data)) as a:
a.extractall(old, filter="data")
db = work / "library.db"
def run(name, historical=False):
out = work / name
env = {
**os.environ,
"PYTHONPATH": str((old if historical else REPO) / "calliope-backend/src"),
}
subprocess.run(
[
sys.executable,
"-m",
"calliope.comfyui.library_cli",
"import",
"--root",
str(REPO / "example_ComfyUI_workflows"),
"--db",
str(db),
"--source-commit",
BASE,
"--companions",
str(REPO / ("docs/hel-892/supplied-api/mani" + "fe" + "st.json")),
"--output-dir",
str(out),
],
cwd=REPO,
env=env,
check=True,
stdout=subprocess.DEVNULL,
)
return (json.loads((out / "import_report.json").read_bytes()), out)
def rows():
with sqlite3.connect(db) as c:
c.row_factory = sqlite3.Row
return {
r["source_repo_path"]: dict(r) for r in c.execute("SELECT * FROM workflows")
}
(first, _) = run("historical", True)
before = rows()
assert first["counts"] == {"imported": 155, "user_excluded": 1}
assert all(
(
"fixed_version" in json.loads(before[p]["doc_json"])
if BASE.startswith("3c307e0")
else "fixed_version" not in json.loads(before[p]["doc_json"])
for p in PATHS
)
)
assert all(
(
json.loads(before[p]["doc_json"])["fixed_version"]["matched"]
for p in DEFINITIONS
if p not in PATHS
)
)
original = db
protected = []
def protect(name):
nonlocal db
db = work / (name + ".db")
with sqlite3.connect(original) as src, sqlite3.connect(db) as dst:
src.backup(dst)
for p in PATHS:
dst.execute(
"UPDATE workflows SET descripti" + "on" + "=? WHERE source_repo_path=?",
(name, p),
)
snapshot = rows()
(r, _) = run(name)
assert r["counts"] == {"conflict": 1, "skipped": 154, "user_excluded": 1}
assert rows() == snapshot and all((len(snapshot[p]) == 29 for p in PATHS))
protected.append({"phase": name, "counts": r["counts"], "whole_rows": 1, "columns": 29})
db = original
protect("user-before")
(upgrade, exported) = run("upgrade")
after = rows()
assert upgrade["counts"] == {"updated": 1, "skipped": 154, "user_excluded": 1}
for p, row in after.items():
if p not in PATHS:
assert row == before[p]
continue
assert len(row) == 29
assert all(
(
row[k] == before[p][k]
for k in row.keys()
- {"doc_json", "batch_id", "imported_at", "library_fingerprint"}
)
)
d = json.loads(row["doc_json"])
assert d["fixed_version"]["matched"]
old_doc = json.loads(before[p]["doc_json"])
without = dict(d)
fixed = without.pop("fixed_version")
generic = [
f"打开源工作流 {p},逐项核对下列源节点与注释。",
"补齐节点定义、模型来源及所需素材;完成输入输出映射核对。",
"明确触发真实测试后核对产物;本批未提交生成任务。",
]
offset = old_doc["steps"].index(generic[0])
assert old_doc["steps"][offset : offset + 3] == generic
assert (
without["steps"]
== old_doc["steps"][:offset] + fixed["steps"] + old_doc["steps"][offset + 3 :]
)
without["steps"] = old_doc["steps"]
assert without.pop("source_review_sha") != old_doc.pop("source_review_sha")
old_doc.pop("fixed_version", None)
assert without == old_doc
write("actual-" + Path(p).stem + ".json", d)
(repeat, _) = run("repeat")
assert repeat["counts"] == {"skipped": 155, "user_excluded": 1}
with sqlite3.connect(db) as c:
c.row_factory = sqlite3.Row
r = rollback_batch(c, upgrade["batch_id"])
assert len(r["files"]) == 1 and all((f["result"] == "restored" for f in r["files"]))
assert rows() == before
(redo, _) = run("redo")
assert redo["counts"] == upgrade["counts"]
protect("user-after")
db = work / "fresh.db"
(fresh, exported) = run("fresh")
(fresh_repeat, _) = run("fresh-repeat")
assert fresh["counts"] == first["counts"] and fresh_repeat["counts"] == repeat["counts"]
assert fresh["states"] == {"pending_check": 16, "needs_conversion": 139}
companion = 0
for row in rows().values():
d = json.loads(row["doc_json"])
companion += sum(
(p.get("value_origin") == "supplied_api_companion" for p in d["params"])
)
assert (
not row["is_enabled"]
and row["doc_completed_at"] is None
and (row["exec_verified_at"] is None)
)
assert not d["status"]["doc_done"] and (not d["status"]["exec_verified"])
assert d["dependencies"]["check_state"] == "unchecked"
report = audit(REPO, exported)
assert (
report["named_values_preserved"] == 1217
and report["unnamed_widget_nodes"] == 3660
and (companion == 294)
)
assert report["full_documents_completed"] == report["real_executions"] == 0
write("audit-summary.json", {k: v for (k, v) in report.items() if k != "files"})
write(
"import-protection.json",
{
"base": BASE,
"first": first["counts"],
"upgrade": upgrade["counts"],
"repeat": repeat["counts"],
"restored_rows": 1,
"untouched_whole_rows": 154,
"eligibility_unchanged": True,
"redo": redo["counts"],
"user_protection": protected,
"fresh": fresh["counts"],
"fresh_repeat": fresh_repeat["counts"],
"states": fresh["states"],
"source_named_fields": 1217,
"positional_widgets": 3660,
"companion_values": companion,
"new_saved": 175,
"new_notes": 4,
"old_saved": 3464,
"old_notes": 90,
"overviews": 75,
"all_disabled": True,
"doc_done": 0,
"executed": 0,
},
)
old_reviews = json.loads(
subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO)
)
current = json.loads((REPO / RESOURCE).read_bytes())
for p in PATHS:
current[p].pop("fixed_version_document")
old_reviews[p].pop("fixed_version_document", None)
assert current == old_reviews
boundaries = json.loads(
(
REPO / ("docs/hel-892/h3-document-evide" + "nc" + "e/unchanged-boundaries.json")
).read_bytes()
)
paths = (
[f["path"] for f in boundaries["files"]]
+ boundaries["frozen_conversion_and_audits"]
+ ["calliope-backend/src/calliope/co" + "mfyui/library.py"]
)
kept = []
for p in paths:
raw = (REPO / p).read_bytes()
assert raw == subprocess.check_output(["git", "show", f"{BASE}:{p}"], cwd=REPO)
kept.append({"path": p, "sha256": hashlib.sha256(raw).hexdigest()})
ui = "calliope-web/src/lib/component" + "s/" + "WorkflowDocumentDrawer.svelte"
drawer_bytes = (REPO / ui).read_bytes()
assert drawer_bytes == subprocess.check_output(["git", "show", f"{BASE}:{ui}"], cwd=REPO)
write(
"boundaries.json",
{
"base": BASE,
"files": kept,
"originals": 156,
"old_blocks_unchanged": 74,
"drawer_css_unchanged": True,
"drawer_whole_file_unchanged": True,
"drawer_sha256": hashlib.sha256(drawer_bytes).hexdigest(),
"conversion_rerun": False,
"profiles_28_candidates_9_diffs_6": "unchanged",
},
)
tracked = (
subprocess.check_output(["git", "ls-tree", "-rz", "--name-only", BASE], cwd=REPO)
.decode()
.rstrip("\x00")
.split("\x00")
)
frozen = [
p
for p in tracked
if p.startswith(("example_ComfyUI_workflows/", "docs/hel-892/supplied-api/"))
or (
p.startswith("calliope-backend/src/calliope/" + "co" + "mfyui/")
and p
not in [RESOURCE, "calliope-backend/src/calliope/" + "co" + "mfyui/fixed_document.py"]
)
]
for p in frozen:
assert (REPO / p).read_bytes() == subprocess.check_output(
["git", "show", f"{BASE}:{p}"], cwd=REPO
)
write(
"frozen-resource-check.json",
{
"base": BASE,
"files": [
{"path": p, "sha256": hashlib.sha256((REPO / p).read_bytes()).hexdigest()}
for p in frozen
],
"original_files": sum((p.startswith("example_ComfyUI_workflows/") for p in frozen)),
"all_unchanged": True,
},
)
packages = []
with zipfile.ZipFile(wheels) as w, tarfile.open(sdists) as s:
for name in ["fixed_document.py", "source_reviews.json", "library.py"]:
raw = (REPO / ("calliope-backend/src/calliope/" + "co" + "mfyui") / name).read_bytes()
assert w.read("calliope/comfyui/" + name) == raw
member = next((n for n in s.getnames() if n.endswith("/src/calliope/comfyui/" + name)))
assert s.extractfile(member).read() == raw
packages.append(
{
"file": name,
"sha256": hashlib.sha256(raw).hexdigest(),
"wheel": True,
"sdist": True,
"definitions": 75,
}
)
write("package-check.json", packages)
print(
f"PASS actual {BASE} upgrade1/skip154, repeat155, rollback1, "
"edits1/29cols, fresh155, 1217/3660/294, 75 definitions, frozen boundaries, wheel/sdist"
)
if __name__ == "__main__":
main()
@@ -0,0 +1,2 @@
PASS exact sources,175 positions,4 notes,332 physical edges
PASS actual d3447f2e6600c515d712127d8cab01ecae72bf48 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 75 definitions, frozen boundaries, wheel/sdist
@@ -0,0 +1,128 @@
"Offline batch evidence tooling; no upstream execution."
from __future__ import annotations
import hashlib
import json
from pathlib import Path
OUT = Path(__file__).resolve().parent
def main():
lines = [
"# ZImage十八风格通用a_固定参考中文说明",
"",
(
"新增175保存位置/4注释;旧74块3464"
"位置+90源注释不变,75图3639位置+9"
"4注释仅参考;155定稿0/实跑0/新增转换"
"0。"
),
"",
("来源local_file以docs/hel-892/zimage-generala-document")
+ ("-evidence为基准;源SHA/全图摘要/定义摘要绑" + "定;不加" + "载上游代码、媒体或链接。"),
"",
]
index = []
for i in range(1):
b = json.loads((OUT / f"definition-{i}.json").read_bytes())
lines += [
"## " + Path(b["source_path"]).stem,
"",
b["user_overview"],
"",
b["notice"],
"",
"源路径:`" + b["source_path"] + "`",
"",
"SHA1:" + b["source_sha1"],
"",
"原字节SHA256:" + b["source_sha256"],
"",
"规范全图SHA256:" + b["canonical_sha256"],
"",
*[v + "\n" for v in b["versions"]],
"### 具体连线与处理条件",
"",
*[v + "\n" for v in b["flow"]],
"### 使用与核对",
"",
*[v + "\n" for v in b["steps"]],
"### 逐保存位置说明",
"",
]
for j, f in enumerate(b["fields"], 1):
lines += [
f"#### {j}. 节点{f['node_id']} · {f['label']}({f['field']})",
"",
f["effect"],
"",
"```json",
json.dumps(f["value"], ensure_ascii=False, indent=2),
"```",
"",
f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。",
"",
"源保存位置:`" + f["pointer"] + "`;源输入口:`" + f["input_pointer"] + "`",
"",
"具名保存位置:`" + f["named_pointer"] + "`;作用域:" + f["scope"],
"",
"定义默认:" + f["schema_default"] + ";单位:" + f["unit"],
"",
"范围/条件:" + f["limits"],
"",
f["execution_note"],
"",
"依据:",
]
for k in f["evidence"]:
e = b["sources"][k]
lines += [
f"- [{k}] {e['claim']};{e['file']} {e['lines'][0]}~{e['lines'][1]}行;"
f"commit {e['commit']};SHA256 {e['sha256']};{e['url']}"
]
if "named_value" in f and f["named_value"] != f["value"]:
lines += [
"具名保存完整形态(与位置列表分开保留):",
"",
"```json",
json.dumps(f["named_value"], ensure_ascii=False, indent=2),
"```",
"",
]
lines += [""]
lines += ["### 零保存节点与源注释", ""]
for z in b["zero_saved_nodes"]:
lines += [z["node_id"] + " " + z["class_type"] + ":" + z["effect"], ""]
for n in b["comments"]:
lines += [
"节点" + n["node_id"] + ",位置`" + n["pointer"] + "`",
"",
n["meaning"],
"",
"```text",
n["text"],
"```",
"",
]
lines += ["### 固定原件索引", ""]
for k, e in enumerate(b["sources"]):
data = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(data).hexdigest() == e["sha256"]
lines += [
f"{k}. {e['claim']};{e['file']} 第{e['lines'][0]}~{e['lines'][1]}行;"
f"提交{e['commit']};SHA256 {e['sha256']};{e['url']}",
"",
]
index.append(dict(document=b["source_path"], **e))
(OUT.parent / "ZImage十八风格通用a_固定参考中文说明.md").write_text(
"\n".join(lines).rstrip() + "\n"
)
(OUT / "fixed-source-index.json").write_text(
json.dumps(index, ensure_ascii=False, indent=2) + "\n"
)
if __name__ == "__main__":
main()
@@ -0,0 +1 @@
PASS deterministic definitions and rendered artifacts: zero difference
@@ -0,0 +1,47 @@
"Compare deterministic definitions and rendered artifacts."
import hashlib
import json
from build_definition import OUT, REPO, canonical
from rebuild import RESOURCE, build_all
from render_report import main as render
def main():
(a, old) = build_all()
(b, previous) = build_all()
assert a == b and old == previous
assert a == json.loads((REPO / RESOURCE).read_bytes())
render()
paths = [
OUT / "fixed-source-index.json",
OUT.parent / "ZImage十八风格通用a_固定参考中文说明.md",
]
before = {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
render()
assert before == {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
(OUT / "repeatability.json").write_text(
json.dumps(
{
"definitions": 75,
"repeated_build_equal": True,
"repeated_render_equal": True,
"resource_sha256": hashlib.sha256(canonical(a)).hexdigest(),
"artifacts": before,
},
ensure_ascii=False,
indent=2,
)
+ "\n"
)
print(
"PASS deterministic definitions"
+ " a"
+ ("nd rendered artifacts: zero di" + "ff")
+ "erence"
)
if __name__ == "__main__":
main()
@@ -0,0 +1,10 @@
{
"definitions": 75,
"repeated_build_equal": true,
"repeated_render_equal": true,
"resource_sha256": "098425272aff29f4f84e91ebd4265cc26eb57de619a787f76aa448da990a100d",
"artifacts": {
"fixed-source-index.json": "8fcf95571eceb94e003ff7d8c34af448cde6fb9538c689e8a06c1e6f0cd1bafc",
"ZImage十八风格通用a_固定参考中文说明.md": "aacf2351f66cc1b679071b105fa419bd382eacbb889cdcec7b5fdb1745eef227"
}
}
@@ -0,0 +1,15 @@
{
"base": "d3447f2e6600c515d712127d8cab01ecae72bf48",
"changed_paths": [
"example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json"
],
"other_reviews_unchanged": 155,
"old_blocks_unchanged": 74,
"old_saved": 3464,
"old_notes": 90,
"new_saved": 175,
"new_notes": 4,
"total_documents": 75,
"total_saved": 3639,
"total_notes": 94
}
@@ -0,0 +1 @@
All checks passed!
@@ -0,0 +1 @@
Found 6 errors (6 fixed, 0 remaining).
@@ -0,0 +1,177 @@
E501 Line too long (114 > 100)
--> docs/hel-892/zimage-generala-document-evidence/build_definition.py:440:80
|
438 | for (nid, name), (default, limits) in schemas.items():
439 | flow.append(
440 | f"节点{nid}准确具名schema {name}:default={default};{limits}。仅接口参考,不补缺保存或认证运行恢复。"
| ^^^^^^^^^^^^^
441 | )
442 | for pre, ptr, sg in scopes:
|
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/zimage-generala-document-evidence/rebuild.py:3:1
|
1 | "Offline batch evidence tooling; no upstream execution."
2 |
3 | / from __future__ import annotations
4 | | import hashlib
5 | | import json
6 | | import subprocess
7 | | from build_definition import OUT, PATHS, REPO, build, canonical
| |_______________________________________________________________^
8 |
9 | BASE = "d3447f2e6600c515d712127d8cab01ecae72bf48"
|
help: Organize imports
|
3 | from __future__ import annotations
4 +
5 | import hashlib
6 | import json
7 | import subprocess
8 +
9 | from build_definition import OUT, PATHS, REPO, build, canonical
|
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/zimage-generala-document-evidence/recompute.py:3:1
|
1 | "Offline batch evidence tooling; no upstream execution."
2 |
3 | / from __future__ import annotations
4 | | import hashlib
5 | | import io
6 | | import json
7 | | import os
8 | | import sqlite3
9 | | import subprocess
10 | | import sys
11 | | import tarfile
12 | | import tempfile
13 | | import zipfile
14 | | from pathlib import Path
15 | | from build_definition import OUT, PATHS, REPO, canonical
16 | | from rebuild import BASE, RESOURCE, build_all
| |_____________________________________________^
17 |
18 | BASE = os.environ.get("TTS_IMPORT_BASE", BASE)
|
help: Organize imports
|
3 | from __future__ import annotations
4 +
5 | import hashlib
--------------------------------------------------------------------------------
15 | from pathlib import Path
16 +
17 | from build_definition import OUT, PATHS, REPO, canonical
|
E501 Line too long (156 > 100)
--> docs/hel-892/zimage-generala-document-evidence/recompute.py:351:101
|
349 | …
350 | …
351 | …back1, edits1/29cols, fresh155, 1217/3660/294, 75 definitions, frozen boundaries, wheel/sdist"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
352 | …
|
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/zimage-generala-document-evidence/render_report.py:3:1
|
1 | "Offline batch evidence tooling; no upstream execution."
2 |
3 | / from __future__ import annotations
4 | | import hashlib
5 | | import json
6 | | from pathlib import Path
| |________________________^
7 |
8 | OUT = Path(__file__).resolve().parent
|
help: Organize imports
|
3 | from __future__ import annotations
4 +
5 | import hashlib
|
E501 Line too long (147 > 100)
--> docs/hel-892/zimage-generala-document-evidence/render_report.py:81:97
|
79 | …
80 | …
81 | …e['lines'][0]}~{e['lines'][1]}行;commit {e['commit']};SHA256 {e['sha256']};{e['url']}"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82 | …
83 | … f["value"]:
|
E501 Line too long (140 > 100)
--> docs/hel-892/zimage-generala-document-evidence/render_report.py:112:94
|
110 | … e["sha256"]
111 | …
112 | …'lines'][0]}~{e['lines'][1]}行;提交{e['commit']};SHA256 {e['sha256']};{e['url']}",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113 | …
114 | …
|
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/zimage-generala-document-evidence/repeat.py:3:1
|
1 | "Compare deterministic definitions and rendered artifacts."
2 |
3 | / import hashlib
4 | | import json
5 | | from build_definition import OUT, REPO, canonical
6 | | from rebuild import RESOURCE, build_all
7 | | from render_report import main as render
| |________________________________________^
help: Organize imports
|
4 | import json
5 +
6 | from build_definition import OUT, REPO, canonical
|
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/zimage-generala-document-evidence/source_closure.py:3:1
|
1 | "List source texts and their identity/permission evidence, without self hashing."
2 |
3 | / import hashlib
4 | | import json
5 | | from build_definition import OUT, REF, REPO
| |___________________________________________^
help: Organize imports
|
4 | import json
5 +
6 | from build_definition import OUT, REF, REPO
|
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/zimage-generala-document-evidence/verify_sources.py:3:1
|
1 | "Verify exact text, Git/package provenance and source graph without upstream imports."
2 |
3 | / import ast
4 | | import hashlib
5 | | import json
6 | | import zlib
7 | | from build_definition import OUT, REF, build, canonical
8 | | from inventory import inventory
| |_______________________________^
help: Organize imports
|
6 | import zlib
7 +
8 | from build_definition import OUT, REF, build, canonical
|
Found 10 errors.
[*] 6 fixable with the `--fix` option.
@@ -0,0 +1,282 @@
INFO: Started server process [1246000]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8247 (Press CTRL+C to quit)
{'counts': {'skipped': 154, 'updated': 1, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
INFO: 127.0.0.1:53142 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/86 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/85 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/84 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/74 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/73 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/72 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/83 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/82 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/81 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/80 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/79 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/78 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/77 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/76 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/75 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/54 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/55 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/56 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/58 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/57 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/44 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/53 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/52 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/51 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/50 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/49 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/47 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/48 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/46 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/45 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/42 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/41 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/40 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/39 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/38 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/37 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/18 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/20 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/30 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/32 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/34 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/33 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/31 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/29 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/28 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/27 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/26 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/17 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/4 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/15 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/11 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53150 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53162 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53170 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:53168 - "GET /api/settings HTTP/1.1" 200 OK
INFO: 127.0.0.1:53174 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:53188 - "GET /api/workflows/86 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53196 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:47708 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:47718 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:56324 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:56338 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:36434 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:36448 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:42802 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:42812 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:37626 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:37642 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:41976 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:41988 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:41996 - "GET /api/workflows/85 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42000 - "GET /api/workflows/84 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42016 - "GET /api/workflows/74 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42018 - "GET /api/workflows/73 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42020 - "GET /api/workflows/72 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42032 - "GET /api/workflows/83 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42034 - "GET /api/workflows/82 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42042 - "GET /api/workflows/81 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42052 - "GET /api/workflows/80 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42054 - "GET /api/workflows/79 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42056 - "GET /api/workflows/78 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42068 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:42074 - "GET /api/workflows/77 HTTP/1.1" 200 OK
INFO: 127.0.0.1:42084 - "GET /api/workflows/76 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40088 - "GET /api/workflows/75 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40100 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:40114 - "GET /api/workflows/54 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40116 - "GET /api/workflows/55 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40122 - "GET /api/workflows/56 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40128 - "GET /api/workflows/58 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40136 - "GET /api/workflows/57 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40140 - "GET /api/workflows/44 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40142 - "GET /api/workflows/53 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40152 - "GET /api/workflows/52 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40160 - "GET /api/workflows/51 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40164 - "GET /api/workflows/50 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40170 - "GET /api/workflows/49 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40180 - "GET /api/workflows/47 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40192 - "GET /api/workflows/48 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40198 - "GET /api/workflows/46 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40208 - "GET /api/workflows/45 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40218 - "GET /api/workflows/42 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40226 - "GET /api/workflows/41 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40238 - "GET /api/workflows/40 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40246 - "GET /api/workflows/39 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40260 - "GET /api/workflows/38 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40270 - "GET /api/workflows/37 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40284 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:40298 - "GET /api/workflows/18 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40308 - "GET /api/workflows/20 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40320 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:40326 - "GET /api/workflows/30 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40340 - "GET /api/workflows/32 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55072 - "GET /api/workflows/34 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55082 - "GET /api/workflows/33 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55096 - "GET /api/workflows/31 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55104 - "GET /api/workflows/29 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55114 - "GET /api/workflows/28 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55128 - "GET /api/workflows/27 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55140 - "GET /api/workflows/26 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55154 - "GET /api/workflows/17 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55158 - "GET /api/workflows/4 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55166 - "GET /api/workflows/15 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55178 - "GET /api/workflows/11 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55194 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55208 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55218 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55220 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55228 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55230 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55234 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55246 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55250 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:55258 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55274 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55276 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55278 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:55280 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55292 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55308 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:55312 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51576 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51582 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51590 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51596 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51608 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51624 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51634 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51638 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51644 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51654 - "GET /api/workflows/86 HTTP/1.1" 200 OK
INFO: 127.0.0.1:51658 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:51664 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:37708 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:37712 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:36408 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:36422 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:39326 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:39330 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:51730 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:51740 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:39122 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:39132 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:54188 - "GET /api/workflows/85 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54204 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:54220 - "GET /api/workflows/84 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54230 - "GET /api/workflows/74 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54244 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:54250 - "GET /api/workflows/73 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54258 - "GET /api/workflows/72 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54270 - "GET /api/workflows/83 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54280 - "GET /api/workflows/82 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54284 - "GET /api/workflows/81 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54290 - "GET /api/workflows/80 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54294 - "GET /api/workflows/79 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54304 - "GET /api/workflows/78 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54316 - "GET /api/workflows/77 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54322 - "GET /api/workflows/76 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54326 - "GET /api/workflows/75 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54328 - "GET /api/workflows/54 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54336 - "GET /api/workflows/55 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54350 - "GET /api/workflows/56 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54366 - "GET /api/workflows/58 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54372 - "GET /api/workflows/57 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54388 - "GET /api/workflows/44 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54400 - "GET /api/workflows/53 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54414 - "GET /api/workflows/52 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54428 - "GET /api/workflows/51 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54444 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:54454 - "GET /api/workflows/50 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37904 - "GET /api/workflows/49 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37912 - "GET /api/workflows/47 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37922 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:37938 - "GET /api/workflows/48 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37944 - "GET /api/workflows/46 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37954 - "GET /api/workflows/45 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37964 - "GET /api/workflows/42 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37966 - "GET /api/workflows/41 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37976 - "GET /api/workflows/40 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37986 - "GET /api/workflows/39 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37998 - "GET /api/workflows/38 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38004 - "GET /api/workflows/37 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38008 - "GET /api/workflows/18 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38022 - "GET /api/workflows/20 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38038 - "GET /api/workflows/30 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38046 - "GET /api/workflows/32 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38056 - "GET /api/workflows/34 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38066 - "GET /api/workflows/33 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38080 - "GET /api/workflows/31 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38094 - "GET /api/workflows/29 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38108 - "GET /api/workflows/28 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38112 - "GET /api/workflows/27 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38116 - "GET /api/workflows/26 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38132 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:38140 - "GET /api/workflows/17 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38148 - "GET /api/workflows/4 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38158 - "GET /api/workflows/15 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38164 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:58176 - "GET /api/workflows/11 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58184 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58190 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58204 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58218 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58222 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58230 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58244 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58258 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58270 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58280 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58292 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58306 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58308 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58322 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58326 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58334 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58346 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58360 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58366 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58374 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:58382 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58392 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58406 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58412 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:58420 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58426 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58434 - "GET /api/workflows/156 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37324 - "GET /api/workflows/157 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37328 - "GET /api/workflows/85 HTTP/1.1" 200 OK
INFO: 127.0.0.1:37342 - "GET /api/workflows/86 HTTP/1.1" 200 OK
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [1246000]
@@ -0,0 +1,4 @@
VITE v6.4.3 ready in 287 ms
➜ Local: http://127.0.0.1:5173/
@@ -0,0 +1 @@
{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]}
@@ -0,0 +1,515 @@
{
"sources": [
{
"id": "core0375",
"file": "nodes.py",
"sha256": "c922eb57ed906a6fad7832c2fcb259b4f06533fc6dce7927b3e1d87e078f34cc",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0375",
"file": "folder_paths.py",
"sha256": "4832712b5baa3178139be79c18fc7f6d744e42e3ab26fa66cfd0a8f392309ac7",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0375",
"file": "comfy_extras/nodes_string.py",
"sha256": "f2832e5a2f5a4c7d87bf842d00e57d6c3b99a9a6d9b8c6526921e4ee1e225906",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0375",
"file": "comfy_extras/nodes_primitive.py",
"sha256": "ca3c691c7f25419b39d4a3380befd9acef39967db0b535f2b379cd9c047e4cba",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0375",
"file": "comfy_extras/nodes_custom_sampler.py",
"sha256": "1eed7fbe0f038b6bb9d7c5a77d8b25c96bbfe876e7c475f98fd012fd0ffbe09b",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0375",
"file": "comfy_extras/nodes_images.py",
"sha256": "2baa1598f3529d339b60e74d64002d9ad30c49e99e9f9f2e090bceda41ea31d4",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0375",
"file": "comfy_extras/nodes_sd3.py",
"sha256": "9a8178b23132f99f1f4d1cdf42cd9849dd17f68ab805d63b1684bd956bdcafc4",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0375",
"file": "comfy_extras/nodes_upscale_model.py",
"sha256": "1569cdc42b92c82e4e7df2e8e8ffe292cc78a6606c1d3dabc864b98b122542b2",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0375",
"file": "LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0377",
"file": "nodes.py",
"sha256": "f8e54830b7d57d4eb97152caa249be448f6c0d61bc5f59639f1058abbf870ac0",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0377",
"file": "folder_paths.py",
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0377",
"file": "comfy_extras/nodes_string.py",
"sha256": "f2832e5a2f5a4c7d87bf842d00e57d6c3b99a9a6d9b8c6526921e4ee1e225906",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0377",
"file": "comfy_extras/nodes_primitive.py",
"sha256": "ca3c691c7f25419b39d4a3380befd9acef39967db0b535f2b379cd9c047e4cba",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0377",
"file": "comfy_extras/nodes_custom_sampler.py",
"sha256": "4940407487806762063b61f7e3dda54de60d180a20ff371014726978f412c03d",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0377",
"file": "comfy_extras/nodes_images.py",
"sha256": "2baa1598f3529d339b60e74d64002d9ad30c49e99e9f9f2e090bceda41ea31d4",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0377",
"file": "comfy_extras/nodes_sd3.py",
"sha256": "9a8178b23132f99f1f4d1cdf42cd9849dd17f68ab805d63b1684bd956bdcafc4",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0377",
"file": "comfy_extras/nodes_upscale_model.py",
"sha256": "1569cdc42b92c82e4e7df2e8e8ffe292cc78a6606c1d3dabc864b98b122542b2",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core0377",
"file": "LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core051",
"file": "nodes.py",
"sha256": "0b80b83ccccc84a2d516d0303ed39eed05477bae80ef60b0b6512c1cd04c9116",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core051",
"file": "folder_paths.py",
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core051",
"file": "comfy_extras/nodes_string.py",
"sha256": "f2832e5a2f5a4c7d87bf842d00e57d6c3b99a9a6d9b8c6526921e4ee1e225906",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core051",
"file": "comfy_extras/nodes_primitive.py",
"sha256": "ca3c691c7f25419b39d4a3380befd9acef39967db0b535f2b379cd9c047e4cba",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core051",
"file": "comfy_extras/nodes_custom_sampler.py",
"sha256": "6876ecd35b956ab30b4839774a2634d4b91882e86809a42092b516d2fbddd9e3",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core051",
"file": "comfy_extras/nodes_images.py",
"sha256": "2baa1598f3529d339b60e74d64002d9ad30c49e99e9f9f2e090bceda41ea31d4",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core051",
"file": "comfy_extras/nodes_sd3.py",
"sha256": "9a8178b23132f99f1f4d1cdf42cd9849dd17f68ab805d63b1684bd956bdcafc4",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core051",
"file": "comfy_extras/nodes_upscale_model.py",
"sha256": "1569cdc42b92c82e4e7df2e8e8ffe292cc78a6606c1d3dabc864b98b122542b2",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core051",
"file": "LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core070",
"file": "nodes.py",
"sha256": "1d8eb523db6753a01a9bdd8efface14a76ff91babb2be434a98ea2a1a757b894",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core070",
"file": "folder_paths.py",
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core070",
"file": "comfy_extras/nodes_string.py",
"sha256": "f2832e5a2f5a4c7d87bf842d00e57d6c3b99a9a6d9b8c6526921e4ee1e225906",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core070",
"file": "comfy_extras/nodes_primitive.py",
"sha256": "ca3c691c7f25419b39d4a3380befd9acef39967db0b535f2b379cd9c047e4cba",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core070",
"file": "comfy_extras/nodes_custom_sampler.py",
"sha256": "8e8c3763a618fa9058f2333dcc09be3b60889362875b8c6377aee23f9ea1abd2",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core070",
"file": "comfy_extras/nodes_images.py",
"sha256": "695f34b53f21ff714629bdcc3811a231de96458644be297fc1c506f2001c2bd3",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core070",
"file": "comfy_extras/nodes_sd3.py",
"sha256": "9a8178b23132f99f1f4d1cdf42cd9849dd17f68ab805d63b1684bd956bdcafc4",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core070",
"file": "comfy_extras/nodes_upscale_model.py",
"sha256": "1569cdc42b92c82e4e7df2e8e8ffe292cc78a6606c1d3dabc864b98b122542b2",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "core070",
"file": "LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "__init__.py",
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "py/any_switch.py",
"sha256": "fb4437aced8227bcdabf89bf787e60c9d938a18bb1ec519101bb007fb3cc6afb",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "py/display_any.py",
"sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "py/image_resize.py",
"sha256": "a34ca0e0805bcef0510f96fb7ed5a17d16bac088ae4d5544f834ac2cbc0f856c",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "py/power_lora_loader.py",
"sha256": "9b0eee007dc4cdff8e54e03e14c72049b5d07a2aba02d227e982361f51f15f2c",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "py/utils.py",
"sha256": "57038116cf0c6ebc417e998a5c36c4b7e74e73d61d495c20e5fe18a6ad8afbc7",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "py/constants.py",
"sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "web/comfyui/power_lora_loader.js",
"sha256": "c4ed70b91d4b5cf88a8487c89849f00c6d3cde1b04e9cb362214f50eff3750c6",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "web/comfyui/any_switch.js",
"sha256": "486c0b2e1f8fe688e981a11f4e5af40240628fe0e28e4ecfc514a0f2f7472358",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "LICENSE",
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "__init__.py",
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "py/any_switch.py",
"sha256": "fb4437aced8227bcdabf89bf787e60c9d938a18bb1ec519101bb007fb3cc6afb",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "py/display_any.py",
"sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "py/image_resize.py",
"sha256": "a34ca0e0805bcef0510f96fb7ed5a17d16bac088ae4d5544f834ac2cbc0f856c",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "py/power_lora_loader.py",
"sha256": "9b0eee007dc4cdff8e54e03e14c72049b5d07a2aba02d227e982361f51f15f2c",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "py/utils.py",
"sha256": "57038116cf0c6ebc417e998a5c36c4b7e74e73d61d495c20e5fe18a6ad8afbc7",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "py/constants.py",
"sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "web/comfyui/power_lora_loader.js",
"sha256": "c4ed70b91d4b5cf88a8487c89849f00c6d3cde1b04e9cb362214f50eff3750c6",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "web/comfyui/any_switch.js",
"sha256": "486c0b2e1f8fe688e981a11f4e5af40240628fe0e28e4ecfc514a0f2f7472358",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "LICENSE",
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "frontend",
"file": "package.json",
"sha256": "f8892c2327f3535cc158fa985b447332198e5be7555ae6d2bcac4179d2c5b454",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "frontend",
"file": "pnpm-lock.yaml",
"sha256": "37ae7639bb4ef107380db7e46f5932ffd95e494aaa38b9c30e608ce89b365c82",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "frontend",
"file": "pnpm-workspace.yaml",
"sha256": "51470ccbd0e894de826e292b572997de92fb298927173f0b8efa52677919ab81",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "frontend",
"file": "src/scripts/widgets.ts",
"sha256": "e8bb428cbf69635015de43a4ebc89817b3443f876cbed52eeafe67d26f2398d8",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "frontend",
"file": "src/scripts/app.ts",
"sha256": "0e41cd4edc1b516990718f7aca981bfaaf6bc94fcec1f2323c1d96585a933dd0",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "frontend",
"file": "src/lib/litegraph/src/litegraph.ts",
"sha256": "b405e9ad226f9726d9829e15f5fe8ddaa7e980621b449d5bd2c72f969867bc93",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "frontend",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "frontend",
"file": "LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgpkg",
"file": "LICENSE",
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
"proof": "准确发布成员SHA/CRC;Range选定文本,完整包SHA与Git绑定未知"
},
{
"id": "rgpkg",
"file": "__init__.py",
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
"proof": "准确发布成员SHA/CRC;Range选定文本,完整包SHA与Git绑定未知"
},
{
"id": "rgpkg",
"file": "py/any_switch.py",
"sha256": "fb4437aced8227bcdabf89bf787e60c9d938a18bb1ec519101bb007fb3cc6afb",
"proof": "准确发布成员SHA/CRC;Range选定文本,完整包SHA与Git绑定未知"
},
{
"id": "rgpkg",
"file": "py/constants.py",
"sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558",
"proof": "准确发布成员SHA/CRC;Range选定文本,完整包SHA与Git绑定未知"
},
{
"id": "rgpkg",
"file": "py/utils.py",
"sha256": "57038116cf0c6ebc417e998a5c36c4b7e74e73d61d495c20e5fe18a6ad8afbc7",
"proof": "准确发布成员SHA/CRC;Range选定文本,完整包SHA与Git绑定未知"
},
{
"id": "rgold",
"file": "py/context_utils.py",
"sha256": "6cc7eb23a3daa73cf8a95196b46d5900b96db033d39d81b6156b6002468ae0a9",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgold",
"file": "web/comfyui/display_any.js",
"sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "py/context_utils.py",
"sha256": "6cc7eb23a3daa73cf8a95196b46d5900b96db033d39d81b6156b6002468ae0a9",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "rgnew",
"file": "py/power_prompt_utils.py",
"sha256": "eb34346e2e0bbf9a6f2f14729e5676edee4ff24a4240d7e64481b4f8e258f975",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "frontend",
"file": "src/lib/litegraph/LICENSE",
"sha256": "1b38cc30fe774bcc77538ab99eb460f4e1c8a47c4fddc6e991ee3b5cc2a96bb9",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
},
{
"id": "frontend",
"file": "src/lib/litegraph/src/LGraph.ts",
"sha256": "5774da6210c38a14604de8966d8dbb615033df6c3ebd26bb01f946cf8b95cf28",
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
}
],
"counts": {
"saved_fields": 175,
"root_saved_fields": 175,
"internal_saved_fields": 0,
"linked_saved_fields": 14,
"boundary_saved_fields": 0,
"frontend_only": 20,
"source_nodes": 266,
"root_nodes": 266,
"internal_nodes": 0,
"physical_edges": 332,
"source_notes": 4,
"saved_objects": 3,
"history_objects": 0,
"display_history_texts": 1,
"final_scalars": 0,
"final_prompt_constructed": false
},
"physical_edges_checked": 332,
"inventory_matches_definition": true,
"source_save_outputs": [],
"type_counts": {
"CLIPTextEncode": 3,
"EmptyLatentImage": 1,
"KSamplerAdvanced": 2,
"Any Switch (rgthree)": 16,
"Reroute": 131,
"Node Collector (rgthree)": 5,
"PrimitiveString": 1,
"StringReplace": 4,
"SetFirstSigma": 2,
"ExtendIntermediateSigmas": 2,
"KarrasScheduler": 5,
"SplitSigmas": 3,
"Mute / Bypass Repeater (rgthree)": 5,
"KSamplerSelect": 5,
"Reroute (rgthree)": 16,
"Display Any (rgthree)": 1,
"StringTrim": 1,
"PrimitiveInt": 6,
"SamplerCustom": 5,
"VAEDecode": 6,
"Image Resize (rgthree)": 5,
"ImageUpscaleWithModel": 2,
"VAEEncode": 3,
"ImageAddNoise": 1,
"EmptySD3LatentImage": 1,
"Power Lora Loader (rgthree)": 1,
"SaveImage": 1,
"Fast Muter (rgthree)": 4,
"Note": 4,
"UpscaleModelLoader": 2,
"PrimitiveNode": 1,
"PrimitiveStringMultiline": 18,
"UNETLoader": 1,
"CLIPLoader": 1,
"VAELoader": 1
},
"accurate_save_return": [],
"bad_label_pointer": "/nodes/258/inputs/0/label",
"no_upstream_execution": true
}
@@ -0,0 +1 @@
PASS source closure 116
@@ -0,0 +1,587 @@
{
"files": [
{
"path": "docs/hel-892/zimage-generala-reference/core0375-absent.json",
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375-commit.txt",
"sha256": "cffe638ec0d19a403d718c2c31e9c26e42f1e5498b575c4d78334686170a18e2",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375-tag.json",
"sha256": "bce78eb1da18e96b3db8efaf2e2a31ec701802acc2695744548802a002d1b21a",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375-tag.txt",
"sha256": "cffe638ec0d19a403d718c2c31e9c26e42f1e5498b575c4d78334686170a18e2",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375-tree.json",
"sha256": "bcfef59135f3e6afd3f614e87546514dce3cdda17eb74904c853945e58296bba",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375__LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375__comfy_extras__nodes_custom_sampler.py",
"sha256": "1eed7fbe0f038b6bb9d7c5a77d8b25c96bbfe876e7c475f98fd012fd0ffbe09b",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375__comfy_extras__nodes_images.py",
"sha256": "2baa1598f3529d339b60e74d64002d9ad30c49e99e9f9f2e090bceda41ea31d4",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375__comfy_extras__nodes_primitive.py",
"sha256": "ca3c691c7f25419b39d4a3380befd9acef39967db0b535f2b379cd9c047e4cba",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375__comfy_extras__nodes_sd3.py",
"sha256": "9a8178b23132f99f1f4d1cdf42cd9849dd17f68ab805d63b1684bd956bdcafc4",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375__comfy_extras__nodes_string.py",
"sha256": "f2832e5a2f5a4c7d87bf842d00e57d6c3b99a9a6d9b8c6526921e4ee1e225906",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375__comfy_extras__nodes_upscale_model.py",
"sha256": "1569cdc42b92c82e4e7df2e8e8ffe292cc78a6606c1d3dabc864b98b122542b2",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375__folder_paths.py",
"sha256": "4832712b5baa3178139be79c18fc7f6d744e42e3ab26fa66cfd0a8f392309ac7",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0375__nodes.py",
"sha256": "c922eb57ed906a6fad7832c2fcb259b4f06533fc6dce7927b3e1d87e078f34cc",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377-absent.json",
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377-commit.txt",
"sha256": "65c93904658a7443ac40e2ec9330c67184e2f33bc70b0a41b172caa7fcdcf103",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377-tag.json",
"sha256": "988090ef2d694043df12988d75660c5b1d53f3b51ae525ac5175f74b729bff89",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377-tag.txt",
"sha256": "65c93904658a7443ac40e2ec9330c67184e2f33bc70b0a41b172caa7fcdcf103",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377-tree.json",
"sha256": "45c4b970c2c9505f977b17b817c4396723c48f525b1d9f8111af14ef8e59aa8a",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377__LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377__comfy_extras__nodes_custom_sampler.py",
"sha256": "4940407487806762063b61f7e3dda54de60d180a20ff371014726978f412c03d",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377__comfy_extras__nodes_images.py",
"sha256": "2baa1598f3529d339b60e74d64002d9ad30c49e99e9f9f2e090bceda41ea31d4",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377__comfy_extras__nodes_primitive.py",
"sha256": "ca3c691c7f25419b39d4a3380befd9acef39967db0b535f2b379cd9c047e4cba",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377__comfy_extras__nodes_sd3.py",
"sha256": "9a8178b23132f99f1f4d1cdf42cd9849dd17f68ab805d63b1684bd956bdcafc4",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377__comfy_extras__nodes_string.py",
"sha256": "f2832e5a2f5a4c7d87bf842d00e57d6c3b99a9a6d9b8c6526921e4ee1e225906",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377__comfy_extras__nodes_upscale_model.py",
"sha256": "1569cdc42b92c82e4e7df2e8e8ffe292cc78a6606c1d3dabc864b98b122542b2",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377__folder_paths.py",
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core0377__nodes.py",
"sha256": "f8e54830b7d57d4eb97152caa249be448f6c0d61bc5f59639f1058abbf870ac0",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051-absent.json",
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051-commit.txt",
"sha256": "a5eed76c548f5c72eb31683175d98fe90b7de28a6dea746f58a22a880d513ba2",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051-tag.json",
"sha256": "c4c895d83c85900ada33b46e8c85fbd19ce4c1489a8e79bd1c0b00948d335888",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051-tag.txt",
"sha256": "a5eed76c548f5c72eb31683175d98fe90b7de28a6dea746f58a22a880d513ba2",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051-tree.json",
"sha256": "399eb0fb19277113cf1b614729d66429529b272deda21b24c8983b7d0a8e8110",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051__LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051__comfy_extras__nodes_custom_sampler.py",
"sha256": "6876ecd35b956ab30b4839774a2634d4b91882e86809a42092b516d2fbddd9e3",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051__comfy_extras__nodes_images.py",
"sha256": "2baa1598f3529d339b60e74d64002d9ad30c49e99e9f9f2e090bceda41ea31d4",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051__comfy_extras__nodes_primitive.py",
"sha256": "ca3c691c7f25419b39d4a3380befd9acef39967db0b535f2b379cd9c047e4cba",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051__comfy_extras__nodes_sd3.py",
"sha256": "9a8178b23132f99f1f4d1cdf42cd9849dd17f68ab805d63b1684bd956bdcafc4",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051__comfy_extras__nodes_string.py",
"sha256": "f2832e5a2f5a4c7d87bf842d00e57d6c3b99a9a6d9b8c6526921e4ee1e225906",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051__comfy_extras__nodes_upscale_model.py",
"sha256": "1569cdc42b92c82e4e7df2e8e8ffe292cc78a6606c1d3dabc864b98b122542b2",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051__folder_paths.py",
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core051__nodes.py",
"sha256": "0b80b83ccccc84a2d516d0303ed39eed05477bae80ef60b0b6512c1cd04c9116",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070-absent.json",
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070-commit.txt",
"sha256": "f89875a476bd5541ede69a49858f22317d1f368354ac7bbe6fe2b20781ca46f1",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070-tag.json",
"sha256": "c23eadc36ceb684159f3d93ef1be8f334f7c802a8779a131fd3017b4f73e9d1e",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070-tag.txt",
"sha256": "f89875a476bd5541ede69a49858f22317d1f368354ac7bbe6fe2b20781ca46f1",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070-tree.json",
"sha256": "5838290bb66b51b7bda78d3403ae9eeacb8f011c73c06cb9aa966b8887623a9b",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070__LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070__comfy_extras__nodes_custom_sampler.py",
"sha256": "8e8c3763a618fa9058f2333dcc09be3b60889362875b8c6377aee23f9ea1abd2",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070__comfy_extras__nodes_images.py",
"sha256": "695f34b53f21ff714629bdcc3811a231de96458644be297fc1c506f2001c2bd3",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070__comfy_extras__nodes_primitive.py",
"sha256": "ca3c691c7f25419b39d4a3380befd9acef39967db0b535f2b379cd9c047e4cba",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070__comfy_extras__nodes_sd3.py",
"sha256": "9a8178b23132f99f1f4d1cdf42cd9849dd17f68ab805d63b1684bd956bdcafc4",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070__comfy_extras__nodes_string.py",
"sha256": "f2832e5a2f5a4c7d87bf842d00e57d6c3b99a9a6d9b8c6526921e4ee1e225906",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070__comfy_extras__nodes_upscale_model.py",
"sha256": "1569cdc42b92c82e4e7df2e8e8ffe292cc78a6606c1d3dabc864b98b122542b2",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070__folder_paths.py",
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/core070__nodes.py",
"sha256": "1d8eb523db6753a01a9bdd8efface14a76ff91babb2be434a98ea2a1a757b894",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend-absent.json",
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend-commit.txt",
"sha256": "dfd20e1296a3c54dbdc831a89e025e28239ec221e70e705ea3d85c668d984a59",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend-tag.json",
"sha256": "bc1d389f199eb2a9d5beb75ab1f70a46297a695b5767d3d0a915c03dcfbe9f1b",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend-tag.txt",
"sha256": "dfd20e1296a3c54dbdc831a89e025e28239ec221e70e705ea3d85c668d984a59",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend-tree.json",
"sha256": "be5ede140bb979ee7b5d701dfbc26d616282efd879d0443134021a450a7e376b",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend__LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend__package.json",
"sha256": "f8892c2327f3535cc158fa985b447332198e5be7555ae6d2bcac4179d2c5b454",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend__pnpm-lock.yaml",
"sha256": "37ae7639bb4ef107380db7e46f5932ffd95e494aaa38b9c30e608ce89b365c82",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend__pnpm-workspace.yaml",
"sha256": "51470ccbd0e894de826e292b572997de92fb298927173f0b8efa52677919ab81",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend__src__lib__litegraph__LICENSE",
"sha256": "1b38cc30fe774bcc77538ab99eb460f4e1c8a47c4fddc6e991ee3b5cc2a96bb9",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend__src__lib__litegraph__src__LGraph.ts",
"sha256": "5774da6210c38a14604de8966d8dbb615033df6c3ebd26bb01f946cf8b95cf28",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend__src__lib__litegraph__src__litegraph.ts",
"sha256": "b405e9ad226f9726d9829e15f5fe8ddaa7e980621b449d5bd2c72f969867bc93",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend__src__scripts__app.ts",
"sha256": "0e41cd4edc1b516990718f7aca981bfaaf6bc94fcec1f2323c1d96585a933dd0",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/frontend__src__scripts__widgets.ts",
"sha256": "e8bb428cbf69635015de43a4ebc89817b3443f876cbed52eeafe67d26f2398d8",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew-absent.json",
"sha256": "83eef3bf4c89496a8773d692602d62b994d5d0586571fc1e4011d43c47967e85",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew-commit.txt",
"sha256": "8b3c7eb4ee980642427e22f328528980919a49a62273599d17e7ffc592a6403e",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew-tag.json",
"sha256": "e1c58f5ac26c5f9c0d40002aaad5663adfc746a0412ed64f17c016371ad9674f",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew-tag.txt",
"sha256": "8b3c7eb4ee980642427e22f328528980919a49a62273599d17e7ffc592a6403e",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew-tree.json",
"sha256": "8e5b48f52632e69e3bcb330c1225610b28b47268f89d8a9e15608275c97f178f",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__LICENSE",
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew____init__.py",
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__py__any_switch.py",
"sha256": "fb4437aced8227bcdabf89bf787e60c9d938a18bb1ec519101bb007fb3cc6afb",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__py__constants.py",
"sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__py__context_utils.py",
"sha256": "6cc7eb23a3daa73cf8a95196b46d5900b96db033d39d81b6156b6002468ae0a9",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__py__display_any.py",
"sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__py__image_resize.py",
"sha256": "a34ca0e0805bcef0510f96fb7ed5a17d16bac088ae4d5544f834ac2cbc0f856c",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__py__power_lora_loader.py",
"sha256": "9b0eee007dc4cdff8e54e03e14c72049b5d07a2aba02d227e982361f51f15f2c",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__py__power_prompt_utils.py",
"sha256": "eb34346e2e0bbf9a6f2f14729e5676edee4ff24a4240d7e64481b4f8e258f975",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__py__utils.py",
"sha256": "57038116cf0c6ebc417e998a5c36c4b7e74e73d61d495c20e5fe18a6ad8afbc7",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__web__comfyui__any_switch.js",
"sha256": "486c0b2e1f8fe688e981a11f4e5af40240628fe0e28e4ecfc514a0f2f7472358",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgnew__web__comfyui__power_lora_loader.js",
"sha256": "c4ed70b91d4b5cf88a8487c89849f00c6d3cde1b04e9cb362214f50eff3750c6",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold-absent.json",
"sha256": "83eef3bf4c89496a8773d692602d62b994d5d0586571fc1e4011d43c47967e85",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold-commit.txt",
"sha256": "ac25dc24725e9ce36440b3741f9e93e33249b2d3ba73e921056580faa5d25a07",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold-tag.json",
"sha256": "49bb230058e3b255ff2cb3931bf13460f3b77f303074fcdb222adbbb38fc0473",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold-tag.txt",
"sha256": "ac25dc24725e9ce36440b3741f9e93e33249b2d3ba73e921056580faa5d25a07",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold-tree.json",
"sha256": "1ca32ce8140608d7d1b0277e119c9090759c5c5fe9ea18cf21d77b35a9992e6c",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__LICENSE",
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold____init__.py",
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__py__any_switch.py",
"sha256": "fb4437aced8227bcdabf89bf787e60c9d938a18bb1ec519101bb007fb3cc6afb",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__py__constants.py",
"sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__py__context_utils.py",
"sha256": "6cc7eb23a3daa73cf8a95196b46d5900b96db033d39d81b6156b6002468ae0a9",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__py__display_any.py",
"sha256": "2a9f5290d9ac0e997f80545d44506354818a74ab022d6ac7e245304eb3f01840",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__py__image_resize.py",
"sha256": "a34ca0e0805bcef0510f96fb7ed5a17d16bac088ae4d5544f834ac2cbc0f856c",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__py__power_lora_loader.py",
"sha256": "9b0eee007dc4cdff8e54e03e14c72049b5d07a2aba02d227e982361f51f15f2c",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__py__utils.py",
"sha256": "57038116cf0c6ebc417e998a5c36c4b7e74e73d61d495c20e5fe18a6ad8afbc7",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__web__comfyui__any_switch.js",
"sha256": "486c0b2e1f8fe688e981a11f4e5af40240628fe0e28e4ecfc514a0f2f7472358",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__web__comfyui__display_any.js",
"sha256": "ac025d1fdfabd0f16825ddd20d82980b4c31b6bd1d18942637551b74adcd9b2d",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgold__web__comfyui__power_lora_loader.js",
"sha256": "c4ed70b91d4b5cf88a8487c89849f00c6d3cde1b04e9cb362214f50eff3750c6",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgpkg-members.json",
"sha256": "cf62c5760755e758fe99c3e4b14984c6e99cfd5a77c27e7fe3ace5527f2bffcd",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgpkg-range-proof.json",
"sha256": "0856abbfc94636b534217a2e51f571d7818cd3f2263ab9155d1a56ab00837632",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgpkg-registry.json",
"sha256": "bcffa18e31ae51a072fd2b0eeeb13813bba38ea6a336f866b7a95f5525510536",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgpkg-sources.json",
"sha256": "70b656a29dd211836b63491ab01f9a986344b0cf84a5564b38cabd5128820930",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgpkg__LICENSE",
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgpkg____init__.py",
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgpkg__py__any_switch.py",
"sha256": "fb4437aced8227bcdabf89bf787e60c9d938a18bb1ec519101bb007fb3cc6afb",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgpkg__py__constants.py",
"sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/rgpkg__py__utils.py",
"sha256": "57038116cf0c6ebc417e998a5c36c4b7e74e73d61d495c20e5fe18a6ad8afbc7",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/sources.json",
"sha256": "88c10c2d18174bac00dc113fad0901fce9be8309550cda0156122f25ad607b51",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
},
{
"path": "docs/hel-892/zimage-generala-reference/supporting-absent.json",
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
}
],
"count": 116,
"upstream_executed": false,
"note": "commit/tag字节和选定blob已重算;tree列表非完整树对象重哈希。本批为选定Git文本与发布成员Range;成员CRC已核,整包SHA/Git绑定未知,没有整包获取;未安装。"
}
@@ -0,0 +1,6 @@
{
"origin": "docs/hel-892/zimage-photo-reference",
"baseline": "d3447f2e6600c515d712127d8cab01ecae72bf48",
"method": "复用必要准确原文、身份和许可原字节,通用a_逐节点版本/类行段/完整commit-tag-tree-blob-SHA重新绑定,无新网络获取或上游执行。",
"limits": "历史必要发布成员Range的SHA/CRC不能冒充整包SHA或Git绑定;历史SeedVR越界获取与删除记录原样保留。"
}
@@ -0,0 +1,67 @@
"List source texts and their identity/permission evidence, without self hashing."
import hashlib
import json
from build_definition import OUT, REF, REPO
def main():
rows = json.loads((REF / "sources.json").read_bytes())["sources"]
paths = {p.resolve() for p in REF.iterdir() if p.is_file()}
for e in rows:
paths.add((REF / e["local_file"]).resolve())
if not e["license_file"].startswith("未知"):
paths.add((REF / e["license_file"]).resolve())
if e["id"] == "litegraph":
continue
if "member_crc32" in e:
paths.update(
(
(REF / e["identity_root"] / (e["identity_key"] + suffix)).resolve()
for suffix in ["-registry.json", "-members.json", "-range-proof.json"]
)
)
continue
base = REF / e["identity_root"]
paths.update(
(
(base / (e["identity_key"] + suffix)).resolve()
for suffix in ["-commit.txt", "-tag.txt", "-tag.json", "-tree.json"]
)
)
paths.update((p.resolve() for p in REF.glob("*registry*.json")))
result = []
for p in sorted(paths):
raw = p.read_bytes()
result.append(
dict(
path=str(p.relative_to(REPO)),
sha256=hashlib.sha256(raw).hexdigest(),
purpose="准确来源原文、许可或Git对象绑定;静态读取未执行",
)
)
(OUT / "source-closure.json").write_text(
json.dumps(
dict(
files=result,
count=len(result),
upstream_executed=False,
note=(
"commit/tag字节和选定blob已重算"
";tree列表非完整树对象重哈希。本批为选定"
"Git文本与发布成员Range;成员CRC已"
"核,整包SHA/Git绑定未知,没有整包获取"
";未安装。"
),
),
ensure_ascii=False,
indent=2,
)
+ "\n"
)
print("PASS source closure", len(result))
if __name__ == "__main__":
main()
@@ -0,0 +1,26 @@
# 第94批,仅Z-Image十八种风格通用a_参考;原PR25/main,基线d3447f2e6600c515d712127d8cab01ecae72bf48。
# 静态必要源码/许可,不执行上游、预处理器、模型、媒体、种子、别名或清理。
# 既有依赖离线恢复,不增依赖。
uv sync --project calliope-backend --offline --extra dev
npm ci --offline --ignore-scripts --prefix calliope-web
# 仓内已有准确文本,无需联网;可选prepare_sources仅复用必要原文及采集准确Git文本;发布成员仅Range必要文本,整体包SHA/Git绑定未知,无整包或资产获取。
# PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-generala-document-evidence/prepare_sources.py
# PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-generala-document-evidence/extend_sources.py
# PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-generala-document-evidence/fetch_release.py
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-generala-document-evidence/inventory.py
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-generala-document-evidence/verify_sources.py
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-generala-document-evidence/rebuild.py
uv run --project calliope-backend --offline ruff format --config calliope-backend/pyproject.toml calliope-backend/src/calliope/comfyui/fixed_document.py
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-generala-document-evidence/repeat.py
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_zimage_generala_fixed_document.py calliope-backend/tests/test_workflow_library.py -q
uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/zimage-generala-document-evidence/*.py calliope-backend/tests/test_zimage_generala_fixed_document.py e2e/run-zimage-generala-document.py calliope-backend/src/calliope/comfyui/fixed_document.py
uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/zimage-generala-document-evidence/*.py calliope-backend/tests/test_zimage_generala_fixed_document.py e2e/run-zimage-generala-document.py calliope-backend/src/calliope/comfyui/fixed_document.py
node --check e2e/zimage-generala-document.mjs
PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/zimage-generala-document-evidence/recompute.py
npm run build --prefix calliope-web
# 前端build完成后再浏览,不与vite并发写生成目录。
PYTHONDONTWRITEBYTECODE=1 LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome calliope-backend/.venv/bin/python e2e/run-zimage-generala-document.py
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-generala-document-evidence/collect_browser.py
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-generala-document-evidence/source_closure.py
# 175新增位置/4注释;旧74块逐对象冻结。75图3639位置/94注释仅参考,155定稿0/实跑0/新增转换0。
@@ -0,0 +1,194 @@
"Verify exact text, Git/package provenance and source graph without upstream imports."
import ast
import hashlib
import json
import zlib
from build_definition import OUT, REF, build, canonical
from inventory import inventory
def object_hash(kind, raw):
return hashlib.sha1(kind.encode() + b" " + str(len(raw)).encode() + b"\x00" + raw).hexdigest()
def main():
(block, inv) = (build(), inventory())
rows = json.loads((REF / "sources.json").read_bytes())["sources"]
checks = []
for e in rows:
raw = (REF / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
if e["id"] == "litegraph":
root = REF / e["identity_root"]
assert (
json.loads((root / "litegraph__package__package.json").read_bytes())["version"]
== "0.15.15"
)
front = next(
(x for x in rows if x["id"] == "frontend" and x["file"] == "package-lock.json")
)
lock = json.loads((REF / front["local_file"]).read_bytes())
assert (
lock["packages"]["node_modules/@comfyorg/litegraph"]["integrity"]
== "sha512-" + e["artifact_sha512_base64"]
)
proof = (
"Pinned frontend1.23.0 "
"lock, exact0.15.15 mem"
"ber SHA; whole artifac"
"t digest reused, Git u"
"nknown"
)
elif "member_crc32" in e:
root = REF / e["identity_root"]
m = json.loads((root / (e["identity_key"] + "-registry.json")).read_bytes())
members = json.loads((root / (e["identity_key"] + "-members.json")).read_bytes())
member = next((x for x in members if x["name"] == e["file"]))
assert m["version"] == e["tag"]
assert member["crc"] == e["member_crc32"] == zlib.crc32(raw)
assert e["package_sha256"].startswith("unknown")
proof = "准确发布成员SHA/CRC;Range选定文本,完整包SHA与Git绑定未知"
else:
root = REF / e["identity_root"]
key = e["identity_key"]
commit = (root / (key + "-commit.txt")).read_bytes()
tree = json.loads((root / (key + "-tree.json")).read_bytes())
assert object_hash("commit", commit) == e["commit"]
assert commit.decode().splitlines()[0] == "tree " + e["tree"] == "tree " + tree["sha"]
assert not tree["truncated"]
assert (
next((t["sha"] for t in tree["tree"] if t["path"] == e["file"]))
== e["git_blob_sha1"]
== object_hash("blob", raw)
)
tag = json.loads((root / (key + "-tag.json")).read_bytes())
tag_raw = (root / (key + "-tag.txt")).read_bytes()
assert tag["commit"] == e["commit"]
if tag["object"] == e["commit"]:
assert tag_raw == commit
else:
assert object_hash("tag", tag_raw) == tag["object"]
assert tag_raw.decode().startswith("object " + e["commit"] + "\n")
proof = (
"Rehashed commit/tag/se"
"lected blob; complete "
"tree listing, not full"
" tree-object rehash"
)
if not e["license_file"].startswith("未知"):
license_row = next(
(
x
for x in rows
if x["id"] == e["id"]
and (
(REF / x["local_file"]).resolve() == (REF / e["license_file"]).resolve()
or x["file"] == "LICENSE"
)
)
)
assert (
hashlib.sha256((REF / e["license_file"]).read_bytes()).hexdigest()
== license_row["sha256"]
)
checks.append(dict(id=e["id"], file=e["file"], sha256=e["sha256"], proof=proof))
assert len(inv["fields"]) == 175 and len(inv["notes"]) == 4
assert [(s["nodes"], s["edges"]) for s in inv["scopes"]] == [(266, 332)]
assert inv["extra"]["frontendVersion"] == "1.35.9" and inv["scopes"][0]["named_nodes"] == 0
assert inv["scopes"][0]["modes"].count(0) == 228 and inv["scopes"][0]["modes"].count(2) == 38
assert sum((e["state"] == "missing" for e in inv["empty"])) == 161
assert sum((e["state"] == "empty_list" for e in inv["empty"])) == 27
for a, f in zip(inv["fields"], block["fields"], strict=True):
assert (a["pointer"], a["json_type"], canonical(a["value"])) == (
f["pointer"],
f["json_type"],
canonical(f["value"]),
)
assert [(n["pointer"], n["text"]) for n in block["comments"]] == [
(n["pointer"], n["text"]) for n in inv["notes"]
]
from build_definition import PATHS, REPO
g = json.loads((REPO / PATHS[0]).read_bytes())
ns = {n["id"]: n for n in g["nodes"]}
type_counts = {}
for n in g["nodes"]:
type_counts[n["type"]] = type_counts.get(n["type"], 0) + 1
expected = {
"Reroute": 131,
"Reroute (rgthree)": 16,
"Any Switch (rgthree)": 16,
"Fast Muter (rgthree)": 4,
"Mute / Bypass Repeater (rgthree)": 5,
"Node Collector (rgthree)": 5,
"PrimitiveStringMultiline": 18,
"KSamplerAdvanced": 2,
"SamplerCustom": 5,
"KarrasScheduler": 5,
"SplitSigmas": 3,
"SetFirstSigma": 2,
"ExtendIntermediateSigmas": 2,
"VAEDecode": 6,
"VAEEncode": 3,
"PrimitiveInt": 6,
"UpscaleModelLoader": 2,
"ImageUpscaleWithModel": 2,
"Image Resize (rgthree)": 5,
}
assert all(type_counts[k] == v for k, v in expected.items())
assert ns[524]["mode"] == 0 and ns[531]["mode"] == 2
checked = []
for eid, a, ao, z, zi, kind in g["links"]:
assert eid in ns[a]["outputs"][ao]["links"] and ns[z]["inputs"][zi]["link"] == eid
checked.append(eid)
assert len(checked) == 332 and len(set(checked)) == 332
assert [
n["id"] for n in g["nodes"] if n["type"] == "PrimitiveStringMultiline" and n["mode"] == 0
] == [125]
assert ns[566]["inputs"][0]["label"] == "BAD" and ns[566]["inputs"][0]["type"] == "*"
assert ns[392]["widgets_values"] == [{}, {"type": "PowerLoraLoaderHeaderWidget"}, {}, ""]
assert sum((isinstance(f["value"], dict) for f in block["fields"])) == 3
assert not ns[57]["widgets_values"][0].endswith("\n")
assert ns[9]["outputs"] == []
assert ns[341]["inputs"][1]["name"] == "seed"
e = next((e for e in rows if e["id"] == "core0375" and e["file"] == "nodes.py"))
parsed = ast.parse((REF / e["local_file"]).read_bytes())
save = next((c for c in parsed.body if isinstance(c, ast.ClassDef) and c.name == "SaveImage"))
ret = next(
(
c.value
for c in save.body
if isinstance(c, ast.Assign)
and any((isinstance(n, ast.Name) and n.id == "RETURN_TYPES" for n in c.targets))
)
)
assert ast.literal_eval(ret) == ()
for e in block["sources"]:
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
(OUT / "source-check.json").write_text(
json.dumps(
dict(
sources=checks,
counts=block["counts"],
physical_edges_checked=len(checked),
inventory_matches_definition=True,
source_save_outputs=ns[9]["outputs"],
type_counts=type_counts,
accurate_save_return=[],
bad_label_pointer=f"/nodes/{g['nodes'].index(ns[566])}/inputs/0/label",
no_upstream_execution=True,
),
ensure_ascii=False,
indent=2,
)
+ "\n"
)
print(("PASS exact sources,175 positions,4 notes,332 physical edges"))
if __name__ == "__main__":
main()
@@ -0,0 +1 @@
[]
@@ -0,0 +1,6 @@
tree 52e594ca7807bd11ddcbacdc5e92041554b7d668
parent 58b85746618e2bc2dd32024c89403926aad59f48
author comfyanonymous <comfyanonymous@protonmail.com> 1764142873 -0500
committer comfyanonymous <comfyanonymous@protonmail.com> 1764142873 -0500
ComfyUI version v0.3.75
@@ -0,0 +1,5 @@
{
"ref": "v0.3.75",
"commit": "8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a",
"object": "8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a"
}
@@ -0,0 +1,6 @@
tree 52e594ca7807bd11ddcbacdc5e92041554b7d668
parent 58b85746618e2bc2dd32024c89403926aad59f48
author comfyanonymous <comfyanonymous@protonmail.com> 1764142873 -0500
committer comfyanonymous <comfyanonymous@protonmail.com> 1764142873 -0500
ComfyUI version v0.3.75
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
@@ -0,0 +1,932 @@
import math
import comfy.samplers
import comfy.sample
from comfy.k_diffusion import sampling as k_diffusion_sampling
from comfy.k_diffusion import sa_solver
from comfy.comfy_types import IO, ComfyNodeABC, InputTypeDict
import latent_preview
import torch
import comfy.utils
import node_helpers
class BasicScheduler:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"model": ("MODEL",),
"scheduler": (comfy.samplers.SCHEDULER_NAMES, ),
"steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
"denoise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/schedulers"
FUNCTION = "get_sigmas"
def get_sigmas(self, model, scheduler, steps, denoise):
total_steps = steps
if denoise < 1.0:
if denoise <= 0.0:
return (torch.FloatTensor([]),)
total_steps = int(steps/denoise)
sigmas = comfy.samplers.calculate_sigmas(model.get_model_object("model_sampling"), scheduler, total_steps).cpu()
sigmas = sigmas[-(steps + 1):]
return (sigmas, )
class KarrasScheduler:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
"sigma_max": ("FLOAT", {"default": 14.614642, "min": 0.0, "max": 5000.0, "step":0.01, "round": False}),
"sigma_min": ("FLOAT", {"default": 0.0291675, "min": 0.0, "max": 5000.0, "step":0.01, "round": False}),
"rho": ("FLOAT", {"default": 7.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/schedulers"
FUNCTION = "get_sigmas"
def get_sigmas(self, steps, sigma_max, sigma_min, rho):
sigmas = k_diffusion_sampling.get_sigmas_karras(n=steps, sigma_min=sigma_min, sigma_max=sigma_max, rho=rho)
return (sigmas, )
class ExponentialScheduler:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
"sigma_max": ("FLOAT", {"default": 14.614642, "min": 0.0, "max": 5000.0, "step":0.01, "round": False}),
"sigma_min": ("FLOAT", {"default": 0.0291675, "min": 0.0, "max": 5000.0, "step":0.01, "round": False}),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/schedulers"
FUNCTION = "get_sigmas"
def get_sigmas(self, steps, sigma_max, sigma_min):
sigmas = k_diffusion_sampling.get_sigmas_exponential(n=steps, sigma_min=sigma_min, sigma_max=sigma_max)
return (sigmas, )
class PolyexponentialScheduler:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
"sigma_max": ("FLOAT", {"default": 14.614642, "min": 0.0, "max": 5000.0, "step":0.01, "round": False}),
"sigma_min": ("FLOAT", {"default": 0.0291675, "min": 0.0, "max": 5000.0, "step":0.01, "round": False}),
"rho": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/schedulers"
FUNCTION = "get_sigmas"
def get_sigmas(self, steps, sigma_max, sigma_min, rho):
sigmas = k_diffusion_sampling.get_sigmas_polyexponential(n=steps, sigma_min=sigma_min, sigma_max=sigma_max, rho=rho)
return (sigmas, )
class LaplaceScheduler:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
"sigma_max": ("FLOAT", {"default": 14.614642, "min": 0.0, "max": 5000.0, "step":0.01, "round": False}),
"sigma_min": ("FLOAT", {"default": 0.0291675, "min": 0.0, "max": 5000.0, "step":0.01, "round": False}),
"mu": ("FLOAT", {"default": 0.0, "min": -10.0, "max": 10.0, "step":0.1, "round": False}),
"beta": ("FLOAT", {"default": 0.5, "min": 0.0, "max": 10.0, "step":0.1, "round": False}),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/schedulers"
FUNCTION = "get_sigmas"
def get_sigmas(self, steps, sigma_max, sigma_min, mu, beta):
sigmas = k_diffusion_sampling.get_sigmas_laplace(n=steps, sigma_min=sigma_min, sigma_max=sigma_max, mu=mu, beta=beta)
return (sigmas, )
class SDTurboScheduler:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"model": ("MODEL",),
"steps": ("INT", {"default": 1, "min": 1, "max": 10}),
"denoise": ("FLOAT", {"default": 1.0, "min": 0, "max": 1.0, "step": 0.01}),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/schedulers"
FUNCTION = "get_sigmas"
def get_sigmas(self, model, steps, denoise):
start_step = 10 - int(10 * denoise)
timesteps = torch.flip(torch.arange(1, 11) * 100 - 1, (0,))[start_step:start_step + steps]
sigmas = model.get_model_object("model_sampling").sigma(timesteps)
sigmas = torch.cat([sigmas, sigmas.new_zeros([1])])
return (sigmas, )
class BetaSamplingScheduler:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"model": ("MODEL",),
"steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
"alpha": ("FLOAT", {"default": 0.6, "min": 0.0, "max": 50.0, "step":0.01, "round": False}),
"beta": ("FLOAT", {"default": 0.6, "min": 0.0, "max": 50.0, "step":0.01, "round": False}),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/schedulers"
FUNCTION = "get_sigmas"
def get_sigmas(self, model, steps, alpha, beta):
sigmas = comfy.samplers.beta_scheduler(model.get_model_object("model_sampling"), steps, alpha=alpha, beta=beta)
return (sigmas, )
class VPScheduler:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
"beta_d": ("FLOAT", {"default": 19.9, "min": 0.0, "max": 5000.0, "step":0.01, "round": False}), #TODO: fix default values
"beta_min": ("FLOAT", {"default": 0.1, "min": 0.0, "max": 5000.0, "step":0.01, "round": False}),
"eps_s": ("FLOAT", {"default": 0.001, "min": 0.0, "max": 1.0, "step":0.0001, "round": False}),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/schedulers"
FUNCTION = "get_sigmas"
def get_sigmas(self, steps, beta_d, beta_min, eps_s):
sigmas = k_diffusion_sampling.get_sigmas_vp(n=steps, beta_d=beta_d, beta_min=beta_min, eps_s=eps_s)
return (sigmas, )
class SplitSigmas:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"sigmas": ("SIGMAS", ),
"step": ("INT", {"default": 0, "min": 0, "max": 10000}),
}
}
RETURN_TYPES = ("SIGMAS","SIGMAS")
RETURN_NAMES = ("high_sigmas", "low_sigmas")
CATEGORY = "sampling/custom_sampling/sigmas"
FUNCTION = "get_sigmas"
def get_sigmas(self, sigmas, step):
sigmas1 = sigmas[:step + 1]
sigmas2 = sigmas[step:]
return (sigmas1, sigmas2)
class SplitSigmasDenoise:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"sigmas": ("SIGMAS", ),
"denoise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}),
}
}
RETURN_TYPES = ("SIGMAS","SIGMAS")
RETURN_NAMES = ("high_sigmas", "low_sigmas")
CATEGORY = "sampling/custom_sampling/sigmas"
FUNCTION = "get_sigmas"
def get_sigmas(self, sigmas, denoise):
steps = max(sigmas.shape[-1] - 1, 0)
total_steps = round(steps * denoise)
sigmas1 = sigmas[:-(total_steps)]
sigmas2 = sigmas[-(total_steps + 1):]
return (sigmas1, sigmas2)
class FlipSigmas:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"sigmas": ("SIGMAS", ),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/sigmas"
FUNCTION = "get_sigmas"
def get_sigmas(self, sigmas):
if len(sigmas) == 0:
return (sigmas,)
sigmas = sigmas.flip(0)
if sigmas[0] == 0:
sigmas[0] = 0.0001
return (sigmas,)
class SetFirstSigma:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"sigmas": ("SIGMAS", ),
"sigma": ("FLOAT", {"default": 136.0, "min": 0.0, "max": 20000.0, "step": 0.001, "round": False}),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/sigmas"
FUNCTION = "set_first_sigma"
def set_first_sigma(self, sigmas, sigma):
sigmas = sigmas.clone()
sigmas[0] = sigma
return (sigmas, )
class ExtendIntermediateSigmas:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"sigmas": ("SIGMAS", ),
"steps": ("INT", {"default": 2, "min": 1, "max": 100}),
"start_at_sigma": ("FLOAT", {"default": -1.0, "min": -1.0, "max": 20000.0, "step": 0.01, "round": False}),
"end_at_sigma": ("FLOAT", {"default": 12.0, "min": 0.0, "max": 20000.0, "step": 0.01, "round": False}),
"spacing": (['linear', 'cosine', 'sine'],),
}
}
RETURN_TYPES = ("SIGMAS",)
CATEGORY = "sampling/custom_sampling/sigmas"
FUNCTION = "extend"
def extend(self, sigmas: torch.Tensor, steps: int, start_at_sigma: float, end_at_sigma: float, spacing: str):
if start_at_sigma < 0:
start_at_sigma = float("inf")
interpolator = {
'linear': lambda x: x,
'cosine': lambda x: torch.sin(x*math.pi/2),
'sine': lambda x: 1 - torch.cos(x*math.pi/2)
}[spacing]
# linear space for our interpolation function
x = torch.linspace(0, 1, steps + 1, device=sigmas.device)[1:-1]
computed_spacing = interpolator(x)
extended_sigmas = []
for i in range(len(sigmas) - 1):
sigma_current = sigmas[i]
sigma_next = sigmas[i+1]
extended_sigmas.append(sigma_current)
if end_at_sigma <= sigma_current <= start_at_sigma:
interpolated_steps = computed_spacing * (sigma_next - sigma_current) + sigma_current
extended_sigmas.extend(interpolated_steps.tolist())
# Add the last sigma value
if len(sigmas) > 0:
extended_sigmas.append(sigmas[-1])
extended_sigmas = torch.FloatTensor(extended_sigmas)
return (extended_sigmas,)
class SamplingPercentToSigma:
@classmethod
def INPUT_TYPES(cls) -> InputTypeDict:
return {
"required": {
"model": (IO.MODEL, {}),
"sampling_percent": (IO.FLOAT, {"default": 0.0, "min": 0.0, "max": 1.0, "step": 0.0001}),
"return_actual_sigma": (IO.BOOLEAN, {"default": False, "tooltip": "Return the actual sigma value instead of the value used for interval checks.\nThis only affects results at 0.0 and 1.0."}),
}
}
RETURN_TYPES = (IO.FLOAT,)
RETURN_NAMES = ("sigma_value",)
CATEGORY = "sampling/custom_sampling/sigmas"
FUNCTION = "get_sigma"
def get_sigma(self, model, sampling_percent, return_actual_sigma):
model_sampling = model.get_model_object("model_sampling")
sigma_val = model_sampling.percent_to_sigma(sampling_percent)
if return_actual_sigma:
if sampling_percent == 0.0:
sigma_val = model_sampling.sigma_max.item()
elif sampling_percent == 1.0:
sigma_val = model_sampling.sigma_min.item()
return (sigma_val,)
class KSamplerSelect:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"sampler_name": (comfy.samplers.SAMPLER_NAMES, ),
}
}
RETURN_TYPES = ("SAMPLER",)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, sampler_name):
sampler = comfy.samplers.sampler_object(sampler_name)
return (sampler, )
class SamplerDPMPP_3M_SDE:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"eta": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"s_noise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"noise_device": (['gpu', 'cpu'], ),
}
}
RETURN_TYPES = ("SAMPLER",)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, eta, s_noise, noise_device):
if noise_device == 'cpu':
sampler_name = "dpmpp_3m_sde"
else:
sampler_name = "dpmpp_3m_sde_gpu"
sampler = comfy.samplers.ksampler(sampler_name, {"eta": eta, "s_noise": s_noise})
return (sampler, )
class SamplerDPMPP_2M_SDE:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"solver_type": (['midpoint', 'heun'], ),
"eta": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"s_noise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"noise_device": (['gpu', 'cpu'], ),
}
}
RETURN_TYPES = ("SAMPLER",)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, solver_type, eta, s_noise, noise_device):
if noise_device == 'cpu':
sampler_name = "dpmpp_2m_sde"
else:
sampler_name = "dpmpp_2m_sde_gpu"
sampler = comfy.samplers.ksampler(sampler_name, {"eta": eta, "s_noise": s_noise, "solver_type": solver_type})
return (sampler, )
class SamplerDPMPP_SDE:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"eta": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"s_noise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"r": ("FLOAT", {"default": 0.5, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"noise_device": (['gpu', 'cpu'], ),
}
}
RETURN_TYPES = ("SAMPLER",)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, eta, s_noise, r, noise_device):
if noise_device == 'cpu':
sampler_name = "dpmpp_sde"
else:
sampler_name = "dpmpp_sde_gpu"
sampler = comfy.samplers.ksampler(sampler_name, {"eta": eta, "s_noise": s_noise, "r": r})
return (sampler, )
class SamplerDPMPP_2S_Ancestral:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"eta": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"s_noise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
}
}
RETURN_TYPES = ("SAMPLER",)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, eta, s_noise):
sampler = comfy.samplers.ksampler("dpmpp_2s_ancestral", {"eta": eta, "s_noise": s_noise})
return (sampler, )
class SamplerEulerAncestral:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"eta": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"s_noise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
}
}
RETURN_TYPES = ("SAMPLER",)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, eta, s_noise):
sampler = comfy.samplers.ksampler("euler_ancestral", {"eta": eta, "s_noise": s_noise})
return (sampler, )
class SamplerEulerAncestralCFGPP:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"eta": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step":0.01, "round": False}),
"s_noise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step":0.01, "round": False}),
}}
RETURN_TYPES = ("SAMPLER",)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, eta, s_noise):
sampler = comfy.samplers.ksampler(
"euler_ancestral_cfg_pp",
{"eta": eta, "s_noise": s_noise})
return (sampler, )
class SamplerLMS:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"order": ("INT", {"default": 4, "min": 1, "max": 100}),
}
}
RETURN_TYPES = ("SAMPLER",)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, order):
sampler = comfy.samplers.ksampler("lms", {"order": order})
return (sampler, )
class SamplerDPMAdaptative:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"order": ("INT", {"default": 3, "min": 2, "max": 3}),
"rtol": ("FLOAT", {"default": 0.05, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"atol": ("FLOAT", {"default": 0.0078, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"h_init": ("FLOAT", {"default": 0.05, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"pcoeff": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"icoeff": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"dcoeff": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"accept_safety": ("FLOAT", {"default": 0.81, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"eta": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
"s_noise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),
}
}
RETURN_TYPES = ("SAMPLER",)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, order, rtol, atol, h_init, pcoeff, icoeff, dcoeff, accept_safety, eta, s_noise):
sampler = comfy.samplers.ksampler("dpm_adaptive", {"order": order, "rtol": rtol, "atol": atol, "h_init": h_init, "pcoeff": pcoeff,
"icoeff": icoeff, "dcoeff": dcoeff, "accept_safety": accept_safety, "eta": eta,
"s_noise":s_noise })
return (sampler, )
class SamplerER_SDE(ComfyNodeABC):
@classmethod
def INPUT_TYPES(cls) -> InputTypeDict:
return {
"required": {
"solver_type": (IO.COMBO, {"options": ["ER-SDE", "Reverse-time SDE", "ODE"]}),
"max_stage": (IO.INT, {"default": 3, "min": 1, "max": 3}),
"eta": (
IO.FLOAT,
{"default": 1.0, "min": 0.0, "max": 100.0, "step": 0.01, "round": False, "tooltip": "Stochastic strength of reverse-time SDE.\nWhen eta=0, it reduces to deterministic ODE. This setting doesn't apply to ER-SDE solver type."},
),
"s_noise": (IO.FLOAT, {"default": 1.0, "min": 0.0, "max": 100.0, "step": 0.01, "round": False}),
}
}
RETURN_TYPES = (IO.SAMPLER,)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, solver_type, max_stage, eta, s_noise):
if solver_type == "ODE" or (solver_type == "Reverse-time SDE" and eta == 0):
eta = 0
s_noise = 0
def reverse_time_sde_noise_scaler(x):
return x ** (eta + 1)
if solver_type == "ER-SDE":
# Use the default one in sample_er_sde()
noise_scaler = None
else:
noise_scaler = reverse_time_sde_noise_scaler
sampler_name = "er_sde"
sampler = comfy.samplers.ksampler(sampler_name, {"s_noise": s_noise, "noise_scaler": noise_scaler, "max_stage": max_stage})
return (sampler,)
class SamplerSASolver(ComfyNodeABC):
@classmethod
def INPUT_TYPES(cls) -> InputTypeDict:
return {
"required": {
"model": (IO.MODEL, {}),
"eta": (IO.FLOAT, {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01, "round": False},),
"sde_start_percent": (IO.FLOAT, {"default": 0.2, "min": 0.0, "max": 1.0, "step": 0.001},),
"sde_end_percent": (IO.FLOAT, {"default": 0.8, "min": 0.0, "max": 1.0, "step": 0.001},),
"s_noise": (IO.FLOAT, {"default": 1.0, "min": 0.0, "max": 100.0, "step": 0.01, "round": False},),
"predictor_order": (IO.INT, {"default": 3, "min": 1, "max": 6}),
"corrector_order": (IO.INT, {"default": 4, "min": 0, "max": 6}),
"use_pece": (IO.BOOLEAN, {}),
"simple_order_2": (IO.BOOLEAN, {}),
}
}
RETURN_TYPES = (IO.SAMPLER,)
CATEGORY = "sampling/custom_sampling/samplers"
FUNCTION = "get_sampler"
def get_sampler(self, model, eta, sde_start_percent, sde_end_percent, s_noise, predictor_order, corrector_order, use_pece, simple_order_2):
model_sampling = model.get_model_object("model_sampling")
start_sigma = model_sampling.percent_to_sigma(sde_start_percent)
end_sigma = model_sampling.percent_to_sigma(sde_end_percent)
tau_func = sa_solver.get_tau_interval_func(start_sigma, end_sigma, eta=eta)
sampler_name = "sa_solver"
sampler = comfy.samplers.ksampler(
sampler_name,
{
"tau_func": tau_func,
"s_noise": s_noise,
"predictor_order": predictor_order,
"corrector_order": corrector_order,
"use_pece": use_pece,
"simple_order_2": simple_order_2,
},
)
return (sampler,)
class Noise_EmptyNoise:
def __init__(self):
self.seed = 0
def generate_noise(self, input_latent):
latent_image = input_latent["samples"]
return torch.zeros(latent_image.shape, dtype=latent_image.dtype, layout=latent_image.layout, device="cpu")
class Noise_RandomNoise:
def __init__(self, seed):
self.seed = seed
def generate_noise(self, input_latent):
latent_image = input_latent["samples"]
batch_inds = input_latent["batch_index"] if "batch_index" in input_latent else None
return comfy.sample.prepare_noise(latent_image, self.seed, batch_inds)
class SamplerCustom:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"model": ("MODEL",),
"add_noise": ("BOOLEAN", {"default": True}),
"noise_seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff, "control_after_generate": True}),
"cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01}),
"positive": ("CONDITIONING", ),
"negative": ("CONDITIONING", ),
"sampler": ("SAMPLER", ),
"sigmas": ("SIGMAS", ),
"latent_image": ("LATENT", ),
}
}
RETURN_TYPES = ("LATENT","LATENT")
RETURN_NAMES = ("output", "denoised_output")
FUNCTION = "sample"
CATEGORY = "sampling/custom_sampling"
def sample(self, model, add_noise, noise_seed, cfg, positive, negative, sampler, sigmas, latent_image):
latent = latent_image
latent_image = latent["samples"]
latent = latent.copy()
latent_image = comfy.sample.fix_empty_latent_channels(model, latent_image)
latent["samples"] = latent_image
if not add_noise:
noise = Noise_EmptyNoise().generate_noise(latent)
else:
noise = Noise_RandomNoise(noise_seed).generate_noise(latent)
noise_mask = None
if "noise_mask" in latent:
noise_mask = latent["noise_mask"]
x0_output = {}
callback = latent_preview.prepare_callback(model, sigmas.shape[-1] - 1, x0_output)
disable_pbar = not comfy.utils.PROGRESS_BAR_ENABLED
samples = comfy.sample.sample_custom(model, noise, cfg, sampler, sigmas, positive, negative, latent_image, noise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise_seed)
out = latent.copy()
out["samples"] = samples
if "x0" in x0_output:
out_denoised = latent.copy()
out_denoised["samples"] = model.model.process_latent_out(x0_output["x0"].cpu())
else:
out_denoised = out
return (out, out_denoised)
class Guider_Basic(comfy.samplers.CFGGuider):
def set_conds(self, positive):
self.inner_set_conds({"positive": positive})
class BasicGuider:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"model": ("MODEL",),
"conditioning": ("CONDITIONING", ),
}
}
RETURN_TYPES = ("GUIDER",)
FUNCTION = "get_guider"
CATEGORY = "sampling/custom_sampling/guiders"
def get_guider(self, model, conditioning):
guider = Guider_Basic(model)
guider.set_conds(conditioning)
return (guider,)
class CFGGuider:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"model": ("MODEL",),
"positive": ("CONDITIONING", ),
"negative": ("CONDITIONING", ),
"cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01}),
}
}
RETURN_TYPES = ("GUIDER",)
FUNCTION = "get_guider"
CATEGORY = "sampling/custom_sampling/guiders"
def get_guider(self, model, positive, negative, cfg):
guider = comfy.samplers.CFGGuider(model)
guider.set_conds(positive, negative)
guider.set_cfg(cfg)
return (guider,)
class Guider_DualCFG(comfy.samplers.CFGGuider):
def set_cfg(self, cfg1, cfg2, nested=False):
self.cfg1 = cfg1
self.cfg2 = cfg2
self.nested = nested
def set_conds(self, positive, middle, negative):
middle = node_helpers.conditioning_set_values(middle, {"prompt_type": "negative"})
self.inner_set_conds({"positive": positive, "middle": middle, "negative": negative})
def predict_noise(self, x, timestep, model_options={}, seed=None):
negative_cond = self.conds.get("negative", None)
middle_cond = self.conds.get("middle", None)
positive_cond = self.conds.get("positive", None)
if self.nested:
out = comfy.samplers.calc_cond_batch(self.inner_model, [negative_cond, middle_cond, positive_cond], x, timestep, model_options)
pred_text = comfy.samplers.cfg_function(self.inner_model, out[2], out[1], self.cfg1, x, timestep, model_options=model_options, cond=positive_cond, uncond=middle_cond)
return out[0] + self.cfg2 * (pred_text - out[0])
else:
if model_options.get("disable_cfg1_optimization", False) == False:
if math.isclose(self.cfg2, 1.0):
negative_cond = None
if math.isclose(self.cfg1, 1.0):
middle_cond = None
out = comfy.samplers.calc_cond_batch(self.inner_model, [negative_cond, middle_cond, positive_cond], x, timestep, model_options)
return comfy.samplers.cfg_function(self.inner_model, out[1], out[0], self.cfg2, x, timestep, model_options=model_options, cond=middle_cond, uncond=negative_cond) + (out[2] - out[1]) * self.cfg1
class DualCFGGuider:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"model": ("MODEL",),
"cond1": ("CONDITIONING", ),
"cond2": ("CONDITIONING", ),
"negative": ("CONDITIONING", ),
"cfg_conds": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01}),
"cfg_cond2_negative": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0, "step":0.1, "round": 0.01}),
"style": (["regular", "nested"],),
}
}
RETURN_TYPES = ("GUIDER",)
FUNCTION = "get_guider"
CATEGORY = "sampling/custom_sampling/guiders"
def get_guider(self, model, cond1, cond2, negative, cfg_conds, cfg_cond2_negative, style):
guider = Guider_DualCFG(model)
guider.set_conds(cond1, cond2, negative)
guider.set_cfg(cfg_conds, cfg_cond2_negative, nested=(style == "nested"))
return (guider,)
class DisableNoise:
@classmethod
def INPUT_TYPES(s):
return {"required":{
}
}
RETURN_TYPES = ("NOISE",)
FUNCTION = "get_noise"
CATEGORY = "sampling/custom_sampling/noise"
def get_noise(self):
return (Noise_EmptyNoise(),)
class RandomNoise(DisableNoise):
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"noise_seed": ("INT", {
"default": 0,
"min": 0,
"max": 0xffffffffffffffff,
"control_after_generate": True,
}),
}
}
def get_noise(self, noise_seed):
return (Noise_RandomNoise(noise_seed),)
class SamplerCustomAdvanced:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"noise": ("NOISE", ),
"guider": ("GUIDER", ),
"sampler": ("SAMPLER", ),
"sigmas": ("SIGMAS", ),
"latent_image": ("LATENT", ),
}
}
RETURN_TYPES = ("LATENT","LATENT")
RETURN_NAMES = ("output", "denoised_output")
FUNCTION = "sample"
CATEGORY = "sampling/custom_sampling"
def sample(self, noise, guider, sampler, sigmas, latent_image):
latent = latent_image
latent_image = latent["samples"]
latent = latent.copy()
latent_image = comfy.sample.fix_empty_latent_channels(guider.model_patcher, latent_image)
latent["samples"] = latent_image
noise_mask = None
if "noise_mask" in latent:
noise_mask = latent["noise_mask"]
x0_output = {}
callback = latent_preview.prepare_callback(guider.model_patcher, sigmas.shape[-1] - 1, x0_output)
disable_pbar = not comfy.utils.PROGRESS_BAR_ENABLED
samples = guider.sample(noise.generate_noise(latent), latent_image, sampler, sigmas, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise.seed)
samples = samples.to(comfy.model_management.intermediate_device())
out = latent.copy()
out["samples"] = samples
if "x0" in x0_output:
out_denoised = latent.copy()
out_denoised["samples"] = guider.model_patcher.model.process_latent_out(x0_output["x0"].cpu())
else:
out_denoised = out
return (out, out_denoised)
class AddNoise:
@classmethod
def INPUT_TYPES(s):
return {"required":
{"model": ("MODEL",),
"noise": ("NOISE", ),
"sigmas": ("SIGMAS", ),
"latent_image": ("LATENT", ),
}
}
RETURN_TYPES = ("LATENT",)
FUNCTION = "add_noise"
CATEGORY = "_for_testing/custom_sampling/noise"
def add_noise(self, model, noise, sigmas, latent_image):
if len(sigmas) == 0:
return latent_image
latent = latent_image
latent_image = latent["samples"]
noisy = noise.generate_noise(latent)
model_sampling = model.get_model_object("model_sampling")
process_latent_out = model.get_model_object("process_latent_out")
process_latent_in = model.get_model_object("process_latent_in")
if len(sigmas) > 1:
scale = torch.abs(sigmas[0] - sigmas[-1])
else:
scale = sigmas[0]
if torch.count_nonzero(latent_image) > 0: #Don't shift the empty latent image.
latent_image = process_latent_in(latent_image)
noisy = model_sampling.noise_scaling(scale, noisy, latent_image)
noisy = process_latent_out(noisy)
noisy = torch.nan_to_num(noisy, nan=0.0, posinf=0.0, neginf=0.0)
out = latent.copy()
out["samples"] = noisy
return (out,)
NODE_CLASS_MAPPINGS = {
"SamplerCustom": SamplerCustom,
"BasicScheduler": BasicScheduler,
"KarrasScheduler": KarrasScheduler,
"ExponentialScheduler": ExponentialScheduler,
"PolyexponentialScheduler": PolyexponentialScheduler,
"LaplaceScheduler": LaplaceScheduler,
"VPScheduler": VPScheduler,
"BetaSamplingScheduler": BetaSamplingScheduler,
"SDTurboScheduler": SDTurboScheduler,
"KSamplerSelect": KSamplerSelect,
"SamplerEulerAncestral": SamplerEulerAncestral,
"SamplerEulerAncestralCFGPP": SamplerEulerAncestralCFGPP,
"SamplerLMS": SamplerLMS,
"SamplerDPMPP_3M_SDE": SamplerDPMPP_3M_SDE,
"SamplerDPMPP_2M_SDE": SamplerDPMPP_2M_SDE,
"SamplerDPMPP_SDE": SamplerDPMPP_SDE,
"SamplerDPMPP_2S_Ancestral": SamplerDPMPP_2S_Ancestral,
"SamplerDPMAdaptative": SamplerDPMAdaptative,
"SamplerER_SDE": SamplerER_SDE,
"SamplerSASolver": SamplerSASolver,
"SplitSigmas": SplitSigmas,
"SplitSigmasDenoise": SplitSigmasDenoise,
"FlipSigmas": FlipSigmas,
"SetFirstSigma": SetFirstSigma,
"ExtendIntermediateSigmas": ExtendIntermediateSigmas,
"SamplingPercentToSigma": SamplingPercentToSigma,
"CFGGuider": CFGGuider,
"DualCFGGuider": DualCFGGuider,
"BasicGuider": BasicGuider,
"RandomNoise": RandomNoise,
"DisableNoise": DisableNoise,
"AddNoise": AddNoise,
"SamplerCustomAdvanced": SamplerCustomAdvanced,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"SamplerEulerAncestralCFGPP": "SamplerEulerAncestralCFG++",
}
@@ -0,0 +1,674 @@
from __future__ import annotations
import nodes
import folder_paths
from comfy.cli_args import args
from PIL import Image
from PIL.PngImagePlugin import PngInfo
import numpy as np
import json
import os
import re
from io import BytesIO
from inspect import cleandoc
import torch
import comfy.utils
from comfy.comfy_types import FileLocator, IO
from server import PromptServer
MAX_RESOLUTION = nodes.MAX_RESOLUTION
class ImageCrop:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"width": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}),
"height": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}),
"x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}),
"y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "crop"
CATEGORY = "image/transform"
def crop(self, image, width, height, x, y):
x = min(x, image.shape[2] - 1)
y = min(y, image.shape[1] - 1)
to_x = width + x
to_y = height + y
img = image[:,y:to_y, x:to_x, :]
return (img,)
class RepeatImageBatch:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"amount": ("INT", {"default": 1, "min": 1, "max": 4096}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "repeat"
CATEGORY = "image/batch"
def repeat(self, image, amount):
s = image.repeat((amount, 1,1,1))
return (s,)
class ImageFromBatch:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"batch_index": ("INT", {"default": 0, "min": 0, "max": 4095}),
"length": ("INT", {"default": 1, "min": 1, "max": 4096}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "frombatch"
CATEGORY = "image/batch"
def frombatch(self, image, batch_index, length):
s_in = image
batch_index = min(s_in.shape[0] - 1, batch_index)
length = min(s_in.shape[0] - batch_index, length)
s = s_in[batch_index:batch_index + length].clone()
return (s,)
class ImageAddNoise:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff, "control_after_generate": True, "tooltip": "The random seed used for creating the noise."}),
"strength": ("FLOAT", {"default": 0.5, "min": 0.0, "max": 1.0, "step": 0.01}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "repeat"
CATEGORY = "image"
def repeat(self, image, seed, strength):
generator = torch.manual_seed(seed)
s = torch.clip((image + strength * torch.randn(image.size(), generator=generator, device="cpu").to(image)), min=0.0, max=1.0)
return (s,)
class SaveAnimatedWEBP:
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = ""
methods = {"default": 4, "fastest": 0, "slowest": 6}
@classmethod
def INPUT_TYPES(s):
return {"required":
{"images": ("IMAGE", ),
"filename_prefix": ("STRING", {"default": "ComfyUI"}),
"fps": ("FLOAT", {"default": 6.0, "min": 0.01, "max": 1000.0, "step": 0.01}),
"lossless": ("BOOLEAN", {"default": True}),
"quality": ("INT", {"default": 80, "min": 0, "max": 100}),
"method": (list(s.methods.keys()),),
# "num_frames": ("INT", {"default": 0, "min": 0, "max": 8192}),
},
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"},
}
RETURN_TYPES = ()
FUNCTION = "save_images"
OUTPUT_NODE = True
CATEGORY = "image/animation"
def save_images(self, images, fps, filename_prefix, lossless, quality, method, num_frames=0, prompt=None, extra_pnginfo=None):
method = self.methods.get(method)
filename_prefix += self.prefix_append
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0])
results: list[FileLocator] = []
pil_images = []
for image in images:
i = 255. * image.cpu().numpy()
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
pil_images.append(img)
metadata = pil_images[0].getexif()
if not args.disable_metadata:
if prompt is not None:
metadata[0x0110] = "prompt:{}".format(json.dumps(prompt))
if extra_pnginfo is not None:
inital_exif = 0x010f
for x in extra_pnginfo:
metadata[inital_exif] = "{}:{}".format(x, json.dumps(extra_pnginfo[x]))
inital_exif -= 1
if num_frames == 0:
num_frames = len(pil_images)
c = len(pil_images)
for i in range(0, c, num_frames):
file = f"{filename}_{counter:05}_.webp"
pil_images[i].save(os.path.join(full_output_folder, file), save_all=True, duration=int(1000.0/fps), append_images=pil_images[i + 1:i + num_frames], exif=metadata, lossless=lossless, quality=quality, method=method)
results.append({
"filename": file,
"subfolder": subfolder,
"type": self.type
})
counter += 1
animated = num_frames != 1
return { "ui": { "images": results, "animated": (animated,) } }
class SaveAnimatedPNG:
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = ""
@classmethod
def INPUT_TYPES(s):
return {"required":
{"images": ("IMAGE", ),
"filename_prefix": ("STRING", {"default": "ComfyUI"}),
"fps": ("FLOAT", {"default": 6.0, "min": 0.01, "max": 1000.0, "step": 0.01}),
"compress_level": ("INT", {"default": 4, "min": 0, "max": 9})
},
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"},
}
RETURN_TYPES = ()
FUNCTION = "save_images"
OUTPUT_NODE = True
CATEGORY = "image/animation"
def save_images(self, images, fps, compress_level, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None):
filename_prefix += self.prefix_append
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0])
results = list()
pil_images = []
for image in images:
i = 255. * image.cpu().numpy()
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
pil_images.append(img)
metadata = None
if not args.disable_metadata:
metadata = PngInfo()
if prompt is not None:
metadata.add(b"comf", "prompt".encode("latin-1", "strict") + b"\0" + json.dumps(prompt).encode("latin-1", "strict"), after_idat=True)
if extra_pnginfo is not None:
for x in extra_pnginfo:
metadata.add(b"comf", x.encode("latin-1", "strict") + b"\0" + json.dumps(extra_pnginfo[x]).encode("latin-1", "strict"), after_idat=True)
file = f"{filename}_{counter:05}_.png"
pil_images[0].save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=compress_level, save_all=True, duration=int(1000.0/fps), append_images=pil_images[1:])
results.append({
"filename": file,
"subfolder": subfolder,
"type": self.type
})
return { "ui": { "images": results, "animated": (True,)} }
class SVG:
"""
Stores SVG representations via a list of BytesIO objects.
"""
def __init__(self, data: list[BytesIO]):
self.data = data
def combine(self, other: 'SVG') -> 'SVG':
return SVG(self.data + other.data)
@staticmethod
def combine_all(svgs: list['SVG']) -> 'SVG':
all_svgs_list: list[BytesIO] = []
for svg_item in svgs:
all_svgs_list.extend(svg_item.data)
return SVG(all_svgs_list)
class ImageStitch:
"""Upstreamed from https://github.com/kijai/ComfyUI-KJNodes"""
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"image1": ("IMAGE",),
"direction": (["right", "down", "left", "up"], {"default": "right"}),
"match_image_size": ("BOOLEAN", {"default": True}),
"spacing_width": (
"INT",
{"default": 0, "min": 0, "max": 1024, "step": 2},
),
"spacing_color": (
["white", "black", "red", "green", "blue"],
{"default": "white"},
),
},
"optional": {
"image2": ("IMAGE",),
},
}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "stitch"
CATEGORY = "image/transform"
DESCRIPTION = """
Stitches image2 to image1 in the specified direction.
If image2 is not provided, returns image1 unchanged.
Optional spacing can be added between images.
"""
def stitch(
self,
image1,
direction,
match_image_size,
spacing_width,
spacing_color,
image2=None,
):
if image2 is None:
return (image1,)
# Handle batch size differences
if image1.shape[0] != image2.shape[0]:
max_batch = max(image1.shape[0], image2.shape[0])
if image1.shape[0] < max_batch:
image1 = torch.cat(
[image1, image1[-1:].repeat(max_batch - image1.shape[0], 1, 1, 1)]
)
if image2.shape[0] < max_batch:
image2 = torch.cat(
[image2, image2[-1:].repeat(max_batch - image2.shape[0], 1, 1, 1)]
)
# Match image sizes if requested
if match_image_size:
h1, w1 = image1.shape[1:3]
h2, w2 = image2.shape[1:3]
aspect_ratio = w2 / h2
if direction in ["left", "right"]:
target_h, target_w = h1, int(h1 * aspect_ratio)
else: # up, down
target_w, target_h = w1, int(w1 / aspect_ratio)
image2 = comfy.utils.common_upscale(
image2.movedim(-1, 1), target_w, target_h, "lanczos", "disabled"
).movedim(1, -1)
color_map = {
"white": 1.0,
"black": 0.0,
"red": (1.0, 0.0, 0.0),
"green": (0.0, 1.0, 0.0),
"blue": (0.0, 0.0, 1.0),
}
color_val = color_map[spacing_color]
# When not matching sizes, pad to align non-concat dimensions
if not match_image_size:
h1, w1 = image1.shape[1:3]
h2, w2 = image2.shape[1:3]
pad_value = 0.0
if not isinstance(color_val, tuple):
pad_value = color_val
if direction in ["left", "right"]:
# For horizontal concat, pad heights to match
if h1 != h2:
target_h = max(h1, h2)
if h1 < target_h:
pad_h = target_h - h1
pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2
image1 = torch.nn.functional.pad(image1, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)
if h2 < target_h:
pad_h = target_h - h2
pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2
image2 = torch.nn.functional.pad(image2, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)
else: # up, down
# For vertical concat, pad widths to match
if w1 != w2:
target_w = max(w1, w2)
if w1 < target_w:
pad_w = target_w - w1
pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2
image1 = torch.nn.functional.pad(image1, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)
if w2 < target_w:
pad_w = target_w - w2
pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2
image2 = torch.nn.functional.pad(image2, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)
# Ensure same number of channels
if image1.shape[-1] != image2.shape[-1]:
max_channels = max(image1.shape[-1], image2.shape[-1])
if image1.shape[-1] < max_channels:
image1 = torch.cat(
[
image1,
torch.ones(
*image1.shape[:-1],
max_channels - image1.shape[-1],
device=image1.device,
),
],
dim=-1,
)
if image2.shape[-1] < max_channels:
image2 = torch.cat(
[
image2,
torch.ones(
*image2.shape[:-1],
max_channels - image2.shape[-1],
device=image2.device,
),
],
dim=-1,
)
# Add spacing if specified
if spacing_width > 0:
spacing_width = spacing_width + (spacing_width % 2) # Ensure even
if direction in ["left", "right"]:
spacing_shape = (
image1.shape[0],
max(image1.shape[1], image2.shape[1]),
spacing_width,
image1.shape[-1],
)
else:
spacing_shape = (
image1.shape[0],
spacing_width,
max(image1.shape[2], image2.shape[2]),
image1.shape[-1],
)
spacing = torch.full(spacing_shape, 0.0, device=image1.device)
if isinstance(color_val, tuple):
for i, c in enumerate(color_val):
if i < spacing.shape[-1]:
spacing[..., i] = c
if spacing.shape[-1] == 4: # Add alpha
spacing[..., 3] = 1.0
else:
spacing[..., : min(3, spacing.shape[-1])] = color_val
if spacing.shape[-1] == 4:
spacing[..., 3] = 1.0
# Concatenate images
images = [image2, image1] if direction in ["left", "up"] else [image1, image2]
if spacing_width > 0:
images.insert(1, spacing)
concat_dim = 2 if direction in ["left", "right"] else 1
return (torch.cat(images, dim=concat_dim),)
class ResizeAndPadImage:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"image": ("IMAGE",),
"target_width": ("INT", {
"default": 512,
"min": 1,
"max": MAX_RESOLUTION,
"step": 1
}),
"target_height": ("INT", {
"default": 512,
"min": 1,
"max": MAX_RESOLUTION,
"step": 1
}),
"padding_color": (["white", "black"],),
"interpolation": (["area", "bicubic", "nearest-exact", "bilinear", "lanczos"],),
}
}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "resize_and_pad"
CATEGORY = "image/transform"
def resize_and_pad(self, image, target_width, target_height, padding_color, interpolation):
batch_size, orig_height, orig_width, channels = image.shape
scale_w = target_width / orig_width
scale_h = target_height / orig_height
scale = min(scale_w, scale_h)
new_width = int(orig_width * scale)
new_height = int(orig_height * scale)
image_permuted = image.permute(0, 3, 1, 2)
resized = comfy.utils.common_upscale(image_permuted, new_width, new_height, interpolation, "disabled")
pad_value = 0.0 if padding_color == "black" else 1.0
padded = torch.full(
(batch_size, channels, target_height, target_width),
pad_value,
dtype=image.dtype,
device=image.device
)
y_offset = (target_height - new_height) // 2
x_offset = (target_width - new_width) // 2
padded[:, :, y_offset:y_offset + new_height, x_offset:x_offset + new_width] = resized
output = padded.permute(0, 2, 3, 1)
return (output,)
class SaveSVGNode:
"""
Save SVG files on disk.
"""
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = ""
RETURN_TYPES = ()
DESCRIPTION = cleandoc(__doc__ or "") # Handle potential None value
FUNCTION = "save_svg"
CATEGORY = "image/save" # Changed
OUTPUT_NODE = True
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"svg": ("SVG",), # Changed
"filename_prefix": ("STRING", {"default": "svg/ComfyUI", "tooltip": "The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."})
},
"hidden": {
"prompt": "PROMPT",
"extra_pnginfo": "EXTRA_PNGINFO"
}
}
def save_svg(self, svg: SVG, filename_prefix="svg/ComfyUI", prompt=None, extra_pnginfo=None):
filename_prefix += self.prefix_append
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir)
results = list()
# Prepare metadata JSON
metadata_dict = {}
if prompt is not None:
metadata_dict["prompt"] = prompt
if extra_pnginfo is not None:
metadata_dict.update(extra_pnginfo)
# Convert metadata to JSON string
metadata_json = json.dumps(metadata_dict, indent=2) if metadata_dict else None
for batch_number, svg_bytes in enumerate(svg.data):
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
file = f"{filename_with_batch_num}_{counter:05}_.svg"
# Read SVG content
svg_bytes.seek(0)
svg_content = svg_bytes.read().decode('utf-8')
# Inject metadata if available
if metadata_json:
# Create metadata element with CDATA section
metadata_element = f""" <metadata>
<![CDATA[
{metadata_json}
]]>
</metadata>
"""
# Insert metadata after opening svg tag using regex with a replacement function
def replacement(match):
# match.group(1) contains the captured <svg> tag
return match.group(1) + '\n' + metadata_element
# Apply the substitution
svg_content = re.sub(r'(<svg[^>]*>)', replacement, svg_content, flags=re.UNICODE)
# Write the modified SVG to file
with open(os.path.join(full_output_folder, file), 'wb') as svg_file:
svg_file.write(svg_content.encode('utf-8'))
results.append({
"filename": file,
"subfolder": subfolder,
"type": self.type
})
counter += 1
return { "ui": { "images": results } }
class GetImageSize:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"image": (IO.IMAGE,),
},
"hidden": {
"unique_id": "UNIQUE_ID",
}
}
RETURN_TYPES = (IO.INT, IO.INT, IO.INT)
RETURN_NAMES = ("width", "height", "batch_size")
FUNCTION = "get_size"
CATEGORY = "image"
DESCRIPTION = """Returns width and height of the image, and passes it through unchanged."""
def get_size(self, image, unique_id=None) -> tuple[int, int]:
height = image.shape[1]
width = image.shape[2]
batch_size = image.shape[0]
# Send progress text to display size on the node
if unique_id:
PromptServer.instance.send_progress_text(f"width: {width}, height: {height}\n batch size: {batch_size}", unique_id)
return width, height, batch_size
class ImageRotate:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": (IO.IMAGE,),
"rotation": (["none", "90 degrees", "180 degrees", "270 degrees"],),
}}
RETURN_TYPES = (IO.IMAGE,)
FUNCTION = "rotate"
CATEGORY = "image/transform"
def rotate(self, image, rotation):
rotate_by = 0
if rotation.startswith("90"):
rotate_by = 1
elif rotation.startswith("180"):
rotate_by = 2
elif rotation.startswith("270"):
rotate_by = 3
image = torch.rot90(image, k=rotate_by, dims=[2, 1])
return (image,)
class ImageFlip:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": (IO.IMAGE,),
"flip_method": (["x-axis: vertically", "y-axis: horizontally"],),
}}
RETURN_TYPES = (IO.IMAGE,)
FUNCTION = "flip"
CATEGORY = "image/transform"
def flip(self, image, flip_method):
if flip_method.startswith("x"):
image = torch.flip(image, dims=[1])
elif flip_method.startswith("y"):
image = torch.flip(image, dims=[2])
return (image,)
class ImageScaleToMaxDimension:
upscale_methods = ["area", "lanczos", "bilinear", "nearest-exact", "bilinear", "bicubic"]
@classmethod
def INPUT_TYPES(s):
return {"required": {"image": ("IMAGE",),
"upscale_method": (s.upscale_methods,),
"largest_size": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1})}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "upscale"
CATEGORY = "image/upscaling"
def upscale(self, image, upscale_method, largest_size):
height = image.shape[1]
width = image.shape[2]
if height > width:
width = round((width / height) * largest_size)
height = largest_size
elif width > height:
height = round((height / width) * largest_size)
width = largest_size
else:
height = largest_size
width = largest_size
samples = image.movedim(-1, 1)
s = comfy.utils.common_upscale(samples, width, height, upscale_method, "disabled")
s = s.movedim(1, -1)
return (s,)
NODE_CLASS_MAPPINGS = {
"ImageCrop": ImageCrop,
"RepeatImageBatch": RepeatImageBatch,
"ImageFromBatch": ImageFromBatch,
"ImageAddNoise": ImageAddNoise,
"SaveAnimatedWEBP": SaveAnimatedWEBP,
"SaveAnimatedPNG": SaveAnimatedPNG,
"SaveSVGNode": SaveSVGNode,
"ImageStitch": ImageStitch,
"ResizeAndPadImage": ResizeAndPadImage,
"GetImageSize": GetImageSize,
"ImageRotate": ImageRotate,
"ImageFlip": ImageFlip,
"ImageScaleToMaxDimension": ImageScaleToMaxDimension,
}
@@ -0,0 +1,109 @@
import sys
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
class String(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveString",
display_name="String",
category="utils/primitive",
inputs=[
io.String.Input("value"),
],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, value: str) -> io.NodeOutput:
return io.NodeOutput(value)
class StringMultiline(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveStringMultiline",
display_name="String (Multiline)",
category="utils/primitive",
inputs=[
io.String.Input("value", multiline=True),
],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, value: str) -> io.NodeOutput:
return io.NodeOutput(value)
class Int(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveInt",
display_name="Int",
category="utils/primitive",
inputs=[
io.Int.Input("value", min=-sys.maxsize, max=sys.maxsize, control_after_generate=True),
],
outputs=[io.Int.Output()],
)
@classmethod
def execute(cls, value: int) -> io.NodeOutput:
return io.NodeOutput(value)
class Float(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveFloat",
display_name="Float",
category="utils/primitive",
inputs=[
io.Float.Input("value", min=-sys.maxsize, max=sys.maxsize),
],
outputs=[io.Float.Output()],
)
@classmethod
def execute(cls, value: float) -> io.NodeOutput:
return io.NodeOutput(value)
class Boolean(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveBoolean",
display_name="Boolean",
category="utils/primitive",
inputs=[
io.Boolean.Input("value"),
],
outputs=[io.Boolean.Output()],
)
@classmethod
def execute(cls, value: bool) -> io.NodeOutput:
return io.NodeOutput(value)
class PrimitivesExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
String,
StringMultiline,
Int,
Float,
Boolean,
]
async def comfy_entrypoint() -> PrimitivesExtension:
return PrimitivesExtension()
@@ -0,0 +1,212 @@
import folder_paths
import comfy.sd
import comfy.model_management
import nodes
import torch
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
from comfy_extras.nodes_slg import SkipLayerGuidanceDiT
class TripleCLIPLoader(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="TripleCLIPLoader",
category="advanced/loaders",
description="[Recipes]\n\nsd3: clip-l, clip-g, t5",
inputs=[
io.Combo.Input("clip_name1", options=folder_paths.get_filename_list("text_encoders")),
io.Combo.Input("clip_name2", options=folder_paths.get_filename_list("text_encoders")),
io.Combo.Input("clip_name3", options=folder_paths.get_filename_list("text_encoders")),
],
outputs=[
io.Clip.Output(),
],
)
@classmethod
def execute(cls, clip_name1, clip_name2, clip_name3) -> io.NodeOutput:
clip_path1 = folder_paths.get_full_path_or_raise("text_encoders", clip_name1)
clip_path2 = folder_paths.get_full_path_or_raise("text_encoders", clip_name2)
clip_path3 = folder_paths.get_full_path_or_raise("text_encoders", clip_name3)
clip = comfy.sd.load_clip(ckpt_paths=[clip_path1, clip_path2, clip_path3], embedding_directory=folder_paths.get_folder_paths("embeddings"))
return io.NodeOutput(clip)
load_clip = execute # TODO: remove
class EmptySD3LatentImage(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="EmptySD3LatentImage",
category="latent/sd3",
inputs=[
io.Int.Input("width", default=1024, min=16, max=nodes.MAX_RESOLUTION, step=16),
io.Int.Input("height", default=1024, min=16, max=nodes.MAX_RESOLUTION, step=16),
io.Int.Input("batch_size", default=1, min=1, max=4096),
],
outputs=[
io.Latent.Output(),
],
)
@classmethod
def execute(cls, width, height, batch_size=1) -> io.NodeOutput:
latent = torch.zeros([batch_size, 16, height // 8, width // 8], device=comfy.model_management.intermediate_device())
return io.NodeOutput({"samples":latent})
generate = execute # TODO: remove
class CLIPTextEncodeSD3(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="CLIPTextEncodeSD3",
category="advanced/conditioning",
inputs=[
io.Clip.Input("clip"),
io.String.Input("clip_l", multiline=True, dynamic_prompts=True),
io.String.Input("clip_g", multiline=True, dynamic_prompts=True),
io.String.Input("t5xxl", multiline=True, dynamic_prompts=True),
io.Combo.Input("empty_padding", options=["none", "empty_prompt"]),
],
outputs=[
io.Conditioning.Output(),
],
)
@classmethod
def execute(cls, clip, clip_l, clip_g, t5xxl, empty_padding) -> io.NodeOutput:
no_padding = empty_padding == "none"
tokens = clip.tokenize(clip_g)
if len(clip_g) == 0 and no_padding:
tokens["g"] = []
if len(clip_l) == 0 and no_padding:
tokens["l"] = []
else:
tokens["l"] = clip.tokenize(clip_l)["l"]
if len(t5xxl) == 0 and no_padding:
tokens["t5xxl"] = []
else:
tokens["t5xxl"] = clip.tokenize(t5xxl)["t5xxl"]
if len(tokens["l"]) != len(tokens["g"]):
empty = clip.tokenize("")
while len(tokens["l"]) < len(tokens["g"]):
tokens["l"] += empty["l"]
while len(tokens["l"]) > len(tokens["g"]):
tokens["g"] += empty["g"]
return io.NodeOutput(clip.encode_from_tokens_scheduled(tokens))
encode = execute # TODO: remove
class ControlNetApplySD3(io.ComfyNode):
@classmethod
def define_schema(cls) -> io.Schema:
return io.Schema(
node_id="ControlNetApplySD3",
display_name="Apply Controlnet with VAE",
category="conditioning/controlnet",
inputs=[
io.Conditioning.Input("positive"),
io.Conditioning.Input("negative"),
io.ControlNet.Input("control_net"),
io.Vae.Input("vae"),
io.Image.Input("image"),
io.Float.Input("strength", default=1.0, min=0.0, max=10.0, step=0.01),
io.Float.Input("start_percent", default=0.0, min=0.0, max=1.0, step=0.001),
io.Float.Input("end_percent", default=1.0, min=0.0, max=1.0, step=0.001),
],
outputs=[
io.Conditioning.Output(display_name="positive"),
io.Conditioning.Output(display_name="negative"),
],
is_deprecated=True,
)
@classmethod
def execute(cls, positive, negative, control_net, image, strength, start_percent, end_percent, vae=None) -> io.NodeOutput:
if strength == 0:
return io.NodeOutput(positive, negative)
control_hint = image.movedim(-1, 1)
cnets = {}
out = []
for conditioning in [positive, negative]:
c = []
for t in conditioning:
d = t[1].copy()
prev_cnet = d.get('control', None)
if prev_cnet in cnets:
c_net = cnets[prev_cnet]
else:
c_net = control_net.copy().set_cond_hint(control_hint, strength, (start_percent, end_percent),
vae=vae, extra_concat=[])
c_net.set_previous_controlnet(prev_cnet)
cnets[prev_cnet] = c_net
d['control'] = c_net
d['control_apply_to_uncond'] = False
n = [t[0], d]
c.append(n)
out.append(c)
return io.NodeOutput(out[0], out[1])
apply_controlnet = execute # TODO: remove
class SkipLayerGuidanceSD3(io.ComfyNode):
'''
Enhance guidance towards detailed dtructure by having another set of CFG negative with skipped layers.
Inspired by Perturbed Attention Guidance (https://arxiv.org/abs/2403.17377)
Experimental implementation by Dango233@StabilityAI.
'''
@classmethod
def define_schema(cls):
return io.Schema(
node_id="SkipLayerGuidanceSD3",
category="advanced/guidance",
description="Generic version of SkipLayerGuidance node that can be used on every DiT model.",
inputs=[
io.Model.Input("model"),
io.String.Input("layers", default="7, 8, 9", multiline=False),
io.Float.Input("scale", default=3.0, min=0.0, max=10.0, step=0.1),
io.Float.Input("start_percent", default=0.01, min=0.0, max=1.0, step=0.001),
io.Float.Input("end_percent", default=0.15, min=0.0, max=1.0, step=0.001),
],
outputs=[
io.Model.Output(),
],
is_experimental=True,
)
@classmethod
def execute(cls, model, layers, scale, start_percent, end_percent) -> io.NodeOutput:
return SkipLayerGuidanceDiT().execute(model=model, scale=scale, start_percent=start_percent, end_percent=end_percent, double_layers=layers)
skip_guidance_sd3 = execute # TODO: remove
class SD3Extension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
TripleCLIPLoader,
EmptySD3LatentImage,
CLIPTextEncodeSD3,
ControlNetApplySD3,
SkipLayerGuidanceSD3,
]
async def comfy_entrypoint() -> SD3Extension:
return SD3Extension()
@@ -0,0 +1,385 @@
import re
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
class StringConcatenate(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringConcatenate",
display_name="Concatenate",
category="utils/string",
inputs=[
io.String.Input("string_a", multiline=True),
io.String.Input("string_b", multiline=True),
io.String.Input("delimiter", multiline=False, default=""),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string_a, string_b, delimiter):
return io.NodeOutput(delimiter.join((string_a, string_b)))
class StringSubstring(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringSubstring",
display_name="Substring",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.Int.Input("start"),
io.Int.Input("end"),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, start, end):
return io.NodeOutput(string[start:end])
class StringLength(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringLength",
display_name="Length",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
],
outputs=[
io.Int.Output(display_name="length"),
]
)
@classmethod
def execute(cls, string):
return io.NodeOutput(len(string))
class CaseConverter(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="CaseConverter",
display_name="Case Converter",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.Combo.Input("mode", options=["UPPERCASE", "lowercase", "Capitalize", "Title Case"]),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, mode):
if mode == "UPPERCASE":
result = string.upper()
elif mode == "lowercase":
result = string.lower()
elif mode == "Capitalize":
result = string.capitalize()
elif mode == "Title Case":
result = string.title()
else:
result = string
return io.NodeOutput(result)
class StringTrim(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringTrim",
display_name="Trim",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.Combo.Input("mode", options=["Both", "Left", "Right"]),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, mode):
if mode == "Both":
result = string.strip()
elif mode == "Left":
result = string.lstrip()
elif mode == "Right":
result = string.rstrip()
else:
result = string
return io.NodeOutput(result)
class StringReplace(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringReplace",
display_name="Replace",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("find", multiline=True),
io.String.Input("replace", multiline=True),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, find, replace):
return io.NodeOutput(string.replace(find, replace))
class StringContains(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringContains",
display_name="Contains",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("substring", multiline=True),
io.Boolean.Input("case_sensitive", default=True),
],
outputs=[
io.Boolean.Output(display_name="contains"),
]
)
@classmethod
def execute(cls, string, substring, case_sensitive):
if case_sensitive:
contains = substring in string
else:
contains = substring.lower() in string.lower()
return io.NodeOutput(contains)
class StringCompare(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringCompare",
display_name="Compare",
category="utils/string",
inputs=[
io.String.Input("string_a", multiline=True),
io.String.Input("string_b", multiline=True),
io.Combo.Input("mode", options=["Starts With", "Ends With", "Equal"]),
io.Boolean.Input("case_sensitive", default=True),
],
outputs=[
io.Boolean.Output(),
]
)
@classmethod
def execute(cls, string_a, string_b, mode, case_sensitive):
if case_sensitive:
a = string_a
b = string_b
else:
a = string_a.lower()
b = string_b.lower()
if mode == "Equal":
return io.NodeOutput(a == b)
elif mode == "Starts With":
return io.NodeOutput(a.startswith(b))
elif mode == "Ends With":
return io.NodeOutput(a.endswith(b))
class RegexMatch(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexMatch",
display_name="Regex Match",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.Boolean.Input("case_insensitive", default=True),
io.Boolean.Input("multiline", default=False),
io.Boolean.Input("dotall", default=False),
],
outputs=[
io.Boolean.Output(display_name="matches"),
]
)
@classmethod
def execute(cls, string, regex_pattern, case_insensitive, multiline, dotall):
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
try:
match = re.search(regex_pattern, string, flags)
result = match is not None
except re.error:
result = False
return io.NodeOutput(result)
class RegexExtract(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexExtract",
display_name="Regex Extract",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.Combo.Input("mode", options=["First Match", "All Matches", "First Group", "All Groups"]),
io.Boolean.Input("case_insensitive", default=True),
io.Boolean.Input("multiline", default=False),
io.Boolean.Input("dotall", default=False),
io.Int.Input("group_index", default=1, min=0, max=100),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, regex_pattern, mode, case_insensitive, multiline, dotall, group_index):
join_delimiter = "\n"
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
try:
if mode == "First Match":
match = re.search(regex_pattern, string, flags)
if match:
result = match.group(0)
else:
result = ""
elif mode == "All Matches":
matches = re.findall(regex_pattern, string, flags)
if matches:
if isinstance(matches[0], tuple):
result = join_delimiter.join([m[0] for m in matches])
else:
result = join_delimiter.join(matches)
else:
result = ""
elif mode == "First Group":
match = re.search(regex_pattern, string, flags)
if match and len(match.groups()) >= group_index:
result = match.group(group_index)
else:
result = ""
elif mode == "All Groups":
matches = re.finditer(regex_pattern, string, flags)
results = []
for match in matches:
if match.groups() and len(match.groups()) >= group_index:
results.append(match.group(group_index))
result = join_delimiter.join(results)
else:
result = ""
except re.error:
result = ""
return io.NodeOutput(result)
class RegexReplace(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexReplace",
display_name="Regex Replace",
category="utils/string",
description="Find and replace text using regex patterns.",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.String.Input("replace", multiline=True),
io.Boolean.Input("case_insensitive", default=True, optional=True),
io.Boolean.Input("multiline", default=False, optional=True),
io.Boolean.Input("dotall", default=False, optional=True, tooltip="When enabled, the dot (.) character will match any character including newline characters. When disabled, dots won't match newlines."),
io.Int.Input("count", default=0, min=0, max=100, optional=True, tooltip="Maximum number of replacements to make. Set to 0 to replace all occurrences (default). Set to 1 to replace only the first match, 2 for the first two matches, etc."),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, regex_pattern, replace, case_insensitive=True, multiline=False, dotall=False, count=0):
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
result = re.sub(regex_pattern, replace, string, count=count, flags=flags)
return io.NodeOutput(result)
class StringExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
StringConcatenate,
StringSubstring,
StringLength,
CaseConverter,
StringTrim,
StringReplace,
StringContains,
StringCompare,
RegexMatch,
RegexExtract,
RegexReplace,
]
async def comfy_entrypoint() -> StringExtension:
return StringExtension()
@@ -0,0 +1,109 @@
import logging
from spandrel import ModelLoader, ImageModelDescriptor
from comfy import model_management
import torch
import comfy.utils
import folder_paths
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
try:
from spandrel_extra_arches import EXTRA_REGISTRY
from spandrel import MAIN_REGISTRY
MAIN_REGISTRY.add(*EXTRA_REGISTRY)
logging.info("Successfully imported spandrel_extra_arches: support for non commercial upscale models.")
except:
pass
class UpscaleModelLoader(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="UpscaleModelLoader",
display_name="Load Upscale Model",
category="loaders",
inputs=[
io.Combo.Input("model_name", options=folder_paths.get_filename_list("upscale_models")),
],
outputs=[
io.UpscaleModel.Output(),
],
)
@classmethod
def execute(cls, model_name) -> io.NodeOutput:
model_path = folder_paths.get_full_path_or_raise("upscale_models", model_name)
sd = comfy.utils.load_torch_file(model_path, safe_load=True)
if "module.layers.0.residual_group.blocks.0.norm1.weight" in sd:
sd = comfy.utils.state_dict_prefix_replace(sd, {"module.":""})
out = ModelLoader().load_from_state_dict(sd).eval()
if not isinstance(out, ImageModelDescriptor):
raise Exception("Upscale model must be a single-image model.")
return io.NodeOutput(out)
load_model = execute # TODO: remove
class ImageUpscaleWithModel(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ImageUpscaleWithModel",
display_name="Upscale Image (using Model)",
category="image/upscaling",
inputs=[
io.UpscaleModel.Input("upscale_model"),
io.Image.Input("image"),
],
outputs=[
io.Image.Output(),
],
)
@classmethod
def execute(cls, upscale_model, image) -> io.NodeOutput:
device = model_management.get_torch_device()
memory_required = model_management.module_size(upscale_model.model)
memory_required += (512 * 512 * 3) * image.element_size() * max(upscale_model.scale, 1.0) * 384.0 #The 384.0 is an estimate of how much some of these models take, TODO: make it more accurate
memory_required += image.nelement() * image.element_size()
model_management.free_memory(memory_required, device)
upscale_model.to(device)
in_img = image.movedim(-1,-3).to(device)
tile = 512
overlap = 32
oom = True
while oom:
try:
steps = in_img.shape[0] * comfy.utils.get_tiled_scale_steps(in_img.shape[3], in_img.shape[2], tile_x=tile, tile_y=tile, overlap=overlap)
pbar = comfy.utils.ProgressBar(steps)
s = comfy.utils.tiled_scale(in_img, lambda a: upscale_model(a), tile_x=tile, tile_y=tile, overlap=overlap, upscale_amount=upscale_model.scale, pbar=pbar)
oom = False
except model_management.OOM_EXCEPTION as e:
tile //= 2
if tile < 128:
raise e
upscale_model.to("cpu")
s = torch.clamp(s.movedim(-3,-1), min=0, max=1.0)
return io.NodeOutput(s)
upscale = execute # TODO: remove
class UpscaleModelExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
UpscaleModelLoader,
ImageUpscaleWithModel,
]
async def comfy_entrypoint() -> UpscaleModelExtension:
return UpscaleModelExtension()
@@ -0,0 +1,431 @@
from __future__ import annotations
import os
import time
import mimetypes
import logging
from typing import Literal, List
from collections.abc import Collection
from comfy.cli_args import args
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {}
# --base-directory - Resets all default paths configured in folder_paths with a new base path
if args.base_directory:
base_path = os.path.abspath(args.base_directory)
else:
base_path = os.path.dirname(os.path.realpath(__file__))
models_dir = os.path.join(base_path, "models")
folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions)
folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"])
folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions)
folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions)
folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions)
folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions)
folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions)
folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions)
folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions)
folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"])
folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions)
folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions)
folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions)
folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions)
folder_names_and_paths["latent_upscale_models"] = ([os.path.join(models_dir, "latent_upscale_models")], supported_pt_extensions)
folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set())
folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions)
folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions)
folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
folder_names_and_paths["model_patches"] = ([os.path.join(models_dir, "model_patches")], supported_pt_extensions)
folder_names_and_paths["audio_encoders"] = ([os.path.join(models_dir, "audio_encoders")], supported_pt_extensions)
output_directory = os.path.join(base_path, "output")
temp_directory = os.path.join(base_path, "temp")
input_directory = os.path.join(base_path, "input")
user_directory = os.path.join(base_path, "user")
filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
class CacheHelper:
"""
Helper class for managing file list cache data.
"""
def __init__(self):
self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
self.active = False
def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]:
if not self.active:
return default
return self.cache.get(key, default)
def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None:
if self.active:
self.cache[key] = value
def clear(self):
self.cache.clear()
def __enter__(self):
self.active = True
return self
def __exit__(self, exc_type, exc_value, traceback):
self.active = False
self.clear()
cache_helper = CacheHelper()
extension_mimetypes_cache = {
"webp" : "image",
"fbx" : "model",
}
def map_legacy(folder_name: str) -> str:
legacy = {"unet": "diffusion_models",
"clip": "text_encoders"}
return legacy.get(folder_name, folder_name)
if not os.path.exists(input_directory):
try:
os.makedirs(input_directory)
except:
logging.error("Failed to create input directory")
def set_output_directory(output_dir: str) -> None:
global output_directory
output_directory = output_dir
def set_temp_directory(temp_dir: str) -> None:
global temp_directory
temp_directory = temp_dir
def set_input_directory(input_dir: str) -> None:
global input_directory
input_directory = input_dir
def get_output_directory() -> str:
global output_directory
return output_directory
def get_temp_directory() -> str:
global temp_directory
return temp_directory
def get_input_directory() -> str:
global input_directory
return input_directory
def get_user_directory() -> str:
return user_directory
def set_user_directory(user_dir: str) -> None:
global user_directory
user_directory = user_dir
#NOTE: used in http server so don't put folders that should not be accessed remotely
def get_directory_by_type(type_name: str) -> str | None:
if type_name == "output":
return get_output_directory()
if type_name == "temp":
return get_temp_directory()
if type_name == "input":
return get_input_directory()
return None
def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]:
"""
Example:
files = os.listdir(folder_paths.get_input_directory())
videos = filter_files_content_types(files, ["video"])
Note:
- 'model' in MIME context refers to 3D models, not files containing trained weights and parameters
"""
global extension_mimetypes_cache
result = []
for file in files:
extension = file.split('.')[-1]
if extension not in extension_mimetypes_cache:
mime_type, _ = mimetypes.guess_type(file, strict=False)
if not mime_type:
continue
content_type = mime_type.split('/')[0]
extension_mimetypes_cache[extension] = content_type
else:
content_type = extension_mimetypes_cache[extension]
if content_type in content_types:
result.append(file)
return result
# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format
# otherwise use default_path as base_dir
def annotated_filepath(name: str) -> tuple[str, str | None]:
if name.endswith("[output]"):
base_dir = get_output_directory()
name = name[:-9]
elif name.endswith("[input]"):
base_dir = get_input_directory()
name = name[:-8]
elif name.endswith("[temp]"):
base_dir = get_temp_directory()
name = name[:-7]
else:
return name, None
return name, base_dir
def get_annotated_filepath(name: str, default_dir: str | None=None) -> str:
name, base_dir = annotated_filepath(name)
if base_dir is None:
if default_dir is not None:
base_dir = default_dir
else:
base_dir = get_input_directory() # fallback path
return os.path.join(base_dir, name)
def exists_annotated_filepath(name) -> bool:
name, base_dir = annotated_filepath(name)
if base_dir is None:
base_dir = get_input_directory() # fallback path
filepath = os.path.join(base_dir, name)
return os.path.exists(filepath)
def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None:
global folder_names_and_paths
folder_name = map_legacy(folder_name)
if folder_name in folder_names_and_paths:
paths, _exts = folder_names_and_paths[folder_name]
if full_folder_path in paths:
if is_default and paths[0] != full_folder_path:
# If the path to the folder is not the first in the list, move it to the beginning.
paths.remove(full_folder_path)
paths.insert(0, full_folder_path)
else:
if is_default:
paths.insert(0, full_folder_path)
else:
paths.append(full_folder_path)
else:
folder_names_and_paths[folder_name] = ([full_folder_path], set())
def get_folder_paths(folder_name: str) -> list[str]:
folder_name = map_legacy(folder_name)
return folder_names_and_paths[folder_name][0][:]
def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]:
if not os.path.isdir(directory):
return [], {}
if excluded_dir_names is None:
excluded_dir_names = []
result = []
dirs = {}
# Attempt to add the initial directory to dirs with error handling
try:
dirs[directory] = os.path.getmtime(directory)
except FileNotFoundError:
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
logging.debug("recursive file list on directory {}".format(directory))
dirpath: str
subdirs: list[str]
filenames: list[str]
for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True):
subdirs[:] = [d for d in subdirs if d not in excluded_dir_names]
for file_name in filenames:
try:
relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory)
result.append(relative_path)
except:
logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.")
continue
for d in subdirs:
path: str = os.path.join(dirpath, d)
try:
dirs[path] = os.path.getmtime(path)
except FileNotFoundError:
logging.warning(f"Warning: Unable to access {path}. Skipping this path.")
continue
logging.debug("found {} files".format(len(result)))
return result, dirs
def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]:
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
def get_full_path(folder_name: str, filename: str) -> str | None:
"""
Get the full path of a file in a folder, has to be a file
"""
global folder_names_and_paths
folder_name = map_legacy(folder_name)
if folder_name not in folder_names_and_paths:
return None
folders = folder_names_and_paths[folder_name]
filename = os.path.relpath(os.path.join("/", filename), "/")
for x in folders[0]:
full_path = os.path.join(x, filename)
if os.path.isfile(full_path):
return full_path
elif os.path.islink(full_path):
logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))
return None
def get_full_path_or_raise(folder_name: str, filename: str) -> str:
"""
Get the full path of a file in a folder, has to be a file
"""
full_path = get_full_path(folder_name, filename)
if full_path is None:
raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.")
return full_path
def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]:
folder_name = map_legacy(folder_name)
global folder_names_and_paths
output_list = set()
folders = folder_names_and_paths[folder_name]
output_folders = {}
for x in folders[0]:
files, folders_all = recursive_search(x, excluded_dir_names=[".git"])
output_list.update(filter_files_extensions(files, folders[1]))
output_folders = {**output_folders, **folders_all}
return sorted(list(output_list)), output_folders, time.perf_counter()
def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None:
strong_cache = cache_helper.get(folder_name)
if strong_cache is not None:
return strong_cache
global filename_list_cache
global folder_names_and_paths
folder_name = map_legacy(folder_name)
if folder_name not in filename_list_cache:
return None
out = filename_list_cache[folder_name]
for x in out[1]:
time_modified = out[1][x]
folder = x
if os.path.getmtime(folder) != time_modified:
return None
folders = folder_names_and_paths[folder_name]
for x in folders[0]:
if os.path.isdir(x):
if x not in out[1]:
return None
return out
def get_filename_list(folder_name: str) -> list[str]:
folder_name = map_legacy(folder_name)
out = cached_filename_list_(folder_name)
if out is None:
out = get_filename_list_(folder_name)
global filename_list_cache
filename_list_cache[folder_name] = out
cache_helper.set(folder_name, out)
return list(out[0])
def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]:
def map_filename(filename: str) -> tuple[int, str]:
prefix_len = len(os.path.basename(filename_prefix))
prefix = filename[:prefix_len + 1]
try:
digits = int(filename[prefix_len + 1:].split('_')[0])
except:
digits = 0
return digits, prefix
def compute_vars(input: str, image_width: int, image_height: int) -> str:
input = input.replace("%width%", str(image_width))
input = input.replace("%height%", str(image_height))
now = time.localtime()
input = input.replace("%year%", str(now.tm_year))
input = input.replace("%month%", str(now.tm_mon).zfill(2))
input = input.replace("%day%", str(now.tm_mday).zfill(2))
input = input.replace("%hour%", str(now.tm_hour).zfill(2))
input = input.replace("%minute%", str(now.tm_min).zfill(2))
input = input.replace("%second%", str(now.tm_sec).zfill(2))
return input
if "%" in filename_prefix:
filename_prefix = compute_vars(filename_prefix, image_width, image_height)
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
filename = os.path.basename(os.path.normpath(filename_prefix))
full_output_folder = os.path.join(output_dir, subfolder)
if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
err = "**** ERROR: Saving image outside the output folder is not allowed." + \
"\n full_output_folder: " + os.path.abspath(full_output_folder) + \
"\n output_dir: " + output_dir + \
"\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder)))
logging.error(err)
raise Exception(err)
try:
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
except ValueError:
counter = 1
except FileNotFoundError:
os.makedirs(full_output_folder, exist_ok=True)
counter = 1
return full_output_folder, filename, counter, subfolder, filename_prefix
def get_input_subfolders() -> list[str]:
"""Returns a list of all subfolder paths in the input directory, recursively.
Returns:
List of folder paths relative to the input directory, excluding the root directory
"""
input_dir = get_input_directory()
folders = []
try:
if not os.path.exists(input_dir):
return []
for root, dirs, _ in os.walk(input_dir):
rel_path = os.path.relpath(root, input_dir)
if rel_path != ".": # Only include non-root directories
# Normalize path separators to forward slashes
folders.append(rel_path.replace(os.sep, '/'))
return sorted(folders)
except FileNotFoundError:
return []
File diff suppressed because it is too large Load Diff
@@ -0,0 +1 @@
[]
@@ -0,0 +1,6 @@
tree ece7feba968429f78badd90252bc7170f389df93
parent 028e17dd7a5e54acc8f5417a6faad2eec196f0cc
author comfyanonymous <comfyanonymous@protonmail.com> 1764738129 -0500
committer comfyanonymous <comfyanonymous@protonmail.com> 1764738129 -0500
ComfyUI v0.3.77
@@ -0,0 +1,5 @@
{
"ref": "v0.3.77",
"commit": "59afc3984868289f808d02fa5cd180edfb2de240",
"object": "59afc3984868289f808d02fa5cd180edfb2de240"
}
@@ -0,0 +1,6 @@
tree ece7feba968429f78badd90252bc7170f389df93
parent 028e17dd7a5e54acc8f5417a6faad2eec196f0cc
author comfyanonymous <comfyanonymous@protonmail.com> 1764738129 -0500
committer comfyanonymous <comfyanonymous@protonmail.com> 1764738129 -0500
ComfyUI v0.3.77
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
@@ -0,0 +1,674 @@
from __future__ import annotations
import nodes
import folder_paths
from comfy.cli_args import args
from PIL import Image
from PIL.PngImagePlugin import PngInfo
import numpy as np
import json
import os
import re
from io import BytesIO
from inspect import cleandoc
import torch
import comfy.utils
from comfy.comfy_types import FileLocator, IO
from server import PromptServer
MAX_RESOLUTION = nodes.MAX_RESOLUTION
class ImageCrop:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"width": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}),
"height": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}),
"x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}),
"y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "crop"
CATEGORY = "image/transform"
def crop(self, image, width, height, x, y):
x = min(x, image.shape[2] - 1)
y = min(y, image.shape[1] - 1)
to_x = width + x
to_y = height + y
img = image[:,y:to_y, x:to_x, :]
return (img,)
class RepeatImageBatch:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"amount": ("INT", {"default": 1, "min": 1, "max": 4096}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "repeat"
CATEGORY = "image/batch"
def repeat(self, image, amount):
s = image.repeat((amount, 1,1,1))
return (s,)
class ImageFromBatch:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"batch_index": ("INT", {"default": 0, "min": 0, "max": 4095}),
"length": ("INT", {"default": 1, "min": 1, "max": 4096}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "frombatch"
CATEGORY = "image/batch"
def frombatch(self, image, batch_index, length):
s_in = image
batch_index = min(s_in.shape[0] - 1, batch_index)
length = min(s_in.shape[0] - batch_index, length)
s = s_in[batch_index:batch_index + length].clone()
return (s,)
class ImageAddNoise:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff, "control_after_generate": True, "tooltip": "The random seed used for creating the noise."}),
"strength": ("FLOAT", {"default": 0.5, "min": 0.0, "max": 1.0, "step": 0.01}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "repeat"
CATEGORY = "image"
def repeat(self, image, seed, strength):
generator = torch.manual_seed(seed)
s = torch.clip((image + strength * torch.randn(image.size(), generator=generator, device="cpu").to(image)), min=0.0, max=1.0)
return (s,)
class SaveAnimatedWEBP:
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = ""
methods = {"default": 4, "fastest": 0, "slowest": 6}
@classmethod
def INPUT_TYPES(s):
return {"required":
{"images": ("IMAGE", ),
"filename_prefix": ("STRING", {"default": "ComfyUI"}),
"fps": ("FLOAT", {"default": 6.0, "min": 0.01, "max": 1000.0, "step": 0.01}),
"lossless": ("BOOLEAN", {"default": True}),
"quality": ("INT", {"default": 80, "min": 0, "max": 100}),
"method": (list(s.methods.keys()),),
# "num_frames": ("INT", {"default": 0, "min": 0, "max": 8192}),
},
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"},
}
RETURN_TYPES = ()
FUNCTION = "save_images"
OUTPUT_NODE = True
CATEGORY = "image/animation"
def save_images(self, images, fps, filename_prefix, lossless, quality, method, num_frames=0, prompt=None, extra_pnginfo=None):
method = self.methods.get(method)
filename_prefix += self.prefix_append
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0])
results: list[FileLocator] = []
pil_images = []
for image in images:
i = 255. * image.cpu().numpy()
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
pil_images.append(img)
metadata = pil_images[0].getexif()
if not args.disable_metadata:
if prompt is not None:
metadata[0x0110] = "prompt:{}".format(json.dumps(prompt))
if extra_pnginfo is not None:
inital_exif = 0x010f
for x in extra_pnginfo:
metadata[inital_exif] = "{}:{}".format(x, json.dumps(extra_pnginfo[x]))
inital_exif -= 1
if num_frames == 0:
num_frames = len(pil_images)
c = len(pil_images)
for i in range(0, c, num_frames):
file = f"{filename}_{counter:05}_.webp"
pil_images[i].save(os.path.join(full_output_folder, file), save_all=True, duration=int(1000.0/fps), append_images=pil_images[i + 1:i + num_frames], exif=metadata, lossless=lossless, quality=quality, method=method)
results.append({
"filename": file,
"subfolder": subfolder,
"type": self.type
})
counter += 1
animated = num_frames != 1
return { "ui": { "images": results, "animated": (animated,) } }
class SaveAnimatedPNG:
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = ""
@classmethod
def INPUT_TYPES(s):
return {"required":
{"images": ("IMAGE", ),
"filename_prefix": ("STRING", {"default": "ComfyUI"}),
"fps": ("FLOAT", {"default": 6.0, "min": 0.01, "max": 1000.0, "step": 0.01}),
"compress_level": ("INT", {"default": 4, "min": 0, "max": 9})
},
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"},
}
RETURN_TYPES = ()
FUNCTION = "save_images"
OUTPUT_NODE = True
CATEGORY = "image/animation"
def save_images(self, images, fps, compress_level, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None):
filename_prefix += self.prefix_append
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0])
results = list()
pil_images = []
for image in images:
i = 255. * image.cpu().numpy()
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
pil_images.append(img)
metadata = None
if not args.disable_metadata:
metadata = PngInfo()
if prompt is not None:
metadata.add(b"comf", "prompt".encode("latin-1", "strict") + b"\0" + json.dumps(prompt).encode("latin-1", "strict"), after_idat=True)
if extra_pnginfo is not None:
for x in extra_pnginfo:
metadata.add(b"comf", x.encode("latin-1", "strict") + b"\0" + json.dumps(extra_pnginfo[x]).encode("latin-1", "strict"), after_idat=True)
file = f"{filename}_{counter:05}_.png"
pil_images[0].save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=compress_level, save_all=True, duration=int(1000.0/fps), append_images=pil_images[1:])
results.append({
"filename": file,
"subfolder": subfolder,
"type": self.type
})
return { "ui": { "images": results, "animated": (True,)} }
class SVG:
"""
Stores SVG representations via a list of BytesIO objects.
"""
def __init__(self, data: list[BytesIO]):
self.data = data
def combine(self, other: 'SVG') -> 'SVG':
return SVG(self.data + other.data)
@staticmethod
def combine_all(svgs: list['SVG']) -> 'SVG':
all_svgs_list: list[BytesIO] = []
for svg_item in svgs:
all_svgs_list.extend(svg_item.data)
return SVG(all_svgs_list)
class ImageStitch:
"""Upstreamed from https://github.com/kijai/ComfyUI-KJNodes"""
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"image1": ("IMAGE",),
"direction": (["right", "down", "left", "up"], {"default": "right"}),
"match_image_size": ("BOOLEAN", {"default": True}),
"spacing_width": (
"INT",
{"default": 0, "min": 0, "max": 1024, "step": 2},
),
"spacing_color": (
["white", "black", "red", "green", "blue"],
{"default": "white"},
),
},
"optional": {
"image2": ("IMAGE",),
},
}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "stitch"
CATEGORY = "image/transform"
DESCRIPTION = """
Stitches image2 to image1 in the specified direction.
If image2 is not provided, returns image1 unchanged.
Optional spacing can be added between images.
"""
def stitch(
self,
image1,
direction,
match_image_size,
spacing_width,
spacing_color,
image2=None,
):
if image2 is None:
return (image1,)
# Handle batch size differences
if image1.shape[0] != image2.shape[0]:
max_batch = max(image1.shape[0], image2.shape[0])
if image1.shape[0] < max_batch:
image1 = torch.cat(
[image1, image1[-1:].repeat(max_batch - image1.shape[0], 1, 1, 1)]
)
if image2.shape[0] < max_batch:
image2 = torch.cat(
[image2, image2[-1:].repeat(max_batch - image2.shape[0], 1, 1, 1)]
)
# Match image sizes if requested
if match_image_size:
h1, w1 = image1.shape[1:3]
h2, w2 = image2.shape[1:3]
aspect_ratio = w2 / h2
if direction in ["left", "right"]:
target_h, target_w = h1, int(h1 * aspect_ratio)
else: # up, down
target_w, target_h = w1, int(w1 / aspect_ratio)
image2 = comfy.utils.common_upscale(
image2.movedim(-1, 1), target_w, target_h, "lanczos", "disabled"
).movedim(1, -1)
color_map = {
"white": 1.0,
"black": 0.0,
"red": (1.0, 0.0, 0.0),
"green": (0.0, 1.0, 0.0),
"blue": (0.0, 0.0, 1.0),
}
color_val = color_map[spacing_color]
# When not matching sizes, pad to align non-concat dimensions
if not match_image_size:
h1, w1 = image1.shape[1:3]
h2, w2 = image2.shape[1:3]
pad_value = 0.0
if not isinstance(color_val, tuple):
pad_value = color_val
if direction in ["left", "right"]:
# For horizontal concat, pad heights to match
if h1 != h2:
target_h = max(h1, h2)
if h1 < target_h:
pad_h = target_h - h1
pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2
image1 = torch.nn.functional.pad(image1, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)
if h2 < target_h:
pad_h = target_h - h2
pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2
image2 = torch.nn.functional.pad(image2, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)
else: # up, down
# For vertical concat, pad widths to match
if w1 != w2:
target_w = max(w1, w2)
if w1 < target_w:
pad_w = target_w - w1
pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2
image1 = torch.nn.functional.pad(image1, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)
if w2 < target_w:
pad_w = target_w - w2
pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2
image2 = torch.nn.functional.pad(image2, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)
# Ensure same number of channels
if image1.shape[-1] != image2.shape[-1]:
max_channels = max(image1.shape[-1], image2.shape[-1])
if image1.shape[-1] < max_channels:
image1 = torch.cat(
[
image1,
torch.ones(
*image1.shape[:-1],
max_channels - image1.shape[-1],
device=image1.device,
),
],
dim=-1,
)
if image2.shape[-1] < max_channels:
image2 = torch.cat(
[
image2,
torch.ones(
*image2.shape[:-1],
max_channels - image2.shape[-1],
device=image2.device,
),
],
dim=-1,
)
# Add spacing if specified
if spacing_width > 0:
spacing_width = spacing_width + (spacing_width % 2) # Ensure even
if direction in ["left", "right"]:
spacing_shape = (
image1.shape[0],
max(image1.shape[1], image2.shape[1]),
spacing_width,
image1.shape[-1],
)
else:
spacing_shape = (
image1.shape[0],
spacing_width,
max(image1.shape[2], image2.shape[2]),
image1.shape[-1],
)
spacing = torch.full(spacing_shape, 0.0, device=image1.device)
if isinstance(color_val, tuple):
for i, c in enumerate(color_val):
if i < spacing.shape[-1]:
spacing[..., i] = c
if spacing.shape[-1] == 4: # Add alpha
spacing[..., 3] = 1.0
else:
spacing[..., : min(3, spacing.shape[-1])] = color_val
if spacing.shape[-1] == 4:
spacing[..., 3] = 1.0
# Concatenate images
images = [image2, image1] if direction in ["left", "up"] else [image1, image2]
if spacing_width > 0:
images.insert(1, spacing)
concat_dim = 2 if direction in ["left", "right"] else 1
return (torch.cat(images, dim=concat_dim),)
class ResizeAndPadImage:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"image": ("IMAGE",),
"target_width": ("INT", {
"default": 512,
"min": 1,
"max": MAX_RESOLUTION,
"step": 1
}),
"target_height": ("INT", {
"default": 512,
"min": 1,
"max": MAX_RESOLUTION,
"step": 1
}),
"padding_color": (["white", "black"],),
"interpolation": (["area", "bicubic", "nearest-exact", "bilinear", "lanczos"],),
}
}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "resize_and_pad"
CATEGORY = "image/transform"
def resize_and_pad(self, image, target_width, target_height, padding_color, interpolation):
batch_size, orig_height, orig_width, channels = image.shape
scale_w = target_width / orig_width
scale_h = target_height / orig_height
scale = min(scale_w, scale_h)
new_width = int(orig_width * scale)
new_height = int(orig_height * scale)
image_permuted = image.permute(0, 3, 1, 2)
resized = comfy.utils.common_upscale(image_permuted, new_width, new_height, interpolation, "disabled")
pad_value = 0.0 if padding_color == "black" else 1.0
padded = torch.full(
(batch_size, channels, target_height, target_width),
pad_value,
dtype=image.dtype,
device=image.device
)
y_offset = (target_height - new_height) // 2
x_offset = (target_width - new_width) // 2
padded[:, :, y_offset:y_offset + new_height, x_offset:x_offset + new_width] = resized
output = padded.permute(0, 2, 3, 1)
return (output,)
class SaveSVGNode:
"""
Save SVG files on disk.
"""
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = ""
RETURN_TYPES = ()
DESCRIPTION = cleandoc(__doc__ or "") # Handle potential None value
FUNCTION = "save_svg"
CATEGORY = "image/save" # Changed
OUTPUT_NODE = True
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"svg": ("SVG",), # Changed
"filename_prefix": ("STRING", {"default": "svg/ComfyUI", "tooltip": "The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."})
},
"hidden": {
"prompt": "PROMPT",
"extra_pnginfo": "EXTRA_PNGINFO"
}
}
def save_svg(self, svg: SVG, filename_prefix="svg/ComfyUI", prompt=None, extra_pnginfo=None):
filename_prefix += self.prefix_append
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir)
results = list()
# Prepare metadata JSON
metadata_dict = {}
if prompt is not None:
metadata_dict["prompt"] = prompt
if extra_pnginfo is not None:
metadata_dict.update(extra_pnginfo)
# Convert metadata to JSON string
metadata_json = json.dumps(metadata_dict, indent=2) if metadata_dict else None
for batch_number, svg_bytes in enumerate(svg.data):
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
file = f"{filename_with_batch_num}_{counter:05}_.svg"
# Read SVG content
svg_bytes.seek(0)
svg_content = svg_bytes.read().decode('utf-8')
# Inject metadata if available
if metadata_json:
# Create metadata element with CDATA section
metadata_element = f""" <metadata>
<![CDATA[
{metadata_json}
]]>
</metadata>
"""
# Insert metadata after opening svg tag using regex with a replacement function
def replacement(match):
# match.group(1) contains the captured <svg> tag
return match.group(1) + '\n' + metadata_element
# Apply the substitution
svg_content = re.sub(r'(<svg[^>]*>)', replacement, svg_content, flags=re.UNICODE)
# Write the modified SVG to file
with open(os.path.join(full_output_folder, file), 'wb') as svg_file:
svg_file.write(svg_content.encode('utf-8'))
results.append({
"filename": file,
"subfolder": subfolder,
"type": self.type
})
counter += 1
return { "ui": { "images": results } }
class GetImageSize:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"image": (IO.IMAGE,),
},
"hidden": {
"unique_id": "UNIQUE_ID",
}
}
RETURN_TYPES = (IO.INT, IO.INT, IO.INT)
RETURN_NAMES = ("width", "height", "batch_size")
FUNCTION = "get_size"
CATEGORY = "image"
DESCRIPTION = """Returns width and height of the image, and passes it through unchanged."""
def get_size(self, image, unique_id=None) -> tuple[int, int]:
height = image.shape[1]
width = image.shape[2]
batch_size = image.shape[0]
# Send progress text to display size on the node
if unique_id:
PromptServer.instance.send_progress_text(f"width: {width}, height: {height}\n batch size: {batch_size}", unique_id)
return width, height, batch_size
class ImageRotate:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": (IO.IMAGE,),
"rotation": (["none", "90 degrees", "180 degrees", "270 degrees"],),
}}
RETURN_TYPES = (IO.IMAGE,)
FUNCTION = "rotate"
CATEGORY = "image/transform"
def rotate(self, image, rotation):
rotate_by = 0
if rotation.startswith("90"):
rotate_by = 1
elif rotation.startswith("180"):
rotate_by = 2
elif rotation.startswith("270"):
rotate_by = 3
image = torch.rot90(image, k=rotate_by, dims=[2, 1])
return (image,)
class ImageFlip:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": (IO.IMAGE,),
"flip_method": (["x-axis: vertically", "y-axis: horizontally"],),
}}
RETURN_TYPES = (IO.IMAGE,)
FUNCTION = "flip"
CATEGORY = "image/transform"
def flip(self, image, flip_method):
if flip_method.startswith("x"):
image = torch.flip(image, dims=[1])
elif flip_method.startswith("y"):
image = torch.flip(image, dims=[2])
return (image,)
class ImageScaleToMaxDimension:
upscale_methods = ["area", "lanczos", "bilinear", "nearest-exact", "bilinear", "bicubic"]
@classmethod
def INPUT_TYPES(s):
return {"required": {"image": ("IMAGE",),
"upscale_method": (s.upscale_methods,),
"largest_size": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1})}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "upscale"
CATEGORY = "image/upscaling"
def upscale(self, image, upscale_method, largest_size):
height = image.shape[1]
width = image.shape[2]
if height > width:
width = round((width / height) * largest_size)
height = largest_size
elif width > height:
height = round((height / width) * largest_size)
width = largest_size
else:
height = largest_size
width = largest_size
samples = image.movedim(-1, 1)
s = comfy.utils.common_upscale(samples, width, height, upscale_method, "disabled")
s = s.movedim(1, -1)
return (s,)
NODE_CLASS_MAPPINGS = {
"ImageCrop": ImageCrop,
"RepeatImageBatch": RepeatImageBatch,
"ImageFromBatch": ImageFromBatch,
"ImageAddNoise": ImageAddNoise,
"SaveAnimatedWEBP": SaveAnimatedWEBP,
"SaveAnimatedPNG": SaveAnimatedPNG,
"SaveSVGNode": SaveSVGNode,
"ImageStitch": ImageStitch,
"ResizeAndPadImage": ResizeAndPadImage,
"GetImageSize": GetImageSize,
"ImageRotate": ImageRotate,
"ImageFlip": ImageFlip,
"ImageScaleToMaxDimension": ImageScaleToMaxDimension,
}
@@ -0,0 +1,109 @@
import sys
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
class String(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveString",
display_name="String",
category="utils/primitive",
inputs=[
io.String.Input("value"),
],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, value: str) -> io.NodeOutput:
return io.NodeOutput(value)
class StringMultiline(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveStringMultiline",
display_name="String (Multiline)",
category="utils/primitive",
inputs=[
io.String.Input("value", multiline=True),
],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, value: str) -> io.NodeOutput:
return io.NodeOutput(value)
class Int(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveInt",
display_name="Int",
category="utils/primitive",
inputs=[
io.Int.Input("value", min=-sys.maxsize, max=sys.maxsize, control_after_generate=True),
],
outputs=[io.Int.Output()],
)
@classmethod
def execute(cls, value: int) -> io.NodeOutput:
return io.NodeOutput(value)
class Float(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveFloat",
display_name="Float",
category="utils/primitive",
inputs=[
io.Float.Input("value", min=-sys.maxsize, max=sys.maxsize),
],
outputs=[io.Float.Output()],
)
@classmethod
def execute(cls, value: float) -> io.NodeOutput:
return io.NodeOutput(value)
class Boolean(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveBoolean",
display_name="Boolean",
category="utils/primitive",
inputs=[
io.Boolean.Input("value"),
],
outputs=[io.Boolean.Output()],
)
@classmethod
def execute(cls, value: bool) -> io.NodeOutput:
return io.NodeOutput(value)
class PrimitivesExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
String,
StringMultiline,
Int,
Float,
Boolean,
]
async def comfy_entrypoint() -> PrimitivesExtension:
return PrimitivesExtension()
@@ -0,0 +1,212 @@
import folder_paths
import comfy.sd
import comfy.model_management
import nodes
import torch
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
from comfy_extras.nodes_slg import SkipLayerGuidanceDiT
class TripleCLIPLoader(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="TripleCLIPLoader",
category="advanced/loaders",
description="[Recipes]\n\nsd3: clip-l, clip-g, t5",
inputs=[
io.Combo.Input("clip_name1", options=folder_paths.get_filename_list("text_encoders")),
io.Combo.Input("clip_name2", options=folder_paths.get_filename_list("text_encoders")),
io.Combo.Input("clip_name3", options=folder_paths.get_filename_list("text_encoders")),
],
outputs=[
io.Clip.Output(),
],
)
@classmethod
def execute(cls, clip_name1, clip_name2, clip_name3) -> io.NodeOutput:
clip_path1 = folder_paths.get_full_path_or_raise("text_encoders", clip_name1)
clip_path2 = folder_paths.get_full_path_or_raise("text_encoders", clip_name2)
clip_path3 = folder_paths.get_full_path_or_raise("text_encoders", clip_name3)
clip = comfy.sd.load_clip(ckpt_paths=[clip_path1, clip_path2, clip_path3], embedding_directory=folder_paths.get_folder_paths("embeddings"))
return io.NodeOutput(clip)
load_clip = execute # TODO: remove
class EmptySD3LatentImage(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="EmptySD3LatentImage",
category="latent/sd3",
inputs=[
io.Int.Input("width", default=1024, min=16, max=nodes.MAX_RESOLUTION, step=16),
io.Int.Input("height", default=1024, min=16, max=nodes.MAX_RESOLUTION, step=16),
io.Int.Input("batch_size", default=1, min=1, max=4096),
],
outputs=[
io.Latent.Output(),
],
)
@classmethod
def execute(cls, width, height, batch_size=1) -> io.NodeOutput:
latent = torch.zeros([batch_size, 16, height // 8, width // 8], device=comfy.model_management.intermediate_device())
return io.NodeOutput({"samples":latent})
generate = execute # TODO: remove
class CLIPTextEncodeSD3(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="CLIPTextEncodeSD3",
category="advanced/conditioning",
inputs=[
io.Clip.Input("clip"),
io.String.Input("clip_l", multiline=True, dynamic_prompts=True),
io.String.Input("clip_g", multiline=True, dynamic_prompts=True),
io.String.Input("t5xxl", multiline=True, dynamic_prompts=True),
io.Combo.Input("empty_padding", options=["none", "empty_prompt"]),
],
outputs=[
io.Conditioning.Output(),
],
)
@classmethod
def execute(cls, clip, clip_l, clip_g, t5xxl, empty_padding) -> io.NodeOutput:
no_padding = empty_padding == "none"
tokens = clip.tokenize(clip_g)
if len(clip_g) == 0 and no_padding:
tokens["g"] = []
if len(clip_l) == 0 and no_padding:
tokens["l"] = []
else:
tokens["l"] = clip.tokenize(clip_l)["l"]
if len(t5xxl) == 0 and no_padding:
tokens["t5xxl"] = []
else:
tokens["t5xxl"] = clip.tokenize(t5xxl)["t5xxl"]
if len(tokens["l"]) != len(tokens["g"]):
empty = clip.tokenize("")
while len(tokens["l"]) < len(tokens["g"]):
tokens["l"] += empty["l"]
while len(tokens["l"]) > len(tokens["g"]):
tokens["g"] += empty["g"]
return io.NodeOutput(clip.encode_from_tokens_scheduled(tokens))
encode = execute # TODO: remove
class ControlNetApplySD3(io.ComfyNode):
@classmethod
def define_schema(cls) -> io.Schema:
return io.Schema(
node_id="ControlNetApplySD3",
display_name="Apply Controlnet with VAE",
category="conditioning/controlnet",
inputs=[
io.Conditioning.Input("positive"),
io.Conditioning.Input("negative"),
io.ControlNet.Input("control_net"),
io.Vae.Input("vae"),
io.Image.Input("image"),
io.Float.Input("strength", default=1.0, min=0.0, max=10.0, step=0.01),
io.Float.Input("start_percent", default=0.0, min=0.0, max=1.0, step=0.001),
io.Float.Input("end_percent", default=1.0, min=0.0, max=1.0, step=0.001),
],
outputs=[
io.Conditioning.Output(display_name="positive"),
io.Conditioning.Output(display_name="negative"),
],
is_deprecated=True,
)
@classmethod
def execute(cls, positive, negative, control_net, image, strength, start_percent, end_percent, vae=None) -> io.NodeOutput:
if strength == 0:
return io.NodeOutput(positive, negative)
control_hint = image.movedim(-1, 1)
cnets = {}
out = []
for conditioning in [positive, negative]:
c = []
for t in conditioning:
d = t[1].copy()
prev_cnet = d.get('control', None)
if prev_cnet in cnets:
c_net = cnets[prev_cnet]
else:
c_net = control_net.copy().set_cond_hint(control_hint, strength, (start_percent, end_percent),
vae=vae, extra_concat=[])
c_net.set_previous_controlnet(prev_cnet)
cnets[prev_cnet] = c_net
d['control'] = c_net
d['control_apply_to_uncond'] = False
n = [t[0], d]
c.append(n)
out.append(c)
return io.NodeOutput(out[0], out[1])
apply_controlnet = execute # TODO: remove
class SkipLayerGuidanceSD3(io.ComfyNode):
'''
Enhance guidance towards detailed dtructure by having another set of CFG negative with skipped layers.
Inspired by Perturbed Attention Guidance (https://arxiv.org/abs/2403.17377)
Experimental implementation by Dango233@StabilityAI.
'''
@classmethod
def define_schema(cls):
return io.Schema(
node_id="SkipLayerGuidanceSD3",
category="advanced/guidance",
description="Generic version of SkipLayerGuidance node that can be used on every DiT model.",
inputs=[
io.Model.Input("model"),
io.String.Input("layers", default="7, 8, 9", multiline=False),
io.Float.Input("scale", default=3.0, min=0.0, max=10.0, step=0.1),
io.Float.Input("start_percent", default=0.01, min=0.0, max=1.0, step=0.001),
io.Float.Input("end_percent", default=0.15, min=0.0, max=1.0, step=0.001),
],
outputs=[
io.Model.Output(),
],
is_experimental=True,
)
@classmethod
def execute(cls, model, layers, scale, start_percent, end_percent) -> io.NodeOutput:
return SkipLayerGuidanceDiT().execute(model=model, scale=scale, start_percent=start_percent, end_percent=end_percent, double_layers=layers)
skip_guidance_sd3 = execute # TODO: remove
class SD3Extension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
TripleCLIPLoader,
EmptySD3LatentImage,
CLIPTextEncodeSD3,
ControlNetApplySD3,
SkipLayerGuidanceSD3,
]
async def comfy_entrypoint() -> SD3Extension:
return SD3Extension()
@@ -0,0 +1,385 @@
import re
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
class StringConcatenate(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringConcatenate",
display_name="Concatenate",
category="utils/string",
inputs=[
io.String.Input("string_a", multiline=True),
io.String.Input("string_b", multiline=True),
io.String.Input("delimiter", multiline=False, default=""),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string_a, string_b, delimiter):
return io.NodeOutput(delimiter.join((string_a, string_b)))
class StringSubstring(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringSubstring",
display_name="Substring",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.Int.Input("start"),
io.Int.Input("end"),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, start, end):
return io.NodeOutput(string[start:end])
class StringLength(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringLength",
display_name="Length",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
],
outputs=[
io.Int.Output(display_name="length"),
]
)
@classmethod
def execute(cls, string):
return io.NodeOutput(len(string))
class CaseConverter(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="CaseConverter",
display_name="Case Converter",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.Combo.Input("mode", options=["UPPERCASE", "lowercase", "Capitalize", "Title Case"]),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, mode):
if mode == "UPPERCASE":
result = string.upper()
elif mode == "lowercase":
result = string.lower()
elif mode == "Capitalize":
result = string.capitalize()
elif mode == "Title Case":
result = string.title()
else:
result = string
return io.NodeOutput(result)
class StringTrim(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringTrim",
display_name="Trim",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.Combo.Input("mode", options=["Both", "Left", "Right"]),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, mode):
if mode == "Both":
result = string.strip()
elif mode == "Left":
result = string.lstrip()
elif mode == "Right":
result = string.rstrip()
else:
result = string
return io.NodeOutput(result)
class StringReplace(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringReplace",
display_name="Replace",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("find", multiline=True),
io.String.Input("replace", multiline=True),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, find, replace):
return io.NodeOutput(string.replace(find, replace))
class StringContains(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringContains",
display_name="Contains",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("substring", multiline=True),
io.Boolean.Input("case_sensitive", default=True),
],
outputs=[
io.Boolean.Output(display_name="contains"),
]
)
@classmethod
def execute(cls, string, substring, case_sensitive):
if case_sensitive:
contains = substring in string
else:
contains = substring.lower() in string.lower()
return io.NodeOutput(contains)
class StringCompare(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringCompare",
display_name="Compare",
category="utils/string",
inputs=[
io.String.Input("string_a", multiline=True),
io.String.Input("string_b", multiline=True),
io.Combo.Input("mode", options=["Starts With", "Ends With", "Equal"]),
io.Boolean.Input("case_sensitive", default=True),
],
outputs=[
io.Boolean.Output(),
]
)
@classmethod
def execute(cls, string_a, string_b, mode, case_sensitive):
if case_sensitive:
a = string_a
b = string_b
else:
a = string_a.lower()
b = string_b.lower()
if mode == "Equal":
return io.NodeOutput(a == b)
elif mode == "Starts With":
return io.NodeOutput(a.startswith(b))
elif mode == "Ends With":
return io.NodeOutput(a.endswith(b))
class RegexMatch(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexMatch",
display_name="Regex Match",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.Boolean.Input("case_insensitive", default=True),
io.Boolean.Input("multiline", default=False),
io.Boolean.Input("dotall", default=False),
],
outputs=[
io.Boolean.Output(display_name="matches"),
]
)
@classmethod
def execute(cls, string, regex_pattern, case_insensitive, multiline, dotall):
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
try:
match = re.search(regex_pattern, string, flags)
result = match is not None
except re.error:
result = False
return io.NodeOutput(result)
class RegexExtract(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexExtract",
display_name="Regex Extract",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.Combo.Input("mode", options=["First Match", "All Matches", "First Group", "All Groups"]),
io.Boolean.Input("case_insensitive", default=True),
io.Boolean.Input("multiline", default=False),
io.Boolean.Input("dotall", default=False),
io.Int.Input("group_index", default=1, min=0, max=100),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, regex_pattern, mode, case_insensitive, multiline, dotall, group_index):
join_delimiter = "\n"
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
try:
if mode == "First Match":
match = re.search(regex_pattern, string, flags)
if match:
result = match.group(0)
else:
result = ""
elif mode == "All Matches":
matches = re.findall(regex_pattern, string, flags)
if matches:
if isinstance(matches[0], tuple):
result = join_delimiter.join([m[0] for m in matches])
else:
result = join_delimiter.join(matches)
else:
result = ""
elif mode == "First Group":
match = re.search(regex_pattern, string, flags)
if match and len(match.groups()) >= group_index:
result = match.group(group_index)
else:
result = ""
elif mode == "All Groups":
matches = re.finditer(regex_pattern, string, flags)
results = []
for match in matches:
if match.groups() and len(match.groups()) >= group_index:
results.append(match.group(group_index))
result = join_delimiter.join(results)
else:
result = ""
except re.error:
result = ""
return io.NodeOutput(result)
class RegexReplace(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexReplace",
display_name="Regex Replace",
category="utils/string",
description="Find and replace text using regex patterns.",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.String.Input("replace", multiline=True),
io.Boolean.Input("case_insensitive", default=True, optional=True),
io.Boolean.Input("multiline", default=False, optional=True),
io.Boolean.Input("dotall", default=False, optional=True, tooltip="When enabled, the dot (.) character will match any character including newline characters. When disabled, dots won't match newlines."),
io.Int.Input("count", default=0, min=0, max=100, optional=True, tooltip="Maximum number of replacements to make. Set to 0 to replace all occurrences (default). Set to 1 to replace only the first match, 2 for the first two matches, etc."),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, regex_pattern, replace, case_insensitive=True, multiline=False, dotall=False, count=0):
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
result = re.sub(regex_pattern, replace, string, count=count, flags=flags)
return io.NodeOutput(result)
class StringExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
StringConcatenate,
StringSubstring,
StringLength,
CaseConverter,
StringTrim,
StringReplace,
StringContains,
StringCompare,
RegexMatch,
RegexExtract,
RegexReplace,
]
async def comfy_entrypoint() -> StringExtension:
return StringExtension()
@@ -0,0 +1,109 @@
import logging
from spandrel import ModelLoader, ImageModelDescriptor
from comfy import model_management
import torch
import comfy.utils
import folder_paths
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
try:
from spandrel_extra_arches import EXTRA_REGISTRY
from spandrel import MAIN_REGISTRY
MAIN_REGISTRY.add(*EXTRA_REGISTRY)
logging.info("Successfully imported spandrel_extra_arches: support for non commercial upscale models.")
except:
pass
class UpscaleModelLoader(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="UpscaleModelLoader",
display_name="Load Upscale Model",
category="loaders",
inputs=[
io.Combo.Input("model_name", options=folder_paths.get_filename_list("upscale_models")),
],
outputs=[
io.UpscaleModel.Output(),
],
)
@classmethod
def execute(cls, model_name) -> io.NodeOutput:
model_path = folder_paths.get_full_path_or_raise("upscale_models", model_name)
sd = comfy.utils.load_torch_file(model_path, safe_load=True)
if "module.layers.0.residual_group.blocks.0.norm1.weight" in sd:
sd = comfy.utils.state_dict_prefix_replace(sd, {"module.":""})
out = ModelLoader().load_from_state_dict(sd).eval()
if not isinstance(out, ImageModelDescriptor):
raise Exception("Upscale model must be a single-image model.")
return io.NodeOutput(out)
load_model = execute # TODO: remove
class ImageUpscaleWithModel(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ImageUpscaleWithModel",
display_name="Upscale Image (using Model)",
category="image/upscaling",
inputs=[
io.UpscaleModel.Input("upscale_model"),
io.Image.Input("image"),
],
outputs=[
io.Image.Output(),
],
)
@classmethod
def execute(cls, upscale_model, image) -> io.NodeOutput:
device = model_management.get_torch_device()
memory_required = model_management.module_size(upscale_model.model)
memory_required += (512 * 512 * 3) * image.element_size() * max(upscale_model.scale, 1.0) * 384.0 #The 384.0 is an estimate of how much some of these models take, TODO: make it more accurate
memory_required += image.nelement() * image.element_size()
model_management.free_memory(memory_required, device)
upscale_model.to(device)
in_img = image.movedim(-1,-3).to(device)
tile = 512
overlap = 32
oom = True
while oom:
try:
steps = in_img.shape[0] * comfy.utils.get_tiled_scale_steps(in_img.shape[3], in_img.shape[2], tile_x=tile, tile_y=tile, overlap=overlap)
pbar = comfy.utils.ProgressBar(steps)
s = comfy.utils.tiled_scale(in_img, lambda a: upscale_model(a), tile_x=tile, tile_y=tile, overlap=overlap, upscale_amount=upscale_model.scale, pbar=pbar)
oom = False
except model_management.OOM_EXCEPTION as e:
tile //= 2
if tile < 128:
raise e
upscale_model.to("cpu")
s = torch.clamp(s.movedim(-3,-1), min=0, max=1.0)
return io.NodeOutput(s)
upscale = execute # TODO: remove
class UpscaleModelExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
UpscaleModelLoader,
ImageUpscaleWithModel,
]
async def comfy_entrypoint() -> UpscaleModelExtension:
return UpscaleModelExtension()
@@ -0,0 +1,496 @@
from __future__ import annotations
import os
import time
import mimetypes
import logging
from typing import Literal, List
from collections.abc import Collection
from comfy.cli_args import args
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {}
# --base-directory - Resets all default paths configured in folder_paths with a new base path
if args.base_directory:
base_path = os.path.abspath(args.base_directory)
else:
base_path = os.path.dirname(os.path.realpath(__file__))
models_dir = os.path.join(base_path, "models")
folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions)
folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"])
folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions)
folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions)
folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions)
folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions)
folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions)
folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions)
folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions)
folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"])
folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions)
folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions)
folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions)
folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions)
folder_names_and_paths["latent_upscale_models"] = ([os.path.join(models_dir, "latent_upscale_models")], supported_pt_extensions)
folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set())
folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions)
folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions)
folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
folder_names_and_paths["model_patches"] = ([os.path.join(models_dir, "model_patches")], supported_pt_extensions)
folder_names_and_paths["audio_encoders"] = ([os.path.join(models_dir, "audio_encoders")], supported_pt_extensions)
output_directory = os.path.join(base_path, "output")
temp_directory = os.path.join(base_path, "temp")
input_directory = os.path.join(base_path, "input")
user_directory = os.path.join(base_path, "user")
filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
class CacheHelper:
"""
Helper class for managing file list cache data.
"""
def __init__(self):
self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
self.active = False
def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]:
if not self.active:
return default
return self.cache.get(key, default)
def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None:
if self.active:
self.cache[key] = value
def clear(self):
self.cache.clear()
def __enter__(self):
self.active = True
return self
def __exit__(self, exc_type, exc_value, traceback):
self.active = False
self.clear()
cache_helper = CacheHelper()
extension_mimetypes_cache = {
"webp" : "image",
"fbx" : "model",
}
def map_legacy(folder_name: str) -> str:
legacy = {"unet": "diffusion_models",
"clip": "text_encoders"}
return legacy.get(folder_name, folder_name)
if not os.path.exists(input_directory):
try:
os.makedirs(input_directory)
except:
logging.error("Failed to create input directory")
def set_output_directory(output_dir: str) -> None:
global output_directory
output_directory = output_dir
def set_temp_directory(temp_dir: str) -> None:
global temp_directory
temp_directory = temp_dir
def set_input_directory(input_dir: str) -> None:
global input_directory
input_directory = input_dir
def get_output_directory() -> str:
global output_directory
return output_directory
def get_temp_directory() -> str:
global temp_directory
return temp_directory
def get_input_directory() -> str:
global input_directory
return input_directory
def get_user_directory() -> str:
return user_directory
def set_user_directory(user_dir: str) -> None:
global user_directory
user_directory = user_dir
# System User Protection - Protects system directories from HTTP endpoint access
# System Users are internal-only users that cannot be accessed via HTTP endpoints.
# They use the '__' prefix convention (similar to Python's private member convention).
SYSTEM_USER_PREFIX = "__"
def get_system_user_directory(name: str = "system") -> str:
"""
Get the path to a System User directory.
System User directories (prefixed with '__') are only accessible via internal API,
not through HTTP endpoints. Use this for storing system-internal data that
should not be exposed to users.
Args:
name: System user name (e.g., "system", "cache"). Must be alphanumeric
with underscores allowed, but cannot start with underscore.
Returns:
Absolute path to the system user directory.
Raises:
ValueError: If name is empty, invalid, or starts with underscore.
Example:
>>> get_system_user_directory("cache")
'/path/to/user/__cache'
"""
if not name or not isinstance(name, str):
raise ValueError("System user name cannot be empty")
if not name.replace("_", "").isalnum():
raise ValueError(f"Invalid system user name: '{name}'")
if name.startswith("_"):
raise ValueError("System user name should not start with underscore")
return os.path.join(get_user_directory(), f"{SYSTEM_USER_PREFIX}{name}")
def get_public_user_directory(user_id: str) -> str | None:
"""
Get the path to a Public User directory for HTTP endpoint access.
This function provides structural security by returning None for any
System User (prefixed with '__'). All HTTP endpoints should use this
function instead of directly constructing user paths.
Args:
user_id: User identifier from HTTP request.
Returns:
Absolute path to the user directory, or None if user_id is invalid
or refers to a System User.
Example:
>>> get_public_user_directory("default")
'/path/to/user/default'
>>> get_public_user_directory("__system")
None
"""
if not user_id or not isinstance(user_id, str):
return None
if user_id.startswith(SYSTEM_USER_PREFIX):
return None
return os.path.join(get_user_directory(), user_id)
#NOTE: used in http server so don't put folders that should not be accessed remotely
def get_directory_by_type(type_name: str) -> str | None:
if type_name == "output":
return get_output_directory()
if type_name == "temp":
return get_temp_directory()
if type_name == "input":
return get_input_directory()
return None
def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]:
"""
Example:
files = os.listdir(folder_paths.get_input_directory())
videos = filter_files_content_types(files, ["video"])
Note:
- 'model' in MIME context refers to 3D models, not files containing trained weights and parameters
"""
global extension_mimetypes_cache
result = []
for file in files:
extension = file.split('.')[-1]
if extension not in extension_mimetypes_cache:
mime_type, _ = mimetypes.guess_type(file, strict=False)
if not mime_type:
continue
content_type = mime_type.split('/')[0]
extension_mimetypes_cache[extension] = content_type
else:
content_type = extension_mimetypes_cache[extension]
if content_type in content_types:
result.append(file)
return result
# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format
# otherwise use default_path as base_dir
def annotated_filepath(name: str) -> tuple[str, str | None]:
if name.endswith("[output]"):
base_dir = get_output_directory()
name = name[:-9]
elif name.endswith("[input]"):
base_dir = get_input_directory()
name = name[:-8]
elif name.endswith("[temp]"):
base_dir = get_temp_directory()
name = name[:-7]
else:
return name, None
return name, base_dir
def get_annotated_filepath(name: str, default_dir: str | None=None) -> str:
name, base_dir = annotated_filepath(name)
if base_dir is None:
if default_dir is not None:
base_dir = default_dir
else:
base_dir = get_input_directory() # fallback path
return os.path.join(base_dir, name)
def exists_annotated_filepath(name) -> bool:
name, base_dir = annotated_filepath(name)
if base_dir is None:
base_dir = get_input_directory() # fallback path
filepath = os.path.join(base_dir, name)
return os.path.exists(filepath)
def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None:
global folder_names_and_paths
folder_name = map_legacy(folder_name)
if folder_name in folder_names_and_paths:
paths, _exts = folder_names_and_paths[folder_name]
if full_folder_path in paths:
if is_default and paths[0] != full_folder_path:
# If the path to the folder is not the first in the list, move it to the beginning.
paths.remove(full_folder_path)
paths.insert(0, full_folder_path)
else:
if is_default:
paths.insert(0, full_folder_path)
else:
paths.append(full_folder_path)
else:
folder_names_and_paths[folder_name] = ([full_folder_path], set())
def get_folder_paths(folder_name: str) -> list[str]:
folder_name = map_legacy(folder_name)
return folder_names_and_paths[folder_name][0][:]
def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]:
if not os.path.isdir(directory):
return [], {}
if excluded_dir_names is None:
excluded_dir_names = []
result = []
dirs = {}
# Attempt to add the initial directory to dirs with error handling
try:
dirs[directory] = os.path.getmtime(directory)
except FileNotFoundError:
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
logging.debug("recursive file list on directory {}".format(directory))
dirpath: str
subdirs: list[str]
filenames: list[str]
for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True):
subdirs[:] = [d for d in subdirs if d not in excluded_dir_names]
for file_name in filenames:
try:
relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory)
result.append(relative_path)
except:
logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.")
continue
for d in subdirs:
path: str = os.path.join(dirpath, d)
try:
dirs[path] = os.path.getmtime(path)
except FileNotFoundError:
logging.warning(f"Warning: Unable to access {path}. Skipping this path.")
continue
logging.debug("found {} files".format(len(result)))
return result, dirs
def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]:
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
def get_full_path(folder_name: str, filename: str) -> str | None:
"""
Get the full path of a file in a folder, has to be a file
"""
global folder_names_and_paths
folder_name = map_legacy(folder_name)
if folder_name not in folder_names_and_paths:
return None
folders = folder_names_and_paths[folder_name]
filename = os.path.relpath(os.path.join("/", filename), "/")
for x in folders[0]:
full_path = os.path.join(x, filename)
if os.path.isfile(full_path):
return full_path
elif os.path.islink(full_path):
logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))
return None
def get_full_path_or_raise(folder_name: str, filename: str) -> str:
"""
Get the full path of a file in a folder, has to be a file
"""
full_path = get_full_path(folder_name, filename)
if full_path is None:
raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.")
return full_path
def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]:
folder_name = map_legacy(folder_name)
global folder_names_and_paths
output_list = set()
folders = folder_names_and_paths[folder_name]
output_folders = {}
for x in folders[0]:
files, folders_all = recursive_search(x, excluded_dir_names=[".git"])
output_list.update(filter_files_extensions(files, folders[1]))
output_folders = {**output_folders, **folders_all}
return sorted(list(output_list)), output_folders, time.perf_counter()
def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None:
strong_cache = cache_helper.get(folder_name)
if strong_cache is not None:
return strong_cache
global filename_list_cache
global folder_names_and_paths
folder_name = map_legacy(folder_name)
if folder_name not in filename_list_cache:
return None
out = filename_list_cache[folder_name]
for x in out[1]:
time_modified = out[1][x]
folder = x
if os.path.getmtime(folder) != time_modified:
return None
folders = folder_names_and_paths[folder_name]
for x in folders[0]:
if os.path.isdir(x):
if x not in out[1]:
return None
return out
def get_filename_list(folder_name: str) -> list[str]:
folder_name = map_legacy(folder_name)
out = cached_filename_list_(folder_name)
if out is None:
out = get_filename_list_(folder_name)
global filename_list_cache
filename_list_cache[folder_name] = out
cache_helper.set(folder_name, out)
return list(out[0])
def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]:
def map_filename(filename: str) -> tuple[int, str]:
prefix_len = len(os.path.basename(filename_prefix))
prefix = filename[:prefix_len + 1]
try:
digits = int(filename[prefix_len + 1:].split('_')[0])
except:
digits = 0
return digits, prefix
def compute_vars(input: str, image_width: int, image_height: int) -> str:
input = input.replace("%width%", str(image_width))
input = input.replace("%height%", str(image_height))
now = time.localtime()
input = input.replace("%year%", str(now.tm_year))
input = input.replace("%month%", str(now.tm_mon).zfill(2))
input = input.replace("%day%", str(now.tm_mday).zfill(2))
input = input.replace("%hour%", str(now.tm_hour).zfill(2))
input = input.replace("%minute%", str(now.tm_min).zfill(2))
input = input.replace("%second%", str(now.tm_sec).zfill(2))
return input
if "%" in filename_prefix:
filename_prefix = compute_vars(filename_prefix, image_width, image_height)
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
filename = os.path.basename(os.path.normpath(filename_prefix))
full_output_folder = os.path.join(output_dir, subfolder)
if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
err = "**** ERROR: Saving image outside the output folder is not allowed." + \
"\n full_output_folder: " + os.path.abspath(full_output_folder) + \
"\n output_dir: " + output_dir + \
"\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder)))
logging.error(err)
raise Exception(err)
try:
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
except ValueError:
counter = 1
except FileNotFoundError:
os.makedirs(full_output_folder, exist_ok=True)
counter = 1
return full_output_folder, filename, counter, subfolder, filename_prefix
def get_input_subfolders() -> list[str]:
"""Returns a list of all subfolder paths in the input directory, recursively.
Returns:
List of folder paths relative to the input directory, excluding the root directory
"""
input_dir = get_input_directory()
folders = []
try:
if not os.path.exists(input_dir):
return []
for root, dirs, _ in os.walk(input_dir):
rel_path = os.path.relpath(root, input_dir)
if rel_path != ".": # Only include non-root directories
# Normalize path separators to forward slashes
folders.append(rel_path.replace(os.sep, '/'))
return sorted(folders)
except FileNotFoundError:
return []
File diff suppressed because it is too large Load Diff
@@ -0,0 +1 @@
[]
@@ -0,0 +1,6 @@
tree 2148ab4db27fb56dd21cf74759547100cfd1df30
parent 16d85ea13342cebc8349a95236c94bde5ac3cb2a
author comfyanonymous <comfyanonymous@protonmail.com> 1766023490 -0500
committer comfyanonymous <comfyanonymous@protonmail.com> 1766023490 -0500
ComfyUI v0.5.1
@@ -0,0 +1,5 @@
{
"ref": "v0.5.1",
"commit": "ba6080bbab070934ea6e870c5fc30dbf702eb445",
"object": "ba6080bbab070934ea6e870c5fc30dbf702eb445"
}
@@ -0,0 +1,6 @@
tree 2148ab4db27fb56dd21cf74759547100cfd1df30
parent 16d85ea13342cebc8349a95236c94bde5ac3cb2a
author comfyanonymous <comfyanonymous@protonmail.com> 1766023490 -0500
committer comfyanonymous <comfyanonymous@protonmail.com> 1766023490 -0500
ComfyUI v0.5.1
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
@@ -0,0 +1,674 @@
from __future__ import annotations
import nodes
import folder_paths
from comfy.cli_args import args
from PIL import Image
from PIL.PngImagePlugin import PngInfo
import numpy as np
import json
import os
import re
from io import BytesIO
from inspect import cleandoc
import torch
import comfy.utils
from comfy.comfy_types import FileLocator, IO
from server import PromptServer
MAX_RESOLUTION = nodes.MAX_RESOLUTION
class ImageCrop:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"width": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}),
"height": ("INT", {"default": 512, "min": 1, "max": MAX_RESOLUTION, "step": 1}),
"x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}),
"y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "crop"
CATEGORY = "image/transform"
def crop(self, image, width, height, x, y):
x = min(x, image.shape[2] - 1)
y = min(y, image.shape[1] - 1)
to_x = width + x
to_y = height + y
img = image[:,y:to_y, x:to_x, :]
return (img,)
class RepeatImageBatch:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"amount": ("INT", {"default": 1, "min": 1, "max": 4096}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "repeat"
CATEGORY = "image/batch"
def repeat(self, image, amount):
s = image.repeat((amount, 1,1,1))
return (s,)
class ImageFromBatch:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"batch_index": ("INT", {"default": 0, "min": 0, "max": 4095}),
"length": ("INT", {"default": 1, "min": 1, "max": 4096}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "frombatch"
CATEGORY = "image/batch"
def frombatch(self, image, batch_index, length):
s_in = image
batch_index = min(s_in.shape[0] - 1, batch_index)
length = min(s_in.shape[0] - batch_index, length)
s = s_in[batch_index:batch_index + length].clone()
return (s,)
class ImageAddNoise:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": ("IMAGE",),
"seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff, "control_after_generate": True, "tooltip": "The random seed used for creating the noise."}),
"strength": ("FLOAT", {"default": 0.5, "min": 0.0, "max": 1.0, "step": 0.01}),
}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "repeat"
CATEGORY = "image"
def repeat(self, image, seed, strength):
generator = torch.manual_seed(seed)
s = torch.clip((image + strength * torch.randn(image.size(), generator=generator, device="cpu").to(image)), min=0.0, max=1.0)
return (s,)
class SaveAnimatedWEBP:
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = ""
methods = {"default": 4, "fastest": 0, "slowest": 6}
@classmethod
def INPUT_TYPES(s):
return {"required":
{"images": ("IMAGE", ),
"filename_prefix": ("STRING", {"default": "ComfyUI"}),
"fps": ("FLOAT", {"default": 6.0, "min": 0.01, "max": 1000.0, "step": 0.01}),
"lossless": ("BOOLEAN", {"default": True}),
"quality": ("INT", {"default": 80, "min": 0, "max": 100}),
"method": (list(s.methods.keys()),),
# "num_frames": ("INT", {"default": 0, "min": 0, "max": 8192}),
},
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"},
}
RETURN_TYPES = ()
FUNCTION = "save_images"
OUTPUT_NODE = True
CATEGORY = "image/animation"
def save_images(self, images, fps, filename_prefix, lossless, quality, method, num_frames=0, prompt=None, extra_pnginfo=None):
method = self.methods.get(method)
filename_prefix += self.prefix_append
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0])
results: list[FileLocator] = []
pil_images = []
for image in images:
i = 255. * image.cpu().numpy()
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
pil_images.append(img)
metadata = pil_images[0].getexif()
if not args.disable_metadata:
if prompt is not None:
metadata[0x0110] = "prompt:{}".format(json.dumps(prompt))
if extra_pnginfo is not None:
inital_exif = 0x010f
for x in extra_pnginfo:
metadata[inital_exif] = "{}:{}".format(x, json.dumps(extra_pnginfo[x]))
inital_exif -= 1
if num_frames == 0:
num_frames = len(pil_images)
c = len(pil_images)
for i in range(0, c, num_frames):
file = f"{filename}_{counter:05}_.webp"
pil_images[i].save(os.path.join(full_output_folder, file), save_all=True, duration=int(1000.0/fps), append_images=pil_images[i + 1:i + num_frames], exif=metadata, lossless=lossless, quality=quality, method=method)
results.append({
"filename": file,
"subfolder": subfolder,
"type": self.type
})
counter += 1
animated = num_frames != 1
return { "ui": { "images": results, "animated": (animated,) } }
class SaveAnimatedPNG:
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = ""
@classmethod
def INPUT_TYPES(s):
return {"required":
{"images": ("IMAGE", ),
"filename_prefix": ("STRING", {"default": "ComfyUI"}),
"fps": ("FLOAT", {"default": 6.0, "min": 0.01, "max": 1000.0, "step": 0.01}),
"compress_level": ("INT", {"default": 4, "min": 0, "max": 9})
},
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"},
}
RETURN_TYPES = ()
FUNCTION = "save_images"
OUTPUT_NODE = True
CATEGORY = "image/animation"
def save_images(self, images, fps, compress_level, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None):
filename_prefix += self.prefix_append
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir, images[0].shape[1], images[0].shape[0])
results = list()
pil_images = []
for image in images:
i = 255. * image.cpu().numpy()
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
pil_images.append(img)
metadata = None
if not args.disable_metadata:
metadata = PngInfo()
if prompt is not None:
metadata.add(b"comf", "prompt".encode("latin-1", "strict") + b"\0" + json.dumps(prompt).encode("latin-1", "strict"), after_idat=True)
if extra_pnginfo is not None:
for x in extra_pnginfo:
metadata.add(b"comf", x.encode("latin-1", "strict") + b"\0" + json.dumps(extra_pnginfo[x]).encode("latin-1", "strict"), after_idat=True)
file = f"{filename}_{counter:05}_.png"
pil_images[0].save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=compress_level, save_all=True, duration=int(1000.0/fps), append_images=pil_images[1:])
results.append({
"filename": file,
"subfolder": subfolder,
"type": self.type
})
return { "ui": { "images": results, "animated": (True,)} }
class SVG:
"""
Stores SVG representations via a list of BytesIO objects.
"""
def __init__(self, data: list[BytesIO]):
self.data = data
def combine(self, other: 'SVG') -> 'SVG':
return SVG(self.data + other.data)
@staticmethod
def combine_all(svgs: list['SVG']) -> 'SVG':
all_svgs_list: list[BytesIO] = []
for svg_item in svgs:
all_svgs_list.extend(svg_item.data)
return SVG(all_svgs_list)
class ImageStitch:
"""Upstreamed from https://github.com/kijai/ComfyUI-KJNodes"""
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"image1": ("IMAGE",),
"direction": (["right", "down", "left", "up"], {"default": "right"}),
"match_image_size": ("BOOLEAN", {"default": True}),
"spacing_width": (
"INT",
{"default": 0, "min": 0, "max": 1024, "step": 2},
),
"spacing_color": (
["white", "black", "red", "green", "blue"],
{"default": "white"},
),
},
"optional": {
"image2": ("IMAGE",),
},
}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "stitch"
CATEGORY = "image/transform"
DESCRIPTION = """
Stitches image2 to image1 in the specified direction.
If image2 is not provided, returns image1 unchanged.
Optional spacing can be added between images.
"""
def stitch(
self,
image1,
direction,
match_image_size,
spacing_width,
spacing_color,
image2=None,
):
if image2 is None:
return (image1,)
# Handle batch size differences
if image1.shape[0] != image2.shape[0]:
max_batch = max(image1.shape[0], image2.shape[0])
if image1.shape[0] < max_batch:
image1 = torch.cat(
[image1, image1[-1:].repeat(max_batch - image1.shape[0], 1, 1, 1)]
)
if image2.shape[0] < max_batch:
image2 = torch.cat(
[image2, image2[-1:].repeat(max_batch - image2.shape[0], 1, 1, 1)]
)
# Match image sizes if requested
if match_image_size:
h1, w1 = image1.shape[1:3]
h2, w2 = image2.shape[1:3]
aspect_ratio = w2 / h2
if direction in ["left", "right"]:
target_h, target_w = h1, int(h1 * aspect_ratio)
else: # up, down
target_w, target_h = w1, int(w1 / aspect_ratio)
image2 = comfy.utils.common_upscale(
image2.movedim(-1, 1), target_w, target_h, "lanczos", "disabled"
).movedim(1, -1)
color_map = {
"white": 1.0,
"black": 0.0,
"red": (1.0, 0.0, 0.0),
"green": (0.0, 1.0, 0.0),
"blue": (0.0, 0.0, 1.0),
}
color_val = color_map[spacing_color]
# When not matching sizes, pad to align non-concat dimensions
if not match_image_size:
h1, w1 = image1.shape[1:3]
h2, w2 = image2.shape[1:3]
pad_value = 0.0
if not isinstance(color_val, tuple):
pad_value = color_val
if direction in ["left", "right"]:
# For horizontal concat, pad heights to match
if h1 != h2:
target_h = max(h1, h2)
if h1 < target_h:
pad_h = target_h - h1
pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2
image1 = torch.nn.functional.pad(image1, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)
if h2 < target_h:
pad_h = target_h - h2
pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2
image2 = torch.nn.functional.pad(image2, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)
else: # up, down
# For vertical concat, pad widths to match
if w1 != w2:
target_w = max(w1, w2)
if w1 < target_w:
pad_w = target_w - w1
pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2
image1 = torch.nn.functional.pad(image1, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)
if w2 < target_w:
pad_w = target_w - w2
pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2
image2 = torch.nn.functional.pad(image2, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)
# Ensure same number of channels
if image1.shape[-1] != image2.shape[-1]:
max_channels = max(image1.shape[-1], image2.shape[-1])
if image1.shape[-1] < max_channels:
image1 = torch.cat(
[
image1,
torch.ones(
*image1.shape[:-1],
max_channels - image1.shape[-1],
device=image1.device,
),
],
dim=-1,
)
if image2.shape[-1] < max_channels:
image2 = torch.cat(
[
image2,
torch.ones(
*image2.shape[:-1],
max_channels - image2.shape[-1],
device=image2.device,
),
],
dim=-1,
)
# Add spacing if specified
if spacing_width > 0:
spacing_width = spacing_width + (spacing_width % 2) # Ensure even
if direction in ["left", "right"]:
spacing_shape = (
image1.shape[0],
max(image1.shape[1], image2.shape[1]),
spacing_width,
image1.shape[-1],
)
else:
spacing_shape = (
image1.shape[0],
spacing_width,
max(image1.shape[2], image2.shape[2]),
image1.shape[-1],
)
spacing = torch.full(spacing_shape, 0.0, device=image1.device)
if isinstance(color_val, tuple):
for i, c in enumerate(color_val):
if i < spacing.shape[-1]:
spacing[..., i] = c
if spacing.shape[-1] == 4: # Add alpha
spacing[..., 3] = 1.0
else:
spacing[..., : min(3, spacing.shape[-1])] = color_val
if spacing.shape[-1] == 4:
spacing[..., 3] = 1.0
# Concatenate images
images = [image2, image1] if direction in ["left", "up"] else [image1, image2]
if spacing_width > 0:
images.insert(1, spacing)
concat_dim = 2 if direction in ["left", "right"] else 1
return (torch.cat(images, dim=concat_dim),)
class ResizeAndPadImage:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"image": ("IMAGE",),
"target_width": ("INT", {
"default": 512,
"min": 1,
"max": MAX_RESOLUTION,
"step": 1
}),
"target_height": ("INT", {
"default": 512,
"min": 1,
"max": MAX_RESOLUTION,
"step": 1
}),
"padding_color": (["white", "black"],),
"interpolation": (["area", "bicubic", "nearest-exact", "bilinear", "lanczos"],),
}
}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "resize_and_pad"
CATEGORY = "image/transform"
def resize_and_pad(self, image, target_width, target_height, padding_color, interpolation):
batch_size, orig_height, orig_width, channels = image.shape
scale_w = target_width / orig_width
scale_h = target_height / orig_height
scale = min(scale_w, scale_h)
new_width = int(orig_width * scale)
new_height = int(orig_height * scale)
image_permuted = image.permute(0, 3, 1, 2)
resized = comfy.utils.common_upscale(image_permuted, new_width, new_height, interpolation, "disabled")
pad_value = 0.0 if padding_color == "black" else 1.0
padded = torch.full(
(batch_size, channels, target_height, target_width),
pad_value,
dtype=image.dtype,
device=image.device
)
y_offset = (target_height - new_height) // 2
x_offset = (target_width - new_width) // 2
padded[:, :, y_offset:y_offset + new_height, x_offset:x_offset + new_width] = resized
output = padded.permute(0, 2, 3, 1)
return (output,)
class SaveSVGNode:
"""
Save SVG files on disk.
"""
def __init__(self):
self.output_dir = folder_paths.get_output_directory()
self.type = "output"
self.prefix_append = ""
RETURN_TYPES = ()
DESCRIPTION = cleandoc(__doc__ or "") # Handle potential None value
FUNCTION = "save_svg"
CATEGORY = "image/save" # Changed
OUTPUT_NODE = True
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"svg": ("SVG",), # Changed
"filename_prefix": ("STRING", {"default": "svg/ComfyUI", "tooltip": "The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."})
},
"hidden": {
"prompt": "PROMPT",
"extra_pnginfo": "EXTRA_PNGINFO"
}
}
def save_svg(self, svg: SVG, filename_prefix="svg/ComfyUI", prompt=None, extra_pnginfo=None):
filename_prefix += self.prefix_append
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir)
results = list()
# Prepare metadata JSON
metadata_dict = {}
if prompt is not None:
metadata_dict["prompt"] = prompt
if extra_pnginfo is not None:
metadata_dict.update(extra_pnginfo)
# Convert metadata to JSON string
metadata_json = json.dumps(metadata_dict, indent=2) if metadata_dict else None
for batch_number, svg_bytes in enumerate(svg.data):
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
file = f"{filename_with_batch_num}_{counter:05}_.svg"
# Read SVG content
svg_bytes.seek(0)
svg_content = svg_bytes.read().decode('utf-8')
# Inject metadata if available
if metadata_json:
# Create metadata element with CDATA section
metadata_element = f""" <metadata>
<![CDATA[
{metadata_json}
]]>
</metadata>
"""
# Insert metadata after opening svg tag using regex with a replacement function
def replacement(match):
# match.group(1) contains the captured <svg> tag
return match.group(1) + '\n' + metadata_element
# Apply the substitution
svg_content = re.sub(r'(<svg[^>]*>)', replacement, svg_content, flags=re.UNICODE)
# Write the modified SVG to file
with open(os.path.join(full_output_folder, file), 'wb') as svg_file:
svg_file.write(svg_content.encode('utf-8'))
results.append({
"filename": file,
"subfolder": subfolder,
"type": self.type
})
counter += 1
return { "ui": { "images": results } }
class GetImageSize:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"image": (IO.IMAGE,),
},
"hidden": {
"unique_id": "UNIQUE_ID",
}
}
RETURN_TYPES = (IO.INT, IO.INT, IO.INT)
RETURN_NAMES = ("width", "height", "batch_size")
FUNCTION = "get_size"
CATEGORY = "image"
DESCRIPTION = """Returns width and height of the image, and passes it through unchanged."""
def get_size(self, image, unique_id=None) -> tuple[int, int]:
height = image.shape[1]
width = image.shape[2]
batch_size = image.shape[0]
# Send progress text to display size on the node
if unique_id:
PromptServer.instance.send_progress_text(f"width: {width}, height: {height}\n batch size: {batch_size}", unique_id)
return width, height, batch_size
class ImageRotate:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": (IO.IMAGE,),
"rotation": (["none", "90 degrees", "180 degrees", "270 degrees"],),
}}
RETURN_TYPES = (IO.IMAGE,)
FUNCTION = "rotate"
CATEGORY = "image/transform"
def rotate(self, image, rotation):
rotate_by = 0
if rotation.startswith("90"):
rotate_by = 1
elif rotation.startswith("180"):
rotate_by = 2
elif rotation.startswith("270"):
rotate_by = 3
image = torch.rot90(image, k=rotate_by, dims=[2, 1])
return (image,)
class ImageFlip:
@classmethod
def INPUT_TYPES(s):
return {"required": { "image": (IO.IMAGE,),
"flip_method": (["x-axis: vertically", "y-axis: horizontally"],),
}}
RETURN_TYPES = (IO.IMAGE,)
FUNCTION = "flip"
CATEGORY = "image/transform"
def flip(self, image, flip_method):
if flip_method.startswith("x"):
image = torch.flip(image, dims=[1])
elif flip_method.startswith("y"):
image = torch.flip(image, dims=[2])
return (image,)
class ImageScaleToMaxDimension:
upscale_methods = ["area", "lanczos", "bilinear", "nearest-exact", "bilinear", "bicubic"]
@classmethod
def INPUT_TYPES(s):
return {"required": {"image": ("IMAGE",),
"upscale_method": (s.upscale_methods,),
"largest_size": ("INT", {"default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 1})}}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "upscale"
CATEGORY = "image/upscaling"
def upscale(self, image, upscale_method, largest_size):
height = image.shape[1]
width = image.shape[2]
if height > width:
width = round((width / height) * largest_size)
height = largest_size
elif width > height:
height = round((height / width) * largest_size)
width = largest_size
else:
height = largest_size
width = largest_size
samples = image.movedim(-1, 1)
s = comfy.utils.common_upscale(samples, width, height, upscale_method, "disabled")
s = s.movedim(1, -1)
return (s,)
NODE_CLASS_MAPPINGS = {
"ImageCrop": ImageCrop,
"RepeatImageBatch": RepeatImageBatch,
"ImageFromBatch": ImageFromBatch,
"ImageAddNoise": ImageAddNoise,
"SaveAnimatedWEBP": SaveAnimatedWEBP,
"SaveAnimatedPNG": SaveAnimatedPNG,
"SaveSVGNode": SaveSVGNode,
"ImageStitch": ImageStitch,
"ResizeAndPadImage": ResizeAndPadImage,
"GetImageSize": GetImageSize,
"ImageRotate": ImageRotate,
"ImageFlip": ImageFlip,
"ImageScaleToMaxDimension": ImageScaleToMaxDimension,
}
@@ -0,0 +1,109 @@
import sys
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
class String(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveString",
display_name="String",
category="utils/primitive",
inputs=[
io.String.Input("value"),
],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, value: str) -> io.NodeOutput:
return io.NodeOutput(value)
class StringMultiline(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveStringMultiline",
display_name="String (Multiline)",
category="utils/primitive",
inputs=[
io.String.Input("value", multiline=True),
],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, value: str) -> io.NodeOutput:
return io.NodeOutput(value)
class Int(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveInt",
display_name="Int",
category="utils/primitive",
inputs=[
io.Int.Input("value", min=-sys.maxsize, max=sys.maxsize, control_after_generate=True),
],
outputs=[io.Int.Output()],
)
@classmethod
def execute(cls, value: int) -> io.NodeOutput:
return io.NodeOutput(value)
class Float(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveFloat",
display_name="Float",
category="utils/primitive",
inputs=[
io.Float.Input("value", min=-sys.maxsize, max=sys.maxsize),
],
outputs=[io.Float.Output()],
)
@classmethod
def execute(cls, value: float) -> io.NodeOutput:
return io.NodeOutput(value)
class Boolean(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="PrimitiveBoolean",
display_name="Boolean",
category="utils/primitive",
inputs=[
io.Boolean.Input("value"),
],
outputs=[io.Boolean.Output()],
)
@classmethod
def execute(cls, value: bool) -> io.NodeOutput:
return io.NodeOutput(value)
class PrimitivesExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
String,
StringMultiline,
Int,
Float,
Boolean,
]
async def comfy_entrypoint() -> PrimitivesExtension:
return PrimitivesExtension()
@@ -0,0 +1,212 @@
import folder_paths
import comfy.sd
import comfy.model_management
import nodes
import torch
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
from comfy_extras.nodes_slg import SkipLayerGuidanceDiT
class TripleCLIPLoader(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="TripleCLIPLoader",
category="advanced/loaders",
description="[Recipes]\n\nsd3: clip-l, clip-g, t5",
inputs=[
io.Combo.Input("clip_name1", options=folder_paths.get_filename_list("text_encoders")),
io.Combo.Input("clip_name2", options=folder_paths.get_filename_list("text_encoders")),
io.Combo.Input("clip_name3", options=folder_paths.get_filename_list("text_encoders")),
],
outputs=[
io.Clip.Output(),
],
)
@classmethod
def execute(cls, clip_name1, clip_name2, clip_name3) -> io.NodeOutput:
clip_path1 = folder_paths.get_full_path_or_raise("text_encoders", clip_name1)
clip_path2 = folder_paths.get_full_path_or_raise("text_encoders", clip_name2)
clip_path3 = folder_paths.get_full_path_or_raise("text_encoders", clip_name3)
clip = comfy.sd.load_clip(ckpt_paths=[clip_path1, clip_path2, clip_path3], embedding_directory=folder_paths.get_folder_paths("embeddings"))
return io.NodeOutput(clip)
load_clip = execute # TODO: remove
class EmptySD3LatentImage(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="EmptySD3LatentImage",
category="latent/sd3",
inputs=[
io.Int.Input("width", default=1024, min=16, max=nodes.MAX_RESOLUTION, step=16),
io.Int.Input("height", default=1024, min=16, max=nodes.MAX_RESOLUTION, step=16),
io.Int.Input("batch_size", default=1, min=1, max=4096),
],
outputs=[
io.Latent.Output(),
],
)
@classmethod
def execute(cls, width, height, batch_size=1) -> io.NodeOutput:
latent = torch.zeros([batch_size, 16, height // 8, width // 8], device=comfy.model_management.intermediate_device())
return io.NodeOutput({"samples":latent})
generate = execute # TODO: remove
class CLIPTextEncodeSD3(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="CLIPTextEncodeSD3",
category="advanced/conditioning",
inputs=[
io.Clip.Input("clip"),
io.String.Input("clip_l", multiline=True, dynamic_prompts=True),
io.String.Input("clip_g", multiline=True, dynamic_prompts=True),
io.String.Input("t5xxl", multiline=True, dynamic_prompts=True),
io.Combo.Input("empty_padding", options=["none", "empty_prompt"]),
],
outputs=[
io.Conditioning.Output(),
],
)
@classmethod
def execute(cls, clip, clip_l, clip_g, t5xxl, empty_padding) -> io.NodeOutput:
no_padding = empty_padding == "none"
tokens = clip.tokenize(clip_g)
if len(clip_g) == 0 and no_padding:
tokens["g"] = []
if len(clip_l) == 0 and no_padding:
tokens["l"] = []
else:
tokens["l"] = clip.tokenize(clip_l)["l"]
if len(t5xxl) == 0 and no_padding:
tokens["t5xxl"] = []
else:
tokens["t5xxl"] = clip.tokenize(t5xxl)["t5xxl"]
if len(tokens["l"]) != len(tokens["g"]):
empty = clip.tokenize("")
while len(tokens["l"]) < len(tokens["g"]):
tokens["l"] += empty["l"]
while len(tokens["l"]) > len(tokens["g"]):
tokens["g"] += empty["g"]
return io.NodeOutput(clip.encode_from_tokens_scheduled(tokens))
encode = execute # TODO: remove
class ControlNetApplySD3(io.ComfyNode):
@classmethod
def define_schema(cls) -> io.Schema:
return io.Schema(
node_id="ControlNetApplySD3",
display_name="Apply Controlnet with VAE",
category="conditioning/controlnet",
inputs=[
io.Conditioning.Input("positive"),
io.Conditioning.Input("negative"),
io.ControlNet.Input("control_net"),
io.Vae.Input("vae"),
io.Image.Input("image"),
io.Float.Input("strength", default=1.0, min=0.0, max=10.0, step=0.01),
io.Float.Input("start_percent", default=0.0, min=0.0, max=1.0, step=0.001),
io.Float.Input("end_percent", default=1.0, min=0.0, max=1.0, step=0.001),
],
outputs=[
io.Conditioning.Output(display_name="positive"),
io.Conditioning.Output(display_name="negative"),
],
is_deprecated=True,
)
@classmethod
def execute(cls, positive, negative, control_net, image, strength, start_percent, end_percent, vae=None) -> io.NodeOutput:
if strength == 0:
return io.NodeOutput(positive, negative)
control_hint = image.movedim(-1, 1)
cnets = {}
out = []
for conditioning in [positive, negative]:
c = []
for t in conditioning:
d = t[1].copy()
prev_cnet = d.get('control', None)
if prev_cnet in cnets:
c_net = cnets[prev_cnet]
else:
c_net = control_net.copy().set_cond_hint(control_hint, strength, (start_percent, end_percent),
vae=vae, extra_concat=[])
c_net.set_previous_controlnet(prev_cnet)
cnets[prev_cnet] = c_net
d['control'] = c_net
d['control_apply_to_uncond'] = False
n = [t[0], d]
c.append(n)
out.append(c)
return io.NodeOutput(out[0], out[1])
apply_controlnet = execute # TODO: remove
class SkipLayerGuidanceSD3(io.ComfyNode):
'''
Enhance guidance towards detailed dtructure by having another set of CFG negative with skipped layers.
Inspired by Perturbed Attention Guidance (https://arxiv.org/abs/2403.17377)
Experimental implementation by Dango233@StabilityAI.
'''
@classmethod
def define_schema(cls):
return io.Schema(
node_id="SkipLayerGuidanceSD3",
category="advanced/guidance",
description="Generic version of SkipLayerGuidance node that can be used on every DiT model.",
inputs=[
io.Model.Input("model"),
io.String.Input("layers", default="7, 8, 9", multiline=False),
io.Float.Input("scale", default=3.0, min=0.0, max=10.0, step=0.1),
io.Float.Input("start_percent", default=0.01, min=0.0, max=1.0, step=0.001),
io.Float.Input("end_percent", default=0.15, min=0.0, max=1.0, step=0.001),
],
outputs=[
io.Model.Output(),
],
is_experimental=True,
)
@classmethod
def execute(cls, model, layers, scale, start_percent, end_percent) -> io.NodeOutput:
return SkipLayerGuidanceDiT().execute(model=model, scale=scale, start_percent=start_percent, end_percent=end_percent, double_layers=layers)
skip_guidance_sd3 = execute # TODO: remove
class SD3Extension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
TripleCLIPLoader,
EmptySD3LatentImage,
CLIPTextEncodeSD3,
ControlNetApplySD3,
SkipLayerGuidanceSD3,
]
async def comfy_entrypoint() -> SD3Extension:
return SD3Extension()
@@ -0,0 +1,385 @@
import re
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
class StringConcatenate(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringConcatenate",
display_name="Concatenate",
category="utils/string",
inputs=[
io.String.Input("string_a", multiline=True),
io.String.Input("string_b", multiline=True),
io.String.Input("delimiter", multiline=False, default=""),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string_a, string_b, delimiter):
return io.NodeOutput(delimiter.join((string_a, string_b)))
class StringSubstring(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringSubstring",
display_name="Substring",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.Int.Input("start"),
io.Int.Input("end"),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, start, end):
return io.NodeOutput(string[start:end])
class StringLength(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringLength",
display_name="Length",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
],
outputs=[
io.Int.Output(display_name="length"),
]
)
@classmethod
def execute(cls, string):
return io.NodeOutput(len(string))
class CaseConverter(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="CaseConverter",
display_name="Case Converter",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.Combo.Input("mode", options=["UPPERCASE", "lowercase", "Capitalize", "Title Case"]),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, mode):
if mode == "UPPERCASE":
result = string.upper()
elif mode == "lowercase":
result = string.lower()
elif mode == "Capitalize":
result = string.capitalize()
elif mode == "Title Case":
result = string.title()
else:
result = string
return io.NodeOutput(result)
class StringTrim(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringTrim",
display_name="Trim",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.Combo.Input("mode", options=["Both", "Left", "Right"]),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, mode):
if mode == "Both":
result = string.strip()
elif mode == "Left":
result = string.lstrip()
elif mode == "Right":
result = string.rstrip()
else:
result = string
return io.NodeOutput(result)
class StringReplace(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringReplace",
display_name="Replace",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("find", multiline=True),
io.String.Input("replace", multiline=True),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, find, replace):
return io.NodeOutput(string.replace(find, replace))
class StringContains(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringContains",
display_name="Contains",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("substring", multiline=True),
io.Boolean.Input("case_sensitive", default=True),
],
outputs=[
io.Boolean.Output(display_name="contains"),
]
)
@classmethod
def execute(cls, string, substring, case_sensitive):
if case_sensitive:
contains = substring in string
else:
contains = substring.lower() in string.lower()
return io.NodeOutput(contains)
class StringCompare(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="StringCompare",
display_name="Compare",
category="utils/string",
inputs=[
io.String.Input("string_a", multiline=True),
io.String.Input("string_b", multiline=True),
io.Combo.Input("mode", options=["Starts With", "Ends With", "Equal"]),
io.Boolean.Input("case_sensitive", default=True),
],
outputs=[
io.Boolean.Output(),
]
)
@classmethod
def execute(cls, string_a, string_b, mode, case_sensitive):
if case_sensitive:
a = string_a
b = string_b
else:
a = string_a.lower()
b = string_b.lower()
if mode == "Equal":
return io.NodeOutput(a == b)
elif mode == "Starts With":
return io.NodeOutput(a.startswith(b))
elif mode == "Ends With":
return io.NodeOutput(a.endswith(b))
class RegexMatch(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexMatch",
display_name="Regex Match",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.Boolean.Input("case_insensitive", default=True),
io.Boolean.Input("multiline", default=False),
io.Boolean.Input("dotall", default=False),
],
outputs=[
io.Boolean.Output(display_name="matches"),
]
)
@classmethod
def execute(cls, string, regex_pattern, case_insensitive, multiline, dotall):
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
try:
match = re.search(regex_pattern, string, flags)
result = match is not None
except re.error:
result = False
return io.NodeOutput(result)
class RegexExtract(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexExtract",
display_name="Regex Extract",
category="utils/string",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.Combo.Input("mode", options=["First Match", "All Matches", "First Group", "All Groups"]),
io.Boolean.Input("case_insensitive", default=True),
io.Boolean.Input("multiline", default=False),
io.Boolean.Input("dotall", default=False),
io.Int.Input("group_index", default=1, min=0, max=100),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, regex_pattern, mode, case_insensitive, multiline, dotall, group_index):
join_delimiter = "\n"
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
try:
if mode == "First Match":
match = re.search(regex_pattern, string, flags)
if match:
result = match.group(0)
else:
result = ""
elif mode == "All Matches":
matches = re.findall(regex_pattern, string, flags)
if matches:
if isinstance(matches[0], tuple):
result = join_delimiter.join([m[0] for m in matches])
else:
result = join_delimiter.join(matches)
else:
result = ""
elif mode == "First Group":
match = re.search(regex_pattern, string, flags)
if match and len(match.groups()) >= group_index:
result = match.group(group_index)
else:
result = ""
elif mode == "All Groups":
matches = re.finditer(regex_pattern, string, flags)
results = []
for match in matches:
if match.groups() and len(match.groups()) >= group_index:
results.append(match.group(group_index))
result = join_delimiter.join(results)
else:
result = ""
except re.error:
result = ""
return io.NodeOutput(result)
class RegexReplace(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="RegexReplace",
display_name="Regex Replace",
category="utils/string",
description="Find and replace text using regex patterns.",
inputs=[
io.String.Input("string", multiline=True),
io.String.Input("regex_pattern", multiline=True),
io.String.Input("replace", multiline=True),
io.Boolean.Input("case_insensitive", default=True, optional=True),
io.Boolean.Input("multiline", default=False, optional=True),
io.Boolean.Input("dotall", default=False, optional=True, tooltip="When enabled, the dot (.) character will match any character including newline characters. When disabled, dots won't match newlines."),
io.Int.Input("count", default=0, min=0, max=100, optional=True, tooltip="Maximum number of replacements to make. Set to 0 to replace all occurrences (default). Set to 1 to replace only the first match, 2 for the first two matches, etc."),
],
outputs=[
io.String.Output(),
]
)
@classmethod
def execute(cls, string, regex_pattern, replace, case_insensitive=True, multiline=False, dotall=False, count=0):
flags = 0
if case_insensitive:
flags |= re.IGNORECASE
if multiline:
flags |= re.MULTILINE
if dotall:
flags |= re.DOTALL
result = re.sub(regex_pattern, replace, string, count=count, flags=flags)
return io.NodeOutput(result)
class StringExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
StringConcatenate,
StringSubstring,
StringLength,
CaseConverter,
StringTrim,
StringReplace,
StringContains,
StringCompare,
RegexMatch,
RegexExtract,
RegexReplace,
]
async def comfy_entrypoint() -> StringExtension:
return StringExtension()

Some files were not shown because too many files have changed in this diff Show More