HEL-892: document four watermark branches with pinned static sources

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-30 21:08:43 +08:00
co-authored by multica-agent
parent 11938ca837
commit 459d7fd866
111 changed files with 47013 additions and 14 deletions
@@ -15,6 +15,10 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
DEFINITIONS = {
(
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
"分离-视频截取合并-图像视频放大/图像4种添加水印节点.json"
): "1fe4c97b9f7f7576b894041f7ab166fb0ed13e0fcc86a4b371638dc2770d995e",
(
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
"分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json"
File diff suppressed because it is too large Load Diff
@@ -190,6 +190,8 @@ def test_ten_documents_only_gain_overview_and_new_block_is_independent():
p = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ec3388a:" + p], cwd=REPO))
now = json.loads((REPO / p).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
# Freeze the historical eleven-document revision; the two grid additions are
@@ -218,7 +220,7 @@ def test_ten_documents_only_gain_overview_and_new_block_is_independent():
assert len(additions) == 12
for p in additions:
now[p].pop("fixed_version_document")
historical = [p for p in DEFINITIONS if p not in additions and p != birefnet]
historical = [p for p in DEFINITIONS if p not in additions and p not in [birefnet, watermark]]
assert len(historical) == 11
for path in historical:
block = now[path]["fixed_version_document"]
@@ -174,8 +174,10 @@ def test_actual_graph_counts_pointers_notes_unknowns_and_old_objects():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "6e1e47b:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
b = now[PATHS[0]].pop("fixed_version_document")
assert now == old and len(DEFINITIONS) == 24
assert now == old and len(DEFINITIONS) == 25
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]
@@ -162,6 +162,8 @@ def test_actual_paths_counts_old_objects_and_media_conditions():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "d1ba226:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
@@ -170,7 +172,7 @@ def test_actual_paths_counts_old_objects_and_media_conditions():
now[later].pop("fixed_version_document")
b = now[PATHS[0]].pop("fixed_version_document")
d = doc(0)
assert now == old and len(DEFINITIONS) == 24
assert now == old and len(DEFINITIONS) == 25
assert d["fixed_version"]["matched"] and len(b["fields"]) == 42
assert b["comments"] == [] and b["counts"]["history_objects"] == 3
assert b["counts"]["scalar_saved_positions"] == 39
@@ -203,7 +203,7 @@ def test_graph_specific_semantics_and_companion():
def test_other_documents_and_block_swaps():
assert len(DEFINITIONS) == 24
assert len(DEFINITIONS) == 25
for path in DEFINITIONS:
if path == PATH:
continue
@@ -162,12 +162,14 @@ def test_exact_graph_versions_and_preservation():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "9db8857:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
b = now[PATHS[0]].pop("fixed_version_document")
assert now == old and len(DEFINITIONS) == 24
assert now == old and len(DEFINITIONS) == 25
assert len(b["fields"]) == 31 and b["counts"]["history_objects"] == 3
assert b["counts"]["scalar_saved_positions"] == 28
assert b["comments"] == [] and b["counts"]["linked_saved_fields"] == 0
@@ -153,6 +153,8 @@ def test_real_document_and_frozen_old_thirteen_blocks():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "9dac1b4:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
@@ -176,7 +178,7 @@ def test_real_document_and_frozen_old_thirteen_blocks():
# SDPose is independently frozen against 7291887 in its own suite.
sdpose = next(p for p in now if p.endswith("sdpose_视频人物姿势骨架提取.json"))
now[sdpose].pop("fixed_version_document")
assert len(now) == 156 and len(DEFINITIONS) == 24
assert len(now) == 156 and len(DEFINITIONS) == 25
assert len([r for r in old.values() if "fixed_version_document" in r]) == 13
assert (
sum(
@@ -136,6 +136,8 @@ def test_actual_paths_counts_old_objects_and_media_conditions():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ae625ac:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
@@ -157,7 +159,7 @@ def test_actual_paths_counts_old_objects_and_media_conditions():
assert all(step in d["steps"] for step in b["steps"])
added = next(p for p in now if p.endswith("双图像或视频合并显示.json"))
now[added].pop("fixed_version_document")
assert now == old and len(DEFINITIONS) == 24
assert now == old and len(DEFINITIONS) == 25
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
assert len(blocks) == 18 and sum(len(b["fields"]) for b in blocks) == 516
gif = doc(0)["fixed_version"]
@@ -171,6 +171,8 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "27e6d56:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
@@ -197,7 +199,7 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved():
# Gemma addition is independently protected against 9dac1b4 in its own suite.
gemma = next(p for p in now if p.endswith("gemma4_提示词反推(图像视频音频).json"))
now[gemma].pop("fixed_version_document")
assert len(DEFINITIONS) == 24
assert len(DEFINITIONS) == 25
assert (
sum(
len(r["fixed_version_document"]["fields"])
@@ -162,10 +162,12 @@ def test_exact_graph_versions_and_preservation():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "256e6be:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
b = now[PATHS[0]].pop("fixed_version_document")
assert now == old and len(DEFINITIONS) == 24
assert now == old and len(DEFINITIONS) == 25
assert b["counts"] == dict(
saved_fields=13,
scalar_saved_positions=12,
@@ -260,6 +260,8 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "7e76510:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
@@ -277,7 +279,7 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects():
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 24
assert now == old and len(DEFINITIONS) == 25
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]
@@ -288,6 +290,8 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects():
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for p in DEFINITIONS:
if p == watermark:
continue
if p.endswith("/birefnet_图像移除背景.json"):
continue
if p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")):
@@ -202,6 +202,8 @@ def test_exact_document_topology_and_preservation():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO))
current = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in current if p.endswith("/图像4种添加水印节点.json"))
current[watermark].pop("fixed_version_document")
birefnet = next(p for p in current if p.endswith("/birefnet_图像移除背景.json"))
current[birefnet].pop("fixed_version_document")
latent = next(p for p in current if p.endswith("/加载本地latent解码.json"))
@@ -221,7 +223,7 @@ def test_exact_document_topology_and_preservation():
nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json"))
current[nlf].pop("fixed_version_document")
assert current[PATH].pop("fixed_version_document") == BLOCK
assert current == previous and len(DEFINITIONS) == 24
assert current == previous and len(DEFINITIONS) == 25
old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r]
assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394
assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note
@@ -229,6 +231,8 @@ def test_exact_document_topology_and_preservation():
assert d["dependencies"]["check_state"] == "unchecked"
assert not doc(path="untrusted.json").get("fixed_version")
for p in DEFINITIONS:
if p == watermark:
continue
if p.endswith("/birefnet_图像移除背景.json"):
continue
if p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")):
@@ -213,6 +213,8 @@ def test_exact_graph_and_original_seventeen_unchanged():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
for added in [
@@ -230,7 +232,7 @@ def test_exact_graph_and_original_seventeen_unchanged():
]:
now[added].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 24
assert now == old and len(DEFINITIONS) == 25
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
assert len(blocks) == 17 and sum(len(b["fields"]) for b in blocks) == 495
assert (
@@ -239,6 +241,8 @@ def test_exact_graph_and_original_seventeen_unchanged():
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for p in DEFINITIONS:
if p == watermark:
continue
if p.endswith("/birefnet_图像移除背景.json"):
continue
if p.endswith(
@@ -154,6 +154,7 @@ def test_real_document_and_frozen_old_fourteen_blocks():
p
for p in DEFINITIONS
if p != PATH
and not p.endswith("/图像4种添加水印节点.json")
and not p.endswith("/birefnet_图像移除背景.json")
and not p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json"))
and not p.endswith(
@@ -162,6 +163,8 @@ def test_real_document_and_frozen_old_fourteen_blocks():
)
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
@@ -189,7 +192,7 @@ def test_real_document_and_frozen_old_fourteen_blocks():
assert not doc(review=review)["fixed_version"]["matched"]
now[openpose].pop("fixed_version_document")
old = json.loads(subprocess.check_output(["git", "show", "7291887:" + resource], cwd=REPO))
assert len(now) == 156 and len(DEFINITIONS) == 24
assert len(now) == 156 and len(DEFINITIONS) == 25
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]
@@ -0,0 +1,297 @@
"""One editorial addition: identity refusal, exact positions and media conditions."""
import copy
import hashlib
import json
import subprocess
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/watermark-document-evidence"
PATHS = [next(p for p in DEFINITIONS if p.endswith(n + ".json")) for n in ["图像4种添加水印节点"]]
SOURCES = [json.loads((REPO / p).read_bytes()) for p in PATHS]
REVIEWS = [review_for(p, hashlib.sha1((REPO / p).read_bytes()).hexdigest()) for p in PATHS]
FIELDS = [(i, f) for i, r in enumerate(REVIEWS) for f in r["fixed_version_document"]["fields"]]
def pointer(obj, path):
for part in path.strip("/").split("/"):
obj = obj[int(part)] if isinstance(obj, list) else obj[part]
return obj
def doc(i, source=None, review=None):
return build_document(
PATHS[i],
SOURCES[i] if source is None else source,
None,
None,
[],
REVIEWS[i] if review is None else review,
)
@pytest.mark.parametrize("i,field", FIELDS)
def test_exact_positions_and_fixed_text_citations(i, field):
value = pointer(SOURCES[i], field["pointer"])
assert (
canonical(value) == canonical(field["value"]) and type(value).__name__ == field["json_type"]
)
for k in [
"label",
"type",
"schema_default",
"unit",
"limits",
"effect",
"execution_note",
"role",
]:
assert field[k]
for k in field["evidence"]:
e = REVIEWS[i]["fixed_version_document"]["sources"][k]
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())
assert (len(e["commit"]) == 40 and e["commit"] in e["url"]) or e.get(
"git_commit_binding"
) == "unknown"
@pytest.mark.parametrize("i,field", FIELDS)
@pytest.mark.parametrize("variant", ["saved", "type", "text"])
def test_every_position_refuses_even_recomputed_caller_digest(i, field, variant):
s, r = copy.deepcopy(SOURCES[i]), copy.deepcopy(REVIEWS[i])
b = r["fixed_version_document"]
f = next(f for f in b["fields"] if f["pointer"] == field["pointer"])
if variant == "text":
f["schema_default"] = "forged"
else:
parent, _, key = field["pointer"].rpartition("/")
target = pointer(s, parent)
target[int(key) if isinstance(target, list) else key] = (
"forged" if variant == "type" else ("changed-null" if field["value"] is None else None)
)
f["value"] = pointer(s, field["pointer"])
f["json_type"] = type(f["value"]).__name__
b["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
r["caller_digest"] = hashlib.sha256(canonical(b)).hexdigest()
assert not doc(i, s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize("node", [1, 12, 5, 6, 20, 16, 17, 10, 7, 14, 8, 9, 15, 11, 13, 3, 2])
@pytest.mark.parametrize("kind", ["mode", "ver", "cnr", "ue"])
def test_each_identity_and_mode_refuses_recomputed_digest(node, kind):
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
n = next(n for n in s["nodes"] if n["id"] == node)
if kind == "mode":
n["mode"] = 2
elif kind == "ue":
n["properties"]["ue_properties"]["version"] = "forged"
else:
n["properties"]["ver" if kind == "ver" else "cnr_id"] = "forged"
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
assert not doc(0, s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize("node", [1, 16, 17, 7, 8, 9, 15, 11, 13])
@pytest.mark.parametrize("kind", ["missing", "null", "object"])
def test_zero_positions_are_not_missing_null_or_object(node, kind):
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
n = next(n for n in s["nodes"] if n["id"] == node)
if kind == "missing":
del n["widgets_values"]
else:
n["widgets_values"] = None if kind == "null" else {}
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
assert not doc(0, s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize("edge", range(15))
@pytest.mark.parametrize("side", ["input", "output", "physical"])
def test_each_physical_and_dual_endpoint_refuses(edge, side):
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
e = s["links"][edge]
nodes = {n["id"]: n for n in s["nodes"]}
if side == "input":
nodes[e[3]]["inputs"][e[4]]["link"] = None
elif side == "output":
nodes[e[1]]["outputs"][e[2]]["links"].remove(e[0])
else:
e[1] = 999
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
assert not doc(0, s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize(
"kind",
[
"source_sha",
"citation",
"frontend",
"ue",
"swap",
"unconnected_mask",
"wrong_path",
"seed",
"image",
"logo",
"font",
],
)
def test_references_and_binding_fail_closed(kind):
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
nodes = {n["id"]: n for n in s["nodes"]}
if kind == "source_sha":
r["source_sha"] = "0" * 40
elif kind == "citation":
r["fixed_version_document"]["sources"][0]["sha256"] = "0" * 64
elif kind == "frontend":
s["extra"]["frontendVersion"] = "1.43.17"
elif kind == "ue":
s["extra"]["links_added_by_ue"] = [1]
elif kind == "swap":
other = next(p for p in DEFINITIONS if p.endswith("/birefnet_图像移除背景.json"))
r = copy.deepcopy(review_for(other, hashlib.sha1((REPO / other).read_bytes()).hexdigest()))
elif kind == "unconnected_mask":
nodes[5]["outputs"][1]["links"] = []
elif kind == "wrong_path":
r["fixed_version_document"]["source_path"] = "forged"
elif kind == "seed":
nodes[20]["widgets_values"][5] = "fixed"
elif kind == "image":
nodes[6]["widgets_values"][0] = nodes[5]["widgets_values"][0]
elif kind == "logo":
nodes[20]["widgets_values"][13] = "None"
else:
nodes[3]["widgets_values"][3] = "forged.ttf"
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
r["caller_digest"] = hashlib.sha256(canonical(r["fixed_version_document"])).hexdigest()
assert not doc(0, s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize("node", [12, 14])
@pytest.mark.parametrize("variant", [[], None, {}])
def test_reroute_missing_key_is_not_zero_or_null(node, variant):
s, r = copy.deepcopy(SOURCES[0]), copy.deepcopy(REVIEWS[0])
next(n for n in s["nodes"] if n["id"] == node)["widgets_values"] = variant
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
assert not doc(0, s, r)["fixed_version"]["matched"]
def test_exact_graph_semantics_and_old_24_objects():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "11938ca:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
block = now[PATHS[0]].pop("fixed_version_document")
assert now == old and len(DEFINITIONS) == 25
oldblocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
assert len(oldblocks) == 24 and sum(len(b["fields"]) for b in oldblocks) == 665
assert sum(len(b.get("comments", [])) for b in oldblocks) == 15 # ASR source note independent
assert block["counts"] == dict(
saved_fields=56,
scalar_saved_positions=56,
history_objects=0,
source_nodes=17,
physical_edges=15,
source_notes=0,
linked_saved_fields=0,
frontend_only=4,
final_scalars=0,
final_prompt_constructed=False,
)
g = SOURCES[0]
ns = {n["id"]: n for n in g["nodes"]}
assert len(ns) == 17 and len(g["links"]) == 15 and all(n["mode"] == 0 for n in ns.values())
assert {i for i, n in ns.items() if "widgets_values" not in n} == {12, 14}
assert {i for i, n in ns.items() if n.get("widgets_values") == []} == {
1,
8,
16,
7,
9,
11,
13,
15,
17,
}
assert sum(len(n.get("widgets_values", [])) for n in ns.values()) == 56
assert (
"frontendVersion" not in g["extra"]
and g["extra"]["ue_links"] == g["extra"]["links_added_by_ue"] == []
)
assert len(block["zero_saved_nodes"]) == 9 and not block["comments"]
assert len({f["pointer"] for f in block["fields"]}) == 56
assert ns[20]["widgets_values"][4:7] == [166434517983310, "randomize", True]
assert [f["field"] for f in block["fields"] if f["node_id"] == "20"][4:7] == [
"seed",
"control_after_generate",
"use_exif",
]
assert g["links"] == [
[4, 1, 0, 7, 0, "IMAGE"],
[6, 8, 0, 9, 0, "IMAGE"],
[8, 1, 0, 8, 0, "IMAGE"],
[10, 3, 0, 11, 0, "IMAGE"],
[11, 5, 0, 12, 0, "IMAGE"],
[13, 12, 0, 3, 0, "IMAGE"],
[14, 12, 0, 2, 0, "IMAGE"],
[16, 2, 0, 13, 0, "IMAGE"],
[17, 6, 0, 14, 0, "IMAGE"],
[22, 10, 0, 16, 0, "IMAGE"],
[23, 16, 0, 17, 0, "IMAGE"],
[28, 12, 0, 20, 0, "IMAGE"],
[29, 20, 0, 15, 0, "IMAGE"],
[30, 12, 0, 1, 0, "IMAGE"],
[31, 14, 0, 1, 1, "IMAGE"],
]
for eid, origin, slot, target, inp, typ in g["links"]:
assert eid in ns[origin]["outputs"][slot]["links"]
assert ns[origin]["outputs"][slot]["type"] == typ
assert ns[target]["inputs"][inp]["link"] == eid
assert ns[target]["inputs"][inp]["type"] == ("*" if target in [12, 14] else typ)
assert all(ns[i]["outputs"][1]["links"] is None for i in [5, 6, 10])
assert ns[3]["outputs"][1]["links"] is None
assert next(i for i in ns[20]["inputs"] if i["name"] == "exif_data")["link"] is None
assert next(i for i in ns[2]["inputs"] if i["name"] == "水印图像")["link"] is None
d = doc(0)
assert d["fixed_version"]["matched"]
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for token in [
"不是四种叠加",
"独立提取",
"外线未接",
"false仍旋转",
"间距22",
"temp PNG",
"unknown",
"没有frontendVersion",
"compression_ratio=100",
"YCbCr",
"wm_size",
"bar_width",
"白",
"randomize",
]:
assert token in json.dumps(block, ensure_ascii=False)
@pytest.mark.parametrize("other", [p for p in DEFINITIONS if p not in PATHS])
def test_every_old_block_and_new_block_cannot_be_swapped(other):
raw = (REPO / other).read_bytes()
old_source = json.loads(raw)
old_review = copy.deepcopy(review_for(other, hashlib.sha1(raw).hexdigest()))
new_review = copy.deepcopy(REVIEWS[0])
old_block = old_review["fixed_version_document"]
old_review["fixed_version_document"] = new_review["fixed_version_document"]
new_review["fixed_version_document"] = old_block
assert not doc(0, review=new_review)["fixed_version"]["matched"]
assert not build_document(other, old_source, None, None, [], old_review)["fixed_version"][
"matched"
]
@@ -0,0 +1,2 @@
__pycache__/
*.pyc
@@ -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,425 @@
........................................................................ [ 16%]
........................................................................ [ 33%]
........................................................................ [ 50%]
........................................................................ [ 66%]
........................................................................ [ 83%]
................................................................FFF..FF. [100%]
=================================== FAILURES ===================================
______________ test_exact_graph_and_original_seventeen_unchanged _______________
def test_exact_graph_and_original_seventeen_unchanged():
d = doc()
assert d["fixed_version"]["matched"]
assert len(BLOCK["fields"]) == 21 and BLOCK["comments"] == []
assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2
nodes = {n["id"]: n for n in SOURCE["nodes"]}
assert {k: len(n["widgets_values"]) for k, n in nodes.items()} == {20: 0, 21: 11, 1: 10, 15: 0}
assert all(n["mode"] == 0 for n in nodes.values())
assert "frontendVersion" not in SOURCE["extra"] and "definitions" not in SOURCE
assert SOURCE["links"] == [
[15, 1, 0, 20, 0, "IMAGE"],
[16, 20, 0, 15, 0, "IMAGE"],
[17, 20, 0, 21, 0, "IMAGE"],
[18, 1, 2, 21, 1, "AUDIO"],
]
for eid, origin, slot, target, inp, typ in SOURCE["links"]:
assert eid in nodes[origin]["outputs"][slot]["links"]
assert nodes[origin]["outputs"][slot]["type"] == typ
assert nodes[target]["inputs"][inp]["link"] == eid
assert nodes[target]["inputs"][inp]["type"] == typ
fields = {(f["node_id"], f["field"]): f for f in BLOCK["fields"]}
assert fields["1", "force_rate"]["value"] == fields["21", "frame_rate"]["value"] == 16
assert fields["1", "force_rate"]["json_type"] == "int"
assert fields["1", "choose video to upload"]["role"] == "frontend_control"
assert all(
f["role"] == "frontend_history" for f in BLOCK["fields"] if f["field"] == "videopreview"
)
text = "".join(BLOCK["flow"])
for token in [
"音频link18",
"绕过Reverse20",
"torch.flip(images,[0])",
"没有frontendVersion",
"-shortest",
"RETURN_TYPES",
"未接",
"历史",
"未知",
"内存",
"VHS1.7.7",
]:
assert token in text
assert not BLOCK["counts"]["final_prompt_constructed"]
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
for added in [
p
for p in now
if p.endswith(
(
"视频转gif动图图片.json",
"加载图片合成视频.json",
"双图像或视频合并显示.json",
"截取视频每一帧.json",
"加载本地latent解码.json",
)
)
]:
now[added].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 25
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
assert len(blocks) == 17 and sum(len(b["fields"]) for b in blocks) == 495
assert (
sum(len(b.get("comments", [])) for b in blocks) == 14
) # ASR historical note counted separately
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for p in DEFINITIONS:
if p.endswith("/birefnet_图像移除背景.json"):
continue
if p.endswith(
(
"视频转gif动图图片.json",
"加载图片合成视频.json",
"双图像或视频合并显示.json",
"截取视频每一帧.json",
"加载本地latent解码.json",
)
):
continue
if p == PATH:
continue
r = copy.deepcopy(REVIEW)
> r["fixed_version_document"] = old[p]["fixed_version_document"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'fixed_version_document'
calliope-backend/tests/test_reverse_fixed_document.py:259: KeyError
__________ test_exact_topology_counts_modes_unknowns_and_old_objects ___________
def test_exact_topology_counts_modes_unknowns_and_old_objects():
d = doc()
assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
assert len(BLOCK["fields"]) == 74 and len(BLOCK["comments"]) == 0
assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 3
assert sum(f["value"] is None for f in BLOCK["fields"]) == 1
assert sum(f["role"] == "unknown_saved" for f in BLOCK["fields"]) == 7
expected = {
203: 1,
334: 1,
340: 1,
137: 11,
339: 1,
373: 11,
364: 3,
362: 7,
363: 0,
106: 2,
374: 9,
370: 1,
130: 9,
208: 1,
376: 1,
375: 9,
365: 0,
335: 2,
372: 4,
}
nodes = {n["id"]: n for n in SOURCE["nodes"]}
assert {nid: len(n["widgets_values"]) for nid, n in nodes.items()} == expected
assert {nid for nid, n in nodes.items() if n["mode"] == 4} == {106, 375, 365}
assert len(SOURCE["links"]) == 22 and "definitions" not in SOURCE
assert [e[0] for e in SOURCE["links"]] == [
570,
621,
623,
624,
625,
627,
629,
648,
650,
651,
653,
654,
655,
656,
657,
658,
659,
660,
661,
662,
663,
665,
]
for eid, origin, slot, target, inp, typ in SOURCE["links"]:
assert eid in nodes[origin]["outputs"][slot]["links"]
assert nodes[target]["inputs"][inp]["link"] == eid
assert nodes[target]["inputs"][inp]["type"] == (
{648: "INT", 661: "INT,FLOAT", 662: "INT,FLOAT"}.get(eid, typ)
)
text = "".join(BLOCK["flow"])
assert all(
t in text
for t in [
"没有warmup",
"没有per_batch",
"round(result)",
"两Combine.audio都未接",
"临时目录",
"UE",
"mode4",
"0新源注释",
"冲突不抹平",
"taichi",
"提供方",
"未实跑",
]
)
assert not BLOCK["counts"]["final_prompt_constructed"]
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "7e76510:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
now[later].pop("fixed_version_document")
for added in [
p
for p in now
if p.endswith(
("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json")
)
]:
now[added].pop("fixed_version_document")
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 25
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]
assert len(old_blocks) == 16 and sum(len(b["fields"]) for b in old_blocks) == 421
assert (
sum(len(b.get("comments", [])) for b in old_blocks) == 14
) # separate historical ASR flow note
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for p in DEFINITIONS:
if p.endswith("/birefnet_图像移除背景.json"):
continue
if p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")):
continue
if p.endswith(
("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json")
):
continue
if p == PATH or p.endswith("/视频倒放.json"):
continue
r = copy.deepcopy(REVIEW)
> r["fixed_version_document"] = old[p]["fixed_version_document"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'fixed_version_document'
calliope-backend/tests/test_nlf_fixed_document.py:304: KeyError
________________ test_exact_document_topology_and_preservation _________________
def test_exact_document_topology_and_preservation():
d = doc()
assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
assert len(BLOCK["fields"]) == 27 and len(BLOCK["comments"]) == 1
assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2
assert len(SOURCE["nodes"]) == 5 and len(SOURCE["links"]) == 4
assert SOURCE["links"] == [
[4, 1, 0, 4, 0, "IMAGE"],
[10, 2, 0, 1, 0, "IMAGE"],
[11, 2, 3, 9, 0, "VHS_VIDEOINFO"],
[12, 9, 0, 4, 4, "FLOAT"],
]
nodes = {n["id"]: n for n in SOURCE["nodes"]}
for edge, origin, slot, target, inp, typ in SOURCE["links"]:
assert edge in nodes[origin]["outputs"][slot]["links"]
assert nodes[target]["inputs"][inp]["link"] == edge
assert nodes[target]["inputs"][inp]["type"] == typ
assert nodes[9]["widgets_values"] == {} and type(nodes[9]["widgets_values"]) is dict
assert all(n["mode"] == 0 for n in SOURCE["nodes"])
assert pointer(SOURCE, BLOCK["comments"][0]["pointer"]) == BLOCK["comments"][0]["text"]
assert not BLOCK["counts"]["final_prompt_constructed"]
assert all(
s in "".join(BLOCK["flow"])
for s in [
"未实跑",
"包同字节不等于提交绑定",
"loaded_fps",
"外线覆盖",
"音频",
"UE7.5.2",
"空对象",
"不是缺键/null/[]",
]
)
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO))
current = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in current if p.endswith("/图像4种添加水印节点.json"))
current[watermark].pop("fixed_version_document")
birefnet = next(p for p in current if p.endswith("/birefnet_图像移除背景.json"))
current[birefnet].pop("fixed_version_document")
latent = next(p for p in current if p.endswith("/加载本地latent解码.json"))
current[latent].pop("fixed_version_document")
later = next(p for p in current if p.endswith("/截取视频每一帧.json"))
current[later].pop("fixed_version_document")
for added in [
p
for p in current
if p.endswith(
("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json")
)
]:
current[added].pop("fixed_version_document")
reverse = next(p for p in current if p.endswith("/视频倒放.json"))
current[reverse].pop("fixed_version_document")
nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json"))
current[nlf].pop("fixed_version_document")
assert current[PATH].pop("fixed_version_document") == BLOCK
assert current == previous and len(DEFINITIONS) == 25
old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r]
assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394
assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
assert not doc(path="untrusted.json").get("fixed_version")
for p in DEFINITIONS:
if p.endswith("/birefnet_图像移除背景.json"):
continue
if p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json")):
continue
if p.endswith(
("视频转gif动图图片.json", "加载图片合成视频.json", "双图像或视频合并显示.json")
):
continue
if p in [PATH, nlf, reverse]:
continue
r = copy.deepcopy(REVIEW)
> r["fixed_version_document"] = previous[p]["fixed_version_document"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'fixed_version_document'
calliope-backend/tests/test_openpose_fixed_document.py:245: KeyError
______________ test_real_document_and_frozen_old_fourteen_blocks _______________
def test_real_document_and_frozen_old_fourteen_blocks():
d = doc()
assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
assert "fixed_version" not in doc(path="untrusted.json")
review = copy.deepcopy(REVIEW)
other = next(
p
for p in DEFINITIONS
if p != PATH
and not p.endswith("/birefnet_图像移除背景.json")
and not p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json"))
and not p.endswith(
("NLF_视频人物动作骨架获取.json", "/视频倒放.json", "双图像或视频合并显示.json")
)
)
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
now[later].pop("fixed_version_document")
for added in [
p
for p in now
if p.endswith(
(
"视频转gif动图图片.json",
"加载图片合成视频.json",
"双图像或视频合并显示.json",
)
)
]:
now[added].pop("fixed_version_document")
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json"))
now[nlf].pop("fixed_version_document")
openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json"))
> review["fixed_version_document"] = now[other]["fixed_version_document"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'fixed_version_document'
calliope-backend/tests/test_sdpose_fixed_document.py:190: KeyError
______ test_ten_documents_only_gain_overview_and_new_block_is_independent ______
def test_ten_documents_only_gain_overview_and_new_block_is_independent():
p = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ec3388a:" + p], cwd=REPO))
now = json.loads((REPO / p).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
# Freeze the historical eleven-document revision; the two grid additions are
# independently compared against 27e6d56 in test_grid_fixed_document.
# Gemma is separately checked against 9dac1b4 in test_gemma_fixed_document.
additions = [
p
for p in DEFINITIONS
if p.endswith(
(
"图像合并成四宫格.json",
"图像分割-多宫格分割.json",
"gemma4_提示词反推(图像视频音频).json",
"sdpose_视频人物姿势骨架提取.json",
"openpose-video-姿态检测.json",
"NLF_视频人物动作骨架获取.json",
"/视频倒放.json",
"视频转gif动图图片.json",
"加载图片合成视频.json",
"双图像或视频合并显示.json",
"截取视频每一帧.json",
"加载本地latent解码.json",
)
)
]
assert len(additions) == 12
for p in additions:
now[p].pop("fixed_version_document")
historical = [p for p in DEFINITIONS if p not in additions and p != birefnet]
> assert len(historical) == 11
E AssertionError: assert 12 == 11
E + where 12 = len(['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json', 'example_ComfyUI_workflows/3-图像生成/Qwen-Im...图像视频放大/Minimax-H3提示词增强.json', 'example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json', ...])
calliope-backend/tests/test_background_fixed_document.py:224: AssertionError
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-7681e8af13d0/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/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
=========================== short test summary info ============================
FAILED calliope-backend/tests/test_reverse_fixed_document.py::test_exact_graph_and_original_seventeen_unchanged
FAILED calliope-backend/tests/test_nlf_fixed_document.py::test_exact_topology_counts_modes_unknowns_and_old_objects
FAILED calliope-backend/tests/test_openpose_fixed_document.py::test_exact_document_topology_and_preservation
FAILED calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks
FAILED calliope-backend/tests/test_background_fixed_document.py::test_ten_documents_only_gain_overview_and_new_block_is_independent
5 failed, 427 passed, 1 warning in 6.31s
@@ -0,0 +1,67 @@
........................................................................ [ 16%]
........................................................................ [ 33%]
........................................................................ [ 50%]
........................................................................ [ 66%]
........................................................................ [ 83%]
.....................................................................F.. [100%]
=================================== FAILURES ===================================
______________ test_real_document_and_frozen_old_fourteen_blocks _______________
def test_real_document_and_frozen_old_fourteen_blocks():
d = doc()
assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
assert "fixed_version" not in doc(path="untrusted.json")
review = copy.deepcopy(REVIEW)
other = next(
p
for p in DEFINITIONS
if p != PATH
and not p.endswith("/birefnet_图像移除背景.json")
and not p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json"))
and not p.endswith(
("NLF_视频人物动作骨架获取.json", "/视频倒放.json", "双图像或视频合并显示.json")
)
)
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
now[later].pop("fixed_version_document")
for added in [
p
for p in now
if p.endswith(
(
"视频转gif动图图片.json",
"加载图片合成视频.json",
"双图像或视频合并显示.json",
)
)
]:
now[added].pop("fixed_version_document")
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json"))
now[nlf].pop("fixed_version_document")
openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json"))
> review["fixed_version_document"] = now[other]["fixed_version_document"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'fixed_version_document'
calliope-backend/tests/test_sdpose_fixed_document.py:190: KeyError
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-7681e8af13d0/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/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
=========================== short test summary info ============================
FAILED calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks
1 failed, 431 passed, 1 warning in 6.13s
@@ -0,0 +1,13 @@
........................................................................ [ 16%]
........................................................................ [ 33%]
........................................................................ [ 50%]
........................................................................ [ 66%]
........................................................................ [ 83%]
........................................................................ [100%]
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-7681e8af13d0/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/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
432 passed, 1 warning in 6.04s
@@ -0,0 +1,728 @@
{
"base": "11938ca837fac5acace9d9ef3555d54e224c3d1e",
"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": 163,
"old_twenty_four_blocks_unchanged": true,
"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,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,917 @@
"Reviewed Chinese meanings bound to one graph and fixed textual sources."
from __future__ import annotations
import hashlib
import json
from pathlib import Path
REPO = Path(__file__).resolve().parents[3]
OUT = Path(__file__).resolve().parent
REF = OUT.parent / "watermark-reference"
PATHS = [
(
"example_ComfyUI_workflows/0-基础处理:图像"
"合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.js"
"on"
)
]
def canonical(value):
return json.dumps(value, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
def pointer(obj, path):
for part in path.strip("/").split("/"):
obj = obj[int(part)] if isinstance(obj, list) else obj[part]
return obj
def build(index=0):
raw = (REPO / PATHS[index]).read_bytes()
g = json.loads(raw)
binding = json.loads((OUT / "original-binding.json").read_bytes())
assert hashlib.sha256(raw).hexdigest() == binding["raw_sha256"]
nodes = {n["id"]: (i, n) for i, n in enumerate(g["nodes"])}
sources = []
pins = json.loads((REF / "pins.json").read_bytes())
def cite(key, file, lines, claim):
pin = pins[key]
local = REF / (key + "__" + file.replace("/", "__"))
data = local.read_bytes()
sources.append(
dict(
id=key,
repository="https://github.com/" + pin["repository"],
commit=pin["commit"],
file=file,
local_file="../watermark-reference/" + local.name,
url=f"https://raw.githubusercontent.com/{pin['repository']}/{pin['commit']}/{file}",
sha256=hashlib.sha256(data).hexdigest(),
lines=lines,
claim=claim,
)
)
return len(sources) - 1
core = cite(
"core",
"nodes.py",
[1695, 1770],
("core0.25.0 LoadImage准确schema、输入目录枚举、双读取分支及IMAGE/MASK输出"),
)
preview = cite(
"core",
"nodes.py",
[1622, 1693],
"PreviewImage继承SaveImage,temp目录PNG与UI images,无执行返回槽",
)
register = cite("core", "nodes.py", [2023, 2065], "LoadImage和PreviewImage旧式准确注册")
cr = cite(
"cr",
"nodes/nodes_graphics_text.py",
[356, 448],
"Comfyroll准确九字段schema、批次循环、位置、字体和合成",
)
crcolor = cite(
"cr",
"nodes/functions_graphics.py",
[358, 377],
"只有custom使用HEX,其它颜色按color_mapping",
)
cropacity = cite("cr", "nodes/functions_graphics.py", [421, 431], "RGBA alpha按opacity减弱")
crconfig = cite("cr", "config.py", [1, 35], "Comfyroll颜色选项与white映射")
crreg = cite(
"cr",
"node_mappings.py",
[1, len((REF / "cr__node_mappings.py").read_text().splitlines())],
"包入口引入node_mappings,CR准确类注册链",
)
gu = cite(
"guhai",
"nodes/图像添加水印.py",
[1, 259],
"孤海准确schema、文字与图像支路、旋转/平铺、通道与注册",
)
gure = cite(
"guhai", "__init__.py", [1, 48], "孤海包按nodes/*.py合并注册映射,WEB_DIRECTORY=./web"
)
cam = cite("camera", "__init__.py", [230, 269], "Camera准确27服务端控件schema及可选exif_data")
camcontent = cite(
"camera", "__init__.py", [314, 365], "样式范围解析和EXIF外线条件、手工文案回退、logo选择"
)
camdraw = cite(
"camera", "__init__.py", [407, 650], "随机/预设条件、1200宽动态缩放、字体、画布和logo绘制"
)
camfonts = cite("camera", "__init__.py", [20, 121], "字体/logo动态枚举、十种版式及预设")
camfontload = cite("camera", "__init__.py", [271, 295], "tensor转换与字体缓存/加载失败回退")
camreg = cite(
"camera",
"__init__.py",
[645, len((REF / "camera____init__.py").read_text().splitlines())],
"Camera准确注册;该完整树没有JS文件,不证明宿主预设回调",
)
# Explicit hypothetical frontend, never infer its identity from core0.25.0.
old = json.loads((OUT.parent / "birefnet-document-evidence/definition-0.json").read_bytes())
front = []
for e in old["sources"]:
if e["id"] == "frontend":
sources.append(e)
front.append(len(sources) - 1)
frontend_pin = dict(
repository="Comfy-Org/ComfyUI_frontend", commit="f754141537fecaae53d635d94615f588b0e39f95"
)
seedlocal = OUT.parent / ("birefnet-reference/frontend__src__scripts__widgets.ts")
sources.append(
dict(
id="frontend-explicit-assumption",
repository="https://github.com/" + frontend_pin["repository"],
commit=frontend_pin["commit"],
file="src/scripts/widgets.ts",
local_file="../birefnet-reference/" + seedlocal.name,
url=f"https://raw.githubusercontent.com/{frontend_pin['repository']}/{frontend_pin['commit']}/src/scripts/widgets.ts",
sha256=hashlib.sha256(seedlocal.read_bytes()).hexdigest(),
lines=[82, 265],
claim="显式固定前端参考的种子附加控制,非本图宿主身份/最终seed证明",
)
)
seedcite = len(sources) - 1
fields = []
note = (
"源mode=0、UE7.8;源未声明frontendVersion。字段对应只作所列准确后"
"端schema与显式前端1.43.17固定参考假设,不证明宿主控件布局/恢复/UE回调次序"
"或最终prompt;不随机求值、不执行插件。"
)
def add(
node, position, name, label, typ, default, unit, limits, effect, evidence, role="scalar"
):
i, n = nodes[node]
value = n["widgets_values"][position]
fields.append(
dict(
node_id=str(node),
definition_node_id=str(node),
class_type=n["type"],
scope="root",
pointer=f"/nodes/{i}/widgets_values/{position}",
field=name,
label=label,
type=typ,
schema_default=default,
unit=unit,
limits=limits,
effect=effect,
evidence=evidence,
role=role,
execution_note=note,
value=value,
json_type=type(value).__name__,
)
)
for nid, purpose in [
(5, "四路共用底图"),
(6, "盲水印内容图"),
(10, "独立提取支路的已加印图片引用"),
]:
add(
nid,
0,
"image",
purpose + "引用",
"COMBO",
"动态input目录过滤图片列表,无固定默认",
"文件引用",
"成员、文件/尺寸/格式和权限未知;本轮不读取图片",
(
f"节点{nid}独立保存图片引用,不与其它LoadImage去重。"
"固定core先经InputImpl.VideoFromFile.get_components尝试读取图像/alpha;"
"空图像时回退Pillow处理animated webp、EXIF方向、RGB/255。"
"返回IMAGE与MASK;本图三个MASK槽均未接。"
"不是上传成功或真实图片可达证明。"
),
[core, register],
)
add(
nid,
1,
"upload",
"图片上传控件保存状态",
"IMAGEUPLOAD(前端)",
"固定前端参考image按钮占位;非后台默认",
"前端状态",
"不是后台参数,也不是上传成功;源未声明前端,准确恢复未知",
f"节点{nid}的第二保存位置image原样独立保留。显式frontend1.43.17假设中上传按钮options.serialize=false用于prompt排除,工作流widget.serialize另管持久化;不把该值映射成LoadImage后台upload输入。此图未声明宿主版本,不证明真实控件恢复/上传,未调用POST。",
[core, *front],
role="frontend_control",
)
crrows = [
(
"text",
"水印文字",
"STRING",
"@ your name",
"文字",
"单行字符串",
"在每张输入图片上绘制保存的@ by Bright,不改写文本。",
),
(
"align",
"文字对齐",
"COMBO",
"未显式default,选项首项center",
"对齐枚举",
("center/top left/top center/top right/bottom left/bottom center/bottom right"),
"保存center使文字边界框居中;此分支不使用x_margin或y_margin。",
),
(
"opacity",
"文字不透明度",
"FLOAT",
"0.30",
"比例",
"0~1,step0.01",
(
"保存0.5使文字图层alpha经Brightness乘0.5,再Ima"
"ge.composite合成;不是保证最终视觉恰好50%。"
),
),
(
"font_name",
"文字字体引用",
"COMBO",
"动态fonts目录.ttf列表,无显式default",
"字体文件引用",
"目标动态成员/字形/许可未知",
(
"保存Caveat-VariableFont_wght.ttf。准确代码"
"ImageFont.truetype加载插件fonts下引用,无此处加"
"载异常回退;不读取或下载字体。"
),
),
(
"font_size",
"文字字号",
"INT",
"50",
"Pillow字号像素",
"1~1024",
"保存150传给truetype size;不证明实际文字宽高,文字边界依赖字体。",
),
(
"font_color",
"文字颜色选项",
"COMBO",
"无显式default,列表首项custom",
"颜色枚举",
"准确config.COLORS列表",
("保存white按color_mapping为(255,255,255),不会读取font_color_hex。"),
),
(
"x_margin",
"水平边距",
"INT",
"20",
"像素",
"-1024~1024",
"保存20在非居中左右支路参与位置;center保存态不使用它。",
),
(
"y_margin",
"垂直边距",
"INT",
"20",
"像素",
"-1024~1024",
"保存20在顶部/底部支路参与位置;center保存态不使用它。",
),
(
"font_color_hex",
"自定义文字HEX",
"STRING",
"#000000",
"RGB十六进制字符串",
"只有font_color=custom才解析;不保证任意字符串有效",
"保存#000000,但white支路不采用;不能把它说成当前黑色水印。",
),
]
for j, row in enumerate(crrows):
add(3, j, *row, [cr, crcolor, cropacity, crconfig, crreg])
gurows = [
(
"水印文本",
"文字水印内容",
"STRING",
"水印",
"文字",
"字符串;当前无外部水印图输入",
"保存@ by Bright;可选水印图像未接,固定实现走文字支路。",
),
(
"字体",
"文字字体引用",
"COMBO",
"动态fonts目录,无显式default",
"字体文件引用",
".ttf/.otf/.ttc动态成员与实际文件未知",
(
"保存华文细黑.ttf;按插件fonts引用,truetype异常回退I"
"mageFont.load_default,不保证字形一致。"
),
),
(
"水印大小百分比",
"文字大小百分比",
"INT",
"5",
"底图高度百分比",
"0~100,step1;0在schema合法不保证绘制成功",
(
"保存15;文字字号int(原图高×15/100),不是文字宽度或图片水"
"印比例。只有外部水印图分支才按水印自身尺寸百分比缩放。"
),
),
(
"水印不透明度",
"文字不透明度",
"INT",
"50",
"百分比",
"0~100,step1",
(
"保存75;十六进制颜色解析alpha=int(255×75/100),"
"再按图层mask粘贴/alpha_composite,不能直接承诺最终"
"alpha75%。"
),
),
(
"水平位置",
"水平对齐",
"COMBO",
"无显式default,首项居中",
"对齐枚举",
"居中/靠左/靠右",
"当前居中时x=(原图宽-水印宽)//2+X偏移像素。",
),
(
"垂直位置",
"垂直对齐",
"COMBO",
"无显式default,首项居中",
"对齐枚举",
"居中/靠上/靠下",
"当前居中时y=(原图高-水印高)//2+Y偏移像素。",
),
(
"X偏移百分比",
"水平偏移",
"INT",
"0",
"底图宽度百分比",
"0~50,step1",
"保存0;int(原图宽×X/100),居中向右加、靠右从右边距减。平铺分支不调用该定位。",
),
(
"Y偏移百分比",
"垂直偏移",
"INT",
"0",
"底图高度百分比",
"0~50,step1",
"保存0;int(原图高×Y/100),居中向下加、靠下从下边距减。平铺分支不调用该定位。",
),
(
"文字颜色",
"文字颜色",
"COLORCODE",
"#FFFFFF",
"RGB十六进制",
"解析前三对十六进制,非法输入不保证有效",
(
"保存#ece4e4,固定实现解析RGB并结合不透明度形成RGBA。前端"
"COLORCODE控件恢复未证明,不靠字段名补宿主行为。"
),
),
(
"水印平铺",
"平铺文字",
"BOOLEAN",
"false",
"布尔开关",
"true/false;当前false",
"false走单一水印定位;true按旋转后的文字尺寸与间距重复粘贴,本图不走该分支。",
),
(
"水印角度",
"文字旋转角度",
"INT",
"0",
"度",
"-90~90,step1",
(
"保存60;旋转在平铺判断之前执行,BICUBIC且expand=Tru"
"e,所以关闭平铺仍作用于单一文字水印,不能说被忽略。"
),
),
(
"水印间距",
"平铺文字间距",
"INT",
"10",
"底图高度百分比",
"0~50,step1;仅平铺文字分支",
(
"保存22;只有平铺true才算int(原图高×22/100)作为行列间"
"距。当前false不作用,不是22像素。"
),
),
(
"输出透明通道",
"保留输出透明通道",
"BOOLEAN",
"false",
"布尔开关",
"true/false",
"当前false把RGBA结果转RGB再转tensor;true只是保留结果通道,不等于自动移除底图背景。",
),
]
for j, row in enumerate(gurows):
add(2, j, *row, [gu, gure])
camrows = [
(
"layout",
"相机水印版式",
"COMBO",
"无显式default,首项1. 底部留白 - 左右分布",
"版式枚举",
"固定LAYOUT_OPTIONS十项",
(
"保存第1版式:底部加条,左右文本分布。不是四路叠加;当前bar_wid"
"th/bar_height不参与此版式。"
),
),
(
"restore_preset",
"恢复当前版式预设",
"BOOLEAN",
"false",
"布尔开关",
"true/false",
(
"false不以LAYOUT_PRESETS覆写保存参数。固定实现tru"
"e时在随机版式选择后params.update预设;真实宿主回调/恢复"
"未知。"
),
),
(
"randomize_style",
"随机相机版式",
"BOOLEAN",
"false",
"布尔开关",
"true/false",
(
"false不调用random.seed/choice;保存seed不随"
"机求值。与前端seed附加randomize控件是两件事。"
),
),
(
"random_style_selection",
"随机版式候选",
"STRING",
"1-10",
"编号范围字符串",
"逗号和闭区间,过滤为1~10;仅randomize_style=true",
(
"保存1-10。固定解析允许数字/区间,非法部分跳过;无有效候选保留当前"
"版式。当前false不选择随机版式。"
),
),
(
"seed",
"随机版式种子保存值",
"INT",
"0",
"整数种子",
"0~18446744073709551615;仅随机版式分支使用",
(
"保存166434517983310;附加前端randomize位独立。"
"源未声明前端,不称最终提交seed,不运行随机。"
),
),
(
"control_after_generate",
"种子附加前端控制",
"前端控制",
"源前端版本未知;不认作后台默认",
"前端状态",
"保存randomize;不是第六个后台参数",
(
"此位置插在seed后,27个服务端控件加1前端控制共28位置;后面的u"
"se_exif不能移位成此值。固定参考前端策略也不证明本图真实恢复或最"
"终seed。"
),
),
(
"use_exif",
"优先外部EXIF",
"BOOLEAN",
"true",
"布尔开关",
'须同时有exif_data非空且strip()!="{}"',
(
"保存true但exif_data外线未接,准确代码回退六个手工文本,不"
"从IMAGE张量或图像引用自动读取EXIF。"
),
),
]
# Six independently saved strings, not real camera metadata.
defaults = [
"iPhone 15 Pro Max",
"Main Camera",
"© KARAS",
"SONY",
"24mm | f/1.8 | 1/125s | ISO 50",
"",
]
for j, (name, default) in enumerate(
zip(
[
"block_a_text_1",
"block_a_text_2",
"block_a_text_3",
"block_b_text_1",
"block_b_text_2",
"block_b_text_3",
],
defaults,
)
):
side = "A" if j < 3 else "B"
line = j % 3 + 1
camrows.append(
(
name,
f"{side}区第{line}行文字",
"STRING",
json.dumps(default, ensure_ascii=False),
"文字",
"单行字符串;空字符串不绘制",
f"保存手工{side}区第{line}行文案;本图EXIF外线未接,不能把机型/品牌/曝光描述当真实元数据。第1行用large_bold/title_color,第2行medium/subtitle_color,第3行small/subtitle_color;空行略过。",
)
)
camrows += [
(
"logo",
"相机标志引用",
"COMBO",
"存在leica时选leica,否则动态列表首项",
"logo文件引用",
"None加插件logos目录PNG名称;目标成员/许可未知",
(
"保存leica,仅引用;代码按目录名称大小写匹配、读取RGBA并裁透明"
"边。只有选None才尝试从手工A1或EXIF Make匹配名称,不读取"
"/下载logo。"
),
),
(
"logo_size_ratio",
"标志尺寸倍率",
"FLOAT",
"1.0",
"倍数",
"0.1~3.0,step0.1",
(
"保存整数1(保留JSON int,与FLOAT默认分列);基准高=ma"
"x(文本相关高度,信息条尺寸的一半),乘倍率后等比LANCZOS缩放。"
"实际大小依赖布局/文字/图片。"
),
),
(
"bar_size",
"信息条厚度",
"INT",
"200",
"参考像素",
"0~2048,step10",
(
"保存200。第1版式在底部增加int(200×scale_factor"
")高;scale_factor=min(1,图宽/1200),不是固定"
"输出200像素。"
),
),
(
"bar_width",
"备用独立画布宽",
"INT",
"1894",
"参考像素",
"64~8192,step64;只在未匹配版式的else使用",
(
"保存1894;当前第1版式不使用。准确代码10.也进入底部加条分支,不"
"能因名称独立信息条就称使用bar_width。"
),
),
(
"bar_height",
"备用独立画布高",
"INT",
"165",
"参考像素",
"64~8192,step64;只在未匹配版式的else使用",
"保存165;当前第1版式不使用,仅else画布按scale_factor缩放。",
),
(
"padding",
"版式边距",
"INT",
"50",
"参考像素",
"0~400,step1",
"保存50;int(50×scale_factor),第1版式左右组与条边缘间距,真实文字边界依赖字体。",
),
(
"spacing",
"文本与元素间隔",
"INT",
"15",
"参考像素",
"0~200,step1",
"保存15;int(15×scale_factor),用于文本行以及标志/文本间隔。",
),
(
"font_name",
"常规文字字体引用",
"COMBO",
"动态字体列表,无显式default",
"字体文件引用",
".ttf/.ttc/.otf;实际文件和字形未知",
(
"保存Alibaba-PuHuiTi-Bold.ttf;此名称用于med"
"ium/small,与粗体引用独立保留,即使值相同也不去重。加载失败回"
"退默认字体,不保证效果。"
),
),
(
"font_bold_name",
"标题粗体字体引用",
"COMBO",
"动态bold/bd子集或完整字体列表,无显式default",
"字体文件引用",
"实际成员/字形/许可未知",
(
"保存同名Alibaba-PuHuiTi-Bold.ttf,用于larg"
"e_bold;按名称筛选不证明真正字体粗细。不下载字体。"
),
),
(
"font_size_large",
"大标题字号",
"INT",
"48",
"参考像素",
"8~200,step1",
(
"保存48;int(48×scale_factor)传给粗体字体,两区第"
"1行使用。小图可能缩至更低,schema范围不等于实际字号范围。"
),
),
(
"font_size_medium",
"中号文字字号",
"INT",
"28",
"参考像素",
"8~200,step1",
"保存28;int(28×scale_factor)传给常规字体,两区第2行使用。",
),
(
"font_size_small",
"小号文字字号",
"INT",
"24",
"参考像素",
"8~200,step1",
"保存24;int(24×scale_factor)传给常规字体,两区第3行使用;B3为空不绘制。",
),
(
"bg_color",
"信息条背景色",
"STRING",
"#FFFFFF",
"Pillow颜色字符串",
"schema无进一步限制;实际合法性未知",
"保存#FFFFFF,当前底部条画布用此背景;不代表原图背景被改白。",
),
(
"title_color",
"标题文字颜色",
"STRING",
"#000000",
"Pillow颜色字符串",
"schema无进一步限制",
"保存#000000,A/B区第一行文字颜色。",
),
(
"subtitle_color",
"副文字颜色",
"STRING",
"#888888",
"Pillow颜色字符串",
"schema无进一步限制",
"保存#888888,A/B区第二与第三行文字颜色。",
),
]
assert len(camrows) == 28
for j, row in enumerate(camrows):
add(
20,
j,
*row,
[cam, camcontent, camdraw, camfonts, camfontload, camreg, seedcite],
role="frontend_control" if j == 5 else "scalar",
)
assert len(fields) == 56
flow = [
(
"17节点、15物理边、全mode0;15实体加Reroute12/14。56顶层标量保存位"
"置=LoadImage三组各2、Camera28、CR9、孤海13。无子图、无Note;A"
"ddBlind1、Show8/16和六Preview7/9/11/13/15/17原[]零"
"位置;两个Reroute缺widgets_values键,不补成[]。"
),
(
"四条并行支路:底图5.IMAGE槽0经边11→Reroute12输入0,再以边13→CR3"
".image、边14→孤海2.图像、边28→Camera20.image、边30→AddB"
"lind1.image;四种效果分别预览,不是四种叠加在同一张图。"
),
(
"盲水印内容图6.IMAGE槽0以边17→Reroute14,再边31→AddBlind1."
"watermark_image;1.image槽0以边4→Preview7.images,"
"并边8→Show8.image;Show8.watermark_image槽0以边6→Pr"
"eview9.images。"
),
(
"独立提取:另载图10.IMAGE槽0以边22→Show16.image,再边23→Prev"
"iew17.images。不是刚由1生成的文件,不是本次写入/恢复成功的反向证明,也不保证"
"盲水印鲁棒性。"
),
(
"CR3.IMAGE槽0以边10→Preview11.images;show_help ST"
"RING槽1未接,是帮助文本而非下载文件。孤海2.IMAGE槽0以边16→Preview1"
"3.images;Camera20.IMAGE槽0以边29→Preview15.image"
"s。"
),
(
"孤海文字支路:外部水印图像未接;文字60度旋转在平铺判断前,false仍旋转;间距22仅平"
"铺true时按底图高度百分比作用,当前不作用;输出透明false转RGB。CR cente"
"r忽略20/20边距,white忽略#000000的HEX。"
),
(
"Camera外部exif_data未接:use_exif=true仍回退六手工字符串,不证"
"明iPhone/SONY或光圈为真实元数据。randomize_style=false与附"
"加randomize控制分开;保存seed不当最终seed。第1版式底部加条,大小/边距/"
"字号按min(1,图宽/1200)缩放;bar_width/bar_height当前不作用"
"。"
),
(
"三LoadImage的MASK槽1 links=null,全部未接。六Preview继承固"
"定core0.25.0 SaveImage保存逻辑但写temp PNG、返回UI imag"
"es,无执行数据槽;源没有SaveImage,预览不是永久导出,目录/权限/产物未知。"
),
(
"源extra仅UE空表和坐标,没有frontendVersion。UE各节点7.8、空绑定"
"表、未知宿主布局/恢复与回调次序全部保留;显式frontend1.43.17只是固定参考假"
"设,不以core版本填前端身份。没有模型节点,不编模型依赖或触发下载。"
),
]
# Layer semantics inserted only after exact package text is reviewed.
layer = json.loads((OUT / "layer-editorial.json").read_bytes())
offset = len(sources)
sources.extend(layer["sources"])
flow.extend(layer["flow"])
for e in g["links"]:
flow.append("源物理边:" + json.dumps(e, ensure_ascii=False))
for n in g["nodes"]:
flow.append(
f"节点{n['id']} {n['type']} mode={n['mode']};widgets_values="
+ (
"缺键"
if "widgets_values" not in n
else json.dumps(n["widgets_values"], ensure_ascii=False)
)
+ ";原inputs="
+ json.dumps(n.get("inputs"), ensure_ascii=False)
+ ";原outputs="
+ json.dumps(n.get("outputs"), ensure_ascii=False)
+ ";原properties="
+ json.dumps(n["properties"], ensure_ascii=False)
)
zeros = []
for n in g["nodes"]:
if n.get("widgets_values") != []:
continue
if n["type"] == "PreviewImage":
effect = (
"原[]零位置;images输入,无执行返回槽,固定core0.25.0"
"继承写temp PNG/UI images,非永久导出。"
)
ev = [preview, register]
else:
effect = layer["zero_effects"][n["type"]]
ev = list(range(offset, len(sources)))
zeros.append(dict(node_id=str(n["id"]), class_type=n["type"], effect=effect, evidence=ev))
overview = (
"这张图把同一底图分成盲水印、居中文字、孤海文字水印和相机信息条四路,分别预览;另外可以从另"
"一张已加印图片独立提取盲水印。四路没有依次叠加。字体、标志、图片和真实效果尚未核对;没有正"
"式保存节点,预览不等于永久导出。未实跑,转换保持关闭。"
)
versions = [
f"{key}准确固定{pin['requested_ref']}→{pin['commit']},只读静态文本,不证明目标安装。"
for key, pin in pins.items()
]
versions += [
(
"源没有frontendVersion;显式frontend1.43.17→f7541415"
"37fecaae53d635d94615f588b0e39f95仅固定参考假设,不能由co"
"re0.25.0推断。上传/seed控件真实布局、恢复与UE7.8次序未知。"
),
(
"core许可GPL-3.0;Comfyroll入口MIT许可全文保留;Camera与孤海准"
"确树没有单独LICENSE文件,许可未知,不借其它版本。字体/logo许可与目标成员均未知"
"。"
),
*layer["versions"],
]
steps = [
overview,
(
"素材:底图5、盲水印内容图6、独立提取图10三个独立图片引用;文字字体"
"、相机字体和logo只保留引用,不读取/下载。没有模型节点。"
),
(
"操作1:未来获准执行时先核准确节点包、源未声明的宿主前端、UE行为、图"
"片/字体/logo成员及权限;本轮不构造prompt,不调整机器。"
),
(
"操作2:分别检查CR居中文本、孤海60度单一文字、相机底部信息条和盲水"
"印支路;不要把四个Preview误认为顺序叠加结果。"
),
(
"操作3:区分Show8对当前写入支路的提取与Show16对另载图片的独"
"立提取;二者不证明鲁棒性或当前执行成功。"
),
(
"常见问题:white下HEX不生效、center下边距不生效符合固定C"
"R代码;孤海平铺false仍旋转但间距不生效。字体缺项/字形不符需核真"
"实文件,不能凭引用保证。"
),
(
"常见问题:相机文本不是自动识别EXIF;外线未接时回退手工保存文案。r"
"andomize附加控制不是随机版式开关,不能把保存seed称最终se"
"ed。"
),
(
"常见问题:六个预览仅临时PNG/UI,当前无永久保存节点;真实输出/效"
"果、图片尺寸条件、插件依赖、目录权限仍未知。未定稿、未实跑,保持停用未"
"检查。"
),
]
b = 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=(
"固定版本仅作参考;源前端/UE恢复、动态文件/字体/logo、元数据和"
"实际效果未知,未实跑,转换保持关闭。"
),
user_overview=overview,
versions=versions,
counts=dict(
saved_fields=56,
scalar_saved_positions=56,
history_objects=0,
source_nodes=17,
physical_edges=15,
source_notes=0,
linked_saved_fields=0,
frontend_only=4,
final_scalars=0,
final_prompt_constructed=False,
),
fields=fields,
sources=sources,
comments=[],
flow=flow,
flow_evidence=list(range(len(sources))),
zero_saved_nodes=zeros,
steps=steps,
)
for e in sources:
data = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(data).hexdigest() == e["sha256"]
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(data.decode().splitlines())
return b
@@ -0,0 +1,110 @@
"Review exact registry package, not an inferred Git revision."
import hashlib
import json
from pathlib import Path
OUT = Path(__file__).resolve().parent
REF = OUT.parent / "watermark-reference"
def main():
sources = []
def cite(file, lines, claim):
p = REF / ("layer__" + file.replace("/", "__"))
raw = p.read_bytes()
sources.append(
dict(
id="layer-registry-2.0.38",
repository=("https://github.com/chflame163/ComfyUI_LayerStyle_Advance"),
commit="unknown",
git_commit_binding="unknown",
file=file,
local_file="../watermark-reference/" + p.name,
url=("https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip"),
sha256=hashlib.sha256(raw).hexdigest(),
lines=lines,
claim=claim,
registry_version="2.0.38",
registry_release_id="db305def-250b-448d-88b6-e43acbeb03af",
)
)
for file, lines, claim in [
("__init__.py", [1, 49], "准确包按py/*.py合并注册"),
("py/watermark.py", [1, 126], "Add/Show准确注册、IMAGE接口、批次/灰度/YCbCr与恢复输出"),
("py/imagefunc.py", [1295, 1381], "水印尺寸公式、临时PNG、blind_watermark调用与异常回退"),
("py/imagefunc.py", [119, 149], "PIL/tensor归一化与量化"),
("py/imagefunc.py", [791, 805], "normalize_gray亮度拉伸"),
("py/imagefunc.py", [1053, 1086], "YCbCr分离/通道合并"),
("py/imagefunc.py", [1737, 1742], "RGBA恢复alpha"),
("pyproject.toml", [1, 16], "精确2.0.38身份、仓库、MIT许可与未固定版本blind-watermark依赖"),
(
"LICENSE",
[1, len((REF / "layer__LICENSE").read_text().splitlines())],
"准确包MIT许可全文",
),
]:
# Range bounded by exact file, not a nearby release.
n = len((REF / ("layer__" + file.replace("/", "__"))).read_text().splitlines())
lines[1] = min(lines[1], n)
cite(file, lines, claim)
flow = [
(
"盲水印准确来源为Registry comfyui_layerstyle_advance 2"
".0.38发行包(发布ID db305def-250b-448d-88b6-e43acbe"
"b03af),包pyproject确认仓库与版本;未提供Git完整commit绑定,com"
"mit明确unknown,不借其它LayerStyle或最新版。只以HTTP Range读"
"取目录与必要Python/许可文本,没有下载包内图片/字体/权重。"
),
(
"Add1固定实现按底图批次循环,水印批次不足复用最后一张(空水印批次不保证安全);wm_s"
"ize=int(sqrt(width×height×0.015625)×0.9),内容图缩"
"至wm_size方形L灰度;底图转YCbCr,在U通道嵌入后合回,原RGBA时恢复原alp"
"ha。极小/异常尺寸、空批次/实际媒体支持和效果未知,不执行算法。"
),
(
"包imagefunc写临时PNG,调用blind_watermark.WaterMark("
"password_img=1,password_wm=1),read_img/read_w"
"m后embed(compression_ratio=100)。依赖只写blind-wate"
"rmark未锁版本:不据其它版本补DWT/DCT算法、容量/尺寸条件或鲁棒性;目录/文件失"
"败分支并非已验证正常输出,未知明确保留。"
),
(
"Show8/16固定实现按输入图尺寸重算wm_size,取YCbCr的U通道,经Water"
"Mark.extract(wm_shape=(wm_size,wm_size))再灰度拉伸"
",缩至512×512、再normalize_gray、转RGB tensor。extrac"
"t异常代码先回退黑色64×64再后处理;看见预览不证明提取成功,当前未运行。"
),
]
add = (
"原[]零保存位置,只有image与watermark_image必需IMAGE输入,返回i"
"mage槽0;准确2.0.38代码缩方形灰度水印、嵌入YCbCr U通道、批次不足复用最后"
"水印,真实依赖/尺寸/效果未知。"
)
show = (
"原[]零保存位置,只有image必需IMAGE输入,返回waterma"
"rk_image槽0;准确2.0.38按尺寸提取U通道水印、512方形"
"RGB结果与异常回退,不证明成功。"
)
b = dict(
sources=sources,
flow=flow,
zero_effects={
"LayerUtility: AddBlindWaterMark": add,
"LayerUtility: ShowBlindWaterMark": show,
},
versions=[
(
"LayerStyle Advance按准确Registry2.0.38包固定,Git co"
"mmit绑定unknown;包MIT许可原文保留。blind-watermark依赖版本未"
"锁、算法内部/实际安装与鲁棒性未知。"
)
],
)
(OUT / "layer-editorial.json").write_text(json.dumps(b, ensure_ascii=False, indent=2) + "\n")
if __name__ == "__main__":
main()
@@ -0,0 +1 @@
本次隔离checkout无user.name/email,首次commit因此拒绝;沿用本分支与main最近提交的leefer <hello@shengshentech.com>,仅在git -c单命令中使用,不修改全局或共享配置。
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,16 @@
四种水印单图的固定参考中文说明已接入实际doc_json、GET和既有抽屉,等待总管功能+界面审核。全量目标未完成。
PR #25:https://gitea.xbay.cc/leefer/aigc-home/pulls/25;分支agent/agent/a64a969a6a44,base main。真实旧库基线11938ca837fac5acace9d9ef3555d54e224c3d1e。受测实现及最终记录head见tested-head.json和pr-final.json;逐文件受测摘要见tested-files.json,全部本轮差集见changed-files.json。
- 新增一图56顶层标量保存位置、0注释,17节点/15物理边/17个mode0。三LoadImage各2、Camera28、CR9、孤海13;九实体原[]零位置、两个Reroute缺键分列。其它155审校对象和旧24块665+16逐对象不变;25图721+16仅参考展示,155完整定稿0/必要实跑0/本轮新增转换0。
- 生产只在fixed_document.py增加精确路径与硬编码定义digest,在source_reviews.json增加该图块。绑定源SHA1、原字节SHA256、全图规范摘要与定义digest;调用方重算摘要不能扩信任。转换执行链、资格、registry/object_info/client/output/worker、163原图收件、28profiles/9候选hash/六差分及Drawer整文件冻结。
- 准确core v0.25.0→135abed8da169e33ab0b86550e05e3ae55d6df8c、CR d78b780ae43fcf8c6b7c6505e6ffb4584281ceca、孤海0b267384faaa9201c821c68dfa3dacd784da171d、Camera c461dedc6ce65e1defe7308e97e7081cedcaf2a7;11份Git文本按tree blob核验。7份Registry2.0.38必要文本按SHA固定、ZIP读取校验CRC;HTTP Range只读取中央目录/文本,不下载包内素材。LayerStyle Git commit绑定unknown,blind-watermark未锁版本,未借其它版本填算法/容量/鲁棒性。35条引用包含复用原frontend1.43.17固定参考,非本图宿主身份;local_file以docs/hel-892/watermark-document-evidence为基准。
- 中文重点:同一底图经Reroute12并行四路,没有顺序叠加;Show16对另载图10独立提取,不是刚写出图片。盲水印仅按固定包讲wm_size/灰度/YCbCr U通道/批次复用、临时文件/WaterMark接口/异常回退;内部算法和目标依赖未知。CR white忽略HEX、center忽略边距、逐批处理;show_help未接只帮助字符串。孤海未接水印图时文字支路,平铺false仍旋转60度,间距22仅平铺时按底图高度百分比作用,输出false转RGB。Camera27服务端控件与额外randomize分开;未接EXIF时六手工文案回退,保存seed非最终提交seed;尺寸/字体按min(1,图宽/1200)缩放,第1布局不用bar_width/height。三MASK未接,无SaveImage,六预览只temp PNG/UI,不称永久导出。
- 首次专项406通过。最终受影响后台432通过=406新增专项+26回归,0失败/1既有依赖弃用warning;没有机械跑全后台/前端/冻结转换套件。历史全后台5个基线失败沿用上批记录,本轮未复测,不称全仓全绿。新检查覆盖每值/类型/说明篡改、身份/模式/UE、15双向端点、错图/摘要/引用、缺键与[]/null/{}区别和所有旧块互换拒绝。历史测试仅拓展集合边界,旧字段语义/拒绝断言未移除。
- 真实11938ca隔离库仅1update/154skip/1excluded,其余154整行不变;重导155skip、回退精确恢复、再导1update;升级前后用户编辑各1conflict/154skip,保护全部29列。新155/排除1、16pending_check/139needs_conversion、1217/3660/294保持,全停用/未检查,定稿/实跑时间戳空。wheel/sdist三资源原字节一致,191冻结资源及Drawer不变,双次定义和文档生成差分零。
- 浏览1400通过=新图808+旧24摘要576+汇总2+共享14;1440/390逐字段核56项及四路/独立提取、EXIF/字体/seed未知、默认折叠、旧空错绑定回退、迟到/失败重试、焦点与无横向溢出。4张代表图已实际目验。浏览固定88+轮询10,后端固定83(含就绪1)+轮询10;98+1-6本地拦截=93。只允许本地GET并本地拦截字体CSS,禁止请求0;两服务finally停止,8247/5173已复核释放。
- 27个自写Python的Ruff check/format、JS语法通过,原件未格式化;暂存diff空白检查仅报告上游原件CRLF/空白与原始抓取日志尾空行,记录在staged-diff-check.txt,不篡改原件或旧日志;生成Markdown单独统计,不纳入Ruff。开发初次来源抓取Unicode URL错误、定义行号越界、拆分字符串语法/格式失败和旧测试集合边界5→1失败均已纠正,日志原样保留,不与历史业务基线5失败混记。browser-initial.txt为成功首次浏览日志,未重复浏览。
复现入口:validation-commands.txt,含本图完整专项、受影响回归、真实旧库升级/保护、包字节与确定性、双尺寸GET浏览。完整中文在四种水印固定参考中文说明.md,实际doc在actual-图像4种添加水印节点.json。
剩余真实环境待办:155全量说明定稿与必要实跑、145UI中9参考候选/136关闭仍原状;本图真实前端/UE恢复、动态图片/字体/logo成员/许可、依赖/尺寸条件/权限与实际水印效果未知。本轮不索取机器窗口、不连接目标、不停TTS、不启ComfyUI、不提交prompt、不执行插件/算法/媒体、不下载权重/字体/logo、不新增依赖/付费、不写在线库、不合并部署。总管统一安排后续核对与审核发布。
@@ -0,0 +1,83 @@
"Bounded official textual discovery; no upstream execution or asset fetches."
import json
import urllib.parse
import urllib.request
from pathlib import Path
OUT = Path(__file__).resolve().parent
REF = OUT.parent / "watermark-reference"
def get(url):
with urllib.request.urlopen(
urllib.request.Request(
urllib.parse.quote(url, safe=":/?=&"), headers={"User-Agent": "static-source-review"}
),
timeout=30,
) as r:
return r.read()
def main():
repos = {
"core": ("Comfy-Org/ComfyUI", "v0.25.0"),
"camera": ("karas17/ComfyUI-Camera-Watermark", "c461dedc6ce65e1defe7308e97e7081cedcaf2a7"),
"cr": ("Suzie1/ComfyUI_Comfyroll_CustomNodes", "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca"),
"guhai": ("goohai/Goohaitools-comfyui", "0b267384faaa9201c821c68dfa3dacd784da171d"),
}
pins = {}
for key, (repo, ref) in repos.items():
commit = json.loads(get(f"https://api.github.com/repos/{repo}/commits/{ref}"))["sha"]
tree = json.loads(
get(f"https://api.github.com/repos/{repo}/git/trees/{commit}?recursive=1")
)
assert not tree["truncated"]
(REF / f"{key}-tree.json").write_text(json.dumps(tree, ensure_ascii=False, indent=2) + "\n")
pins[key] = {"repository": repo, "requested_ref": ref, "commit": commit}
print(key, commit)
for e in tree["tree"]:
p = e["path"]
if e["type"] == "blob" and (
p.endswith(".py") or "license" in p.lower() or p.endswith(".js")
):
if key == "core" and p not in ["nodes.py", "LICENSE.txt", "LICENSE"]:
continue
if key == "guhai" and not (
"水印" in p or p == "__init__.py" or "license" in p.lower()
):
continue
if key == "cr" and not (
any(
t in p
for t in [
"__init__.py",
"nodes_graphics_text",
"functions_graphics",
"categories",
"config",
]
)
or "license" in p.lower()
):
continue
local = REF / (key + "__" + p.replace("/", "__"))
raw = (
local.read_bytes()
if local.exists()
else get(f"https://raw.githubusercontent.com/{repo}/{commit}/{p}")
)
(REF / (key + "__" + p.replace("/", "__"))).write_bytes(raw)
# Registry release is authoritative for the declared package; do not substitute latest Git.
url = "https://api.comfy.org/nodes/comfyui_layerstyle_advance/versions/2.0.38"
try:
raw = get(url)
(REF / "layer-registry-2.0.38.json").write_bytes(raw)
print(raw.decode()[:1800])
except Exception as exc:
(REF / "layer-registry-error.txt").write_text(str(exc))
(REF / "pins.json").write_text(json.dumps(pins, indent=2) + "\n")
if __name__ == "__main__":
main()
@@ -0,0 +1,6 @@
core 135abed8da169e33ab0b86550e05e3ae55d6df8c
camera c461dedc6ce65e1defe7308e97e7081cedcaf2a7
cr d78b780ae43fcf8c6b7c6505e6ffb4584281ceca
guhai 0b267384faaa9201c821c68dfa3dacd784da171d
{"changelog":"","createdAt":"2026-04-08T04:28:28.060712Z","dependencies":["numpy","matplotlib","scikit_image","scikit_learn","opencv-contrib-python","pymatting","timm","blend_modes","transformers","diffusers","loguru","colour-science","huggingface_hub","segment_anything","addict","omegaconf","yapf","wget","iopath","mediapipe","typer_config","fastapi","rich","google-generativeai","ultralytics","transparent-background","accelerate","onnxruntime","bitsandbytes","peft","protobuf","hydra-core","blind-watermark","qrcode","pyzbar","psd-tools","wandb","zhipuai","openai","google-genai","fastapi","typer-config"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip","id":"db305def-250b-448d-88b6-e43acbeb03af","node_id":"ComfyUI_LayerStyle_Advance","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"2.0.38"}
@@ -0,0 +1 @@
Range-read textual entries only: ['LICENSE', '__init__.py', 'py/imagefunc.py', 'py/watermark.py', 'pyproject.toml', 'requirements.txt']
@@ -0,0 +1 @@
Range-read textual entries only: ['LICENSE', '__init__.py', 'pyproject.toml', 'requirements.txt']
@@ -0,0 +1,86 @@
"Fetch exact textual interfaces; range reads exclude package assets."
import io
import json
import urllib.parse
import urllib.request
import zipfile
from pathlib import Path
REF = Path(__file__).resolve().parents[1] / "watermark-reference"
def get(url):
with urllib.request.urlopen(urllib.parse.quote(url, safe=":/?=&"), timeout=30) as r:
return r.read()
class RemoteZip(io.RawIOBase):
def __init__(self, url):
self.url = url
self.pos = 0
with urllib.request.urlopen(urllib.request.Request(url, method="HEAD"), timeout=30) as r:
self.size = int(r.headers["Content-Length"])
def seekable(self):
return True
def seek(self, offset, whence=0):
self.pos = offset + (self.pos if whence == 1 else self.size if whence == 2 else 0)
return self.pos
def tell(self):
return self.pos
def read(self, size=-1):
end = self.size - 1 if size < 0 else min(self.size - 1, self.pos + size - 1)
if end < self.pos:
return b""
req = urllib.request.Request(self.url, headers={"Range": f"bytes={self.pos}-{end}"})
with urllib.request.urlopen(req, timeout=30) as r:
assert r.status == 206, "Refuse full package fetch"
raw = r.read()
assert len(raw) == end - self.pos + 1
self.pos += len(raw)
return raw
def main():
pins = json.loads((REF / "pins.json").read_bytes())
extras = {
"cr": ["node_mappings.py"],
"camera": ["js/camera_watermark.js"],
"core": ["comfy_api/input_impl/video_types.py"],
}
for key, paths in extras.items():
tree = json.loads((REF / (key + "-tree.json")).read_bytes())
if key == "camera":
paths = [e["path"] for e in tree["tree"] if e["path"].endswith(".js")]
for p in paths:
if not any(e["path"] == p for e in tree["tree"]):
continue
pin = pins[key]
raw = get(f"https://raw.githubusercontent.com/{pin['repository']}/{pin['commit']}/{p}")
(REF / (key + "__" + p.replace("/", "__"))).write_bytes(raw)
release = json.loads((REF / "layer-registry-2.0.38.json").read_bytes())
url = release["downloadUrl"]
with zipfile.ZipFile(RemoteZip(url)) as z:
files = z.namelist()
(REF / "layer-package-list.json").write_text(
json.dumps(files, ensure_ascii=False, indent=2) + "\n"
)
selected = [
p
for p in files
if p in ["__init__.py", "pyproject.toml", "LICENSE", "LICENSE.txt", "requirements.txt"]
or p in ["py/watermark.py", "py/imagefunc.py"]
]
for p in selected:
local = REF / ("layer__" + p.replace("/", "__"))
if not local.exists():
local.write_bytes(z.read(p))
print("Range-read textual entries only:", selected)
if __name__ == "__main__":
main()
@@ -0,0 +1,554 @@
[
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"file": "nodes.py",
"local_file": "../watermark-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/135abed8da169e33ab0b86550e05e3ae55d6df8c/nodes.py",
"sha256": "18ae659664de15c55bc790c12e3c5bff172abd4629da58f10712a1fb1adb6b79",
"lines": [
1695,
1770
],
"claim": "core0.25.0 LoadImage准确schema、输入目录枚举、双读取分支及IMAGE/MASK输出"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"file": "nodes.py",
"local_file": "../watermark-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/135abed8da169e33ab0b86550e05e3ae55d6df8c/nodes.py",
"sha256": "18ae659664de15c55bc790c12e3c5bff172abd4629da58f10712a1fb1adb6b79",
"lines": [
1622,
1693
],
"claim": "PreviewImage继承SaveImage,temp目录PNG与UI images,无执行返回槽"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "core",
"repository": "https://github.com/Comfy-Org/ComfyUI",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"file": "nodes.py",
"local_file": "../watermark-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/135abed8da169e33ab0b86550e05e3ae55d6df8c/nodes.py",
"sha256": "18ae659664de15c55bc790c12e3c5bff172abd4629da58f10712a1fb1adb6b79",
"lines": [
2023,
2065
],
"claim": "LoadImage和PreviewImage旧式准确注册"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "cr",
"repository": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"file": "nodes/nodes_graphics_text.py",
"local_file": "../watermark-reference/cr__nodes__nodes_graphics_text.py",
"url": "https://raw.githubusercontent.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes/nodes_graphics_text.py",
"sha256": "6b83d72afb0e6bf5cefe3a281dfcab731d9a5013cd82e070bb62ddb9e6a6e7bb",
"lines": [
356,
448
],
"claim": "Comfyroll准确九字段schema、批次循环、位置、字体和合成"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "cr",
"repository": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"file": "nodes/functions_graphics.py",
"local_file": "../watermark-reference/cr__nodes__functions_graphics.py",
"url": "https://raw.githubusercontent.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes/functions_graphics.py",
"sha256": "d2ab92dfcc4622f7a9ea1e15e6f38e0aaac444ed09a03b6d5ce7185b3350ebc2",
"lines": [
358,
377
],
"claim": "只有custom使用HEX,其它颜色按color_mapping"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "cr",
"repository": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"file": "nodes/functions_graphics.py",
"local_file": "../watermark-reference/cr__nodes__functions_graphics.py",
"url": "https://raw.githubusercontent.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes/functions_graphics.py",
"sha256": "d2ab92dfcc4622f7a9ea1e15e6f38e0aaac444ed09a03b6d5ce7185b3350ebc2",
"lines": [
421,
431
],
"claim": "RGBA alpha按opacity减弱"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "cr",
"repository": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"file": "config.py",
"local_file": "../watermark-reference/cr__config.py",
"url": "https://raw.githubusercontent.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/config.py",
"sha256": "1ff1b1b04fad63df11e559c38b30ef9eb8c25bc1af0706b91b4c8929e51975dd",
"lines": [
1,
35
],
"claim": "Comfyroll颜色选项与white映射"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "cr",
"repository": "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"file": "node_mappings.py",
"local_file": "../watermark-reference/cr__node_mappings.py",
"url": "https://raw.githubusercontent.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/node_mappings.py",
"sha256": "9ae8fbedc4941f5bd1f58dd46898bb3dff20ef76ed65b27eb35d70df98b6e633",
"lines": [
1,
532
],
"claim": "包入口引入node_mappings,CR准确类注册链"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "guhai",
"repository": "https://github.com/goohai/Goohaitools-comfyui",
"commit": "0b267384faaa9201c821c68dfa3dacd784da171d",
"file": "nodes/图像添加水印.py",
"local_file": "../watermark-reference/guhai__nodes__图像添加水印.py",
"url": "https://raw.githubusercontent.com/goohai/Goohaitools-comfyui/0b267384faaa9201c821c68dfa3dacd784da171d/nodes/图像添加水印.py",
"sha256": "c23f2a31c9a231f38312c4332eca99bbfce0e8b37159973c4323ed7bbc2dd9a0",
"lines": [
1,
259
],
"claim": "孤海准确schema、文字与图像支路、旋转/平铺、通道与注册"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "guhai",
"repository": "https://github.com/goohai/Goohaitools-comfyui",
"commit": "0b267384faaa9201c821c68dfa3dacd784da171d",
"file": "__init__.py",
"local_file": "../watermark-reference/guhai____init__.py",
"url": "https://raw.githubusercontent.com/goohai/Goohaitools-comfyui/0b267384faaa9201c821c68dfa3dacd784da171d/__init__.py",
"sha256": "6b820d7452bd1ef0c0eabee0a8bfe73e9bf570cf4796a8d7d993b15ca020a952",
"lines": [
1,
48
],
"claim": "孤海包按nodes/*.py合并注册映射,WEB_DIRECTORY=./web"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "camera",
"repository": "https://github.com/karas17/ComfyUI-Camera-Watermark",
"commit": "c461dedc6ce65e1defe7308e97e7081cedcaf2a7",
"file": "__init__.py",
"local_file": "../watermark-reference/camera____init__.py",
"url": "https://raw.githubusercontent.com/karas17/ComfyUI-Camera-Watermark/c461dedc6ce65e1defe7308e97e7081cedcaf2a7/__init__.py",
"sha256": "6e6dc161a8fb37af81474ad5fd455e8bf8029361dcb4e1dec5e51a5c968b69ee",
"lines": [
230,
269
],
"claim": "Camera准确27服务端控件schema及可选exif_data"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "camera",
"repository": "https://github.com/karas17/ComfyUI-Camera-Watermark",
"commit": "c461dedc6ce65e1defe7308e97e7081cedcaf2a7",
"file": "__init__.py",
"local_file": "../watermark-reference/camera____init__.py",
"url": "https://raw.githubusercontent.com/karas17/ComfyUI-Camera-Watermark/c461dedc6ce65e1defe7308e97e7081cedcaf2a7/__init__.py",
"sha256": "6e6dc161a8fb37af81474ad5fd455e8bf8029361dcb4e1dec5e51a5c968b69ee",
"lines": [
314,
365
],
"claim": "样式范围解析和EXIF外线条件、手工文案回退、logo选择"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "camera",
"repository": "https://github.com/karas17/ComfyUI-Camera-Watermark",
"commit": "c461dedc6ce65e1defe7308e97e7081cedcaf2a7",
"file": "__init__.py",
"local_file": "../watermark-reference/camera____init__.py",
"url": "https://raw.githubusercontent.com/karas17/ComfyUI-Camera-Watermark/c461dedc6ce65e1defe7308e97e7081cedcaf2a7/__init__.py",
"sha256": "6e6dc161a8fb37af81474ad5fd455e8bf8029361dcb4e1dec5e51a5c968b69ee",
"lines": [
407,
650
],
"claim": "随机/预设条件、1200宽动态缩放、字体、画布和logo绘制"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "camera",
"repository": "https://github.com/karas17/ComfyUI-Camera-Watermark",
"commit": "c461dedc6ce65e1defe7308e97e7081cedcaf2a7",
"file": "__init__.py",
"local_file": "../watermark-reference/camera____init__.py",
"url": "https://raw.githubusercontent.com/karas17/ComfyUI-Camera-Watermark/c461dedc6ce65e1defe7308e97e7081cedcaf2a7/__init__.py",
"sha256": "6e6dc161a8fb37af81474ad5fd455e8bf8029361dcb4e1dec5e51a5c968b69ee",
"lines": [
20,
121
],
"claim": "字体/logo动态枚举、十种版式及预设"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "camera",
"repository": "https://github.com/karas17/ComfyUI-Camera-Watermark",
"commit": "c461dedc6ce65e1defe7308e97e7081cedcaf2a7",
"file": "__init__.py",
"local_file": "../watermark-reference/camera____init__.py",
"url": "https://raw.githubusercontent.com/karas17/ComfyUI-Camera-Watermark/c461dedc6ce65e1defe7308e97e7081cedcaf2a7/__init__.py",
"sha256": "6e6dc161a8fb37af81474ad5fd455e8bf8029361dcb4e1dec5e51a5c968b69ee",
"lines": [
271,
295
],
"claim": "tensor转换与字体缓存/加载失败回退"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "camera",
"repository": "https://github.com/karas17/ComfyUI-Camera-Watermark",
"commit": "c461dedc6ce65e1defe7308e97e7081cedcaf2a7",
"file": "__init__.py",
"local_file": "../watermark-reference/camera____init__.py",
"url": "https://raw.githubusercontent.com/karas17/ComfyUI-Camera-Watermark/c461dedc6ce65e1defe7308e97e7081cedcaf2a7/__init__.py",
"sha256": "6e6dc161a8fb37af81474ad5fd455e8bf8029361dcb4e1dec5e51a5c968b69ee",
"lines": [
645,
654
],
"claim": "Camera准确注册;该完整树没有JS文件,不证明宿主预设回调"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/extensions/core/uploadImage.ts",
"local_file": "../birefnet-reference/frontend__src__extensions__core__uploadImage.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/extensions/core/uploadImage.ts",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06",
"lines": [
1,
40
],
"claim": "按媒体combo schema添加IMAGEUPLOAD输入;不是后台image参数"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"local_file": "../birefnet-reference/frontend__src__renderer__extensions__vueNodes__widgets__composables__useImageUploadWidget.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.ts",
"sha256": "c3c06c7bcdc56b2787368dc107fbd522d983466d244c0fdf724bae9ddd356f29",
"lines": [
1,
129
],
"claim": "准确IMAGEUPLOAD控件、占位value及serialize策略;不能忽略UE回调"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/scripts/widgets.ts",
"local_file": "../birefnet-reference/frontend__src__scripts__widgets.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/widgets.ts",
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
"lines": [
296,
309
],
"claim": "IMAGEUPLOAD控件工厂注册"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
899,
938
],
"claim": "按控件序列恢复widgets_values,跳过serialize=false,之后onConfigure"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
963,
996
],
"claim": "保存widgets_values及onSerialize,保存态不直接等于最终prompt"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../birefnet-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/lib/litegraph/src/LGraphNode.ts",
"sha256": "a8c356bb585a4376ad2abfa4a32b3cafa63acf5dce7a26473c65f60a44901a1b",
"lines": [
1945,
1998
],
"claim": "addWidget将serialize:false留在options,区别于widget.serialize工作流持久化开关"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/utils/executionUtil.ts",
"local_file": "../birefnet-reference/frontend__src__utils__executionUtil.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/utils/executionUtil.ts",
"sha256": "67bbc3d626a5092f0093e45d2df2308a2bf5cd69a85c26f81cb6fa143fda2d33",
"lines": [
83,
112
],
"claim": "graphToPrompt按options.serialize=false排除upload控件,仅静态读取不调用"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/composables/node/useNodeImageUpload.ts",
"local_file": "../birefnet-reference/frontend__src__composables__node__useNodeImageUpload.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/composables/node/useNodeImageUpload.ts",
"sha256": "11b22d77758795262a2a10252c0ef57f1b2017c4125af3928b353292d53bb3e8",
"lines": [
20,
56
],
"claim": "上传POST与完成后路径更新仅源码说明;本轮不调用上传"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "frontend",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "LICENSE",
"local_file": "../birefnet-reference/frontend__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"lines": [
1,
674
],
"claim": "固定仓库许可原文,不为未确认节点提供方或权重许可背书"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "frontend-explicit-assumption",
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
"commit": "f754141537fecaae53d635d94615f588b0e39f95",
"file": "src/scripts/widgets.ts",
"local_file": "../birefnet-reference/frontend__src__scripts__widgets.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/f754141537fecaae53d635d94615f588b0e39f95/src/scripts/widgets.ts",
"sha256": "43e1551ebcf9753e8a3ee47afc0b647eacbecebd2303bab7f155dd3f311c820d",
"lines": [
82,
265
],
"claim": "显式固定前端参考的种子附加控制,非本图宿主身份/最终seed证明"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "__init__.py",
"local_file": "../watermark-reference/layer____init__.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "3b6b551e1391d96a308a47a080f0775ce4d9203bfa741ec440a8f7715f2bbf59",
"lines": [
1,
48
],
"claim": "准确包按py/*.py合并注册",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/watermark.py",
"local_file": "../watermark-reference/layer__py__watermark.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "060cf10dc7634667e865811318f2a3a6da542195c0376d92fc69a43c667bb903",
"lines": [
1,
112
],
"claim": "Add/Show准确注册、IMAGE接口、批次/灰度/YCbCr与恢复输出",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/imagefunc.py",
"local_file": "../watermark-reference/layer__py__imagefunc.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6",
"lines": [
1295,
1381
],
"claim": "水印尺寸公式、临时PNG、blind_watermark调用与异常回退",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/imagefunc.py",
"local_file": "../watermark-reference/layer__py__imagefunc.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6",
"lines": [
119,
149
],
"claim": "PIL/tensor归一化与量化",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/imagefunc.py",
"local_file": "../watermark-reference/layer__py__imagefunc.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6",
"lines": [
791,
805
],
"claim": "normalize_gray亮度拉伸",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/imagefunc.py",
"local_file": "../watermark-reference/layer__py__imagefunc.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6",
"lines": [
1053,
1086
],
"claim": "YCbCr分离/通道合并",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/imagefunc.py",
"local_file": "../watermark-reference/layer__py__imagefunc.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6",
"lines": [
1737,
1742
],
"claim": "RGBA恢复alpha",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "pyproject.toml",
"local_file": "../watermark-reference/layer__pyproject.toml",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "629267e139dff3bfb261e5951c3191dd4fcddc5240ac7cf2f95aeb7452aeb66a",
"lines": [
1,
15
],
"claim": "精确2.0.38身份、仓库、MIT许可与未固定版本blind-watermark依赖",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "LICENSE",
"local_file": "../watermark-reference/layer__LICENSE",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
"lines": [
1,
21
],
"claim": "准确包MIT许可全文",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
}
]
@@ -0,0 +1 @@
1 file reformatted, 8 files left unchanged
@@ -0,0 +1 @@
9 files reformatted, 3 files left unchanged
@@ -0,0 +1 @@
5 files reformatted, 18 files left unchanged
@@ -0,0 +1 @@
8 files reformatted
@@ -0,0 +1 @@
27 files already formatted
@@ -0,0 +1,771 @@
{
"base": "11938ca837fac5acace9d9ef3555d54e224c3d1e",
"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,69 @@
{
"base": "11938ca837fac5acace9d9ef3555d54e224c3d1e",
"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": 56,
"new_notes": 0,
"old_saved": 665,
"old_notes": 16,
"overviews": 25,
"all_disabled": true,
"doc_done": 0,
"executed": 0
}
@@ -0,0 +1,170 @@
{
"sources": [
{
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "__init__.py",
"local_file": "../watermark-reference/layer____init__.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "3b6b551e1391d96a308a47a080f0775ce4d9203bfa741ec440a8f7715f2bbf59",
"lines": [
1,
48
],
"claim": "准确包按py/*.py合并注册",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/watermark.py",
"local_file": "../watermark-reference/layer__py__watermark.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "060cf10dc7634667e865811318f2a3a6da542195c0376d92fc69a43c667bb903",
"lines": [
1,
112
],
"claim": "Add/Show准确注册、IMAGE接口、批次/灰度/YCbCr与恢复输出",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/imagefunc.py",
"local_file": "../watermark-reference/layer__py__imagefunc.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6",
"lines": [
1295,
1381
],
"claim": "水印尺寸公式、临时PNG、blind_watermark调用与异常回退",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/imagefunc.py",
"local_file": "../watermark-reference/layer__py__imagefunc.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6",
"lines": [
119,
149
],
"claim": "PIL/tensor归一化与量化",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/imagefunc.py",
"local_file": "../watermark-reference/layer__py__imagefunc.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6",
"lines": [
791,
805
],
"claim": "normalize_gray亮度拉伸",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/imagefunc.py",
"local_file": "../watermark-reference/layer__py__imagefunc.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6",
"lines": [
1053,
1086
],
"claim": "YCbCr分离/通道合并",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "py/imagefunc.py",
"local_file": "../watermark-reference/layer__py__imagefunc.py",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6",
"lines": [
1737,
1742
],
"claim": "RGBA恢复alpha",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "pyproject.toml",
"local_file": "../watermark-reference/layer__pyproject.toml",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "629267e139dff3bfb261e5951c3191dd4fcddc5240ac7cf2f95aeb7452aeb66a",
"lines": [
1,
15
],
"claim": "精确2.0.38身份、仓库、MIT许可与未固定版本blind-watermark依赖",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
},
{
"id": "layer-registry-2.0.38",
"repository": "https://github.com/chflame163/ComfyUI_LayerStyle_Advance",
"commit": "unknown",
"git_commit_binding": "unknown",
"file": "LICENSE",
"local_file": "../watermark-reference/layer__LICENSE",
"url": "https://cdn.comfy.org/chflame163/ComfyUI_LayerStyle_Advance/2.0.38/node.zip",
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
"lines": [
1,
21
],
"claim": "准确包MIT许可全文",
"registry_version": "2.0.38",
"registry_release_id": "db305def-250b-448d-88b6-e43acbeb03af"
}
],
"flow": [
"盲水印准确来源为Registry comfyui_layerstyle_advance 2.0.38发行包(发布ID db305def-250b-448d-88b6-e43acbeb03af),包pyproject确认仓库与版本;未提供Git完整commit绑定,commit明确unknown,不借其它LayerStyle或最新版。只以HTTP Range读取目录与必要Python/许可文本,没有下载包内图片/字体/权重。",
"Add1固定实现按底图批次循环,水印批次不足复用最后一张(空水印批次不保证安全);wm_size=int(sqrt(width×height×0.015625)×0.9),内容图缩至wm_size方形L灰度;底图转YCbCr,在U通道嵌入后合回,原RGBA时恢复原alpha。极小/异常尺寸、空批次/实际媒体支持和效果未知,不执行算法。",
"包imagefunc写临时PNG,调用blind_watermark.WaterMark(password_img=1,password_wm=1),read_img/read_wm后embed(compression_ratio=100)。依赖只写blind-watermark未锁版本:不据其它版本补DWT/DCT算法、容量/尺寸条件或鲁棒性;目录/文件失败分支并非已验证正常输出,未知明确保留。",
"Show8/16固定实现按输入图尺寸重算wm_size,取YCbCr的U通道,经WaterMark.extract(wm_shape=(wm_size,wm_size))再灰度拉伸,缩至512×512、再normalize_gray、转RGB tensor。extract异常代码先回退黑色64×64再后处理;看见预览不证明提取成功,当前未运行。"
],
"zero_effects": {
"LayerUtility: AddBlindWaterMark": "原[]零保存位置,只有image与watermark_image必需IMAGE输入,返回image槽0;准确2.0.38代码缩方形灰度水印、嵌入YCbCr U通道、批次不足复用最后水印,真实依赖/尺寸/效果未知。",
"LayerUtility: ShowBlindWaterMark": "原[]零保存位置,只有image必需IMAGE输入,返回watermark_image槽0;准确2.0.38按尺寸提取U通道水印、512方形RGB结果与异常回退,不证明成功。"
},
"versions": [
"LayerStyle Advance按准确Registry2.0.38包固定,Git commit绑定unknown;包MIT许可原文保留。blind-watermark依赖版本未锁、算法内部/实际安装与鲁棒性未知。"
]
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,165 @@
E501 Line too long (188 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:138:76
|
136 | …
137 | …
138 | …chema与显式前端1.43.17固定参考假设,不证明宿主控件布局/恢复/UE回调次序或最终prompt;不随机求值、不执行插件。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
139 | …
140 | …
|
E501 Line too long (263 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:181:79
|
179 | …
180 | …
181 | …File.get_components尝试读取图像/alpha;空图像时回退Pillow处理animated webp、EXIF方向、RGB/255。返回IMAGE与MASK;本图三个MASK槽均未接。不是上传成功或真实图片可达证明。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
182 | …
183 | …
|
E501 Line too long (142 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:511:64
|
509 | …
510 | … 知",
511 | … 、读取RGBA并裁透明边。只有选None才尝试从手工A1或EXIF Make匹配名称,不读取/下载logo。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
512 | …
513 | …
|
E501 Line too long (155 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:520:68
|
518 | …
519 | …
520 | … =max(文本相关高度,信息条尺寸的一半),乘倍率后等比LANCZOS缩放。实际大小依赖布局/文字/图片。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
521 | …
522 | …
|
E501 Line too long (178 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:655:79
|
653 | …rk_image;1.image槽0以边4→Preview7.images,并边8→Show8.image;Show8.watermark_image槽0以边6→Preview9.images。",
654 | ….images。不是刚由1生成的文件,不是本次写入/恢复成功的反向证明,也不保证盲水印鲁棒性。",
655 | … 助文本而非下载文件。孤海2.IMAGE槽0以边16→Preview13.images;Camera20.IMAGE槽0以边29→Preview15.images。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
656 | … 旋转;间距22仅平铺true时按底图高度百分比作用,当前不作用;输出透明false转RGB。CR center忽略20/20边距,white忽略#000000的HEX。",
657 | …Phone/SONY或光圈为真实元数据。randomize_style=false与附加randomize控制分开;保存seed不当最终seed。第1版式底部加条,大小/边距/字号按m…
|
E501 Line too long (201 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:656:62
|
654 | … 刚由1生成的文件,不是本次写入/恢复成功的反向证明,也不保证盲水印鲁棒性。",
655 | … 载文件。孤海2.IMAGE槽0以边16→Preview13.images;Camera20.IMAGE槽0以边29→Preview15.images。",
656 | …2仅平铺true时按底图高度百分比作用,当前不作用;输出透明false转RGB。CR center忽略20/20边距,white忽略#000000的HEX。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
657 | … 光圈为真实元数据。randomize_style=false与附加randomize控制分开;保存seed不当最终seed。第1版式底部加条,大小/边距/字号按min(1,图宽/1…
658 | …mage保存逻辑但写temp PNG、返回UI images,无执行数据槽;源没有SaveImage,预览不是永久导出,目录/权限/产物未知。",
|
E501 Line too long (197 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:658:82
|
656 | … 22仅平铺true时按底图高度百分比作用,当前不作用;输出透明false转RGB。CR center忽略20/20边距,white忽略#000000的HEX。",
657 | …Y或光圈为真实元数据。randomize_style=false与附加randomize控制分开;保存seed不当最终seed。第1版式底部加条,大小/边距/字号按min(1,图宽…
658 | …eImage保存逻辑但写temp PNG、返回UI images,无执行数据槽;源没有SaveImage,预览不是永久导出,目录/权限/产物未知。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
659 | … 布局/恢复与回调次序全部保留;显式frontend1.43.17只是固定参考假设,不以core版本填前端身份。没有模型节点,不编模型依赖或触发下载。",
660 | …
|
E501 Line too long (113 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:688:80
|
686 | continue
687 | if n["type"] == "PreviewImage":
688 | effect = "原[]零位置;images输入,无执行返回槽,固定core0.25.0继承写temp PNG/UI images,非永久导出。"
| ^^^^^^^^^^^^^
689 | ev = [preview, register]
690 | else:
|
E501 Line too long (251 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:694:59
|
692 | …
693 | …v))
694 | … 外可以从另一张已加印图片独立提取盲水印。四路没有依次叠加。字体、标志、图片和真实效果尚未核对;没有正式保存节点,预览不等于永久导出。未实跑,转换保持关闭。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
695 | …
696 | …
|
E501 Line too long (296 > 100)
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:54:87
|
52 | …
53 | …
54 | …-448d-88b6-e43acbeb03af),包pyproject确认仓库与版本;未提供Git完整commit绑定,commit明确unknown,不借其它LayerStyle或最新版。只以HTTP Range读取目录与必要Python/许可文本,没有下载包内图片/字体/权重。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55 | …int(sqrt(width×height×0.015625)×0.9),内容图缩至wm_size方形L灰度;底图转YCbCr,在U通道嵌入后合回,原RGBA时恢复原alpha。极小/异常尺寸、空批次/实际媒体支持和效果未知,不执行算法。",
56 | …d_img/read_wm后embed(compression_ratio=100)。依赖只写blind-watermark未锁版本:不据其它版本补DWT/DCT算法、容量/尺寸条件或鲁棒性;目录/文件失败分支并非已验证正常输出,未知明确保留。",
|
E501 Line too long (248 > 100)
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:57:82
|
55 | …int(sqrt(width×height×0.015625)×0.9),内容图缩至wm_size方形L灰度;底图转YCbCr,在U通道嵌入后合回,原RGBA时恢复原alpha。极小/异常尺寸、空批次/实际媒体支持和效…
56 | …d_img/read_wm后embed(compression_ratio=100)。依赖只写blind-watermark未锁版本:不据其它版本补DWT/DCT算法、容量/尺寸条件或鲁棒性;目录/文件失败分支并非已验证正…
57 | …(wm_size,wm_size))再灰度拉伸,缩至512×512、再normalize_gray、转RGB tensor。extract异常代码先回退黑色64×64再后处理;看见预览不证明提取成功,当前未运行。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
58 | …
59 | … 缩方形灰度水印、嵌入YCbCr U通道、批次不足复用最后水印,真实依赖/尺寸/效果未知。"
|
E501 Line too long (176 > 100)
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:59:76
|
57 | …rMark.extract(wm_shape=(wm_size,wm_size))再灰度拉伸,缩至512×512、再normalize_gray、转RGB tensor。extract异常代码先回退黑色64×64再后…
58 | …
59 | …mage槽0;准确2.0.38代码缩方形灰度水印、嵌入YCbCr U通道、批次不足复用最后水印,真实依赖/尺寸/效果未知。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60 | … 0;准确2.0.38按尺寸提取U通道水印、512方形RGB结果与异常回退,不证明成功。"
61 | …
|
E501 Line too long (146 > 100)
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:60:75
|
58 | …
59 | …MAGE输入,返回image槽0;准确2.0.38代码缩方形灰度水印、嵌入YCbCr U通道、批次不足复用最后水印,真实依赖/尺寸/效果未知。"
60 | …atermark_image槽0;准确2.0.38按尺寸提取U通道水印、512方形RGB结果与异常回退,不证明成功。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 | …
62 | …
|
E501 Line too long (162 > 100)
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:69:84
|
67 | …
68 | …
69 | …mmit绑定unknown;包MIT许可原文保留。blind-watermark依赖版本未锁、算法内部/实际安装与鲁棒性未知。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70 | …
71 | …
|
E501 Line too long (110 > 100)
--> docs/hel-892/watermark-document-evidence/verify_sources.py:64:101
|
62 | )
63 | print(
64 | f"PASS {len(entries)} exact local originals and {len(block['sources'])} citations; no upstream import"
| ^^^^^^^^^^
65 | )
|
Found 15 errors.
@@ -0,0 +1,66 @@
E501 Line too long (263 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:185:79
|
183 | …
184 | …
185 | …File.get_components尝试读取图像/alpha;空图像时回退Pillow处理animated webp、EXIF方向、RGB/255。返回IMAGE与MASK;本图三个MASK槽均未接。不是上传成功或真实图片可达证明。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
186 | …
187 | …
|
E501 Line too long (142 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:515:64
|
513 | …
514 | … 知",
515 | … 、读取RGBA并裁透明边。只有选None才尝试从手工A1或EXIF Make匹配名称,不读取/下载logo。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
516 | …
517 | …
|
E501 Line too long (155 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:524:68
|
522 | …
523 | …
524 | … =max(文本相关高度,信息条尺寸的一半),乘倍率后等比LANCZOS缩放。实际大小依赖布局/文字/图片。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
525 | …
526 | …
|
E501 Line too long (113 > 100)
--> docs/hel-892/watermark-document-evidence/build_definition.py:733:80
|
731 | continue
732 | if n["type"] == "PreviewImage":
733 | effect = "原[]零位置;images输入,无执行返回槽,固定core0.25.0继承写temp PNG/UI images,非永久导出。"
| ^^^^^^^^^^^^^
734 | ev = [preview, register]
735 | else:
|
E501 Line too long (146 > 100)
--> docs/hel-892/watermark-document-evidence/build_layer_editorial.py:86:75
|
84 | …
85 | …
86 | …atermark_image槽0;准确2.0.38按尺寸提取U通道水印、512方形RGB结果与异常回退,不证明成功。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 | …
88 | …
|
E501 Line too long (110 > 100)
--> docs/hel-892/watermark-document-evidence/verify_sources.py:64:101
|
62 | )
63 | print(
64 | f"PASS {len(entries)} exact local originals and {len(block['sources'])} citations; no upstream import"
| ^^^^^^^^^^
65 | )
|
Found 6 errors.
@@ -0,0 +1 @@
All checks passed!
@@ -0,0 +1,4 @@
{
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"raw_sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
}
@@ -0,0 +1,23 @@
[
{
"file": "fixed_document.py",
"sha256": "c3030cd3d429c04a3ffeae353d8f3aa40b03f6c5cfa8ee7edca98c6f4b8d9689",
"wheel": true,
"sdist": true,
"definitions": 25
},
{
"file": "source_reviews.json",
"sha256": "b2f6a251eae0f2df46fb1cc213eacb499ddaa45071d0f5650f6226acd16f241b",
"wheel": true,
"sdist": true,
"definitions": 25
},
{
"file": "library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
"wheel": true,
"sdist": true,
"definitions": 25
}
]
@@ -0,0 +1,3 @@
{
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json": "1fe4c97b9f7f7576b894041f7ab166fb0ed13e0fcc86a4b371638dc2770d995e"
}
@@ -0,0 +1,8 @@
{
"state": "open",
"merged": false,
"html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25",
"head_ref": "agent/agent/a64a969a6a44",
"head_sha": "11938ca837fac5acace9d9ef3555d54e224c3d1e",
"base_ref": "main"
}
@@ -0,0 +1,64 @@
"Add one reviewed definition; preserve every other review object exactly."
from __future__ import annotations
import hashlib
import json
import subprocess
from build_definition import OUT, PATHS, REPO, build, canonical
BASE = "11938ca837fac5acace9d9ef3555d54e224c3d1e"
RESOURCE = "calliope-backend/src/calliope/comfyui/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"
)
# Explicit maintenance of the code-owned allowlist, never trust runtime caller digests.
module = REPO / ("calliope-backend/src/calliope/comfyui/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 + 40]) + "\n" for i in range(0, len(path), 40)
)
+ " ): "
+ repr(digest)
+ ",",
)
module.write_text(text)
(OUT / "pins.json").write_text(json.dumps(pins, ensure_ascii=False, indent=2) + "\n")
print(("PASS one definition; other 155 reviews and old 24 blocks unchanged"))
if __name__ == "__main__":
main()
@@ -0,0 +1 @@
PASS one definition; other 155 reviews and old 24 blocks unchanged
@@ -0,0 +1,2 @@
PASS 18 exact local originals and 35 citations; no upstream import
PASS actual 11938ca upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 25 definitions, frozen boundaries, wheel/sdist
@@ -0,0 +1,330 @@
"Actual 11938ca upgrade, one-row protection/rollback, frozen boundaries and packages."
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
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 build --project calliop"
"e-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) == 24
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()) == 665
for p, d in DEFINITIONS.items():
assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d
write(
"review-delta.json",
dict(
base=BASE,
changed_paths=PATHS,
other_reviews_unchanged=155,
old_blocks_unchanged=24,
old_saved=665,
old_notes=16,
new_saved=56,
new_notes=0,
total_documents=25,
total_saved=721,
total_notes=16,
),
)
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/manifest.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" 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 description=? 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(dict(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")
assert without["steps"] == old_doc["steps"][:-3] + fixed["steps"]
without["steps"] = old_doc["steps"]
assert without.pop("source_review_sha") != old_doc.pop("source_review_sha")
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",
dict(
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=56,
new_notes=0,
old_saved=665,
old_notes=16,
overviews=25,
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")
assert current == old_reviews
boundaries = json.loads(
(REPO / ("docs/hel-892/h3-document-evidence/unchanged-boundaries.json")).read_bytes()
)
paths = (
[f["path"] for f in boundaries["files"]]
+ boundaries["frozen_conversion_and_audits"]
+ ["calliope-backend/src/calliope/comfyui/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(dict(path=p, sha256=hashlib.sha256(raw).hexdigest()))
ui = "calliope-web/src/lib/components/WorkflowDocumentDrawer.svelte"
drawer_bytes = (REPO / ui).read_bytes()
assert drawer_bytes == subprocess.check_output(["git", "show", f"{BASE}:{ui}"], cwd=REPO)
write(
"boundaries.json",
dict(
base=BASE,
files=kept,
originals=163,
old_twenty_four_blocks_unchanged=True,
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("\0")
.split("\0")
)
frozen = [
p
for p in tracked
if p.startswith(("example_ComfyUI_workflows/", "docs/hel-892/supplied-api/"))
or p.startswith("calliope-backend/src/calliope/comfyui/")
and p not in [RESOURCE, ("calliope-backend/src/calliope/comfyui/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",
dict(
base=BASE,
files=[
dict(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/comfyui" / 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(
dict(
file=name,
sha256=hashlib.sha256(raw).hexdigest(),
wheel=True,
sdist=True,
definitions=25,
)
)
write("package-check.json", packages)
print(
"PASS actual 11938ca upgrade1/skip154, repe"
"at155, rollback1, edits1/29cols, fresh155,"
" 1217/3660/294, 25 definitions, frozen bou"
"ndaries, wheel/sdist"
)
if __name__ == "__main__":
main()
@@ -0,0 +1,2 @@
PASS 18 exact local originals and 35 citations; no upstream import
PASS actual 11938ca upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 25 definitions, frozen boundaries, wheel/sdist
@@ -0,0 +1,117 @@
"Readable complete Chinese definitions and fixed source index from delivered data."
from __future__ import annotations
import hashlib
import json
from pathlib import Path
OUT = Path(__file__).resolve().parent
def main():
lines = [
"# 四种水印固定参考中文说明",
"",
(
"56新顶层标量保存位置+0新注释;旧24图665保存位置+16注释逐对"
"象不变。25图721位置+16注释展示,155定稿0、实跑0、新增转换"
"0。"
),
"",
(
"复用SQLite来源库→正常GET详情→现有说明抽屉;仅新增source_reviews说"
"明块和显式受信摘要,不改变转换/执行链。来源索引local_file以docs/hel-8"
"92/watermark-document-evidence为解析基准。"
),
"",
]
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["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']}"
]
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 / "四种水印固定参考中文说明.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,42 @@
"Compare deterministic definitions and rendered artifacts without repeating unrelated tests."
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 / "四种水印固定参考中文说明.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(
dict(
definitions=25,
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 and rendered artifacts: zero difference"))
if __name__ == "__main__":
main()
@@ -0,0 +1 @@
PASS deterministic definitions and rendered artifacts: zero difference
@@ -0,0 +1,10 @@
{
"definitions": 25,
"repeated_build_equal": true,
"repeated_render_equal": true,
"resource_sha256": "c94b7529931405e08818f13ca4eb34ac1d79d1cdccac88acea1354568f5cc6f6",
"artifacts": {
"fixed-source-index.json": "6b1b5ad85b38d4ec914a71fc145634caaa9cf915fe73804efe8391cfc8acdec3",
"四种水印固定参考中文说明.md": "f9a2b5a4f2d55d2f93ce1943fc8ce1496e94b0fcbefcc28c16b82b5dba36187d"
}
}
@@ -0,0 +1 @@
{"total": 93, "fixed_count": 83, "polling_count": 10, "paths": {"/api/workflows": 3, "/api/workflows/11": 4, "/api/workflows/3": 4, "/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/jobs": 10, "/api/settings": 1, "/api/workflows/156": 1, "/api/workflows/157": 1}, "readiness_included": 1, "reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。"}
@@ -0,0 +1,39 @@
"""Count actual local server GETs separately from browser intercepted requests."""
import collections
import json
import re
from pathlib import Path
OUT = Path(__file__).resolve().parent
def main():
text = (OUT / "service-0.txt").read_text()
gets = re.findall(r'"GET ([^ ]+) HTTP/', text)
polling = [p for p in gets if p in ["/api/jobs", "/api/events"]]
result = dict(
total=len(gets),
fixed_count=len(gets) - len(polling),
polling_count=len(polling),
paths=dict(collections.Counter(gets)),
readiness_included=1,
reason=(
"就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,"
"服务日志只含真正到后端者,不机械等同。"
"轮询可随计时边界±1,禁止请求始终零容忍。"
),
)
browser = json.loads((OUT / "browser-results.json").read_bytes())
assert browser["errors"] == []
assert all(r["method"] == "GET" for r in browser["requests"])
assert all(not p.startswith("/api/view") for p in gets)
assert abs(result["polling_count"] - browser["request_accounting"]["polling_count"]) <= 1
(OUT / "server-request-accounting.json").write_text(
json.dumps(result, ensure_ascii=False, indent=2) + "\n"
)
print(json.dumps(result, ensure_ascii=False))
if __name__ == "__main__":
main()
@@ -0,0 +1,15 @@
{
"base": "11938ca837fac5acace9d9ef3555d54e224c3d1e",
"changed_paths": [
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json"
],
"other_reviews_unchanged": 155,
"old_blocks_unchanged": 24,
"old_saved": 665,
"old_notes": 16,
"new_saved": 56,
"new_notes": 0,
"total_documents": 25,
"total_saved": 721,
"total_notes": 16
}
@@ -0,0 +1,39 @@
{
"total": 93,
"fixed_count": 83,
"polling_count": 10,
"paths": {
"/api/workflows": 3,
"/api/workflows/11": 4,
"/api/workflows/3": 4,
"/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/jobs": 10,
"/api/settings": 1,
"/api/workflows/156": 1,
"/api/workflows/157": 1
},
"readiness_included": 1,
"reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。"
}
@@ -0,0 +1,102 @@
INFO: Started server process [647841]
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': {'imported': 155, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
INFO: 127.0.0.1:38900 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/11 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38916 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38932 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38948 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:38944 - "GET /api/settings HTTP/1.1" 200 OK
INFO: 127.0.0.1:38954 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:38966 - "GET /api/workflows/11 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58868 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:58878 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58890 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58894 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:58910 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58926 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58940 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:58956 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58962 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38218 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38226 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38240 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38250 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38260 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38272 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38282 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38298 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38310 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38320 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38332 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38346 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38360 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38368 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38380 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38386 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38398 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38412 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38428 - "GET /api/workflows/11 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38434 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:38438 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:53876 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53880 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53894 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53904 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53910 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53926 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:53928 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53936 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53944 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53954 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:53968 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53976 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53980 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53990 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54004 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54018 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:54032 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38128 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38138 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38146 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38150 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38152 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38162 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38174 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38178 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38190 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38202 - "GET /api/workflows/156 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38212 - "GET /api/workflows/157 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38214 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38228 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:38234 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:38246 - "GET /api/workflows/11 HTTP/1.1" 200 OK
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [647841]
@@ -0,0 +1,11 @@
▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
tsconfig.json:2:12:
2 │ "extends": "./.svelte-kit/tsconfig.json",
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9:02:25 PM [vite] (client) Forced re-optimization of dependencies
VITE v6.4.3 ready in 412 ms
➜ Local: http://127.0.0.1:5173/
@@ -0,0 +1,7 @@
{
"ports_released": [
8247,
5173
],
"runner_finally_stopped": true
}
@@ -0,0 +1,128 @@
{
"local_file_base": "docs/hel-892/watermark-reference",
"files": [
{
"local_file": "core__LICENSE",
"path": "LICENSE",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"
},
{
"local_file": "core__comfy_api__input_impl__video_types.py",
"path": "comfy_api/input_impl/video_types.py",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"sha256": "27c2f86c4c5407f93d7dfe3b38c78eab968c0c38fb6617c21c7e531912c9ee6d",
"git_blob_sha1": "bd2e56ad51a2fa2340e63409b9038de463af3b2d"
},
{
"local_file": "core__nodes.py",
"path": "nodes.py",
"commit": "135abed8da169e33ab0b86550e05e3ae55d6df8c",
"sha256": "18ae659664de15c55bc790c12e3c5bff172abd4629da58f10712a1fb1adb6b79",
"git_blob_sha1": "0d422d418af3d044112f7264327f01558c87e384"
},
{
"local_file": "camera____init__.py",
"path": "__init__.py",
"commit": "c461dedc6ce65e1defe7308e97e7081cedcaf2a7",
"sha256": "6e6dc161a8fb37af81474ad5fd455e8bf8029361dcb4e1dec5e51a5c968b69ee",
"git_blob_sha1": "b1a022b86fc8180a4af3ec7409286c230318e883"
},
{
"local_file": "cr____init__.py",
"path": "__init__.py",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"sha256": "f5648f54dad6044763ac2f5f75bb26ec7f24bb43a8c4a6f6be62e523efee2ff6",
"git_blob_sha1": "e5af18356e8765423954ea7c7d22b4f32fcdd9c0"
},
{
"local_file": "cr__categories.py",
"path": "categories.py",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"sha256": "9c84d8773c4281a1e8f7279c2467adc3a799c872d67fcd7309fb1973751f4840",
"git_blob_sha1": "db903be91ab290045d221884d90559c420c74bb4"
},
{
"local_file": "cr__config.py",
"path": "config.py",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"sha256": "1ff1b1b04fad63df11e559c38b30ef9eb8c25bc1af0706b91b4c8929e51975dd",
"git_blob_sha1": "bd6eebacecfa67ebf7ebbf955e3d2f7c3a58a9de"
},
{
"local_file": "cr__node_mappings.py",
"path": "node_mappings.py",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"sha256": "9ae8fbedc4941f5bd1f58dd46898bb3dff20ef76ed65b27eb35d70df98b6e633",
"git_blob_sha1": "a4a1bc4ff001961a64e24bcfa59de528fbc8a6ea"
},
{
"local_file": "cr__nodes__functions_graphics.py",
"path": "nodes/functions_graphics.py",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"sha256": "d2ab92dfcc4622f7a9ea1e15e6f38e0aaac444ed09a03b6d5ce7185b3350ebc2",
"git_blob_sha1": "afb0c13cc8b759ef4bd33ed0f65e5253097dfe20"
},
{
"local_file": "cr__nodes__nodes_graphics_text.py",
"path": "nodes/nodes_graphics_text.py",
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
"sha256": "6b83d72afb0e6bf5cefe3a281dfcab731d9a5013cd82e070bb62ddb9e6a6e7bb",
"git_blob_sha1": "0ce1f5a742132c50c00be37829de45151fb31582"
},
{
"local_file": "guhai____init__.py",
"path": "__init__.py",
"commit": "0b267384faaa9201c821c68dfa3dacd784da171d",
"sha256": "6b820d7452bd1ef0c0eabee0a8bfe73e9bf570cf4796a8d7d993b15ca020a952",
"git_blob_sha1": "d335c5f40f24a221373c92fe67e74e9c15104a21"
},
{
"local_file": "guhai__nodes__图像添加水印.py",
"path": "nodes/图像添加水印.py",
"commit": "0b267384faaa9201c821c68dfa3dacd784da171d",
"sha256": "c23f2a31c9a231f38312c4332eca99bbfce0e8b37159973c4323ed7bbc2dd9a0",
"git_blob_sha1": "e6e338f6d4b414f77ee4d2ed2e201a3ab39dd362"
},
{
"local_file": "layer__LICENSE",
"registry_version": "2.0.38",
"git_commit_binding": "unknown",
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0"
},
{
"local_file": "layer____init__.py",
"registry_version": "2.0.38",
"git_commit_binding": "unknown",
"sha256": "3b6b551e1391d96a308a47a080f0775ce4d9203bfa741ec440a8f7715f2bbf59"
},
{
"local_file": "layer__py__imagefunc.py",
"registry_version": "2.0.38",
"git_commit_binding": "unknown",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6"
},
{
"local_file": "layer__py__watermark.py",
"registry_version": "2.0.38",
"git_commit_binding": "unknown",
"sha256": "060cf10dc7634667e865811318f2a3a6da542195c0376d92fc69a43c667bb903"
},
{
"local_file": "layer__pyproject.toml",
"registry_version": "2.0.38",
"git_commit_binding": "unknown",
"sha256": "629267e139dff3bfb261e5951c3191dd4fcddc5240ac7cf2f95aeb7452aeb66a"
},
{
"local_file": "layer__requirements.txt",
"registry_version": "2.0.38",
"git_commit_binding": "unknown",
"sha256": "d579cfdc2765b067277b4549d913b484db63474ce1c2db6c916551742f7e0e34"
}
],
"citations": 35,
"no_upstream_execution": true,
"no_assets_fetched": true
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,225 @@
{
"scope": "implementation, changed tests, reproduction scripts, source references and editorial binding; generated reports/logs tracked separately",
"files": [
{
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
"sha256": "c3030cd3d429c04a3ffeae353d8f3aa40b03f6c5cfa8ee7edca98c6f4b8d9689"
},
{
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
"sha256": "b2f6a251eae0f2df46fb1cc213eacb499ddaa45071d0f5650f6226acd16f241b"
},
{
"path": "calliope-backend/tests/test_background_fixed_document.py",
"sha256": "5af6e45350070ac4316c0bffbab48ef2ce5d430957b5f37a06eace753ee1709a"
},
{
"path": "calliope-backend/tests/test_birefnet_fixed_document.py",
"sha256": "e6f08722ca846d8022f5dabab34c5802d99c9fbbf31fc5d861851c643b9939b9"
},
{
"path": "calliope-backend/tests/test_concat_fixed_document.py",
"sha256": "2d366eae6e6856562d4b73e0a66efd027230ee97e6c5bfbcfe4add2779df5583"
},
{
"path": "calliope-backend/tests/test_controlnet_fixed_document.py",
"sha256": "0b4828b6f0e474a3774be70fdecc242cf34ba1f06a64e081bef1093d6715ab9f"
},
{
"path": "calliope-backend/tests/test_frames_fixed_document.py",
"sha256": "01d62fdc649a1c2776a5fe9d63d317d3214700893829c3d51fe052304b3e5230"
},
{
"path": "calliope-backend/tests/test_gemma_fixed_document.py",
"sha256": "265189e9325998553cba89dd9ecd1f9c670eec761b729d6730aed7147bdf49a8"
},
{
"path": "calliope-backend/tests/test_gif_images_fixed_document.py",
"sha256": "20cc1fd798e57e143dab8847f3d706659487df42104e1ffb29d37f1f0bde5376"
},
{
"path": "calliope-backend/tests/test_grid_fixed_document.py",
"sha256": "798b76711c58b5bd79f437a4545c3b8be3445abfef3d1f15ac635b0d95e2533f"
},
{
"path": "calliope-backend/tests/test_latent_fixed_document.py",
"sha256": "eaf6ba7036af498a730944525ae82697d4aa15d20edf9abbd97c05d22f5d74e8"
},
{
"path": "calliope-backend/tests/test_nlf_fixed_document.py",
"sha256": "c6084a46a85806f17a9512aa11d1d990a60a02b46dbc0aad0910121a4dccbe45"
},
{
"path": "calliope-backend/tests/test_openpose_fixed_document.py",
"sha256": "438060fa3923d19c970546eb0020516fe0732e20a8803fa90a2f6ac810652629"
},
{
"path": "calliope-backend/tests/test_reverse_fixed_document.py",
"sha256": "54d011716efd880b21df25ffb947f3eb11d46496a0ddfd6e021c6365adaf75de"
},
{
"path": "calliope-backend/tests/test_sdpose_fixed_document.py",
"sha256": "d47a0ed85feee6776f4a3778e0df9c46799278cadbce274cf0a7144ce5bb8828"
},
{
"path": "calliope-backend/tests/test_watermark_fixed_document.py",
"sha256": "0578759d3a8ea26bf424935c1433507030c664fbb5d6fd6bad2f28b0ef2764cc"
},
{
"path": "docs/hel-892/watermark-document-evidence/build_definition.py",
"sha256": "f2cba04b4ad244bc9ade98b124c1429fab17a137dc144d29387a395fd8450071"
},
{
"path": "docs/hel-892/watermark-document-evidence/build_layer_editorial.py",
"sha256": "a6d212a07f1cc0daa4bf6fba433f750e3ae17a1425bd2c01466e6dff786fd849"
},
{
"path": "docs/hel-892/watermark-document-evidence/discover_sources.py",
"sha256": "cea0d1fe49712ef84f6fbf4630af24624e44ed33abe40cdcb0b223555a378ca1"
},
{
"path": "docs/hel-892/watermark-document-evidence/fetch_extra_sources.py",
"sha256": "5e95f86156ed30ed48ecd13ccc52fb934572191b305bbe55bb1064f48a973dfd"
},
{
"path": "docs/hel-892/watermark-document-evidence/layer-editorial.json",
"sha256": "ead339e6cc0159192da9f83ea2807b3b2a5b469db9cfbc135c04947dc2e010e6"
},
{
"path": "docs/hel-892/watermark-document-evidence/original-binding.json",
"sha256": "9284c04418ba516bc8382795032e360bdf442b02e26ecfcbecb8b83a3852b071"
},
{
"path": "docs/hel-892/watermark-document-evidence/rebuild.py",
"sha256": "4809a68ca1484af335c9c5c7c566788e9f27a0d07c7cbe7767cc06e2df77aee7"
},
{
"path": "docs/hel-892/watermark-document-evidence/recompute.py",
"sha256": "7316e58ad78af457fd49be6eb57b92a2b369626f77cc774bb8adf02346db7234"
},
{
"path": "docs/hel-892/watermark-document-evidence/render_report.py",
"sha256": "91f1158576804734009d3664bb22c4d49995d73fe723919331a44402691e6e84"
},
{
"path": "docs/hel-892/watermark-document-evidence/repeat.py",
"sha256": "a6b569c5c7f483626beac86f4e122a7de38d1f636695fede7f7ee17b7c99845e"
},
{
"path": "docs/hel-892/watermark-document-evidence/request_counts.py",
"sha256": "16fb2ba598a5b58f0704cc4535bfdd1d6ba8ade927db81f7f48875b23b83b020"
},
{
"path": "docs/hel-892/watermark-document-evidence/verify_sources.py",
"sha256": "d5677bf201c658eb88245b3910faf72af0bb777a85311d2aeef6d5d392f7c3c2"
},
{
"path": "docs/hel-892/watermark-reference/camera-tree.json",
"sha256": "49c61ab16e8b935b1a544772cb5dfcf92c4fca8d8e88469e21eda46e45a142c9"
},
{
"path": "docs/hel-892/watermark-reference/camera____init__.py",
"sha256": "6e6dc161a8fb37af81474ad5fd455e8bf8029361dcb4e1dec5e51a5c968b69ee"
},
{
"path": "docs/hel-892/watermark-reference/core-tree.json",
"sha256": "00b9233049a29105c91da05065fc635689241e9faa8afcdf44fa2298bcc903a6"
},
{
"path": "docs/hel-892/watermark-reference/core__LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"path": "docs/hel-892/watermark-reference/core__comfy_api__input_impl__video_types.py",
"sha256": "27c2f86c4c5407f93d7dfe3b38c78eab968c0c38fb6617c21c7e531912c9ee6d"
},
{
"path": "docs/hel-892/watermark-reference/core__nodes.py",
"sha256": "18ae659664de15c55bc790c12e3c5bff172abd4629da58f10712a1fb1adb6b79"
},
{
"path": "docs/hel-892/watermark-reference/cr-tree.json",
"sha256": "fe9ed6970fed4bfd67e9808e93c359946d87cb065b3bd43a804aafe88f7e5ede"
},
{
"path": "docs/hel-892/watermark-reference/cr____init__.py",
"sha256": "f5648f54dad6044763ac2f5f75bb26ec7f24bb43a8c4a6f6be62e523efee2ff6"
},
{
"path": "docs/hel-892/watermark-reference/cr__categories.py",
"sha256": "9c84d8773c4281a1e8f7279c2467adc3a799c872d67fcd7309fb1973751f4840"
},
{
"path": "docs/hel-892/watermark-reference/cr__config.py",
"sha256": "1ff1b1b04fad63df11e559c38b30ef9eb8c25bc1af0706b91b4c8929e51975dd"
},
{
"path": "docs/hel-892/watermark-reference/cr__node_mappings.py",
"sha256": "9ae8fbedc4941f5bd1f58dd46898bb3dff20ef76ed65b27eb35d70df98b6e633"
},
{
"path": "docs/hel-892/watermark-reference/cr__nodes__functions_graphics.py",
"sha256": "d2ab92dfcc4622f7a9ea1e15e6f38e0aaac444ed09a03b6d5ce7185b3350ebc2"
},
{
"path": "docs/hel-892/watermark-reference/cr__nodes__nodes_graphics_text.py",
"sha256": "6b83d72afb0e6bf5cefe3a281dfcab731d9a5013cd82e070bb62ddb9e6a6e7bb"
},
{
"path": "docs/hel-892/watermark-reference/guhai-tree.json",
"sha256": "3013c022e4ad1a83e26796003bdda25b33ea1051e8c134d0fd02fa9614a7a674"
},
{
"path": "docs/hel-892/watermark-reference/guhai____init__.py",
"sha256": "6b820d7452bd1ef0c0eabee0a8bfe73e9bf570cf4796a8d7d993b15ca020a952"
},
{
"path": "docs/hel-892/watermark-reference/guhai__nodes__图像添加水印.py",
"sha256": "c23f2a31c9a231f38312c4332eca99bbfce0e8b37159973c4323ed7bbc2dd9a0"
},
{
"path": "docs/hel-892/watermark-reference/layer-package-list.json",
"sha256": "8ec5059dcb1c7d9b06c91d2f94b50259419585c4d62ac5541f442b5c123d7125"
},
{
"path": "docs/hel-892/watermark-reference/layer-registry-2.0.38.json",
"sha256": "f82f68f494614f0bb2518e4a7eb9b5a20938d61bea3f909f92afbd811f755195"
},
{
"path": "docs/hel-892/watermark-reference/layer__LICENSE",
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0"
},
{
"path": "docs/hel-892/watermark-reference/layer____init__.py",
"sha256": "3b6b551e1391d96a308a47a080f0775ce4d9203bfa741ec440a8f7715f2bbf59"
},
{
"path": "docs/hel-892/watermark-reference/layer__py__imagefunc.py",
"sha256": "258d1c3796103f418c272c4cdb913a5d7dd9d6e82461ebee0f861e36942d34e6"
},
{
"path": "docs/hel-892/watermark-reference/layer__py__watermark.py",
"sha256": "060cf10dc7634667e865811318f2a3a6da542195c0376d92fc69a43c667bb903"
},
{
"path": "docs/hel-892/watermark-reference/layer__pyproject.toml",
"sha256": "629267e139dff3bfb261e5951c3191dd4fcddc5240ac7cf2f95aeb7452aeb66a"
},
{
"path": "docs/hel-892/watermark-reference/layer__requirements.txt",
"sha256": "d579cfdc2765b067277b4549d913b484db63474ce1c2db6c916551742f7e0e34"
},
{
"path": "docs/hel-892/watermark-reference/pins.json",
"sha256": "1e3e2767601de2da7fadee04afdca76868be49113c812c5e61d2eef26ef3ac7a"
},
{
"path": "e2e/run-watermark-document.py",
"sha256": "b971ca834561fc199d8784512b3f2a4493ce4d51dcd753d99661365daf2b4470"
},
{
"path": "e2e/watermark-document.mjs",
"sha256": "33097c26d641849b8d92b58917c3e0fef37d8d50872b4486d0d9d4ab6346038d"
}
]
}
@@ -0,0 +1,13 @@
........................................................................ [ 17%]
........................................................................ [ 35%]
........................................................................ [ 53%]
........................................................................ [ 70%]
........................................................................ [ 88%]
.............................................. [100%]
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-7681e8af13d0/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/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
406 passed, 1 warning in 0.92s
@@ -0,0 +1,24 @@
# 仓库根;既有Python3.11/锁定依赖;不执行上游插件,不读取媒体/目标机。
uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline
npm ci --prefix calliope-web --ignore-scripts --offline
python3 docs/hel-892/watermark-document-evidence/verify_sources.py
python3 docs/hel-892/watermark-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
uv build --project calliope-backend --offline
uv run --project calliope-backend --offline python docs/hel-892/watermark-document-evidence/recompute.py
python3 docs/hel-892/watermark-document-evidence/repeat.py
uv run --project calliope-backend --offline pytest calliope-backend/tests/test_watermark_fixed_document.py calliope-backend/tests/test_birefnet_fixed_document.py::test_actual_graph_counts_pointers_notes_unknowns_and_old_objects calliope-backend/tests/test_workflow_library.py calliope-backend/tests/test_latent_fixed_document.py::test_exact_graph_versions_and_preservation calliope-backend/tests/test_frames_fixed_document.py::test_exact_graph_versions_and_preservation calliope-backend/tests/test_concat_fixed_document.py::test_actual_paths_counts_old_objects_and_media_conditions calliope-backend/tests/test_gif_images_fixed_document.py::test_actual_paths_counts_old_objects_and_media_conditions calliope-backend/tests/test_reverse_fixed_document.py::test_exact_graph_and_original_seventeen_unchanged calliope-backend/tests/test_nlf_fixed_document.py::test_exact_topology_counts_modes_unknowns_and_old_objects calliope-backend/tests/test_openpose_fixed_document.py::test_exact_document_topology_and_preservation calliope-backend/tests/test_grid_fixed_document.py::test_only_two_reviews_change_and_all_old_blocks_preserved calliope-backend/tests/test_gemma_fixed_document.py::test_real_document_and_frozen_old_thirteen_blocks calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks calliope-backend/tests/test_background_fixed_document.py::test_ten_documents_only_gain_overview_and_new_block_is_independent calliope-backend/tests/test_controlnet_fixed_document.py::test_other_documents_and_block_swaps -q --disable-warnings
uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/watermark-document-evidence e2e/run-watermark-document.py calliope-backend/src/calliope/comfyui/fixed_document.py calliope-backend/tests/test_{watermark,birefnet,latent,frames,concat,gif_images,reverse,nlf,openpose,grid,gemma,sdpose,background,controlnet}_fixed_document.py
uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/watermark-document-evidence e2e/run-watermark-document.py calliope-backend/src/calliope/comfyui/fixed_document.py calliope-backend/tests/test_{watermark,birefnet,latent,frames,concat,gif_images,reverse,nlf,openpose,grid,gemma,sdpose,background,controlnet}_fixed_document.py
node --check e2e/watermark-document.mjs
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 uv run --project calliope-backend --offline python e2e/run-watermark-document.py
# 浏览runner finally终止两个本地服务;产物按下列精确路径复制后复算请求:
cp .local-evidence/watermark-document/browser/browser-results.json docs/hel-892/watermark-document-evidence/browser-results.json
cp .local-evidence/watermark-document/browser/service-0.log docs/hel-892/watermark-document-evidence/service-0.txt
cp .local-evidence/watermark-document/browser/service-1.log docs/hel-892/watermark-document-evidence/service-1.txt
python3 docs/hel-892/watermark-document-evidence/request_counts.py
# 可选:重新在线获取准确文本原件,不执行上游,不读取媒体/字体/logo/权重。
# python3 docs/hel-892/watermark-document-evidence/discover_sources.py
# python3 docs/hel-892/watermark-document-evidence/fetch_extra_sources.py
# python3 docs/hel-892/watermark-document-evidence/build_layer_editorial.py
@@ -0,0 +1,91 @@
"Local byte/blob verification of exact textual originals, no plugin import."
import hashlib
import json
from build_definition import OUT, REF, build
def main():
pins = json.loads((REF / "pins.json").read_bytes())
entries = []
for key, pin in pins.items():
tree = json.loads((REF / (key + "-tree.json")).read_bytes())
assert tree["sha"] == pin["commit"] and not tree["truncated"]
by_name = {e["path"]: e for e in tree["tree"]}
for local in sorted(REF.glob(key + "__*")):
path = next(p for p in by_name if key + "__" + p.replace("/", "__") == local.name)
raw = local.read_bytes()
blob = hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
assert blob == by_name[path]["sha"]
entries.append(
dict(
local_file=local.name,
path=path,
commit=pin["commit"],
sha256=hashlib.sha256(raw).hexdigest(),
git_blob_sha1=blob,
)
)
release = json.loads((REF / "layer-registry-2.0.38.json").read_bytes())
assert (
release["version"] == "2.0.38" and release["id"] == "db305def-250b-448d-88b6-e43acbeb03af"
)
assert 'version = "2.0.38"' in (REF / "layer__pyproject.toml").read_text()
for local in sorted(REF.glob("layer__*")):
raw = local.read_bytes()
entries.append(
dict(
local_file=local.name,
registry_version="2.0.38",
git_commit_binding="unknown",
sha256=hashlib.sha256(raw).hexdigest(),
)
)
block = build()
graph = json.loads((OUT.parents[2] / block["source_path"]).read_bytes())
(OUT / "source-graphs.json").write_text(
json.dumps(
dict(
source_path=block["source_path"],
raw_sha256=block["source_sha256"],
canonical_sha256=block["canonical_sha256"],
nodes=graph["nodes"],
links=graph["links"],
extra=graph["extra"],
saved_positions=56,
scalar_positions=56,
notes=0,
missing_widgets=[12, 14],
empty_widgets=[1, 16, 17, 7, 8, 9, 15, 11, 13],
),
ensure_ascii=False,
indent=2,
)
+ "\n"
)
for e in block["sources"]:
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
(OUT / "source-check.json").write_text(
json.dumps(
dict(
local_file_base="docs/hel-892/watermark-reference",
files=entries,
citations=len(block["sources"]),
no_upstream_execution=True,
no_assets_fetched=True,
),
ensure_ascii=False,
indent=2,
)
+ "\n"
)
print(
f"PASS {len(entries)} exact local originals and "
f"{len(block['sources'])} citations; no upstream import"
)
if __name__ == "__main__":
main()
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,654 @@
import torch
import numpy as np
from PIL import Image, ImageDraw, ImageFont
import os
import json
import re
import random
from dataclasses import dataclass, field
from typing import Optional, Tuple, List, Dict, Any
# Author: KARAS
# Version: 3.9.0 - Implemented dynamic scaling for small images
#
# --- 依赖导入 ---
try:
import piexif
except ImportError:
piexif = None
# --- 插件资源路径设置 ---
current_dir = os.path.dirname(os.path.abspath(__file__))
fonts_dir = os.path.join(current_dir, "fonts")
logos_dir = os.path.join(current_dir, "logos")
os.makedirs(fonts_dir, exist_ok=True)
os.makedirs(logos_dir, exist_ok=True)
# --- 资源扫描与缓存 ---
def get_resource_files(directory: str, extensions: Tuple[str, ...]) -> List[str]:
"""Scans a directory for files with given extensions."""
try:
return sorted([f for f in os.listdir(directory) if f.lower().endswith(extensions)])
except FileNotFoundError:
return []
font_files = get_resource_files(fonts_dir, ('.ttf', '.ttc', '.otf')) or ["default"]
bold_font_files = [f for f in font_files if 'bold' in f.lower() or 'bd' in f.lower()] or font_files
logo_files = ["None"] + sorted([os.path.splitext(f)[0] for f in get_resource_files(logos_dir, ('.png',))])
# --- 预设数据 ---
PHONE_MODELS = [
"HUAWEI Pura 70 Ultra", "HUAWEI Pura 70 Pro", "HUAWEI Mate 60 Pro",
"iPhone 15 Pro Max", "iPhone 15 Pro",
"Samsung Galaxy S24 Ultra", "Xiaomi 14 Ultra",
"OPPO Find X7 Ultra", "vivo X100 Ultra", "Google Pixel 8 Pro", "自定义型号"
]
LAYOUT_OPTIONS = [
"1. 底部留白 - 左右分布",
"2. 底部留白 - 居中",
"3. 右侧留白 - 上下竖排",
"4. 顶部 & 底部留白",
"5. 画内叠加 - 左下角",
"6. 画内叠加 - 右下角",
"7. 画内叠加 - 左上角",
"8. 画内叠加 - 右上角",
"9. 画内叠加 - 居中",
"10. 独立信息条"
]
LAYOUT_PRESETS = {
LAYOUT_OPTIONS[0]: {
"logo": "leica",
"logo_size_ratio": 1.0,
"bar_size": 200,
"bg_color": "#FFFFFF",
"title_color": "#000000",
"subtitle_color": "#888888",
},
LAYOUT_OPTIONS[1]: {
"block_b_text_1": "",
"block_a_text_1": "",
"block_a_text_2": "",
"logo": "hasselblad",
"logo_size_ratio": 1,
"bg_color": "#FFFFFF",
"title_color": "#000000",
"subtitle_color": "#888888",
},
LAYOUT_OPTIONS[2]: {
"bar_size": 300,
"block_a_text_2": "",
"logo_size_ratio": 1.0,
},
LAYOUT_OPTIONS[3]: {
"bar_size": 150,
"block_a_text_2": "",
"logo_size_ratio": 1.0,
},
LAYOUT_OPTIONS[4]: {
"logo": "zeiss",
"title_color": "#FFFFFF",
"subtitle_color": "#CCCCCC",
"logo_size_ratio": 1.0,
},
LAYOUT_OPTIONS[5]: {
"logo": "zeiss",
"title_color": "#FFFFFF",
"subtitle_color": "#CCCCCC",
"logo_size_ratio": 1.0,
},
LAYOUT_OPTIONS[6]: {
"logo": "zeiss",
"title_color": "#FFFFFF",
"subtitle_color": "#CCCCCC",
"logo_size_ratio": 1.0,
},
LAYOUT_OPTIONS[7]: {
"logo": "zeiss",
"title_color": "#FFFFFF",
"subtitle_color": "#CCCCCC",
"logo_size_ratio": 1.0,
},
LAYOUT_OPTIONS[8]: {
"logo": "zeiss",
"title_color": "#FFFFFF",
"subtitle_color": "#CCCCCC",
"logo_size_ratio": 1.0,
},
}
# -----------------------------------------------------------------
# 节点 1: 加载图片/附加EXIF
# -----------------------------------------------------------------
class ImageLoaderWithEXIF:
@classmethod
def INPUT_TYPES(s):
input_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "input")
files = get_resource_files(input_dir, ('.jpg', '.jpeg', '.png', '.webp'))
return {
"required": { "image_file": (sorted(files), {"image_upload": True}) },
"optional": { "image_passthrough": ("IMAGE",) }
}
RETURN_TYPES = ("IMAGE", "STRING")
RETURN_NAMES = ("image", "exif_json")
FUNCTION = "load_or_passthrough"
CATEGORY = "Watermark"
def load_or_passthrough(self, image_file: str, image_passthrough: Optional[torch.Tensor] = None) -> Tuple[torch.Tensor, str]:
if piexif is None:
raise ImportError("需要 'piexif' 库。请运行: pip install piexif")
image_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "input", image_file)
output_exif_json = "{}"
try:
with Image.open(image_path) as img_for_exif:
if 'exif' in img_for_exif.info and img_for_exif.info['exif']:
exif_dict = piexif.load(img_for_exif.info['exif'])
exif_data = self.parse_exif(exif_dict)
output_exif_json = json.dumps(exif_data)
except Exception as e:
print(f"无法从 '{image_file}' 读取EXIF: {e}")
if image_passthrough is not None:
return (image_passthrough, output_exif_json)
else:
with Image.open(image_path) as img:
img_rgb = img.convert("RGB")
if "exif" in img.info:
try:
exif_dict = piexif.load(img.info["exif"])
orientation = exif_dict.get("0th", {}).get(piexif.ImageIFD.Orientation, 1)
if orientation > 1:
img_rgb = self.apply_exif_orientation(img_rgb, orientation)
except Exception as e:
print(f"处理EXIF方向时出错: {e}")
image_tensor = np.array(img_rgb).astype(np.float32) / 255.0
return (torch.from_numpy(image_tensor)[None,], output_exif_json)
def apply_exif_orientation(self, image: Image.Image, orientation: int) -> Image.Image:
"""Applies EXIF orientation to the image."""
if orientation == 2: return image.transpose(Image.FLIP_LEFT_RIGHT)
if orientation == 3: return image.rotate(180)
if orientation == 4: return image.transpose(Image.FLIP_TOP_BOTTOM)
if orientation == 5: return image.rotate(-90, expand=True).transpose(Image.FLIP_LEFT_RIGHT)
if orientation == 6: return image.rotate(-90, expand=True)
if orientation == 7: return image.rotate(90, expand=True).transpose(Image.FLIP_LEFT_RIGHT)
if orientation == 8: return image.rotate(90, expand=True)
return image
def parse_exif(self, exif_dict: Dict) -> Dict[str, Any]:
"""Parses raw EXIF data into a structured dictionary."""
exif_data = {}
zeroth_ifd = exif_dict.get('0th', {})
exif_ifd = exif_dict.get('Exif', {})
if piexif.ImageIFD.Make in zeroth_ifd:
exif_data['Make'] = zeroth_ifd[piexif.ImageIFD.Make].decode('utf-8', errors='ignore').strip('\x00').strip()
if piexif.ImageIFD.Model in zeroth_ifd:
exif_data['Model'] = zeroth_ifd[piexif.ImageIFD.Model].decode('utf-8', errors='ignore').strip('\x00').strip()
if piexif.ExifIFD.LensModel in exif_ifd:
exif_data['LensModel'] = exif_ifd[piexif.ExifIFD.LensModel].decode('utf-8', errors='ignore').strip('\x00').strip()
if piexif.ExifIFD.DateTimeOriginal in exif_ifd:
exif_data['Timestamp'] = exif_ifd[piexif.ExifIFD.DateTimeOriginal].decode('utf-8', errors='ignore').strip('\x00').strip()
if piexif.ExifIFD.FNumber in exif_ifd:
f_num = exif_ifd[piexif.ExifIFD.FNumber]
exif_data['Aperture'] = f"f/{(f_num[0]/f_num[1]):.1f}" if f_num[1] > 0 else "f/0.0"
if piexif.ExifIFD.ExposureTime in exif_ifd:
exp = exif_ifd[piexif.ExifIFD.ExposureTime]
if exp[0] > 0 and exp[1] > 0:
shutter = exp[0] / exp[1]
exif_data['ShutterSpeed'] = f"1/{int(1/shutter)}s" if shutter < 1 else f"{shutter}s"
if piexif.ExifIFD.ISOSpeedRatings in exif_ifd:
exif_data['ISO'] = f"ISO{exif_ifd[piexif.ExifIFD.ISOSpeedRatings]}"
if piexif.ExifIFD.FocalLength in exif_ifd:
focal = exif_ifd[piexif.ExifIFD.FocalLength]
if focal[1] > 0:
exif_data['FocalLength'] = f"{int(focal[0]/focal[1])}mm"
return exif_data
# -----------------------------------------------------------------
# 节点 2: 相机水印生成器
# -----------------------------------------------------------------
@dataclass
class TextContent:
block_a: List[str]
block_b: List[str]
@dataclass
class TextBlock:
lines: List[Tuple[str, ImageFont.FreeTypeFont, str]] = field(default_factory=list)
width: int = 0
height: int = 0
line_bboxes: List[Tuple[int, int, int, int]] = field(default_factory=list)
class CameraWatermarkNode:
_font_cache = {}
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"image": ("IMAGE",),
"layout": (LAYOUT_OPTIONS,),
"restore_preset": ("BOOLEAN", {"default": False, "label_on": "应用当前样式预设", "label_off": "应用当前样式预设"}),
"randomize_style": ("BOOLEAN", {"default": False}),
"random_style_selection": ("STRING", {"multiline": False, "default": "1-10"}),
"seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
"use_exif": ("BOOLEAN", {"default": True}),
"block_a_text_1": ("STRING", {"multiline": False, "default": "iPhone 15 Pro Max"}),
"block_a_text_2": ("STRING", {"multiline": False, "default": "Main Camera"}),
"block_a_text_3": ("STRING", {"multiline": False, "default": "© KARAS"}),
"block_b_text_1": ("STRING", {"multiline": False, "default": "SONY"}),
"block_b_text_2": ("STRING", {"multiline": False, "default": "24mm | f/1.8 | 1/125s | ISO 50"}),
"block_b_text_3": ("STRING", {"multiline": False, "default": ""}),
"logo": (logo_files, {"default": "leica" if "leica" in [lf.lower() for lf in logo_files] else logo_files[0]}),
"logo_size_ratio": ("FLOAT", {"default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1}),
"bar_size": ("INT", {"default": 200, "min": 0, "max": 2048, "step": 10}),
"bar_width": ("INT", {"default": 1894, "min": 64, "max": 8192, "step": 64}),
"bar_height": ("INT", {"default": 165, "min": 64, "max": 8192, "step": 64}),
"padding": ("INT", {"default": 50, "min": 0, "max": 400, "step": 1}),
"spacing": ("INT", {"default": 15, "min": 0, "max": 200, "step": 1}),
"font_name": (font_files, {}),
"font_bold_name": (bold_font_files, {}),
"font_size_large": ("INT", {"default": 48, "min": 8, "max": 200, "step": 1}),
"font_size_medium": ("INT", {"default": 28, "min": 8, "max": 200, "step": 1}),
"font_size_small": ("INT", {"default": 24, "min": 8, "max": 200, "step": 1}),
"bg_color": ("STRING", {"multiline": False, "default": "#FFFFFF"}),
"title_color": ("STRING", {"multiline": False, "default": "#000000"}),
"subtitle_color": ("STRING", {"multiline": False, "default": "#888888"}),
},
"optional": { "exif_data": ("STRING", {"forceInput": True}), }
}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "generate_image"
CATEGORY = "Watermark"
def tensor_to_pil(self, tensor: torch.Tensor) -> Optional[Image.Image]:
if tensor is None: return None
return Image.fromarray(np.clip(255. * tensor.cpu().numpy().squeeze(0), 0, 255).astype(np.uint8))
def pil_to_tensor(self, pil_image: Image.Image) -> torch.Tensor:
return torch.from_numpy(np.array(pil_image).astype(np.float32) / 255.0).unsqueeze(0)
def get_font(self, font_name: str, size: int) -> ImageFont.FreeTypeFont:
cache_key = f"{font_name}_{size}"
if cache_key in self._font_cache:
return self._font_cache[cache_key]
if not font_name or font_name == "default":
try: font = ImageFont.load_default(size=size)
except AttributeError: font = ImageFont.load_default()
else:
font_path = os.path.join(fonts_dir, font_name)
try: font = ImageFont.truetype(font_path, size=size)
except Exception as e:
print(f"警告: 无法加载字体 '{font_name}'。错误: {e}")
try: font = ImageFont.load_default(size=size)
except AttributeError: font = ImageFont.load_default()
self._font_cache[cache_key] = font
return font
def get_text_bbox(self, text: str, font: ImageFont.FreeTypeFont) -> Tuple[int, int, int, int]:
if hasattr(font, 'getbbox'):
return font.getbbox(text)
else:
w, h = font.getsize(text)
return (0, 0, w, h)
def _crop_transparent_border(self, pil_image: Image.Image) -> Image.Image:
"""Crops the transparent border from a PIL image."""
if pil_image.mode != "RGBA":
return pil_image
bbox = pil_image.getbbox()
if bbox:
return pil_image.crop(bbox)
return pil_image
def _parse_range_string(self, range_string: str) -> List[int]:
numbers = set()
parts = range_string.split(',')
for part in parts:
part = part.strip()
if not part: continue
if '-' in part:
try:
start, end = map(int, part.split('-'))
if start <= end:
numbers.update(range(start, end + 1))
except ValueError:
print(f"警告: 无效的范围 '{part}' in random style selection.")
else:
try:
numbers.add(int(part))
except ValueError:
print(f"警告: 无效的数字 '{part}' in random style selection.")
return sorted(list(numbers))
def _prepare_content(self, **kwargs) -> Tuple[TextContent, str]:
exif_data_str = kwargs.get('exif_data')
has_valid_exif = kwargs['use_exif'] and exif_data_str and exif_data_str.strip() != "{}"
b_a1, b_a2, b_a3 = kwargs['block_a_text_1'], kwargs['block_a_text_2'], kwargs['block_a_text_3']
b_b1, b_b2, b_b3 = kwargs['block_b_text_1'], kwargs['block_b_text_2'], kwargs['block_b_text_3']
logo_match_source = b_a1.lower()
if has_valid_exif:
try:
data = json.loads(exif_data_str)
param_parts = [data.get("FocalLength"), data.get("Aperture"), data.get("ShutterSpeed"), data.get("ISO")]
b_a1 = data.get("Model", "")
b_a2 = data.get("LensModel", "")
b_a3 = kwargs.get('author', '© KARAS')
b_b1 = data.get("Make", "")
b_b2 = " | ".join(filter(None, param_parts))
b_b3 = data.get("Timestamp", "")
logo_match_source = data.get("Make", "").lower()
except (json.JSONDecodeError, KeyError) as e:
print(f"无法解析EXIF: {e}")
content = TextContent(block_a=[b_a1, b_a2, b_a3], block_b=[b_b1, b_b2, b_b3])
final_logo = kwargs['logo']
if final_logo == "None" and logo_match_source:
for logo_name in logo_files:
if logo_name != "None" and logo_name.lower() in logo_match_source:
final_logo = logo_name
break
return content, final_logo
def _draw_block(self, draw, block: TextBlock, start_x: int, start_y: int, align: str = 'left', spacing: int = 10):
y = start_y
for i, (text, font, color) in enumerate(block.lines):
bbox = block.line_bboxes[i]
text_width, text_height = bbox[2] - bbox[0], bbox[3] - bbox[1]
x = start_x
if align == 'center':
x = start_x - text_width / 2
elif align == 'right':
x = start_x - text_width
draw.text((x - bbox[0], y - bbox[1]), text, font=font, fill=color)
y += text_height + spacing
def _draw_vertical_text_block(self, draw_layer, block: TextBlock, center_x: int, start_y: int, spacing: int):
if not block.lines:
return 0
temp_surface = Image.new("RGBA", (block.width, block.height), (0, 0, 0, 0))
temp_draw = ImageDraw.Draw(temp_surface)
y_cursor = 0
min_x_offset = min(box[0] for box in block.line_bboxes)
for i, (text, font, color) in enumerate(block.lines):
bbox = block.line_bboxes[i]
text_height = bbox[3] - bbox[1]
temp_draw.text((-min_x_offset, y_cursor - bbox[1]), text, font=font, fill=color)
y_cursor += text_height + spacing
rotated_surface = temp_surface.rotate(90, expand=True, resample=Image.Resampling.LANCZOS)
paste_x = center_x - rotated_surface.width / 2
paste_y = start_y
draw_layer.paste(rotated_surface, (int(paste_x), int(paste_y)), rotated_surface)
return rotated_surface.height
def generate_image(self, **kwargs):
params = kwargs.copy()
layout = params['layout']
seed = params['seed']
restore_preset = params.pop('restore_preset', False)
if params.get('randomize_style', False):
random.seed(seed)
selection_str = params.get('random_style_selection', '1-10')
allowed_indices = self._parse_range_string(selection_str)
allowed_indices_0based = [i - 1 for i in allowed_indices if 1 <= i <= len(LAYOUT_OPTIONS)]
if allowed_indices_0based:
chosen_index = random.choice(allowed_indices_0based)
layout = LAYOUT_OPTIONS[chosen_index]
print(f"随机样式已启用 (种子: {seed}),选择: {layout}")
if restore_preset:
if layout in LAYOUT_PRESETS:
print(f"恢复预设: {layout}")
params.update(LAYOUT_PRESETS[layout])
content, final_logo_name = self._prepare_content(**params)
input_pil = self.tensor_to_pil(params['image'])
img_w, img_h = input_pil.size
# --- Dynamic Scaling Logic ---
base_width = 1200.0 # Standard width for scaling
scale_factor = min(1.0, img_w / base_width)
bar_size = int(params['bar_size'] * scale_factor)
padding = int(params['padding'] * scale_factor)
spacing = int(params['spacing'] * scale_factor)
font_size_large = int(params['font_size_large'] * scale_factor)
font_size_medium = int(params['font_size_medium'] * scale_factor)
font_size_small = int(params['font_size_small'] * scale_factor)
bg_color = params['bg_color']
if layout.startswith("1.") or layout.startswith("2.") or layout.startswith("10."):
canvas = Image.new("RGBA", (img_w, img_h + bar_size), bg_color)
canvas.paste(input_pil.convert("RGBA"), (0, 0))
draw_area = (0, img_h, img_w, bar_size)
elif layout.startswith("3."):
canvas = Image.new("RGBA", (img_w + bar_size, img_h), bg_color)
canvas.paste(input_pil.convert("RGBA"), (0, 0))
draw_area = (img_w, 0, bar_size, img_h)
elif layout.startswith("4."):
canvas = Image.new("RGBA", (img_w, img_h + bar_size * 2), bg_color)
canvas.paste(input_pil.convert("RGBA"), (0, bar_size))
draw_area_top = (0, 0, img_w, bar_size)
draw_area_bottom = (0, img_h + bar_size, img_w, bar_size)
draw_area = draw_area_top
elif layout.startswith("5.") or layout.startswith("6.") or layout.startswith("7.") or layout.startswith("8.") or layout.startswith("9."):
canvas = input_pil.convert("RGBA")
draw_area = (0, 0, img_w, img_h)
else:
bar_width = int(params['bar_width'] * scale_factor)
bar_height = int(params['bar_height'] * scale_factor)
canvas = Image.new("RGBA", (bar_width, bar_height), bg_color)
draw_area = (0, 0, canvas.width, canvas.height)
draw_layer = Image.new("RGBA", canvas.size, (0, 0, 0, 0))
draw = ImageDraw.Draw(draw_layer)
fonts = {
'large_bold': self.get_font(params['font_bold_name'], font_size_large),
'medium': self.get_font(params['font_name'], font_size_medium),
'small': self.get_font(params['font_name'], font_size_small)
}
block_a_fonts = [fonts['large_bold'], fonts['medium'], fonts['small']]
block_b_fonts = [fonts['large_bold'], fonts['medium'], fonts['small']]
block_a_colors = [params['title_color'], params['subtitle_color'], params['subtitle_color']]
block_b_colors = [params['title_color'], params['subtitle_color'], params['subtitle_color']]
block_a = TextBlock()
for i, text in enumerate(content.block_a):
if text:
block_a.lines.append((text, block_a_fonts[i], block_a_colors[i]))
if block_a.lines:
block_a.line_bboxes = [self.get_text_bbox(line[0], line[1]) for line in block_a.lines]
min_x = min(box[0] for box in block_a.line_bboxes)
max_x = max(box[2] for box in block_a.line_bboxes)
block_a.width = max_x - min_x
line_heights = [box[3] - box[1] for box in block_a.line_bboxes]
block_a.height = int(sum(line_heights) + max(0, len(line_heights) - 1) * spacing)
block_b = TextBlock()
for i, text in enumerate(content.block_b):
if text:
block_b.lines.append((text, block_b_fonts[i], block_b_colors[i]))
if block_b.lines:
block_b.line_bboxes = [self.get_text_bbox(line[0], line[1]) for line in block_b.lines]
min_x = min(box[0] for box in block_b.line_bboxes)
max_x = max(box[2] for box in block_b.line_bboxes)
block_b.width = max_x - min_x
line_heights = [box[3] - box[1] for box in block_b.line_bboxes]
block_b.height = int(sum(line_heights) + max(0, len(line_heights) - 1) * spacing)
pil_logo = None
if final_logo_name != "None":
try:
logo_filename = next((f for f in os.listdir(logos_dir) if os.path.splitext(f)[0].lower() == final_logo_name.lower()), None)
if logo_filename:
pil_logo = Image.open(os.path.join(logos_dir, logo_filename)).convert("RGBA")
pil_logo = self._crop_transparent_border(pil_logo)
except Exception as e:
print(f"无法加载内置Logo '{final_logo_name}': {e}")
if pil_logo:
bar_based_target_height = 0
if not (layout.startswith("5.") or layout.startswith("6.") or layout.startswith("7.") or layout.startswith("8.") or layout.startswith("9.")):
max_size_ref = draw_area[3] if not layout.startswith("3.") else draw_area[2]
bar_based_target_height = int(max_size_ref * 0.5)
text_based_target_height = 0
if layout in [LAYOUT_OPTIONS[0], LAYOUT_OPTIONS[9]]:
text_based_target_height = block_b.height
elif layout in [LAYOUT_OPTIONS[1], LAYOUT_OPTIONS[3]] or layout.startswith("5.") or layout.startswith("6.") or layout.startswith("7.") or layout.startswith("8.") or layout.startswith("9."):
text_based_target_height = block_a.height if block_a.height > 0 else block_b.height
base_height = max(text_based_target_height, bar_based_target_height)
final_target_height = int(base_height * params['logo_size_ratio'])
if final_target_height > 0:
original_width, original_height = pil_logo.size
if original_height > 0:
ratio = final_target_height / original_height
new_width = int(original_width * ratio)
pil_logo = pil_logo.resize((new_width, final_target_height), Image.Resampling.LANCZOS)
if layout == LAYOUT_OPTIONS[0] or layout == LAYOUT_OPTIONS[9]:
x, y, w, h = draw_area
y_a = y + (h - block_a.height) / 2
self._draw_block(draw, block_a, x + padding, y_a, spacing=spacing)
y_b = y + (h - block_b.height) / 2
if pil_logo:
right_group_width = block_b.width + spacing + pil_logo.width
start_x_right = x + w - padding - right_group_width
logo_x = start_x_right
logo_y = y + (h - pil_logo.height) / 2
draw_layer.paste(pil_logo, (int(logo_x), int(logo_y)), pil_logo)
block_b_x = logo_x + pil_logo.width + spacing
self._draw_block(draw, block_b, block_b_x, y_b, align='left', spacing=spacing)
else:
self._draw_block(draw, block_b, x + w - padding, y_b, align='right', spacing=spacing)
elif layout == LAYOUT_OPTIONS[1]:
x, y, w, h = draw_area
elements = []
if pil_logo: elements.append({'type': 'logo', 'data': pil_logo, 'height': pil_logo.height})
if block_a.lines: elements.append({'type': 'block', 'data': block_a, 'height': block_a.height})
if block_b.lines: elements.append({'type': 'block', 'data': block_b, 'height': block_b.height})
total_height = sum(el['height'] for el in elements) + max(0, len(elements) - 1) * spacing
y_start = y + (h - total_height) / 2
for el in elements:
if el['type'] == 'logo':
logo = el['data']
logo_x = x + (w - logo.width) / 2
draw_layer.paste(logo, (int(logo_x), int(y_start)), logo)
else:
self._draw_block(draw, el['data'], x + w/2, y_start, align='center', spacing=spacing)
y_start += el['height'] + spacing
elif layout == LAYOUT_OPTIONS[2]:
x, y, w, h = draw_area
center_x = x + w / 2
if block_b.lines:
y_b = y + padding
self._draw_vertical_text_block(draw_layer, block_b, center_x, y_b, spacing)
if block_a.lines:
rotated_height_a = block_a.width
y_a = y + h - padding - rotated_height_a
self._draw_vertical_text_block(draw_layer, block_a, center_x, y_a, spacing)
if pil_logo:
logo_x = center_x - pil_logo.width / 2
logo_y = y + (h - pil_logo.height) / 2
draw_layer.paste(pil_logo, (int(logo_x), int(logo_y)), pil_logo)
elif layout == LAYOUT_OPTIONS[3]:
x_top, y_top, w_top, h_top = draw_area_top
x_bot, y_bot, w_bot, h_bot = draw_area_bottom
if pil_logo:
total_top_width = pil_logo.width + spacing + block_a.width
start_x_top = x_top + (w_top - total_top_width) / 2
logo_x = start_x_top
logo_y = y_top + (h_top - pil_logo.height) / 2
draw_layer.paste(pil_logo, (int(logo_x), int(logo_y)), pil_logo)
block_a_x = start_x_top + pil_logo.width + spacing
self._draw_block(draw, block_a, block_a_x, y_top + (h_top - block_a.height) / 2, align='left', spacing=spacing)
else:
self._draw_block(draw, block_a, x_top + w_top / 2, y_top + (h_top - block_a.height) / 2, align='center', spacing=spacing)
self._draw_block(draw, block_b, x_bot + w_bot / 2, y_bot + (h_bot - block_b.height) / 2, align='center', spacing=spacing)
elif layout.startswith("5.") or layout.startswith("6.") or layout.startswith("7.") or layout.startswith("8.") or layout.startswith("9."):
x, y, w, h = draw_area
elements = []
if block_a.lines: elements.append({'type': 'block', 'data': block_a, 'height': block_a.height, 'width': block_a.width})
if block_b.lines: elements.append({'type': 'block', 'data': block_b, 'height': block_b.height, 'width': block_b.width})
if pil_logo: elements.append({'type': 'logo', 'data': pil_logo, 'height': pil_logo.height, 'width': pil_logo.width})
if elements:
total_height = sum(el['height'] for el in elements) + max(0, len(elements) - 1) * spacing
max_width = max(el['width'] for el in elements) if elements else 0
if "左下角" in layout: y_start, x_start, align = h - padding - total_height, padding, 'left'
elif "右下角" in layout: y_start, x_start, align = h - padding - total_height, w - padding, 'right'
elif "左上角" in layout: y_start, x_start, align = padding, padding, 'left'
elif "右上角" in layout: y_start, x_start, align = padding, w - padding, 'right'
else: y_start, x_start, align = (h - total_height) / 2, w / 2, 'center'
current_y = y_start
for el in elements:
el_width = el['width']
if el['type'] == 'logo':
logo = el['data']
if align == 'left': logo_x = x_start
elif align == 'right': logo_x = x_start - el_width
else: logo_x = x_start - el_width / 2
draw_layer.paste(logo, (int(logo_x), int(current_y)), logo)
else:
self._draw_block(draw, el['data'], x_start, current_y, align=align, spacing=spacing)
current_y += el['height'] + spacing
canvas.alpha_composite(draw_layer)
final_image = canvas.convert("RGB")
return (self.pil_to_tensor(final_image),)
# --- ComfyUI 节点注册 ---
NODE_CLASS_MAPPINGS = {
"CameraWatermarkNode": CameraWatermarkNode,
"ImageLoaderWithEXIF": ImageLoaderWithEXIF,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"CameraWatermarkNode": "相机水印",
"ImageLoaderWithEXIF": "加载/附加 EXIF",
}
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,2 @@
# This file only exists for backwards compatibility.
from comfy_api.latest._input_impl.video_types import * # noqa: F403
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,30 @@
# By Suzie1 and RockOfFire
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to
# deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
"""
@author: Suzie1
@title: Comfyroll Studio
@nickname: Comfyroll Studio
@description: 175 custom nodes for artists, designers and animators.
"""
from .node_mappings import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
print("------------------------------------------")
print("\033[34mComfyroll Studio v1.76 : \033[92m 175 Nodes Loaded\033[0m")
print("------------------------------------------")
print("** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md")
print("** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki")
print("------------------------------------------")
@@ -0,0 +1,43 @@
icons = {
"Comfyroll/Upscale": "🧩 Comfyroll Studio/✨ Essential/🔍 Upscale",
"Comfyroll/Model Merge": "🧩 Comfyroll Studio/✨ Essential/⛏️ Model Merge",
"Comfyroll/Utils/Logic": "🧩 Comfyroll Studio/🛠️ Utils/🔀 Logic",
"Comfyroll/Utils/Conditional": "🧩 Comfyroll Studio/🛠️ Utils/🔀 Conditional",
"Comfyroll/Utils/Process": "🧩 Comfyroll Studio/🛠️ Utils/🔂 Process",
"Comfyroll/Utils/Index": "🧩 Comfyroll Studio/🛠️ Utils/🔢 Index",
"Comfyroll/Utils/Conversion": "🧩 Comfyroll Studio/🛠️ Utils/🔧 Conversion",
"Comfyroll/Utils/Random": "🧩 Comfyroll Studio/🛠️ Utils/🎲 Random",
"Comfyroll/Utils/Text": "🧩 Comfyroll Studio/🛠️ Utils/🔤 Text",
"Comfyroll/Utils/Other": "🧩 Comfyroll Studio/🛠️ Utils/⚙️ Other",
"Comfyroll/LoRA": "🧩 Comfyroll Studio/✨ Essential/💊 LoRA",
"Comfyroll/ControlNet": "🧩 Comfyroll Studio/✨ Essential/🕹️ ControlNet",
"Comfyroll/XY Grid": "🧩 Comfyroll Studio/✨ Essential/📉 XY Grid",
"Comfyroll/SDXL": "🧩 Comfyroll Studio/✨ Essential/🌟 SDXL",
"Comfyroll/List": "🧩 Comfyroll Studio/✨ Essential/📜 List",
"Comfyroll/List/IO": "🧩 Comfyroll Studio/✨ Essential/📜 List/⌨️ IO",
"Comfyroll/List/Utils": "🧩 Comfyroll Studio/✨ Essential/📜 List/🛠️ Utils",
"Comfyroll/Aspect Ratio": "🧩 Comfyroll Studio/✨ Essential/🔳 Aspect Ratio",
"Comfyroll/Pipe/Module": "🧩 Comfyroll Studio/✨ Essential/🎷 Pipe/✈️ Module",
"Comfyroll/Pipe/Image": "🧩 Comfyroll Studio/✨ Essential/🎷 Pipe/🛩️ Image",
"Comfyroll/Pipe/Bus": "🧩 Comfyroll Studio/✨ Essential/🎷 Pipe/🚌 Bus",
"Comfyroll/Pipe": "🧩 Comfyroll Studio/✨ Essential/🎷 Pipe",
"Comfyroll/Graphics/Text": "🧩 Comfyroll Studio/👾 Graphics/🔤 Text",
"Comfyroll/Graphics/Layout": "🧩 Comfyroll Studio/👾 Graphics/🌁 Layout",
"Comfyroll/Graphics/Template": "🧩 Comfyroll Studio/👾 Graphics/📱 Template",
"Comfyroll/Graphics/Filter": "🧩 Comfyroll Studio/👾 Graphics/🎨 Filter",
"Comfyroll/Graphics/Pattern": "🧩 Comfyroll Studio/👾 Graphics/🌈 Pattern",
"Comfyroll/Graphics/Shape": "🧩 Comfyroll Studio/👾 Graphics/🟣 Shape",
"Comfyroll/Graphics/3D": "🧩 Comfyroll Studio/👾 Graphics/3D",
"Comfyroll/Graphics/Utilty": "🧩 Comfyroll Studio/👾 Graphics/🔧 Utility",
"Comfyroll/Workflow": "🧩 Comfyroll Studio/✨ Essential/Workflow",
"Comfyroll/Essential/Core": "🧩 Comfyroll Studio/✨ Essential/📦 Core",
"Comfyroll/Essential/Legacy": "🧩 Comfyroll Studio/✨ Essential/💀 Legacy",
"Comfyroll/Animation/Camera": "🧩 Comfyroll Studio/🎥 Animation/🎦 Camera",
"Comfyroll/Animation/Utils": "🧩 Comfyroll Studio/🎥 Animation/🛠️ Utils",
"Comfyroll/Animation/Schedule": "🧩 Comfyroll Studio/🎥 Animation/📋 Schedule",
"Comfyroll/Animation/Schedulers": "🧩 Comfyroll Studio/🎥 Animation/📑 Schedulers",
"Comfyroll/Animation/Prompt": "🧩 Comfyroll Studio/🎥 Animation/📝 Prompt",
"Comfyroll/Animation/Legacy": "🧩 Comfyroll Studio/🎥 Animation/💀 Legacy",
"Comfyroll/Animation/Interpolate": "🧩 Comfyroll Studio/🎥 Animation/🔢 Interpolate",
"Comfyroll/Animation/IO": "🧩 Comfyroll Studio/🎥 Animation/⌨️ IO",
}
@@ -0,0 +1,77 @@
color_mapping = {
"white": (255, 255, 255),
"black": (0, 0, 0),
"red": (255, 0, 0),
"green": (0, 255, 0),
"blue": (0, 0, 255),
"yellow": (255, 255, 0),
"cyan": (0, 255, 255),
"magenta": (255, 0, 255),
"orange": (255, 165, 0),
"purple": (128, 0, 128),
"pink": (255, 192, 203),
"brown": (160, 85, 15),
"gray": (128, 128, 128),
"lightgray": (211, 211, 211),
"darkgray": (102, 102, 102),
"olive": (128, 128, 0),
"lime": (0, 128, 0),
"teal": (0, 128, 128),
"navy": (0, 0, 128),
"maroon": (128, 0, 0),
"fuchsia": (255, 0, 128),
"aqua": (0, 255, 128),
"silver": (192, 192, 192),
"gold": (255, 215, 0),
"turquoise": (64, 224, 208),
"lavender": (230, 230, 250),
"violet": (238, 130, 238),
"coral": (255, 127, 80),
"indigo": (75, 0, 130),
}
COLORS = ["custom", "white", "black", "red", "green", "blue", "yellow",
"cyan", "magenta", "orange", "purple", "pink", "brown", "gray",
"lightgray", "darkgray", "olive", "lime", "teal", "navy", "maroon",
"fuchsia", "aqua", "silver", "gold", "turquoise", "lavender",
"violet", "coral", "indigo"]
iso_sizes = {
"A0 - 9933x14043": (9933, 14043),
"A1 - 7016x9933": (7016, 9933),
"A2 - 4960x7016": (4960, 7016),
"A3 - 3508x4960": (3508, 4960),
"A4 - 2480x3508": (2480, 3508),
"A5 - 1748x2480": (1748, 2480),
"A6 - 1240x1748": (1240, 1748),
"A7 - 874x1240": (874, 1240),
"A8 - 614x874": (614, 874),
"A9 - 437x614": (437, 614),
"A10 - 307x437": (307, 437),
"A11 - 213x307": (213, 307),
"A12 - 154x213": (154, 213),
"A13 - 106x154": (106, 154),
"B0 - 11811x16701": (11811, 16701),
"B1 - 8350x11811": (8350, 11811),
"B2 - 5906x8350": (5906, 8350),
"B3 - 4169x5906": (4169, 5906),
"B4 - 2953x4169": (2953, 4169),
"B5 - 2079x2953": (2079, 2953),
"B6 - 1476x2079": (1476, 2079),
"B7 - 1039x1476": (1039, 1476),
"B8 - 732x1039": (732, 1039),
"B9 - 520x732": (520, 732),
"B10 - 366x520": (366, 520),
"C0 - 10831x15319": (10831, 15319),
"C1 - 7654x10831": (7654, 10831),
"C2 - 5409x7654": (5409, 7654),
"C3 - 3827x5409": (3827, 5409),
"C4 - 2705x3827": (2705, 3827),
"C5 - 1913x2705": (1913, 2705),
"C6 - 1346x1913": (1346, 1913),
"C7 - 957x1346": (957, 1346),
"C8 - 673x957": (673, 957),
"C9 - 472x673": (472, 673),
"C10 - 331x472": (331, 472),
}
@@ -0,0 +1,532 @@
try:
from .nodes.nodes_core import *
from .nodes.nodes_aspect_ratio import *
from .nodes.nodes_list import *
from .nodes.nodes_lora import *
from .nodes.nodes_controlnet import *
from .nodes.nodes_pipe import *
from .nodes.nodes_sdxl import *
from .nodes.nodes_model_merge import *
from .nodes.nodes_upscale import *
from .nodes.nodes_xygrid import *
from .nodes.nodes_legacy import *
except ImportError:
print("\033[34mComfyroll Studio: \033[92mFailed to load Essential nodes\033[0m")
try:
from .nodes.nodes_graphics_matplot import *
from .nodes.nodes_graphics_text import *
from .nodes.nodes_graphics_layout import *
from .nodes.nodes_graphics_filter import *
from .nodes.nodes_graphics_template import *
from .nodes.nodes_graphics_pattern import *
except ImportError:
print("\033[34mComfyroll Studio: \033[92mFailed to load Graphics nodes\033[0m")
try:
from .nodes.nodes_animation_interpolation import *
from .nodes.nodes_animation_io import *
from .nodes.nodes_animation_prompt import *
from .nodes.nodes_animation_schedulers import *
from .nodes.nodes_animation_schedules import *
from .nodes.nodes_animation_lists import *
from .nodes.nodes_animation_utils import *
from .nodes.nodes_animation_cyclers import *
except ImportError:
print("\033[34mComfyroll Studio: \033[92mFailed to load Animation nodes\033[0m")
try:
from .nodes.nodes_utils_logic import *
from .nodes.nodes_utils_index import *
from .nodes.nodes_utils_conversion import *
from .nodes.nodes_utils_random import *
from .nodes.nodes_utils_text import *
from .nodes.nodes_utils_other import *
except ImportError:
print("\033[34mComfyroll Studio: \033[92mFailed to load Utility nodes\033[0m")
NODE_CLASS_MAPPINGS = {
### Core Nodes
"CR Image Output": CR_ImageOutput,
"CR Latent Batch Size": CR_LatentBatchSize,
"CR Conditioning Mixer": CR_ConditioningMixer,
"CR Select Model": CR_SelectModel,
"CR Seed": CR_Seed,
"CR Prompt Text": CR_PromptText,
"CR Combine Prompt": CR_CombinePrompt,
"CR VAE Decode": CR_VAEDecode,
### List Nodes
"CR Text List": CR_TextList,
"CR Prompt List": CR_PromptList,
"CR Simple List": CR_SimpleList,
"CR Float Range List": CR_FloatRangeList,
"CR Integer Range List": CR_IntegerRangeList,
"CR Load Text List": CR_LoadTextList,
"CR Binary To Bit List": CR_BinaryToBitList,
"CR Text Cycler": CR_TextCycler,
"CR Value Cycler": CR_ValueCycler,
### List IO
"CR Load Image List": CR_LoadImageList,
"CR Load Image List Plus": CR_LoadImageListPlus,
"CR Load GIF As List": CR_LoadGIFAsList,
"CR Font File List": CR_FontFileList,
### List Utils
"CR Batch Images From List": CR_MakeBatchFromImageList,
"CR Intertwine Lists" : CR_IntertwineLists,
"CR Repeater": CR_Repeater,
"CR XY Product": CR_XYProduct,
"CR Text List To String": CR_TextListToString,
### Aspect Ratio Nodes
"CR SD1.5 Aspect Ratio": CR_AspectRatioSD15,
"CR SDXL Aspect Ratio": CR_SDXLAspectRatio,
"CR Aspect Ratio": CR_AspectRatio,
"CR Aspect Ratio Banners": CR_AspectRatioBanners,
"CR Aspect Ratio Social Media": CR_AspectRatioSocialMedia,
"CR_Aspect Ratio For Print": CR_AspectRatioForPrint,
### Legacy Nodes
"CR Image Size": CR_ImageSize,
"CR Aspect Ratio SDXL": CR_AspectRatio_SDXL,
"CR SDXL Prompt Mixer": CR_PromptMixer,
"CR Seed to Int": CR_SeedToInt,
### ControlNet Nodes
"CR Apply ControlNet": CR_ApplyControlNet,
"CR Multi-ControlNet Stack": CR_ControlNetStack,
"CR Apply Multi-ControlNet": CR_ApplyControlNetStack,
### LoRA Nodes
"CR Load LoRA": CR_LoraLoader,
"CR LoRA Stack": CR_LoRAStack,
"CR Random LoRA Stack": CR_RandomLoRAStack,
"CR Random Weight LoRA": CR_RandomWeightLoRA,
"CR Apply LoRA Stack": CR_ApplyLoRAStack,
### Model Merge Nodes
"CR Apply Model Merge": CR_ApplyModelMerge,
"CR Model Merge Stack": CR_ModelMergeStack,
### Pipe Nodes
"CR Data Bus In":CR_DataBusIn,
"CR Data Bus Out":CR_DataBusOut,
"CR 8 Channel In":CR_8ChannelIn,
"CR 8 Channel Out":CR_8ChannelOut,
"CR Module Pipe Loader": CR_ModulePipeLoader,
"CR Module Input": CR_ModuleInput,
"CR Module Output": CR_ModuleOutput,
"CR Image Pipe In": CR_ImagePipeIn,
"CR Image Pipe Edit": CR_ImagePipeEdit,
"CR Image Pipe Out": CR_ImagePipeOut,
"CR Pipe Switch": CR_InputSwitchPipe,
### SDXL Nodes
"CR SDXL Prompt Mix Presets": CR_PromptMixPresets,
"CR SDXL Style Text": CR_SDXLStyleText,
"CR SDXL Base Prompt Encoder": CR_SDXLBasePromptEncoder,
### Upscale Nodes
"CR Multi Upscale Stack": CR_MultiUpscaleStack,
"CR Upscale Image": CR_UpscaleImage,
"CR Apply Multi Upscale": CR_ApplyMultiUpscale,
### XY Grid Nodes
"CR XY List": CR_XYList,
"CR XY Interpolate": CR_XYInterpolate,
"CR XY From Folder": CR_XYFromFolder,
"CR XY Save Grid Image": CR_XYSaveGridImage,
"CR XY Index": CR_XYIndex,
#"CR XYZ Index": CR_XYZIndex,
### Graphics Pattern
"CR Halftone Grid": CR_HalftoneGrid,
"CR Color Bars": CR_ColorBars,
"CR Style Bars": CR_StyleBars,
"CR Checker Pattern": CR_CheckerPattern,
"CR Polygons": CR_Polygons,
"CR Color Gradient": CR_ColorGradient,
"CR Radial Gradient": CR_RadialGradient,
"CR Starburst Lines": CR_StarburstLines,
"CR Starburst Colors": CR_StarburstColors,
"CR Simple Binary Pattern": CR_BinaryPatternSimple,
"CR Binary Pattern": CR_BinaryPattern,
### Graphics Shape
"CR Draw Shape": CR_DrawShape,
"CR Draw Pie": CR_DrawPie,
"CR Random Shape Pattern": CR_RandomShapePattern,
### Graphics Text
"CR Overlay Text": CR_OverlayText,
"CR Draw Text": CR_DrawText,
"CR Mask Text": CR_MaskText,
"CR Composite Text": CR_CompositeText,
#"CR Arabic Text RTL": CR_ArabicTextRTL,
"CR Simple Text Watermark": CR_SimpleTextWatermark,
"CR Select Font": CR_SelectFont,
### Graphics Filter
"CR Halftone Filter": CR_HalftoneFilter,
"CR Color Tint": CR_ColorTint,
"CR Vignette Filter": CR_VignetteFilter,
### Graphics Layout
"CR Page Layout": CR_PageLayout,
"CR Image Panel": CR_ImagePanel,
"CR Image Grid Panel": CR_ImageGridPanel,
"CR Image Border": CR_ImageBorder,
"CR Feathered Border": CR_FeatheredBorder,
"CR Simple Text Panel": CR_SimpleTextPanel,
"CR Color Panel": CR_ColorPanel,
"CR Overlay Transparent Image": CR_OverlayTransparentImage,
"CR Half Drop Panel": CR_HalfDropPanel,
"CR Diamond Panel": CR_DiamondPanel,
#"CR Simple Titles": CR_SimpleTitles,
### Graphics Template
"CR Simple Meme Template": CR_SimpleMemeTemplate,
"CR Simple Banner": CR_SimpleBanner,
"CR Comic Panel Templates": CR_ComicPanelTemplates,
"CR Simple Image Compare": CR_SimpleImageCompare,
"CR Thumbnail Preview": CR_ThumbnailPreview,
"CR Seamless Checker": CR_SeamlessChecker,
### Utils Logic
"CR Image Input Switch": CR_ImageInputSwitch,
"CR Image Input Switch (4 way)": CR_ImageInputSwitch4way,
"CR Latent Input Switch": CR_LatentInputSwitch,
"CR Conditioning Input Switch": CR_ConditioningInputSwitch,
"CR Clip Input Switch": CR_ClipInputSwitch,
"CR Model Input Switch": CR_ModelInputSwitch,
"CR ControlNet Input Switch": CR_ControlNetInputSwitch,
"CR VAE Input Switch": CR_VAEInputSwitch,
"CR Text Input Switch": CR_TextInputSwitch,
"CR Text Input Switch (4 way)": CR_TextInputSwitch4way,
"CR Switch Model and CLIP": CR_ModelAndCLIPInputSwitch,
### Utils Process
"CR Batch Process Switch": CR_BatchProcessSwitch,
"CR Img2Img Process Switch": CR_Img2ImgProcessSwitch,
"CR Hires Fix Process Switch": CR_HiResFixProcessSwitch,
### Utils Index
"CR Index": CR_Index,
"CR Index Increment": CR_IncrementIndex,
"CR Index Multiply": CR_MultiplyIndex,
"CR Index Reset": CR_IndexReset,
"CR Trigger": CR_Trigger,
### Utils Conversion
"CR String To Number": CR_StringToNumber,
"CR String To Combo": CR_StringToCombo,
"CR Float To String": CR_FloatToString,
"CR Float To Integer": CR_FloatToInteger,
"CR Integer To String": CR_IntegerToString,
"CR String To Boolean": CR_StringToBoolean,
### Utils Random
"CR Random Hex Color": CR_RandomHexColor,
"CR Random RGB": CR_RandomRGB,
"CR Random Multiline Values": CR_RandomMultilineValues,
"CR Random Multiline Colors": CR_RandomMultilineColors,
"CR Random RGB Gradient": CR_RandomRGBGradient,
"CR Random Panel Codes": CR_RandomPanelCodes,
### Utils Text
"CR Text": CR_Text,
"CR Multiline Text": CR_MultilineText,
"CR Split String": CR_SplitString,
"CR Text Concatenate": CR_TextConcatenate,
"CR Text Replace": CR_TextReplace,
"CR Text Length": CR_TextLength,
"CR Text Operation": CR_TextOperation,
"CR Text Blacklist": CR_TextBlacklist,
"CR Save Text To File": CR_SaveTextToFile,
### Utils Conditional
"CR Set Value On Boolean": CR_SetValueOnBoolean,
"CR Set Value On Binary": CR_SetValueOnBinary,
"CR Set Value on String": CR_SetValueOnString,
"CR Set Switch From String": CR_SetSwitchFromString,
### Utils Other
"CR Value": CR_Value,
"CR Integer Multiple": CR_IntegerMultipleOf,
"CR Clamp Value": CR_ClampValue,
"CR Math Operation": CR_MathOperation,
"CR Get Parameter From Prompt": CR_GetParameterFromPrompt,
"CR Select Resize Method": CR_SelectResizeMethod,
"CR Select ISO Size": CR_SelectISOSize,
### Animation Nodes
# Schedules
"CR Simple Schedule": CR_SimpleSchedule,
"CR Central Schedule": CR_CentralSchedule,
"CR Combine Schedules": CR_CombineSchedules,
"CR Output Schedule To File": CR_OutputScheduleToFile,
"CR Load Schedule From File": CR_LoadScheduleFromFile,
"CR Schedule Input Switch": Comfyroll_ScheduleInputSwitch,
"CR Bit Schedule": CR_BitSchedule,
# Schedulers
"CR Simple Value Scheduler": CR_SimpleValueScheduler,
"CR Simple Text Scheduler": CR_SimpleTextScheduler,
"CR Value Scheduler": CR_ValueScheduler,
"CR Text Scheduler": CR_TextScheduler,
"CR Load Scheduled Models": CR_LoadScheduledModels,
"CR Load Scheduled LoRAs": CR_LoadScheduledLoRAs,
"CR Prompt Scheduler": CR_PromptScheduler,
"CR Simple Prompt Scheduler": CR_SimplePromptScheduler,
# Prompt
"CR Keyframe List": CR_KeyframeList,
#"CR Load Prompt Style": CR_LoadPromptStyle,
"CR Encode Scheduled Prompts": CR_EncodeScheduledPrompts,
# Interpolation
"CR Gradient Float": CR_GradientFloat,
"CR Gradient Integer": CR_GradientInteger,
"CR Increment Float": CR_IncrementFloat,
"CR Increment Integer": CR_IncrementInteger,
"CR Interpolate Latents": CR_InterpolateLatents,
# Utils
"CR Debatch Frames": CR_DebatchFrames,
"CR Current Frame": CR_CurrentFrame,
#"CR Input Text List": CR_InputTextList,
# IO
"CR Load Animation Frames": CR_LoadAnimationFrames,
"CR Load Flow Frames": CR_LoadFlowFrames,
"CR Output Flow Frames": CR_OutputFlowFrames,
### Legacy
# Note: CR Prompt List and CR Text List names have been reused,
# so the old versions of these nodes are no longer available
"CR Prompt List Keyframes": CR_PromptListKeyframes,
"CR Simple Prompt List": CR_SimplePromptList,
"CR Simple Prompt List Keyframes": CR_SimplePromptListKeyframes,
"CR Cycle Models": CR_CycleModels,
"CR Cycle LoRAs": CR_CycleLoRAs,
"CR Cycle Text": CR_CycleText,
"CR Cycle Text Simple": CR_CycleTextSimple,
"CR Cycle Images": CR_CycleImages,
"CR Cycle Images Simple": CR_CycleImagesSimple,
"CR Model List": CR_ModelList,
"CR LoRA List": CR_LoRAList,
"CR Text List Simple": CR_TextListSimple,
"CR Image List": CR_ImageList,
"CR Image List Simple": CR_ImageListSimple,
}
NODE_DISPLAY_NAME_MAPPINGS = {
### Core Nodes
"CR Image Output": "💾 CR Image Output",
"CR Integer Multiple": "⚙️ CR Integer Multiple",
"CR Latent Batch Size": "⚙️ CR Latent Batch Size",
"CR Seed": "🌱 CR Seed",
"CR Value": "⚙️ CR Value",
"CR Conditioning Mixer": "⚙️ CR Conditioning Mixer",
"CR Select Model": "🔮 CR Select Model",
"CR Prompt Text": "⚙️ CR Prompt Text",
"CR Combine Prompt": "⚙️ CR Combine Prompt",
"CR VAE Decode": "⚙️ CR VAE Decode",
### List Nodes
"CR Text List": "📜 CR Text List",
"CR Prompt List": "📜 CR Prompt List",
"CR Simple List": "📜 CR Simple List",
"CR Float Range List": "📜 CR Float Range List",
"CR Integer Range List": "📜 CR Integer Range List",
"CR Load Value List": "📜 CR Load Value List",
"CR Load Text List": "📜 CR Load Text List",
"CR Binary To Bit List": "📜 CR Binary To Bit List",
"CR Text Cycler": "📜 CR Text Cycler",
"CR Value Cycler": "📜 CR Value Cycler",
### List IO
"CR Load Image List": "⌨️ CR Load Image List",
"CR Load Image List Plus": "⌨️ CR Load Image List Plus",
"CR Load GIF As List": "⌨️ CR Load GIF As List",
"CR Font File List": "⌨️ CR Font File List",
### List Utils
"CR Batch Images From List": "🛠️ CR Batch Images From List",
"CR Intertwine Lists" : "🛠️ CR Intertwine Lists",
"CR Repeater": "🛠️ CR Repeater",
"CR XY Product": "🛠️ CR XY Product",
"CR Text List To String": "🛠️ CR Text List To String",
### Aspect Ratio Nodes
"CR SD1.5 Aspect Ratio": "🔳 CR SD1.5 Aspect Ratio",
"CR SDXL Aspect Ratio": "🔳 CR SDXL Aspect Ratio",
"CR Aspect Ratio": "🔳 CR Aspect Ratio",
"CR Aspect Ratio Banners": "🔳 CR Aspect Ratio Banners",
"CR Aspect Ratio Social Media": "🔳 CR Aspect Ratio Social Media",
"CR_Aspect Ratio For Print": "🔳 CR_Aspect Ratio For Print",
### Legacy Nodes
"CR Image Size": "CR Image Size (Legacy)",
"CR Aspect Ratio SDXL": "CR Aspect Ratio SDXL (Legacy)",
"CR SDXL Prompt Mixer": "CR SDXL Prompt Mixer (Legacy)",
"CR Seed to Int": "CR Seed to Int (Legacy)",
### ControlNet Nodes
"CR Apply ControlNet": "🕹️ CR Apply ControlNet",
"CR Multi-ControlNet Stack": "🕹️ CR Multi-ControlNet Stack",
"CR Apply Multi-ControlNet": "🕹️ CR Apply Multi-ControlNet",
### LoRA Nodes
"CR Load LoRA": "💊 CR Load LoRA",
"CR LoRA Stack": "💊 CR LoRA Stack",
"CR Random LoRA Stack": "💊 CR Random LoRA Stack",
"CR Random Weight LoRA": "💊 CR Random Weight LoRA",
"CR Apply LoRA Stack": "💊 CR Apply LoRA Stack",
### Model Merge Nodes
"CR Apply Model Merge": "⛏️ CR Apply Model Merge",
"CR Model Merge Stack": "⛏️ CR Model Merge Stack",
### Pipe Nodes
"CR Data Bus In": "🚌 CR Data Bus In",
"CR Data Bus Out": "🚌 CR Data Bus Out",
"CR 8 Channel In": "🚌 CR 8 Channel In",
"CR 8 Channel Out": "🚌 CR 8 Channel Out",
"CR Module Pipe Loader": "✈️ CR Module Pipe Loader",
"CR Module Input": "✈️ CR Module Input",
"CR Module Output": "✈️ CR Module Output",
"CR Image Pipe In": "🛩 CR Image Pipe In",
"CR Image Pipe Edit": "🛩️ CR Image Pipe Edit",
"CR Image Pipe Out": "🛩️ CR Image Pipe Out",
"CR Pipe Switch": "🔀️ CR Pipe Switch",
### SDXL Nodes
"CR SDXL Prompt Mix Presets": "🌟 CR SDXL Prompt Mix Presets",
"CR SDXL Style Text": "🌟 CR SDXL Style Text",
"CR SDXL Base Prompt Encoder": "🌟 CR SDXL Base Prompt Encoder",
### Upscale Nodes
"CR Multi Upscale Stack": "🔍 CR Multi Upscale Stack",
"CR Upscale Image": "🔍 CR Upscale Image",
"CR Apply Multi Upscale": "🔍 CR Apply Multi Upscale",
### XY Grid Nodes
"CR XY List": "📉 CR XY List",
"CR XY Interpolate": "📉 CR XY Interpolate",
"CR XY Index": "📉 CR XY Index",
"CR XY From Folder": "📉 CR XY From Folder",
"CR XY Save Grid Image": "📉 CR XY Save Grid Image",
### Graphics Pattern
"CR Halftone Grid" : "🟫 CR Halftone Grid",
"CR Color Bars" : "🟫 CR Color Bars",
"CR Style Bars" : "🟪 CR Style Bars",
"CR Checker Pattern": "🟦 CR Checker Pattern",
"CR Polygons": "🟩 CR Polygons",
"CR Color Gradient": "🟨 CR Color Gradient",
"CR Radial Gradient": "🟨 CR Radial Gradient",
"CR Starburst Lines": "🟧 CR Starburst Lines",
"CR Starburst Colors": "🟧 CR Starburst Colors",
"CR Simple Binary Pattern": "🟥 CR Simple Binary Pattern",
"CR Binary Pattern": "🟥 CR Binary Pattern",
### Graphics Shape
"CR Draw Shape": "🟡 CR Draw Shape",
"CR Draw Pie": "🟢 CR Draw Pie",
"CR Random Shape Pattern": "🔵 CR Random Shape Pattern",
### Graphics Text
"CR Overlay Text": "🔤 CR Overlay Text",
"CR Draw Text": "🔤️ CR Draw Text",
"CR Mask Text": "🔤️ CR Mask Text",
"CR Composite Text": "🔤️ CR Composite Text",
"CR Simple Text Watermark": "🔤️ CR Simple Text Watermark",
"CR Select Font": "🔤️ CR Select Font",
### Graphics Filter
"CR Halftone Filter": "🎨 Halftone Filter",
"CR Color Tint": "🎨 CR Color Tint",
"CR Vignette Filter": "🎨 CR Vignette Filter",
### Graphics Layout
"CR Image Panel": "🌁 CR Image Panel",
"CR Image Grid Panel": "🌁 CR Image Grid Panel",
"CR Simple Text Panel": "🌁 CR Simple Text Panel",
"CR Color Panel": "🌁 CR Color Panel",
"CR Half Drop Panel": "🌁 CR Half Drop Panel",
"CR Diamond Panel": "🌁 CR Diamond Panel",
"CR Page Layout": "🌁 CR Page Layout",
"CR Image Border": "🌁 CR Image Border",
"CR Feathered Border": "🌁 CR Feathered Border",
"CR Overlay Transparent Image": "🌁 CR Overlay Transparent Image",
### Graphics Template
"CR Simple Meme Template": "📱 CR Simple Meme Template",
"CR Simple Banner": "📱 CR Simple Banner",
"CR Comic Panel Templates": "📱 CR Comic Panel Templates",
"CR Simple Image Compare": "📱 CR Simple Image Compare",
"CR Thumbnail Preview": "📱 CR Thumbnail Preview",
"CR Seamless Checker": "📱 CR Seamless Checker",
### Utils Logic
"CR Image Input Switch": "🔀 CR Image Input Switch",
"CR Image Input Switch (4 way)": "🔀 CR Image Input Switch (4 way)",
"CR Latent Input Switch": "🔀 CR Latent Input Switch",
"CR Conditioning Input Switch": "🔀 CR Conditioning Input Switch",
"CR Clip Input Switch": "🔀 CR Clip Input Switch",
"CR Model Input Switch": "🔀 CR Model Input Switch",
"CR ControlNet Input Switch": "🔀 CR ControlNet Input Switch",
"CR VAE Input Switch": "🔀 CR VAE Input Switch",
"CR Text Input Switch": "🔀 CR Text Input Switch",
"CR Text Input Switch (4 way)": "🔀 CR Text Input Switch (4 way)",
"CR Switch Model and CLIP": "🔀 CR Switch Model and CLIP",
### Utils Process
"CR Batch Process Switch": "🔂 CR Batch Process Switch",
"CR Img2Img Process Switch": "🔂 CR Img2Img Process Switch",
"CR Hires Fix Process Switch": "🔂 CR Hires Fix Process Switch",
### Utils Index
"CR Index":"🔢 CR Index",
"CR Index Increment": "🔢 CR Index Increment",
"CR Index Multiply": "🔢 CR Index Multiply",
"CR Index Reset": "🔢 CR Index Reset",
"CR Trigger": "🔢 CR Trigger",
### Utils Conversion
"CR String To Number": "🔧 CR String To Number",
"CR String To Combo": "🔧 CR String To Combo",
"CR Float To String": "🔧 CR Float To String",
"CR Float To Integer": "🔧 CR Float To Integer",
"CR Integer To String": "🔧 CR Integer To String",
"CR String To Boolean": "🔧 CR String To Boolean",
### Utils Random
"CR Random Hex Color": "🎲 CR Random Hex Color",
"CR Random RGB": "🎲 CR Random RGB",
"CR Random Multiline Values": "🎲 CR Random Multiline Values",
"CR Random Multiline Colors": "🎲 CR Random Multiline Colors",
"CR Random RGB Gradient": "🎲 CR Random RGB Gradient",
"CR Random Panel Codes": "🎲 CR Random Panel Codes",
### Utils Text
"CR Text": "🔤 CR Text",
"CR Multiline Text": "🔤 CR Multiline Text",
"CR Split String": "🔤 CR Split String",
"CR Text Concatenate": "🔤 CR Text Concatenate",
"CR Text Replace": "🔤 CR Text Replace",
"CR Text Blacklist": "🔤 Text Blacklist",
"CR Text Length": "🔤 CR Text Length",
"CR Text Operation": "🔤 CR Text Operation",
"CR Save Text To File": "🔤 CR Save Text To File",
### Utils Conditional
"CR Set Value On Boolean": "⚙️ CR Set Value On Boolean",
"CR Set Value On Binary": "⚙️ CR Set Value On Binary",
"CR Set Value on String": "⚙️ CR Set Value on String",
"CR Set Switch From String": "⚙️ CR Set Switch From String",
### Utils Other
"CR Integer Multiple": "⚙️ CR Integer Multiple",
"CR Value": "⚙️ CR Value",
"CR Clamp Value": "⚙️ CR Clamp Value",
"CR Math Operation": "⚙️ CR Math Operation",
"CR Get Parameter From Prompt": "⚙️ CR Get Parameter From Prompt",
"CR Select Resize Method": "⚙️ CR Select Resize Method",
"CR Select ISO Size": "⚙️ CR Select ISO Size",
### Animation Nodes
# Schedules
"CR Simple Schedule": "📋 CR Simple Schedule",
"CR Central Schedule": "📋 CR Central Schedule",
"CR Combine Schedules": "📋 CR Combine Schedules",
"CR Output Schedule To File": "📋 CR Output Schedule To File",
"CR Load Schedule From File": "📋 CR Load Schedule From File",
"CR Schedule Input Switch": "📋 CR Schedule Input Switch",
"CR Bit Schedule": "📋 CR Bit Schedule",
# Schedulers
"CR Simple Value Scheduler": "📑 CR Simple Value Scheduler",
"CR Simple Text Scheduler": "📑 CR Simple Text Scheduler",
"CR Value Scheduler": "📑 CR Value Scheduler",
"CR Text Scheduler": "📑 CR Text Scheduler",
"CR Load Scheduled Models": "📑 CR Load Scheduled Models",
"CR Load Scheduled LoRAs": "📑 CR Load Scheduled LoRAs",
"CR Prompt Scheduler": "📑 CR Prompt Scheduler",
"CR Simple Prompt Scheduler": "📑 CR Simple Prompt Scheduler",
# Prompt
"CR Keyframe List": "📝 CR Keyframe List",
#"CR Load Prompt Style": "📝 CR Load Prompt Style",
"CR Encode Scheduled Prompts": "📝 CR Encode Scheduled Prompts",
# Interpolation
"CR Gradient Float": "🔢 CR Gradient Float",
"CR Gradient Integer": "🔢 CR Gradient Integer",
"CR Increment Float": "🔢 CR Increment Float",
"CR Increment Integer": "🔢 CR Increment Integer",
"CR Interpolate Latents": "🔢 CR Interpolate Latents",
# Utils
"CR Debatch Frames": "🛠️ CR Debatch Frames",
"CR Current Frame": "🛠️ CR Current Frame",
# IO
"CR Load Animation Frames": "⌨️ CR Load Animation Frames",
"CR Load Flow Frames": "⌨️ CR Load Flow Frames",
"CR Output Flow Frames": "⌨️ CR Output Flow Frames",
### Legacy
"CR Prompt List Keyframes": "CR Prompt List Keyframes (Legacy)",
"CR Simple Prompt List": "CR Simple Prompt List (Legacy)",
"CR Simple Prompt List Keyframes": "CR Simple Prompt List Keyframes (Legacy)",
"CR Cycle Models": "CR Cycle Models (Legacy)",
"CR Cycle LoRAs": "CR Cycle LoRAs (Legacy)",
"CR Cycle Text": "CR Cycle Text (Legacy)",
"CR Cycle Text Simple": "CR Cycle Text Simple (Legacy)",
"CR Cycle Images": "CR Cycle Images (Legacy)",
"CR Cycle Images Simple": "CR Cycle Images Simple (Legacy)",
"CR Model List": "CR Model List (Legacy)",
"CR LoRA List": "CR LoRA List (Legacy)",
"CR Text List Simple": "CR Text List Simple (Legacy)",
"CR Image List": "CR Image List (Legacy)",
"CR Image List Simple": "CR Image List Simple (Legacy)",
"CR Input Text List": "CR Input Text List (Legacy)",
}
@@ -0,0 +1,484 @@
#---------------------------------------------------------------------------------------------------------------------#
# Comfyroll Studio custom nodes by RockOfFire and Akatsuzi https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes
# for ComfyUI https://github.com/comfyanonymous/ComfyUI
#---------------------------------------------------------------------------------------------------------------------#
import numpy as np
import torch
import os
import random
from PIL import Image, ImageDraw, ImageFont, ImageOps, ImageEnhance
from ..config import color_mapping
font_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "fonts")
file_list = [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and f.lower().endswith(".ttf")]
def tensor2pil(image):
return Image.fromarray(np.clip(255. * image.cpu().numpy().squeeze(), 0, 255).astype(np.uint8))
def pil2tensor(image):
return torch.from_numpy(np.array(image).astype(np.float32) / 255.0).unsqueeze(0)
def align_text(align, img_height, text_height, text_pos_y, margins):
if align == "center":
text_plot_y = img_height / 2 - text_height / 2 + text_pos_y
elif align == "top":
text_plot_y = text_pos_y + margins
elif align == "bottom":
text_plot_y = img_height - text_height + text_pos_y - margins
return text_plot_y
def justify_text(justify, img_width, line_width, margins):
if justify == "left":
text_plot_x = 0 + margins
elif justify == "right":
text_plot_x = img_width - line_width - margins
elif justify == "center":
text_plot_x = img_width/2 - line_width/2
return text_plot_x
def get_text_size(draw, text, font):
bbox = draw.textbbox((0, 0), text, font=font)
# Calculate the text width and height
text_width = bbox[2] - bbox[0]
text_height = bbox[3] - bbox[1]
return text_width, text_height
def draw_masked_text(text_mask, text,
font_name, font_size,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options):
# Create the drawing context
draw = ImageDraw.Draw(text_mask)
# Define font settings
font_folder = "fonts"
font_file = os.path.join(font_folder, font_name)
resolved_font_path = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), font_file)
font = ImageFont.truetype(str(resolved_font_path), size=font_size)
# Split the input text into lines
text_lines = text.split('\n')
# Calculate the size of the text plus padding for the tallest line
max_text_width = 0
max_text_height = 0
for line in text_lines:
# Calculate the width and height of the current line
line_width, line_height = get_text_size(draw, line, font)
line_height = line_height + line_spacing
max_text_width = max(max_text_width, line_width)
max_text_height = max(max_text_height, line_height)
# Get the image width and height
image_width, image_height = text_mask.size
image_center_x = image_width / 2
image_center_y = image_height / 2
text_pos_y = position_y
sum_text_plot_y = 0
text_height = max_text_height * len(text_lines)
for line in text_lines:
# Calculate the width of the current line
line_width, _ = get_text_size(draw, line, font)
# Get the text x and y positions for each line
text_plot_x = position_x + justify_text(justify, image_width, line_width, margins)
text_plot_y = align_text(align, image_height, text_height, text_pos_y, margins)
# Add the current line to the text mask
draw.text((text_plot_x, text_plot_y), line, fill=255, font=font)
text_pos_y += max_text_height # Move down for the next line
sum_text_plot_y += text_plot_y # Sum the y positions
# Calculate centers for rotation
text_center_x = text_plot_x + max_text_width / 2
text_center_y = sum_text_plot_y / len(text_lines)
if rotation_options == "text center":
rotated_text_mask = text_mask.rotate(rotation_angle, center=(text_center_x, text_center_y))
elif rotation_options == "image center":
rotated_text_mask = text_mask.rotate(rotation_angle, center=(image_center_x, image_center_y))
return rotated_text_mask
def draw_text_on_image(draw, y_position, bar_width, bar_height, text, font, text_color, font_outline):
# Calculate the width and height of the text
text_width, text_height = get_text_size(draw, text, font)
if font_outline == "thin":
outline_thickness = text_height // 40
elif font_outline == "thick":
outline_thickness = text_height // 20
elif font_outline == "extra thick":
outline_thickness = text_height // 10
outline_color = (0, 0, 0)
text_lines = text.split('\n')
if len(text_lines) == 1:
x = (bar_width - text_width) // 2
y = y_position + (bar_height - text_height) // 2 - (bar_height * 0.10)
if font_outline == "none":
draw.text((x, y), text, fill=text_color, font=font)
else:
draw.text((x, y), text, fill=text_color, font=font, stroke_width=outline_thickness, stroke_fill='black')
elif len(text_lines) > 1:
# Calculate the width and height of the text
text_width, text_height = get_text_size(draw, text_lines[0], font)
x = (bar_width - text_width) // 2
y = y_position + (bar_height - text_height * 2) // 2 - (bar_height * 0.15)
if font_outline == "none":
draw.text((x, y), text_lines[0], fill=text_color, font=font)
else:
draw.text((x, y), text_lines[0], fill=text_color, font=font, stroke_width=outline_thickness, stroke_fill='black')
# Calculate the width and height of the text
text_width, text_height = get_text_size(draw, text_lines[1], font)
x = (bar_width - text_width) // 2
y = y_position + (bar_height - text_height * 2) // 2 + text_height - (bar_height * 0.00)
if font_outline == "none":
draw.text((x, y), text_lines[1], fill=text_color, font=font)
else:
draw.text((x, y), text_lines[1], fill=text_color, font=font, stroke_width=outline_thickness, stroke_fill='black')
def get_font_size(draw, text, max_width, max_height, font_path, max_font_size):
# Adjust the max-width to allow for start and end padding
max_width = max_width * 0.9
# Start with the maximum font size
font_size = max_font_size
font = ImageFont.truetype(str(font_path), size=font_size)
# Get the first two lines
text_lines = text.split('\n')[:2]
if len(text_lines) == 2:
font_size = min(max_height//2, max_font_size)
font = ImageFont.truetype(str(font_path), size=font_size)
# Calculate max text width and height with the current font
max_text_width = 0
longest_line = text_lines[0]
for line in text_lines:
# Calculate the width and height of the current line
line_width, line_height = get_text_size(draw, line, font)
if line_width > max_text_width:
longest_line = line
max_text_width = max(max_text_width, line_width)
# Calculate the width and height of the text
text_width, text_height = get_text_size(draw, text, font)
# Decrease the font size until it fits within the bounds
while max_text_width > max_width or text_height > 0.88 * max_height / len(text_lines):
font_size -= 1
font = ImageFont.truetype(str(font_path), size=font_size)
max_text_width, text_height = get_text_size(draw, longest_line, font)
return font
def hex_to_rgb(hex_color):
hex_color = hex_color.lstrip('#') # Remove the '#' character, if present
r = int(hex_color[0:2], 16)
g = int(hex_color[2:4], 16)
b = int(hex_color[4:6], 16)
return (r, g, b)
def text_panel(image_width, image_height, text,
font_name, font_size, font_color,
font_outline_thickness, font_outline_color,
background_color,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options):
"""
Create an image with text overlaid on a background.
Returns:
PIL.Image.Image: Image with text overlaid on the background.
"""
# Create PIL images for the text and background layers and text mask
size = (image_width, image_height)
panel = Image.new('RGB', size, background_color)
# Draw the text on the text mask
image_out = draw_text(panel, text,
font_name, font_size, font_color,
font_outline_thickness, font_outline_color,
background_color,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options)
return image_out
def draw_text(panel, text,
font_name, font_size, font_color,
font_outline_thickness, font_outline_color,
bg_color,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options):
# Create the drawing context
draw = ImageDraw.Draw(panel)
# Define font settings
font_folder = "fonts"
font_file = os.path.join(font_folder, font_name)
resolved_font_path = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), font_file)
font = ImageFont.truetype(str(resolved_font_path), size=font_size)
# Split the input text into lines
text_lines = text.split('\n')
# Calculate the size of the text plus padding for the tallest line
max_text_width = 0
max_text_height = 0
for line in text_lines:
# Calculate the width and height of the current line
line_width, line_height = get_text_size(draw, line, font)
line_height = line_height + line_spacing
max_text_width = max(max_text_width, line_width)
max_text_height = max(max_text_height, line_height)
# Get the image center
image_center_x = panel.width / 2
image_center_y = panel.height / 2
text_pos_y = position_y
sum_text_plot_y = 0
text_height = max_text_height * len(text_lines)
for line in text_lines:
# Calculate the width and height of the current line
line_width, line_height = get_text_size(draw, line, font)
# Get the text x and y positions for each line
text_plot_x = position_x + justify_text(justify, panel.width, line_width, margins)
text_plot_y = align_text(align, panel.height, text_height, text_pos_y, margins)
# Add the current line to the text mask
draw.text((text_plot_x, text_plot_y), line, fill=font_color, font=font, stroke_width=font_outline_thickness, stroke_fill=font_outline_color)
text_pos_y += max_text_height # Move down for the next line
sum_text_plot_y += text_plot_y # Sum the y positions
text_center_x = text_plot_x + max_text_width / 2
text_center_y = sum_text_plot_y / len(text_lines)
if rotation_options == "text center":
rotated_panel = panel.rotate(rotation_angle, center=(text_center_x, text_center_y), resample=Image.BILINEAR)
elif rotation_options == "image center":
rotated_panel = panel.rotate(rotation_angle, center=(image_center_x, image_center_y), resample=Image.BILINEAR)
return rotated_panel
def combine_images(images, layout_direction='horizontal'):
"""
Combine a list of PIL Image objects either horizontally or vertically.
Args:
images (list of PIL.Image.Image): List of PIL Image objects to combine.
layout_direction (str): 'horizontal' for horizontal layout, 'vertical' for vertical layout.
Returns:
PIL.Image.Image: Combined image.
"""
if layout_direction == 'horizontal':
combined_width = sum(image.width for image in images)
combined_height = max(image.height for image in images)
else:
combined_width = max(image.width for image in images)
combined_height = sum(image.height for image in images)
combined_image = Image.new('RGB', (combined_width, combined_height))
x_offset = 0
y_offset = 0 # Initialize y_offset for vertical layout
for image in images:
combined_image.paste(image, (x_offset, y_offset))
if layout_direction == 'horizontal':
x_offset += image.width
else:
y_offset += image.height
return combined_image
def apply_outline_and_border(images, outline_thickness, outline_color, border_thickness, border_color):
for i, image in enumerate(images):
# Apply the outline
if outline_thickness > 0:
image = ImageOps.expand(image, outline_thickness, fill=outline_color)
# Apply the border
if border_thickness > 0:
image = ImageOps.expand(image, border_thickness, fill=border_color)
images[i] = image
return images
def get_color_values(color, color_hex, color_mapping):
#Get RGB values for the text and background colors.
if color == "custom":
color_rgb = hex_to_rgb(color_hex)
else:
color_rgb = color_mapping.get(color, (0, 0, 0)) # Default to black if the color is not found
return color_rgb
def hex_to_rgb(hex_color):
hex_color = hex_color.lstrip('#') # Remove the '#' character, if present
r = int(hex_color[0:2], 16)
g = int(hex_color[2:4], 16)
b = int(hex_color[4:6], 16)
return (r, g, b)
def crop_and_resize_image(image, target_width, target_height):
width, height = image.size
aspect_ratio = width / height
target_aspect_ratio = target_width / target_height
if aspect_ratio > target_aspect_ratio:
# Crop the image's width to match the target aspect ratio
crop_width = int(height * target_aspect_ratio)
crop_height = height
left = (width - crop_width) // 2
top = 0
else:
# Crop the image's height to match the target aspect ratio
crop_height = int(width / target_aspect_ratio)
crop_width = width
left = 0
top = (height - crop_height) // 2
# Perform the center cropping
cropped_image = image.crop((left, top, left + crop_width, top + crop_height))
return cropped_image
def create_and_paste_panel(page, border_thickness, outline_thickness,
panel_width, panel_height, page_width,
panel_color, bg_color, outline_color,
images, i, j, k, len_images, reading_direction):
panel = Image.new("RGB", (panel_width, panel_height), panel_color)
if k < len_images:
img = images[k]
image = crop_and_resize_image(img, panel_width, panel_height)
image.thumbnail((panel_width, panel_height), Image.Resampling.LANCZOS)
panel.paste(image, (0, 0))
panel = ImageOps.expand(panel, border=outline_thickness, fill=outline_color)
panel = ImageOps.expand(panel, border=border_thickness, fill=bg_color)
new_panel_width, new_panel_height = panel.size
if reading_direction == "right to left":
page.paste(panel, (page_width - (j + 1) * new_panel_width, i * new_panel_height))
else:
page.paste(panel, (j * new_panel_width, i * new_panel_height))
def reduce_opacity(img, opacity):
"""Returns an image with reduced opacity."""
assert opacity >= 0 and opacity <= 1
if img.mode != 'RGBA':
img = img.convert('RGBA')
else:
img = img.copy()
alpha = img.split()[3]
alpha = ImageEnhance.Brightness(alpha).enhance(opacity)
img.putalpha(alpha)
return img
def random_hex_color():
# Generate three random values for RGB
r = random.randint(0, 255)
g = random.randint(0, 255)
b = random.randint(0, 255)
# Convert RGB to hex format
hex_color = "#{:02x}{:02x}{:02x}".format(r, g, b)
return hex_color
def random_rgb():
# Generate three random values for RGB
r = random.randint(0, 255)
g = random.randint(0, 255)
b = random.randint(0, 255)
# Format RGB as a string in the format "128,128,128"
rgb_string = "{},{},{}".format(r, g, b)
return rgb_string
def make_grid_panel(images, max_columns):
# Calculate dimensions for the grid
num_images = len(images)
num_rows = (num_images - 1) // max_columns + 1
combined_width = max(image.width for image in images) * min(max_columns, num_images)
combined_height = max(image.height for image in images) * num_rows
combined_image = Image.new('RGB', (combined_width, combined_height))
x_offset, y_offset = 0, 0 # Initialize offsets
for image in images:
combined_image.paste(image, (x_offset, y_offset))
x_offset += image.width
if x_offset >= max_columns * image.width:
x_offset = 0
y_offset += image.height
return combined_image
def interpolate_color(color0, color1, t):
"""
Interpolate between two colors.
"""
return tuple(int(c0 * (1 - t) + c1 * t) for c0, c1 in zip(color0, color1))
@@ -0,0 +1,501 @@
#---------------------------------------------------------------------------------------------------------------------#
# Comfyroll Studio custom nodes by RockOfFire and Akatsuzi https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes
# for ComfyUI https://github.com/comfyanonymous/ComfyUI
#---------------------------------------------------------------------------------------------------------------------#
import numpy as np
import torch
import os
import platform
from PIL import Image, ImageDraw, ImageOps, ImageFont
from ..categories import icons
from ..config import color_mapping, COLORS
from .functions_graphics import *
'''
try:
from bidi.algorithm import get_display
except ImportError:
import subprocess
subprocess.check_call(['python', '-m', 'pip', 'install', 'python_bidi'])
try:
import arabic_reshaper
except ImportError:
import subprocess
subprocess.check_call(['python', '-m', 'pip', 'install', 'arabic_reshaper'])
'''
def get_offset_for_true_mm(text, draw, font):
anchor_bbox = draw.textbbox((0, 0), text, font=font, anchor='lt')
anchor_center = (anchor_bbox[0] + anchor_bbox[2]) // 2, (anchor_bbox[1] + anchor_bbox[3]) // 2
mask_bbox = font.getmask(text).getbbox()
mask_center = (mask_bbox[0] + mask_bbox[2]) // 2, (mask_bbox[1] + mask_bbox[3]) // 2
return anchor_center[0] - mask_center[0], anchor_center[1] - mask_center[1]
class AnyType(str):
"""A special type that can be connected to any other types. Credit to pythongosssss"""
def __ne__(self, __value: object) -> bool:
return False
any_type = AnyType("*")
#---------------------------------------------------------------------------------------------------------------------#
ALIGN_OPTIONS = ["center", "top", "bottom"]
ROTATE_OPTIONS = ["text center", "image center"]
JUSTIFY_OPTIONS = ["center", "left", "right"]
PERSPECTIVE_OPTIONS = ["top", "bottom", "left", "right"]
#---------------------------------------------------------------------------------------------------------------------#
class CR_OverlayText:
@classmethod
def INPUT_TYPES(s):
font_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "fonts")
file_list = [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and f.lower().endswith(".ttf")]
return {"required": {
"image": ("IMAGE",),
"text": ("STRING", {"multiline": True, "default": "text"}),
"font_name": (file_list,),
"font_size": ("INT", {"default": 50, "min": 1, "max": 1024}),
"font_color": (COLORS,),
"align": (ALIGN_OPTIONS,),
"justify": (JUSTIFY_OPTIONS,),
"margins": ("INT", {"default": 0, "min": -1024, "max": 1024}),
"line_spacing": ("INT", {"default": 0, "min": -1024, "max": 1024}),
"position_x": ("INT", {"default": 0, "min": -4096, "max": 4096}),
"position_y": ("INT", {"default": 0, "min": -4096, "max": 4096}),
"rotation_angle": ("FLOAT", {"default": 0.0, "min": -360.0, "max": 360.0, "step": 0.1}),
"rotation_options": (ROTATE_OPTIONS,),
},
"optional": {"font_color_hex": ("STRING", {"multiline": False, "default": "#000000"})
}
}
RETURN_TYPES = ("IMAGE", "STRING",)
RETURN_NAMES = ("IMAGE", "show_help",)
FUNCTION = "overlay_text"
CATEGORY = icons.get("Comfyroll/Graphics/Text")
def overlay_text(self, image, text, font_name, font_size, font_color,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options,
font_color_hex='#000000'):
# Get RGB values for the text color
text_color = get_color_values(font_color, font_color_hex, color_mapping)
# Convert tensor images
image_3d = image[0, :, :, :]
# Create PIL images for the text and background layers and text mask
back_image = tensor2pil(image_3d)
text_image = Image.new('RGB', back_image.size, text_color)
text_mask = Image.new('L', back_image.size)
# Draw the text on the text mask
rotated_text_mask = draw_masked_text(text_mask, text, font_name, font_size,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options)
# Composite the text image onto the background image using the rotated text mask
image_out = Image.composite(text_image, back_image, rotated_text_mask)
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Text-Nodes#cr-overlay-text"
# Convert the PIL image back to a torch tensor
return (pil2tensor(image_out), show_help,)
#---------------------------------------------------------------------------------------------------------------------#
class CR_DrawText:
@classmethod
def INPUT_TYPES(s):
font_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "fonts")
file_list = [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and f.lower().endswith(".ttf")]
return {"required": {
"image_width": ("INT", {"default": 512, "min": 64, "max": 2048}),
"image_height": ("INT", {"default": 512, "min": 64, "max": 2048}),
"text": ("STRING", {"multiline": True, "default": "text"}),
"font_name": (file_list,),
"font_size": ("INT", {"default": 50, "min": 1, "max": 1024}),
"font_color": (COLORS,),
"background_color": (COLORS,),
"align": (ALIGN_OPTIONS,),
"justify": (JUSTIFY_OPTIONS,),
"margins": ("INT", {"default": 0, "min": -1024, "max": 1024}),
"line_spacing": ("INT", {"default": 0, "min": -1024, "max": 1024}),
"position_x": ("INT", {"default": 0, "min": -4096, "max": 4096}),
"position_y": ("INT", {"default": 0, "min": -4096, "max": 4096}),
"rotation_angle": ("FLOAT", {"default": 0.0, "min": -360.0, "max": 360.0, "step": 0.1}),
"rotation_options": (ROTATE_OPTIONS,),
},
"optional": {
"font_color_hex": ("STRING", {"multiline": False, "default": "#000000"}),
"bg_color_hex": ("STRING", {"multiline": False, "default": "#000000"})
}
}
RETURN_TYPES = ("IMAGE", "STRING",)
RETURN_NAMES = ("IMAGE", "show_help",)
FUNCTION = "draw_text"
CATEGORY = icons.get("Comfyroll/Graphics/Text")
def draw_text(self, image_width, image_height, text,
font_name, font_size, font_color,
background_color,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options,
font_color_hex='#000000', bg_color_hex='#000000'):
# Get RGB values for the text and background colors
text_color = get_color_values(font_color, font_color_hex, color_mapping)
bg_color = get_color_values(background_color, bg_color_hex, color_mapping)
# Create PIL images for the text and background layers and text mask
size = (image_width, image_height)
text_image = Image.new('RGB', size, text_color)
back_image = Image.new('RGB', size, bg_color)
text_mask = Image.new('L', back_image.size)
# Draw the text on the text mask
rotated_text_mask = draw_masked_text(text_mask, text, font_name, font_size,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options)
# Composite the text image onto the background image using the rotated text mask
image_out = Image.composite(text_image, back_image, rotated_text_mask)
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Text-Nodes#cr-draw-text"
# Convert the PIL image back to a torch tensor
return (pil2tensor(image_out), show_help,)
#---------------------------------------------------------------------------------------------------------------------#
class CR_MaskText:
@classmethod
def INPUT_TYPES(s):
font_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "fonts")
file_list = [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and f.lower().endswith(".ttf")]
return {"required": {
"image": ("IMAGE",),
"text": ("STRING", {"multiline": True, "default": "text"}),
"font_name": (file_list,),
"font_size": ("INT", {"default": 50, "min": 1, "max": 1024}),
"background_color": (COLORS,),
"align": (ALIGN_OPTIONS,),
"justify": (JUSTIFY_OPTIONS,),
"margins": ("INT", {"default": 0, "min": -1024, "max": 1024}),
"line_spacing": ("INT", {"default": 0, "min": -1024, "max": 1024}),
"position_x": ("INT", {"default": 0, "min": -4096, "max": 4096}),
"position_y": ("INT", {"default": 0, "min": -4096, "max": 4096}),
"rotation_angle": ("FLOAT", {"default": 0.0, "min": -360.0, "max": 360.0, "step": 0.1}),
"rotation_options": (ROTATE_OPTIONS,),
},
"optional": {
"bg_color_hex": ("STRING", {"multiline": False, "default": "#000000"})
}
}
RETURN_TYPES = ("IMAGE", "STRING",)
RETURN_NAMES = ("IMAGE", "show_help",)
FUNCTION = "mask_text"
CATEGORY = icons.get("Comfyroll/Graphics/Text")
def mask_text(self, image, text, font_name, font_size,
margins, line_spacing,
position_x, position_y, background_color,
align, justify,
rotation_angle, rotation_options,
bg_color_hex='#000000'):
# Get RGB values for the background color
bg_color = get_color_values(background_color, bg_color_hex, color_mapping)
# Convert tensor images
image_3d = image[0, :, :, :]
# Create PIL images for the text and background layers and text mask
text_image = tensor2pil(image_3d)
text_mask = Image.new('L', text_image.size)
background_image = Image.new('RGB', text_mask.size, bg_color)
# Draw the text on the text mask
rotated_text_mask = draw_masked_text(text_mask, text, font_name, font_size,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options)
# Invert the text mask (so the text is white and the background is black)
text_mask = ImageOps.invert(rotated_text_mask)
# Composite the text image onto the background image using the inverted text mask
image_out = Image.composite(background_image, text_image, text_mask)
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Text-Nodes#cr-mask-text"
# Convert the PIL image back to a torch tensor
return (pil2tensor(image_out), show_help,)
#---------------------------------------------------------------------------------------------------------------------#
class CR_CompositeText:
@classmethod
def INPUT_TYPES(s):
font_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "fonts")
file_list = [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and f.lower().endswith(".ttf")]
return {"required": {
"image_text": ("IMAGE",),
"image_background": ("IMAGE",),
"text": ("STRING", {"multiline": True, "default": "text"}),
"font_name": (file_list,),
"font_size": ("INT", {"default": 50, "min": 1, "max": 1024}),
"align": (ALIGN_OPTIONS,),
"justify": (JUSTIFY_OPTIONS,),
"margins": ("INT", {"default": 0, "min": -1024, "max": 1024}),
"line_spacing": ("INT", {"default": 0, "min": -1024, "max": 1024}),
"position_x": ("INT", {"default": 0, "min": -4096, "max": 4096}),
"position_y": ("INT", {"default": 0, "min": -4096, "max": 4096}),
"rotation_angle": ("FLOAT", {"default": 0.0, "min": -360.0, "max": 360.0, "step": 0.1}),
"rotation_options": (ROTATE_OPTIONS,),
}
}
RETURN_TYPES = ("IMAGE", "STRING",)
RETURN_NAMES = ("IMAGE", "show_help",)
FUNCTION = "composite_text"
CATEGORY = icons.get("Comfyroll/Graphics/Text")
def composite_text(self, image_text, image_background, text,
font_name, font_size,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options):
# Convert tensor images
image_text_3d = image_text[0, :, :, :]
image_back_3d = image_background[0, :, :, :]
# Create PIL images for the text and background layers and text mask
text_image = tensor2pil(image_text_3d)
back_image = tensor2pil(image_back_3d)
text_mask = Image.new('L', back_image.size)
# Draw the text on the text mask
rotated_text_mask = draw_masked_text(text_mask, text, font_name, font_size,
margins, line_spacing,
position_x, position_y,
align, justify,
rotation_angle, rotation_options)
# Composite the text image onto the background image using the rotated text mask
image_out = Image.composite(text_image, back_image, rotated_text_mask)
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Text-Nodes#cr-composite-text"
# Convert the PIL image back to a torch tensor
return (pil2tensor(image_out), show_help,)
#---------------------------------------------------------------------------------------------------------------------#
class CR_ArabicTextRTL:
@classmethod
def INPUT_TYPES(s):
return {"required": {
"arabic_text": ("STRING", {"multiline": True, "default": "شمس"}),
}
}
RETURN_TYPES = ("STRING", "STRING", )
RETURN_NAMES = ("arabic_text_rtl", "show help", )
FUNCTION = "adjust_arabic_to_rtl"
CATEGORY = icons.get("Comfyroll/Graphics/Text")
def adjust_arabic_to_rtl(self, arabic_text):
"""
Adjust Arabic text to read from right to left (RTL).
Args:
arabic_text (str): The Arabic text to be adjusted.
Returns:
str: The adjusted Arabic text in RTL format.
"""
arabic_text_reshaped = arabic_reshaper.reshape(arabic_text)
rtl_text = get_display(arabic_text_reshaped)
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Text-Nodes#cr-arabic-text-rtl"
return (rtl_text, show_help,)
#---------------------------------------------------------------------------------------------------------------------#
class CR_SimpleTextWatermark:
@classmethod
def INPUT_TYPES(s):
font_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "fonts")
file_list = [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and f.lower().endswith(".ttf")]
ALIGN_OPTIONS = ["center", "top left", "top center", "top right", "bottom left", "bottom center", "bottom right"]
return {"required": {
"image": ("IMAGE",),
"text": ("STRING", {"multiline": False, "default": "@ your name"}),
"align": (ALIGN_OPTIONS,),
"opacity": ("FLOAT", {"default": 0.30, "min": 0.00, "max": 1.00, "step": 0.01}),
"font_name": (file_list,),
"font_size": ("INT", {"default": 50, "min": 1, "max": 1024}),
"font_color": (COLORS,),
"x_margin": ("INT", {"default": 20, "min": -1024, "max": 1024}),
"y_margin": ("INT", {"default": 20, "min": -1024, "max": 1024}),
},
"optional": {
"font_color_hex": ("STRING", {"multiline": False, "default": "#000000"}),
}
}
RETURN_TYPES = ("IMAGE", "STRING", )
RETURN_NAMES = ("IMAGE", "show_help", )
FUNCTION = "overlay_text"
CATEGORY = icons.get("Comfyroll/Graphics/Text")
def overlay_text(self, image, text, align,
font_name, font_size, font_color,
opacity, x_margin, y_margin, font_color_hex='#000000'):
# Get RGB values for the text color
text_color = get_color_values(font_color, font_color_hex, color_mapping)
total_images = []
for img in image:
# Create PIL images for the background layer
img = tensor2pil(img)
textlayer = Image.new("RGBA", img.size)
draw = ImageDraw.Draw(textlayer)
# Load the font
font_file = os.path.join("fonts", str(font_name))
resolved_font_path = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), font_file)
font = ImageFont.truetype(str(resolved_font_path), size=font_size)
# Get the size of the text
textsize = get_text_size(draw, text, font)
# Calculate the position to place the text based on the alignment
if align == 'center':
textpos = [(img.size[0] - textsize[0]) // 2, (img.size[1] - textsize[1]) // 2]
elif align == 'top left':
textpos = [x_margin, y_margin]
elif align == 'top center':
textpos = [(img.size[0] - textsize[0]) // 2, y_margin]
elif align == 'top right':
textpos = [img.size[0] - textsize[0] - x_margin, y_margin]
elif align == 'bottom left':
textpos = [x_margin, img.size[1] - textsize[1] - y_margin]
elif align == 'bottom center':
textpos = [(img.size[0] - textsize[0]) // 2, img.size[1] - textsize[1] - y_margin]
elif align == 'bottom right':
textpos = [img.size[0] - textsize[0] - x_margin, img.size[1] - textsize[1] - y_margin]
# Draw the text on the text layer
draw.text(textpos, text, font=font, fill=text_color)
# Adjust the opacity of the text layer if needed
if opacity != 1:
textlayer = reduce_opacity(textlayer, opacity)
# Composite the text layer on top of the original image
out_image = Image.composite(textlayer, img, textlayer)
# convert to tensor
out_image = np.array(out_image.convert("RGB")).astype(np.float32) / 255.0
out_image = torch.from_numpy(out_image).unsqueeze(0)
total_images.append(out_image)
images_out = torch.cat(total_images, 0)
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Text-Nodes#cr-simple-text-watermark"
# Convert the PIL image back to a torch tensor
return (images_out, show_help, )
#---------------------------------------------------------------------------------------------------------------------#
class CR_SelectFont:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
if platform.system() == "Windows":
system_root = os.environ.get("SystemRoot")
font_dir = os.path.join(system_root, "Fonts") if system_root else None
# Default debian-based Linux & MacOS font dirs
elif platform.system() == "Linux":
font_dir = "/usr/share/fonts/truetype"
elif platform.system() == "Darwin":
font_dir = "/System/Library/Fonts"
file_list = [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and f.lower().endswith(".ttf")]
return {"required": {
"font_name": (file_list,),
}
}
RETURN_TYPES = (any_type, "STRING",)
RETURN_NAMES = ("font_name", "show_help",)
FUNCTION = "select_font"
CATEGORY = icons.get("Comfyroll/Graphics/Text")
def select_font(self, font_name):
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Text-Nodes#cr-select-font"
return (font_name, show_help,)
#---------------------------------------------------------------------------------------------------------------------#
# MAPPINGS
#---------------------------------------------------------------------------------------------------------------------#
# For reference only, actual mappings are in __init__.py
'''
NODE_CLASS_MAPPINGS = {
"CR Overlay Text": CR_OverlayText,
"CR Draw Text": CR_DrawText,
"CR Mask Text": CR_MaskText,
"CR Composite Text": CR_CompositeText,
"CR Draw Perspective Text": CR_DrawPerspectiveText,
"CR Arabic Text RTL": CR_ArabicTextRTL,
"CR Simple Text Watermark": CR_SimpleTextWatermark,
"CR Select Font": CR_SelectFont,
}
'''
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,49 @@
import os
import importlib.util
import sys
from pathlib import Path
# 获取当前包目录的路径
current_dir = Path(__file__).parent
nodes_dir = current_dir / "nodes"
# 设置WEB目录路径 - 这是关键配置
WEB_DIRECTORY = "./web"
# 初始化全局映射字典
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
# 遍历nodes目录中的所有Python文件
for file_path in nodes_dir.glob("*.py"):
# 跳过__init__.py文件
if file_path.name == "__init__.py":
continue
# 提取模块名(不含.py后缀)
module_name = file_path.stem
# 使用importlib动态加载模块
spec = importlib.util.spec_from_file_location(f"goohaitools.nodes.{module_name}", file_path)
module = importlib.util.module_from_spec(spec)
try:
# 执行模块代码
spec.loader.exec_module(module)
# 检查并合并NODE_CLASS_MAPPINGS
if hasattr(module, 'NODE_CLASS_MAPPINGS'):
NODE_CLASS_MAPPINGS.update(module.NODE_CLASS_MAPPINGS)
# 检查并合并NODE_DISPLAY_NAME_MAPPINGS
if hasattr(module, 'NODE_DISPLAY_NAME_MAPPINGS'):
NODE_DISPLAY_NAME_MAPPINGS.update(module.NODE_DISPLAY_NAME_MAPPINGS)
except Exception as e:
print(f"Error loading node module {module_name}: {str(e)}")
continue
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
# 打印加载信息
print(f'\033[92m[GoohaiTools]\033[0m \033[93m{len(NODE_CLASS_MAPPINGS)} nodes\033[0m loaded | \033[94mColorWidget enabled\033[0m')
@@ -0,0 +1,259 @@
import os
import numpy as np
from PIL import Image, ImageDraw, ImageFont, ImageEnhance
import torch
class 孤海_图像添加水印:
def __init__(self):
# 修改为上级目录下的fonts文件夹
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_dir)
self.font_dir = os.path.join(parent_dir, "fonts")
# 确保字体文件夹存在
if not os.path.exists(self.font_dir):
os.makedirs(self.font_dir)
@classmethod
def INPUT_TYPES(cls):
# 获取可用字体列表 - 同样修改为上级目录下的fonts文件夹
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_dir)
font_dir = os.path.join(parent_dir, "fonts")
font_files = []
if os.path.exists(font_dir):
font_files = [f for f in os.listdir(font_dir) if f.endswith(('.ttf', '.otf', '.ttc'))]
return {
"required": {
"图像": ("IMAGE",),
"水印文本": ("STRING", {"default": "水印"}),
"字体": (font_files,),
"水印大小百分比": ("INT", {"default": 5, "min": 0, "max": 100, "step": 1}),
"水印不透明度": ("INT", {"default": 50, "min": 0, "max": 100, "step": 1}),
"水平位置": (["居中", "靠左", "靠右"],),
"垂直位置": (["居中", "靠上", "靠下"],),
"X偏移百分比": ("INT", {"default": 0, "min": 0, "max": 50, "step": 1}),
"Y偏移百分比": ("INT", {"default": 0, "min": 0, "max": 50, "step": 1}),
"文字颜色": ("COLORCODE", {"default": "#FFFFFF"}),
"水印平铺": ("BOOLEAN", {"default": False}),
"水印角度": ("INT", {"default": 0, "min": -90, "max": 90, "step": 1}),
"水印间距": ("INT", {"default": 10, "min": 0, "max": 50, "step": 1}),
"输出透明通道": ("BOOLEAN", {"default": False}),
},
"optional": {
"水印图像": ("IMAGE",),
}
}
RETURN_TYPES = ("IMAGE",)
FUNCTION = "添加水印"
CATEGORY = "孤海工具箱"
def 添加水印(self, 图像, 水印文本, 字体, 水印大小百分比, 水印不透明度,
水平位置, 垂直位置, X偏移百分比, Y偏移百分比,
文字颜色, 水印平铺, 水印角度, 水印间距, 输出透明通道,
水印图像=None):
# 将PyTorch张量转换为PIL图像
img = self.张量转PIL(图像)
# 确保图像有Alpha通道用于处理透明度
if img.mode in ('RGB', 'L'):
img = img.convert('RGBA')
# 处理水印
if 水印图像 is not None:
# 使用图像水印
watermark = self.张量转PIL(水印图像)
result = self.应用图像水印(img, watermark, 水印大小百分比,
水印不透明度, 水平位置,
垂直位置, X偏移百分比,
Y偏移百分比, 水印角度)
else:
# 使用文字水印
result = self.应用文字水印(img, 水印文本, 字体, 水印大小百分比,
水印不透明度, 水平位置,
垂直位置, X偏移百分比,
Y偏移百分比, 文字颜色, 水印平铺,
水印角度, 水印间距)
# 处理输出通道
if not 输出透明通道 and result.mode == 'RGBA':
result = result.convert('RGB')
# 将PIL图像转换回PyTorch张量
return (self.PIL转张量(result),)
def 应用图像水印(self, 原图, 水印图, 大小百分比, 不透明度,
水平位置, 垂直位置, X偏移, Y偏移, 角度):
# 调整水印大小 - 修改为按水印图像自身的百分比
水印宽, 水印高 = 水印图.size
比例 = 大小百分比 / 100.0
新水印尺寸 = (int(水印宽 * 比例), int(水印高 * 比例))
水印 = 水印图.resize(新水印尺寸, Image.Resampling.LANCZOS)
# 确保水印有Alpha通道
if 水印.mode != 'RGBA':
水印 = 水印.convert('RGBA')
# 调整水印透明度
alpha = 水印.split()[3]
alpha = ImageEnhance.Brightness(alpha).enhance(不透明度 / 100)
水印.putalpha(alpha)
# 旋转水印
if 角度 != 0:
水印 = 水印.rotate(角度, expand=True, resample=Image.Resampling.BICUBIC)
# 计算水印位置
水印宽, 水印高 = 水印.size
原图宽, 原图高 = 原图.size
x, y = self.计算位置(原图宽, 原图高, 水印宽, 水印高,
水平位置, 垂直位置, X偏移, Y偏移)
# 创建一个临时图像来应用水印
临时图层 = Image.new('RGBA', 原图.size, (0, 0, 0, 0))
临时图层.paste(水印, (x, y), 水印)
# 合并水印和原图
return Image.alpha_composite(原图, 临时图层)
def 应用文字水印(self, 原图, 文字, 字体名, 大小百分比, 不透明度,
水平位置, 垂直位置, X偏移, Y偏移, 颜色,
平铺, 角度, 间距):
# 文字水印保持原来的逻辑 - 按底图高度的百分比
原图宽, 原图高 = 原图.size
文字大小 = int(原图高 * (大小百分比 / 100))
# 加载字体(使用修改后的上级目录路径)
字体路径 = os.path.join(self.font_dir, 字体名)
try:
字体 = ImageFont.truetype(字体路径, 文字大小)
except:
# 加载失败时使用默认字体
字体 = ImageFont.load_default()
# 获取文字大小和偏移量
文字宽, 文字高, 偏移_y = self.获取文字大小(文字, 字体)
# 创建足够大的文字图层(增加一些安全边距)
安全边距 = int(文字大小 * 0.1) # 10%的安全边距
文字图层 = Image.new('RGBA',
(文字宽 + 2 * 安全边距,
文字高 + 2 * 安全边距),
(0, 0, 0, 0))
draw = ImageDraw.Draw(文字图层)
# 解析颜色
颜色带透明 = self.十六进制转RGBA(颜色, 不透明度)
# 绘制文字(调整位置以避免截断)
draw.text((安全边距, 安全边距 - 偏移_y), 文字, font=字体, fill=颜色带透明)
# 旋转文字
if 角度 != 0:
文字图层 = 文字图层.rotate(角度, expand=True, resample=Image.Resampling.BICUBIC)
文字宽, 文字高 = 文字图层.size
# 创建临时图像来应用水印
临时图层 = Image.new('RGBA', 原图.size, (0, 0, 0, 0))
if 平铺:
# 平铺水印
间距像素 = int(原图高 * (间距 / 100))
# 计算每行每列可以放置多少水印
列数 = (原图宽 // (文字宽 + 间距像素)) + 2
行数 = (原图高 // (文字高 + 间距像素)) + 2
for i in range(列数):
for j in range(行数):
x = i * (文字宽 + 间距像素) - 文字宽
y = j * (文字高 + 间距像素) - 文字高
临时图层.paste(文字图层, (x, y), 文字图层)
else:
# 单一水印
x, y = self.计算位置(原图宽, 原图高, 文字宽, 文字高,
水平位置, 垂直位置, X偏移, Y偏移)
临时图层.paste(文字图层, (x, y), 文字图层)
# 合并水印和原图
return Image.alpha_composite(原图, 临时图层)
def 计算位置(self, 原图宽, 原图高, 水印宽, 水印高,
水平位置, 垂直位置, X偏移, Y偏移):
# 计算X偏移像素
X偏移像素 = int(原图宽 * (X偏移 / 100))
# 计算水平位置
if 水平位置 == "靠左":
x = X偏移像素
elif 水平位置 == "靠右":
x = 原图宽 - 水印宽 - X偏移像素
else: # 居中
x = (原图宽 - 水印宽) // 2 + X偏移像素
# 计算Y偏移像素
Y偏移像素 = int(原图高 * (Y偏移 / 100))
# 计算垂直位置
if 垂直位置 == "靠上":
y = Y偏移像素
elif 垂直位置 == "靠下":
y = 原图高 - 水印高 - Y偏移像素
else: # 居中
y = (原图高 - 水印高) // 2 + Y偏移像素
return x, y
def 获取文字大小(self, 文字, 字体):
# 改进的文字尺寸计算方法,考虑基线偏移
临时图像 = Image.new('RGBA', (1000, 1000), (0, 0, 0, 0)) # 使用较大的临时图像
draw = ImageDraw.Draw(临时图像)
# 获取文本边界框
bbox = draw.textbbox((0, 0), 文字, font=字体)
left, top, right, bottom = bbox
# 计算文字实际宽高
文字宽 = right - left
文字高 = bottom - top
# 计算基线偏移(文字实际顶部到绘制点的距离)
偏移_y = top
return 文字宽, 文字高, 偏移_y
def 十六进制转RGBA(self, 十六进制颜色, 不透明度):
# 移除#号
十六进制颜色 = 十六进制颜色.lstrip('#')
# 解析RGB值
r = int(十六进制颜色[0:2], 16)
g = int(十六进制颜色[2:4], 16)
b = int(十六进制颜色[4:6], 16)
# 计算透明度
a = int(255 * (不透明度 / 100))
return (r, g, b, a)
def 张量转PIL(self, 张量):
# 将ComfyUI的张量格式转换为PIL图像
if len(张量.shape) == 4:
张量 = 张量[0] # 取第一个图像
img = 张量.cpu().numpy()
img = np.clip(img * 255.0, 0, 255).astype(np.uint8)
img = Image.fromarray(img)
return img
def PIL转张量(self, img):
# 将PIL图像转换为ComfyUI的张量格式
img_np = np.array(img).astype(np.float32) / 255.0
if len(img_np.shape) == 3:
img_np = img_np[None, ...]
return torch.from_numpy(img_np)
# 节点注册映射
NODE_CLASS_MAPPINGS = {
"孤海-图像添加水印": 孤海_图像添加水印
}
NODE_DISPLAY_NAME_MAPPINGS = {
"孤海-图像添加水印": "孤海-图像添加水印"
}
@@ -0,0 +1,631 @@
[
".github/workflows/publish_action.yml",
".gitignore",
"LICENSE",
"README.md",
"README_CN.MD",
"__init__.py",
"api_key.ini.example",
"custom_size.ini.example",
"face_landmarker/face_landmarker.task",
"florence2_models/__init__.py",
"florence2_models/configuration_florence2.py",
"florence2_models/modeling_florence2.py",
"florence2_models/processing_florence2.py",
"florence2_ultra.py",
"font/Alibaba-PuHuiTi-Heavy.ttf",
"image/add_blind_watermark_node.jpg",
"image/bbox_join_node.jpg",
"image/birefnet_ultra_example.jpg",
"image/birefnet_ultra_node.jpg",
"image/birefnet_ultra_v2_example.jpg",
"image/birefnet_ultra_v2_node.jpg",
"image/blend_mode_result.jpg",
"image/blend_mode_v2_example.jpg",
"image/collage_example.jpg",
"image/collage_node.jpg",
"image/create_qrcode_node.jpg",
"image/data_nodes_example.jpg",
"image/decode_qrcode_node.jpg",
"image/deepseek_api_example.jpg",
"image/deepseek_api_node.jpg",
"image/deepseek_api_v2_node.jpg",
"image/draw_bbox_mask_example.jpg",
"image/draw_bbox_mask_node.jpg",
"image/draw_bbox_mask_v2_example.jpg",
"image/draw_bbox_mask_v2_node.jpg",
"image/evf_sam_ultra_example.jpg",
"image/evf_sam_ultra_node.jpg",
"image/florence2_image2prompt_example.jpg",
"image/florence2_image2prompt_node.jpg",
"image/florence2_ultra_example.jpg",
"image/florence2_ultra_node.jpg",
"image/gemini_example.jpg",
"image/gemini_image_edit_example.jpg",
"image/gemini_image_edit_node.jpg",
"image/gemini_node.jpg",
"image/gemini_v2_example.jpg",
"image/gemini_v2_node.jpg",
"image/get_color_tone_example.jpg",
"image/get_color_tone_node.jpg",
"image/get_color_tone_v2_example.jpg",
"image/get_color_tone_v2_example2.jpg",
"image/get_color_tone_v2_node.jpg",
"image/human_parts_node.jpg",
"image/human_parts_ultra_example.jpg",
"image/image_auto_crop_example.jpg",
"image/image_auto_crop_node.jpg",
"image/image_auto_crop_v2_node.jpg",
"image/image_auto_crop_v3_node.jpg",
"image/image_reward_filter_example.jpg",
"image/image_reward_filter_node.jpg",
"image/jimeng_image_to_image_api_example.jpg",
"image/jimeng_image_to_image_api_node.jpg",
"image/joycaption2_example.jpg",
"image/joycaption2_extra_options_node.jpg",
"image/joycaption2_node.jpg",
"image/joycaption2_split_node.jpg",
"image/joycaption_beta1_example.jpg",
"image/joycaption_beta1_extra_options_node.jpg",
"image/joycaption_beta_1_node.jpg",
"image/lama_example.jpg",
"image/lama_node.jpg",
"image/light_leak_example.jpg",
"image/light_leak_node.jpg",
"image/llama_vision_example.jpg",
"image/llama_vision_node.jpg",
"image/load_ben_model_node.jpg",
"image/load_birefnet_model_node.jpg",
"image/load_birefnet_model_v2_node.jpg",
"image/load_florence2_model_node.jpg",
"image/load_image_example.jpg",
"image/load_image_example_psd_file.jpg",
"image/load_image_node.jpg",
"image/load_joycaption2_model_node.jpg",
"image/load_joycaption_beta1_model_node.jpg",
"image/load_sam2_model_node.jpg",
"image/load_segmentanything_model_node.jpg",
"image/load_smollm2_node.jpg",
"image/load_smolvlm_model_node.jpg",
"image/mask_by_different_example.jpg",
"image/mask_by_different_node.jpg",
"image/mediapipe_facial_segment_example.jpg",
"image/mediapipe_facial_segment_node.jpg",
"image/node-menu.jpg",
"image/node-search.jpg",
"image/object_detector_fl2_node.jpg",
"image/object_detector_gemini_example.jpg",
"image/object_detector_gemini_node.jpg",
"image/object_detector_gemini_v2_node.jpg",
"image/object_detector_mask_node.jpg",
"image/object_detector_yolo8_node.jpg",
"image/object_detector_yolo_world_node.jpg",
"image/outer_glow_example.jpg",
"image/person_mask_ultra_example.jpg",
"image/person_mask_ultra_node.jpg",
"image/person_mask_ultra_v2_node.jpg",
"image/phi_prompt_example.jpg",
"image/phi_prompt_node.jpg",
"image/prompt_embellish_example.jpg",
"image/prompt_embellish_node.jpg",
"image/prompt_tagger_example.jpg",
"image/prompt_tagger_example1.jpg",
"image/prompt_tagger_node.jpg",
"image/qwen_image2prompt_example.jpg",
"image/sam2_example.jpg",
"image/sam2_ultra_node.jpg",
"image/sam2_ultra_v2_node.jpg",
"image/sam2_video_ultra_node.jpg",
"image/saveimage_plus_example.jpg",
"image/saveimage_plus_node.jpg",
"image/saveimage_plus_v2_node.jpg",
"image/sd3_negative_conditioning_example.jpg",
"image/sd3_negative_conditioning_node.jpg",
"image/sd3_negative_conditioning_node_note.jpg",
"image/segment_anything_ultra_compare.jpg",
"image/segment_anything_ultra_example.jpg",
"image/segment_anything_ultra_node.jpg",
"image/segment_anything_ultra_v2_node.jpg",
"image/segment_anything_ultra_v3_example.jpg",
"image/segment_anything_ultra_v3_node.jpg",
"image/show_blind_watermark_node.jpg",
"image/smollm2_example.jpg",
"image/smollm2_node.jpg",
"image/smolvlm_example.jpg",
"image/smolvlm_node.jpg",
"image/transparent_background_ultra_example.jpg",
"image/transparent_background_ultra_node.jpg",
"image/ultra_v2_nodes_example.jpg",
"image/userprompt_generator_replace_word_node.jpg",
"image/userprompt_generator_txt2img_node.jpg",
"image/userprompt_generator_txt2img_with_reference_node.jpg",
"image/water_color_example.jpg",
"image/water_color_node.jpg",
"image/watermark_example.jpg",
"image/yolov8_detect_example.jpg",
"image/yolov8_detect_node.jpg",
"image/zhipuglm4_example.jpg",
"image/zhipuglm4_node.jpg",
"image/zhipuglm4v_node.jpg",
"install_requirements.bat",
"install_requirements_aki.bat",
"js/dz_node_palette.js",
"locales/en/nodeDefs.json",
"locales/fr/nodeDefs.json",
"locales/ja/nodeDefs.json",
"locales/ko/nodeDefs.json",
"locales/ru/nodeDefs.json",
"locales/zh/nodeDefs.json",
"py/BiRefNet_legacy/__init__.py",
"py/BiRefNet_legacy/backbones/__init__.py",
"py/BiRefNet_legacy/backbones/build_backbone.py",
"py/BiRefNet_legacy/backbones/pvt_v2.py",
"py/BiRefNet_legacy/backbones/swin_v1.py",
"py/BiRefNet_legacy/baseline.py",
"py/BiRefNet_legacy/config.py",
"py/BiRefNet_legacy/dataset.py",
"py/BiRefNet_legacy/modules/__init__.py",
"py/BiRefNet_legacy/modules/aspp.py",
"py/BiRefNet_legacy/modules/attentions.py",
"py/BiRefNet_legacy/modules/decoder_blocks.py",
"py/BiRefNet_legacy/modules/deform_conv.py",
"py/BiRefNet_legacy/modules/ing.py",
"py/BiRefNet_legacy/modules/lateral_blocks.py",
"py/BiRefNet_legacy/modules/mlp.py",
"py/BiRefNet_legacy/modules/utils.py",
"py/BiRefNet_legacy/preproc.py",
"py/BiRefNet_legacy/refinement/__init__.py",
"py/BiRefNet_legacy/refinement/refiner.py",
"py/BiRefNet_legacy/refinement/stem_layer.py",
"py/BiRefNet_v2/LICENSE",
"py/BiRefNet_v2/README.md",
"py/BiRefNet_v2/__init__.py",
"py/BiRefNet_v2/config.py",
"py/BiRefNet_v2/dataset.py",
"py/BiRefNet_v2/eval_existingOnes.py",
"py/BiRefNet_v2/evaluation/metrics.py",
"py/BiRefNet_v2/gen_best_ep.py",
"py/BiRefNet_v2/image_proc.py",
"py/BiRefNet_v2/inference.py",
"py/BiRefNet_v2/loss.py",
"py/BiRefNet_v2/make_a_copy.sh",
"py/BiRefNet_v2/models/backbones/build_backbone.py",
"py/BiRefNet_v2/models/backbones/pvt_v2.py",
"py/BiRefNet_v2/models/backbones/swin_v1.py",
"py/BiRefNet_v2/models/birefnet.py",
"py/BiRefNet_v2/models/modules/aspp.py",
"py/BiRefNet_v2/models/modules/decoder_blocks.py",
"py/BiRefNet_v2/models/modules/deform_conv.py",
"py/BiRefNet_v2/models/modules/lateral_blocks.py",
"py/BiRefNet_v2/models/modules/mlp.py",
"py/BiRefNet_v2/models/modules/prompt_encoder.py",
"py/BiRefNet_v2/models/modules/utils.py",
"py/BiRefNet_v2/models/refinement/refiner.py",
"py/BiRefNet_v2/models/refinement/stem_layer.py",
"py/BiRefNet_v2/requirements.txt",
"py/BiRefNet_v2/rm_cache.sh",
"py/BiRefNet_v2/sub.sh",
"py/BiRefNet_v2/test.sh",
"py/BiRefNet_v2/train.py",
"py/BiRefNet_v2/train.sh",
"py/BiRefNet_v2/train_test.sh",
"py/BiRefNet_v2/tutorials/BiRefNet_inference.ipynb",
"py/BiRefNet_v2/tutorials/BiRefNet_pth2onnx.ipynb",
"py/BiRefNet_v2/utils.py",
"py/Jimeng_API.py",
"py/Qwen_image2prompt.py",
"py/ben_ultra.py",
"py/birefnet_legacy.py",
"py/birefnet_ultra.py",
"py/birefnet_ultra_v2.py",
"py/blendmodes.py",
"py/briarmbg.py",
"py/collage.py",
"py/deepseek.py",
"py/evf_sam/__init__.py",
"py/evf_sam/evf_sam_inference.py",
"py/evf_sam/model/EfficientSAM/efficient_sam/__init__.py",
"py/evf_sam/model/EfficientSAM/efficient_sam/build_efficient_sam.py",
"py/evf_sam/model/EfficientSAM/efficient_sam/efficient_sam.py",
"py/evf_sam/model/EfficientSAM/efficient_sam/efficient_sam_decoder.py",
"py/evf_sam/model/EfficientSAM/efficient_sam/efficient_sam_encoder.py",
"py/evf_sam/model/EfficientSAM/efficient_sam/mlp.py",
"py/evf_sam/model/EfficientSAM/efficient_sam/two_way_transformer.py",
"py/evf_sam/model/__init__.py",
"py/evf_sam/model/configuration_evf.py",
"py/evf_sam/model/evf_effisam.py",
"py/evf_sam/model/evf_sam.py",
"py/evf_sam/model/evf_sam2.py",
"py/evf_sam/model/evf_sam2_video.py",
"py/evf_sam/model/segment_anything/__init__.py",
"py/evf_sam/model/segment_anything/automatic_mask_generator.py",
"py/evf_sam/model/segment_anything/build_sam.py",
"py/evf_sam/model/segment_anything/modeling/__init__.py",
"py/evf_sam/model/segment_anything/modeling/common.py",
"py/evf_sam/model/segment_anything/modeling/image_encoder.py",
"py/evf_sam/model/segment_anything/modeling/mask_decoder.py",
"py/evf_sam/model/segment_anything/modeling/prompt_encoder.py",
"py/evf_sam/model/segment_anything/modeling/sam.py",
"py/evf_sam/model/segment_anything/modeling/transformer.py",
"py/evf_sam/model/segment_anything/predictor.py",
"py/evf_sam/model/segment_anything/utils/__init__.py",
"py/evf_sam/model/segment_anything/utils/amg.py",
"py/evf_sam/model/segment_anything/utils/onnx.py",
"py/evf_sam/model/segment_anything/utils/transforms.py",
"py/evf_sam/model/segment_anything_2/sam2/__init__.py",
"py/evf_sam/model/segment_anything_2/sam2/automatic_mask_generator.py",
"py/evf_sam/model/segment_anything_2/sam2/build_sam.py",
"py/evf_sam/model/segment_anything_2/sam2/csrc/connected_components.cu",
"py/evf_sam/model/segment_anything_2/sam2/modeling/__init__.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/backbones/__init__.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/backbones/hieradet.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/backbones/image_encoder.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/backbones/utils.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/memory_attention.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/memory_encoder.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/position_encoding.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/sam/__init__.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/sam/mask_decoder.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/sam/prompt_encoder.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/sam/transformer.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/sam2_base.py",
"py/evf_sam/model/segment_anything_2/sam2/modeling/sam2_utils.py",
"py/evf_sam/model/segment_anything_2/sam2/sam2_image_predictor.py",
"py/evf_sam/model/segment_anything_2/sam2/sam2_video_predictor.py",
"py/evf_sam/model/segment_anything_2/sam2/utils/__init__.py",
"py/evf_sam/model/segment_anything_2/sam2/utils/amg.py",
"py/evf_sam/model/segment_anything_2/sam2/utils/misc.py",
"py/evf_sam/model/segment_anything_2/sam2/utils/transforms.py",
"py/evf_sam/model/segment_anything_2/sam2_configs/__init__.py",
"py/evf_sam/model/segment_anything_2/sam2_configs/sam2_hiera_b+.yaml",
"py/evf_sam/model/segment_anything_2/sam2_configs/sam2_hiera_l.yaml",
"py/evf_sam/model/segment_anything_2/sam2_configs/sam2_hiera_s.yaml",
"py/evf_sam/model/segment_anything_2/sam2_configs/sam2_hiera_t.yaml",
"py/evf_sam/model/segment_anything_2/setup.py",
"py/evf_sam/model/unilm/beit3/README.md",
"py/evf_sam/model/unilm/beit3/datasets.py",
"py/evf_sam/model/unilm/beit3/engine_for_finetuning.py",
"py/evf_sam/model/unilm/beit3/get_started/get_started_for_captioning.md",
"py/evf_sam/model/unilm/beit3/get_started/get_started_for_image_classification.md",
"py/evf_sam/model/unilm/beit3/get_started/get_started_for_nlvr2.md",
"py/evf_sam/model/unilm/beit3/get_started/get_started_for_retrieval.md",
"py/evf_sam/model/unilm/beit3/get_started/get_started_for_vqav2.md",
"py/evf_sam/model/unilm/beit3/glossary.py",
"py/evf_sam/model/unilm/beit3/modeling_finetune.py",
"py/evf_sam/model/unilm/beit3/modeling_utils.py",
"py/evf_sam/model/unilm/beit3/optim_factory.py",
"py/evf_sam/model/unilm/beit3/randaug.py",
"py/evf_sam/model/unilm/beit3/requirements.txt",
"py/evf_sam/model/unilm/beit3/run_beit3_finetuning.py",
"py/evf_sam/model/unilm/beit3/utils.py",
"py/evf_sam/utils/ade20k_classes.json",
"py/evf_sam/utils/aug.py",
"py/evf_sam/utils/data_processing.py",
"py/evf_sam/utils/dataset.py",
"py/evf_sam/utils/grefcoco.py",
"py/evf_sam/utils/grefer.py",
"py/evf_sam/utils/refer.py",
"py/evf_sam/utils/refer_seg_dataset.py",
"py/evf_sam/utils/sem_seg_dataset.py",
"py/evf_sam/utils/utils.py",
"py/evf_sam_ultra.py",
"py/florence2_ultra.py",
"py/gemini.py",
"py/get_color_tone.py",
"py/get_color_tone_v2.py",
"py/human_parts_ultra.py",
"py/image_auto_crop.py",
"py/image_auto_crop_v2.py",
"py/image_auto_crop_v3.py",
"py/image_reward_filter.py",
"py/imagefunc.py",
"py/iopaint/__init__.py",
"py/iopaint/__main__.py",
"py/iopaint/api.py",
"py/iopaint/batch_processing.py",
"py/iopaint/benchmark.py",
"py/iopaint/cli.py",
"py/iopaint/const.py",
"py/iopaint/download.py",
"py/iopaint/file_manager/__init__.py",
"py/iopaint/file_manager/file_manager.py",
"py/iopaint/file_manager/storage_backends.py",
"py/iopaint/file_manager/utils.py",
"py/iopaint/helper.py",
"py/iopaint/imghdr.py",
"py/iopaint/installer.py",
"py/iopaint/model/__init__.py",
"py/iopaint/model/anytext/__init__.py",
"py/iopaint/model/anytext/anytext_model.py",
"py/iopaint/model/anytext/anytext_pipeline.py",
"py/iopaint/model/anytext/anytext_sd15.yaml",
"py/iopaint/model/anytext/cldm/__init__.py",
"py/iopaint/model/anytext/cldm/cldm.py",
"py/iopaint/model/anytext/cldm/ddim_hacked.py",
"py/iopaint/model/anytext/cldm/embedding_manager.py",
"py/iopaint/model/anytext/cldm/hack.py",
"py/iopaint/model/anytext/cldm/model.py",
"py/iopaint/model/anytext/cldm/recognizer.py",
"py/iopaint/model/anytext/ldm/__init__.py",
"py/iopaint/model/anytext/ldm/models/__init__.py",
"py/iopaint/model/anytext/ldm/models/autoencoder.py",
"py/iopaint/model/anytext/ldm/models/diffusion/__init__.py",
"py/iopaint/model/anytext/ldm/models/diffusion/ddim.py",
"py/iopaint/model/anytext/ldm/models/diffusion/ddpm.py",
"py/iopaint/model/anytext/ldm/models/diffusion/dpm_solver/__init__.py",
"py/iopaint/model/anytext/ldm/models/diffusion/dpm_solver/dpm_solver.py",
"py/iopaint/model/anytext/ldm/models/diffusion/dpm_solver/sampler.py",
"py/iopaint/model/anytext/ldm/models/diffusion/plms.py",
"py/iopaint/model/anytext/ldm/models/diffusion/sampling_util.py",
"py/iopaint/model/anytext/ldm/modules/__init__.py",
"py/iopaint/model/anytext/ldm/modules/attention.py",
"py/iopaint/model/anytext/ldm/modules/diffusionmodules/__init__.py",
"py/iopaint/model/anytext/ldm/modules/diffusionmodules/model.py",
"py/iopaint/model/anytext/ldm/modules/diffusionmodules/openaimodel.py",
"py/iopaint/model/anytext/ldm/modules/diffusionmodules/upscaling.py",
"py/iopaint/model/anytext/ldm/modules/diffusionmodules/util.py",
"py/iopaint/model/anytext/ldm/modules/distributions/__init__.py",
"py/iopaint/model/anytext/ldm/modules/distributions/distributions.py",
"py/iopaint/model/anytext/ldm/modules/ema.py",
"py/iopaint/model/anytext/ldm/modules/encoders/__init__.py",
"py/iopaint/model/anytext/ldm/modules/encoders/modules.py",
"py/iopaint/model/anytext/ldm/util.py",
"py/iopaint/model/anytext/main.py",
"py/iopaint/model/anytext/ocr_recog/RNN.py",
"py/iopaint/model/anytext/ocr_recog/RecCTCHead.py",
"py/iopaint/model/anytext/ocr_recog/RecModel.py",
"py/iopaint/model/anytext/ocr_recog/RecMv1_enhance.py",
"py/iopaint/model/anytext/ocr_recog/RecSVTR.py",
"py/iopaint/model/anytext/ocr_recog/__init__.py",
"py/iopaint/model/anytext/ocr_recog/common.py",
"py/iopaint/model/anytext/ocr_recog/ppocr_keys_v1.txt",
"py/iopaint/model/anytext/utils.py",
"py/iopaint/model/base.py",
"py/iopaint/model/controlnet.py",
"py/iopaint/model/ddim_sampler.py",
"py/iopaint/model/fcf.py",
"py/iopaint/model/helper/__init__.py",
"py/iopaint/model/helper/controlnet_preprocess.py",
"py/iopaint/model/helper/cpu_text_encoder.py",
"py/iopaint/model/helper/g_diffuser_bot.py",
"py/iopaint/model/instruct_pix2pix.py",
"py/iopaint/model/kandinsky.py",
"py/iopaint/model/lama.py",
"py/iopaint/model/ldm.py",
"py/iopaint/model/manga.py",
"py/iopaint/model/mat.py",
"py/iopaint/model/mi_gan.py",
"py/iopaint/model/opencv2.py",
"py/iopaint/model/original_sd_configs/__init__.py",
"py/iopaint/model/original_sd_configs/sd_xl_base.yaml",
"py/iopaint/model/original_sd_configs/sd_xl_refiner.yaml",
"py/iopaint/model/original_sd_configs/v1-inference.yaml",
"py/iopaint/model/original_sd_configs/v2-inference-v.yaml",
"py/iopaint/model/paint_by_example.py",
"py/iopaint/model/plms_sampler.py",
"py/iopaint/model/power_paint/__init__.py",
"py/iopaint/model/power_paint/pipeline_powerpaint.py",
"py/iopaint/model/power_paint/pipeline_powerpaint_controlnet.py",
"py/iopaint/model/power_paint/power_paint.py",
"py/iopaint/model/power_paint/powerpaint_tokenizer.py",
"py/iopaint/model/sd.py",
"py/iopaint/model/sdxl.py",
"py/iopaint/model/utils.py",
"py/iopaint/model/zits.py",
"py/iopaint/model_info.py",
"py/iopaint/model_manager.py",
"py/iopaint/plugins/__init__.py",
"py/iopaint/plugins/anime_seg.py",
"py/iopaint/plugins/base_plugin.py",
"py/iopaint/plugins/briarmbg.py",
"py/iopaint/plugins/gfpgan_plugin.py",
"py/iopaint/plugins/gfpganer.py",
"py/iopaint/plugins/interactive_seg.py",
"py/iopaint/plugins/realesrgan.py",
"py/iopaint/plugins/remove_bg.py",
"py/iopaint/plugins/restoreformer.py",
"py/iopaint/plugins/segment_anything/__init__.py",
"py/iopaint/plugins/segment_anything/build_sam.py",
"py/iopaint/plugins/segment_anything/modeling/__init__.py",
"py/iopaint/plugins/segment_anything/modeling/common.py",
"py/iopaint/plugins/segment_anything/modeling/image_encoder.py",
"py/iopaint/plugins/segment_anything/modeling/image_encoder_hq.py",
"py/iopaint/plugins/segment_anything/modeling/mask_decoder.py",
"py/iopaint/plugins/segment_anything/modeling/prompt_encoder.py",
"py/iopaint/plugins/segment_anything/modeling/sam.py",
"py/iopaint/plugins/segment_anything/modeling/sam_hq.py",
"py/iopaint/plugins/segment_anything/modeling/tiny_vit_sam.py",
"py/iopaint/plugins/segment_anything/modeling/transformer.py",
"py/iopaint/plugins/segment_anything/predictor.py",
"py/iopaint/plugins/segment_anything/predictor_hq.py",
"py/iopaint/plugins/segment_anything/utils/__init__.py",
"py/iopaint/plugins/segment_anything/utils/transforms.py",
"py/iopaint/runtime.py",
"py/iopaint/schema.py",
"py/iopaint/tests/__init__.py",
"py/iopaint/tests/test_adjust_mask.py",
"py/iopaint/tests/test_anytext.py",
"py/iopaint/tests/test_controlnet.py",
"py/iopaint/tests/test_instruct_pix2pix.py",
"py/iopaint/tests/test_load_img.py",
"py/iopaint/tests/test_low_mem.py",
"py/iopaint/tests/test_match_histograms.py",
"py/iopaint/tests/test_model.py",
"py/iopaint/tests/test_model_md5.py",
"py/iopaint/tests/test_model_switch.py",
"py/iopaint/tests/test_outpainting.py",
"py/iopaint/tests/test_paint_by_example.py",
"py/iopaint/tests/test_plugins.py",
"py/iopaint/tests/test_save_exif.py",
"py/iopaint/tests/test_sd_model.py",
"py/iopaint/tests/test_sdxl.py",
"py/iopaint/tests/utils.py",
"py/iopaint/web_app/assets/Inter-Black-jiII8dog.woff2",
"py/iopaint/web_app/assets/Inter-BlackItalic-1413vuen.woff2",
"py/iopaint/web_app/assets/Inter-Bold-srYz_-1B.woff2",
"py/iopaint/web_app/assets/Inter-BoldItalic-dE_gZyur.woff2",
"py/iopaint/web_app/assets/Inter-ExtraBold-TduDdwUu.woff2",
"py/iopaint/web_app/assets/Inter-ExtraBoldItalic-BJafRE5I.woff2",
"py/iopaint/web_app/assets/Inter-ExtraLight-w5HAp5iF.woff2",
"py/iopaint/web_app/assets/Inter-ExtraLightItalic-ZptecSuc.woff2",
"py/iopaint/web_app/assets/Inter-Italic-f6M78thn.woff2",
"py/iopaint/web_app/assets/Inter-Light-DFhX0qo-.woff2",
"py/iopaint/web_app/assets/Inter-LightItalic-fu56_DRc.woff2",
"py/iopaint/web_app/assets/Inter-Medium-dDRaJ8tM.woff2",
"py/iopaint/web_app/assets/Inter-MediumItalic-zr3roggP.woff2",
"py/iopaint/web_app/assets/Inter-Regular-dEFHw1tF.woff2",
"py/iopaint/web_app/assets/Inter-SemiBold-PyS8DO2L.woff2",
"py/iopaint/web_app/assets/Inter-SemiBoldItalic-uIDb7hsH.woff2",
"py/iopaint/web_app/assets/Inter-Thin-eKObIkJC.woff2",
"py/iopaint/web_app/assets/Inter-ThinItalic-L6uBn3RP.woff2",
"py/iopaint/web_app/assets/index-8BlaS7ws.js",
"py/iopaint/web_app/assets/index-CXO-mkQB.js",
"py/iopaint/web_app/assets/index-NQyCh9rO.js",
"py/iopaint/web_app/assets/index-QuEBEP4v.js",
"py/iopaint/web_app/assets/index-TI-UMrGI.js",
"py/iopaint/web_app/assets/index-Tqq3L7kY.js",
"py/iopaint/web_app/assets/index-UXaKiZjP.css",
"py/iopaint/web_app/assets/index-_6nUWG_P.js",
"py/iopaint/web_app/assets/index-c6LmMFap.js",
"py/iopaint/web_app/assets/index-hrusMZZs.js",
"py/iopaint/web_app/assets/index-iK_rIxV0.css",
"py/iopaint/web_app/assets/index-kS3ik1bw.js",
"py/iopaint/web_app/assets/index-p0ivNJpo.css",
"py/iopaint/web_app/assets/index-qFliSBYV.js",
"py/iopaint/web_app/assets/kofi_button_black-XI_Dr2zg.png",
"py/iopaint/web_app/index.html",
"py/iopaint/web_config.py",
"py/joycaption_alpha_2.py",
"py/joycaption_beta_1.py",
"py/lama.py",
"py/llama_vision.py",
"py/loadpsd.py",
"py/local_groundingdino/datasets/__init__.py",
"py/local_groundingdino/datasets/transforms.py",
"py/local_groundingdino/models/GroundingDINO/__init__.py",
"py/local_groundingdino/models/GroundingDINO/backbone/__init__.py",
"py/local_groundingdino/models/GroundingDINO/backbone/backbone.py",
"py/local_groundingdino/models/GroundingDINO/backbone/position_encoding.py",
"py/local_groundingdino/models/GroundingDINO/backbone/swin_transformer.py",
"py/local_groundingdino/models/GroundingDINO/bertwarper.py",
"py/local_groundingdino/models/GroundingDINO/fuse_modules.py",
"py/local_groundingdino/models/GroundingDINO/groundingdino.py",
"py/local_groundingdino/models/GroundingDINO/ms_deform_attn.py",
"py/local_groundingdino/models/GroundingDINO/transformer.py",
"py/local_groundingdino/models/GroundingDINO/transformer_vanilla.py",
"py/local_groundingdino/models/GroundingDINO/utils.py",
"py/local_groundingdino/models/__init__.py",
"py/local_groundingdino/models/registry.py",
"py/local_groundingdino/util/__init__.py",
"py/local_groundingdino/util/box_ops.py",
"py/local_groundingdino/util/get_tokenlizer.py",
"py/local_groundingdino/util/inference.py",
"py/local_groundingdino/util/misc.py",
"py/local_groundingdino/util/slconfig.py",
"py/local_groundingdino/util/slio.py",
"py/local_groundingdino/util/utils.py",
"py/mask_by_different.py",
"py/mediapipe_facial_segment.py",
"py/object_detector.py",
"py/person_mask_Ultra.py",
"py/person_mask_ultra_v2.py",
"py/phi_nodes.py",
"py/prompt_embellish.py",
"py/prompt_tagger.py",
"py/qrcode.py",
"py/sam2/__init__.py",
"py/sam2/automatic_mask_generator.py",
"py/sam2/modeling/__init__.py",
"py/sam2/modeling/backbones/__init__.py",
"py/sam2/modeling/backbones/hieradet.py",
"py/sam2/modeling/backbones/image_encoder.py",
"py/sam2/modeling/backbones/utils.py",
"py/sam2/modeling/memory_attention.py",
"py/sam2/modeling/memory_encoder.py",
"py/sam2/modeling/position_encoding.py",
"py/sam2/modeling/sam/__init__.py",
"py/sam2/modeling/sam/mask_decoder.py",
"py/sam2/modeling/sam/prompt_encoder.py",
"py/sam2/modeling/sam/transformer.py",
"py/sam2/modeling/sam2_base.py",
"py/sam2/modeling/sam2_utils.py",
"py/sam2/sam2_configs/__init__.py",
"py/sam2/sam2_configs/sam2.1_hiera_b+.yaml",
"py/sam2/sam2_configs/sam2.1_hiera_l.yaml",
"py/sam2/sam2_configs/sam2.1_hiera_s.yaml",
"py/sam2/sam2_configs/sam2.1_hiera_t.yaml",
"py/sam2/sam2_configs/sam2_hiera_b+.yaml",
"py/sam2/sam2_configs/sam2_hiera_l.yaml",
"py/sam2/sam2_configs/sam2_hiera_s.yaml",
"py/sam2/sam2_configs/sam2_hiera_t.yaml",
"py/sam2/sam2_image_predictor.py",
"py/sam2/sam2_video_predictor.py",
"py/sam2/utils/__init__.py",
"py/sam2/utils/amg.py",
"py/sam2/utils/misc.py",
"py/sam2/utils/transforms.py",
"py/sam_2_ultra.py",
"py/sam_hq/automatic.py",
"py/sam_hq/build_sam_hq.py",
"py/sam_hq/modeling/image_encoder.py",
"py/sam_hq/modeling/mask_decoder_hq.py",
"py/sam_hq/modeling/tiny_vit.py",
"py/sam_hq/predictor.py",
"py/save_image_plus.py",
"py/sd3_negative_conditioning.py",
"py/segment_anything_func.py",
"py/segment_anything_ultra.py",
"py/segment_anything_ultra_v2.py",
"py/segment_anything_ultra_v3.py",
"py/smol.py",
"py/transparent_background_ultra.py",
"py/user_prompt_generator.py",
"py/watermark.py",
"py/yolov8_detect.py",
"py/zhipu_glm4.py",
"pyproject.toml",
"repair_dependency.bat",
"repair_dependency_aki.bat",
"repair_dependency_list.txt",
"requirements.txt",
"resource_dir.ini.example",
"whl/docopt-0.6.2-py2.py3-none-any.whl",
"whl/hydra_core-1.3.2-py3-none-any.whl",
"workflow/1280x720_seven_person.jpg",
"workflow/1280x720car.jpg",
"workflow/1280x768_city.png",
"workflow/1344x768_beach.png",
"workflow/1344x768_girl2.png",
"workflow/1344x768_hair.png",
"workflow/1344x768_redcar.png",
"workflow/1920x1080table.png",
"workflow/3840x2160car.jpg",
"workflow/512x512.png",
"workflow/512x512bkgd.jpg",
"workflow/768x1344_beach.png",
"workflow/768x1344_dress.png",
"workflow/collage_example.json",
"workflow/deepseek_api_example.json",
"workflow/draw_bbox_mask_example.json",
"workflow/draw_bbox_mask_v2_example.json",
"workflow/florence2_image2prompt_example.json",
"workflow/florence2_ultra_example.json",
"workflow/fox_512x512.png",
"workflow/gemini_example.json",
"workflow/gemini_image_edit_example.json",
"workflow/get_color_tone_v2_example.json",
"workflow/get_main_color_and_color_name_example.json",
"workflow/girl_dino_1024.png",
"workflow/image_reward_filter_example.json",
"workflow/joycaption2_example.json",
"workflow/lama_example.json",
"workflow/phi_prompt_example.json",
"workflow/prompt_embellish_example.json",
"workflow/prompt_tagger_example.json",
"workflow/sam2_ultra_example.json",
"workflow/sam2_video_ultra_example.json",
"workflow/sd3_negative_conditioning.json",
"workflow/ultra_v2_nodes_example.json",
"workflow/watermark_example.json",
"workflow/zhipu_glm4_example.json"
]

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