HEL-892: document source-bound Flux2 Klein image editing reference
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -15,6 +15,9 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
|
||||
|
||||
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
|
||||
DEFINITIONS = {
|
||||
(
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json"
|
||||
): "41d23655c4c543bf6da2a46746876d78b1ff5597a66b9df1d5cf19104c936718",
|
||||
(
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json"
|
||||
): "067aece04eb31b8e2950c88b4c2da96630282512856a3ceb71768df1cc6fccbe",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,202 @@
|
||||
"Flux2 editorial source binding, distinct saved states and unchanged eligibility."
|
||||
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
import runpy
|
||||
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/flux2-img-document-evidence"
|
||||
PATH = "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json"
|
||||
RAW = (REPO / PATH).read_bytes()
|
||||
SOURCE = json.loads(RAW)
|
||||
REVIEW = review_for(PATH, hashlib.sha1(RAW).hexdigest())
|
||||
BLOCK = REVIEW["fixed_version_document"]
|
||||
|
||||
|
||||
def pointer(obj, p):
|
||||
for part in p.strip("/").split("/"):
|
||||
obj = obj[int(part)] if isinstance(obj, list) else obj[part]
|
||||
return obj
|
||||
|
||||
|
||||
def doc(s=SOURCE, r=REVIEW):
|
||||
return build_document(PATH, s, None, None, [], r)
|
||||
|
||||
|
||||
def refuse(s, r):
|
||||
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
|
||||
assert not doc(s, r)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
def test_every_saved_position_json_type_and_exact_citations(f):
|
||||
assert canonical(pointer(SOURCE, f["pointer"])) == canonical(f["value"])
|
||||
assert type(pointer(SOURCE, f["pointer"])).__name__ == f["json_type"]
|
||||
assert "named_value" not in f and "无widgets_values_named" in f["named_pointer"]
|
||||
if f["input_pointer"].startswith("/"):
|
||||
assert pointer(SOURCE, f["input_pointer"])["name"] == f["input_name"]
|
||||
for i in f["evidence"]:
|
||||
e = BLOCK["sources"][i]
|
||||
raw = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
@pytest.mark.parametrize("variant", ["position", "editorial"])
|
||||
def test_caller_rehash_cannot_expand_trust(f, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
if variant == "editorial":
|
||||
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
|
||||
else:
|
||||
parent, _, key = f["pointer"].rpartition("/")
|
||||
pointer(s, parent)[int(key)] = "forged"
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("index", range(25))
|
||||
@pytest.mark.parametrize("variant", ["mode", "identity", "named"])
|
||||
def test_all_nodes_bound(index, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
n = s["nodes"][index]
|
||||
if variant == "mode":
|
||||
n["mode"] = 0 if n["mode"] == 4 else 4
|
||||
elif variant == "identity":
|
||||
n["properties"]["ver"] = "forged"
|
||||
else:
|
||||
n["widgets_values_named"] = {"forged": 0}
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("index", range(31))
|
||||
def test_all_edges_bound(index):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
s["links"][index][3] = 9999
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("node", [103, 141, 140, 139, 104, 143, 136, 135])
|
||||
@pytest.mark.parametrize("variant", ["missing", "empty", "null", "added"])
|
||||
def test_missing_empty_null_distinct(node, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
n = next(n for n in s["nodes"] if n["id"] == node)
|
||||
old = copy.deepcopy(n)
|
||||
if variant == "missing":
|
||||
n.pop("widgets_values", None)
|
||||
else:
|
||||
n["widgets_values"] = {"empty": [], "null": None, "added": [0]}[variant]
|
||||
if n != old:
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"variant",
|
||||
["overview", "citation", "sha", "frontend", "counts", "tab", "ue", "unconnected-output"],
|
||||
)
|
||||
def test_metadata_and_unconnected_branch_bound(variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
b = r["fixed_version_document"]
|
||||
if variant == "overview":
|
||||
b["user_overview"] = "forged"
|
||||
elif variant == "citation":
|
||||
b["sources"][0]["sha256"] = "forged"
|
||||
elif variant == "sha":
|
||||
r["source_sha"] = "forged"
|
||||
elif variant == "frontend":
|
||||
s["extra"]["frontendVersion"] = "1.52.7"
|
||||
elif variant == "counts":
|
||||
b["counts"]["final_prompt_constructed"] = True
|
||||
elif variant == "tab":
|
||||
s["nodes"][0]["properties"]["tabWidth"] = 99
|
||||
elif variant == "ue":
|
||||
s["nodes"][0]["properties"]["ue_properties"]["version"] = "7.8"
|
||||
else:
|
||||
next(n for n in s["nodes"] if n["id"] == 103)["outputs"][1]["links"] = [999]
|
||||
assert not doc(s, r)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
def test_actual_document_overrides_and_status():
|
||||
b = runpy.run_path(str(OUT / "build_definition.py"))["build"]()
|
||||
assert canonical(b) == canonical(BLOCK)
|
||||
assert len(DEFINITIONS) == 47 and len(b["fields"]) == 36 and len(b["comments"]) == 1
|
||||
assert sum(f["role"] == "linked_saved_cache" for f in b["fields"]) == 6
|
||||
assert sum(f["role"] == "frontend_reference_only" for f in b["fields"]) == 3
|
||||
f = {(x["node_id"], x["field"]): x for x in b["fields"]}
|
||||
assert f["102", "cfg"]["json_type"] == "int"
|
||||
assert f["101", "steps"]["limits"] == "1~4096"
|
||||
assert f["144", "custom_width"]["limits"].startswith("64~8192,step1")
|
||||
assert f["144", "use_custom_resolution"]["value"] is False
|
||||
assert f["108", "text"]["value"] == "将人物换成欧美人"
|
||||
assert f["109", "text"]["value"] == ""
|
||||
assert f["146", "pad_color"]["value"] == "0, 0, 0"
|
||||
history = f["145", "rgthree_comparer"]
|
||||
assert history["json_type"] == "list" and len(history["value"]) == 2
|
||||
assert history["value"] == SOURCE["nodes"][15]["widgets_values"][0]
|
||||
assert BLOCK["comments"][0]["text"] == SOURCE["nodes"][0]["widgets_values"][0]
|
||||
assert len(BLOCK["comments"][0]["text"]) == 1396
|
||||
d = doc()
|
||||
assert d["fixed_version"]["matched"]
|
||||
assert not d["status"]["doc_done"] and not d["status"]["exec_verified"]
|
||||
assert hashlib.sha256(canonical(BLOCK)).hexdigest() == DEFINITIONS[PATH]
|
||||
for term in [
|
||||
"mode4",
|
||||
"1.36.13",
|
||||
"0.21.1",
|
||||
"无LICENSE",
|
||||
"四处1024",
|
||||
"B直接来自76",
|
||||
"无IMAGE出口",
|
||||
"Git绑定未知",
|
||||
]:
|
||||
assert term in "\n".join(b["flow"] + b["versions"])
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"variant", ["note", "nested-history", "slide", "clipspace", "label-identity", "lora-mode"]
|
||||
)
|
||||
def test_complete_history_note_and_independent_identity_bound(variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
ns = {n["id"]: n for n in s["nodes"]}
|
||||
if variant == "note":
|
||||
ns[97]["widgets_values"][0] += "forged"
|
||||
elif variant == "nested-history":
|
||||
ns[145]["widgets_values"][0][1]["url"] = "forged"
|
||||
elif variant == "slide":
|
||||
ns[145]["properties"]["comparer_mode"] = "Click"
|
||||
elif variant == "clipspace":
|
||||
ns[76]["properties"]["image"] = "forged"
|
||||
elif variant == "label-identity":
|
||||
ns[143]["properties"]["cnr_id"] = "rgthree-comfy"
|
||||
else:
|
||||
ns[142]["mode"] = 0
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
def test_physical_topology_and_exact_version_schema_conflicts():
|
||||
ns = {n["id"]: n for n in SOURCE["nodes"]}
|
||||
edges = {(a, b, c, d, e) for _, a, b, c, d, e in SOURCE["links"]}
|
||||
for edge in [
|
||||
(104, 0, 145, 0, "IMAGE"),
|
||||
(76, 0, 145, 1, "IMAGE"),
|
||||
(141, 0, 140, 1, "LATENT"),
|
||||
(141, 0, 139, 1, "LATENT"),
|
||||
(111, 0, 103, 4, "LATENT"),
|
||||
(146, 1, 135, 0, "INT"),
|
||||
(146, 2, 136, 0, "INT"),
|
||||
]:
|
||||
assert edge in edges
|
||||
assert ns[76]["outputs"][1]["links"] is None
|
||||
assert ns[146]["inputs"][1]["link"] is None
|
||||
assert ns[146]["outputs"][3]["links"] == []
|
||||
assert ns[142]["mode"] == 4 and ns[103]["outputs"][1]["links"] == []
|
||||
assert ns[9]["outputs"][0]["type"] == "IMAGE"
|
||||
assert "RETURN_TYPES = ()" in (OUT.parent / "flux2-img-reference/core__nodes.py").read_text()
|
||||
assert {e["tag"] for e in BLOCK["sources"] if e["id"] == "frontend"} == {"v1.36.13"}
|
||||
assert {e["tag"] for e in BLOCK["sources"] if e["id"] == "lora"} == {"v0.21.1"}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,45 @@
|
||||
"Select necessary additional exact core text, without executing it."
|
||||
|
||||
import datetime
|
||||
import hashlib
|
||||
import json
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
REF = Path(__file__).resolve().parent.parent / "flux2-img-reference"
|
||||
|
||||
|
||||
def main():
|
||||
d = json.loads((REF / "sources.json").read_bytes())
|
||||
for key, files in [
|
||||
("core", ["comfy_extras/nodes_edit_model.py", "node_helpers.py", "comfy/utils.py"])
|
||||
]:
|
||||
seed = next(e for e in d["sources"] if e["id"] == key)
|
||||
t = json.loads((REF / (key + "-tree.json")).read_bytes())["tree"]
|
||||
for f in files:
|
||||
if any(e["id"] == key and e["file"] == f for e in d["sources"]):
|
||||
continue
|
||||
url = f"https://raw.githubusercontent.com/{seed['repo']}/{seed['commit']}/{f}"
|
||||
with urllib.request.urlopen(url, timeout=30) as r:
|
||||
raw = r.read(2000001)
|
||||
assert len(raw) < 2000000
|
||||
blob = hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
|
||||
assert next(e["sha"] for e in t if e["path"] == f) == blob
|
||||
name = key + "__" + f.replace("/", "__")
|
||||
(REF / name).write_bytes(raw)
|
||||
d["sources"].append(
|
||||
dict(
|
||||
seed,
|
||||
file=f,
|
||||
local_file=name,
|
||||
url=url,
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
git_blob_sha1=blob,
|
||||
acquisition_time=datetime.datetime.now(datetime.timezone.utc).isoformat(),
|
||||
)
|
||||
)
|
||||
(REF / "sources.json").write_text(json.dumps(d, ensure_ascii=False, indent=2) + "\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -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,2 @@
|
||||
PASS authored Python/JS and rendered report diff whitespace check.
|
||||
Raw upstream text/signatures and acquisition logs preserve original whitespace and are not reformatted.
|
||||
@@ -0,0 +1,11 @@
|
||||
........................................................................ [ 26%]
|
||||
........................................................................ [ 52%]
|
||||
........................................................................ [ 78%]
|
||||
........................................................... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-f34cca1fe852/workdir/aigc-home/calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
275 passed, 1 warning in 4.79s
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"fixed_count": 149,
|
||||
"fixed_paths": {
|
||||
"/api/workflows": 3,
|
||||
"/api/workflows/46": 4,
|
||||
"/api/workflows/45": 4,
|
||||
"/api/workflows/42": 3,
|
||||
"/api/workflows/41": 3,
|
||||
"/api/workflows/40": 3,
|
||||
"/api/workflows/39": 3,
|
||||
"/api/workflows/38": 3,
|
||||
"/api/workflows/37": 3,
|
||||
"/api/workflows/18": 3,
|
||||
"/api/workflows/20": 3,
|
||||
"/api/workflows/30": 3,
|
||||
"/api/workflows/32": 3,
|
||||
"/api/workflows/34": 3,
|
||||
"/api/workflows/33": 3,
|
||||
"/api/workflows/31": 3,
|
||||
"/api/workflows/29": 3,
|
||||
"/api/workflows/28": 3,
|
||||
"/api/workflows/27": 3,
|
||||
"/api/workflows/26": 3,
|
||||
"/api/workflows/17": 3,
|
||||
"/api/workflows/4": 3,
|
||||
"/api/workflows/15": 3,
|
||||
"/api/workflows/11": 3,
|
||||
"/api/workflows/3": 3,
|
||||
"/api/workflows/9": 3,
|
||||
"/api/workflows/16": 3,
|
||||
"/api/workflows/10": 3,
|
||||
"/api/workflows/23": 3,
|
||||
"/api/workflows/8": 3,
|
||||
"/api/workflows/22": 3,
|
||||
"/api/workflows/5": 3,
|
||||
"/api/workflows/6": 3,
|
||||
"/api/workflows/7": 3,
|
||||
"/api/workflows/19": 3,
|
||||
"/api/workflows/13": 3,
|
||||
"/api/workflows/12": 3,
|
||||
"/api/workflows/64": 3,
|
||||
"/api/workflows/62": 3,
|
||||
"/api/workflows/70": 3,
|
||||
"/api/workflows/1": 3,
|
||||
"/api/workflows/36": 3,
|
||||
"/api/workflows/35": 3,
|
||||
"/api/workflows/2": 3,
|
||||
"/api/workflows/25": 3,
|
||||
"/api/workflows/24": 3,
|
||||
"/api/workflows/21": 3,
|
||||
"/api/workflows/14": 3,
|
||||
"/api/settings": 1,
|
||||
"/api/workflows/156": 1,
|
||||
"/api/workflows/157": 1
|
||||
},
|
||||
"polling_count": 12,
|
||||
"polling_paths": {
|
||||
"/api/jobs": 12
|
||||
},
|
||||
"readiness_gets": 1,
|
||||
"detail_fixture_intercepts": 6,
|
||||
"fixed_paths_browser_minus_fixtures_plus_readiness_matches_backend": true,
|
||||
"polling_snapshot_delta": {
|
||||
"/api/jobs": 0,
|
||||
"/api/events": 0
|
||||
},
|
||||
"polling_snapshot_tolerance": 1
|
||||
}
|
||||
@@ -0,0 +1,728 @@
|
||||
{
|
||||
"base": "a7d3167b362734df7eaa1efd2c141f292a878299",
|
||||
"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_forty_six_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"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS browser 1744 {'aggregate': 2, 'new_flux2_img': 624, 'old_forty_six': 1104, 'shared_regressions': 14} fixed/polling/fixture 154 12 6 backend 149 12 readiness1; independently refused8247/5173
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,273 @@
|
||||
|
||||
> calliope-web@1.5.8 build
|
||||
> vite build
|
||||
|
||||
▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
|
||||
|
||||
tsconfig.json:2:12:
|
||||
2 │ "extends": "./.svelte-kit/tsconfig.json",
|
||||
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
vite v6.4.3 building SSR bundle for production...
|
||||
transforming...
|
||||
5:23:51 AM [vite-plugin-svelte] src/routes/workbench/[id]/+page.svelte:345:3 Self-closing HTML tags for non-void elements are ambiguous — use `<div ...></div>` rather than `<div ... />`
|
||||
https://svelte.dev/e/element_invalid_self_closing_tag
|
||||
343: <div class="page-pad">
|
||||
344: <Skeleton height="64px" />
|
||||
345: <div class="gap" />
|
||||
^
|
||||
346: <Skeleton height="280px" />
|
||||
347: </div>
|
||||
5:23:52 AM [vite-plugin-svelte] src/lib/components/workbench/ShotStagePanel.svelte:156:5 `<video>` elements must have a `<track kind="captions">`
|
||||
https://svelte.dev/e/a11y_media_has_caption
|
||||
154: {#if shot.description}<p class="vshot-desc">{shot.description}</p>{/if}
|
||||
155: {#if shot.job?.status === 'done' && shot.job.output}
|
||||
156: <video
|
||||
^
|
||||
157: class="vshot-video"
|
||||
158: src={assetUrl(shot.job.output) ?? undefined}
|
||||
"handleConnectionChange" and "handleAttributionWarning" are imported from external module "@xyflow/system" but never used in "node_modules/@xyflow/svelte/dist/lib/hooks/useNodeConnections.svelte.js", "node_modules/@xyflow/svelte/dist/lib/components/Handle/Handle.svelte" and "node_modules/@xyflow/svelte/dist/lib/components/Attribution/Attribution.svelte".
|
||||
✓ 521 modules transformed.
|
||||
rendering chunks...
|
||||
vite v6.4.3 building for production...
|
||||
transforming...
|
||||
5:23:54 AM [vite-plugin-svelte] src/routes/workbench/[id]/+page.svelte:345:3 Self-closing HTML tags for non-void elements are ambiguous — use `<div ...></div>` rather than `<div ... />`
|
||||
https://svelte.dev/e/element_invalid_self_closing_tag
|
||||
343: <div class="page-pad">
|
||||
344: <Skeleton height="64px" />
|
||||
345: <div class="gap" />
|
||||
^
|
||||
346: <Skeleton height="280px" />
|
||||
347: </div>
|
||||
5:23:54 AM [vite-plugin-svelte] src/lib/components/workbench/ShotStagePanel.svelte:156:5 `<video>` elements must have a `<track kind="captions">`
|
||||
https://svelte.dev/e/a11y_media_has_caption
|
||||
154: {#if shot.description}<p class="vshot-desc">{shot.description}</p>{/if}
|
||||
155: {#if shot.job?.status === 'done' && shot.job.output}
|
||||
156: <video
|
||||
^
|
||||
157: class="vshot-video"
|
||||
158: src={assetUrl(shot.job.output) ?? undefined}
|
||||
✓ 763 modules transformed.
|
||||
rendering chunks...
|
||||
computing gzip size...
|
||||
.svelte-kit/output/client/_app/version.json 0.03 kB │ gzip: 0.05 kB
|
||||
.svelte-kit/output/client/.vite/manifest.json 26.73 kB │ gzip: 3.24 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/Icon.BrXLPzfy.css 0.08 kB │ gzip: 0.10 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/12.IyyrLGyK.css 0.22 kB │ gzip: 0.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/6.C62bpzl4.css 0.22 kB │ gzip: 0.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/LanguageSwitcher.BHCsXcey.css 0.33 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/Skeleton.BQeWIsLh.css 0.39 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/SafeMedia.CBqd7Keo.css 0.54 kB │ gzip: 0.34 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/EmptyState.BXjpyO2u.css 0.58 kB │ gzip: 0.31 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/Spinner.us8fwMZC.css 0.73 kB │ gzip: 0.37 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ConfirmDialog.DOfiQL0c.css 0.91 kB │ gzip: 0.38 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ProgressBar.DG8dH-U_.css 1.44 kB │ gzip: 0.58 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/18.DG2SembM.css 1.87 kB │ gzip: 0.70 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ImageLightbox.BK2SuPZK.css 2.20 kB │ gzip: 0.72 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/10.-McisAlK.css 4.49 kB │ gzip: 1.20 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/15.Do7_3xO3.css 4.84 kB │ gzip: 1.32 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ComfyDynamicForm.BMZDOzpt.css 4.86 kB │ gzip: 1.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/16.D3s-Wa9z.css 5.02 kB │ gzip: 1.31 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/AgentComposer.ub9gqAax.css 6.39 kB │ gzip: 1.59 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/4.D4ArXiOU.css 10.48 kB │ gzip: 2.23 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/11.CkE-wdAx.css 10.49 kB │ gzip: 2.33 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/3.CU9FCfPU.css 10.86 kB │ gzip: 2.39 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/AgentChat.DoddhUHp.css 11.39 kB │ gzip: 2.53 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/AppShell.BDTKT42t.css 12.74 kB │ gzip: 2.91 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/5.CYAHcbnz.css 15.04 kB │ gzip: 3.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/0.DtQ4sRph.css 19.40 kB │ gzip: 4.66 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/StudioGenerate.DLzq3T0v.css 21.08 kB │ gzip: 4.13 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/19.DdIn3xwb.css 22.49 kB │ gzip: 3.73 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/8.F76ywLuB.css 28.78 kB │ gzip: 5.24 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/7._yLDI1qf.css 31.71 kB │ gzip: 5.43 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/5.DUJAhBNk.js 0.09 kB │ gzip: 0.10 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Bzak7iHL.js 0.10 kB │ gzip: 0.10 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DTQKaZHR.js 0.10 kB │ gzip: 0.11 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/IKQcdn9t.js 0.12 kB │ gzip: 0.12 kB
|
||||
.svelte-kit/output/client/_app/immutable/entry/start.0cpYik7r.js 0.12 kB │ gzip: 0.11 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/B0XwC4Ot.js 0.15 kB │ gzip: 0.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/17.D_TTyWKp.js 0.16 kB │ gzip: 0.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/9.D-CqW3ih.js 0.16 kB │ gzip: 0.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BsCRBkET.js 0.18 kB │ gzip: 0.16 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/PLPYKeY9.js 0.19 kB │ gzip: 0.17 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/CI9jXNKC.js 0.19 kB │ gzip: 0.16 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/CVj6wr1L.js 0.19 kB │ gzip: 0.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/14.DzhME1wO.js 0.23 kB │ gzip: 0.21 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DkrMbCO4.js 0.23 kB │ gzip: 0.18 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/13.d8cRwCTU.js 0.24 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/jbvGh2cr.js 0.26 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DuR33ltU.js 0.28 kB │ gzip: 0.19 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/LOG_p0wv.js 0.29 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/2.Ci99xY2P.js 0.37 kB │ gzip: 0.25 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BqqYkBFO.js 0.37 kB │ gzip: 0.26 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/1.DSSs8Wxn.js 0.40 kB │ gzip: 0.28 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/C9dRlz4w.js 0.46 kB │ gzip: 0.30 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DizlLVgY.js 0.47 kB │ gzip: 0.34 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BkYbArkN.js 0.49 kB │ gzip: 0.34 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/-UyI9lYi.js 0.51 kB │ gzip: 0.30 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/D41pZ3kD.js 0.56 kB │ gzip: 0.32 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/O29yiedF.js 0.61 kB │ gzip: 0.36 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/D8EAmlG6.js 0.62 kB │ gzip: 0.36 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BXakyGcx.js 0.71 kB │ gzip: 0.43 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/0jsz6oxm.js 0.75 kB │ gzip: 0.42 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BzVl9ZHh.js 0.83 kB │ gzip: 0.42 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/f7zKxHYB.js 0.84 kB │ gzip: 0.45 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BpPWQjN7.js 0.92 kB │ gzip: 0.44 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/B_dFkj9f.js 1.08 kB │ gzip: 0.61 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/12.B6LCScdD.js 1.18 kB │ gzip: 0.71 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Dp1pzeXC.js 1.27 kB │ gzip: 0.73 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/6.DWHtQ_6z.js 1.29 kB │ gzip: 0.76 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/wbPk3Yxo.js 1.37 kB │ gzip: 0.66 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DroLD1Vd.js 1.48 kB │ gzip: 0.78 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DvVbqmqL.js 1.49 kB │ gzip: 0.75 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/CsZu1OVr.js 2.00 kB │ gzip: 1.06 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/C6NPzxMU.js 2.24 kB │ gzip: 0.99 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DBfOsHAR.js 2.77 kB │ gzip: 1.28 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Cfp5XeNU.js 2.94 kB │ gzip: 1.24 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/tTl_1iKp.js 3.08 kB │ gzip: 1.57 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DY6GL6X4.js 3.23 kB │ gzip: 1.55 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/18.DxQzPuIh.js 3.50 kB │ gzip: 1.69 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/-yw0ATYa.js 4.27 kB │ gzip: 1.52 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Dwm6yq4L.js 5.19 kB │ gzip: 2.50 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Bn-IQ-PY.js 5.29 kB │ gzip: 2.16 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/iHZ2qTtC.js 6.86 kB │ gzip: 3.09 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/B0Wlifky.js 9.22 kB │ gzip: 2.13 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/16.CaKGIrXt.js 10.26 kB │ gzip: 3.94 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Dq0gzhJg.js 10.98 kB │ gzip: 4.12 kB
|
||||
.svelte-kit/output/client/_app/immutable/entry/app.BvRPGTMd.js 11.97 kB │ gzip: 4.02 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/0.CcvzD77g.js 12.03 kB │ gzip: 4.41 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/10.DluAjZUF.js 16.63 kB │ gzip: 6.09 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/b4rAb54u.js 16.64 kB │ gzip: 6.28 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BJXZgoNf.js 17.38 kB │ gzip: 6.37 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/kyNCFls4.js 20.28 kB │ gzip: 7.19 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/15.BA_ZGxht.js 23.02 kB │ gzip: 7.51 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/D6DmN0nT.js 23.98 kB │ gzip: 9.32 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/11.D2Q-R-Ej.js 24.95 kB │ gzip: 8.35 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/3.BCiRA0YT.js 25.68 kB │ gzip: 8.33 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/4.CH2FLYFx.js 29.61 kB │ gzip: 10.00 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/SBMx5f2U.js 33.93 kB │ gzip: 13.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/6-Bpd0iK.js 38.54 kB │ gzip: 13.86 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/CPluiqx0.js 41.30 kB │ gzip: 15.68 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/19.DoIE3Xcu.js 52.59 kB │ gzip: 14.34 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BbmTSwTk.js 71.50 kB │ gzip: 26.91 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/CmQmuetT.js 81.38 kB │ gzip: 27.49 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/8.DbcXeJP-.js 86.49 kB │ gzip: 28.96 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/7.C3cBHaqV.js 214.51 kB │ gzip: 69.05 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BsrzHLJP.js 684.82 kB │ gzip: 180.09 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/2QcV1iOV.js 720.35 kB │ gzip: 209.00 kB
|
||||
|
||||
(!) Some chunks are larger than 500 kB after minification. Consider:
|
||||
- Using dynamic import() to code-split the application
|
||||
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
|
||||
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
|
||||
✓ built in 3.53s
|
||||
.svelte-kit/output/server/.vite/manifest.json 23.36 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/Icon.BrXLPzfy.css 0.08 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.C62bpzl4.css 0.22 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.IyyrLGyK.css 0.22 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/LanguageSwitcher.BHCsXcey.css 0.33 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/Skeleton.BQeWIsLh.css 0.39 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/SafeMedia.CBqd7Keo.css 0.54 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/EmptyState.BXjpyO2u.css 0.58 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/Spinner.us8fwMZC.css 0.73 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/ConfirmDialog.C_pBcjz1.css 0.89 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/ProgressBar.DG8dH-U_.css 1.44 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.DG2SembM.css 1.87 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/ImageLightbox.Mjqtht7n.css 2.18 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.CxLkc7AF.css 3.49 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.-McisAlK.css 4.49 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/RefImageGrid.Cg0JH9u1.css 4.86 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.D3s-Wa9z.css 5.02 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/AgentComposer.BeAeVWGq.css 6.34 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.DH5AEk6F.css 9.35 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.Bra3CMMT.css 10.42 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.BUR6RoLt.css 10.46 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.0zMz792f.css 10.78 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/AgentChat.C1veD2Ar.css 11.37 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/AppShell.ymPBcNjP.css 12.64 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_layout.B1MJuaEd.css 19.33 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/StudioGenerate.pbw6ZUUi.css 20.96 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.DdIn3xwb.css 22.49 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.Bs4Fx5Yn.css 28.74 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.BC6N9k4h.css 31.67 kB
|
||||
.svelte-kit/output/server/entries/pages/_layout.ts.js 0.06 kB
|
||||
.svelte-kit/output/server/entries/pages/agents/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/library/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/models/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/settings/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_id_/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/_page.ts.js 0.12 kB
|
||||
.svelte-kit/output/server/entries/hooks.server.js 0.13 kB
|
||||
.svelte-kit/output/server/chunks/wideLayout.js 0.15 kB
|
||||
.svelte-kit/output/server/entries/pages/build-scene/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_id_/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/playground/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/projects/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/image/_page.svelte.js 0.20 kB
|
||||
.svelte-kit/output/server/entries/pages/video/_page.svelte.js 0.20 kB
|
||||
.svelte-kit/output/server/entries/pages/project/_id_/_page.ts.js 0.20 kB
|
||||
.svelte-kit/output/server/chunks/index-server.js 0.22 kB
|
||||
.svelte-kit/output/server/env.js 0.23 kB
|
||||
.svelte-kit/output/server/chunks/client.js 0.31 kB
|
||||
.svelte-kit/output/server/chunks/index-server2.js 0.31 kB
|
||||
.svelte-kit/output/server/internal.js 0.35 kB
|
||||
.svelte-kit/output/server/entries/fallbacks/error.svelte.js 0.35 kB
|
||||
.svelte-kit/output/server/chunks/state.svelte.js 0.45 kB
|
||||
.svelte-kit/output/server/chunks/Skeleton.js 0.48 kB
|
||||
.svelte-kit/output/server/chunks/Spinner.js 0.52 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_id_/_layout.svelte.js 0.55 kB
|
||||
.svelte-kit/output/server/chunks/index2.js 0.57 kB
|
||||
.svelte-kit/output/server/chunks/server.js 0.62 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_page.svelte.js 0.66 kB
|
||||
.svelte-kit/output/server/entries/pages/playground/_page.svelte.js 0.67 kB
|
||||
.svelte-kit/output/server/chunks/utils2.js 0.72 kB
|
||||
.svelte-kit/output/server/chunks/ids.js 0.77 kB
|
||||
.svelte-kit/output/server/chunks/Icon.svelte_svelte_type_style_lang.js 0.86 kB
|
||||
.svelte-kit/output/server/chunks/endpointKind.js 0.95 kB
|
||||
.svelte-kit/output/server/chunks/createMutation.js 1.03 kB
|
||||
.svelte-kit/output/server/chunks/EmptyState.js 1.04 kB
|
||||
.svelte-kit/output/server/chunks/toast.js 1.14 kB
|
||||
.svelte-kit/output/server/chunks/context.js 1.20 kB
|
||||
.svelte-kit/output/server/chunks/LanguageSwitcher.js 1.36 kB
|
||||
.svelte-kit/output/server/chunks/AppShell.svelte_svelte_type_style_lang.js 1.46 kB
|
||||
.svelte-kit/output/server/chunks/SafeMedia.js 1.65 kB
|
||||
.svelte-kit/output/server/chunks/ProgressBar.js 1.88 kB
|
||||
.svelte-kit/output/server/chunks/useUpload.svelte.js 2.16 kB
|
||||
.svelte-kit/output/server/chunks/takeDelete.svelte.js 2.57 kB
|
||||
.svelte-kit/output/server/chunks/index3.js 2.77 kB
|
||||
.svelte-kit/output/server/entries/pages/_layout.svelte.js 3.08 kB
|
||||
.svelte-kit/output/server/chunks/ConfirmDialog.js 3.25 kB
|
||||
.svelte-kit/output/server/chunks/internal.js 3.79 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_page.svelte.js 4.93 kB
|
||||
.svelte-kit/output/server/chunks/exports.js 5.54 kB
|
||||
.svelte-kit/output/server/chunks/Icon.js 6.04 kB
|
||||
.svelte-kit/output/server/entries/pages/agents/_page.svelte.js 7.88 kB
|
||||
.svelte-kit/output/server/entries/pages/tasks/_page.svelte.js 13.44 kB
|
||||
.svelte-kit/output/server/entries/pages/settings/_page.svelte.js 15.12 kB
|
||||
.svelte-kit/output/server/chunks/LanguageSwitcher.svelte_svelte_type_style_lang.js 16.32 kB
|
||||
.svelte-kit/output/server/entries/pages/library/_page.svelte.js 19.77 kB
|
||||
.svelte-kit/output/server/entries/pages/_page.svelte.js 25.48 kB
|
||||
.svelte-kit/output/server/chunks/RefImageGrid.js 25.96 kB
|
||||
.svelte-kit/output/server/chunks/root.js 29.43 kB
|
||||
.svelte-kit/output/server/chunks/AgentComposer.js 34.01 kB
|
||||
.svelte-kit/output/server/chunks/utils.js 34.14 kB
|
||||
.svelte-kit/output/server/entries/pages/models/_page.svelte.js 36.24 kB
|
||||
.svelte-kit/output/server/remote-entry.js 36.81 kB
|
||||
.svelte-kit/output/server/chunks/AppShell.js 39.27 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_id_/_page.svelte.js 50.91 kB
|
||||
.svelte-kit/output/server/entries/pages/build-scene/_page.svelte.js 51.30 kB
|
||||
.svelte-kit/output/server/chunks/StudioGenerate.js 99.49 kB
|
||||
.svelte-kit/output/server/chunks/index.js 101.49 kB
|
||||
.svelte-kit/output/server/index.js 130.14 kB
|
||||
.svelte-kit/output/server/entries/pages/connections/_page.svelte.js 132.44 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_id_/_page.svelte.js 145.51 kB
|
||||
.svelte-kit/output/server/chunks/i18n.svelte.js 786.88 kB
|
||||
✓ built in 6.56s
|
||||
|
||||
Run npm run preview to preview your production build locally.
|
||||
|
||||
> Using @sveltejs/adapter-static
|
||||
Wrote site to "build"
|
||||
✔ done
|
||||
@@ -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,826 @@
|
||||
"Independent single-graph editorial definition; never evaluate upstream code."
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
REPO = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "flux2-img-reference"
|
||||
PATHS = [("example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json")]
|
||||
|
||||
|
||||
def canonical(v):
|
||||
return json.dumps(v, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
|
||||
|
||||
|
||||
def build(index=0):
|
||||
raw = (REPO / PATHS[index]).read_bytes()
|
||||
g = json.loads(raw)
|
||||
manifest = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
sources = []
|
||||
|
||||
def cite(key, file, claim, first=1, last=None):
|
||||
e = next(e for e in manifest if e["id"] == key and e["file"] == file)
|
||||
data = (REF / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(data).hexdigest() == e["sha256"]
|
||||
sources.append(
|
||||
dict(
|
||||
e,
|
||||
local_file="../flux2-img-reference/" + e["local_file"],
|
||||
lines=[first, last or len(data.decode().splitlines())],
|
||||
claim=claim,
|
||||
)
|
||||
)
|
||||
return len(sources) - 1
|
||||
|
||||
nodes = cite("core", "nodes.py", "准确0.8.2注册/编码解码/模型加载器/LoadImage及SaveImage")
|
||||
cfg = cite(
|
||||
"core", "comfy_extras/nodes_custom_sampler.py", "准确CFGGuider schema及正负条件", 801, 825
|
||||
)
|
||||
noise = cite(
|
||||
"core", "comfy_extras/nodes_custom_sampler.py", "RandomNoise种子schema与辅助声明", 898, 913
|
||||
)
|
||||
sampler = cite(
|
||||
"core", "comfy_extras/nodes_custom_sampler.py", "KSamplerSelect枚举与采样器构造", 376, 395
|
||||
)
|
||||
cite(
|
||||
"core", "comfy_extras/nodes_custom_sampler.py", "双LATENT出口和x0条件,仅静态阅读", 915, 969
|
||||
)
|
||||
flux = cite(
|
||||
"core", "comfy_extras/nodes_flux.py", "EmptyFlux2LatentImage准确schema/实现", 36, 57
|
||||
)
|
||||
scheduler = cite(
|
||||
"core", "comfy_extras/nodes_flux.py", "Flux2Scheduler尺寸/步数/注册与helper", 182, 249
|
||||
)
|
||||
reference = cite(
|
||||
"core",
|
||||
"comfy_extras/nodes_edit_model.py",
|
||||
("ReferenceLatent optional latent追加reference_latents及注册"),
|
||||
)
|
||||
lora = cite("lora", "nodes.py", "独立0.21.1模型LoRA注册、继承、强度和文件加载条件", 671, 732)
|
||||
tt = cite("tt", "nodes/resolution_selector.py", "准确aux完整提交的预设/真假分支/返回宽高")
|
||||
front = cite(
|
||||
"frontend",
|
||||
"src/lib/litegraph/src/LGraphNode.ts",
|
||||
"独立1.36.13位置恢复/保存;不推定UE/tab组合",
|
||||
)
|
||||
widgets = cite("frontend", "src/scripts/widgets.ts", "种子辅助序列化与队列钩子;只阅读不运行")
|
||||
upload = cite(
|
||||
"frontend",
|
||||
"src/extensions/core/uploadImage.ts",
|
||||
"准确1.36.13上传控件与图像属性,仅有限前端参考",
|
||||
)
|
||||
reroute = cite(
|
||||
"frontend", "src/extensions/core/rerouteNode.ts", "准确1.36.13虚拟Reroute构造/连接处理"
|
||||
)
|
||||
kj = cite(
|
||||
"kj",
|
||||
"nodes/image_nodes.py",
|
||||
("准确KJ1.3.9 ImageResizeKJv2 schema、mask/尺寸/设备/返回"),
|
||||
2784,
|
||||
3074,
|
||||
)
|
||||
compare = cite(
|
||||
"rgthree", "py/image_comparer.py", "准确发布包比较器继承PreviewImage;A/B独立临时描述符"
|
||||
)
|
||||
comparefront = cite(
|
||||
"rgthree", "web/comfyui/image_comparer.js", "准确发布包历史列表恢复/保存/Slide属性及注册"
|
||||
)
|
||||
for e in manifest:
|
||||
if not any(s["id"] == e["id"] and s["file"] == e["file"] for s in sources):
|
||||
cite(e["id"], e["file"], "同树必要注册/helper/依赖或许可,仅文本参考")
|
||||
names = {
|
||||
102: ["cfg"],
|
||||
105: ["noise_seed", "control_after_generate"],
|
||||
100: ["sampler_name"],
|
||||
111: ["width", "height", "batch_size"],
|
||||
110: ["vae_name"],
|
||||
107: ["clip_name", "type", "device"],
|
||||
106: ["unet_name", "weight_dtype"],
|
||||
101: ["steps", "width", "height"],
|
||||
145: ["rgthree_comparer"],
|
||||
146: [
|
||||
"width",
|
||||
"height",
|
||||
"upscale_method",
|
||||
"keep_proportion",
|
||||
"pad_color",
|
||||
"crop_position",
|
||||
"divisible_by",
|
||||
"device",
|
||||
],
|
||||
144: ["use_custom_resolution", "resolution", "custom_width", "custom_height"],
|
||||
76: ["image", "upload"],
|
||||
109: ["text"],
|
||||
142: ["lora_name", "strength_model"],
|
||||
108: ["text"],
|
||||
9: ["filename_prefix"],
|
||||
}
|
||||
# default, unit, bounds/branch, purpose, citations. No layout-derived runtime mapping.
|
||||
detail = {
|
||||
(102, "cfg"): (
|
||||
"8.0",
|
||||
"无量纲",
|
||||
"FLOAT 0~100,step0.1/round0.01",
|
||||
(
|
||||
"保存JSON int5;接收140正向与139负"
|
||||
"向条件→103.guider。参考FLOAT声明"
|
||||
"不改写源类型,不保证引导效果。"
|
||||
),
|
||||
[cfg],
|
||||
),
|
||||
(105, "noise_seed"): (
|
||||
"0",
|
||||
"INT种子",
|
||||
("0~0xffffffffffffffff;control_after_generate=True"),
|
||||
(
|
||||
"保存1029966337642000;105→1"
|
||||
"03.noise。缓存、randomize辅助和"
|
||||
"最终执行种子分开,未运行RNG或队列钩子。"
|
||||
),
|
||||
[noise, widgets],
|
||||
),
|
||||
(105, "control_after_generate"): (
|
||||
"前端辅助非后端schema默认",
|
||||
"字符串辅助控制",
|
||||
"准确1.36.13基础钩子仅有限参考;UE组合未知",
|
||||
(
|
||||
"保存randomize,表示生成后种子控制意图,"
|
||||
"不是另一个采样输入;不据缓存承诺复现或计算下一种"
|
||||
"子。"
|
||||
),
|
||||
[widgets],
|
||||
),
|
||||
(100, "sampler_name"): (
|
||||
"schema无显式default;动态枚举",
|
||||
"采样器名称",
|
||||
"comfy.samplers.SAMPLER_NAMES",
|
||||
("保存euler→103.sampler;只阅读枚举及构造,不运行采样或保证质量/耗时。"),
|
||||
[sampler],
|
||||
),
|
||||
(111, "batch_size"): (
|
||||
"1",
|
||||
"批量INT",
|
||||
"1~4096",
|
||||
(
|
||||
"保存1;111空latent→103.laten"
|
||||
"t_image。参考latent位于条件支路,未"
|
||||
"直接接初始latent;不保证批量成功或显存。"
|
||||
),
|
||||
[flux, reference],
|
||||
),
|
||||
(101, "steps"): (
|
||||
"20",
|
||||
"调度步数INT",
|
||||
"1~4096",
|
||||
(
|
||||
"保存12,101生成SIGMAS→103;与默认"
|
||||
"20分列,尺寸由146的实际输出经转接覆盖。不计"
|
||||
"算sigmas或推断质量/耗时。"
|
||||
),
|
||||
[scheduler],
|
||||
),
|
||||
(107, "type"): (
|
||||
"无显式default;枚举包含flux2",
|
||||
"编码器类别",
|
||||
"准确0.8.2 CLIPLoader类别枚举",
|
||||
("保存flux2;107.CLIP同时→108/109。静态类别声明不证明编码器文件兼容或目标已安装。"),
|
||||
[nodes],
|
||||
),
|
||||
(107, "device"): (
|
||||
"default",
|
||||
"设备选择",
|
||||
"default/cpu;default不固定实际设备",
|
||||
("保存default;仅按准确加载器cpu分支设置load/offload,目标实际设备与显存未知。"),
|
||||
[nodes],
|
||||
),
|
||||
(106, "weight_dtype"): (
|
||||
"无显式default;选项首项default",
|
||||
"精度选择",
|
||||
("default/fp8_e4m3fn/fp8_e4m3fn_fast/fp8_e5m2"),
|
||||
(
|
||||
"保存default;不能由9b-fp8文件名证明"
|
||||
"实际dtype。106物理MODEL→142旁路"
|
||||
"节点→102.model,不模拟旁路穿透。"
|
||||
),
|
||||
[nodes, lora],
|
||||
),
|
||||
(144, "use_custom_resolution"): (
|
||||
"False",
|
||||
"BOOLEAN开关",
|
||||
"false选预设;true返回自定义宽高",
|
||||
(
|
||||
"保存false;准确TT实现走预设分支,不把下方"
|
||||
"1024缓存当选中尺寸;144宽高外线覆盖146"
|
||||
"的512/512。"
|
||||
),
|
||||
[tt],
|
||||
),
|
||||
(144, "resolution"): (
|
||||
"1024x1024 (1:1) (方形)",
|
||||
"预设名称",
|
||||
"准确预设含1080x1920 (9:16) (竖屏);未知预设回退1024对",
|
||||
(
|
||||
"保存1080x1920 (9:16) (竖屏);"
|
||||
"false时选该预设送146。实际参考图宽"
|
||||
"高比/resize与尺寸取整再影响输出,不能保证最终1080×1920。"
|
||||
),
|
||||
[tt, kj],
|
||||
),
|
||||
(144, "custom_width"): (
|
||||
"1024",
|
||||
"像素INT",
|
||||
"64~8192,step1;只在true分支返回",
|
||||
(
|
||||
"保存1024自定义宽缓存;当前false走预设,"
|
||||
"TT实现无额外对齐/夹紧,不把schema限制当"
|
||||
"运行保证。"
|
||||
),
|
||||
[tt],
|
||||
),
|
||||
(144, "custom_height"): (
|
||||
"1024",
|
||||
"像素INT",
|
||||
"64~8192,step1;只在true分支返回",
|
||||
"保存1024自定义高缓存;当前false走预设,与外线实际高和146输出高分列。",
|
||||
[tt],
|
||||
),
|
||||
(146, "upscale_method"): (
|
||||
"schema无显式default;首项nearest-exact",
|
||||
"插值方法",
|
||||
("nearest-exact/bilinear/area/bicubic/lanczos/nvidia_rtx_vsr"),
|
||||
(
|
||||
"保存nearest-exact;准确1.3.9普"
|
||||
"通分支调用common_upscale。这里不走"
|
||||
"RTX分支,不下载或执行GPU运行库。"
|
||||
),
|
||||
[kj],
|
||||
),
|
||||
(146, "keep_proportion"): (
|
||||
"schema字面False;与字符串枚举分列",
|
||||
"缩放分支",
|
||||
("stretch/resize/pad/pad_edge/pad_edge_pixel/crop/pillarbox_blur/total_pixels"),
|
||||
(
|
||||
"保存resize;双尺寸非零时按较小比例保留原图"
|
||||
"比例并round,单边零推另一边、双零沿用"
|
||||
"原图,随后divisible_by>1向下取整。没有原媒体尺寸便不试算输出。"
|
||||
),
|
||||
[kj],
|
||||
),
|
||||
(146, "pad_color"): (
|
||||
"0, 0, 0",
|
||||
"填充色字符串",
|
||||
"仅相关填充分支使用;不是JSON数组",
|
||||
("保存完整字符串0, 0, 0;当前resize不是pad分支,不保证会填黑边;原值与分支条件分开。"),
|
||||
[kj],
|
||||
),
|
||||
(146, "crop_position"): (
|
||||
"center",
|
||||
"位置枚举",
|
||||
"center/top/bottom/left/right",
|
||||
"保存center;裁剪或填充分支才决定位置,当前resize不当中心裁剪已生效。",
|
||||
[kj],
|
||||
),
|
||||
(146, "divisible_by"): (
|
||||
"2",
|
||||
"尺寸整除因数INT",
|
||||
"0~512,step1;实现仅>1时向下取整",
|
||||
(
|
||||
"保存2;宽高分别减去余数,输出宽/高取实际out"
|
||||
"_image.shape。不是向上补齐,也不是承"
|
||||
"诺源尺寸或最终latent尺寸。"
|
||||
),
|
||||
[kj],
|
||||
),
|
||||
(146, "device"): (
|
||||
"schema无显式default;函数默认cpu",
|
||||
"设备选择",
|
||||
"cpu/gpu;gpu且lanczos抛错",
|
||||
(
|
||||
"保存cpu;普通分支选择CPU,返回图像到CPU"
|
||||
"。只固定源码条件,不执行设备/缓存操作,不保证耗"
|
||||
"时或整个模型的设备。"
|
||||
),
|
||||
[kj],
|
||||
),
|
||||
(76, "image"): (
|
||||
"动态输入目录文件列表,无固定文件默认",
|
||||
"素材文件引用",
|
||||
"LoadImage仅后端image输入;文件/权限/内容未知",
|
||||
(
|
||||
"保存ScreenShot_2026-06-03_"
|
||||
"153527_199.png;proper"
|
||||
"ties.image另存clipspace/cl"
|
||||
"ipspace-painted-maske"
|
||||
"d-1778737197714.png [inp"
|
||||
"ut],原样分列,不当同一素材或保证遮罩编"
|
||||
"辑生效。IMAGE→146及145.B,MASK未接。没有读取媒体。"
|
||||
),
|
||||
[nodes, upload],
|
||||
),
|
||||
(76, "upload"): (
|
||||
"上传控件状态非后端默认",
|
||||
"前端上传状态",
|
||||
"源有IMAGEUPLOAD输入口,准确core后端无upload参数",
|
||||
(
|
||||
"保存image;与文件名独立记录,不能据此证明文"
|
||||
"件上传/存在或遮罩已应用,不调用上传接口。"
|
||||
),
|
||||
[upload, nodes],
|
||||
),
|
||||
(109, "text"): (
|
||||
"未显式固定空串默认",
|
||||
"负向编码文本",
|
||||
"STRING multiline/dynamicPrompts;源无外线",
|
||||
(
|
||||
"保存空串→139.conditioning,再→"
|
||||
"102.negative;空串仍编码成负向条件,"
|
||||
"不是ZeroOut或无条件。未运行编码。"
|
||||
),
|
||||
[nodes, reference],
|
||||
),
|
||||
(108, "text"): (
|
||||
"未显式固定空串默认",
|
||||
"正向编码文本",
|
||||
"STRING multiline/dynamicPrompts;完整中文原文",
|
||||
(
|
||||
"保存“将人物换成欧美人”→140.conditi"
|
||||
"oning,再→102.positive;原文与"
|
||||
"用途解释分列,不编码、改写或保证人物改变效果。"
|
||||
),
|
||||
[nodes, reference],
|
||||
),
|
||||
(142, "lora_name"): (
|
||||
"动态loras列表,无固定文件默认",
|
||||
"LoRA文件引用",
|
||||
"独立准确core0.21.1;目标文件/许可/兼容未知",
|
||||
(
|
||||
"保存Flux\\Flux2-Klein-9B-co"
|
||||
"nsistency-V2.safetens"
|
||||
"ors;节点mode4旁路,106→142→10"
|
||||
"2仅物理链,不模拟穿透或承诺LoRA被加载"
|
||||
"。"
|
||||
),
|
||||
[lora, front],
|
||||
),
|
||||
(142, "strength_model"): (
|
||||
"1.0",
|
||||
"模型LoRA强度FLOAT",
|
||||
"-100~100,step0.01;准确0.21.1",
|
||||
(
|
||||
"保存0.8;ModelOnly继承基础LoRA"
|
||||
"并以clip=None/strength_cl"
|
||||
"ip=0调用,只是参考实现;本图mode4,不"
|
||||
"说0.8一定生效,不加载文件或模型。"
|
||||
),
|
||||
[lora],
|
||||
),
|
||||
(9, "filename_prefix"): (
|
||||
"ComfyUI",
|
||||
"PNG文件名前缀",
|
||||
(
|
||||
"正式output目录;计数/批次命名;元数据按d"
|
||||
"isable_metadata与隐藏prompt"
|
||||
"/extra_pnginfo条件"
|
||||
),
|
||||
(
|
||||
"保存Flux2-Klein;104→9,准确co"
|
||||
"re0.8.2 SaveImage RET"
|
||||
"URN_TYPES=()无IMAGE出口,但源9"
|
||||
"保存了IMAGE输出口且未连接:版本/sc"
|
||||
"hema冲突保留,不套后版补证。PNG文件及ui"
|
||||
".images描述符含filename/s"
|
||||
"ubfolder/type=output;实际权限/history/产物未知。"
|
||||
),
|
||||
[nodes],
|
||||
),
|
||||
(145, "rgthree_comparer"): (
|
||||
"前端初始images空列表;不是后端输入默认",
|
||||
"完整历史A/B列表",
|
||||
("准确包1.0.2604070017前端保存为列表;Slide独立properties"),
|
||||
(
|
||||
"保存一个完整历史比较列表,嵌套name/sele"
|
||||
"cted/url原样;A来自104生成链,"
|
||||
"B直接来自76原图,不能反写。propertie"
|
||||
"s.comparer_mode=Slide"
|
||||
"仅交互选择,历史/api/view URL只作文"
|
||||
"本,不加载或当本次产物。准确包继承Prev"
|
||||
"iewImage,返回ui.a_images/u"
|
||||
"i.b_images临时文件描述符;无直接"
|
||||
"IMAGE返回声明,与源images口分列,目标宿主继承协议仍待核。"
|
||||
),
|
||||
[compare, comparefront, nodes],
|
||||
),
|
||||
}
|
||||
labels = {
|
||||
"cfg": "条件引导强度",
|
||||
"noise_seed": "噪声种子缓存",
|
||||
"control_after_generate": "种子辅助控制",
|
||||
"sampler_name": "采样器选择",
|
||||
"width": "宽度缓存",
|
||||
"height": "高度缓存",
|
||||
"batch_size": "批量意图",
|
||||
"vae_name": "VAE模型文件",
|
||||
"clip_name": "文本编码器文件",
|
||||
"unet_name": "扩散模型文件",
|
||||
"type": "编码器类别",
|
||||
"device": "设备选择",
|
||||
"weight_dtype": "模型精度选择",
|
||||
"steps": "调度步数",
|
||||
"rgthree_comparer": "完整历史比较列表",
|
||||
"upscale_method": "缩放插值",
|
||||
"keep_proportion": "宽高比处理",
|
||||
"pad_color": "填充色字符串",
|
||||
"crop_position": "裁剪/填充位置",
|
||||
"divisible_by": "尺寸整除因数",
|
||||
"use_custom_resolution": "自定义尺寸开关",
|
||||
"resolution": "尺寸预设",
|
||||
"custom_width": "自定义宽缓存",
|
||||
"custom_height": "自定义高缓存",
|
||||
"image": "参考图片文件",
|
||||
"upload": "上传状态",
|
||||
"text": "编码文本",
|
||||
"lora_name": "LoRA模型引用",
|
||||
"strength_model": "LoRA强度缓存",
|
||||
"filename_prefix": "PNG保存前缀",
|
||||
}
|
||||
fields = []
|
||||
empty = []
|
||||
comments = []
|
||||
for i, n in enumerate(g["nodes"]):
|
||||
nid = n["id"]
|
||||
ptr = f"/nodes/{i}"
|
||||
if n["type"] == "MarkdownNote":
|
||||
comments.append(
|
||||
dict(
|
||||
node_id=str(nid),
|
||||
scope="root",
|
||||
pointer=ptr + "/widgets_values/0",
|
||||
text=n["widgets_values"][0],
|
||||
meaning=(
|
||||
"作者提供子图指南、9B模型/8B编码器/VAE"
|
||||
"链接与存放目录,要求先到BFL仓库接受协议后下"
|
||||
"载,并给出更新和问题反馈入口。全文仅作者文本:"
|
||||
"不代用户接受协议、下载/更新、访问链接或执"
|
||||
+ "行;目录图未列diffusion_models不自动补写。"
|
||||
+ "不是安装、兼容或运行证明。"
|
||||
),
|
||||
evidence=[front],
|
||||
)
|
||||
)
|
||||
continue
|
||||
if not n.get("widgets_values"):
|
||||
state = (
|
||||
"missing"
|
||||
if "widgets_values" not in n
|
||||
else "null"
|
||||
if n["widgets_values"] is None
|
||||
else "empty_list"
|
||||
)
|
||||
effect = {
|
||||
103: (
|
||||
"槽0 output→104;槽1 denoise"
|
||||
"d_output links=[]未接。准确实现"
|
||||
"x0/无x0分支分列,不运行。"
|
||||
),
|
||||
141: ("146.IMAGE与110.VAE→141;同一LATENT分别→140和139的可选latent。"),
|
||||
140: (
|
||||
"108正向条件加141参考latent→102."
|
||||
"positive;准确ReferenceL"
|
||||
"atent追加reference_latents,不改变采样初始latent。"
|
||||
),
|
||||
139: "109空串负向条件加同一141参考latent→102.negative。",
|
||||
104: "103槽0和110.VAE→104,图像分别→9与145.A。",
|
||||
143: ("Label只类名无cnr_id/版本,不按同名包推定身份;源标题/字体等属性仅文本。"),
|
||||
136: (
|
||||
"146.height经虚拟Reroute→101"
|
||||
".height及111.height;准确1.3"
|
||||
"6.13基础构造有限参考,UE恢复未知。"
|
||||
),
|
||||
135: ("146.width经虚拟Reroute→101.width及111.width;保留原物理边,不构造API。"),
|
||||
}[nid]
|
||||
empty.append(
|
||||
dict(
|
||||
node_id=str(nid),
|
||||
class_type=n["type"],
|
||||
pointer=ptr,
|
||||
scope="root",
|
||||
state=state,
|
||||
effect=(
|
||||
"明确widgets_values=[],不是缺键/null。"
|
||||
if state == "empty_list"
|
||||
else "缺widgets_values键,不补[]或null。"
|
||||
)
|
||||
+ effect,
|
||||
)
|
||||
)
|
||||
continue
|
||||
assert len(names[nid]) == len(n["widgets_values"])
|
||||
for j, (name, v) in enumerate(zip(names[nid], n["widgets_values"], strict=True)):
|
||||
if (nid, name) in detail:
|
||||
default, unit, limits, effect, evidence = detail[nid, name]
|
||||
elif name in ["width", "height"]:
|
||||
if nid == 146:
|
||||
default = "512"
|
||||
unit = "像素INT"
|
||||
limits = "0~16384,step1;宿主core0.8.2 MAX_RESOLUTION参考"
|
||||
effect = (
|
||||
f"保存512被144.{name}外线覆盖;"
|
||||
"resize按原图比例、round及因数2向下取整;"
|
||||
f"实际输出{name}经{135 if name == 'width' else 136}"
|
||||
"同时覆盖101与111的1024缓存,不用预设1"
|
||||
"080×1920或512保证最终尺寸。"
|
||||
)
|
||||
evidence = [kj, tt, reroute, nodes]
|
||||
else:
|
||||
default = "1024"
|
||||
unit = "像素INT"
|
||||
limits = "16~16384;" + ("空latent step16" if nid == 111 else "调度器step1")
|
||||
effect = (
|
||||
f"保存1024被146实际输出经{135 if name == 'width' else 136}"
|
||||
".Reroute外线覆盖;101/111四处缓存分列。"
|
||||
+ (
|
||||
"空latent分配128通道、宽高整除16;只阅读不试算。"
|
||||
if nid == 111
|
||||
else (
|
||||
"调度器按width*height/(16*16)"
|
||||
"取序列长度再round、经验mu与steps+1"
|
||||
"线性时间步/SNR变换;不计算sigmas。"
|
||||
)
|
||||
)
|
||||
)
|
||||
evidence = [flux if nid == 111 else scheduler, kj, reroute]
|
||||
elif name in ["vae_name", "clip_name", "unet_name"]:
|
||||
default = "动态模型文件列表,无固定文件默认"
|
||||
unit = "模型引用"
|
||||
limits = "目标文件/安装/许可/兼容/设备未知"
|
||||
effect = {
|
||||
"vae_name": ("保存flux2-vae.safetensors,110.VAE同时供141编码和104解码。"),
|
||||
"clip_name": (
|
||||
"保存qwen_3_8b_fp8mixed.safetensors;107.CLIP分别供108正向与109负向编码。"
|
||||
),
|
||||
"unet_name": (
|
||||
"保存Flux\\flux-2-klein-base"
|
||||
"-9b-fp8.safetensors;106物"
|
||||
"理模型线经142旁路节点至102。"
|
||||
),
|
||||
}[name] + (
|
||||
"模型路径/反斜杠与properties推荐URL"
|
||||
"原样分列,不由文件名证明实际精度,不下载权重。"
|
||||
)
|
||||
evidence = [nodes]
|
||||
else:
|
||||
raise AssertionError((nid, name))
|
||||
inp = next((k for k, x in enumerate(n["inputs"]) if x["name"] == name), None)
|
||||
role = (
|
||||
"frontend_reference_only"
|
||||
if inp is None or (nid == 76 and name == "upload")
|
||||
else "linked_saved_cache"
|
||||
if n["inputs"][inp].get("link") is not None
|
||||
else "saved_layout_reference"
|
||||
)
|
||||
fields.append(
|
||||
dict(
|
||||
node_id=str(nid),
|
||||
definition_node_id=str(nid),
|
||||
scope="root",
|
||||
class_type=n["type"],
|
||||
field=name,
|
||||
label=labels[name],
|
||||
pointer=f"{ptr}/widgets_values/{j}",
|
||||
value=v,
|
||||
json_type=type(v).__name__,
|
||||
named_pointer="源无widgets_values_named,不构造具名保存指针",
|
||||
input_pointer=f"{ptr}/inputs/{inp}"
|
||||
if inp is not None
|
||||
else "无独立后端输入:前端辅助",
|
||||
input_name=name if inp is not None else None,
|
||||
type=n["inputs"][inp]["type"] if inp is not None else "前端辅助",
|
||||
role=role,
|
||||
schema_default=default,
|
||||
unit=unit,
|
||||
limits=limits,
|
||||
effect=effect,
|
||||
evidence=evidence,
|
||||
execution_note=(
|
||||
"源保存值与参考默认分列;UE/tab恢复、目标模"
|
||||
"型/设备/实际效果未知。停用、转换关闭、未实跑。"
|
||||
),
|
||||
)
|
||||
)
|
||||
assert len(fields) == 36 and len(empty) == 8 and len(comments) == 1
|
||||
overview = (
|
||||
"这张图计划用一张参考图片配合中文修改要求生成新图"
|
||||
":先调整参考图尺寸并编码,把同一参考信息加"
|
||||
"入正负条件,再从空latent采样、解码保存,并"
|
||||
"比较生成图与原图。LoRA保存为旁路;素材"
|
||||
"、模型安装和真实效果尚未确认,目前只提供阅读核对参考。"
|
||||
)
|
||||
flow = [
|
||||
(
|
||||
"独立原字节盘点:根25节点/31物理边,无子图;"
|
||||
"24个mode0、142一个mode4。3"
|
||||
"6非注释保存位置=35标量含上传状态+1完整历史"
|
||||
"比较列表,另1完整MarkdownNote"
|
||||
"(1396字符);无widgets_values"
|
||||
"_named。103/141/140/13"
|
||||
"9/104明确[];143.Label及136/"
|
||||
"135.Reroute缺键,缺键/null"
|
||||
"/[]分开。"
|
||||
),
|
||||
(
|
||||
"76.IMAGE→146.Resize→141."
|
||||
"VAEEncode;110.VAE→141"
|
||||
";141同一LATENT分别→140/139.R"
|
||||
"eferenceLatent。参考late"
|
||||
"nt加入正负条件,不等于直接接103.laten"
|
||||
"t_image。76.MASK与146.m"
|
||||
"ask输入/输出未接,不称局部重绘;proper"
|
||||
"ties.image的clipspace路"
|
||||
"径和保存文件名独立,不保证遮罩编辑生效。"
|
||||
),
|
||||
(
|
||||
"107.CLIP分别→108正向和109负向;1"
|
||||
"08完整原文“将人物换成欧美人”、109空"
|
||||
"串分别→140/139,再→102正负条件。空串"
|
||||
"负向不是ZeroOut或无条件。106模型"
|
||||
"→142.LoRA→102.model保留物理线"
|
||||
",142为mode4旁路,不模拟穿透或宣称"
|
||||
"强度0.8生效。"
|
||||
),
|
||||
(
|
||||
"105.RandomNoise保存1029966"
|
||||
"337642000/randomize→1"
|
||||
"03.noise;102.cfg为JSON in"
|
||||
"t5→103.guider;100.eul"
|
||||
"er→103.sampler;101.Flux2"
|
||||
"Scheduler→103.sigmas;"
|
||||
"111.EmptyFlux2LatentImag"
|
||||
"e→103.latent_image。10"
|
||||
"1保存steps12/1024/1024,111"
|
||||
"保存1024/1024/1;缓存种子/辅助"
|
||||
"控制/最终种子未知分开,不运行RNG或采样。"
|
||||
),
|
||||
(
|
||||
"103槽0 output→104.VAEDeco"
|
||||
"de;110.VAE→104;104→9."
|
||||
"SaveImage和145.A。103槽1 de"
|
||||
"noised_output links=["
|
||||
"]未接;准确0.8.2有x0/无x0分支,仅静态阅读,不借上一图替代原件核对。"
|
||||
),
|
||||
(
|
||||
"144.TT false选1080x1920 ("
|
||||
"9:16) (竖屏),true返回自定义;"
|
||||
"1024/1024是自定义缓存。宽高外线分别覆盖"
|
||||
"146.width/height保存512"
|
||||
"/512。146保存nearest-exact/"
|
||||
"resize/字符串0, 0, 0/cen"
|
||||
"ter/divisible_by2/cpu;准确"
|
||||
"KJ1.3.9包含可选MASK接口,当前未"
|
||||
"接。resize按原比例、round后因数>1向"
|
||||
"下取整,输出取实际shape;不读取原图便"
|
||||
"不计算真实尺寸。"
|
||||
),
|
||||
(
|
||||
"146.width经135转接同时→101.wi"
|
||||
"dth及111.width;146.hei"
|
||||
"ght经136转接同时→101.height及1"
|
||||
"11.height,四处1024缓存被外线"
|
||||
"覆盖。不能拿1080×1920、512或1024"
|
||||
"保证最终尺寸;cpu仅此节点条件,不承诺目"
|
||||
"标模型设备/显存/耗时。"
|
||||
),
|
||||
(
|
||||
"比较器145.A来自104生成链,B直接来自76"
|
||||
"原图;一个顶层保存位置含完整A/B历史na"
|
||||
"me/selected/url列表,不拆成两个位"
|
||||
"置。Slide是独立属性。历史/api/v"
|
||||
"iew链接只作文本,不访问媒体、不当本次产物。准"
|
||||
"确发布包前端onSerialize保存列表"
|
||||
",后端继承PreviewImage并返回ui.a"
|
||||
"_images/ui.b_images临时"
|
||||
"描述符,不把源images口当已证实返回IMAGE。"
|
||||
),
|
||||
(
|
||||
"准确core0.8.2 SaveImage正式o"
|
||||
"utput PNG、元数据开关和计数/批次"
|
||||
"命名、filename/subfolder/ty"
|
||||
"pe描述符条件分开;RETURN_TYPE"
|
||||
"S=()无IMAGE出口,与源9保存IMAGE口"
|
||||
"存在schema冲突。不能借后版补证或放宽"
|
||||
"资格,真实目录权限/history/产物未知。"
|
||||
),
|
||||
(
|
||||
"源frontendVersion=1.36.13"
|
||||
";142.LoraLoaderModelO"
|
||||
"nly独立core0.21.1,其他core多数"
|
||||
"0.8.2;146声明comfyui-kj"
|
||||
"nodes1.3.9,145声明rgthree-"
|
||||
"comfy1.0.2604070017。1"
|
||||
"43.Label只类名无提供方/版本,不套145"
|
||||
"身份;UE7.5.2/7.7/7.8、ta"
|
||||
"b附加属性、宿主/插件恢复顺序各自未知。"
|
||||
),
|
||||
(
|
||||
"TT aux_id准确AICoderTudou/"
|
||||
"ComfyUI-TT-Resolution"
|
||||
"_selector-Node@b69cf75c2"
|
||||
"ce5f864e3db5301dba46a"
|
||||
"6b5eeaa8fb;准确树无LICENSE,许"
|
||||
"可未知。KJ/rgthree准确注册包只通"
|
||||
"过HTTP206 Range取中央目录和必要文本"
|
||||
",成员SHA256/CRC独立;完整包SH"
|
||||
"A与Git绑定未知,不以ETag代替SHA或套旧"
|
||||
"提交/最新版。准确包不证明目标安装或Lab"
|
||||
"el身份。"
|
||||
),
|
||||
(
|
||||
"常见问题:参考图仅作条件不等于局部重绘;LoRA"
|
||||
"旁路不等于生效;保存种子不保证复现;12步"
|
||||
"/批1不保证效果/显存;模型文件与Note下载建"
|
||||
"议不证明安装/兼容/许可。Note接受BF"
|
||||
"L协议及更新步骤仅作者文字,不代用户接受、下载或"
|
||||
"执行。155完整定稿0、实跑0、此批新增转"
|
||||
"换0。"
|
||||
),
|
||||
]
|
||||
flow += ["原物理边 " + json.dumps(e, ensure_ascii=False) for e in g["links"]]
|
||||
flow += [
|
||||
"节点"
|
||||
+ str(n["id"])
|
||||
+ "独立属性 "
|
||||
+ json.dumps(n.get("properties", {}), ensure_ascii=False)
|
||||
for n in g["nodes"]
|
||||
]
|
||||
versions = []
|
||||
for key in ["core", "lora", "frontend", "tt", "kj", "rgthree"]:
|
||||
e = next(e for e in manifest if e["id"] == key)
|
||||
versions.append(
|
||||
f"{key} {e['tag']} commit {e['commit']};tree {e['tree']};许可见{e['license_file']}"
|
||||
)
|
||||
versions += [
|
||||
(
|
||||
"local_file以docs/hel-892/"
|
||||
"flux2-img-document-ev"
|
||||
"idence为基准;sources.json相对"
|
||||
"flux2-img-reference。获"
|
||||
"取时间与source-check复核时间分列;源SHA256 "
|
||||
)
|
||||
+ hashlib.sha256(raw).hexdigest(),
|
||||
(
|
||||
"包完整SHA256未知:Range未获取完整包"
|
||||
";Git绑定未知;不将成员SHA/CRC/ET"
|
||||
"ag冒充完整包SHA。UE/tab/宿主恢复及"
|
||||
"Label身份未知;旧46块逐对象冻结。"
|
||||
),
|
||||
]
|
||||
return dict(
|
||||
source_path=PATHS[index],
|
||||
source_sha1=hashlib.sha1(raw).hexdigest(),
|
||||
source_sha256=hashlib.sha256(raw).hexdigest(),
|
||||
canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),
|
||||
notice="仅参考:目标素材/模型、UE恢复和实际效果未核;转换关闭、未实跑。",
|
||||
user_overview=overview,
|
||||
versions=versions,
|
||||
counts=dict(
|
||||
saved_fields=36,
|
||||
root_saved_fields=36,
|
||||
internal_saved_fields=0,
|
||||
linked_saved_fields=6,
|
||||
frontend_only=3,
|
||||
source_nodes=25,
|
||||
root_nodes=25,
|
||||
internal_nodes=0,
|
||||
physical_edges=31,
|
||||
source_notes=1,
|
||||
history_objects=1,
|
||||
final_scalars=0,
|
||||
final_prompt_constructed=False,
|
||||
),
|
||||
fields=fields,
|
||||
sources=sources,
|
||||
comments=comments,
|
||||
flow=flow,
|
||||
flow_evidence=list(range(len(sources))),
|
||||
zero_saved_nodes=empty,
|
||||
boundaries=[],
|
||||
steps=[
|
||||
overview,
|
||||
(
|
||||
"操作1:只阅读参考文件名、中文修改原文、负向空串"
|
||||
"和模型/LoRA路径;将clipspace属性、"
|
||||
"历史比较和当前输入分列,不打开链接或媒体。"
|
||||
),
|
||||
(
|
||||
"操作2:核对TT→Resize→两转接→四缓存、"
|
||||
"参考latent条件链和LoRA旁路,再确"
|
||||
"认目标节点/模型/素材/许可/权限及恢复行为;参考说明不能启用工作流。"
|
||||
),
|
||||
(
|
||||
"操作3:保持停用;155全量完成审核后才发布。当"
|
||||
"前不连接目标、不构造prompt、不执行上"
|
||||
"游/模型/GPU/媒体/种子/缓存,不下载权重素材或代用户接受协议。"
|
||||
),
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,827 @@
|
||||
{
|
||||
"base": "a7d3167b362734df7eaa1efd2c141f292a878299",
|
||||
"count": 137,
|
||||
"files": [
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"sha256": "537a6ac2b208da432b0444f424cb21e0342bc31b8dcc6785ff89671a814a87a4",
|
||||
"bytes": 12664,
|
||||
"purpose": "唯一目标路径的代码拥有定义摘要;不改共享绑定逻辑或资格"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
|
||||
"sha256": "5edef9b465dd6c0f367b948964d862bce7841af95821680ff60c6a34d7646ce0",
|
||||
"bytes": 5912459,
|
||||
"purpose": "唯一目标图新增36保存位置+1完整Note的参考定义;旧46块及其余155审校对象不变"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_flux2_img_fixed_document.py",
|
||||
"sha256": "4a51bba061feb05cde4f2e2fa964eea7b9ba63dff64338e2f988d4f49d8c7da1",
|
||||
"bytes": 8041,
|
||||
"purpose": "唯一目标路径的代码拥有定义摘要;不改共享绑定逻辑或资格"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/actual-2_flux2_klein_图生图.json",
|
||||
"sha256": "de7c53a9ea3b302535442da05f7f4fa17ba5d28455392b0207b0a3e7d887a2b3",
|
||||
"bytes": 160025,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/add_sources.py",
|
||||
"sha256": "f52d30935143c5a640f1e5c113415c9714fa6206b3a12c656ab3d805a09026ae",
|
||||
"bytes": 1707,
|
||||
"purpose": "准确core必要注册与helper文本补证"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/audit-summary.json",
|
||||
"sha256": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a",
|
||||
"bytes": 797,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/authored-diff-check.txt",
|
||||
"purpose": "自写代码差分空白检查记录;原始上游/采集日志空白保持",
|
||||
"sha256": "a264d18dab66a35a61b3758d5932c4f978b04041c099406857e9f27b2c379fa6",
|
||||
"bytes": 171
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/backend-final.txt",
|
||||
"sha256": "98f5be0e30b8c5491696ec9c832faeb77976be2d34215e416eab59b3cf561426",
|
||||
"bytes": 960,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/backend-request-counts.json",
|
||||
"sha256": "9528bb164fadc1def2d7bc9c31e89c5d0ab5a21dd2a0c2f12bb2ebd191a3c52d",
|
||||
"bytes": 1776,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/boundaries.json",
|
||||
"sha256": "f5de24c814d99fb4015fe1eb2d56512014dad8e17d7a06de7bab3e5e38907804",
|
||||
"bytes": 38631,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/browser-accounting.txt",
|
||||
"sha256": "ee13400b6beeee3f1819486a3a05d2d06b992ee0cb1a6df75a2c68709c28df7f",
|
||||
"bytes": 195,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/browser-final.txt",
|
||||
"sha256": "30965ca0fcc6e70c25629d37b99c3743be415f2ccf2915577a5b2d7e7a81af64",
|
||||
"bytes": 94486,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/browser-results.json",
|
||||
"sha256": "f26f55269b2196acda0fbe624e1e8a9e2f15f767e96bf02ade2a9592583bf7cc",
|
||||
"bytes": 115675,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/build-final.txt",
|
||||
"sha256": "22f5a80c9dd6d5d8fb563458387f7e87268d82202e4f190429147af6d1271add",
|
||||
"bytes": 24326,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/build-package.txt",
|
||||
"sha256": "c00444fef525c4c1ed8a45e13530a1c95be11554e0ee19ff95f40e5dab717cee",
|
||||
"bytes": 211,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/build_definition.py",
|
||||
"sha256": "ea74701251722ea67e8a1c55de74a3a9ed914cf90804a0de007b6118c4ea33e6",
|
||||
"bytes": 34750,
|
||||
"purpose": "逐位置中文用途、准确schema分支、证据及边界的可重建编审源"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/changed-files.json",
|
||||
"purpose": "逐文件用途/SHA清单;自身不做递归SHA",
|
||||
"sha256": null
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/check_code.py",
|
||||
"sha256": "1cbe284de1e11b8ff4691a95c083ebc205657c86396fca43afa000efc84c2a7d",
|
||||
"bytes": 1222,
|
||||
"purpose": "只检查本批15自写Python和JS语法"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/collect_browser.py",
|
||||
"sha256": "5efb55291e1fd1b3035f52f474f968e54bcf29b698cdc7d6b10752bc88af3e80",
|
||||
"bytes": 3193,
|
||||
"purpose": "浏览请求与后端日志逐路径对账、finally及独立端口释放"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/definition-0.json",
|
||||
"sha256": "777d1bd4516f66eda063598b5f080fc033c319c76b119c69ba561bc8efc4a971",
|
||||
"bytes": 120140,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/delivery-summary.md",
|
||||
"sha256": "2a6d59b1665bb648fed888af409d45d42e1b9fbdf59c9d8132aadf7ab81030ce",
|
||||
"bytes": 3855,
|
||||
"purpose": "本批实际中文说明或交付边界与自测报告"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/fetch.txt",
|
||||
"sha256": "2cd688d54ab2318b8c1b1c6ff9bfd22ae8cfbcafc57c900a4dbf560b665f8e1d",
|
||||
"bytes": 2089,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/fetch_packages.py",
|
||||
"sha256": "148c90fa2dd9f7ed434a3948ba27d9b2702496353de018ed6aac06afca0baa32",
|
||||
"bytes": 5331,
|
||||
"purpose": "HTTP206 Range中央目录和必要文本成员采集;完整包SHA/Git绑定保留未知"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/fetch_sources.py",
|
||||
"sha256": "dcabc9026e4851751826f2c57b79e435cb71a78d803329c842f64bc305ab24b5",
|
||||
"bytes": 5549,
|
||||
"purpose": "有界准确Git文本采集、独立身份和core/TT字节复用"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/fixed-source-index.json",
|
||||
"sha256": "4050e33bf9c842204185b8548df828dab87ab0535709754b045b4f6ccac71250",
|
||||
"bytes": 61639,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/frozen-resource-check.json",
|
||||
"sha256": "0f35392b834cf2409090e2cbd7a4ad999c701f903b36855a1db574cc145616d6",
|
||||
"bytes": 40348,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/import-protection.json",
|
||||
"sha256": "b1eb91f9888ead0719225ba3bafc63767e82d0fad14a53f100c8137f7f0709ce",
|
||||
"bytes": 1270,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/independent-inventory.json",
|
||||
"sha256": "65c9971ab040142fd70bd38245f845b686f7459a23bbaccfb0f57f2948471089",
|
||||
"bytes": 8371,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/inventory.py",
|
||||
"sha256": "9544f6859e7c885bf66d9eac30f6a1b3bc2c64e811e8d7370d3b5be41f799ec7",
|
||||
"bytes": 2122,
|
||||
"purpose": "独立原字节/具名键/缺键与空列表/模式盘点"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/lint-final.txt",
|
||||
"sha256": "a76c0c8ade66e09b95270098c08ff880dc05ad5f9caaa2bde4cdfa3e476a1415",
|
||||
"bytes": 100,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/npm-ci.txt",
|
||||
"sha256": "99aec36e74054441a1e4c2ee0d37b5e5cbe2e3ce61938cf82941f876a338315b",
|
||||
"bytes": 143,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/package-check.json",
|
||||
"sha256": "eb0462f7582de895e19879478ce7eb6da17620b29f734f3502aa7143e65f8f23",
|
||||
"bytes": 550,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/packages-fetch.txt",
|
||||
"sha256": "aa0edb8cac7b0fff7abf11d0634759f59d5673f65c806a6f5fe47c536237b86a",
|
||||
"bytes": 82,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/pins.json",
|
||||
"sha256": "5becf7d0ea81df33da22c1c24d531b0949877c0b25be47cce6d040a4453456a1",
|
||||
"bytes": 151,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/ports-independent.json",
|
||||
"sha256": "1e487821f761ab96db779fb3b6fb5e5411005f9027f12a880a779aefb23c50bc",
|
||||
"bytes": 165,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/pr-before.json",
|
||||
"sha256": "c7024a601120e98755f312e822359fc4e9d22fa3eeaa72cb2150395d8f2b595e",
|
||||
"bytes": 235,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/python-check-files.json",
|
||||
"sha256": "9d35f21dac2db18ecb68be889e2ec2b12164905860e217781c229e8bf413ae4d",
|
||||
"bytes": 897,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/rebuild.py",
|
||||
"sha256": "48836c972429e38386ad004b78e5d5a3803f41efb8dff226a04077c7799d6807",
|
||||
"bytes": 2457,
|
||||
"purpose": "只从真实a7d3167基线增加目标说明与固定摘要"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/recompute-final.txt",
|
||||
"sha256": "8cc6871ca59a8e3ad4ad178f1536fbbca99746b0aca66feac4e8a0e5e81ac998",
|
||||
"bytes": 272,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/recompute.py",
|
||||
"sha256": "bd9b2ce4235a5d032e74d9c2de6c1888d4557ce99897765bfb9c3834eff83c9e",
|
||||
"bytes": 13764,
|
||||
"purpose": "旧代码隔离库升级/回退/重入/编辑冲突/全量审计/冻结和包字节验证"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/render_report.py",
|
||||
"sha256": "51e72db9f062d50ada38046a3c60584793de2c99d9612410afb70a918899b0d6",
|
||||
"bytes": 4751,
|
||||
"purpose": "实际定义渲染为逐字段中文说明和来源索引"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/repeat-final.txt",
|
||||
"sha256": "1c4de890cacc8abbcb119c86e6ebbea50780922b17bc7883685bfe4e0b261a96",
|
||||
"bytes": 71,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/repeat.py",
|
||||
"sha256": "7694428dd80c0994869d51303ca987e80826ca7f8926393cfd67462eb9f95767",
|
||||
"bytes": 1351,
|
||||
"purpose": "双次重建和说明渲染确定性"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/repeatability.json",
|
||||
"sha256": "9657de2d226960da0af242e5771c190e0109ef8ab0fcaa7907241051a700f2a4",
|
||||
"bytes": 426,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/review-delta.json",
|
||||
"sha256": "6ae7e5997dafe8b64f2a44f40e9eb0ffb2e6c326bbaf66a72b680adf1ae7a8c2",
|
||||
"bytes": 374,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/service-0.txt",
|
||||
"sha256": "f3f21f24ee91ef4d2b2a259d7f0ae281b94cb427529fefa3ac792e0b415a8d47",
|
||||
"bytes": 11370,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/service-1.txt",
|
||||
"sha256": "e6f847428b1c60b8574beda032bc0a2550a4ca31497603a09860fbda958dd718",
|
||||
"bytes": 72,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/service-stop.json",
|
||||
"sha256": "26a1c53a887aaa01778530a87c33062e6121fde93e9eacea671c3561b8fe5594",
|
||||
"bytes": 65,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/source-check.json",
|
||||
"sha256": "f6b9b8bb145f8e3b07bc8da1da4f008933677c932384f220524f0425cb17a989",
|
||||
"bytes": 9712,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/sync.txt",
|
||||
"sha256": "48f95e15eac24fc6a3504e87d4d7d48ae0d3d7ac432ee5e35be7a873c14aec52",
|
||||
"bytes": 1627,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/validation-commands.txt",
|
||||
"sha256": "c5c79f283918bee5863f5f54f657bfa2c8601df5c94e54f3d953aaa5184a5a06",
|
||||
"bytes": 3378,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/verify_sources.py",
|
||||
"sha256": "eb9099358201744fe8cb682b23467251706d19e5878773fe78c9fcb31f77ff82",
|
||||
"bytes": 4332,
|
||||
"purpose": "独立源值/拓扑/来源字节、Git对象与包成员CRC验证"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-document-evidence/visual-review.txt",
|
||||
"sha256": "40db81fc13331cd610afc0e0c50fcd64c7d0286bb2d3dc487a0322d271bbaedc",
|
||||
"bytes": 558,
|
||||
"purpose": "本批独立生成的审计/保护/绑定/构建/浏览/日志或复现证据;结果不累加旧批"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core-absent.json",
|
||||
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
|
||||
"bytes": 3,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core-commit.txt",
|
||||
"sha256": "ec4f73ef13b685417a06729d99857250b1d5cec21d43521ae82d5c559a495860",
|
||||
"bytes": 263,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core-tag.json",
|
||||
"sha256": "dfeb820bc5f1c5a2e11dfe1f57efea32ae95c7cbf96c66426e0f938e69e86c5a",
|
||||
"bytes": 144,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core-tag.txt",
|
||||
"sha256": "ec4f73ef13b685417a06729d99857250b1d5cec21d43521ae82d5c559a495860",
|
||||
"bytes": 263,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core-tree.json",
|
||||
"sha256": "85fec4aa07288600254d3f6f365a552a990c1d9578acdfda83822f004cbd6a4e",
|
||||
"bytes": 99650,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"bytes": 35149,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy__cli_args.py",
|
||||
"sha256": "b08dd1d029b3b7d64efee2c3125e7046ed5f07840200fffef4d564c600615e34",
|
||||
"bytes": 16872,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy__sample.py",
|
||||
"sha256": "794be52ca4ad9be470aedfc79a595492f8116c2666101cf48c108a09cdc6dac6",
|
||||
"bytes": 3707,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy__samplers.py",
|
||||
"sha256": "a7b0dec5aea19214cc640dd725d927ac8246377885d46c956a5c0d9fe79b1a47",
|
||||
"bytes": 49683,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy__sd.py",
|
||||
"sha256": "e20431cac19074ff6ab931d4076aa867b2be1419c6a3be42b0700002f8184727",
|
||||
"bytes": 87042,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy__utils.py",
|
||||
"sha256": "dfd937c200548753a053befe53357c32deafb2384c9895bdde96b01a1d9ee4d6",
|
||||
"bytes": 54568,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_api__latest___io.py",
|
||||
"sha256": "41ebad9670bf980b7f85527a4839e3a15b18094583746515ea2d516d3946a1e5",
|
||||
"bytes": 73249,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_api__latest___io_public.py",
|
||||
"sha256": "c805d754d61aba1ea72ed2d9d5c371de35be9affa5305d35426fb298fcb7c046",
|
||||
"bytes": 33,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_extras__nodes_custom_sampler.py",
|
||||
"sha256": "8e8c3763a618fa9058f2333dcc09be3b60889362875b8c6377aee23f9ea1abd2",
|
||||
"bytes": 41217,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_extras__nodes_edit_model.py",
|
||||
"sha256": "e8d03a4ca5f7b8025f565d0fa7b4f0119693f2f35837db2a4114361537f78da3",
|
||||
"bytes": 1263,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_extras__nodes_flux.py",
|
||||
"sha256": "a10f6890f81589e43f5384fc9d5e4e68e3d53b900abce84cb07740376e0135c6",
|
||||
"bytes": 7879,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_extras__nodes_primitive.py",
|
||||
"sha256": "e3916389cbf848f73fd79f67feca97f3e666a2c541409bba2aef4500b6f7393b",
|
||||
"bytes": 2834,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"bytes": 18573,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__latent_preview.py",
|
||||
"sha256": "c59708b07494615d2f7640d528df17f9281f4d77affe638b2e0efb9a49fa3cee",
|
||||
"bytes": 5752,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__node_helpers.py",
|
||||
"sha256": "5ee43a50f57b84c64781f1bcfeb717d17ee2d07038d5d7d75eb788898fb72de0",
|
||||
"bytes": 1684,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__nodes.py",
|
||||
"sha256": "dd4b10eebd746da29178e0f8f75781f98edbf1f0620eb42afe2d03156a6c7c33",
|
||||
"bytes": 100283,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend-absent.json",
|
||||
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
|
||||
"bytes": 3,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend-commit.txt",
|
||||
"sha256": "4ed26279b1fdfa71f26eff2e22642d91d9275f46f8b4a2579492ca9683b97dc0",
|
||||
"bytes": 1361,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend-tag.json",
|
||||
"sha256": "3ab850d40828e568b5b963fdc86e52ae742c382fa159a9f6209d0c14ccc0aa7d",
|
||||
"bytes": 146,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend-tag.txt",
|
||||
"sha256": "4ed26279b1fdfa71f26eff2e22642d91d9275f46f8b4a2579492ca9683b97dc0",
|
||||
"bytes": 1361,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend-tree.json",
|
||||
"sha256": "2b65f32fd2085c561dc38eaba91370cc99b024811ea06b112952fae5c9f19533",
|
||||
"bytes": 398965,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"bytes": 35149,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__package.json",
|
||||
"sha256": "b1be1d068dbee752b44b382c83be9ee8f1c75a5a9ae728c96e2e1bda84cd7a22",
|
||||
"bytes": 7608,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__pnpm-lock.yaml",
|
||||
"sha256": "bc16299891aa6489d075e9cf95e8c710b4a3e230ac275133d08a3cd5ba139eed",
|
||||
"bytes": 582301,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__extensions__core__noteNode.ts",
|
||||
"sha256": "1014f719e3d67d9c5183a5e8631d4c2d6581dfe67083f32eb23774ec3074bef2",
|
||||
"bytes": 2160,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__extensions__core__rerouteNode.ts",
|
||||
"sha256": "53abe69665c97427faa7e41d4d0b9b33c8c1415fff84f582ed51862bdf7bfcd8",
|
||||
"bytes": 9698,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__extensions__core__uploadImage.ts",
|
||||
"sha256": "935687284bebc3bbb49616976ccaf83c31998dd7abba231e5c8eaab0e8aa9e04",
|
||||
"bytes": 1280,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__extensions__core__widgetInputs.ts",
|
||||
"sha256": "488d38eb209816778a6da8cb8f734f539e3fbd7f77aae41ec649a52b8764b613",
|
||||
"bytes": 17863,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__lib__litegraph__LICENSE",
|
||||
"sha256": "1b38cc30fe774bcc77538ab99eb460f4e1c8a47c4fddc6e991ee3b5cc2a96bb9",
|
||||
"bytes": 1077,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
|
||||
"sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f",
|
||||
"bytes": 124206,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__lib__litegraph__src__Reroute.ts",
|
||||
"sha256": "8d235116da40cf91de59ab8789f892fff89b507965d6c4e8142a9a4b514fa68c",
|
||||
"bytes": 23727,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__scripts__app.ts",
|
||||
"sha256": "1035fbc0313170282d6b0a05e30c04c7458648da6503ec70c67af03858a7a37e",
|
||||
"bytes": 56892,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__scripts__widgets.ts",
|
||||
"sha256": "e8bb428cbf69635015de43a4ebc89817b3443f876cbed52eeafe67d26f2398d8",
|
||||
"bytes": 10923,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__utils__executionUtil.ts",
|
||||
"sha256": "4e51bc54e35cb7ac9bb7cba418a74ccdd5974f640b9b088aa4ae7668f746ab36",
|
||||
"bytes": 4555,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/frontend__src__utils__migration__migrateReroute.ts",
|
||||
"sha256": "51e4e0cbc4da3f89239d5a333c615d31ea10745579d33350c0914c08e017d161",
|
||||
"bytes": 9087,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/kj-members.json",
|
||||
"sha256": "c1b928075971ba2fe688dbda39f8543d23e98421db9e6bd0cb03f960c06a2102",
|
||||
"bytes": 8119,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/kj-range-proof.json",
|
||||
"sha256": "3da28c41b26956ae28c15dec79e4001e3d5d7782782e914b2508fa5d46bf22ed",
|
||||
"bytes": 3656,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/kj-registry.json",
|
||||
"sha256": "0c1c5094e5bd81c5ee3f4f2ef154f7643d3c6d1fec9c98253ec0ebc58107438b",
|
||||
"bytes": 473,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/kj__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"bytes": 35149,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/kj____init__.py",
|
||||
"sha256": "a977e2319ff77881af9ac54964d84b2f98fa390ff83ec52a0901f6f9aad79992",
|
||||
"bytes": 23074,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/kj__nodes__image_nodes.py",
|
||||
"sha256": "774d650968f7c46a8813b9030faae1f3b6491a56341a35d311e0137361804a91",
|
||||
"bytes": 205444,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/kj__pyproject.toml",
|
||||
"sha256": "fbfec982d1a02710b29706a2b6db96800c2cfd431dedffaaffde4605aded33a1",
|
||||
"bytes": 504,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/kj__utility__utility.py",
|
||||
"sha256": "8c391d63a3d7e9ef094126896d5b7c19a52bdc3a69320bad1987967af3bdfd5b",
|
||||
"bytes": 3689,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/lora-absent.json",
|
||||
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
|
||||
"bytes": 3,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/lora-commit.txt",
|
||||
"sha256": "95a11fd98c9a7cbdff524011d6e94b58fa391a0c421960893d5e2a94f70c3ffb",
|
||||
"bytes": 256,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/lora-tag.json",
|
||||
"sha256": "e84e8dd249832be83dca8f0f4485bfd022e04bc4250d5afe1474b2f6470fea64",
|
||||
"bytes": 145,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/lora-tag.txt",
|
||||
"sha256": "95a11fd98c9a7cbdff524011d6e94b58fa391a0c421960893d5e2a94f70c3ffb",
|
||||
"bytes": 256,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/lora-tree.json",
|
||||
"sha256": "803620c4f059b87ed30943bf6952d6483efca9dc319de8760bc8e5fb9e9134d9",
|
||||
"bytes": 142146,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/lora__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"bytes": 35149,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/lora__comfy__sd.py",
|
||||
"sha256": "3cf8f0aa0e40344d9a455064812f2b371b1464a069b73a041d56b7c15324f9c0",
|
||||
"bytes": 106611,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/lora__folder_paths.py",
|
||||
"sha256": "1e9e27a040a1c8379d7b75c29abf584d2330583e70877b32face9e581057015e",
|
||||
"bytes": 19027,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/lora__nodes.py",
|
||||
"sha256": "e09534d2c275b2bd389ba7d28677a24d86ce174cdb2419f3d424ff5e50b5d62a",
|
||||
"bytes": 103485,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree-members.json",
|
||||
"sha256": "b7c622b976c8a5e960e17b9bb3e67f53127ae1a093f59e6be33c9ebc4b629ea2",
|
||||
"bytes": 36122,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree-range-proof.json",
|
||||
"sha256": "d4bf41580bb8ce48f60b8d1fa3f8b66a9cb09f68e3990bcf66efd8aac1aa4a56",
|
||||
"bytes": 7245,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree-registry.json",
|
||||
"sha256": "58f02e66d576ed0076bedf9b0691941464e400dcb723629f377b06d3f790b123",
|
||||
"bytes": 439,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__LICENSE",
|
||||
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
|
||||
"bytes": 1106,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree____init__.py",
|
||||
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
|
||||
"bytes": 5504,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__py__constants.py",
|
||||
"sha256": "50dee946013b1d88d01fe9d63c2a7ab4d4c59be218cf80171f3542b43f0d8558",
|
||||
"bytes": 238,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__py__image_comparer.py",
|
||||
"sha256": "43ccce9b6f9413d5196ce4a7a3ef544969ae1ce2b52c44345f6cc8fb28c596fc",
|
||||
"bytes": 1360,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__py__utils.py",
|
||||
"sha256": "57038116cf0c6ebc417e998a5c36c4b7e74e73d61d495c20e5fe18a6ad8afbc7",
|
||||
"bytes": 5749,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__pyproject.toml",
|
||||
"sha256": "8287e30a551ac6574f6d34a0889910091e6ae3eb74e9189f25ee17cd672a53a8",
|
||||
"bytes": 351,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__web__comfyui__base_node.js",
|
||||
"sha256": "c3ff5ba72f284f8e894dd464b2936f01369838291fb817cc4e304df576a1eba6",
|
||||
"bytes": 12849,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__web__comfyui__constants.js",
|
||||
"sha256": "01bddadcbeb27f4f3519987fb1e3f8fbed5b8c5e0bff1180e0f6cf3348c89ad9",
|
||||
"bytes": 2744,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__web__comfyui__image_comparer.js",
|
||||
"sha256": "b6dd39b71a2722774ecad101e12823220c6905f9f2a3d1cefca077e1aaa08a49",
|
||||
"bytes": 14371,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__web__comfyui__label.js",
|
||||
"sha256": "5a0f8d72d0be3c6573477943a18295310f82dd4b1d99a506517bb6956af1790d",
|
||||
"bytes": 6910,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__web__comfyui__utils.js",
|
||||
"sha256": "0bd26067a033689d5b1dfbe6faec2855bb2a8947d1031a5060e48ed1415111a7",
|
||||
"bytes": 33090,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__web__comfyui__utils_canvas.js",
|
||||
"sha256": "1da57fc68e7e57b28d0396e237b5ac98fc21f0933d27f3dc1f6aa11e5fb09229",
|
||||
"bytes": 8267,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/rgthree__web__comfyui__utils_widgets.js",
|
||||
"sha256": "211ec018039e3bd5bcc78cafd4c64db33bcb1f02df60c93d45ff76ac96718b18",
|
||||
"bytes": 10967,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/sources.json",
|
||||
"sha256": "7e1ea2fd26c4a5a75b453182fd25a681eb703a5986cd22ee9766e610b8f38ba3",
|
||||
"bytes": 46604,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/tt-absent.json",
|
||||
"sha256": "60f06df51c76772bd82e03fb6d5ec33f7e8ad33ca4528b6f5b3584f692caf06b",
|
||||
"bytes": 44,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/tt-commit.txt",
|
||||
"sha256": "f7314d7a7d6f977f538a9d2e387cb783c3c8a3882aed72366c0602c195f8591b",
|
||||
"bytes": 242,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/tt-tag.json",
|
||||
"sha256": "6b830048bfdea999e0649bcdfe236a63ac02c856a7f52a3826a17e1f08d8ece2",
|
||||
"bytes": 168,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/tt-tag.txt",
|
||||
"sha256": "f7314d7a7d6f977f538a9d2e387cb783c3c8a3882aed72366c0602c195f8591b",
|
||||
"bytes": 242,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/tt-tree.json",
|
||||
"sha256": "bd2de9bc7d3c17b0fede4a11d8c6fb1411c855de2ce1a3267603582ac01fa00d",
|
||||
"bytes": 838,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/tt____init__.py",
|
||||
"sha256": "8f8bc02db78b29be1c8623e0b092eee9b7243db4756fad14748cce49f8ec460e",
|
||||
"bytes": 406,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/tt__nodes__resolution_selector.py",
|
||||
"sha256": "b4b074e5edaf047034afed54acb7f569842169fbdb83689a332b650c163a2ace",
|
||||
"bytes": 3004,
|
||||
"purpose": "准确版本必要文本、许可证或Git/registry/Range身份元数据;原字节保存,不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/基础Flux2Klein图生图固定参考中文说明.md",
|
||||
"sha256": "26a31c544443923abe7f68523e34f05d92258b345a23f1e4863e014ec5fca2ec",
|
||||
"bytes": 87812,
|
||||
"purpose": "本批实际中文说明或交付边界与自测报告"
|
||||
},
|
||||
{
|
||||
"path": "e2e/flux2-img-document.mjs",
|
||||
"sha256": "3a33c1d882b0586f2e9a91a5701964d04a95e0c52975f5aadd0f91a90adafe99",
|
||||
"bytes": 15711,
|
||||
"purpose": "既有Drawer双屏GET验证与前台服务finally回收;不改产品组件"
|
||||
},
|
||||
{
|
||||
"path": "e2e/run-flux2-img-document.py",
|
||||
"sha256": "08f291b172e3730c2fd3c128ed7245dabc523d064cf9918d69be3b0026d27d24",
|
||||
"bytes": 3181,
|
||||
"purpose": "既有Drawer双屏GET验证与前台服务finally回收;不改产品组件"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
"Offline batch evidence tooling; no upstream execution."
|
||||
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
FILES = [
|
||||
("calliope-backend/src/calliope/co" + "mfyui/fixed_document.py"),
|
||||
("calliope-backend/tests/test_flux2_img_fixed_document.py"),
|
||||
"e2e/run-flux2-img-document.py",
|
||||
] + [str(p.relative_to(ROOT)) for p in sorted(OUT.glob("*.py"))]
|
||||
|
||||
|
||||
def main():
|
||||
for command in [["check"], ["format", "--check"]]:
|
||||
subprocess.run(
|
||||
[
|
||||
"uv",
|
||||
"run",
|
||||
"--project",
|
||||
"calliope-backend",
|
||||
"--offline",
|
||||
"ruff",
|
||||
*command,
|
||||
"--config",
|
||||
"calliope-backend/pyproject.toml",
|
||||
*FILES,
|
||||
],
|
||||
cwd=ROOT,
|
||||
check=True,
|
||||
)
|
||||
subprocess.run(["node", "--check", "e2e/flux2-img-document.mjs"], cwd=ROOT, check=True)
|
||||
(OUT / "python-check-files.json").write_text(json.dumps(FILES, indent=2) + "\n")
|
||||
print("PASS", len(FILES), (("authored Python files and one " + "JS") + " syntax check"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,78 @@
|
||||
"Collect final completed browser evidence and independently verify port release."
|
||||
|
||||
import collections
|
||||
import json
|
||||
import re
|
||||
import shutil
|
||||
import socket
|
||||
from pathlib import Path
|
||||
from urllib.parse import urlsplit
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
LOCAL = ROOT / (".local-evidence/flux2-img-document/browser")
|
||||
|
||||
|
||||
def main():
|
||||
stopped = json.loads((LOCAL / "service-stop.json").read_bytes())
|
||||
assert stopped["ports_released"] == [8247, 5173]
|
||||
ports = []
|
||||
for port in [8247, 5173]:
|
||||
with socket.socket() as s:
|
||||
s.settimeout(1)
|
||||
result = s.connect_ex(("127.0.0.1", port))
|
||||
assert result != 0
|
||||
ports.append(dict(port=port, connect_ex=result, connection_refused=True))
|
||||
data = json.loads((LOCAL / "browser-results.json").read_bytes())
|
||||
assert not data["errors"] and data["viewports"] == [1440, 390]
|
||||
backend = collections.Counter(
|
||||
re.findall(r'"GET ([^ ]+) HTTP/1.1"', (LOCAL / "service-0.log").read_text())
|
||||
)
|
||||
polling = {p: n for p, n in backend.items() if p in ["/api/events", "/api/jobs"]}
|
||||
fixed = {p: n for p, n in backend.items() if p not in polling}
|
||||
browser = collections.Counter(urlsplit(r["url"]).path for r in data["requests"])
|
||||
intercepted = collections.Counter(urlsplit(r["url"]).path for r in data["interceptions"])
|
||||
expected = browser.copy()
|
||||
for p, n in intercepted.items():
|
||||
expected[p] -= n
|
||||
expected["/api/workflows"] += 1 # Foreground readiness probe, explicitly separate.
|
||||
# Browser result is flushed just before browser.close; a final timer GET can
|
||||
# reach the server after that snapshot. Keep its exact count separately.
|
||||
polling_delta = {p: backend[p] - expected[p] for p in ["/api/jobs", "/api/events"]}
|
||||
assert all(abs(n) <= 1 for n in polling_delta.values())
|
||||
assert {p: n for p, n in expected.items() if p not in polling_delta} == fixed
|
||||
|
||||
counts = dict(
|
||||
fixed_count=sum(fixed.values()),
|
||||
fixed_paths=fixed,
|
||||
polling_count=sum(polling.values()),
|
||||
polling_paths=polling,
|
||||
readiness_gets=1,
|
||||
detail_fixture_intercepts=len(data["interceptions"]),
|
||||
fixed_paths_browser_minus_fixtures_plus_readiness_matches_backend=True,
|
||||
polling_snapshot_delta=polling_delta,
|
||||
polling_snapshot_tolerance=1,
|
||||
)
|
||||
(OUT / "backend-request-counts.json").write_text(
|
||||
json.dumps(counts, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
(OUT / "ports-independent.json").write_text(json.dumps(ports, indent=2) + "\n")
|
||||
for name in ["browser-results.json", "service-stop.json", "service-0.log", "service-1.log"]:
|
||||
shutil.copyfile(LOCAL / name, OUT / name.replace(".log", ".txt"))
|
||||
print(
|
||||
"PASS browser",
|
||||
data["assertion_count"],
|
||||
data["assertionGroups"],
|
||||
"fixed/polling/fixture",
|
||||
data["request_accounting"]["fixed_count"],
|
||||
data["request_accounting"]["polling_count"],
|
||||
len(data["interceptions"]),
|
||||
"backend",
|
||||
counts["fixed_count"],
|
||||
counts["polling_count"],
|
||||
("readiness1; independently refused8247/5173"),
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,17 @@
|
||||
第66批仅基础 Flux2 Klein 图生图中文参考说明。原PR25、分支 `agent/agent/a64a969a6a44`、base `main`;基线 `a7d3167b362734df7eaa1efd2c141f292a878299`。
|
||||
|
||||
新增36保存位置(35标量含上传状态+1完整A/B历史列表)、1完整1396字符MarkdownNote。旧46块1760位置+49注释逐对象不变,现47图1796+50仅参考,尚108目标图无本类参考块;155完整定稿0、实跑0、本轮新增转换0,全量未完成。
|
||||
|
||||
原图25节点/31物理边,无子图;142为mode4,其余24为mode0。独立具名键检查为0;五个明确[]、Label和两转接缺键与null分列。说明覆盖参考latent正负条件链、空latent初始采样、完整中文/空串负向、LoRA旁路、mask未接、TT→Resize→两转接→四处缓存覆盖、A生成/B原图历史对象、独立clipspace属性、模型引用/Note作者建议以及PNG正式输出条件。准确0.8.2步数范围1~4096,与保存12/默认20分列。
|
||||
|
||||
来源固定core0.8.2、独立LoRA core0.21.1、frontend1.36.13及TT完整提交,保留tag/commit/tree/blob/SHA/许可/精确行号;只取必要文本,不执行上游。KJ1.3.9与rgthree1.0.2604070017通过官方registry元数据、HTTP206 Range中央目录和必要文本成员独立核对,保留成员SHA256和CRC。**未获取完整包,完整包SHA与Git绑定未知**,不以ETag/成员SHA冒充;这限制了完整发布包的独立真实性验证。TT准确树无LICENSE,许可未知。Label无提供方/版本,不把rgthree比较器包的身份套给它。UE/tab/宿主恢复分层未知。
|
||||
|
||||
准确core SaveImage无IMAGE出口,而源图保存该出口;比较器准确包继承PreviewImage返回ui.a_images/ui.b_images,与源images口分列。冲突不补线、不借后版补定义、不扩大转换执行资格。源原字节/规范全图/代码拥有定义摘要绑定,调用方重算不能扩信任。
|
||||
|
||||
最终275后台通过(262专项+13库)。15自写Python Ruff/format、JS语法、前端build、离线wheel/sdist三资源字节、双次重建/渲染一致通过。最终1744浏览断言通过(新624+旧46图1104+汇总2+共享14);浏览固定GET154/轮询12,后端固定149含就绪1/轮询12,6详情夹具、字体CSS拦截分列;固定路径逐条对账,轮询差分{'/api/jobs': 0, '/api/events': 0}按原数单列。详见browser-accounting.txt、browser-results.json、backend-request-counts.json;截图16张仅附卡,不入仓,4代表图目验。一次说明范围修订后重验,报告不累加重复测试计数。未机械重跑未改大套件;5旧失败沿用历史记录,不称全仓绿。既有前端构建提示未扩修。
|
||||
|
||||
真实a7d3167旧代码隔离库仅1更新154跳过,其余154整行不变;幂等、精确回退、再升级、升级前后用户修改各1冲突/29列保护通过。155/排除1、16/139、1217/3660/294、全停用/未检查/空时间戳保持。163原件/191资源、28profile/9候选/六差分、转换执行资格和Drawer整文件/CSS/依赖不动。
|
||||
|
||||
复现入口validation-commands.txt;逐文件用途/SHA在changed-files.json,实际说明actual-2_flux2_klein_图生图.json与独立中文文档,冻结资源/升级保护/来源/确定性分别见frozen-resource-check.json、import-protection.json、source-check.json、repeatability.json。清单自身不做递归SHA;完整提交及提供方状态在任务卡附件final-head.json。
|
||||
|
||||
待确认:目标模型/素材/许可/兼容/设备、UE/tab恢复、目录权限/history和真实效果,以及完整包SHA/Git绑定。当前无需机器窗口。未连接目标、停止TTS、启动ComfyUI、构造prompt、执行上游/SDK/模型/GPU/媒体/种子/状态/缓存显存,未下载权重素材字体运行库、增依赖、付费、写在线库、合并部署。155全量完成审核后才发布。
|
||||
@@ -0,0 +1,26 @@
|
||||
hint: Using 'master' as the name for the initial branch. This default branch name
|
||||
hint: is subject to change. To configure the initial branch name to use in all
|
||||
hint: of your new repositories, which will suppress this warning, call:
|
||||
hint:
|
||||
hint: git config --global init.defaultBranch <name>
|
||||
hint:
|
||||
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
|
||||
hint: 'development'. The just-created branch can be renamed via this command:
|
||||
hint:
|
||||
hint: git branch -m <name>
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.21.1 -> FETCH_HEAD
|
||||
hint: Using 'master' as the name for the initial branch. This default branch name
|
||||
hint: is subject to change. To configure the initial branch name to use in all
|
||||
hint: of your new repositories, which will suppress this warning, call:
|
||||
hint:
|
||||
hint: git config --global init.defaultBranch <name>
|
||||
hint:
|
||||
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
|
||||
hint: 'development'. The just-created branch can be renamed via this command:
|
||||
hint:
|
||||
hint: git branch -m <name>
|
||||
From https://github.com/Comfy-Org/ComfyUI_frontend
|
||||
* tag v1.36.13 -> FETCH_HEAD
|
||||
kj b'{"changelog":"","createdAt":"2026-04-24T09:32:28.326616Z","dependencies":["pillow\\u003e=10.3.0","color-matcher","matplotlib"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/kijai/comfyui-kjnodes/1.3.9/node.zip","id":"dc8d4038-a1e6-4f8f-8d27-948fbc632d5c","node_id":"comfyui-kjnodes","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"1.3.9"}\n'
|
||||
rgthree b'{"changelog":"","createdAt":"2026-04-07T04:19:24.689627Z","dependencies":[],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/rgthree/rgthree-comfy/1.0.2604070017/node.zip","id":"b24c7ab2-0aca-4338-b338-bf1e5ae046b2","node_id":"rgthree-comfy","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"1.0.2604070017"}\n'
|
||||
@@ -0,0 +1,156 @@
|
||||
"Range-read exact registry ZIP directory and selected necessary text members."
|
||||
|
||||
import datetime
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
import urllib.request
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
REF = Path(__file__).resolve().parent.parent / "flux2-img-reference"
|
||||
|
||||
|
||||
class Remote(io.RawIOBase):
|
||||
def __init__(self, url):
|
||||
self.url = url
|
||||
self.pos = 0
|
||||
self.log = []
|
||||
with urllib.request.urlopen(urllib.request.Request(url, method="HEAD"), timeout=30) as r:
|
||||
self.size = int(r.headers["Content-Length"])
|
||||
self.headers = dict(r.headers)
|
||||
|
||||
def seekable(self):
|
||||
return True
|
||||
|
||||
def readable(self):
|
||||
return True
|
||||
|
||||
def tell(self):
|
||||
return self.pos
|
||||
|
||||
def seek(self, off, whence=0):
|
||||
self.pos = off if whence == 0 else self.pos + off if whence == 1 else self.size + off
|
||||
return self.pos
|
||||
|
||||
def read(self, n=-1):
|
||||
n = min(self.size - self.pos, n if n >= 0 else self.size - self.pos)
|
||||
if n <= 0:
|
||||
return b""
|
||||
a = self.pos
|
||||
b = a + n - 1
|
||||
req = urllib.request.Request(self.url, headers={"Range": f"bytes={a}-{b}"})
|
||||
with urllib.request.urlopen(req, timeout=40) as r:
|
||||
assert r.status == 206 and r.headers["Content-Range"].startswith(f"bytes {a}-{b}/")
|
||||
raw = r.read(n + 1)
|
||||
assert len(raw) == n
|
||||
self.pos += n
|
||||
self.log.append(dict(start=a, end=b, sha256=hashlib.sha256(raw).hexdigest()))
|
||||
return raw
|
||||
|
||||
|
||||
def main():
|
||||
doc = json.loads((REF / "sources.json").read_bytes())
|
||||
doc["sources"] = [e for e in doc["sources"] if e["id"] not in ["kj", "rgthree"]]
|
||||
for key, wanted in [
|
||||
(
|
||||
"kj",
|
||||
[
|
||||
"__init__.py",
|
||||
"nodes/image_nodes.py",
|
||||
"utility/utility.py",
|
||||
"LICENSE",
|
||||
"pyproject.toml",
|
||||
],
|
||||
),
|
||||
(
|
||||
"rgthree",
|
||||
[
|
||||
"__init__.py",
|
||||
"py/image_comparer.py",
|
||||
"py/constants.py",
|
||||
"py/utils.py",
|
||||
"web/comfyui/image_comparer.js",
|
||||
"web/comfyui/base_node.js",
|
||||
"web/comfyui/utils.js",
|
||||
"web/comfyui/label.js",
|
||||
"web/comfyui/utils_widgets.js",
|
||||
"web/comfyui/utils_canvas.js",
|
||||
"web/comfyui/constants.js",
|
||||
"LICENSE",
|
||||
"pyproject.toml",
|
||||
],
|
||||
),
|
||||
]:
|
||||
m = json.loads((REF / (key + "-registry.json")).read_bytes())
|
||||
r = Remote(m["downloadUrl"])
|
||||
with zipfile.ZipFile(r) as z:
|
||||
infos = [
|
||||
dict(
|
||||
name=i.filename,
|
||||
crc=i.CRC,
|
||||
size=i.file_size,
|
||||
compressed=i.compress_size,
|
||||
offset=i.header_offset,
|
||||
)
|
||||
for i in z.infolist()
|
||||
]
|
||||
(REF / (key + "-members.json")).write_text(json.dumps(infos, indent=2) + "\n")
|
||||
for f in wanted:
|
||||
if f not in z.namelist():
|
||||
print("MISSING", key, f)
|
||||
continue
|
||||
raw = z.read(f)
|
||||
raw.decode()
|
||||
name = key + "__" + f.replace("/", "__")
|
||||
(REF / name).write_bytes(raw)
|
||||
doc["sources"].append(
|
||||
dict(
|
||||
id=key,
|
||||
file=f,
|
||||
local_file=name,
|
||||
url=m["downloadUrl"],
|
||||
commit=f"{m['node_id']}@{m['version']};Git绑定未知",
|
||||
tag=m["version"],
|
||||
tree="发布包中央目录;Git tree未知",
|
||||
repo=m["node_id"],
|
||||
git_commit_binding="unknown",
|
||||
package_sha256="unknown: Range仅必要文本,未获取完整包",
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
member_crc32=z.getinfo(f).CRC,
|
||||
acquisition_time=datetime.datetime.now(datetime.timezone.utc).isoformat(),
|
||||
license_file=key + "__LICENSE",
|
||||
transport=(
|
||||
"HTTP206 Range selected text ZIP members; CRC checked by zipfile"
|
||||
),
|
||||
applicability="本图准确cnr_id/ver;不证明目标安装或Label身份",
|
||||
)
|
||||
)
|
||||
(REF / (key + "-range-proof.json")).write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
url=r.url,
|
||||
size=r.size,
|
||||
headers=r.headers,
|
||||
ranges=r.log,
|
||||
package_sha256=("unknown; full archive intentionally not fetched"),
|
||||
git_binding="unknown",
|
||||
),
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print(
|
||||
key,
|
||||
"size",
|
||||
r.size,
|
||||
"ranges",
|
||||
len(r.log),
|
||||
"bytes",
|
||||
sum(x["end"] - x["start"] + 1 for x in r.log),
|
||||
)
|
||||
(REF / "sources.json").write_text(json.dumps(doc, ensure_ascii=False, indent=2) + "\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,149 @@
|
||||
"Acquire necessary pinned text only; no upstream imports or execution."
|
||||
|
||||
import datetime
|
||||
import hashlib
|
||||
import json
|
||||
import shutil
|
||||
import subprocess
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "flux2-img-reference"
|
||||
|
||||
|
||||
def main():
|
||||
old = REF.parent / "flux2-reference"
|
||||
rows = []
|
||||
for e in json.loads((old / "sources.json").read_bytes())["sources"]:
|
||||
if e["id"] not in ["core", "tt"]:
|
||||
continue
|
||||
shutil.copyfile(old / e["local_file"], REF / e["local_file"])
|
||||
rows.append(dict(e, applicability="本图独立声明core0.8.2或TT完整提交;目标安装/恢复未知"))
|
||||
for key in ["core", "tt"]:
|
||||
for p in old.glob(key + "-*"):
|
||||
shutil.copyfile(p, REF / p.name)
|
||||
specs = [
|
||||
(
|
||||
"lora",
|
||||
"Comfy-Org/ComfyUI",
|
||||
"v0.21.1",
|
||||
["nodes.py", "folder_paths.py", "comfy/sd.py", "LICENSE"],
|
||||
),
|
||||
(
|
||||
"frontend",
|
||||
"Comfy-Org/ComfyUI_frontend",
|
||||
"v1.36.13",
|
||||
[
|
||||
"package.json",
|
||||
"pnpm-lock.yaml",
|
||||
"src/scripts/widgets.ts",
|
||||
"src/scripts/app.ts",
|
||||
"src/extensions/core/widgetInputs.ts",
|
||||
"src/extensions/core/rerouteNode.ts",
|
||||
"src/extensions/core/noteNode.ts",
|
||||
"src/extensions/core/uploadImage.ts",
|
||||
"src/lib/litegraph/src/LGraphNode.ts",
|
||||
"src/lib/litegraph/src/Reroute.ts",
|
||||
"src/utils/migration/migrateReroute.ts",
|
||||
"src/utils/executionUtil.ts",
|
||||
"src/lib/litegraph/LICENSE",
|
||||
"LICENSE",
|
||||
],
|
||||
),
|
||||
]
|
||||
for key, repo, tag, files in specs:
|
||||
cache = ROOT / ".local-evidence" / ("flux2-img-" + key + "-git")
|
||||
cache.mkdir(parents=True, exist_ok=True)
|
||||
subprocess.run(["git", "init", "--bare", str(cache)], check=True, stdout=subprocess.DEVNULL)
|
||||
subprocess.run(
|
||||
[
|
||||
"git",
|
||||
"-C",
|
||||
str(cache),
|
||||
"fetch",
|
||||
"--filter=blob:none",
|
||||
"--depth=1",
|
||||
"https://github.com/" + repo + ".git",
|
||||
"refs/tags/" + tag,
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
|
||||
def git(*args):
|
||||
return subprocess.check_output(["git", "-C", str(cache), *args])
|
||||
|
||||
rev = git("rev-parse", "FETCH_HEAD^{commit}").decode().strip()
|
||||
tree = git("rev-parse", rev + "^{tree}").decode().strip()
|
||||
(REF / (key + "-commit.txt")).write_bytes(git("cat-file", "commit", rev))
|
||||
(REF / (key + "-tag.txt")).write_bytes(git("cat-file", "-p", "FETCH_HEAD"))
|
||||
(REF / (key + "-tag.json")).write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
ref="refs/tags/" + tag,
|
||||
commit=rev,
|
||||
object=git("rev-parse", "FETCH_HEAD").decode().strip(),
|
||||
),
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
entries = []
|
||||
for line in git("ls-tree", "-r", rev).decode().splitlines():
|
||||
head, path = line.split("\t", 1)
|
||||
mode, kind, sha = head.split()
|
||||
entries.append(dict(path=path, mode=mode, type=kind, sha=sha))
|
||||
(REF / (key + "-tree.json")).write_text(
|
||||
json.dumps(dict(sha=tree, truncated=False, tree=entries), indent=2) + "\n"
|
||||
)
|
||||
missing = []
|
||||
for f in files:
|
||||
ent = next((x for x in entries if x["path"] == f), None)
|
||||
if ent is None:
|
||||
missing.append(f)
|
||||
continue
|
||||
raw = git("show", rev + ":" + f)
|
||||
name = key + "__" + f.replace("/", "__")
|
||||
(REF / name).write_bytes(raw)
|
||||
rows.append(
|
||||
dict(
|
||||
id=key,
|
||||
repo=repo,
|
||||
file=f,
|
||||
local_file=name,
|
||||
commit=rev,
|
||||
tree=tree,
|
||||
tag=tag,
|
||||
url=f"https://raw.githubusercontent.com/{repo}/{rev}/{f}",
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
git_blob_sha1=ent["sha"],
|
||||
acquisition_time=datetime.datetime.now(datetime.timezone.utc).isoformat(),
|
||||
license_file=key + "__LICENSE",
|
||||
transport="filtered git; selected text blobs only",
|
||||
applicability="本图独立声明版本;UE/tab/宿主恢复未知",
|
||||
)
|
||||
)
|
||||
(REF / (key + "-absent.json")).write_text(json.dumps(missing, indent=2) + "\n")
|
||||
for key, node, version in [
|
||||
("kj", "comfyui-kjnodes", "1.3.9"),
|
||||
("rgthree", "rgthree-comfy", "1.0.2604070017"),
|
||||
]:
|
||||
url = f"https://api.comfy.org/nodes/{node}/versions/{version}"
|
||||
try:
|
||||
with urllib.request.urlopen(url, timeout=30) as r:
|
||||
raw = r.read(200001)
|
||||
assert len(raw) <= 200000
|
||||
(REF / (key + "-registry.json")).write_bytes(raw)
|
||||
print(key, raw[:1000])
|
||||
except Exception as e:
|
||||
(REF / (key + "-registry-unavailable.json")).write_text(
|
||||
json.dumps(dict(url=url, error=str(e)))
|
||||
)
|
||||
(REF / "sources.json").write_text(
|
||||
json.dumps(dict(sources=rows), ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,771 @@
|
||||
{
|
||||
"base": "a7d3167b362734df7eaa1efd2c141f292a878299",
|
||||
"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": "a7d3167b362734df7eaa1efd2c141f292a878299",
|
||||
"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": 36,
|
||||
"new_notes": 1,
|
||||
"old_saved": 1760,
|
||||
"old_notes": 49,
|
||||
"overviews": 47,
|
||||
"all_disabled": true,
|
||||
"doc_done": 0,
|
||||
"executed": 0
|
||||
}
|
||||
@@ -0,0 +1,396 @@
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
|
||||
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b",
|
||||
"git_blob_sha1": "d603c64b9f633dd678437e1cd6fe517489d1609d",
|
||||
"fields": [
|
||||
{
|
||||
"node": 102,
|
||||
"pointer": "/nodes/1/widgets_values/0",
|
||||
"value": 5,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 105,
|
||||
"pointer": "/nodes/2/widgets_values/0",
|
||||
"value": 1029966337642000,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 105,
|
||||
"pointer": "/nodes/2/widgets_values/1",
|
||||
"value": "randomize",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 100,
|
||||
"pointer": "/nodes/3/widgets_values/0",
|
||||
"value": "euler",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/nodes/8/widgets_values/0",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/nodes/8/widgets_values/1",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/nodes/8/widgets_values/2",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 110,
|
||||
"pointer": "/nodes/9/widgets_values/0",
|
||||
"value": "flux2-vae.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 107,
|
||||
"pointer": "/nodes/10/widgets_values/0",
|
||||
"value": "qwen_3_8b_fp8mixed.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 107,
|
||||
"pointer": "/nodes/10/widgets_values/1",
|
||||
"value": "flux2",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 107,
|
||||
"pointer": "/nodes/10/widgets_values/2",
|
||||
"value": "default",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 106,
|
||||
"pointer": "/nodes/11/widgets_values/0",
|
||||
"value": "Flux\\flux-2-klein-base-9b-fp8.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 106,
|
||||
"pointer": "/nodes/11/widgets_values/1",
|
||||
"value": "default",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 101,
|
||||
"pointer": "/nodes/13/widgets_values/0",
|
||||
"value": 12,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 101,
|
||||
"pointer": "/nodes/13/widgets_values/1",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 101,
|
||||
"pointer": "/nodes/13/widgets_values/2",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 145,
|
||||
"pointer": "/nodes/15/widgets_values/0",
|
||||
"value": [
|
||||
{
|
||||
"name": "A",
|
||||
"selected": true,
|
||||
"url": "/api/view?filename=rgthree.compare._temp_uvrnh_00001_.png&type=temp&subfolder=&rand=0.18341613782929667"
|
||||
},
|
||||
{
|
||||
"name": "B",
|
||||
"selected": true,
|
||||
"url": "/api/view?filename=rgthree.compare._temp_uvrnh_00002_.png&type=temp&subfolder=&rand=0.9378831481207519"
|
||||
}
|
||||
],
|
||||
"json_type": "list",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/0",
|
||||
"value": 512,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/1",
|
||||
"value": 512,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/2",
|
||||
"value": "nearest-exact",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/3",
|
||||
"value": "resize",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/4",
|
||||
"value": "0, 0, 0",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/5",
|
||||
"value": "center",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/6",
|
||||
"value": 2,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/7",
|
||||
"value": "cpu",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 144,
|
||||
"pointer": "/nodes/19/widgets_values/0",
|
||||
"value": false,
|
||||
"json_type": "bool",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 144,
|
||||
"pointer": "/nodes/19/widgets_values/1",
|
||||
"value": "1080x1920 (9:16) (竖屏)",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 144,
|
||||
"pointer": "/nodes/19/widgets_values/2",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 144,
|
||||
"pointer": "/nodes/19/widgets_values/3",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 76,
|
||||
"pointer": "/nodes/20/widgets_values/0",
|
||||
"value": "ScreenShot_2026-06-03_153527_199.png",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 76,
|
||||
"pointer": "/nodes/20/widgets_values/1",
|
||||
"value": "image",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 109,
|
||||
"pointer": "/nodes/21/widgets_values/0",
|
||||
"value": "",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 142,
|
||||
"pointer": "/nodes/22/widgets_values/0",
|
||||
"value": "Flux\\Flux2-Klein-9B-consistency-V2.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 142,
|
||||
"pointer": "/nodes/22/widgets_values/1",
|
||||
"value": 0.8,
|
||||
"json_type": "float",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 108,
|
||||
"pointer": "/nodes/23/widgets_values/0",
|
||||
"value": "将人物换成欧美人",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 9,
|
||||
"pointer": "/nodes/24/widgets_values/0",
|
||||
"value": "Flux2-Klein",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
}
|
||||
],
|
||||
"empty": [
|
||||
{
|
||||
"node": 103,
|
||||
"pointer": "/nodes/4",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 141,
|
||||
"pointer": "/nodes/5",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 140,
|
||||
"pointer": "/nodes/6",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 139,
|
||||
"pointer": "/nodes/7",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 143,
|
||||
"pointer": "/nodes/12",
|
||||
"state": "missing"
|
||||
},
|
||||
{
|
||||
"node": 104,
|
||||
"pointer": "/nodes/14",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 136,
|
||||
"pointer": "/nodes/17",
|
||||
"state": "missing"
|
||||
},
|
||||
{
|
||||
"node": 135,
|
||||
"pointer": "/nodes/18",
|
||||
"state": "missing"
|
||||
}
|
||||
],
|
||||
"nodes": 25,
|
||||
"edges": 31,
|
||||
"notes": 1,
|
||||
"named_nodes": 0,
|
||||
"modes": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
4,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"extra": {
|
||||
"frontendVersion": "1.36.13",
|
||||
"workflowRendererVersion": "LG",
|
||||
"VHS_latentpreview": false,
|
||||
"VHS_latentpreviewrate": 0,
|
||||
"VHS_MetadataImage": true,
|
||||
"VHS_KeepIntermediate": true,
|
||||
"ue_links": [],
|
||||
"links_added_by_ue": [],
|
||||
"ds": {
|
||||
"scale": 1.3090303597882107,
|
||||
"offset": [
|
||||
-1821.6332910488297,
|
||||
-493.7523197634248
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
"Independent original byte inventory; no reference-layout assumptions."
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
PATH = "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json"
|
||||
|
||||
|
||||
def inventory():
|
||||
raw = (ROOT / PATH).read_bytes()
|
||||
g = json.loads(raw)
|
||||
fields = []
|
||||
empty = []
|
||||
for i, n in enumerate(g["nodes"]):
|
||||
p = f"/nodes/{i}"
|
||||
if "widgets_values" not in n or not n["widgets_values"]:
|
||||
empty.append(
|
||||
dict(
|
||||
node=n["id"],
|
||||
pointer=p,
|
||||
state="missing"
|
||||
if "widgets_values" not in n
|
||||
else "null"
|
||||
if n["widgets_values"] is None
|
||||
else "empty_list",
|
||||
)
|
||||
)
|
||||
if n["type"] in ["Note", "MarkdownNote"]:
|
||||
continue
|
||||
for j, v in enumerate(n.get("widgets_values") or []):
|
||||
fields.append(
|
||||
dict(
|
||||
node=n["id"],
|
||||
pointer=f"{p}/widgets_values/{j}",
|
||||
value=v,
|
||||
json_type=type(v).__name__,
|
||||
scope="root",
|
||||
named=n.get("widgets_values_named"),
|
||||
)
|
||||
)
|
||||
return dict(
|
||||
path=PATH,
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
git_blob_sha1=hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest(),
|
||||
fields=fields,
|
||||
empty=empty,
|
||||
nodes=len(g["nodes"]),
|
||||
edges=len(g["links"]),
|
||||
notes=sum(n["type"] in ["Note", "MarkdownNote"] for n in g["nodes"]),
|
||||
named_nodes=sum("widgets_values_named" in n for n in g["nodes"]),
|
||||
modes=[n["mode"] for n in g["nodes"]],
|
||||
extra=g["extra"],
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
x = inventory()
|
||||
(OUT / "independent-inventory.json").write_text(
|
||||
json.dumps(x, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
print(len(x["fields"]), x["nodes"], x["edges"], x["named_nodes"], x["empty"])
|
||||
@@ -0,0 +1,3 @@
|
||||
All checks passed!
|
||||
15 files already formatted
|
||||
PASS 15 authored Python files and one JS syntax check
|
||||
@@ -0,0 +1,7 @@
|
||||
|
||||
added 255 packages, and audited 256 packages in 1s
|
||||
|
||||
59 packages are looking for funding
|
||||
run `npm fund` for details
|
||||
|
||||
found 0 vulnerabilities
|
||||
@@ -0,0 +1,23 @@
|
||||
[
|
||||
{
|
||||
"file": "fixed_document.py",
|
||||
"sha256": "537a6ac2b208da432b0444f424cb21e0342bc31b8dcc6785ff89671a814a87a4",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 47
|
||||
},
|
||||
{
|
||||
"file": "source_reviews.json",
|
||||
"sha256": "5edef9b465dd6c0f367b948964d862bce7841af95821680ff60c6a34d7646ce0",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 47
|
||||
},
|
||||
{
|
||||
"file": "library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 47
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,2 @@
|
||||
kj size 24806185 ranges 18 bytes 66014
|
||||
rgthree size 4054501 ranges 42 bytes 46869
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json": "41d23655c4c543bf6da2a46746876d78b1ff5597a66b9df1d5cf19104c936718"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"port": 8247,
|
||||
"connect_ex": 111,
|
||||
"connection_refused": true
|
||||
},
|
||||
{
|
||||
"port": 5173,
|
||||
"connect_ex": 111,
|
||||
"connection_refused": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25",
|
||||
"state": "open",
|
||||
"merged": false,
|
||||
"number": 25,
|
||||
"head": "agent/agent/a64a969a6a44",
|
||||
"head_sha": "a7d3167b362734df7eaa1efd2c141f292a878299",
|
||||
"base": "main"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
[
|
||||
"calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"calliope-backend/tests/test_flux2_img_fixed_document.py",
|
||||
"e2e/run-flux2-img-document.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/add_sources.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/build_definition.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/check_code.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/collect_browser.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/fetch_packages.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/fetch_sources.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/inventory.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/rebuild.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/recompute.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/render_report.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/repeat.py",
|
||||
"docs/hel-892/flux2-img-document-evidence/verify_sources.py"
|
||||
]
|
||||
@@ -0,0 +1,64 @@
|
||||
"Offline batch evidence tooling; no upstream execution."
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
|
||||
from build_definition import OUT, PATHS, REPO, build, canonical
|
||||
|
||||
BASE = "a7d3167b362734df7eaa1efd2c141f292a878299"
|
||||
RESOURCE = ("calliope-backend/src/calliope/" + "co") + "mfyui/source_reviews.json"
|
||||
|
||||
|
||||
def build_all():
|
||||
previous = json.loads(subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO))
|
||||
reviews = json.loads(json.dumps(previous, ensure_ascii=False))
|
||||
for i, path in enumerate(PATHS):
|
||||
block = build(i)
|
||||
assert reviews[path]["source_sha"] == block["source_sha1"]
|
||||
assert "fixed_version_document" not in previous[path]
|
||||
reviews[path]["fixed_version_document"] = block
|
||||
return reviews, previous
|
||||
|
||||
|
||||
def main():
|
||||
current = json.loads((REPO / RESOURCE).read_bytes())
|
||||
reviews, _previous = build_all()
|
||||
(REPO / RESOURCE).write_text(json.dumps(reviews, ensure_ascii=False, indent=2) + "\n")
|
||||
pins = {}
|
||||
for i, path in enumerate(PATHS):
|
||||
block = reviews[path]["fixed_version_document"]
|
||||
pins[path] = hashlib.sha256(canonical(block)).hexdigest()
|
||||
(OUT / f"definition-{i}.json").write_text(
|
||||
json.dumps(block, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
# Explicit maintenance of the code-owned allowlist, never trust runtime caller digests.
|
||||
module = REPO / (("calliope-backend/src/calliope/" + "co") + "mfyui/fixed_document.py")
|
||||
text = module.read_text()
|
||||
for path, digest in pins.items():
|
||||
old_block = current[path].get("fixed_version_document")
|
||||
old_digest = hashlib.sha256(canonical(old_block)).hexdigest() if old_block else None
|
||||
if old_digest and old_digest in text:
|
||||
text = text.replace(old_digest, digest)
|
||||
elif digest in text:
|
||||
pass
|
||||
else:
|
||||
text = text.replace(
|
||||
"DEFINITIONS = {",
|
||||
"DEFINITIONS = {\n (\n"
|
||||
+ "".join(
|
||||
" " + repr(path[i : i + 41]) + "\n" for i in range(0, len(path), 41)
|
||||
)
|
||||
+ " ): "
|
||||
+ repr(digest)
|
||||
+ ",",
|
||||
)
|
||||
module.write_text(text)
|
||||
(OUT / "pins.json").write_text(json.dumps(pins, ensure_ascii=False, indent=2) + "\n")
|
||||
print("PASS one new definition; other 155 reviews and old 46 blocks unchanged")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS 36 positions, 1 complete Note, 31 physical edges; exact Git and registry text identity
|
||||
PASS actual a7d3167b362734df7eaa1efd2c141f292a878299 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 47 definitions, frozen boundaries, wheel/sdist
|
||||
@@ -0,0 +1,368 @@
|
||||
"Offline batch evidence tooling; no upstream execution."
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import sqlite3
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import tempfile
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
from build_definition import OUT, PATHS, REPO, canonical
|
||||
from rebuild import BASE, RESOURCE, build_all
|
||||
|
||||
BASE = os.environ.get("TTS_IMPORT_BASE", BASE)
|
||||
|
||||
sys.path.insert(0, str(REPO / "calliope-backend"))
|
||||
|
||||
|
||||
def write(name, value):
|
||||
(OUT / name).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n")
|
||||
|
||||
|
||||
def require_packages():
|
||||
dist = REPO / "calliope-backend/dist"
|
||||
w = sorted(dist.glob("*.whl"))
|
||||
s = sorted(dist.glob("*.tar.gz"))
|
||||
if not w or not s:
|
||||
raise SystemExit(
|
||||
(
|
||||
"缺少wheel/sdist包产物,请先在仓库根执行:uv bui"
|
||||
+ "ld --project calliope-backend --"
|
||||
+ "offline"
|
||||
)
|
||||
)
|
||||
return w[-1], s[-1]
|
||||
|
||||
|
||||
def main():
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS
|
||||
from calliope.comfyui.library import rollback_batch
|
||||
from scripts.audit_library_documents import audit
|
||||
|
||||
wheels, sdists = require_packages()
|
||||
from verify_sources import main as verify_sources
|
||||
|
||||
verify_sources()
|
||||
rebuilt, previous = build_all()
|
||||
assert rebuilt == json.loads((REPO / RESOURCE).read_bytes())
|
||||
old_blocks = {
|
||||
p: r[("fixed_version_document")]
|
||||
for p, r in previous.items()
|
||||
if ("fixed_version_document") in r
|
||||
}
|
||||
assert len(old_blocks) == 46
|
||||
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()) == 1760
|
||||
for p, d in DEFINITIONS.items():
|
||||
assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d
|
||||
write(
|
||||
"review-delta.json",
|
||||
{
|
||||
"base": BASE,
|
||||
"changed_paths": PATHS,
|
||||
"other_reviews_unchanged": 155,
|
||||
"old_blocks_unchanged": 46,
|
||||
"old_saved": 1760,
|
||||
"old_notes": 49,
|
||||
"new_saved": 36,
|
||||
"new_notes": 1,
|
||||
"total_documents": 47,
|
||||
"total_saved": 1796,
|
||||
"total_notes": 50,
|
||||
},
|
||||
)
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
work = Path(directory)
|
||||
old = work / "old"
|
||||
old.mkdir()
|
||||
data = subprocess.check_output(["git", "archive", BASE, ("calliope-backend/src")], cwd=REPO)
|
||||
with tarfile.open(fileobj=io.BytesIO(data)) as a:
|
||||
a.extractall(old, filter="data")
|
||||
db = work / "library.db"
|
||||
|
||||
def run(name, historical=False):
|
||||
out = work / name
|
||||
env = {
|
||||
**os.environ,
|
||||
"PYTHONPATH": str((old if historical else REPO) / "calliope-backend/src"),
|
||||
}
|
||||
subprocess.run(
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"calliope.comfyui.library_cli",
|
||||
"import",
|
||||
"--root",
|
||||
str(REPO / "example_ComfyUI_workflows"),
|
||||
"--db",
|
||||
str(db),
|
||||
"--source-commit",
|
||||
BASE,
|
||||
"--companions",
|
||||
str(REPO / (("docs/hel-892/supplied-api/mani" + "fe") + "st.json")),
|
||||
"--output-dir",
|
||||
str(out),
|
||||
],
|
||||
cwd=REPO,
|
||||
env=env,
|
||||
check=True,
|
||||
stdout=subprocess.DEVNULL,
|
||||
)
|
||||
return json.loads((out / "import_report.json").read_bytes()), out
|
||||
|
||||
def rows():
|
||||
with sqlite3.connect(db) as c:
|
||||
c.row_factory = sqlite3.Row
|
||||
return {
|
||||
r["source_repo_path"]: dict(r) for r in c.execute(("SELECT * FROM workflows"))
|
||||
}
|
||||
|
||||
first, _ = run("historical", True)
|
||||
before = rows()
|
||||
assert first["counts"] == {"imported": 155, "user_excluded": 1}
|
||||
assert all(
|
||||
"fixed_version" in json.loads(before[p]["doc_json"])
|
||||
if BASE.startswith("3c307e0")
|
||||
else "fixed_version" not in json.loads(before[p]["doc_json"])
|
||||
for p in PATHS
|
||||
)
|
||||
assert all(
|
||||
json.loads(before[p]["doc_json"])["fixed_version"]["matched"]
|
||||
for p in DEFINITIONS
|
||||
if p not in PATHS
|
||||
)
|
||||
original = db
|
||||
protected = []
|
||||
|
||||
def protect(name):
|
||||
nonlocal db
|
||||
db = work / (name + ".db")
|
||||
with sqlite3.connect(original) as src, sqlite3.connect(db) as dst:
|
||||
src.backup(dst)
|
||||
for p in PATHS:
|
||||
dst.execute(
|
||||
(
|
||||
(("UPDATE workflows SET descripti") + "on")
|
||||
+ ("=? WHERE source_repo_path=?")
|
||||
),
|
||||
(name, p),
|
||||
)
|
||||
snapshot = rows()
|
||||
r, _ = run(name)
|
||||
assert r["counts"] == {"conflict": 1, "skipped": 154, "user_excluded": 1}
|
||||
assert rows() == snapshot and all(len(snapshot[p]) == 29 for p in PATHS)
|
||||
protected.append({"phase": name, "counts": r["counts"], "whole_rows": 1, "columns": 29})
|
||||
db = original
|
||||
|
||||
protect("user-before")
|
||||
upgrade, exported = run("upgrade")
|
||||
after = rows()
|
||||
assert upgrade["counts"] == {"updated": 1, "skipped": 154, "user_excluded": 1}
|
||||
for p, row in after.items():
|
||||
if p not in PATHS:
|
||||
assert row == before[p]
|
||||
continue
|
||||
assert len(row) == 29
|
||||
assert all(
|
||||
row[k] == before[p][k]
|
||||
for k in row.keys() - {"doc_json", "batch_id", "imported_at", "library_fingerprint"}
|
||||
)
|
||||
d = json.loads(row["doc_json"])
|
||||
assert d["fixed_version"]["matched"]
|
||||
old_doc = json.loads(before[p]["doc_json"])
|
||||
without = dict(d)
|
||||
fixed = without.pop("fixed_version")
|
||||
# Output-reference enrichment appends two existing steps after the generic
|
||||
# three for this graph. Replace only the actual original generic segment.
|
||||
generic = [
|
||||
f"打开源工作流 {p},逐项核对下列源节点与注释。",
|
||||
"补齐节点定义、模型来源及所需素材;完成输入输出映射核对。",
|
||||
"明确触发真实测试后核对产物;本批未提交生成任务。",
|
||||
]
|
||||
offset = old_doc["steps"].index(generic[0])
|
||||
assert old_doc["steps"][offset : offset + 3] == generic
|
||||
assert (
|
||||
without["steps"]
|
||||
== old_doc["steps"][:offset] + fixed["steps"] + old_doc["steps"][offset + 3 :]
|
||||
)
|
||||
without["steps"] = old_doc["steps"]
|
||||
assert without.pop("source_review_sha") != old_doc.pop("source_review_sha")
|
||||
old_doc.pop("fixed_version", None)
|
||||
assert without == old_doc
|
||||
write("actual-" + Path(p).stem + ".json", d)
|
||||
repeat, _ = run("repeat")
|
||||
assert repeat["counts"] == {"skipped": 155, "user_excluded": 1}
|
||||
with sqlite3.connect(db) as c:
|
||||
c.row_factory = sqlite3.Row
|
||||
r = rollback_batch(c, upgrade["batch_id"])
|
||||
assert len(r["files"]) == 1 and all(f["result"] == "restored" for f in r["files"])
|
||||
assert rows() == before
|
||||
redo, _ = run("redo")
|
||||
assert redo["counts"] == upgrade["counts"]
|
||||
protect("user-after")
|
||||
db = work / "fresh.db"
|
||||
fresh, exported = run("fresh")
|
||||
fresh_repeat, _ = run("fresh-repeat")
|
||||
assert fresh["counts"] == first["counts"] and fresh_repeat["counts"] == repeat["counts"]
|
||||
assert fresh["states"] == {"pending_check": 16, "needs_conversion": 139}
|
||||
companion = 0
|
||||
for row in rows().values():
|
||||
d = json.loads(row["doc_json"])
|
||||
companion += sum(
|
||||
p.get("value_origin") == ("supplied_api_companion") for p in d["params"]
|
||||
)
|
||||
assert (
|
||||
not row["is_enabled"]
|
||||
and row["doc_completed_at"] is None
|
||||
and row["exec_verified_at"] is None
|
||||
)
|
||||
assert not d["status"]["doc_done"] and not d["status"]["exec_verified"]
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
report = audit(REPO, exported)
|
||||
assert (
|
||||
report["named_values_preserved"] == 1217
|
||||
and report["unnamed_widget_nodes"] == 3660
|
||||
and companion == 294
|
||||
)
|
||||
assert report["full_documents_completed"] == report["real_executions"] == 0
|
||||
write("audit-summary.json", {k: v for k, v in report.items() if k != "files"})
|
||||
write(
|
||||
"import-protection.json",
|
||||
{
|
||||
"base": BASE,
|
||||
"first": first["counts"],
|
||||
"upgrade": upgrade["counts"],
|
||||
"repeat": repeat["counts"],
|
||||
"restored_rows": 1,
|
||||
"untouched_whole_rows": 154,
|
||||
"eligibility_unchanged": True,
|
||||
"redo": redo["counts"],
|
||||
"user_protection": protected,
|
||||
"fresh": fresh["counts"],
|
||||
"fresh_repeat": fresh_repeat["counts"],
|
||||
"states": fresh["states"],
|
||||
"source_named_fields": 1217,
|
||||
"positional_widgets": 3660,
|
||||
"companion_values": companion,
|
||||
"new_saved": 36,
|
||||
"new_notes": 1,
|
||||
"old_saved": 1760,
|
||||
"old_notes": 49,
|
||||
"overviews": 47,
|
||||
"all_disabled": True,
|
||||
"doc_done": 0,
|
||||
"executed": 0,
|
||||
},
|
||||
)
|
||||
old_reviews = json.loads(
|
||||
subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO)
|
||||
)
|
||||
current = json.loads((REPO / RESOURCE).read_bytes())
|
||||
for p in PATHS:
|
||||
current[p].pop("fixed_version_document")
|
||||
old_reviews[p].pop("fixed_version_document", None)
|
||||
assert current == old_reviews
|
||||
boundaries = json.loads(
|
||||
(
|
||||
REPO / (("docs/hel-892/h3-document-evide" + "nc") + "e/unchanged-boundaries.json")
|
||||
).read_bytes()
|
||||
)
|
||||
paths = (
|
||||
[f["path"] for f in boundaries["files"]]
|
||||
+ boundaries["frozen_conversion_and_audits"]
|
||||
+ [("calliope-backend/src/calliope/co" + "mfyui/library.py")]
|
||||
)
|
||||
kept = []
|
||||
for p in paths:
|
||||
raw = (REPO / p).read_bytes()
|
||||
assert raw == subprocess.check_output(["git", "show", f"{BASE}:{p}"], cwd=REPO)
|
||||
kept.append({"path": p, "sha256": hashlib.sha256(raw).hexdigest()})
|
||||
ui = ("calliope-web/src/lib/component" + "s/") + "WorkflowDocumentDrawer.svelte"
|
||||
drawer_bytes = (REPO / ui).read_bytes()
|
||||
assert drawer_bytes == subprocess.check_output(["git", "show", f"{BASE}:{ui}"], cwd=REPO)
|
||||
|
||||
write(
|
||||
"boundaries.json",
|
||||
{
|
||||
"base": BASE,
|
||||
"files": kept,
|
||||
"originals": 163,
|
||||
"old_forty_six_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/" + "co") + "mfyui/"))
|
||||
and p
|
||||
not in [
|
||||
RESOURCE,
|
||||
((("calliope-backend/src/calliope/") + "co") + ("mfyui/fixed_document.py")),
|
||||
]
|
||||
]
|
||||
for p in frozen:
|
||||
assert (REPO / p).read_bytes() == subprocess.check_output(
|
||||
["git", "show", f"{BASE}:{p}"], cwd=REPO
|
||||
)
|
||||
write(
|
||||
"frozen-resource-check.json",
|
||||
{
|
||||
"base": BASE,
|
||||
"files": [
|
||||
{"path": p, "sha256": hashlib.sha256((REPO / p).read_bytes()).hexdigest()}
|
||||
for p in frozen
|
||||
],
|
||||
"original_files": sum(p.startswith("example_ComfyUI_workflows/") for p in frozen),
|
||||
"all_unchanged": True,
|
||||
},
|
||||
)
|
||||
packages = []
|
||||
with zipfile.ZipFile(wheels) as w, tarfile.open(sdists) as s:
|
||||
for name in ["fixed_document.py", "source_reviews.json", "library.py"]:
|
||||
raw = (
|
||||
REPO / ((("calliope-backend/src/calliope/") + "co") + "mfyui") / name
|
||||
).read_bytes()
|
||||
assert w.read("calliope/comfyui/" + name) == raw
|
||||
member = next(n for n in s.getnames() if n.endswith(("/src/calliope/comfyui/") + name))
|
||||
assert s.extractfile(member).read() == raw
|
||||
packages.append(
|
||||
{
|
||||
"file": name,
|
||||
"sha256": hashlib.sha256(raw).hexdigest(),
|
||||
"wheel": True,
|
||||
"sdist": True,
|
||||
"definitions": 47,
|
||||
}
|
||||
)
|
||||
write("package-check.json", packages)
|
||||
print(
|
||||
f"PASS actual {BASE} upgrade1/skip154, repe"
|
||||
"at155, rollback1, edits1"
|
||||
"/29cols, fresh155,"
|
||||
" 1217/3660/294, 47 defin"
|
||||
"itions, frozen bou"
|
||||
"ndaries, wheel/sdist"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,135 @@
|
||||
"Offline batch evidence tooling; no upstream execution."
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def main():
|
||||
lines = [
|
||||
"# 基础Flux2Klein图生图固定参考中文说明",
|
||||
"",
|
||||
(
|
||||
"新增36保存位置/1注释;旧46块1760位置+49注释逐对象不变,47"
|
||||
"图1796+50仅参考;155定稿0/实跑0/新增转换0。"
|
||||
),
|
||||
"",
|
||||
(
|
||||
("来源local_file以docs/hel-892/flux2-img-document")
|
||||
+ (
|
||||
("-evidence为基准;源SHA/全图摘要/定义摘要绑" + "定;不加")
|
||||
+ "载上游代码、媒体或链接。"
|
||||
)
|
||||
),
|
||||
"",
|
||||
]
|
||||
index = []
|
||||
for i in range(1):
|
||||
b = json.loads((OUT / f"definition-{i}.json").read_bytes())
|
||||
lines += [
|
||||
"## " + Path(b["source_path"]).stem,
|
||||
"",
|
||||
b["user_overview"],
|
||||
"",
|
||||
b["notice"],
|
||||
"",
|
||||
"源路径:`" + b["source_path"] + "`",
|
||||
"",
|
||||
"SHA1:" + b["source_sha1"],
|
||||
"",
|
||||
"原字节SHA256:" + b["source_sha256"],
|
||||
"",
|
||||
"规范全图SHA256:" + b["canonical_sha256"],
|
||||
"",
|
||||
*[v + "\n" for v in b["versions"]],
|
||||
"### 具体连线与处理条件",
|
||||
"",
|
||||
*[v + "\n" for v in b["flow"]],
|
||||
"### 使用与核对",
|
||||
"",
|
||||
*[v + "\n" for v in b["steps"]],
|
||||
"### 逐保存位置说明",
|
||||
"",
|
||||
]
|
||||
for j, f in enumerate(b["fields"], 1):
|
||||
lines += [
|
||||
f"#### {j}. 节点{f['node_id']} · {f['label']}({f['field']})",
|
||||
"",
|
||||
f["effect"],
|
||||
"",
|
||||
"```json",
|
||||
json.dumps(f["value"], ensure_ascii=False, indent=2),
|
||||
"```",
|
||||
"",
|
||||
f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。",
|
||||
"",
|
||||
"源保存位置:`" + f["pointer"] + "`;源输入口:`" + f["input_pointer"] + "`",
|
||||
"",
|
||||
"具名保存位置:`" + f["named_pointer"] + "`;作用域:" + f["scope"],
|
||||
"",
|
||||
"定义默认:" + f["schema_default"] + ";单位:" + f["unit"],
|
||||
"",
|
||||
"范围/条件:" + f["limits"],
|
||||
"",
|
||||
f["execution_note"],
|
||||
"",
|
||||
"依据:",
|
||||
]
|
||||
for k in f["evidence"]:
|
||||
e = b["sources"][k]
|
||||
lines += [
|
||||
(
|
||||
f"- [{k}] {e['claim']};{e['file']} {e['lines'][0]}~{e['lines'][1]}行;"
|
||||
f"commit {e['commit']};SHA256 {e['sha256']};{e['url']}"
|
||||
)
|
||||
]
|
||||
if "named_value" in f and f["named_value"] != f["value"]:
|
||||
lines += [
|
||||
"具名保存完整形态(与位置列表分开保留):",
|
||||
"",
|
||||
"```json",
|
||||
json.dumps(f["named_value"], ensure_ascii=False, indent=2),
|
||||
"```",
|
||||
"",
|
||||
]
|
||||
lines += [""]
|
||||
lines += ["### 零保存节点与源注释", ""]
|
||||
for z in b["zero_saved_nodes"]:
|
||||
lines += [z["node_id"] + " " + z["class_type"] + ":" + z["effect"], ""]
|
||||
for n in b["comments"]:
|
||||
lines += [
|
||||
"节点" + n["node_id"] + ",位置`" + n["pointer"] + "`",
|
||||
"",
|
||||
n["meaning"],
|
||||
"",
|
||||
"```text",
|
||||
n["text"],
|
||||
"```",
|
||||
"",
|
||||
]
|
||||
lines += ["### 固定原件索引", ""]
|
||||
for k, e in enumerate(b["sources"]):
|
||||
data = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(data).hexdigest() == e["sha256"]
|
||||
lines += [
|
||||
(
|
||||
f"{k}. {e['claim']};{e['file']} 第{e['lines'][0]}~{e['lines'][1]}行;"
|
||||
f"提交{e['commit']};SHA256 {e['sha256']};{e['url']}"
|
||||
),
|
||||
"",
|
||||
]
|
||||
index.append(dict(document=b["source_path"], **e))
|
||||
(OUT.parent / "基础Flux2Klein图生图固定参考中文说明.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,48 @@
|
||||
"Compare deterministic definitions and rendered artifacts."
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
from build_definition import OUT, REPO, canonical
|
||||
from rebuild import RESOURCE, build_all
|
||||
from render_report import main as render
|
||||
|
||||
|
||||
def main():
|
||||
a, old = build_all()
|
||||
b, previous = build_all()
|
||||
assert a == b and old == previous
|
||||
assert a == json.loads((REPO / RESOURCE).read_bytes())
|
||||
render()
|
||||
paths = [
|
||||
OUT / "fixed-source-index.json",
|
||||
OUT.parent / "基础Flux2Klein图生图固定参考中文说明.md",
|
||||
]
|
||||
before = {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
|
||||
render()
|
||||
assert before == {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
|
||||
(OUT / "repeatability.json").write_text(
|
||||
json.dumps(
|
||||
{
|
||||
"definitions": 47,
|
||||
"repeated_build_equal": True,
|
||||
"repeated_render_equal": True,
|
||||
"resource_sha256": hashlib.sha256(canonical(a)).hexdigest(),
|
||||
"artifacts": before,
|
||||
},
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print(
|
||||
(
|
||||
("PASS deterministic definitions" + " a")
|
||||
+ ("nd rendered artifacts: zero di" + "ff")
|
||||
+ "erence"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"definitions": 47,
|
||||
"repeated_build_equal": true,
|
||||
"repeated_render_equal": true,
|
||||
"resource_sha256": "8fe720b85195c1fc3eb6d8c2b4da1f03e3754fffff9ed4f953e56b8e633e9698",
|
||||
"artifacts": {
|
||||
"fixed-source-index.json": "4050e33bf9c842204185b8548df828dab87ab0535709754b045b4f6ccac71250",
|
||||
"基础Flux2Klein图生图固定参考中文说明.md": "26a31c544443923abe7f68523e34f05d92258b345a23f1e4863e014ec5fca2ec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"base": "a7d3167b362734df7eaa1efd2c141f292a878299",
|
||||
"changed_paths": [
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json"
|
||||
],
|
||||
"other_reviews_unchanged": 155,
|
||||
"old_blocks_unchanged": 46,
|
||||
"old_saved": 1760,
|
||||
"old_notes": 49,
|
||||
"new_saved": 36,
|
||||
"new_notes": 1,
|
||||
"total_documents": 47,
|
||||
"total_saved": 1796,
|
||||
"total_notes": 50
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
INFO: Started server process [893321]
|
||||
INFO: Waiting for application startup.
|
||||
INFO: Application startup complete.
|
||||
INFO: Uvicorn running on http://127.0.0.1:8247 (Press CTRL+C to quit)
|
||||
{'counts': {'skipped': 154, 'updated': 1, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
|
||||
INFO: 127.0.0.1:53910 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58822 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58828 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58848 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:58840 - "GET /api/settings HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58850 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58866 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58876 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:58892 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58894 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58910 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58912 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58918 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58924 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52606 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52608 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52610 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52618 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:52628 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52640 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52642 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52652 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:52664 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52674 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52684 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52690 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52698 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52708 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52720 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52736 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52748 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52750 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52752 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52764 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52766 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52778 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52794 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52802 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52808 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52820 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52830 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52846 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49918 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49920 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:49934 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49942 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49944 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49956 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:49970 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49980 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49986 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49996 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50012 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50016 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50032 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50042 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50052 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50054 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50060 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50066 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:35446 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35452 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:35460 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35464 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35470 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35482 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35486 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35494 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35498 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35510 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35526 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35538 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35546 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35560 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35564 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35572 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35576 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35584 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35586 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35598 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35606 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35618 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35620 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35630 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:35642 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35646 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35662 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:35670 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:35678 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49094 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49110 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49120 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49122 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49138 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49140 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49146 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49158 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49168 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49182 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49196 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49210 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49222 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49236 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49242 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49246 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49260 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49262 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49268 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49284 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49292 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:49300 - "GET /api/workflows/156 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49310 - "GET /api/workflows/157 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49318 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:49330 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38988 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: Shutting down
|
||||
INFO: Waiting for application shutdown.
|
||||
INFO: Application shutdown complete.
|
||||
INFO: Finished server process [893321]
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
VITE v6.4.3 ready in 294 ms
|
||||
|
||||
➜ Local: http://127.0.0.1:5173/
|
||||
@@ -0,0 +1 @@
|
||||
{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]}
|
||||
@@ -0,0 +1,419 @@
|
||||
{
|
||||
"all_pass": true,
|
||||
"reverified_at": "2026-10-30T21:26:01.521388+00:00",
|
||||
"source_files": 54,
|
||||
"citations": 58,
|
||||
"counts": {
|
||||
"saved_fields": 36,
|
||||
"root_saved_fields": 36,
|
||||
"internal_saved_fields": 0,
|
||||
"linked_saved_fields": 6,
|
||||
"frontend_only": 3,
|
||||
"source_nodes": 25,
|
||||
"root_nodes": 25,
|
||||
"internal_nodes": 0,
|
||||
"physical_edges": 31,
|
||||
"source_notes": 1,
|
||||
"history_objects": 1,
|
||||
"final_scalars": 0,
|
||||
"final_prompt_constructed": false
|
||||
},
|
||||
"named_nodes": 0,
|
||||
"inventory": {
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
|
||||
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b",
|
||||
"git_blob_sha1": "d603c64b9f633dd678437e1cd6fe517489d1609d",
|
||||
"fields": [
|
||||
{
|
||||
"node": 102,
|
||||
"pointer": "/nodes/1/widgets_values/0",
|
||||
"value": 5,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 105,
|
||||
"pointer": "/nodes/2/widgets_values/0",
|
||||
"value": 1029966337642000,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 105,
|
||||
"pointer": "/nodes/2/widgets_values/1",
|
||||
"value": "randomize",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 100,
|
||||
"pointer": "/nodes/3/widgets_values/0",
|
||||
"value": "euler",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/nodes/8/widgets_values/0",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/nodes/8/widgets_values/1",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/nodes/8/widgets_values/2",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 110,
|
||||
"pointer": "/nodes/9/widgets_values/0",
|
||||
"value": "flux2-vae.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 107,
|
||||
"pointer": "/nodes/10/widgets_values/0",
|
||||
"value": "qwen_3_8b_fp8mixed.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 107,
|
||||
"pointer": "/nodes/10/widgets_values/1",
|
||||
"value": "flux2",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 107,
|
||||
"pointer": "/nodes/10/widgets_values/2",
|
||||
"value": "default",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 106,
|
||||
"pointer": "/nodes/11/widgets_values/0",
|
||||
"value": "Flux\\flux-2-klein-base-9b-fp8.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 106,
|
||||
"pointer": "/nodes/11/widgets_values/1",
|
||||
"value": "default",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 101,
|
||||
"pointer": "/nodes/13/widgets_values/0",
|
||||
"value": 12,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 101,
|
||||
"pointer": "/nodes/13/widgets_values/1",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 101,
|
||||
"pointer": "/nodes/13/widgets_values/2",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 145,
|
||||
"pointer": "/nodes/15/widgets_values/0",
|
||||
"value": [
|
||||
{
|
||||
"name": "A",
|
||||
"selected": true,
|
||||
"url": "/api/view?filename=rgthree.compare._temp_uvrnh_00001_.png&type=temp&subfolder=&rand=0.18341613782929667"
|
||||
},
|
||||
{
|
||||
"name": "B",
|
||||
"selected": true,
|
||||
"url": "/api/view?filename=rgthree.compare._temp_uvrnh_00002_.png&type=temp&subfolder=&rand=0.9378831481207519"
|
||||
}
|
||||
],
|
||||
"json_type": "list",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/0",
|
||||
"value": 512,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/1",
|
||||
"value": 512,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/2",
|
||||
"value": "nearest-exact",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/3",
|
||||
"value": "resize",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/4",
|
||||
"value": "0, 0, 0",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/5",
|
||||
"value": "center",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/6",
|
||||
"value": 2,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 146,
|
||||
"pointer": "/nodes/16/widgets_values/7",
|
||||
"value": "cpu",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 144,
|
||||
"pointer": "/nodes/19/widgets_values/0",
|
||||
"value": false,
|
||||
"json_type": "bool",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 144,
|
||||
"pointer": "/nodes/19/widgets_values/1",
|
||||
"value": "1080x1920 (9:16) (竖屏)",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 144,
|
||||
"pointer": "/nodes/19/widgets_values/2",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 144,
|
||||
"pointer": "/nodes/19/widgets_values/3",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 76,
|
||||
"pointer": "/nodes/20/widgets_values/0",
|
||||
"value": "ScreenShot_2026-06-03_153527_199.png",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 76,
|
||||
"pointer": "/nodes/20/widgets_values/1",
|
||||
"value": "image",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 109,
|
||||
"pointer": "/nodes/21/widgets_values/0",
|
||||
"value": "",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 142,
|
||||
"pointer": "/nodes/22/widgets_values/0",
|
||||
"value": "Flux\\Flux2-Klein-9B-consistency-V2.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 142,
|
||||
"pointer": "/nodes/22/widgets_values/1",
|
||||
"value": 0.8,
|
||||
"json_type": "float",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 108,
|
||||
"pointer": "/nodes/23/widgets_values/0",
|
||||
"value": "将人物换成欧美人",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 9,
|
||||
"pointer": "/nodes/24/widgets_values/0",
|
||||
"value": "Flux2-Klein",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
}
|
||||
],
|
||||
"empty": [
|
||||
{
|
||||
"node": 103,
|
||||
"pointer": "/nodes/4",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 141,
|
||||
"pointer": "/nodes/5",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 140,
|
||||
"pointer": "/nodes/6",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 139,
|
||||
"pointer": "/nodes/7",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 143,
|
||||
"pointer": "/nodes/12",
|
||||
"state": "missing"
|
||||
},
|
||||
{
|
||||
"node": 104,
|
||||
"pointer": "/nodes/14",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 136,
|
||||
"pointer": "/nodes/17",
|
||||
"state": "missing"
|
||||
},
|
||||
{
|
||||
"node": 135,
|
||||
"pointer": "/nodes/18",
|
||||
"state": "missing"
|
||||
}
|
||||
],
|
||||
"nodes": 25,
|
||||
"edges": 31,
|
||||
"notes": 1,
|
||||
"named_nodes": 0,
|
||||
"modes": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
4,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"extra": {
|
||||
"frontendVersion": "1.36.13",
|
||||
"workflowRendererVersion": "LG",
|
||||
"VHS_latentpreview": false,
|
||||
"VHS_latentpreviewrate": 0,
|
||||
"VHS_MetadataImage": true,
|
||||
"VHS_KeepIntermediate": true,
|
||||
"ue_links": [],
|
||||
"links_added_by_ue": [],
|
||||
"ds": {
|
||||
"scale": 1.3090303597882107,
|
||||
"offset": [
|
||||
-1821.6332910488297,
|
||||
-493.7523197634248
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"upstream_executed": false
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
Using CPython 3.12.14
|
||||
Creating virtual environment at: calliope-backend/.venv
|
||||
Resolved 54 packages in 0.73ms
|
||||
Building calliope @ file:///home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-f34cca1fe852/workdir/aigc-home/calliope-backend
|
||||
Built calliope @ file:///home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-f34cca1fe852/workdir/aigc-home/calliope-backend
|
||||
Prepared 1 package in 157ms
|
||||
Installed 51 packages in 8ms
|
||||
+ aiosqlite==0.22.1
|
||||
+ annotated-doc==0.0.5
|
||||
+ annotated-types==0.8.0
|
||||
+ anyio==4.15.1
|
||||
+ attrs==26.1.0
|
||||
+ calliope==1.5.8 (from file:///home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-f34cca1fe852/workdir/aigc-home/calliope-backend)
|
||||
+ certifi==2026.7.22
|
||||
+ cffi==2.1.1
|
||||
+ click==8.5.0
|
||||
+ comfy-mcp==0.10.0
|
||||
+ cryptography==50.0.1
|
||||
+ fastapi==0.141.1
|
||||
+ h11==0.16.0
|
||||
+ httpcore==1.0.9
|
||||
+ httpcore2==2.13.0
|
||||
+ httptools==0.8.0
|
||||
+ httpx==0.28.1
|
||||
+ httpx2==2.13.0
|
||||
+ idna==3.20
|
||||
+ iniconfig==2.3.0
|
||||
+ jsonschema==4.26.0
|
||||
+ jsonschema-specifications==2025.9.1
|
||||
+ mcp==2.2.0
|
||||
+ mcp-types==2.2.0
|
||||
+ opentelemetry-api==1.44.0
|
||||
+ packaging==26.3
|
||||
+ pillow==12.3.0
|
||||
+ pluggy==1.6.0
|
||||
+ pycparser==3.0
|
||||
+ pydantic==2.13.5
|
||||
+ pydantic-core==2.46.5
|
||||
+ pydantic-settings==2.15.0
|
||||
+ pygments==2.21.0
|
||||
+ pyjwt==2.14.0
|
||||
+ pytest==9.1.1
|
||||
+ pytest-asyncio==1.4.0
|
||||
+ python-dotenv==1.2.3
|
||||
+ python-multipart==0.0.32
|
||||
+ pyyaml==6.0.3
|
||||
+ referencing==0.37.0
|
||||
+ rpds-py==2026.6.3
|
||||
+ ruff==0.16.8
|
||||
+ sse-starlette==3.4.11
|
||||
+ starlette==1.6.0
|
||||
+ truststore==0.10.4
|
||||
+ typing-extensions==4.16.0
|
||||
+ typing-inspection==0.4.4
|
||||
+ uvicorn==0.53.0
|
||||
+ uvloop==0.22.1
|
||||
+ watchfiles==1.2.0
|
||||
+ websockets==17.1
|
||||
@@ -0,0 +1,28 @@
|
||||
# 仓库根运行;第66批仅基础Flux2 Klein图生图;base a7d3167b362734df7eaa1efd2c141f292a878299。
|
||||
uv sync --project calliope-backend --offline --extra dev
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-img-document-evidence/inventory.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-img-document-evidence/verify_sources.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-img-document-evidence/rebuild.py
|
||||
uv run --project calliope-backend --offline ruff format --config calliope-backend/pyproject.toml calliope-backend/src/calliope/comfyui/fixed_document.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-img-document-evidence/repeat.py
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_flux2_img_fixed_document.py calliope-backend/tests/test_workflow_library.py -q
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-img-document-evidence/check_code.py
|
||||
PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/flux2-img-document-evidence/recompute.py
|
||||
npm ci --offline --ignore-scripts --prefix calliope-web
|
||||
npm run build --prefix calliope-web
|
||||
PYTHONDONTWRITEBYTECODE=1 LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-flux2-img-document.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-img-document-evidence/collect_browser.py
|
||||
# fetch_sources.py/add_sources.py/fetch_packages.py是可选准确文本采集入口,不是测试;不导入执行上游。
|
||||
# 后台262专项+13库=275通过;最终内容调整后重验,不累加前次相同测试为新增通过数。
|
||||
# 本轮未机械重跑大套件;5旧失败仅沿用历史记录,不称全仓绿。
|
||||
# 旧46块1760位置+49注释逐对象不变;新增36位置+1完整Note;47图1796+50仅参考。
|
||||
# 真实a7d3167旧代码隔离库1更新154跳过,其余154整行不变;幂等、精确回退、再升级、升级前后用户修改各1冲突/29列保护。
|
||||
# 155/排除1、16/139、1217/3660/294、全停用未检查/空时间戳、完整定稿0/实跑0/新增转换0。
|
||||
# 163原件/191资源、28profile/9候选/六差分、转换执行资格、Drawer整文件/CSS/依赖不动。
|
||||
# 准确registry包仅HTTP206 Range中央目录与必要文本,保留成员SHA256/CRC;完整包SHA与Git绑定未知,不以ETag冒充。
|
||||
# 上游签名/CRLF/空白保持原字节;只检查自写代码格式,未格式化上游或原图。
|
||||
# 代表截图只附卡不入仓,无新pyc入仓。无禁止请求;finally停服务后独立核端口释放。
|
||||
# 当前无需材料或机器窗口;未连接目标/停TTS/启ComfyUI/构造prompt/执行上游插件SDK模型GPU媒体RNG状态缓存显存。
|
||||
# 未下载模型权重/素材/字体/运行库、增依赖、付费、写在线库、合并部署。155全量完成审核后才发布。
|
||||
# 最终浏览1744=新624+旧46图1104+汇总2+共享14;16截图仅附卡。请求准确数量见browser-accounting.txt,固定/轮询/就绪/夹具独立。
|
||||
@@ -0,0 +1,114 @@
|
||||
"Independent byte/Git identity, raw position/named copy and graph checks."
|
||||
|
||||
import datetime
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
from build_definition import OUT, REF, REPO, build, canonical
|
||||
from inventory import inventory
|
||||
|
||||
|
||||
def main():
|
||||
block = build()
|
||||
rows = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
for e in rows:
|
||||
raw = (REF / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
if e["id"] in ["kj", "rgthree"]:
|
||||
members = json.loads((REF / (e["id"] + "-members.json")).read_bytes())
|
||||
info = next(x for x in members if x["name"] == e["file"])
|
||||
import zlib
|
||||
|
||||
assert zlib.crc32(raw) == info["crc"] == e["member_crc32"]
|
||||
assert e["git_commit_binding"] == "unknown"
|
||||
assert (
|
||||
json.loads((REF / (e["id"] + "-registry.json")).read_bytes())["version"] == e["tag"]
|
||||
)
|
||||
continue
|
||||
assert (
|
||||
hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
|
||||
== e["git_blob_sha1"]
|
||||
)
|
||||
t = json.loads((REF / (e["id"] + "-tree.json")).read_bytes())
|
||||
assert t["sha"] == e["tree"] and not t["truncated"]
|
||||
assert next(x["sha"] for x in t["tree"] if x["path"] == e["file"]) == e["git_blob_sha1"]
|
||||
c = (REF / (e["id"] + "-commit.txt")).read_bytes()
|
||||
assert (
|
||||
hashlib.sha1(b"commit " + str(len(c)).encode() + b"\0" + c).hexdigest() == e["commit"]
|
||||
)
|
||||
assert c.decode().splitlines()[0] == "tree " + e["tree"]
|
||||
tag = json.loads((REF / (e["id"] + "-tag.json")).read_bytes())
|
||||
assert tag["commit"] == e["commit"]
|
||||
tr = (REF / (e["id"] + "-tag.txt")).read_bytes()
|
||||
if tag["object"] != tag["commit"]:
|
||||
assert (
|
||||
hashlib.sha1(b"tag " + str(len(tr)).encode() + b"\0" + tr).hexdigest()
|
||||
== tag["object"]
|
||||
)
|
||||
assert tr.decode().startswith("object " + e["commit"] + "\n")
|
||||
else:
|
||||
assert tr == c
|
||||
inv = inventory()
|
||||
assert len(inv["fields"]) == 36 and inv["nodes"] == 25 and inv["edges"] == 31
|
||||
assert inv["notes"] == 1 and inv["named_nodes"] == 0
|
||||
assert {x["node"]: x["state"] for x in inv["empty"]} == {
|
||||
103: "empty_list",
|
||||
141: "empty_list",
|
||||
140: "empty_list",
|
||||
139: "empty_list",
|
||||
104: "empty_list",
|
||||
143: "missing",
|
||||
136: "missing",
|
||||
135: "missing",
|
||||
}
|
||||
for a, f in zip(inv["fields"], block["fields"], strict=True):
|
||||
assert (a["pointer"], a["json_type"], canonical(a["value"])) == (
|
||||
f["pointer"],
|
||||
f["json_type"],
|
||||
canonical(f["value"]),
|
||||
)
|
||||
assert "named_value" not in f
|
||||
g = json.loads((REPO / block["source_path"]).read_bytes())
|
||||
ns = {n["id"]: n for n in g["nodes"]}
|
||||
for edge, src, slot, dst, port, kind in g["links"]:
|
||||
assert edge in ns[src]["outputs"][slot]["links"]
|
||||
assert ns[dst]["inputs"][port]["link"] == edge
|
||||
assert ns[src]["outputs"][slot]["type"] == kind
|
||||
assert {n["id"]: n["mode"] for n in g["nodes"] if n["mode"] != 0} == {142: 4}
|
||||
assert not g.get("definitions")
|
||||
assert ns[103]["outputs"][1]["links"] == []
|
||||
assert g["extra"]["frontendVersion"] == "1.36.13"
|
||||
for e in block["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())
|
||||
(OUT / "source-check.json").write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
all_pass=True,
|
||||
reverified_at=datetime.datetime.now(datetime.timezone.utc).isoformat(),
|
||||
source_files=len(rows),
|
||||
citations=len(block["sources"]),
|
||||
counts=block["counts"],
|
||||
named_nodes=0,
|
||||
inventory=inv,
|
||||
upstream_executed=False,
|
||||
),
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print(
|
||||
(
|
||||
"PASS 36 positions, 1 com"
|
||||
"plete Note, 31 physic"
|
||||
"al edges; exact Git and "
|
||||
"registry text identit"
|
||||
"y"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,4 @@
|
||||
人工查看1440-46-default.png、390-46-default.png、390-46-history.png、390-46-97-note.png四张实际浏览截图。
|
||||
桌面/窄屏默认用途先行、状态清楚,技术范围默认折叠;历史列表完整文本换行,无媒体加载或横向溢出。
|
||||
Note全文以既有JSON纯文本形式保留,URL未变为加载内容;emoji显示由现有本地字体决定,未下载字体或改样式。
|
||||
本轮只填数据,Drawer整文件、CSS、组件和依赖未修改。截图非实跑产物;其余展开/焦点/回退由浏览断言验证。
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,6 @@
|
||||
tree 618eabb5ce059e55ba51a90a4f0a7dbd297c5cec
|
||||
parent 50d6e1caf401bf72dca1e9df7e194e722e1bd98b
|
||||
author comfyanonymous <comfyanonymous@protonmail.com> 1767847802 -0500
|
||||
committer comfyanonymous <comfyanonymous@protonmail.com> 1767847802 -0500
|
||||
|
||||
ComfyUI version v0.8.2
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "refs/tags/v0.8.2",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"object": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
tree 618eabb5ce059e55ba51a90a4f0a7dbd297c5cec
|
||||
parent 50d6e1caf401bf72dca1e9df7e194e722e1bd98b
|
||||
author comfyanonymous <comfyanonymous@protonmail.com> 1767847802 -0500
|
||||
committer comfyanonymous <comfyanonymous@protonmail.com> 1767847802 -0500
|
||||
|
||||
ComfyUI version v0.8.2
|
||||
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,258 @@
|
||||
import argparse
|
||||
import enum
|
||||
import os
|
||||
import comfy.options
|
||||
|
||||
|
||||
class EnumAction(argparse.Action):
|
||||
"""
|
||||
Argparse action for handling Enums
|
||||
"""
|
||||
def __init__(self, **kwargs):
|
||||
# Pop off the type value
|
||||
enum_type = kwargs.pop("type", None)
|
||||
|
||||
# Ensure an Enum subclass is provided
|
||||
if enum_type is None:
|
||||
raise ValueError("type must be assigned an Enum when using EnumAction")
|
||||
if not issubclass(enum_type, enum.Enum):
|
||||
raise TypeError("type must be an Enum when using EnumAction")
|
||||
|
||||
# Generate choices from the Enum
|
||||
choices = tuple(e.value for e in enum_type)
|
||||
kwargs.setdefault("choices", choices)
|
||||
kwargs.setdefault("metavar", f"[{','.join(list(choices))}]")
|
||||
|
||||
super(EnumAction, self).__init__(**kwargs)
|
||||
|
||||
self._enum = enum_type
|
||||
|
||||
def __call__(self, parser, namespace, values, option_string=None):
|
||||
# Convert value back into an Enum
|
||||
value = self._enum(values)
|
||||
setattr(namespace, self.dest, value)
|
||||
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
parser.add_argument("--listen", type=str, default="127.0.0.1", metavar="IP", nargs="?", const="0.0.0.0,::", help="Specify the IP address to listen on (default: 127.0.0.1). You can give a list of ip addresses by separating them with a comma like: 127.2.2.2,127.3.3.3 If --listen is provided without an argument, it defaults to 0.0.0.0,:: (listens on all ipv4 and ipv6)")
|
||||
parser.add_argument("--port", type=int, default=8188, help="Set the listen port.")
|
||||
parser.add_argument("--tls-keyfile", type=str, help="Path to TLS (SSL) key file. Enables TLS, makes app accessible at https://... requires --tls-certfile to function")
|
||||
parser.add_argument("--tls-certfile", type=str, help="Path to TLS (SSL) certificate file. Enables TLS, makes app accessible at https://... requires --tls-keyfile to function")
|
||||
parser.add_argument("--enable-cors-header", type=str, default=None, metavar="ORIGIN", nargs="?", const="*", help="Enable CORS (Cross-Origin Resource Sharing) with optional origin or allow all with default '*'.")
|
||||
parser.add_argument("--max-upload-size", type=float, default=100, help="Set the maximum upload size in MB.")
|
||||
|
||||
parser.add_argument("--base-directory", type=str, default=None, help="Set the ComfyUI base directory for models, custom_nodes, input, output, temp, and user directories.")
|
||||
parser.add_argument("--extra-model-paths-config", type=str, default=None, metavar="PATH", nargs='+', action='append', help="Load one or more extra_model_paths.yaml files.")
|
||||
parser.add_argument("--output-directory", type=str, default=None, help="Set the ComfyUI output directory. Overrides --base-directory.")
|
||||
parser.add_argument("--temp-directory", type=str, default=None, help="Set the ComfyUI temp directory (default is in the ComfyUI directory). Overrides --base-directory.")
|
||||
parser.add_argument("--input-directory", type=str, default=None, help="Set the ComfyUI input directory. Overrides --base-directory.")
|
||||
parser.add_argument("--auto-launch", action="store_true", help="Automatically launch ComfyUI in the default browser.")
|
||||
parser.add_argument("--disable-auto-launch", action="store_true", help="Disable auto launching the browser.")
|
||||
parser.add_argument("--cuda-device", type=int, default=None, metavar="DEVICE_ID", help="Set the id of the cuda device this instance will use. All other devices will not be visible.")
|
||||
parser.add_argument("--default-device", type=int, default=None, metavar="DEFAULT_DEVICE_ID", help="Set the id of the default device, all other devices will stay visible.")
|
||||
cm_group = parser.add_mutually_exclusive_group()
|
||||
cm_group.add_argument("--cuda-malloc", action="store_true", help="Enable cudaMallocAsync (enabled by default for torch 2.0 and up).")
|
||||
cm_group.add_argument("--disable-cuda-malloc", action="store_true", help="Disable cudaMallocAsync.")
|
||||
|
||||
|
||||
fp_group = parser.add_mutually_exclusive_group()
|
||||
fp_group.add_argument("--force-fp32", action="store_true", help="Force fp32 (If this makes your GPU work better please report it).")
|
||||
fp_group.add_argument("--force-fp16", action="store_true", help="Force fp16.")
|
||||
|
||||
fpunet_group = parser.add_mutually_exclusive_group()
|
||||
fpunet_group.add_argument("--fp32-unet", action="store_true", help="Run the diffusion model in fp32.")
|
||||
fpunet_group.add_argument("--fp64-unet", action="store_true", help="Run the diffusion model in fp64.")
|
||||
fpunet_group.add_argument("--bf16-unet", action="store_true", help="Run the diffusion model in bf16.")
|
||||
fpunet_group.add_argument("--fp16-unet", action="store_true", help="Run the diffusion model in fp16")
|
||||
fpunet_group.add_argument("--fp8_e4m3fn-unet", action="store_true", help="Store unet weights in fp8_e4m3fn.")
|
||||
fpunet_group.add_argument("--fp8_e5m2-unet", action="store_true", help="Store unet weights in fp8_e5m2.")
|
||||
fpunet_group.add_argument("--fp8_e8m0fnu-unet", action="store_true", help="Store unet weights in fp8_e8m0fnu.")
|
||||
|
||||
fpvae_group = parser.add_mutually_exclusive_group()
|
||||
fpvae_group.add_argument("--fp16-vae", action="store_true", help="Run the VAE in fp16, might cause black images.")
|
||||
fpvae_group.add_argument("--fp32-vae", action="store_true", help="Run the VAE in full precision fp32.")
|
||||
fpvae_group.add_argument("--bf16-vae", action="store_true", help="Run the VAE in bf16.")
|
||||
|
||||
parser.add_argument("--cpu-vae", action="store_true", help="Run the VAE on the CPU.")
|
||||
|
||||
fpte_group = parser.add_mutually_exclusive_group()
|
||||
fpte_group.add_argument("--fp8_e4m3fn-text-enc", action="store_true", help="Store text encoder weights in fp8 (e4m3fn variant).")
|
||||
fpte_group.add_argument("--fp8_e5m2-text-enc", action="store_true", help="Store text encoder weights in fp8 (e5m2 variant).")
|
||||
fpte_group.add_argument("--fp16-text-enc", action="store_true", help="Store text encoder weights in fp16.")
|
||||
fpte_group.add_argument("--fp32-text-enc", action="store_true", help="Store text encoder weights in fp32.")
|
||||
fpte_group.add_argument("--bf16-text-enc", action="store_true", help="Store text encoder weights in bf16.")
|
||||
|
||||
parser.add_argument("--force-channels-last", action="store_true", help="Force channels last format when inferencing the models.")
|
||||
|
||||
parser.add_argument("--directml", type=int, nargs="?", metavar="DIRECTML_DEVICE", const=-1, help="Use torch-directml.")
|
||||
|
||||
parser.add_argument("--oneapi-device-selector", type=str, default=None, metavar="SELECTOR_STRING", help="Sets the oneAPI device(s) this instance will use.")
|
||||
parser.add_argument("--disable-ipex-optimize", action="store_true", help="Disables ipex.optimize default when loading models with Intel's Extension for Pytorch.")
|
||||
parser.add_argument("--supports-fp8-compute", action="store_true", help="ComfyUI will act like if the device supports fp8 compute.")
|
||||
|
||||
class LatentPreviewMethod(enum.Enum):
|
||||
NoPreviews = "none"
|
||||
Auto = "auto"
|
||||
Latent2RGB = "latent2rgb"
|
||||
TAESD = "taesd"
|
||||
|
||||
@classmethod
|
||||
def from_string(cls, value: str):
|
||||
for member in cls:
|
||||
if member.value == value:
|
||||
return member
|
||||
return None
|
||||
|
||||
parser.add_argument("--preview-method", type=LatentPreviewMethod, default=LatentPreviewMethod.NoPreviews, help="Default preview method for sampler nodes.", action=EnumAction)
|
||||
|
||||
parser.add_argument("--preview-size", type=int, default=512, help="Sets the maximum preview size for sampler nodes.")
|
||||
|
||||
cache_group = parser.add_mutually_exclusive_group()
|
||||
cache_group.add_argument("--cache-classic", action="store_true", help="Use the old style (aggressive) caching.")
|
||||
cache_group.add_argument("--cache-lru", type=int, default=0, help="Use LRU caching with a maximum of N node results cached. May use more RAM/VRAM.")
|
||||
cache_group.add_argument("--cache-none", action="store_true", help="Reduced RAM/VRAM usage at the expense of executing every node for each run.")
|
||||
cache_group.add_argument("--cache-ram", nargs='?', const=4.0, type=float, default=0, help="Use RAM pressure caching with the specified headroom threshold. If available RAM drops below the threhold the cache remove large items to free RAM. Default 4GB")
|
||||
|
||||
attn_group = parser.add_mutually_exclusive_group()
|
||||
attn_group.add_argument("--use-split-cross-attention", action="store_true", help="Use the split cross attention optimization. Ignored when xformers is used.")
|
||||
attn_group.add_argument("--use-quad-cross-attention", action="store_true", help="Use the sub-quadratic cross attention optimization . Ignored when xformers is used.")
|
||||
attn_group.add_argument("--use-pytorch-cross-attention", action="store_true", help="Use the new pytorch 2.0 cross attention function.")
|
||||
attn_group.add_argument("--use-sage-attention", action="store_true", help="Use sage attention.")
|
||||
attn_group.add_argument("--use-flash-attention", action="store_true", help="Use FlashAttention.")
|
||||
|
||||
parser.add_argument("--disable-xformers", action="store_true", help="Disable xformers.")
|
||||
|
||||
upcast = parser.add_mutually_exclusive_group()
|
||||
upcast.add_argument("--force-upcast-attention", action="store_true", help="Force enable attention upcasting, please report if it fixes black images.")
|
||||
upcast.add_argument("--dont-upcast-attention", action="store_true", help="Disable all upcasting of attention. Should be unnecessary except for debugging.")
|
||||
|
||||
|
||||
parser.add_argument("--enable-manager", action="store_true", help="Enable the ComfyUI-Manager feature.")
|
||||
manager_group = parser.add_mutually_exclusive_group()
|
||||
manager_group.add_argument("--disable-manager-ui", action="store_true", help="Disables only the ComfyUI-Manager UI and endpoints. Scheduled installations and similar background tasks will still operate.")
|
||||
manager_group.add_argument("--enable-manager-legacy-ui", action="store_true", help="Enables the legacy UI of ComfyUI-Manager")
|
||||
|
||||
|
||||
vram_group = parser.add_mutually_exclusive_group()
|
||||
vram_group.add_argument("--gpu-only", action="store_true", help="Store and run everything (text encoders/CLIP models, etc... on the GPU).")
|
||||
vram_group.add_argument("--highvram", action="store_true", help="By default models will be unloaded to CPU memory after being used. This option keeps them in GPU memory.")
|
||||
vram_group.add_argument("--normalvram", action="store_true", help="Used to force normal vram use if lowvram gets automatically enabled.")
|
||||
vram_group.add_argument("--lowvram", action="store_true", help="Split the unet in parts to use less vram.")
|
||||
vram_group.add_argument("--novram", action="store_true", help="When lowvram isn't enough.")
|
||||
vram_group.add_argument("--cpu", action="store_true", help="To use the CPU for everything (slow).")
|
||||
|
||||
parser.add_argument("--reserve-vram", type=float, default=None, help="Set the amount of vram in GB you want to reserve for use by your OS/other software. By default some amount is reserved depending on your OS.")
|
||||
|
||||
parser.add_argument("--async-offload", nargs='?', const=2, type=int, default=None, metavar="NUM_STREAMS", help="Use async weight offloading. An optional argument controls the amount of offload streams. Default is 2. Enabled by default on Nvidia.")
|
||||
parser.add_argument("--disable-async-offload", action="store_true", help="Disable async weight offloading.")
|
||||
|
||||
parser.add_argument("--force-non-blocking", action="store_true", help="Force ComfyUI to use non-blocking operations for all applicable tensors. This may improve performance on some non-Nvidia systems but can cause issues with some workflows.")
|
||||
|
||||
parser.add_argument("--default-hashing-function", type=str, choices=['md5', 'sha1', 'sha256', 'sha512'], default='sha256', help="Allows you to choose the hash function to use for duplicate filename / contents comparison. Default is sha256.")
|
||||
|
||||
parser.add_argument("--disable-smart-memory", action="store_true", help="Force ComfyUI to agressively offload to regular ram instead of keeping models in vram when it can.")
|
||||
parser.add_argument("--deterministic", action="store_true", help="Make pytorch use slower deterministic algorithms when it can. Note that this might not make images deterministic in all cases.")
|
||||
|
||||
class PerformanceFeature(enum.Enum):
|
||||
Fp16Accumulation = "fp16_accumulation"
|
||||
Fp8MatrixMultiplication = "fp8_matrix_mult"
|
||||
CublasOps = "cublas_ops"
|
||||
AutoTune = "autotune"
|
||||
|
||||
parser.add_argument("--fast", nargs="*", type=PerformanceFeature, help="Enable some untested and potentially quality deteriorating optimizations. This is used to test new features so using it might crash your comfyui. --fast with no arguments enables everything. You can pass a list specific optimizations if you only want to enable specific ones. Current valid optimizations: {}".format(" ".join(map(lambda c: c.value, PerformanceFeature))))
|
||||
|
||||
parser.add_argument("--disable-pinned-memory", action="store_true", help="Disable pinned memory use.")
|
||||
|
||||
parser.add_argument("--mmap-torch-files", action="store_true", help="Use mmap when loading ckpt/pt files.")
|
||||
parser.add_argument("--disable-mmap", action="store_true", help="Don't use mmap when loading safetensors.")
|
||||
|
||||
parser.add_argument("--dont-print-server", action="store_true", help="Don't print server output.")
|
||||
parser.add_argument("--quick-test-for-ci", action="store_true", help="Quick test for CI.")
|
||||
parser.add_argument("--windows-standalone-build", action="store_true", help="Windows standalone build: Enable convenient things that most people using the standalone windows build will probably enjoy (like auto opening the page on startup).")
|
||||
|
||||
parser.add_argument("--disable-metadata", action="store_true", help="Disable saving prompt metadata in files.")
|
||||
parser.add_argument("--disable-all-custom-nodes", action="store_true", help="Disable loading all custom nodes.")
|
||||
parser.add_argument("--whitelist-custom-nodes", type=str, nargs='+', default=[], help="Specify custom node folders to load even when --disable-all-custom-nodes is enabled.")
|
||||
parser.add_argument("--disable-api-nodes", action="store_true", help="Disable loading all api nodes. Also prevents the frontend from communicating with the internet.")
|
||||
|
||||
parser.add_argument("--multi-user", action="store_true", help="Enables per-user storage.")
|
||||
|
||||
parser.add_argument("--verbose", default='INFO', const='DEBUG', nargs="?", choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], help='Set the logging level')
|
||||
parser.add_argument("--log-stdout", action="store_true", help="Send normal process output to stdout instead of stderr (default).")
|
||||
|
||||
|
||||
# The default built-in provider hosted under web/
|
||||
DEFAULT_VERSION_STRING = "comfyanonymous/ComfyUI@latest"
|
||||
|
||||
parser.add_argument(
|
||||
"--front-end-version",
|
||||
type=str,
|
||||
default=DEFAULT_VERSION_STRING,
|
||||
help="""
|
||||
Specifies the version of the frontend to be used. This command needs internet connectivity to query and
|
||||
download available frontend implementations from GitHub releases.
|
||||
|
||||
The version string should be in the format of:
|
||||
[repoOwner]/[repoName]@[version]
|
||||
where version is one of: "latest" or a valid version number (e.g. "1.0.0")
|
||||
""",
|
||||
)
|
||||
|
||||
def is_valid_directory(path: str) -> str:
|
||||
"""Validate if the given path is a directory, and check permissions."""
|
||||
if not os.path.exists(path):
|
||||
raise argparse.ArgumentTypeError(f"The path '{path}' does not exist.")
|
||||
if not os.path.isdir(path):
|
||||
raise argparse.ArgumentTypeError(f"'{path}' is not a directory.")
|
||||
if not os.access(path, os.R_OK):
|
||||
raise argparse.ArgumentTypeError(f"You do not have read permissions for '{path}'.")
|
||||
return path
|
||||
|
||||
parser.add_argument(
|
||||
"--front-end-root",
|
||||
type=is_valid_directory,
|
||||
default=None,
|
||||
help="The local filesystem path to the directory where the frontend is located. Overrides --front-end-version.",
|
||||
)
|
||||
|
||||
parser.add_argument("--user-directory", type=is_valid_directory, default=None, help="Set the ComfyUI user directory with an absolute path. Overrides --base-directory.")
|
||||
|
||||
parser.add_argument("--enable-compress-response-body", action="store_true", help="Enable compressing response body.")
|
||||
|
||||
parser.add_argument(
|
||||
"--comfy-api-base",
|
||||
type=str,
|
||||
default="https://api.comfy.org",
|
||||
help="Set the base URL for the ComfyUI API. (default: https://api.comfy.org)",
|
||||
)
|
||||
|
||||
database_default_path = os.path.abspath(
|
||||
os.path.join(os.path.dirname(__file__), "..", "user", "comfyui.db")
|
||||
)
|
||||
parser.add_argument("--database-url", type=str, default=f"sqlite:///{database_default_path}", help="Specify the database URL, e.g. for an in-memory database you can use 'sqlite:///:memory:'.")
|
||||
|
||||
if comfy.options.args_parsing:
|
||||
args = parser.parse_args()
|
||||
else:
|
||||
args = parser.parse_args([])
|
||||
|
||||
if args.windows_standalone_build:
|
||||
args.auto_launch = True
|
||||
|
||||
if args.disable_auto_launch:
|
||||
args.auto_launch = False
|
||||
|
||||
if args.force_fp16:
|
||||
args.fp16_unet = True
|
||||
|
||||
|
||||
# '--fast' is not provided, use an empty set
|
||||
if args.fast is None:
|
||||
args.fast = set()
|
||||
# '--fast' is provided with an empty list, enable all optimizations
|
||||
elif args.fast == []:
|
||||
args.fast = set(PerformanceFeature)
|
||||
# '--fast' is provided with a list of performance features, use that list
|
||||
else:
|
||||
args.fast = set(args.fast)
|
||||
@@ -0,0 +1,67 @@
|
||||
import torch
|
||||
import comfy.model_management
|
||||
import comfy.samplers
|
||||
import comfy.utils
|
||||
import numpy as np
|
||||
import logging
|
||||
import comfy.nested_tensor
|
||||
|
||||
def prepare_noise_inner(latent_image, generator, noise_inds=None):
|
||||
if noise_inds is None:
|
||||
return torch.randn(latent_image.size(), dtype=latent_image.dtype, layout=latent_image.layout, generator=generator, device="cpu")
|
||||
|
||||
unique_inds, inverse = np.unique(noise_inds, return_inverse=True)
|
||||
noises = []
|
||||
for i in range(unique_inds[-1]+1):
|
||||
noise = torch.randn([1] + list(latent_image.size())[1:], dtype=latent_image.dtype, layout=latent_image.layout, generator=generator, device="cpu")
|
||||
if i in unique_inds:
|
||||
noises.append(noise)
|
||||
noises = [noises[i] for i in inverse]
|
||||
return torch.cat(noises, axis=0)
|
||||
|
||||
def prepare_noise(latent_image, seed, noise_inds=None):
|
||||
"""
|
||||
creates random noise given a latent image and a seed.
|
||||
optional arg skip can be used to skip and discard x number of noise generations for a given seed
|
||||
"""
|
||||
generator = torch.manual_seed(seed)
|
||||
|
||||
if latent_image.is_nested:
|
||||
tensors = latent_image.unbind()
|
||||
noises = []
|
||||
for t in tensors:
|
||||
noises.append(prepare_noise_inner(t, generator, noise_inds))
|
||||
noises = comfy.nested_tensor.NestedTensor(noises)
|
||||
else:
|
||||
noises = prepare_noise_inner(latent_image, generator, noise_inds)
|
||||
|
||||
return noises
|
||||
|
||||
def fix_empty_latent_channels(model, latent_image):
|
||||
if latent_image.is_nested:
|
||||
return latent_image
|
||||
latent_format = model.get_model_object("latent_format") #Resize the empty latent image so it has the right number of channels
|
||||
if latent_format.latent_channels != latent_image.shape[1] and torch.count_nonzero(latent_image) == 0:
|
||||
latent_image = comfy.utils.repeat_to_batch_size(latent_image, latent_format.latent_channels, dim=1)
|
||||
if latent_format.latent_dimensions == 3 and latent_image.ndim == 4:
|
||||
latent_image = latent_image.unsqueeze(2)
|
||||
return latent_image
|
||||
|
||||
def prepare_sampling(model, noise_shape, positive, negative, noise_mask):
|
||||
logging.warning("Warning: comfy.sample.prepare_sampling isn't used anymore and can be removed")
|
||||
return model, positive, negative, noise_mask, []
|
||||
|
||||
def cleanup_additional_models(models):
|
||||
logging.warning("Warning: comfy.sample.cleanup_additional_models isn't used anymore and can be removed")
|
||||
|
||||
def sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=1.0, disable_noise=False, start_step=None, last_step=None, force_full_denoise=False, noise_mask=None, sigmas=None, callback=None, disable_pbar=False, seed=None):
|
||||
sampler = comfy.samplers.KSampler(model, steps=steps, device=model.load_device, sampler=sampler_name, scheduler=scheduler, denoise=denoise, model_options=model.model_options)
|
||||
|
||||
samples = sampler.sample(noise, positive, negative, cfg=cfg, latent_image=latent_image, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, denoise_mask=noise_mask, sigmas=sigmas, callback=callback, disable_pbar=disable_pbar, seed=seed)
|
||||
samples = samples.to(comfy.model_management.intermediate_device())
|
||||
return samples
|
||||
|
||||
def sample_custom(model, noise, cfg, sampler, sigmas, positive, negative, latent_image, noise_mask=None, callback=None, disable_pbar=False, seed=None):
|
||||
samples = comfy.samplers.sample(model, noise, positive, negative, cfg, model.load_device, sampler, sigmas, model_options=model.model_options, latent_image=latent_image, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
|
||||
samples = samples.to(comfy.model_management.intermediate_device())
|
||||
return samples
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
from ._io import * # noqa: F403
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,38 @@
|
||||
import node_helpers
|
||||
from typing_extensions import override
|
||||
from comfy_api.latest import ComfyExtension, io
|
||||
|
||||
|
||||
class ReferenceLatent(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ReferenceLatent",
|
||||
category="advanced/conditioning/edit_models",
|
||||
description="This node sets the guiding latent for an edit model. If the model supports it you can chain multiple to set multiple reference images.",
|
||||
inputs=[
|
||||
io.Conditioning.Input("conditioning"),
|
||||
io.Latent.Input("latent", optional=True),
|
||||
],
|
||||
outputs=[
|
||||
io.Conditioning.Output(),
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, conditioning, latent=None) -> io.NodeOutput:
|
||||
if latent is not None:
|
||||
conditioning = node_helpers.conditioning_set_values(conditioning, {"reference_latents": [latent["samples"]]}, append=True)
|
||||
return io.NodeOutput(conditioning)
|
||||
|
||||
|
||||
class EditModelExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||
return [
|
||||
ReferenceLatent,
|
||||
]
|
||||
|
||||
|
||||
def comfy_entrypoint() -> EditModelExtension:
|
||||
return EditModelExtension()
|
||||
@@ -0,0 +1,249 @@
|
||||
import node_helpers
|
||||
import comfy.utils
|
||||
from typing_extensions import override
|
||||
from comfy_api.latest import ComfyExtension, io
|
||||
import comfy.model_management
|
||||
import torch
|
||||
import math
|
||||
import nodes
|
||||
|
||||
class CLIPTextEncodeFlux(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="CLIPTextEncodeFlux",
|
||||
category="advanced/conditioning/flux",
|
||||
inputs=[
|
||||
io.Clip.Input("clip"),
|
||||
io.String.Input("clip_l", multiline=True, dynamic_prompts=True),
|
||||
io.String.Input("t5xxl", multiline=True, dynamic_prompts=True),
|
||||
io.Float.Input("guidance", default=3.5, min=0.0, max=100.0, step=0.1),
|
||||
],
|
||||
outputs=[
|
||||
io.Conditioning.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, clip, clip_l, t5xxl, guidance) -> io.NodeOutput:
|
||||
tokens = clip.tokenize(clip_l)
|
||||
tokens["t5xxl"] = clip.tokenize(t5xxl)["t5xxl"]
|
||||
|
||||
return io.NodeOutput(clip.encode_from_tokens_scheduled(tokens, add_dict={"guidance": guidance}))
|
||||
|
||||
encode = execute # TODO: remove
|
||||
|
||||
class EmptyFlux2LatentImage(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="EmptyFlux2LatentImage",
|
||||
display_name="Empty Flux 2 Latent",
|
||||
category="latent",
|
||||
inputs=[
|
||||
io.Int.Input("width", default=1024, min=16, max=nodes.MAX_RESOLUTION, step=16),
|
||||
io.Int.Input("height", default=1024, min=16, max=nodes.MAX_RESOLUTION, step=16),
|
||||
io.Int.Input("batch_size", default=1, min=1, max=4096),
|
||||
],
|
||||
outputs=[
|
||||
io.Latent.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, width, height, batch_size=1) -> io.NodeOutput:
|
||||
latent = torch.zeros([batch_size, 128, height // 16, width // 16], device=comfy.model_management.intermediate_device())
|
||||
return io.NodeOutput({"samples": latent})
|
||||
|
||||
class FluxGuidance(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="FluxGuidance",
|
||||
category="advanced/conditioning/flux",
|
||||
inputs=[
|
||||
io.Conditioning.Input("conditioning"),
|
||||
io.Float.Input("guidance", default=3.5, min=0.0, max=100.0, step=0.1),
|
||||
],
|
||||
outputs=[
|
||||
io.Conditioning.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, conditioning, guidance) -> io.NodeOutput:
|
||||
c = node_helpers.conditioning_set_values(conditioning, {"guidance": guidance})
|
||||
return io.NodeOutput(c)
|
||||
|
||||
append = execute # TODO: remove
|
||||
|
||||
|
||||
class FluxDisableGuidance(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="FluxDisableGuidance",
|
||||
category="advanced/conditioning/flux",
|
||||
description="This node completely disables the guidance embed on Flux and Flux like models",
|
||||
inputs=[
|
||||
io.Conditioning.Input("conditioning"),
|
||||
],
|
||||
outputs=[
|
||||
io.Conditioning.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, conditioning) -> io.NodeOutput:
|
||||
c = node_helpers.conditioning_set_values(conditioning, {"guidance": None})
|
||||
return io.NodeOutput(c)
|
||||
|
||||
append = execute # TODO: remove
|
||||
|
||||
|
||||
PREFERED_KONTEXT_RESOLUTIONS = [
|
||||
(672, 1568),
|
||||
(688, 1504),
|
||||
(720, 1456),
|
||||
(752, 1392),
|
||||
(800, 1328),
|
||||
(832, 1248),
|
||||
(880, 1184),
|
||||
(944, 1104),
|
||||
(1024, 1024),
|
||||
(1104, 944),
|
||||
(1184, 880),
|
||||
(1248, 832),
|
||||
(1328, 800),
|
||||
(1392, 752),
|
||||
(1456, 720),
|
||||
(1504, 688),
|
||||
(1568, 672),
|
||||
]
|
||||
|
||||
|
||||
class FluxKontextImageScale(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="FluxKontextImageScale",
|
||||
category="advanced/conditioning/flux",
|
||||
description="This node resizes the image to one that is more optimal for flux kontext.",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image) -> io.NodeOutput:
|
||||
width = image.shape[2]
|
||||
height = image.shape[1]
|
||||
aspect_ratio = width / height
|
||||
_, width, height = min((abs(aspect_ratio - w / h), w, h) for w, h in PREFERED_KONTEXT_RESOLUTIONS)
|
||||
image = comfy.utils.common_upscale(image.movedim(-1, 1), width, height, "lanczos", "center").movedim(1, -1)
|
||||
return io.NodeOutput(image)
|
||||
|
||||
scale = execute # TODO: remove
|
||||
|
||||
|
||||
class FluxKontextMultiReferenceLatentMethod(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="FluxKontextMultiReferenceLatentMethod",
|
||||
display_name="Edit Model Reference Method",
|
||||
category="advanced/conditioning/flux",
|
||||
inputs=[
|
||||
io.Conditioning.Input("conditioning"),
|
||||
io.Combo.Input(
|
||||
"reference_latents_method",
|
||||
options=["offset", "index", "uxo/uno", "index_timestep_zero"],
|
||||
),
|
||||
],
|
||||
outputs=[
|
||||
io.Conditioning.Output(),
|
||||
],
|
||||
is_experimental=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, conditioning, reference_latents_method) -> io.NodeOutput:
|
||||
if "uxo" in reference_latents_method or "uso" in reference_latents_method:
|
||||
reference_latents_method = "uxo"
|
||||
c = node_helpers.conditioning_set_values(conditioning, {"reference_latents_method": reference_latents_method})
|
||||
return io.NodeOutput(c)
|
||||
|
||||
append = execute # TODO: remove
|
||||
|
||||
|
||||
def generalized_time_snr_shift(t, mu: float, sigma: float):
|
||||
return math.exp(mu) / (math.exp(mu) + (1 / t - 1) ** sigma)
|
||||
|
||||
|
||||
def compute_empirical_mu(image_seq_len: int, num_steps: int) -> float:
|
||||
a1, b1 = 8.73809524e-05, 1.89833333
|
||||
a2, b2 = 0.00016927, 0.45666666
|
||||
|
||||
if image_seq_len > 4300:
|
||||
mu = a2 * image_seq_len + b2
|
||||
return float(mu)
|
||||
|
||||
m_200 = a2 * image_seq_len + b2
|
||||
m_10 = a1 * image_seq_len + b1
|
||||
|
||||
a = (m_200 - m_10) / 190.0
|
||||
b = m_200 - 200.0 * a
|
||||
mu = a * num_steps + b
|
||||
|
||||
return float(mu)
|
||||
|
||||
|
||||
def get_schedule(num_steps: int, image_seq_len: int) -> list[float]:
|
||||
mu = compute_empirical_mu(image_seq_len, num_steps)
|
||||
timesteps = torch.linspace(1, 0, num_steps + 1)
|
||||
timesteps = generalized_time_snr_shift(timesteps, mu, 1.0)
|
||||
return timesteps
|
||||
|
||||
|
||||
class Flux2Scheduler(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="Flux2Scheduler",
|
||||
category="sampling/custom_sampling/schedulers",
|
||||
inputs=[
|
||||
io.Int.Input("steps", default=20, min=1, max=4096),
|
||||
io.Int.Input("width", default=1024, min=16, max=nodes.MAX_RESOLUTION, step=1),
|
||||
io.Int.Input("height", default=1024, min=16, max=nodes.MAX_RESOLUTION, step=1),
|
||||
],
|
||||
outputs=[
|
||||
io.Sigmas.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, steps, width, height) -> io.NodeOutput:
|
||||
seq_len = (width * height / (16 * 16))
|
||||
sigmas = get_schedule(steps, round(seq_len))
|
||||
return io.NodeOutput(sigmas)
|
||||
|
||||
|
||||
class FluxExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||
return [
|
||||
CLIPTextEncodeFlux,
|
||||
FluxGuidance,
|
||||
FluxDisableGuidance,
|
||||
FluxKontextImageScale,
|
||||
FluxKontextMultiReferenceLatentMethod,
|
||||
EmptyFlux2LatentImage,
|
||||
Flux2Scheduler,
|
||||
]
|
||||
|
||||
|
||||
async def comfy_entrypoint() -> FluxExtension:
|
||||
return FluxExtension()
|
||||
@@ -0,0 +1,109 @@
|
||||
import sys
|
||||
from typing_extensions import override
|
||||
|
||||
from comfy_api.latest import ComfyExtension, io
|
||||
|
||||
|
||||
class String(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PrimitiveString",
|
||||
display_name="String",
|
||||
category="utils/primitive",
|
||||
inputs=[
|
||||
io.String.Input("value"),
|
||||
],
|
||||
outputs=[io.String.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value: str) -> io.NodeOutput:
|
||||
return io.NodeOutput(value)
|
||||
|
||||
|
||||
class StringMultiline(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PrimitiveStringMultiline",
|
||||
display_name="String (Multiline)",
|
||||
category="utils/primitive",
|
||||
inputs=[
|
||||
io.String.Input("value", multiline=True),
|
||||
],
|
||||
outputs=[io.String.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value: str) -> io.NodeOutput:
|
||||
return io.NodeOutput(value)
|
||||
|
||||
|
||||
class Int(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PrimitiveInt",
|
||||
display_name="Int",
|
||||
category="utils/primitive",
|
||||
inputs=[
|
||||
io.Int.Input("value", min=-sys.maxsize, max=sys.maxsize, control_after_generate=True),
|
||||
],
|
||||
outputs=[io.Int.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value: int) -> io.NodeOutput:
|
||||
return io.NodeOutput(value)
|
||||
|
||||
|
||||
class Float(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PrimitiveFloat",
|
||||
display_name="Float",
|
||||
category="utils/primitive",
|
||||
inputs=[
|
||||
io.Float.Input("value", min=-sys.maxsize, max=sys.maxsize, step=0.1),
|
||||
],
|
||||
outputs=[io.Float.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value: float) -> io.NodeOutput:
|
||||
return io.NodeOutput(value)
|
||||
|
||||
|
||||
class Boolean(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PrimitiveBoolean",
|
||||
display_name="Boolean",
|
||||
category="utils/primitive",
|
||||
inputs=[
|
||||
io.Boolean.Input("value"),
|
||||
],
|
||||
outputs=[io.Boolean.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value: bool) -> io.NodeOutput:
|
||||
return io.NodeOutput(value)
|
||||
|
||||
|
||||
class PrimitivesExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||
return [
|
||||
String,
|
||||
StringMultiline,
|
||||
Int,
|
||||
Float,
|
||||
Boolean,
|
||||
]
|
||||
|
||||
async def comfy_entrypoint() -> PrimitivesExtension:
|
||||
return PrimitivesExtension()
|
||||
@@ -0,0 +1,496 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import time
|
||||
import mimetypes
|
||||
import logging
|
||||
from typing import Literal, List
|
||||
from collections.abc import Collection
|
||||
|
||||
from comfy.cli_args import args
|
||||
|
||||
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
|
||||
|
||||
folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {}
|
||||
|
||||
# --base-directory - Resets all default paths configured in folder_paths with a new base path
|
||||
if args.base_directory:
|
||||
base_path = os.path.abspath(args.base_directory)
|
||||
else:
|
||||
base_path = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
models_dir = os.path.join(base_path, "models")
|
||||
folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions)
|
||||
folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"])
|
||||
|
||||
folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions)
|
||||
folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions)
|
||||
folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions)
|
||||
folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"])
|
||||
folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions)
|
||||
folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["latent_upscale_models"] = ([os.path.join(models_dir, "latent_upscale_models")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set())
|
||||
|
||||
folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
|
||||
|
||||
folder_names_and_paths["model_patches"] = ([os.path.join(models_dir, "model_patches")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["audio_encoders"] = ([os.path.join(models_dir, "audio_encoders")], supported_pt_extensions)
|
||||
|
||||
output_directory = os.path.join(base_path, "output")
|
||||
temp_directory = os.path.join(base_path, "temp")
|
||||
input_directory = os.path.join(base_path, "input")
|
||||
user_directory = os.path.join(base_path, "user")
|
||||
|
||||
filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
|
||||
class CacheHelper:
|
||||
"""
|
||||
Helper class for managing file list cache data.
|
||||
"""
|
||||
def __init__(self):
|
||||
self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
self.active = False
|
||||
|
||||
def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]:
|
||||
if not self.active:
|
||||
return default
|
||||
return self.cache.get(key, default)
|
||||
|
||||
def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None:
|
||||
if self.active:
|
||||
self.cache[key] = value
|
||||
|
||||
def clear(self):
|
||||
self.cache.clear()
|
||||
|
||||
def __enter__(self):
|
||||
self.active = True
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.active = False
|
||||
self.clear()
|
||||
|
||||
cache_helper = CacheHelper()
|
||||
|
||||
extension_mimetypes_cache = {
|
||||
"webp" : "image",
|
||||
"fbx" : "model",
|
||||
}
|
||||
|
||||
def map_legacy(folder_name: str) -> str:
|
||||
legacy = {"unet": "diffusion_models",
|
||||
"clip": "text_encoders"}
|
||||
return legacy.get(folder_name, folder_name)
|
||||
|
||||
if not os.path.exists(input_directory):
|
||||
try:
|
||||
os.makedirs(input_directory)
|
||||
except:
|
||||
logging.error("Failed to create input directory")
|
||||
|
||||
def set_output_directory(output_dir: str) -> None:
|
||||
global output_directory
|
||||
output_directory = output_dir
|
||||
|
||||
def set_temp_directory(temp_dir: str) -> None:
|
||||
global temp_directory
|
||||
temp_directory = temp_dir
|
||||
|
||||
def set_input_directory(input_dir: str) -> None:
|
||||
global input_directory
|
||||
input_directory = input_dir
|
||||
|
||||
def get_output_directory() -> str:
|
||||
global output_directory
|
||||
return output_directory
|
||||
|
||||
def get_temp_directory() -> str:
|
||||
global temp_directory
|
||||
return temp_directory
|
||||
|
||||
def get_input_directory() -> str:
|
||||
global input_directory
|
||||
return input_directory
|
||||
|
||||
def get_user_directory() -> str:
|
||||
return user_directory
|
||||
|
||||
def set_user_directory(user_dir: str) -> None:
|
||||
global user_directory
|
||||
user_directory = user_dir
|
||||
|
||||
|
||||
# System User Protection - Protects system directories from HTTP endpoint access
|
||||
# System Users are internal-only users that cannot be accessed via HTTP endpoints.
|
||||
# They use the '__' prefix convention (similar to Python's private member convention).
|
||||
SYSTEM_USER_PREFIX = "__"
|
||||
|
||||
|
||||
def get_system_user_directory(name: str = "system") -> str:
|
||||
"""
|
||||
Get the path to a System User directory.
|
||||
|
||||
System User directories (prefixed with '__') are only accessible via internal API,
|
||||
not through HTTP endpoints. Use this for storing system-internal data that
|
||||
should not be exposed to users.
|
||||
|
||||
Args:
|
||||
name: System user name (e.g., "system", "cache"). Must be alphanumeric
|
||||
with underscores allowed, but cannot start with underscore.
|
||||
|
||||
Returns:
|
||||
Absolute path to the system user directory.
|
||||
|
||||
Raises:
|
||||
ValueError: If name is empty, invalid, or starts with underscore.
|
||||
|
||||
Example:
|
||||
>>> get_system_user_directory("cache")
|
||||
'/path/to/user/__cache'
|
||||
"""
|
||||
if not name or not isinstance(name, str):
|
||||
raise ValueError("System user name cannot be empty")
|
||||
if not name.replace("_", "").isalnum():
|
||||
raise ValueError(f"Invalid system user name: '{name}'")
|
||||
if name.startswith("_"):
|
||||
raise ValueError("System user name should not start with underscore")
|
||||
return os.path.join(get_user_directory(), f"{SYSTEM_USER_PREFIX}{name}")
|
||||
|
||||
|
||||
def get_public_user_directory(user_id: str) -> str | None:
|
||||
"""
|
||||
Get the path to a Public User directory for HTTP endpoint access.
|
||||
|
||||
This function provides structural security by returning None for any
|
||||
System User (prefixed with '__'). All HTTP endpoints should use this
|
||||
function instead of directly constructing user paths.
|
||||
|
||||
Args:
|
||||
user_id: User identifier from HTTP request.
|
||||
|
||||
Returns:
|
||||
Absolute path to the user directory, or None if user_id is invalid
|
||||
or refers to a System User.
|
||||
|
||||
Example:
|
||||
>>> get_public_user_directory("default")
|
||||
'/path/to/user/default'
|
||||
>>> get_public_user_directory("__system")
|
||||
None
|
||||
"""
|
||||
if not user_id or not isinstance(user_id, str):
|
||||
return None
|
||||
if user_id.startswith(SYSTEM_USER_PREFIX):
|
||||
return None
|
||||
return os.path.join(get_user_directory(), user_id)
|
||||
|
||||
|
||||
#NOTE: used in http server so don't put folders that should not be accessed remotely
|
||||
def get_directory_by_type(type_name: str) -> str | None:
|
||||
if type_name == "output":
|
||||
return get_output_directory()
|
||||
if type_name == "temp":
|
||||
return get_temp_directory()
|
||||
if type_name == "input":
|
||||
return get_input_directory()
|
||||
return None
|
||||
|
||||
def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]:
|
||||
"""
|
||||
Example:
|
||||
files = os.listdir(folder_paths.get_input_directory())
|
||||
videos = filter_files_content_types(files, ["video"])
|
||||
|
||||
Note:
|
||||
- 'model' in MIME context refers to 3D models, not files containing trained weights and parameters
|
||||
"""
|
||||
global extension_mimetypes_cache
|
||||
result = []
|
||||
for file in files:
|
||||
extension = file.split('.')[-1]
|
||||
if extension not in extension_mimetypes_cache:
|
||||
mime_type, _ = mimetypes.guess_type(file, strict=False)
|
||||
if not mime_type:
|
||||
continue
|
||||
content_type = mime_type.split('/')[0]
|
||||
extension_mimetypes_cache[extension] = content_type
|
||||
else:
|
||||
content_type = extension_mimetypes_cache[extension]
|
||||
|
||||
if content_type in content_types:
|
||||
result.append(file)
|
||||
return result
|
||||
|
||||
# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format
|
||||
# otherwise use default_path as base_dir
|
||||
def annotated_filepath(name: str) -> tuple[str, str | None]:
|
||||
if name.endswith("[output]"):
|
||||
base_dir = get_output_directory()
|
||||
name = name[:-9]
|
||||
elif name.endswith("[input]"):
|
||||
base_dir = get_input_directory()
|
||||
name = name[:-8]
|
||||
elif name.endswith("[temp]"):
|
||||
base_dir = get_temp_directory()
|
||||
name = name[:-7]
|
||||
else:
|
||||
return name, None
|
||||
|
||||
return name, base_dir
|
||||
|
||||
|
||||
def get_annotated_filepath(name: str, default_dir: str | None=None) -> str:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
if default_dir is not None:
|
||||
base_dir = default_dir
|
||||
else:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
return os.path.join(base_dir, name)
|
||||
|
||||
|
||||
def exists_annotated_filepath(name) -> bool:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
filepath = os.path.join(base_dir, name)
|
||||
return os.path.exists(filepath)
|
||||
|
||||
|
||||
def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None:
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name in folder_names_and_paths:
|
||||
paths, _exts = folder_names_and_paths[folder_name]
|
||||
if full_folder_path in paths:
|
||||
if is_default and paths[0] != full_folder_path:
|
||||
# If the path to the folder is not the first in the list, move it to the beginning.
|
||||
paths.remove(full_folder_path)
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
if is_default:
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
paths.append(full_folder_path)
|
||||
else:
|
||||
folder_names_and_paths[folder_name] = ([full_folder_path], set())
|
||||
|
||||
def get_folder_paths(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
return folder_names_and_paths[folder_name][0][:]
|
||||
|
||||
def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]:
|
||||
if not os.path.isdir(directory):
|
||||
return [], {}
|
||||
|
||||
if excluded_dir_names is None:
|
||||
excluded_dir_names = []
|
||||
|
||||
result = []
|
||||
dirs = {}
|
||||
|
||||
# Attempt to add the initial directory to dirs with error handling
|
||||
try:
|
||||
dirs[directory] = os.path.getmtime(directory)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
|
||||
|
||||
logging.debug("recursive file list on directory {}".format(directory))
|
||||
dirpath: str
|
||||
subdirs: list[str]
|
||||
filenames: list[str]
|
||||
|
||||
for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True):
|
||||
subdirs[:] = [d for d in subdirs if d not in excluded_dir_names]
|
||||
for file_name in filenames:
|
||||
try:
|
||||
relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory)
|
||||
result.append(relative_path)
|
||||
except:
|
||||
logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.")
|
||||
continue
|
||||
|
||||
for d in subdirs:
|
||||
path: str = os.path.join(dirpath, d)
|
||||
try:
|
||||
dirs[path] = os.path.getmtime(path)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {path}. Skipping this path.")
|
||||
continue
|
||||
logging.debug("found {} files".format(len(result)))
|
||||
return result, dirs
|
||||
|
||||
def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]:
|
||||
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
|
||||
|
||||
|
||||
|
||||
def get_full_path(folder_name: str, filename: str) -> str | None:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in folder_names_and_paths:
|
||||
return None
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
filename = os.path.relpath(os.path.join("/", filename), "/")
|
||||
for x in folders[0]:
|
||||
full_path = os.path.join(x, filename)
|
||||
if os.path.isfile(full_path):
|
||||
return full_path
|
||||
elif os.path.islink(full_path):
|
||||
logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def get_full_path_or_raise(folder_name: str, filename: str) -> str:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
full_path = get_full_path(folder_name, filename)
|
||||
if full_path is None:
|
||||
raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.")
|
||||
return full_path
|
||||
|
||||
|
||||
def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
global folder_names_and_paths
|
||||
output_list = set()
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
output_folders = {}
|
||||
for x in folders[0]:
|
||||
files, folders_all = recursive_search(x, excluded_dir_names=[".git"])
|
||||
output_list.update(filter_files_extensions(files, folders[1]))
|
||||
output_folders = {**output_folders, **folders_all}
|
||||
|
||||
return sorted(list(output_list)), output_folders, time.perf_counter()
|
||||
|
||||
def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None:
|
||||
strong_cache = cache_helper.get(folder_name)
|
||||
if strong_cache is not None:
|
||||
return strong_cache
|
||||
|
||||
global filename_list_cache
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in filename_list_cache:
|
||||
return None
|
||||
out = filename_list_cache[folder_name]
|
||||
|
||||
for x in out[1]:
|
||||
time_modified = out[1][x]
|
||||
folder = x
|
||||
if os.path.getmtime(folder) != time_modified:
|
||||
return None
|
||||
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
for x in folders[0]:
|
||||
if os.path.isdir(x):
|
||||
if x not in out[1]:
|
||||
return None
|
||||
|
||||
return out
|
||||
|
||||
def get_filename_list(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
out = cached_filename_list_(folder_name)
|
||||
if out is None:
|
||||
out = get_filename_list_(folder_name)
|
||||
global filename_list_cache
|
||||
filename_list_cache[folder_name] = out
|
||||
cache_helper.set(folder_name, out)
|
||||
return list(out[0])
|
||||
|
||||
def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]:
|
||||
def map_filename(filename: str) -> tuple[int, str]:
|
||||
prefix_len = len(os.path.basename(filename_prefix))
|
||||
prefix = filename[:prefix_len + 1]
|
||||
try:
|
||||
digits = int(filename[prefix_len + 1:].split('_')[0])
|
||||
except:
|
||||
digits = 0
|
||||
return digits, prefix
|
||||
|
||||
def compute_vars(input: str, image_width: int, image_height: int) -> str:
|
||||
input = input.replace("%width%", str(image_width))
|
||||
input = input.replace("%height%", str(image_height))
|
||||
now = time.localtime()
|
||||
input = input.replace("%year%", str(now.tm_year))
|
||||
input = input.replace("%month%", str(now.tm_mon).zfill(2))
|
||||
input = input.replace("%day%", str(now.tm_mday).zfill(2))
|
||||
input = input.replace("%hour%", str(now.tm_hour).zfill(2))
|
||||
input = input.replace("%minute%", str(now.tm_min).zfill(2))
|
||||
input = input.replace("%second%", str(now.tm_sec).zfill(2))
|
||||
return input
|
||||
|
||||
if "%" in filename_prefix:
|
||||
filename_prefix = compute_vars(filename_prefix, image_width, image_height)
|
||||
|
||||
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
|
||||
filename = os.path.basename(os.path.normpath(filename_prefix))
|
||||
|
||||
full_output_folder = os.path.join(output_dir, subfolder)
|
||||
|
||||
if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
|
||||
err = "**** ERROR: Saving image outside the output folder is not allowed." + \
|
||||
"\n full_output_folder: " + os.path.abspath(full_output_folder) + \
|
||||
"\n output_dir: " + output_dir + \
|
||||
"\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder)))
|
||||
logging.error(err)
|
||||
raise Exception(err)
|
||||
|
||||
try:
|
||||
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
|
||||
except ValueError:
|
||||
counter = 1
|
||||
except FileNotFoundError:
|
||||
os.makedirs(full_output_folder, exist_ok=True)
|
||||
counter = 1
|
||||
return full_output_folder, filename, counter, subfolder, filename_prefix
|
||||
|
||||
def get_input_subfolders() -> list[str]:
|
||||
"""Returns a list of all subfolder paths in the input directory, recursively.
|
||||
|
||||
Returns:
|
||||
List of folder paths relative to the input directory, excluding the root directory
|
||||
"""
|
||||
input_dir = get_input_directory()
|
||||
folders = []
|
||||
|
||||
try:
|
||||
if not os.path.exists(input_dir):
|
||||
return []
|
||||
|
||||
for root, dirs, _ in os.walk(input_dir):
|
||||
rel_path = os.path.relpath(root, input_dir)
|
||||
if rel_path != ".": # Only include non-root directories
|
||||
# Normalize path separators to forward slashes
|
||||
folders.append(rel_path.replace(os.sep, '/'))
|
||||
|
||||
return sorted(folders)
|
||||
except FileNotFoundError:
|
||||
return []
|
||||
@@ -0,0 +1,137 @@
|
||||
import torch
|
||||
from PIL import Image
|
||||
from comfy.cli_args import args, LatentPreviewMethod
|
||||
from comfy.taesd.taesd import TAESD
|
||||
from comfy.sd import VAE
|
||||
import comfy.model_management
|
||||
import folder_paths
|
||||
import comfy.utils
|
||||
import logging
|
||||
|
||||
default_preview_method = args.preview_method
|
||||
|
||||
MAX_PREVIEW_RESOLUTION = args.preview_size
|
||||
VIDEO_TAES = ["taehv", "lighttaew2_2", "lighttaew2_1", "lighttaehy1_5"]
|
||||
|
||||
def preview_to_image(latent_image, do_scale=True):
|
||||
if do_scale:
|
||||
latents_ubyte = (((latent_image + 1.0) / 2.0).clamp(0, 1) # change scale from -1..1 to 0..1
|
||||
.mul(0xFF) # to 0..255
|
||||
)
|
||||
else:
|
||||
latents_ubyte = (latent_image.clamp(0, 1)
|
||||
.mul(0xFF) # to 0..255
|
||||
)
|
||||
if comfy.model_management.directml_enabled:
|
||||
latents_ubyte = latents_ubyte.to(dtype=torch.uint8)
|
||||
latents_ubyte = latents_ubyte.to(device="cpu", dtype=torch.uint8, non_blocking=comfy.model_management.device_supports_non_blocking(latent_image.device))
|
||||
|
||||
return Image.fromarray(latents_ubyte.numpy())
|
||||
|
||||
class LatentPreviewer:
|
||||
def decode_latent_to_preview(self, x0):
|
||||
pass
|
||||
|
||||
def decode_latent_to_preview_image(self, preview_format, x0):
|
||||
preview_image = self.decode_latent_to_preview(x0)
|
||||
return ("JPEG", preview_image, MAX_PREVIEW_RESOLUTION)
|
||||
|
||||
class TAESDPreviewerImpl(LatentPreviewer):
|
||||
def __init__(self, taesd):
|
||||
self.taesd = taesd
|
||||
|
||||
def decode_latent_to_preview(self, x0):
|
||||
x_sample = self.taesd.decode(x0[:1])[0].movedim(0, 2)
|
||||
return preview_to_image(x_sample)
|
||||
|
||||
class TAEHVPreviewerImpl(TAESDPreviewerImpl):
|
||||
def decode_latent_to_preview(self, x0):
|
||||
x_sample = self.taesd.decode(x0[:1, :, :1])[0][0]
|
||||
return preview_to_image(x_sample, do_scale=False)
|
||||
|
||||
class Latent2RGBPreviewer(LatentPreviewer):
|
||||
def __init__(self, latent_rgb_factors, latent_rgb_factors_bias=None, latent_rgb_factors_reshape=None):
|
||||
self.latent_rgb_factors = torch.tensor(latent_rgb_factors, device="cpu").transpose(0, 1)
|
||||
self.latent_rgb_factors_bias = None
|
||||
if latent_rgb_factors_bias is not None:
|
||||
self.latent_rgb_factors_bias = torch.tensor(latent_rgb_factors_bias, device="cpu")
|
||||
self.latent_rgb_factors_reshape = latent_rgb_factors_reshape
|
||||
|
||||
def decode_latent_to_preview(self, x0):
|
||||
if self.latent_rgb_factors_reshape is not None:
|
||||
x0 = self.latent_rgb_factors_reshape(x0)
|
||||
self.latent_rgb_factors = self.latent_rgb_factors.to(dtype=x0.dtype, device=x0.device)
|
||||
if self.latent_rgb_factors_bias is not None:
|
||||
self.latent_rgb_factors_bias = self.latent_rgb_factors_bias.to(dtype=x0.dtype, device=x0.device)
|
||||
|
||||
if x0.ndim == 5:
|
||||
x0 = x0[0, :, 0]
|
||||
else:
|
||||
x0 = x0[0]
|
||||
|
||||
latent_image = torch.nn.functional.linear(x0.movedim(0, -1), self.latent_rgb_factors, bias=self.latent_rgb_factors_bias)
|
||||
# latent_image = x0[0].permute(1, 2, 0) @ self.latent_rgb_factors
|
||||
|
||||
return preview_to_image(latent_image)
|
||||
|
||||
|
||||
def get_previewer(device, latent_format):
|
||||
previewer = None
|
||||
method = args.preview_method
|
||||
if method != LatentPreviewMethod.NoPreviews:
|
||||
# TODO previewer methods
|
||||
taesd_decoder_path = None
|
||||
if latent_format.taesd_decoder_name is not None:
|
||||
taesd_decoder_path = next(
|
||||
(fn for fn in folder_paths.get_filename_list("vae_approx")
|
||||
if fn.startswith(latent_format.taesd_decoder_name)),
|
||||
""
|
||||
)
|
||||
taesd_decoder_path = folder_paths.get_full_path("vae_approx", taesd_decoder_path)
|
||||
|
||||
if method == LatentPreviewMethod.Auto:
|
||||
method = LatentPreviewMethod.Latent2RGB
|
||||
|
||||
if method == LatentPreviewMethod.TAESD:
|
||||
if taesd_decoder_path:
|
||||
if latent_format.taesd_decoder_name in VIDEO_TAES:
|
||||
taesd = VAE(comfy.utils.load_torch_file(taesd_decoder_path))
|
||||
taesd.first_stage_model.show_progress_bar = False
|
||||
previewer = TAEHVPreviewerImpl(taesd)
|
||||
else:
|
||||
taesd = TAESD(None, taesd_decoder_path, latent_channels=latent_format.latent_channels).to(device)
|
||||
previewer = TAESDPreviewerImpl(taesd)
|
||||
else:
|
||||
logging.warning("Warning: TAESD previews enabled, but could not find models/vae_approx/{}".format(latent_format.taesd_decoder_name))
|
||||
|
||||
if previewer is None:
|
||||
if latent_format.latent_rgb_factors is not None:
|
||||
previewer = Latent2RGBPreviewer(latent_format.latent_rgb_factors, latent_format.latent_rgb_factors_bias, latent_format.latent_rgb_factors_reshape)
|
||||
return previewer
|
||||
|
||||
def prepare_callback(model, steps, x0_output_dict=None):
|
||||
preview_format = "JPEG"
|
||||
if preview_format not in ["JPEG", "PNG"]:
|
||||
preview_format = "JPEG"
|
||||
|
||||
previewer = get_previewer(model.load_device, model.model.latent_format)
|
||||
|
||||
pbar = comfy.utils.ProgressBar(steps)
|
||||
def callback(step, x0, x, total_steps):
|
||||
if x0_output_dict is not None:
|
||||
x0_output_dict["x0"] = x0
|
||||
|
||||
preview_bytes = None
|
||||
if previewer:
|
||||
preview_bytes = previewer.decode_latent_to_preview_image(preview_format, x0)
|
||||
pbar.update_absolute(step + 1, total_steps, preview_bytes)
|
||||
return callback
|
||||
|
||||
def set_preview_method(override: str = None):
|
||||
if override and override != "default":
|
||||
method = LatentPreviewMethod.from_string(override)
|
||||
if method is not None:
|
||||
args.preview_method = method
|
||||
return
|
||||
args.preview_method = default_preview_method
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
import hashlib
|
||||
import torch
|
||||
|
||||
from comfy.cli_args import args
|
||||
|
||||
from PIL import ImageFile, UnidentifiedImageError
|
||||
|
||||
def conditioning_set_values(conditioning, values={}, append=False):
|
||||
c = []
|
||||
for t in conditioning:
|
||||
n = [t[0], t[1].copy()]
|
||||
for k in values:
|
||||
val = values[k]
|
||||
if append:
|
||||
old_val = n[1].get(k, None)
|
||||
if old_val is not None:
|
||||
val = old_val + val
|
||||
|
||||
n[1][k] = val
|
||||
c.append(n)
|
||||
|
||||
return c
|
||||
|
||||
def pillow(fn, arg):
|
||||
prev_value = None
|
||||
try:
|
||||
x = fn(arg)
|
||||
except (OSError, UnidentifiedImageError, ValueError): #PIL issues #4472 and #2445, also fixes ComfyUI issue #3416
|
||||
prev_value = ImageFile.LOAD_TRUNCATED_IMAGES
|
||||
ImageFile.LOAD_TRUNCATED_IMAGES = True
|
||||
x = fn(arg)
|
||||
finally:
|
||||
if prev_value is not None:
|
||||
ImageFile.LOAD_TRUNCATED_IMAGES = prev_value
|
||||
return x
|
||||
|
||||
def hasher():
|
||||
hashfuncs = {
|
||||
"md5": hashlib.md5,
|
||||
"sha1": hashlib.sha1,
|
||||
"sha256": hashlib.sha256,
|
||||
"sha512": hashlib.sha512
|
||||
}
|
||||
return hashfuncs[args.default_hashing_function]
|
||||
|
||||
def string_to_torch_dtype(string):
|
||||
if string == "fp32":
|
||||
return torch.float32
|
||||
if string == "fp16":
|
||||
return torch.float16
|
||||
if string == "bf16":
|
||||
return torch.bfloat16
|
||||
|
||||
def image_alpha_fix(destination, source):
|
||||
if destination.shape[-1] < source.shape[-1]:
|
||||
source = source[...,:destination.shape[-1]]
|
||||
elif destination.shape[-1] > source.shape[-1]:
|
||||
destination = torch.nn.functional.pad(destination, (0, 1))
|
||||
destination[..., -1] = 1.0
|
||||
return destination, source
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,33 @@
|
||||
tree 9f023603a90562413c91b1431b86675c3de5756e
|
||||
parent 1d6d3fdc77be66a689480e337f1364a3bfc59e35
|
||||
author Comfy Org PR Bot <snomiao+comfy-pr@gmail.com> 1767646982 +0900
|
||||
committer GitHub <noreply@github.com> 1767646982 -0700
|
||||
gpgsig -----BEGIN PGP SIGNATURE-----
|
||||
|
||||
wsFcBAABCAAQBQJpXCcGCRC1aQ7uu5UhlAAAWfEQAHeye116gyQ43Wll+auk2f9m
|
||||
tWUmiEtkl19k2w3RHfeT9X1K1wVYTTZZ3S6Iv8OfWexFS3vad+nxp7yuHQBAhQcF
|
||||
88BjL1bS/is36K8k28TpcpSSi4hYpjHT3vdffFqKJMelllb2I67VBOTvJhfwc+ms
|
||||
xHnU1oysuQSmCIsQYOvnOIQGZyUQakxfDek5jURejBj4OFKqdCZJ4kFgsnUjSUR/
|
||||
3tup+0ZBAp3thnQL6/K+YozLCUEv9yIImIsgRHsNOunNoZPSQsNdlicAWEwV388a
|
||||
ZyXUhSwO6y0AYqNGVBLvOrAOPts/ZQvKroV5UKRajS7elNbURRdYMp8SFt1VWJd8
|
||||
no1q+O6d/Md8ICUzqsM7HD+lnJ0e7bte0p2WOezXWt719njd/BXfyhQ1AmVQbfEK
|
||||
9TdE03s19sRNAS3oMYtohEqsnCaBJK3MnjFYSu8gIZGFz5hvob6P5/xDSt/DgUts
|
||||
kYPKvcm1tI3YGjvghPTjQAeZO3ebP9+hqgDjs3Re0z11s2cfLUTGjKnuripJ+PN6
|
||||
eMT4nmSpMG4JE2GYus1bXMZtIv9W39SGzebt9ko9o1I+Hln2tFFM0QO8DKf16qlx
|
||||
9FDaUv1OI0/3i4WgOcuSqapxuCfY7l/SdbBvbkzQwkRJuqdluKtSd0LJVOmq4W7R
|
||||
qRAWOWqg8dM86dMOLebU
|
||||
=L9DI
|
||||
-----END PGP SIGNATURE-----
|
||||
|
||||
|
||||
1.36.13 (#7854)
|
||||
|
||||
Patch version increment to 1.36.13
|
||||
|
||||
**Base branch:** `core/1.36`
|
||||
|
||||
┆Issue is synchronized with this [Notion
|
||||
page](https://www.notion.so/PR-7854-1-36-13-2df6d73d365081cb86cfc41d09fe8e99)
|
||||
by [Unito](https://www.unito.io)
|
||||
|
||||
Co-authored-by: comfy-pr-bot <172744619+comfy-pr-bot@users.noreply.github.com>
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "refs/tags/v1.36.13",
|
||||
"commit": "b3ca1fb5a0531153efa04bb7af2a47b3d708ba95",
|
||||
"object": "b3ca1fb5a0531153efa04bb7af2a47b3d708ba95"
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
tree 9f023603a90562413c91b1431b86675c3de5756e
|
||||
parent 1d6d3fdc77be66a689480e337f1364a3bfc59e35
|
||||
author Comfy Org PR Bot <snomiao+comfy-pr@gmail.com> 1767646982 +0900
|
||||
committer GitHub <noreply@github.com> 1767646982 -0700
|
||||
gpgsig -----BEGIN PGP SIGNATURE-----
|
||||
|
||||
wsFcBAABCAAQBQJpXCcGCRC1aQ7uu5UhlAAAWfEQAHeye116gyQ43Wll+auk2f9m
|
||||
tWUmiEtkl19k2w3RHfeT9X1K1wVYTTZZ3S6Iv8OfWexFS3vad+nxp7yuHQBAhQcF
|
||||
88BjL1bS/is36K8k28TpcpSSi4hYpjHT3vdffFqKJMelllb2I67VBOTvJhfwc+ms
|
||||
xHnU1oysuQSmCIsQYOvnOIQGZyUQakxfDek5jURejBj4OFKqdCZJ4kFgsnUjSUR/
|
||||
3tup+0ZBAp3thnQL6/K+YozLCUEv9yIImIsgRHsNOunNoZPSQsNdlicAWEwV388a
|
||||
ZyXUhSwO6y0AYqNGVBLvOrAOPts/ZQvKroV5UKRajS7elNbURRdYMp8SFt1VWJd8
|
||||
no1q+O6d/Md8ICUzqsM7HD+lnJ0e7bte0p2WOezXWt719njd/BXfyhQ1AmVQbfEK
|
||||
9TdE03s19sRNAS3oMYtohEqsnCaBJK3MnjFYSu8gIZGFz5hvob6P5/xDSt/DgUts
|
||||
kYPKvcm1tI3YGjvghPTjQAeZO3ebP9+hqgDjs3Re0z11s2cfLUTGjKnuripJ+PN6
|
||||
eMT4nmSpMG4JE2GYus1bXMZtIv9W39SGzebt9ko9o1I+Hln2tFFM0QO8DKf16qlx
|
||||
9FDaUv1OI0/3i4WgOcuSqapxuCfY7l/SdbBvbkzQwkRJuqdluKtSd0LJVOmq4W7R
|
||||
qRAWOWqg8dM86dMOLebU
|
||||
=L9DI
|
||||
-----END PGP SIGNATURE-----
|
||||
|
||||
|
||||
1.36.13 (#7854)
|
||||
|
||||
Patch version increment to 1.36.13
|
||||
|
||||
**Base branch:** `core/1.36`
|
||||
|
||||
┆Issue is synchronized with this [Notion
|
||||
page](https://www.notion.so/PR-7854-1-36-13-2df6d73d365081cb86cfc41d09fe8e99)
|
||||
by [Unito](https://www.unito.io)
|
||||
|
||||
Co-authored-by: comfy-pr-bot <172744619+comfy-pr-bot@users.noreply.github.com>
|
||||
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,193 @@
|
||||
{
|
||||
"name": "@comfyorg/comfyui-frontend",
|
||||
"private": true,
|
||||
"version": "1.36.13",
|
||||
"type": "module",
|
||||
"repository": "https://github.com/Comfy-Org/ComfyUI_frontend",
|
||||
"homepage": "https://comfy.org",
|
||||
"description": "Official front-end implementation of ComfyUI",
|
||||
"license": "GPL-3.0-only",
|
||||
"scripts": {
|
||||
"build:desktop": "nx build @comfyorg/desktop-ui",
|
||||
"build-storybook": "storybook build",
|
||||
"build:types": "nx build --config vite.types.config.mts && node scripts/prepare-types.js",
|
||||
"build:analyze": "cross-env ANALYZE_BUNDLE=true pnpm build",
|
||||
"build": "cross-env NODE_OPTIONS='--max-old-space-size=8192' pnpm typecheck && nx build",
|
||||
"size:collect": "node scripts/size-collect.js",
|
||||
"size:report": "node scripts/size-report.js",
|
||||
"collect-i18n": "pnpm exec playwright test --config=playwright.i18n.config.ts",
|
||||
"dev:cloud": "cross-env DEV_SERVER_COMFYUI_URL='https://testcloud.comfy.org/' nx serve",
|
||||
"dev:desktop": "nx dev @comfyorg/desktop-ui",
|
||||
"dev:electron": "nx serve --config vite.electron.config.mts",
|
||||
"dev:no-vue": "cross-env DISABLE_VUE_PLUGINS=true nx serve",
|
||||
"dev": "nx serve",
|
||||
"devtools:pycheck": "python3 -m compileall -q tools/devtools",
|
||||
"format:check:no-cache": "prettier --check './**/*.{js,ts,tsx,vue,mts}'",
|
||||
"format:check": "prettier --check './**/*.{js,ts,tsx,vue,mts}' --cache",
|
||||
"format:no-cache": "prettier --write './**/*.{js,ts,tsx,vue,mts}' --list-different",
|
||||
"format": "prettier --write './**/*.{js,ts,tsx,vue,mts}' --cache --list-different",
|
||||
"json-schema": "tsx scripts/generate-json-schema.ts",
|
||||
"knip:no-cache": "knip",
|
||||
"knip": "knip --cache",
|
||||
"lint:fix:no-cache": "oxlint src --type-aware --fix && eslint src --fix",
|
||||
"lint:fix": "oxlint src --type-aware --fix && eslint src --cache --fix",
|
||||
"lint:no-cache": "oxlint src --type-aware && eslint src",
|
||||
"lint:unstaged:fix": "git diff --name-only HEAD | grep -E '\\.(js|ts|vue|mts)$' | xargs -r eslint --cache --fix",
|
||||
"lint:unstaged": "git diff --name-only HEAD | grep -E '\\.(js|ts|vue|mts)$' | xargs -r eslint --cache",
|
||||
"lint": "oxlint src --type-aware && eslint src --cache",
|
||||
"lint:desktop": "nx run @comfyorg/desktop-ui:lint",
|
||||
"locale": "lobe-i18n locale",
|
||||
"oxlint": "oxlint src --type-aware",
|
||||
"preinstall": "pnpm dlx only-allow pnpm",
|
||||
"prepare": "husky || true && git config blame.ignoreRevsFile .git-blame-ignore-revs || true",
|
||||
"preview": "nx preview",
|
||||
"storybook": "nx storybook",
|
||||
"stylelint:fix": "stylelint --cache --fix '{apps,packages,src}/**/*.{css,vue}'",
|
||||
"stylelint": "stylelint --cache '{apps,packages,src}/**/*.{css,vue}'",
|
||||
"test:browser": "pnpm exec nx e2e",
|
||||
"test:browser:local": "cross-env PLAYWRIGHT_LOCAL=1 pnpm test:browser",
|
||||
"test:unit": "nx run test",
|
||||
"typecheck": "vue-tsc --noEmit",
|
||||
"typecheck:desktop": "nx run @comfyorg/desktop-ui:typecheck",
|
||||
"zipdist": "node scripts/zipdist.js",
|
||||
"clean": "nx reset"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "catalog:",
|
||||
"@intlify/eslint-plugin-vue-i18n": "catalog:",
|
||||
"@lobehub/i18n-cli": "catalog:",
|
||||
"@nx/eslint": "catalog:",
|
||||
"@nx/playwright": "catalog:",
|
||||
"@nx/storybook": "catalog:",
|
||||
"@nx/vite": "catalog:",
|
||||
"@pinia/testing": "catalog:",
|
||||
"@playwright/test": "catalog:",
|
||||
"@prettier/plugin-oxc": "catalog:",
|
||||
"@sentry/vite-plugin": "catalog:",
|
||||
"@storybook/addon-docs": "catalog:",
|
||||
"@storybook/vue3": "catalog:",
|
||||
"@storybook/vue3-vite": "catalog:",
|
||||
"@tailwindcss/vite": "catalog:",
|
||||
"@trivago/prettier-plugin-sort-imports": "catalog:",
|
||||
"@types/fs-extra": "catalog:",
|
||||
"@types/jsdom": "catalog:",
|
||||
"@types/node": "catalog:",
|
||||
"@types/semver": "catalog:",
|
||||
"@types/three": "catalog:",
|
||||
"@vitejs/plugin-vue": "catalog:",
|
||||
"@vitest/coverage-v8": "catalog:",
|
||||
"@vitest/ui": "catalog:",
|
||||
"@vue/test-utils": "catalog:",
|
||||
"@webgpu/types": "catalog:",
|
||||
"cross-env": "catalog:",
|
||||
"eslint": "catalog:",
|
||||
"eslint-config-prettier": "catalog:",
|
||||
"eslint-import-resolver-typescript": "catalog:",
|
||||
"eslint-plugin-import-x": "catalog:",
|
||||
"eslint-plugin-oxlint": "catalog:",
|
||||
"eslint-plugin-storybook": "catalog:",
|
||||
"eslint-plugin-unused-imports": "catalog:",
|
||||
"eslint-plugin-vue": "catalog:",
|
||||
"fs-extra": "^11.2.0",
|
||||
"globals": "catalog:",
|
||||
"happy-dom": "catalog:",
|
||||
"husky": "catalog:",
|
||||
"jiti": "catalog:",
|
||||
"jsdom": "catalog:",
|
||||
"knip": "catalog:",
|
||||
"lint-staged": "catalog:",
|
||||
"markdown-table": "catalog:",
|
||||
"mixpanel-browser": "catalog:",
|
||||
"nx": "catalog:",
|
||||
"oxlint": "catalog:",
|
||||
"oxlint-tsgolint": "catalog:",
|
||||
"picocolors": "catalog:",
|
||||
"postcss-html": "catalog:",
|
||||
"prettier": "catalog:",
|
||||
"pretty-bytes": "catalog:",
|
||||
"rollup-plugin-visualizer": "catalog:",
|
||||
"storybook": "catalog:",
|
||||
"stylelint": "catalog:",
|
||||
"tailwindcss": "catalog:",
|
||||
"tailwindcss-primeui": "catalog:",
|
||||
"tsx": "catalog:",
|
||||
"tw-animate-css": "catalog:",
|
||||
"typescript": "catalog:",
|
||||
"typescript-eslint": "catalog:",
|
||||
"unplugin-icons": "catalog:",
|
||||
"unplugin-typegpu": "catalog:",
|
||||
"unplugin-vue-components": "catalog:",
|
||||
"uuid": "^11.1.0",
|
||||
"vite": "catalog:",
|
||||
"vite-plugin-dts": "catalog:",
|
||||
"vite-plugin-html": "catalog:",
|
||||
"vite-plugin-vue-devtools": "catalog:",
|
||||
"vitest": "catalog:",
|
||||
"vue-component-type-helpers": "catalog:",
|
||||
"vue-eslint-parser": "catalog:",
|
||||
"vue-tsc": "catalog:",
|
||||
"zip-dir": "^2.0.0",
|
||||
"zod-to-json-schema": "catalog:"
|
||||
},
|
||||
"dependencies": {
|
||||
"@alloc/quick-lru": "catalog:",
|
||||
"@atlaskit/pragmatic-drag-and-drop": "^1.3.1",
|
||||
"@comfyorg/comfyui-electron-types": "catalog:",
|
||||
"@comfyorg/design-system": "workspace:*",
|
||||
"@comfyorg/registry-types": "workspace:*",
|
||||
"@comfyorg/shared-frontend-utils": "workspace:*",
|
||||
"@comfyorg/tailwind-utils": "workspace:*",
|
||||
"@iconify/json": "catalog:",
|
||||
"@primeuix/forms": "catalog:",
|
||||
"@primeuix/styled": "catalog:",
|
||||
"@primeuix/utils": "catalog:",
|
||||
"@primevue/core": "catalog:",
|
||||
"@primevue/forms": "catalog:",
|
||||
"@primevue/icons": "catalog:",
|
||||
"@primevue/themes": "catalog:",
|
||||
"@sentry/vue": "catalog:",
|
||||
"@sparkjsdev/spark": "catalog:",
|
||||
"@tiptap/core": "^2.10.4",
|
||||
"@tiptap/extension-link": "^2.10.4",
|
||||
"@tiptap/extension-table": "^2.10.4",
|
||||
"@tiptap/extension-table-cell": "^2.10.4",
|
||||
"@tiptap/extension-table-header": "^2.10.4",
|
||||
"@tiptap/extension-table-row": "^2.10.4",
|
||||
"@tiptap/starter-kit": "^2.10.4",
|
||||
"@vueuse/core": "catalog:",
|
||||
"@vueuse/integrations": "catalog:",
|
||||
"@xterm/addon-fit": "^0.10.0",
|
||||
"@xterm/addon-serialize": "^0.13.0",
|
||||
"@xterm/xterm": "^5.5.0",
|
||||
"algoliasearch": "catalog:",
|
||||
"axios": "catalog:",
|
||||
"chart.js": "^4.5.0",
|
||||
"cva": "catalog:",
|
||||
"dompurify": "^3.2.5",
|
||||
"dotenv": "catalog:",
|
||||
"es-toolkit": "^1.39.9",
|
||||
"extendable-media-recorder": "^9.2.27",
|
||||
"extendable-media-recorder-wav-encoder": "^7.0.129",
|
||||
"firebase": "catalog:",
|
||||
"fuse.js": "^7.0.0",
|
||||
"glob": "^11.0.3",
|
||||
"jsondiffpatch": "^0.6.0",
|
||||
"loglevel": "^1.9.2",
|
||||
"marked": "^15.0.11",
|
||||
"pinia": "catalog:",
|
||||
"primeicons": "catalog:",
|
||||
"primevue": "catalog:",
|
||||
"reka-ui": "catalog:",
|
||||
"semver": "^7.7.2",
|
||||
"three": "^0.170.0",
|
||||
"tiptap-markdown": "^0.8.10",
|
||||
"typegpu": "catalog:",
|
||||
"vue": "catalog:",
|
||||
"vue-i18n": "catalog:",
|
||||
"vue-router": "catalog:",
|
||||
"vuefire": "catalog:",
|
||||
"yjs": "catalog:",
|
||||
"zod": "catalog:",
|
||||
"zod-validation-error": "catalog:"
|
||||
}
|
||||
}
|
||||
+17143
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,84 @@
|
||||
import { LGraphCanvas, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||
|
||||
import { app } from '../../scripts/app'
|
||||
import { ComfyWidgets } from '../../scripts/widgets'
|
||||
|
||||
// Node that add notes to your project
|
||||
|
||||
app.registerExtension({
|
||||
name: 'Comfy.NoteNode',
|
||||
registerCustomNodes() {
|
||||
class NoteNode extends LGraphNode {
|
||||
static override category: string
|
||||
static collapsable: boolean
|
||||
static title_mode: number
|
||||
|
||||
groupcolor = LGraphCanvas.node_colors.yellow.groupcolor
|
||||
override isVirtualNode: boolean
|
||||
|
||||
constructor(title: string) {
|
||||
super(title)
|
||||
|
||||
this.color = LGraphCanvas.node_colors.yellow.color
|
||||
this.bgcolor = LGraphCanvas.node_colors.yellow.bgcolor
|
||||
|
||||
if (!this.properties) {
|
||||
this.properties = { text: '' }
|
||||
}
|
||||
ComfyWidgets.STRING(
|
||||
this,
|
||||
'text',
|
||||
['STRING', { default: this.properties.text, multiline: true }],
|
||||
app
|
||||
)
|
||||
|
||||
this.serialize_widgets = true
|
||||
this.isVirtualNode = true
|
||||
}
|
||||
}
|
||||
|
||||
// Load default visibility
|
||||
|
||||
LiteGraph.registerNodeType(
|
||||
'Note',
|
||||
Object.assign(NoteNode, {
|
||||
title_mode: LiteGraph.NORMAL_TITLE,
|
||||
title: 'Note',
|
||||
collapsable: true
|
||||
})
|
||||
)
|
||||
|
||||
NoteNode.category = 'utils'
|
||||
|
||||
/** Markdown variant of NoteNode */
|
||||
class MarkdownNoteNode extends LGraphNode {
|
||||
static override title = 'Markdown Note'
|
||||
|
||||
groupcolor = LGraphCanvas.node_colors.yellow.groupcolor
|
||||
|
||||
constructor(title: string) {
|
||||
super(title)
|
||||
|
||||
this.color = LGraphCanvas.node_colors.yellow.color
|
||||
this.bgcolor = LGraphCanvas.node_colors.yellow.bgcolor
|
||||
|
||||
if (!this.properties) {
|
||||
this.properties = { text: '' }
|
||||
}
|
||||
ComfyWidgets.MARKDOWN(
|
||||
this,
|
||||
'text',
|
||||
['STRING', { default: this.properties.text }],
|
||||
app
|
||||
)
|
||||
|
||||
this.serialize_widgets = true
|
||||
this.isVirtualNode = true
|
||||
}
|
||||
}
|
||||
|
||||
LiteGraph.registerNodeType('MarkdownNote', MarkdownNoteNode)
|
||||
MarkdownNoteNode.category = 'utils'
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,295 @@
|
||||
import type { IContextMenuValue } from '@/lib/litegraph/src/litegraph'
|
||||
import {
|
||||
LGraphCanvas,
|
||||
LGraphNode,
|
||||
LiteGraph
|
||||
} from '@/lib/litegraph/src/litegraph'
|
||||
import type { ISlotType } from '@/lib/litegraph/src/interfaces'
|
||||
|
||||
import { app } from '../../scripts/app'
|
||||
import { getWidgetConfig, mergeIfValid, setWidgetConfig } from './widgetInputs'
|
||||
|
||||
// Node that allows you to redirect connections for cleaner graphs
|
||||
|
||||
app.registerExtension({
|
||||
name: 'Comfy.RerouteNode',
|
||||
registerCustomNodes(app) {
|
||||
interface RerouteNode extends LGraphNode {
|
||||
__outputType?: string | number
|
||||
}
|
||||
|
||||
class RerouteNode extends LGraphNode {
|
||||
static override category: string | undefined
|
||||
static defaultVisibility = false
|
||||
|
||||
constructor(title?: string) {
|
||||
super(title ?? '')
|
||||
if (!this.properties) {
|
||||
this.properties = {}
|
||||
}
|
||||
this.properties.showOutputText = RerouteNode.defaultVisibility
|
||||
this.properties.horizontal = false
|
||||
|
||||
this.addInput('', '*')
|
||||
this.addOutput(this.properties.showOutputText ? '*' : '', '*')
|
||||
|
||||
// This node is purely frontend and does not impact the resulting prompt so should not be serialized
|
||||
this.isVirtualNode = true
|
||||
}
|
||||
override onAfterGraphConfigured() {
|
||||
requestAnimationFrame(() => {
|
||||
this.onConnectionsChange(LiteGraph.INPUT, undefined, true)
|
||||
})
|
||||
}
|
||||
override clone(): LGraphNode | null {
|
||||
const cloned = super.clone()
|
||||
if (!cloned) return cloned
|
||||
cloned.removeOutput(0)
|
||||
cloned.addOutput(this.properties.showOutputText ? '*' : '', '*')
|
||||
cloned.setSize(cloned.computeSize())
|
||||
return cloned
|
||||
}
|
||||
override onConnectionsChange(
|
||||
type: ISlotType,
|
||||
_index: number | undefined,
|
||||
connected: boolean
|
||||
) {
|
||||
const { graph } = this
|
||||
if (!graph) return
|
||||
if (app.configuringGraph) return
|
||||
|
||||
// Prevent multiple connections to different types when we have no input
|
||||
if (connected && type === LiteGraph.OUTPUT) {
|
||||
// Ignore wildcard nodes as these will be updated to real types
|
||||
const types = new Set(
|
||||
this.outputs[0].links
|
||||
?.map((l) => graph.links[l]?.type)
|
||||
?.filter((t) => t && t !== '*') ?? []
|
||||
)
|
||||
if (types.size > 1) {
|
||||
const linksToDisconnect = []
|
||||
for (const linkId of this.outputs[0].links ?? []) {
|
||||
const link = graph.links[linkId]
|
||||
linksToDisconnect.push(link)
|
||||
}
|
||||
linksToDisconnect.pop()
|
||||
for (const link of linksToDisconnect) {
|
||||
const node = graph.getNodeById(link.target_id)
|
||||
node?.disconnectInput(link.target_slot)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Find root input
|
||||
let currentNode: RerouteNode | null = this
|
||||
let updateNodes: RerouteNode[] = []
|
||||
let inputType = null
|
||||
let inputNode = null
|
||||
while (currentNode) {
|
||||
updateNodes.unshift(currentNode)
|
||||
const linkId = currentNode.inputs[0].link
|
||||
if (linkId !== null) {
|
||||
const link = graph.links[linkId]
|
||||
if (!link) return
|
||||
const node = graph.getNodeById(link.origin_id)
|
||||
if (!node) return
|
||||
if (node instanceof RerouteNode) {
|
||||
if (node === this) {
|
||||
// We've found a circle
|
||||
currentNode.disconnectInput(link.target_slot)
|
||||
currentNode = null
|
||||
} else {
|
||||
// Move the previous node
|
||||
currentNode = node
|
||||
}
|
||||
} else {
|
||||
// We've found the end
|
||||
inputNode = currentNode
|
||||
inputType = node.outputs[link.origin_slot]?.type ?? null
|
||||
break
|
||||
}
|
||||
} else {
|
||||
// This path has no input node
|
||||
currentNode = null
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// Find all outputs
|
||||
const nodes: RerouteNode[] = [this]
|
||||
let outputType = null
|
||||
while (nodes.length) {
|
||||
currentNode = nodes.pop()!
|
||||
const outputs = currentNode.outputs?.[0]?.links ?? []
|
||||
for (const linkId of outputs) {
|
||||
const link = graph.links[linkId]
|
||||
|
||||
// When disconnecting sometimes the link is still registered
|
||||
if (!link) continue
|
||||
|
||||
const node = graph.getNodeById(link.target_id)
|
||||
if (!node) continue
|
||||
if (node instanceof RerouteNode) {
|
||||
// Follow reroute nodes
|
||||
nodes.push(node)
|
||||
updateNodes.push(node)
|
||||
} else {
|
||||
// We've found an output
|
||||
const nodeInput = node.inputs[link.target_slot]
|
||||
const nodeOutType = nodeInput.type
|
||||
const keep =
|
||||
!inputType ||
|
||||
!nodeOutType ||
|
||||
LiteGraph.isValidConnection(inputType, nodeOutType)
|
||||
if (!keep) {
|
||||
// The output doesnt match our input so disconnect it
|
||||
node.disconnectInput(link.target_slot)
|
||||
continue
|
||||
}
|
||||
node.onConnectionsChange?.(
|
||||
LiteGraph.INPUT,
|
||||
link.target_slot,
|
||||
keep,
|
||||
link,
|
||||
nodeInput
|
||||
)
|
||||
outputType = node.inputs[link.target_slot].type
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const displayType = inputType || outputType || '*'
|
||||
const color = LGraphCanvas.link_type_colors[displayType]
|
||||
|
||||
let widgetConfig
|
||||
let widgetType
|
||||
// Update the types of each node
|
||||
for (const node of updateNodes) {
|
||||
// If we dont have an input type we are always wildcard but we'll show the output type
|
||||
// This lets you change the output link to a different type and all nodes will update
|
||||
node.outputs[0].type = inputType || '*'
|
||||
node.__outputType = displayType
|
||||
node.outputs[0].name = node.properties.showOutputText
|
||||
? `${displayType}`
|
||||
: ''
|
||||
node.setSize(node.computeSize())
|
||||
|
||||
for (const l of node.outputs[0].links || []) {
|
||||
const link = graph.links[l]
|
||||
if (!link) continue
|
||||
link.color = color
|
||||
|
||||
if (app.configuringGraph) continue
|
||||
const targetNode = graph.getNodeById(link.target_id)
|
||||
if (!targetNode) continue
|
||||
const targetInput = targetNode.inputs?.[link.target_slot]
|
||||
if (targetInput?.widget) {
|
||||
const config = getWidgetConfig(targetInput)
|
||||
if (!widgetConfig) {
|
||||
widgetConfig = config[1] ?? {}
|
||||
widgetType = config[0]
|
||||
}
|
||||
|
||||
const merged = mergeIfValid(targetInput, [
|
||||
config[0],
|
||||
widgetConfig
|
||||
])
|
||||
if (merged.customConfig) {
|
||||
widgetConfig = merged.customConfig
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (const node of updateNodes) {
|
||||
if (widgetConfig && outputType) {
|
||||
node.inputs[0].widget = { name: 'value' }
|
||||
setWidgetConfig(node.inputs[0], [
|
||||
widgetType ?? `${displayType}`,
|
||||
widgetConfig
|
||||
])
|
||||
} else {
|
||||
setWidgetConfig(node.inputs[0], undefined)
|
||||
}
|
||||
}
|
||||
|
||||
if (inputNode?.inputs?.[0]?.link) {
|
||||
const link = graph.links[inputNode.inputs[0].link]
|
||||
if (link) {
|
||||
link.color = color
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override getExtraMenuOptions(
|
||||
_: unknown,
|
||||
options: (IContextMenuValue | null)[]
|
||||
): IContextMenuValue[] {
|
||||
options.unshift(
|
||||
{
|
||||
content:
|
||||
(this.properties.showOutputText ? 'Hide' : 'Show') + ' Type',
|
||||
callback: () => {
|
||||
this.properties.showOutputText = !this.properties.showOutputText
|
||||
if (this.properties.showOutputText) {
|
||||
this.outputs[0].name = `${this.__outputType || this.outputs[0].type}`
|
||||
} else {
|
||||
this.outputs[0].name = ''
|
||||
}
|
||||
this.setSize(this.computeSize())
|
||||
app.canvas.setDirty(true, true)
|
||||
}
|
||||
},
|
||||
{
|
||||
content:
|
||||
(RerouteNode.defaultVisibility ? 'Hide' : 'Show') +
|
||||
' Type By Default',
|
||||
callback: () => {
|
||||
RerouteNode.setDefaultTextVisibility(
|
||||
!RerouteNode.defaultVisibility
|
||||
)
|
||||
}
|
||||
}
|
||||
)
|
||||
return []
|
||||
}
|
||||
override computeSize(): [number, number] {
|
||||
return [
|
||||
this.properties.showOutputText && this.outputs && this.outputs.length
|
||||
? Math.max(
|
||||
75,
|
||||
LiteGraph.NODE_TEXT_SIZE * this.outputs[0].name.length * 0.6 +
|
||||
40
|
||||
)
|
||||
: 75,
|
||||
26
|
||||
]
|
||||
}
|
||||
|
||||
static setDefaultTextVisibility(visible: boolean) {
|
||||
RerouteNode.defaultVisibility = visible
|
||||
if (visible) {
|
||||
localStorage['Comfy.RerouteNode.DefaultVisibility'] = 'true'
|
||||
} else {
|
||||
delete localStorage['Comfy.RerouteNode.DefaultVisibility']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Load default visibility
|
||||
RerouteNode.setDefaultTextVisibility(
|
||||
!!localStorage['Comfy.RerouteNode.DefaultVisibility']
|
||||
)
|
||||
|
||||
LiteGraph.registerNodeType(
|
||||
'Reroute',
|
||||
Object.assign(RerouteNode, {
|
||||
title_mode: LiteGraph.NO_TITLE,
|
||||
title: 'Reroute',
|
||||
collapsable: false
|
||||
})
|
||||
)
|
||||
|
||||
RerouteNode.category = 'utils'
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,53 @@
|
||||
import {
|
||||
type ComfyNodeDef,
|
||||
type InputSpec,
|
||||
isComboInputSpecV1
|
||||
} from '@/schemas/nodeDefSchema'
|
||||
|
||||
import { app } from '../../scripts/app'
|
||||
|
||||
// Adds an upload button to the nodes
|
||||
|
||||
const isMediaUploadComboInput = (inputSpec: InputSpec) => {
|
||||
const [inputName, inputOptions] = inputSpec
|
||||
if (!inputOptions) return false
|
||||
|
||||
const isUploadInput =
|
||||
inputOptions['image_upload'] === true ||
|
||||
inputOptions['video_upload'] === true ||
|
||||
inputOptions['animated_image_upload'] === true
|
||||
|
||||
return (
|
||||
isUploadInput && (isComboInputSpecV1(inputSpec) || inputName === 'COMBO')
|
||||
)
|
||||
}
|
||||
|
||||
const createUploadInput = (
|
||||
imageInputName: string,
|
||||
imageInputOptions: InputSpec
|
||||
): InputSpec => [
|
||||
'IMAGEUPLOAD',
|
||||
{
|
||||
...imageInputOptions[1],
|
||||
imageInputName
|
||||
}
|
||||
]
|
||||
|
||||
app.registerExtension({
|
||||
name: 'Comfy.UploadImage',
|
||||
beforeRegisterNodeDef(_nodeType, nodeData: ComfyNodeDef) {
|
||||
const { input } = nodeData ?? {}
|
||||
const { required } = input ?? {}
|
||||
if (!required) return
|
||||
|
||||
const found = Object.entries(required).find(([_, input]) =>
|
||||
isMediaUploadComboInput(input)
|
||||
)
|
||||
|
||||
// If media combo input found, attach upload input
|
||||
if (found) {
|
||||
const [inputName, inputSpec] = found
|
||||
required.upload = createUploadInput(inputName, inputSpec)
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,614 @@
|
||||
import {
|
||||
type CallbackParams,
|
||||
useChainCallback
|
||||
} from '@/composables/functional/useChainCallback'
|
||||
import { LGraphNode, LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||
import type {
|
||||
INodeInputSlot,
|
||||
INodeOutputSlot,
|
||||
ISlotType,
|
||||
LLink
|
||||
} from '@/lib/litegraph/src/litegraph'
|
||||
import { NodeSlot } from '@/lib/litegraph/src/node/NodeSlot'
|
||||
import type { CanvasPointerEvent } from '@/lib/litegraph/src/types/events'
|
||||
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
||||
import { app } from '@/scripts/app'
|
||||
import {
|
||||
ComfyWidgets,
|
||||
addValueControlWidgets,
|
||||
isValidWidgetType
|
||||
} from '@/scripts/widgets'
|
||||
import { CONFIG, GET_CONFIG } from '@/services/litegraphService'
|
||||
import { mergeInputSpec } from '@/utils/nodeDefUtil'
|
||||
import { applyTextReplacements } from '@/utils/searchAndReplace'
|
||||
import { isPrimitiveNode } from '@/renderer/utils/nodeTypeGuards'
|
||||
|
||||
const replacePropertyName = 'Run widget replace on values'
|
||||
export class PrimitiveNode extends LGraphNode {
|
||||
controlValues?: any[]
|
||||
lastType?: string
|
||||
static override category: string
|
||||
constructor(title: string) {
|
||||
super(title)
|
||||
this.addOutput('connect to widget input', '*')
|
||||
this.serialize_widgets = true
|
||||
this.isVirtualNode = true
|
||||
|
||||
if (!this.properties || !(replacePropertyName in this.properties)) {
|
||||
this.addProperty(replacePropertyName, false, 'boolean')
|
||||
}
|
||||
}
|
||||
|
||||
override applyToGraph(extraLinks: LLink[] = []) {
|
||||
if (!this.outputs[0].links?.length || !this.graph) return
|
||||
|
||||
const links = [
|
||||
...this.outputs[0].links.map((l) => this.graph!.links[l]),
|
||||
...extraLinks
|
||||
]
|
||||
let v = this.widgets?.[0].value
|
||||
if (v && this.properties[replacePropertyName]) {
|
||||
v = applyTextReplacements(this.graph, v as string)
|
||||
}
|
||||
|
||||
// For each output link copy our value over the original widget value
|
||||
for (const linkInfo of links) {
|
||||
const node = this.graph?.getNodeById(linkInfo.target_id)
|
||||
const input = node?.inputs[linkInfo.target_slot]
|
||||
if (!input) {
|
||||
console.warn('Unable to resolve node or input for link', linkInfo)
|
||||
continue
|
||||
}
|
||||
|
||||
const widgetName = input.widget?.name
|
||||
if (!widgetName) {
|
||||
console.warn('Invalid widget or widget name', input.widget)
|
||||
continue
|
||||
}
|
||||
|
||||
const widget = node.widgets?.find((w) => w.name === widgetName)
|
||||
if (!widget) {
|
||||
console.warn(
|
||||
`Unable to find widget "${widgetName}" on node [${node.id}]`
|
||||
)
|
||||
continue
|
||||
}
|
||||
|
||||
widget.value = v
|
||||
widget.callback?.(
|
||||
widget.value,
|
||||
app.canvas,
|
||||
node,
|
||||
app.canvas.graph_mouse,
|
||||
{} as CanvasPointerEvent
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
override refreshComboInNode() {
|
||||
const widget = this.widgets?.[0]
|
||||
if (widget?.type === 'combo') {
|
||||
// @ts-expect-error fixme ts strict error
|
||||
widget.options.values = this.outputs[0].widget[GET_CONFIG]()[0]
|
||||
|
||||
// @ts-expect-error fixme ts strict error
|
||||
if (!widget.options.values.includes(widget.value as string)) {
|
||||
// @ts-expect-error fixme ts strict error
|
||||
widget.value = widget.options.values[0]
|
||||
;(widget.callback as Function)(widget.value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override onAfterGraphConfigured() {
|
||||
if (this.outputs[0].links?.length && !this.widgets?.length) {
|
||||
this.#onFirstConnection()
|
||||
|
||||
// Populate widget values from config data
|
||||
if (this.widgets && this.widgets_values) {
|
||||
for (let i = 0; i < this.widgets_values.length; i++) {
|
||||
const w = this.widgets[i]
|
||||
if (w) {
|
||||
w.value = this.widgets_values[i] as any
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Merge values if required
|
||||
this.#mergeWidgetConfig()
|
||||
}
|
||||
}
|
||||
|
||||
override onConnectionsChange(
|
||||
_type: ISlotType,
|
||||
_index: number,
|
||||
connected: boolean
|
||||
) {
|
||||
if (app.configuringGraph) {
|
||||
// Dont run while the graph is still setting up
|
||||
return
|
||||
}
|
||||
|
||||
const links = this.outputs[0].links
|
||||
if (connected) {
|
||||
if (links?.length && !this.widgets?.length) {
|
||||
this.#onFirstConnection()
|
||||
}
|
||||
} else {
|
||||
// We may have removed a link that caused the constraints to change
|
||||
this.#mergeWidgetConfig()
|
||||
|
||||
if (!links?.length) {
|
||||
this.onLastDisconnect()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override onConnectOutput(
|
||||
slot: number,
|
||||
_type: string,
|
||||
input: INodeInputSlot,
|
||||
target_node: LGraphNode,
|
||||
target_slot: number
|
||||
) {
|
||||
// Fires before the link is made allowing us to reject it if it isn't valid
|
||||
// No widget, we can't connect
|
||||
if (!input.widget && !(input.type in ComfyWidgets)) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (this.outputs[slot].links?.length) {
|
||||
const valid = this.#isValidConnection(input)
|
||||
if (valid) {
|
||||
// On connect of additional outputs, copy our value to their widget
|
||||
this.applyToGraph([{ target_id: target_node.id, target_slot } as LLink])
|
||||
}
|
||||
return valid
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
#onFirstConnection(recreating?: boolean) {
|
||||
// First connection can fire before the graph is ready on initial load so random things can be missing
|
||||
if (!this.outputs[0].links || !this.graph) {
|
||||
this.onLastDisconnect()
|
||||
return
|
||||
}
|
||||
const linkId = this.outputs[0].links[0]
|
||||
const link = this.graph.links[linkId]
|
||||
if (!link) return
|
||||
|
||||
const theirNode = this.graph.getNodeById(link.target_id)
|
||||
if (!theirNode || !theirNode.inputs) return
|
||||
|
||||
const input = theirNode.inputs[link.target_slot]
|
||||
if (!input) return
|
||||
|
||||
let widget
|
||||
if (!input.widget) {
|
||||
if (!(input.type in ComfyWidgets)) return
|
||||
widget = { name: input.name, [GET_CONFIG]: () => [input.type, {}] } //fake widget
|
||||
} else {
|
||||
widget = input.widget
|
||||
}
|
||||
|
||||
// @ts-expect-error fixme ts strict error
|
||||
const config = widget[GET_CONFIG]?.()
|
||||
if (!config) return
|
||||
|
||||
const { type } = getWidgetType(config)
|
||||
// Update our output to restrict to the widget type
|
||||
this.outputs[0].type = type
|
||||
this.outputs[0].name = type
|
||||
this.outputs[0].widget = widget
|
||||
|
||||
this.#createWidget(
|
||||
widget[CONFIG] ?? config,
|
||||
theirNode,
|
||||
widget.name,
|
||||
// @ts-expect-error fixme ts strict error
|
||||
recreating
|
||||
)
|
||||
}
|
||||
|
||||
#createWidget(
|
||||
inputData: InputSpec,
|
||||
node: LGraphNode,
|
||||
widgetName: string,
|
||||
recreating: boolean
|
||||
) {
|
||||
let type = inputData[0]
|
||||
|
||||
if (type instanceof Array) {
|
||||
type = 'COMBO'
|
||||
}
|
||||
|
||||
// Store current size as addWidget resizes the node
|
||||
const [oldWidth, oldHeight] = this.size
|
||||
let widget: IBaseWidget
|
||||
if (isValidWidgetType(type)) {
|
||||
widget = (ComfyWidgets[type](this, 'value', inputData, app) || {}).widget
|
||||
} else {
|
||||
// @ts-expect-error InputSpec is not typed correctly
|
||||
widget = this.addWidget(type, 'value', null, () => {}, {})
|
||||
}
|
||||
|
||||
if (node?.widgets && widget) {
|
||||
const theirWidget = node.widgets.find((w) => w.name === widgetName)
|
||||
if (theirWidget) {
|
||||
widget.value = theirWidget.value
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
!inputData?.[1]?.control_after_generate &&
|
||||
(widget.type === 'number' || widget.type === 'combo')
|
||||
) {
|
||||
let control_value = this.widgets_values?.[1]
|
||||
if (!control_value) {
|
||||
control_value = 'fixed'
|
||||
}
|
||||
addValueControlWidgets(
|
||||
this,
|
||||
widget,
|
||||
control_value as string,
|
||||
undefined,
|
||||
inputData
|
||||
)
|
||||
if (this.widgets?.[1]) widget.linkedWidgets = [this.widgets[1]]
|
||||
|
||||
let filter = this.widgets_values?.[2]
|
||||
if (filter && this.widgets && this.widgets.length === 3) {
|
||||
this.widgets[2].value = filter
|
||||
}
|
||||
}
|
||||
|
||||
// Restore any saved control values
|
||||
const controlValues = this.controlValues
|
||||
if (
|
||||
this.widgets &&
|
||||
this.lastType === this.widgets[0]?.type &&
|
||||
controlValues?.length === this.widgets.length - 1
|
||||
) {
|
||||
for (let i = 0; i < controlValues.length; i++) {
|
||||
this.widgets[i + 1].value = controlValues[i]
|
||||
}
|
||||
}
|
||||
|
||||
// When our value changes, update other widgets to reflect our changes
|
||||
// e.g. so LoadImage shows correct image
|
||||
widget.callback = useChainCallback(widget.callback, () => {
|
||||
this.applyToGraph()
|
||||
})
|
||||
|
||||
// Use the biggest dimensions in case the widgets caused the node to grow
|
||||
this.setSize([
|
||||
Math.max(this.size[0], oldWidth),
|
||||
Math.max(this.size[1], oldHeight)
|
||||
])
|
||||
|
||||
if (!recreating) {
|
||||
// Grow our node more if required
|
||||
const sz = this.computeSize()
|
||||
if (this.size[0] < sz[0]) {
|
||||
this.size[0] = sz[0]
|
||||
}
|
||||
if (this.size[1] < sz[1]) {
|
||||
this.size[1] = sz[1]
|
||||
}
|
||||
|
||||
requestAnimationFrame(() => {
|
||||
this.onResize?.(this.size)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
recreateWidget() {
|
||||
const values = this.widgets?.map((w) => w.value)
|
||||
this.#removeWidgets()
|
||||
this.#onFirstConnection(true)
|
||||
if (values?.length && this.widgets) {
|
||||
for (let i = 0; i < this.widgets.length; i++)
|
||||
this.widgets[i].value = values[i]
|
||||
}
|
||||
return this.widgets?.[0]
|
||||
}
|
||||
|
||||
#mergeWidgetConfig() {
|
||||
// Merge widget configs if the node has multiple outputs
|
||||
const output = this.outputs[0]
|
||||
const links = output.links ?? []
|
||||
|
||||
const hasConfig = !!output.widget?.[CONFIG]
|
||||
if (hasConfig) {
|
||||
delete output.widget?.[CONFIG]
|
||||
}
|
||||
|
||||
if (links?.length < 2 && hasConfig) {
|
||||
// Copy the widget options from the source
|
||||
if (links.length) {
|
||||
this.recreateWidget()
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
const config1 = (output.widget?.[GET_CONFIG] as () => InputSpec)?.()
|
||||
if (!config1) return
|
||||
const isNumber = config1[0] === 'INT' || config1[0] === 'FLOAT'
|
||||
if (!isNumber || !this.graph) return
|
||||
|
||||
for (const linkId of links) {
|
||||
const link = this.graph.links[linkId]
|
||||
if (!link) continue // Can be null when removing a node
|
||||
|
||||
const theirNode = this.graph.getNodeById(link.target_id)
|
||||
if (!theirNode) continue
|
||||
const theirInput = theirNode.inputs[link.target_slot]
|
||||
|
||||
// Call is valid connection so it can merge the configs when validating
|
||||
this.#isValidConnection(theirInput, hasConfig)
|
||||
}
|
||||
}
|
||||
|
||||
#isValidConnection(input: INodeInputSlot, forceUpdate?: boolean) {
|
||||
// Only allow connections where the configs match
|
||||
const output = this.outputs?.[0]
|
||||
const config2 = (input.widget?.[GET_CONFIG] as () => InputSpec)?.()
|
||||
if (!config2) return false
|
||||
|
||||
return !!mergeIfValid.call(
|
||||
this,
|
||||
output,
|
||||
config2,
|
||||
forceUpdate,
|
||||
this.recreateWidget
|
||||
)
|
||||
}
|
||||
|
||||
#removeWidgets() {
|
||||
if (this.widgets) {
|
||||
// Allow widgets to cleanup
|
||||
for (const w of this.widgets) {
|
||||
if (w.onRemove) {
|
||||
w.onRemove()
|
||||
}
|
||||
}
|
||||
|
||||
// Temporarily store the current values in case the node is being recreated
|
||||
// e.g. by group node conversion
|
||||
this.controlValues = []
|
||||
this.lastType = this.widgets[0]?.type
|
||||
for (let i = 1; i < this.widgets.length; i++) {
|
||||
this.controlValues.push(this.widgets[i].value)
|
||||
}
|
||||
setTimeout(() => {
|
||||
delete this.lastType
|
||||
delete this.controlValues
|
||||
}, 15)
|
||||
this.widgets.length = 0
|
||||
}
|
||||
}
|
||||
|
||||
onLastDisconnect() {
|
||||
// We can't remove + re-add the output here as if you drag a link over the same link
|
||||
// it removes, then re-adds, causing it to break
|
||||
this.outputs[0].type = '*'
|
||||
this.outputs[0].name = 'connect to widget input'
|
||||
delete this.outputs[0].widget
|
||||
|
||||
this.#removeWidgets()
|
||||
}
|
||||
}
|
||||
|
||||
export function getWidgetConfig(
|
||||
slot: INodeInputSlot | INodeOutputSlot
|
||||
): InputSpec {
|
||||
return (slot.widget?.[CONFIG] ??
|
||||
(slot.widget?.[GET_CONFIG] as () => InputSpec)?.() ?? [
|
||||
'*',
|
||||
{}
|
||||
]) as InputSpec
|
||||
}
|
||||
|
||||
function getConfig(this: LGraphNode, widgetName: string) {
|
||||
const { nodeData } = this.constructor
|
||||
return (
|
||||
nodeData?.input?.required?.[widgetName] ??
|
||||
nodeData?.input?.optional?.[widgetName]
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a widget to an input slot.
|
||||
* @deprecated Widget to socket conversion is no longer necessary, as they co-exist now.
|
||||
* @param node The node to convert the widget to an input slot for.
|
||||
* @param widget The widget to convert to an input slot.
|
||||
* @returns The input slot that was converted from the widget or undefined if the widget is not found.
|
||||
* @knipIgnoreUnusedButUsedByCustomNodes
|
||||
*/
|
||||
export function convertToInput(
|
||||
node: LGraphNode,
|
||||
widget: IBaseWidget
|
||||
): INodeInputSlot | undefined {
|
||||
console.warn(
|
||||
'Please remove call to convertToInput. Widget to socket conversion is no longer necessary, as they co-exist now.'
|
||||
)
|
||||
return node.inputs.find((slot) => slot.widget?.name === widget.name)
|
||||
}
|
||||
|
||||
function getWidgetType(config: InputSpec) {
|
||||
// Special handling for COMBO so we restrict links based on the entries
|
||||
let type = config[0]
|
||||
if (type instanceof Array) {
|
||||
type = 'COMBO'
|
||||
}
|
||||
return { type }
|
||||
}
|
||||
|
||||
export function setWidgetConfig(slot: INodeInputSlot, config?: InputSpec) {
|
||||
if (!slot.widget) return
|
||||
if (config) {
|
||||
slot.widget[GET_CONFIG] = () => config
|
||||
} else {
|
||||
delete slot.widget
|
||||
}
|
||||
|
||||
if (!(slot instanceof NodeSlot)) return
|
||||
const graph = slot.node.graph
|
||||
if (!graph) return
|
||||
const link = graph.links[slot.link ?? -1]
|
||||
if (!link) return
|
||||
const originNode = graph.getNodeById(link.origin_id)
|
||||
if (!originNode || !isPrimitiveNode(originNode)) return
|
||||
if (config) {
|
||||
originNode.recreateWidget()
|
||||
} else if (!app.configuringGraph) {
|
||||
originNode.disconnectOutput(0)
|
||||
originNode.onLastDisconnect()
|
||||
}
|
||||
}
|
||||
|
||||
export function mergeIfValid(
|
||||
output: INodeOutputSlot | INodeInputSlot,
|
||||
config2: InputSpec,
|
||||
forceUpdate?: boolean,
|
||||
recreateWidget?: () => void,
|
||||
config1?: InputSpec
|
||||
): { customConfig: InputSpec[1] } {
|
||||
if (!config1) {
|
||||
config1 = getWidgetConfig(output)
|
||||
}
|
||||
|
||||
const customSpec = mergeInputSpec(config1, config2)
|
||||
|
||||
if (customSpec || forceUpdate) {
|
||||
if (customSpec) {
|
||||
// @ts-expect-error fixme ts strict error
|
||||
output.widget[CONFIG] = customSpec
|
||||
}
|
||||
|
||||
// @ts-expect-error fixme ts strict error
|
||||
const widget = recreateWidget?.call(this)
|
||||
// When deleting a node this can be null
|
||||
if (widget) {
|
||||
// @ts-expect-error fixme ts strict error
|
||||
const min = widget.options.min
|
||||
// @ts-expect-error fixme ts strict error
|
||||
const max = widget.options.max
|
||||
// @ts-expect-error fixme ts strict error
|
||||
if (min != null && widget.value < min) widget.value = min
|
||||
// @ts-expect-error fixme ts strict error
|
||||
if (max != null && widget.value > max) widget.value = max
|
||||
// @ts-expect-error fixme ts strict error
|
||||
widget.callback(widget.value)
|
||||
}
|
||||
}
|
||||
|
||||
return { customConfig: customSpec?.[1] ?? {} }
|
||||
}
|
||||
|
||||
app.registerExtension({
|
||||
name: 'Comfy.WidgetInputs',
|
||||
async beforeRegisterNodeDef(nodeType, _nodeData, app) {
|
||||
// @ts-expect-error adding extra property
|
||||
nodeType.prototype.convertWidgetToInput = function (this: LGraphNode) {
|
||||
console.warn(
|
||||
'Please remove call to convertWidgetToInput. Widget to socket conversion is no longer necessary, as they co-exist now.'
|
||||
)
|
||||
return false
|
||||
}
|
||||
|
||||
nodeType.prototype.onGraphConfigured = useChainCallback(
|
||||
nodeType.prototype.onGraphConfigured,
|
||||
function (this: LGraphNode) {
|
||||
if (!this.inputs) return
|
||||
this.widgets ??= []
|
||||
|
||||
for (const input of this.inputs) {
|
||||
if (input.widget) {
|
||||
const name = input.widget.name
|
||||
if (!input.widget[GET_CONFIG]) {
|
||||
input.widget[GET_CONFIG] = () => getConfig.call(this, name)
|
||||
}
|
||||
|
||||
const w = this.widgets?.find((w) => w.name === name)
|
||||
if (!w) {
|
||||
this.removeInput(this.inputs.findIndex((i) => i === input))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
nodeType.prototype.onConfigure = useChainCallback(
|
||||
nodeType.prototype.onConfigure,
|
||||
function (this: LGraphNode) {
|
||||
if (!app.configuringGraph && this.inputs) {
|
||||
// On copy + paste of nodes, ensure that widget configs are set up
|
||||
for (const input of this.inputs) {
|
||||
if (input.widget && !input.widget[GET_CONFIG]) {
|
||||
const name = input.widget.name
|
||||
input.widget[GET_CONFIG] = () => getConfig.call(this, name)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
// Double click a widget input to automatically attach a primitive
|
||||
const origOnInputDblClick = nodeType.prototype.onInputDblClick
|
||||
nodeType.prototype.onInputDblClick = function (
|
||||
this: LGraphNode,
|
||||
...[slot, ...args]: CallbackParams<typeof origOnInputDblClick>
|
||||
) {
|
||||
const r = origOnInputDblClick?.apply(this, [slot, ...args])
|
||||
|
||||
const input = this.inputs[slot]
|
||||
if (!input.widget) {
|
||||
// Not a widget input or already handled input
|
||||
if (
|
||||
!(input.type in ComfyWidgets) &&
|
||||
!(
|
||||
(
|
||||
input.widget?.[GET_CONFIG] as (() => InputSpec) | undefined
|
||||
)?.()?.[0] instanceof Array
|
||||
)
|
||||
) {
|
||||
return r //also Not a ComfyWidgets input or combo (do nothing)
|
||||
}
|
||||
}
|
||||
|
||||
// Create a primitive node
|
||||
const node = LiteGraph.createNode('PrimitiveNode')
|
||||
const graph = app.canvas.graph
|
||||
if (!node || !graph) return r
|
||||
|
||||
graph?.add(node)
|
||||
|
||||
// Calculate a position that won't directly overlap another node
|
||||
const pos: [number, number] = [
|
||||
this.pos[0] - node.size[0] - 30,
|
||||
this.pos[1]
|
||||
]
|
||||
while (graph.getNodeOnPos(pos[0], pos[1], graph.nodes))
|
||||
pos[1] += LiteGraph.NODE_TITLE_HEIGHT
|
||||
|
||||
node.pos = pos
|
||||
node.connect(0, this, slot)
|
||||
node.title = input.name
|
||||
|
||||
return r
|
||||
}
|
||||
},
|
||||
registerCustomNodes() {
|
||||
LiteGraph.registerNodeType(
|
||||
'PrimitiveNode',
|
||||
Object.assign(PrimitiveNode, {
|
||||
title: 'Primitive'
|
||||
})
|
||||
)
|
||||
PrimitiveNode.category = 'utils'
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,19 @@
|
||||
Copyright (C) 2013 by Javi Agenjo
|
||||
|
||||
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.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,816 @@
|
||||
import { useLayoutMutations } from '@/renderer/core/layout/operations/layoutMutations'
|
||||
import { LayoutSource } from '@/renderer/core/layout/types'
|
||||
|
||||
import { LGraphBadge } from './LGraphBadge'
|
||||
import type { LGraphNode, NodeId } from './LGraphNode'
|
||||
import { LLink } from './LLink'
|
||||
import type { LinkId } from './LLink'
|
||||
import type {
|
||||
CanvasColour,
|
||||
INodeInputSlot,
|
||||
INodeOutputSlot,
|
||||
LinkNetwork,
|
||||
LinkSegment,
|
||||
Point,
|
||||
Positionable,
|
||||
ReadOnlyRect,
|
||||
ReadonlyLinkNetwork
|
||||
} from './interfaces'
|
||||
import { distance, isPointInRect } from './measure'
|
||||
import type { Serialisable, SerialisableReroute } from './types/serialisation'
|
||||
|
||||
const layoutMutations = useLayoutMutations()
|
||||
|
||||
export type RerouteId = number
|
||||
|
||||
/** The input or output slot that an incomplete reroute link is connected to. */
|
||||
export interface FloatingRerouteSlot {
|
||||
/** Floating connection to an input or output */
|
||||
slotType: 'input' | 'output'
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents an additional point on the graph that a link path will travel through. Used for visual organisation only.
|
||||
*
|
||||
* Requires no disposal or clean up.
|
||||
* Stores only primitive values (IDs) to reference other items in its network,
|
||||
* and a `WeakRef` to a {@link LinkNetwork} to resolve them.
|
||||
*/
|
||||
export class Reroute
|
||||
implements Positionable, LinkSegment, Serialisable<SerialisableReroute>
|
||||
{
|
||||
static radius: number = 10
|
||||
/** Maximum distance from reroutes to their bezier curve control points. */
|
||||
static maxSplineOffset: number = 80
|
||||
static drawIdBadge: boolean = false
|
||||
static slotRadius: number = 5
|
||||
/** Distance from reroute centre to slot centre. */
|
||||
static get slotOffset(): number {
|
||||
const gap = Reroute.slotRadius * 0.33
|
||||
return Reroute.radius + gap + Reroute.slotRadius
|
||||
}
|
||||
|
||||
/** The network this reroute belongs to. Contains all valid links and reroutes. */
|
||||
private readonly network: WeakRef<LinkNetwork>
|
||||
|
||||
private parentIdInternal?: RerouteId
|
||||
public get parentId(): RerouteId | undefined {
|
||||
return this.parentIdInternal
|
||||
}
|
||||
|
||||
/** Ignores attempts to create an infinite loop. @inheritdoc */
|
||||
public set parentId(value) {
|
||||
if (value === this.id) return
|
||||
if (this.getReroutes() === null) return
|
||||
this.parentIdInternal = value
|
||||
}
|
||||
|
||||
public get parent(): Reroute | undefined {
|
||||
return this.network.deref()?.getReroute(this.parentIdInternal)
|
||||
}
|
||||
|
||||
/** This property is only defined on the last reroute of a floating reroute chain (closest to input end). */
|
||||
floating?: FloatingRerouteSlot
|
||||
|
||||
private readonly posInternal: Point = [0, 0]
|
||||
/** @inheritdoc */
|
||||
get pos(): Point {
|
||||
return this.posInternal
|
||||
}
|
||||
|
||||
set pos(value: Point) {
|
||||
if (!(value?.length >= 2))
|
||||
throw new TypeError(
|
||||
'Reroute.pos is an x,y point, and expects an indexable with at least two values.'
|
||||
)
|
||||
this.posInternal[0] = value[0]
|
||||
this.posInternal[1] = value[1]
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
get boundingRect(): ReadOnlyRect {
|
||||
const { radius } = Reroute
|
||||
const [x, y] = this.posInternal
|
||||
return [x - radius, y - radius, 2 * radius, 2 * radius]
|
||||
}
|
||||
|
||||
/**
|
||||
* Slightly over-sized rectangle, guaranteed to contain the entire surface area for hover detection.
|
||||
* Eliminates most hover positions using an extremely cheap check.
|
||||
*/
|
||||
private get hoverArea(): ReadOnlyRect {
|
||||
const xOffset = 2 * Reroute.slotOffset
|
||||
const yOffset = 2 * Math.max(Reroute.radius, Reroute.slotRadius)
|
||||
|
||||
const [x, y] = this.posInternal
|
||||
return [x - xOffset, y - yOffset, 2 * xOffset, 2 * yOffset]
|
||||
}
|
||||
|
||||
/** The total number of links & floating links using this reroute */
|
||||
get totalLinks(): number {
|
||||
return this.linkIds.size + this.floatingLinkIds.size
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
selected?: boolean
|
||||
|
||||
/** The ID ({@link LLink.id}) of every link using this reroute */
|
||||
linkIds: Set<LinkId>
|
||||
|
||||
/** The ID ({@link LLink.id}) of every floating link using this reroute */
|
||||
floatingLinkIds: Set<LinkId>
|
||||
|
||||
/** Cached cos */
|
||||
cos: number = 0
|
||||
sin: number = 0
|
||||
|
||||
/** Bezier curve control point for the "target" (input) side of the link */
|
||||
controlPoint: Point = [0, 0]
|
||||
|
||||
/** @inheritdoc */
|
||||
path?: Path2D
|
||||
/** @inheritdoc */
|
||||
_centreAngle?: number
|
||||
/** @inheritdoc */
|
||||
_pos: Point = [0, 0]
|
||||
|
||||
/** @inheritdoc */
|
||||
_dragging?: boolean
|
||||
|
||||
/** Colour of the first link that rendered this reroute */
|
||||
_colour?: CanvasColour
|
||||
|
||||
/** Colour of the first link that rendered this reroute */
|
||||
get colour(): CanvasColour {
|
||||
return this._colour ?? '#18184d'
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to ensure reroute angles are only executed once per frame.
|
||||
* @todo Calculate on change instead.
|
||||
*/
|
||||
private lastRenderTime: number = -Infinity
|
||||
|
||||
private readonly inputSlot = new RerouteSlot(this, true)
|
||||
private readonly outputSlot = new RerouteSlot(this, false)
|
||||
|
||||
get isSlotHovered(): boolean {
|
||||
return this.isInputHovered || this.isOutputHovered
|
||||
}
|
||||
|
||||
get isInputHovered(): boolean {
|
||||
return this.inputSlot.hovering
|
||||
}
|
||||
|
||||
get isOutputHovered(): boolean {
|
||||
return this.outputSlot.hovering
|
||||
}
|
||||
|
||||
get firstLink(): LLink | undefined {
|
||||
const linkId = this.linkIds.values().next().value
|
||||
return linkId === undefined
|
||||
? undefined
|
||||
: this.network.deref()?.links.get(linkId)
|
||||
}
|
||||
|
||||
get firstFloatingLink(): LLink | undefined {
|
||||
const linkId = this.floatingLinkIds.values().next().value
|
||||
return linkId === undefined
|
||||
? undefined
|
||||
: this.network.deref()?.floatingLinks.get(linkId)
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
get origin_id(): NodeId | undefined {
|
||||
return this.firstLink?.origin_id
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
get origin_slot(): number | undefined {
|
||||
return this.firstLink?.origin_slot
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialises a new link reroute object.
|
||||
* @param id Unique identifier for this reroute
|
||||
* @param network The network of links this reroute belongs to. Internally converted to a WeakRef.
|
||||
* @param pos Position in graph coordinates
|
||||
* @param linkIds Link IDs ({@link LLink.id}) of all links that use this reroute
|
||||
*/
|
||||
constructor(
|
||||
public readonly id: RerouteId,
|
||||
network: LinkNetwork,
|
||||
pos?: Point,
|
||||
parentId?: RerouteId,
|
||||
linkIds?: Iterable<LinkId>,
|
||||
floatingLinkIds?: Iterable<LinkId>
|
||||
) {
|
||||
this.network = new WeakRef(network)
|
||||
this.parentId = parentId
|
||||
if (pos) this.pos = pos
|
||||
this.linkIds = new Set(linkIds)
|
||||
this.floatingLinkIds = new Set(floatingLinkIds)
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies a new parentId to the reroute, and optinoally a new position and linkId.
|
||||
* Primarily used for deserialisation.
|
||||
* @param parentId The ID of the reroute prior to this reroute, or
|
||||
* `undefined` if it is the first reroute connected to a nodes output
|
||||
* @param pos The position of this reroute
|
||||
* @param linkIds All link IDs that pass through this reroute
|
||||
*/
|
||||
update(
|
||||
parentId: RerouteId | undefined,
|
||||
pos?: Point,
|
||||
linkIds?: Iterable<LinkId>,
|
||||
floating?: FloatingRerouteSlot
|
||||
): void {
|
||||
this.parentId = parentId
|
||||
if (pos) this.pos = pos
|
||||
if (linkIds) this.linkIds = new Set(linkIds)
|
||||
this.floating = floating
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the linkIds this reroute has. Removes broken links.
|
||||
* @param links Collection of valid links
|
||||
* @returns true if any links remain after validation
|
||||
*/
|
||||
validateLinks(
|
||||
links: ReadonlyMap<LinkId, LLink>,
|
||||
floatingLinks: ReadonlyMap<LinkId, LLink>
|
||||
): boolean {
|
||||
const { linkIds, floatingLinkIds } = this
|
||||
for (const linkId of linkIds) {
|
||||
if (!links.has(linkId)) linkIds.delete(linkId)
|
||||
}
|
||||
for (const linkId of floatingLinkIds) {
|
||||
if (!floatingLinks.has(linkId)) floatingLinkIds.delete(linkId)
|
||||
}
|
||||
return linkIds.size > 0 || floatingLinkIds.size > 0
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves an ordered array of all reroutes from the node output.
|
||||
* @param visited Internal. A set of reroutes that this function
|
||||
* has already visited whilst recursing up the chain.
|
||||
* @returns An ordered array of all reroutes from the node output to this reroute, inclusive.
|
||||
* `null` if an infinite loop is detected.
|
||||
* `undefined` if the reroute chain or {@link LinkNetwork} are invalid.
|
||||
*/
|
||||
getReroutes(visited = new Set<Reroute>()): Reroute[] | null {
|
||||
// No parentId - last in the chain
|
||||
if (this.parentIdInternal === undefined) return [this]
|
||||
// Invalid chain - looped
|
||||
if (visited.has(this)) return null
|
||||
visited.add(this)
|
||||
|
||||
const parent = this.network.deref()?.reroutes.get(this.parentIdInternal)
|
||||
// Invalid parent (or network) - drop silently to recover
|
||||
if (!parent) {
|
||||
this.parentIdInternal = undefined
|
||||
return [this]
|
||||
}
|
||||
|
||||
const reroutes = parent.getReroutes(visited)
|
||||
reroutes?.push(this)
|
||||
return reroutes
|
||||
}
|
||||
|
||||
/**
|
||||
* Internal. Called by {@link LLink.findNextReroute}. Not intended for use by itself.
|
||||
* @param withParentId The rerouteId to look for
|
||||
* @param visited A set of reroutes that have already been visited
|
||||
* @returns The reroute that was found, `undefined` if no reroute was found, or `null` if an infinite loop was detected.
|
||||
*/
|
||||
findNextReroute(
|
||||
withParentId: RerouteId,
|
||||
visited = new Set<Reroute>()
|
||||
): Reroute | null | undefined {
|
||||
if (this.parentIdInternal === withParentId) return this
|
||||
if (visited.has(this)) return null
|
||||
visited.add(this)
|
||||
if (this.parentIdInternal === undefined) return
|
||||
|
||||
return this.network
|
||||
.deref()
|
||||
?.reroutes.get(this.parentIdInternal)
|
||||
?.findNextReroute(withParentId, visited)
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the output node and output slot of the first link passing through this reroute.
|
||||
* @returns The output node and output slot of the first link passing through this reroute, or `undefined` if no link is found.
|
||||
*/
|
||||
findSourceOutput():
|
||||
| { node: LGraphNode; output: INodeOutputSlot }
|
||||
| undefined {
|
||||
const link = this.firstLink ?? this.firstFloatingLink
|
||||
if (!link) return
|
||||
|
||||
const node = this.network.deref()?.getNodeById(link.origin_id)
|
||||
if (!node) return
|
||||
|
||||
return {
|
||||
node,
|
||||
output: node.outputs[link.origin_slot]
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the inputs and nodes of (floating) links passing through this reroute.
|
||||
* @returns An array of objects containing the node and input slot of each link passing through this reroute.
|
||||
*/
|
||||
findTargetInputs():
|
||||
| { node: LGraphNode; input: INodeInputSlot; link: LLink }[]
|
||||
| undefined {
|
||||
const network = this.network.deref()
|
||||
if (!network) return
|
||||
|
||||
const results: {
|
||||
node: LGraphNode
|
||||
input: INodeInputSlot
|
||||
link: LLink
|
||||
}[] = []
|
||||
|
||||
addAllResults(network, this.linkIds, network.links)
|
||||
addAllResults(network, this.floatingLinkIds, network.floatingLinks)
|
||||
|
||||
return results
|
||||
|
||||
function addAllResults(
|
||||
network: ReadonlyLinkNetwork,
|
||||
linkIds: Iterable<LinkId>,
|
||||
links: ReadonlyMap<LinkId, LLink>
|
||||
) {
|
||||
for (const linkId of linkIds) {
|
||||
const link = links.get(linkId)
|
||||
if (!link) continue
|
||||
|
||||
const node = network.getNodeById(link.target_id)
|
||||
const input = node?.inputs[link.target_slot]
|
||||
if (!input) continue
|
||||
|
||||
results.push({ node, input, link })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves all floating links passing through this reroute.
|
||||
* @param from Filters the links by the currently connected link side.
|
||||
* @returns An array of floating links
|
||||
*/
|
||||
getFloatingLinks(from: 'input' | 'output'): LLink[] | undefined {
|
||||
const floatingLinks = this.network.deref()?.floatingLinks
|
||||
if (!floatingLinks) return
|
||||
|
||||
const idProp = from === 'input' ? 'origin_id' : 'target_id'
|
||||
const out: LLink[] = []
|
||||
|
||||
for (const linkId of this.floatingLinkIds) {
|
||||
const link = floatingLinks.get(linkId)
|
||||
if (link?.[idProp] === -1) out.push(link)
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
/**
|
||||
* Changes the origin node/output of all floating links that pass through this reroute.
|
||||
* @param node The new origin node
|
||||
* @param output The new origin output slot
|
||||
* @param index The slot index of {@link output}
|
||||
*/
|
||||
setFloatingLinkOrigin(
|
||||
node: LGraphNode,
|
||||
output: INodeOutputSlot,
|
||||
index: number
|
||||
) {
|
||||
const network = this.network.deref()
|
||||
const floatingOutLinks = this.getFloatingLinks('output')
|
||||
if (!floatingOutLinks)
|
||||
throw new Error('[setFloatingLinkOrigin]: Invalid network.')
|
||||
if (!floatingOutLinks.length) return
|
||||
|
||||
output._floatingLinks ??= new Set()
|
||||
|
||||
for (const link of floatingOutLinks) {
|
||||
// Update cached floating links
|
||||
output._floatingLinks.add(link)
|
||||
|
||||
network
|
||||
?.getNodeById(link.origin_id)
|
||||
?.outputs[link.origin_slot]?._floatingLinks?.delete(link)
|
||||
|
||||
// Update the floating link
|
||||
link.origin_id = node.id
|
||||
link.origin_slot = index
|
||||
}
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
move(deltaX: number, deltaY: number) {
|
||||
const previousPos = { x: this.posInternal[0], y: this.posInternal[1] }
|
||||
this.posInternal[0] += deltaX
|
||||
this.posInternal[1] += deltaY
|
||||
|
||||
// Update Layout Store with new position
|
||||
layoutMutations.setSource(LayoutSource.Canvas)
|
||||
layoutMutations.moveReroute(
|
||||
this.id,
|
||||
{ x: this.posInternal[0], y: this.posInternal[1] },
|
||||
previousPos
|
||||
)
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
snapToGrid(snapTo: number): boolean {
|
||||
if (!snapTo) return false
|
||||
|
||||
const { pos } = this
|
||||
pos[0] = snapTo * Math.round(pos[0] / snapTo)
|
||||
pos[1] = snapTo * Math.round(pos[1] / snapTo)
|
||||
return true
|
||||
}
|
||||
|
||||
removeAllFloatingLinks() {
|
||||
for (const linkId of this.floatingLinkIds) {
|
||||
this.removeFloatingLink(linkId)
|
||||
}
|
||||
}
|
||||
|
||||
removeFloatingLink(linkId: LinkId) {
|
||||
const network = this.network.deref()
|
||||
if (!network) return
|
||||
|
||||
const floatingLink = network.floatingLinks.get(linkId)
|
||||
if (!floatingLink) {
|
||||
console.warn(
|
||||
`[Reroute.removeFloatingLink] Floating link not found: ${linkId}, ignoring and discarding ID.`
|
||||
)
|
||||
this.floatingLinkIds.delete(linkId)
|
||||
return
|
||||
}
|
||||
|
||||
network.removeFloatingLink(floatingLink)
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a link or floating link from this reroute, by matching link object instance equality.
|
||||
* @param link The link to remove.
|
||||
* @remarks Does not remove the link from the network.
|
||||
*/
|
||||
removeLink(link: LLink) {
|
||||
const network = this.network.deref()
|
||||
if (!network) return
|
||||
|
||||
const floatingLink = network.floatingLinks.get(link.id)
|
||||
if (link === floatingLink) {
|
||||
this.floatingLinkIds.delete(link.id)
|
||||
} else {
|
||||
this.linkIds.delete(link.id)
|
||||
}
|
||||
}
|
||||
|
||||
remove() {
|
||||
const network = this.network.deref()
|
||||
if (!network) return
|
||||
|
||||
network.removeReroute(this.id)
|
||||
}
|
||||
|
||||
calculateAngle(
|
||||
lastRenderTime: number,
|
||||
network: ReadonlyLinkNetwork,
|
||||
linkStart: Point
|
||||
): void {
|
||||
// Ensure we run once per render
|
||||
if (!(lastRenderTime > this.lastRenderTime)) return
|
||||
this.lastRenderTime = lastRenderTime
|
||||
|
||||
const { id, pos: thisPos } = this
|
||||
|
||||
// Add all link angles
|
||||
const angles: number[] = []
|
||||
let sum = 0
|
||||
calculateAngles(this.linkIds, network.links)
|
||||
calculateAngles(this.floatingLinkIds, network.floatingLinks)
|
||||
|
||||
// Invalid - reset
|
||||
if (!angles.length) {
|
||||
this.cos = 0
|
||||
this.sin = 0
|
||||
this.controlPoint[0] = 0
|
||||
this.controlPoint[1] = 0
|
||||
return
|
||||
}
|
||||
|
||||
sum /= angles.length
|
||||
|
||||
const originToReroute = Math.atan2(
|
||||
this.posInternal[1] - linkStart[1],
|
||||
this.posInternal[0] - linkStart[0]
|
||||
)
|
||||
let diff = (originToReroute - sum) * 0.5
|
||||
if (Math.abs(diff) > Math.PI * 0.5) diff += Math.PI
|
||||
const dist = Math.min(
|
||||
Reroute.maxSplineOffset,
|
||||
distance(linkStart, this.posInternal) * 0.25
|
||||
)
|
||||
|
||||
// Store results
|
||||
const originDiff = originToReroute - diff
|
||||
const cos = Math.cos(originDiff)
|
||||
const sin = Math.sin(originDiff)
|
||||
|
||||
this.cos = cos
|
||||
this.sin = sin
|
||||
this.controlPoint[0] = dist * -cos
|
||||
this.controlPoint[1] = dist * -sin
|
||||
|
||||
/**
|
||||
* Calculates the direction of each link and adds it to the array.
|
||||
* @param linkIds The IDs of the links to calculate
|
||||
* @param links The link container from the link network.
|
||||
*/
|
||||
function calculateAngles(
|
||||
linkIds: Iterable<LinkId>,
|
||||
links: ReadonlyMap<LinkId, LLink>
|
||||
) {
|
||||
for (const linkId of linkIds) {
|
||||
const link = links.get(linkId)
|
||||
const pos = getNextPos(network, link, id)
|
||||
if (!pos) continue
|
||||
|
||||
const angle = getDirection(thisPos, pos)
|
||||
angles.push(angle)
|
||||
sum += angle
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the reroute on the canvas.
|
||||
* @param ctx Canvas context to draw on
|
||||
* @param backgroundPattern The canvas background pattern; used to make floating reroutes appear washed out.
|
||||
* @remarks Leaves {@link ctx}.fillStyle, strokeStyle, and lineWidth dirty (perf.).
|
||||
*/
|
||||
draw(ctx: CanvasRenderingContext2D, backgroundPattern?: CanvasPattern): void {
|
||||
const { globalAlpha } = ctx
|
||||
const { pos } = this
|
||||
|
||||
ctx.beginPath()
|
||||
ctx.arc(pos[0], pos[1], Reroute.radius, 0, 2 * Math.PI)
|
||||
|
||||
if (this.linkIds.size === 0) {
|
||||
ctx.fillStyle = backgroundPattern ?? '#797979'
|
||||
ctx.fill()
|
||||
ctx.globalAlpha = globalAlpha * 0.33
|
||||
}
|
||||
|
||||
ctx.fillStyle = this.colour
|
||||
ctx.lineWidth = Reroute.radius * 0.1
|
||||
ctx.strokeStyle = 'rgb(0,0,0,0.5)'
|
||||
ctx.fill()
|
||||
ctx.stroke()
|
||||
|
||||
ctx.fillStyle = '#ffffff55'
|
||||
ctx.strokeStyle = 'rgb(0,0,0,0.3)'
|
||||
ctx.beginPath()
|
||||
ctx.arc(pos[0], pos[1], Reroute.radius * 0.8, 0, 2 * Math.PI)
|
||||
ctx.fill()
|
||||
ctx.stroke()
|
||||
|
||||
if (this.selected) {
|
||||
ctx.strokeStyle = '#fff'
|
||||
ctx.beginPath()
|
||||
ctx.arc(pos[0], pos[1], Reroute.radius * 1.2, 0, 2 * Math.PI)
|
||||
ctx.stroke()
|
||||
}
|
||||
|
||||
if (Reroute.drawIdBadge) {
|
||||
const idBadge = new LGraphBadge({ text: this.id.toString() })
|
||||
const x = pos[0] - idBadge.getWidth(ctx) * 0.5
|
||||
const y = pos[1] - idBadge.height - Reroute.radius - 2
|
||||
idBadge.draw(ctx, x, y)
|
||||
}
|
||||
|
||||
ctx.globalAlpha = globalAlpha
|
||||
}
|
||||
|
||||
/**
|
||||
* Draws the input and output slots on the canvas, if the slots are visible.
|
||||
* @param ctx The canvas context to draw on.
|
||||
*/
|
||||
drawSlots(ctx: CanvasRenderingContext2D): void {
|
||||
this.inputSlot.draw(ctx)
|
||||
this.outputSlot.draw(ctx)
|
||||
}
|
||||
|
||||
drawHighlight(ctx: CanvasRenderingContext2D, colour: CanvasColour): void {
|
||||
const { pos } = this
|
||||
|
||||
const { strokeStyle, lineWidth } = ctx
|
||||
ctx.strokeStyle = colour
|
||||
ctx.lineWidth = 1
|
||||
|
||||
ctx.beginPath()
|
||||
ctx.arc(pos[0], pos[1], Reroute.radius * 1.5, 0, 2 * Math.PI)
|
||||
ctx.stroke()
|
||||
|
||||
ctx.strokeStyle = strokeStyle
|
||||
ctx.lineWidth = lineWidth
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates visibility of the input and output slots, based on the position of the pointer.
|
||||
* @param pos The position of the pointer.
|
||||
* @returns `true` if any changes require a redraw.
|
||||
*/
|
||||
updateVisibility(pos: Point): boolean {
|
||||
const input = this.inputSlot
|
||||
const output = this.outputSlot
|
||||
input.dirty = false
|
||||
output.dirty = false
|
||||
|
||||
const { firstFloatingLink } = this
|
||||
const hasLink = !!this.firstLink
|
||||
|
||||
const showInput = hasLink || firstFloatingLink?.isFloatingOutput
|
||||
const showOutput = hasLink || firstFloatingLink?.isFloatingInput
|
||||
const showEither = showInput || showOutput
|
||||
|
||||
// Check if even in the vicinity
|
||||
if (showEither && isPointInRect(pos, this.hoverArea)) {
|
||||
const outlineOnly = this.contains(pos)
|
||||
|
||||
if (showInput) input.update(pos, outlineOnly)
|
||||
if (showOutput) output.update(pos, outlineOnly)
|
||||
} else {
|
||||
this.hideSlots()
|
||||
}
|
||||
|
||||
return input.dirty || output.dirty
|
||||
}
|
||||
|
||||
/** Prevents rendering of the input and output slots. */
|
||||
hideSlots() {
|
||||
this.inputSlot.hide()
|
||||
this.outputSlot.hide()
|
||||
}
|
||||
|
||||
/**
|
||||
* Precisely determines if {@link pos} is inside this reroute.
|
||||
* @param pos The position to check (canvas space)
|
||||
* @returns `true` if {@link pos} is within the reroute's radius.
|
||||
*/
|
||||
containsPoint(pos: Point): boolean {
|
||||
return isPointInRect(pos, this.hoverArea) && this.contains(pos)
|
||||
}
|
||||
|
||||
private contains(pos: Point): boolean {
|
||||
return distance(this.pos, pos) <= Reroute.radius
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
asSerialisable(): SerialisableReroute {
|
||||
const { id, parentId, pos, linkIds } = this
|
||||
return {
|
||||
id,
|
||||
parentId,
|
||||
pos: [pos[0], pos[1]],
|
||||
linkIds: [...linkIds],
|
||||
floating: this.floating ? { slotType: this.floating.slotType } : undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a slot on a reroute.
|
||||
* @private Designed for internal use within this module.
|
||||
*/
|
||||
class RerouteSlot {
|
||||
/** The reroute that the slot belongs to. */
|
||||
private readonly reroute: Reroute
|
||||
|
||||
private readonly offsetMultiplier: 1 | -1
|
||||
/** Centre point of this slot. */
|
||||
get pos(): Point {
|
||||
const [x, y] = this.reroute.pos
|
||||
return [x + Reroute.slotOffset * this.offsetMultiplier, y]
|
||||
}
|
||||
|
||||
/** Whether any changes require a redraw. */
|
||||
dirty: boolean = false
|
||||
|
||||
private hoveringInternal = false
|
||||
/** Whether the pointer is hovering over the slot itself. */
|
||||
get hovering() {
|
||||
return this.hoveringInternal
|
||||
}
|
||||
|
||||
set hovering(value) {
|
||||
if (!Object.is(this.hoveringInternal, value)) {
|
||||
this.hoveringInternal = value
|
||||
this.dirty = true
|
||||
}
|
||||
}
|
||||
|
||||
private showOutlineInternal = false
|
||||
/** Whether the slot outline / faint background is visible. */
|
||||
get showOutline() {
|
||||
return this.showOutlineInternal
|
||||
}
|
||||
|
||||
set showOutline(value) {
|
||||
if (!Object.is(this.showOutlineInternal, value)) {
|
||||
this.showOutlineInternal = value
|
||||
this.dirty = true
|
||||
}
|
||||
}
|
||||
|
||||
constructor(reroute: Reroute, isInput: boolean) {
|
||||
this.reroute = reroute
|
||||
this.offsetMultiplier = isInput ? -1 : 1
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the slot's visibility based on the position of the pointer.
|
||||
* @param pos The position of the pointer.
|
||||
* @param outlineOnly If `true`, slot will display with the faded outline only ({@link showOutline}).
|
||||
*/
|
||||
update(pos: Point, outlineOnly?: boolean) {
|
||||
if (outlineOnly) {
|
||||
this.hovering = false
|
||||
this.showOutline = true
|
||||
} else {
|
||||
const dist = distance(this.pos, pos)
|
||||
this.hovering = dist <= 2 * Reroute.slotRadius
|
||||
this.showOutline = dist <= 5 * Reroute.slotRadius
|
||||
}
|
||||
}
|
||||
|
||||
/** Hides the slot. */
|
||||
hide() {
|
||||
this.hovering = false
|
||||
this.showOutline = false
|
||||
}
|
||||
|
||||
/**
|
||||
* Draws the slot on the canvas.
|
||||
* @param ctx The canvas context to draw on.
|
||||
*/
|
||||
draw(ctx: CanvasRenderingContext2D): void {
|
||||
const { fillStyle, strokeStyle, lineWidth } = ctx
|
||||
const {
|
||||
showOutline,
|
||||
hovering,
|
||||
pos: [x, y]
|
||||
} = this
|
||||
if (!showOutline) return
|
||||
|
||||
try {
|
||||
ctx.fillStyle = hovering ? this.reroute.colour : 'rgba(127,127,127,0.3)'
|
||||
ctx.strokeStyle = 'rgb(0,0,0,0.5)'
|
||||
ctx.lineWidth = 1
|
||||
|
||||
ctx.beginPath()
|
||||
ctx.arc(x, y, Reroute.slotRadius, 0, 2 * Math.PI)
|
||||
ctx.fill()
|
||||
ctx.stroke()
|
||||
} finally {
|
||||
ctx.fillStyle = fillStyle
|
||||
ctx.strokeStyle = strokeStyle
|
||||
ctx.lineWidth = lineWidth
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the position of the next reroute in the chain, or the destination input slot on this link.
|
||||
* @param network The network of links
|
||||
* @param link The link representing the current reroute chain
|
||||
* @param id The ID of "this" reroute
|
||||
* @returns The position of the next reroute or the input slot target, otherwise `undefined`.
|
||||
*/
|
||||
function getNextPos(
|
||||
network: ReadonlyLinkNetwork,
|
||||
link: LLink | undefined,
|
||||
id: RerouteId
|
||||
) {
|
||||
if (!link) return
|
||||
|
||||
const linkPos = LLink.findNextReroute(network, link, id)?.pos
|
||||
if (linkPos) return linkPos
|
||||
|
||||
// Floating link with no input to find
|
||||
if (link.target_id === -1 || link.target_slot === -1) return
|
||||
|
||||
return network.getNodeById(link.target_id)?.getInputPos(link.target_slot)
|
||||
}
|
||||
|
||||
/** Returns the direction from one point to another in radians. */
|
||||
function getDirection(fromPos: Point, toPos: Point) {
|
||||
return Math.atan2(toPos[1] - fromPos[1], toPos[0] - fromPos[0])
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,308 @@
|
||||
import { t } from '@/i18n'
|
||||
import { type LGraphNode, isComboWidget } from '@/lib/litegraph/src/litegraph'
|
||||
import type {
|
||||
IBaseWidget,
|
||||
IComboWidget,
|
||||
IStringWidget
|
||||
} from '@/lib/litegraph/src/types/widgets'
|
||||
import { useSettingStore } from '@/platform/settings/settingStore'
|
||||
import { dynamicWidgets } from '@/core/graph/widgets/dynamicWidgets'
|
||||
import { useBooleanWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useBooleanWidget'
|
||||
import { useChartWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useChartWidget'
|
||||
import { useColorWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useColorWidget'
|
||||
import { useComboWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useComboWidget'
|
||||
import { useFloatWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useFloatWidget'
|
||||
import { useGalleriaWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useGalleriaWidget'
|
||||
import { useImageCompareWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useImageCompareWidget'
|
||||
import { useImageUploadWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget'
|
||||
import { useIntWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useIntWidget'
|
||||
import { useMarkdownWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useMarkdownWidget'
|
||||
import { useStringWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useStringWidget'
|
||||
import { useTextareaWidget } from '@/renderer/extensions/vueNodes/widgets/composables/useTextareaWidget'
|
||||
import { transformInputSpecV1ToV2 } from '@/schemas/nodeDef/migration'
|
||||
import type { InputSpec as InputSpecV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
||||
|
||||
import type { ComfyApp } from './app'
|
||||
import './domWidget'
|
||||
import './errorNodeWidgets'
|
||||
|
||||
export type ComfyWidgetConstructorV2 = (
|
||||
node: LGraphNode,
|
||||
inputSpec: InputSpecV2
|
||||
) => IBaseWidget
|
||||
|
||||
export type ComfyWidgetConstructor = (
|
||||
node: LGraphNode,
|
||||
inputName: string,
|
||||
inputData: InputSpec,
|
||||
app: ComfyApp,
|
||||
widgetName?: string
|
||||
) => { widget: IBaseWidget; minWidth?: number; minHeight?: number }
|
||||
|
||||
/**
|
||||
* Transforms a V2 widget constructor to a V1 widget constructor.
|
||||
* @param widgetConstructorV2 The V2 widget constructor to transform.
|
||||
* @returns The transformed V1 widget constructor.
|
||||
*/
|
||||
const transformWidgetConstructorV2ToV1 = (
|
||||
widgetConstructorV2: ComfyWidgetConstructorV2
|
||||
): ComfyWidgetConstructor => {
|
||||
return (node, inputName, inputData) => {
|
||||
const inputSpec = transformInputSpecV1ToV2(inputData, {
|
||||
name: inputName
|
||||
})
|
||||
const widget = widgetConstructorV2(node, inputSpec)
|
||||
return {
|
||||
widget,
|
||||
minWidth: widget.options.minNodeSize?.[0],
|
||||
minHeight: widget.options.minNodeSize?.[1]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function controlValueRunBefore() {
|
||||
return useSettingStore().get('Comfy.WidgetControlMode') === 'before'
|
||||
}
|
||||
|
||||
export function updateControlWidgetLabel(widget: IBaseWidget) {
|
||||
if (controlValueRunBefore()) {
|
||||
widget.label = t('g.control_before_generate')
|
||||
} else {
|
||||
widget.label = t('g.control_after_generate')
|
||||
}
|
||||
}
|
||||
|
||||
export const IS_CONTROL_WIDGET = Symbol()
|
||||
const HAS_EXECUTED = Symbol()
|
||||
|
||||
export function addValueControlWidget(
|
||||
node: LGraphNode,
|
||||
targetWidget: IBaseWidget,
|
||||
defaultValue?: string,
|
||||
_values?: unknown,
|
||||
widgetName?: string,
|
||||
inputData?: InputSpec
|
||||
): IComboWidget {
|
||||
let name = inputData?.[1]?.control_after_generate
|
||||
if (typeof name !== 'string') {
|
||||
name = widgetName
|
||||
}
|
||||
const widgets = addValueControlWidgets(
|
||||
node,
|
||||
targetWidget,
|
||||
defaultValue ?? 'randomize',
|
||||
{
|
||||
addFilterList: false,
|
||||
controlAfterGenerateName: name
|
||||
},
|
||||
inputData
|
||||
)
|
||||
return widgets[0]
|
||||
}
|
||||
|
||||
export function addValueControlWidgets(
|
||||
node: LGraphNode,
|
||||
targetWidget: IBaseWidget,
|
||||
defaultValue?: string,
|
||||
options?: Record<string, any>,
|
||||
inputData?: InputSpec
|
||||
): [IComboWidget, ...IStringWidget[]] {
|
||||
if (!defaultValue) defaultValue = 'randomize'
|
||||
if (!options) options = {}
|
||||
|
||||
const getName = (defaultName: string, optionName: string) => {
|
||||
let name = defaultName
|
||||
if (options[optionName]) {
|
||||
name = options[optionName]
|
||||
} else if (typeof inputData?.[1]?.[defaultName] === 'string') {
|
||||
name = inputData?.[1]?.[defaultName]
|
||||
} else if (inputData?.[1]?.control_prefix) {
|
||||
name = inputData?.[1]?.control_prefix + ' ' + name
|
||||
}
|
||||
return name
|
||||
}
|
||||
|
||||
const valueControl = node.addWidget(
|
||||
'combo',
|
||||
getName('control_after_generate', 'controlAfterGenerateName'),
|
||||
defaultValue,
|
||||
function () {},
|
||||
{
|
||||
values: ['fixed', 'increment', 'decrement', 'randomize'],
|
||||
serialize: false, // Don't include this in prompt.
|
||||
canvasOnly: true
|
||||
}
|
||||
) as IComboWidget
|
||||
|
||||
valueControl.tooltip =
|
||||
'Allows the linked widget to be changed automatically, for example randomizing the noise seed.'
|
||||
valueControl[IS_CONTROL_WIDGET] = true
|
||||
updateControlWidgetLabel(valueControl)
|
||||
const widgets: [IComboWidget, ...IStringWidget[]] = [valueControl]
|
||||
|
||||
const isCombo = isComboWidget(targetWidget)
|
||||
let comboFilter: IStringWidget
|
||||
if (isCombo && valueControl.options.values) {
|
||||
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
|
||||
valueControl.options.values.push('increment-wrap')
|
||||
}
|
||||
if (isCombo && options.addFilterList !== false) {
|
||||
comboFilter = node.addWidget(
|
||||
'string',
|
||||
getName('control_filter_list', 'controlFilterListName'),
|
||||
'',
|
||||
function () {},
|
||||
{
|
||||
serialize: false // Don't include this in prompt.
|
||||
}
|
||||
) as IStringWidget
|
||||
updateControlWidgetLabel(comboFilter)
|
||||
comboFilter.tooltip =
|
||||
"Allows for filtering the list of values when changing the value via the control generate mode. Allows for RegEx matches in the format /abc/ to only filter to values containing 'abc'."
|
||||
|
||||
widgets.push(comboFilter)
|
||||
}
|
||||
|
||||
const applyWidgetControl = () => {
|
||||
var v = valueControl.value
|
||||
|
||||
if (isCombo && v !== 'fixed') {
|
||||
let values = targetWidget.options.values ?? []
|
||||
const filter = comboFilter?.value
|
||||
if (filter) {
|
||||
let check
|
||||
if (filter.startsWith('/') && filter.endsWith('/')) {
|
||||
try {
|
||||
const regex = new RegExp(filter.substring(1, filter.length - 1))
|
||||
check = (item: string) => regex.test(item)
|
||||
} catch (error) {
|
||||
console.error(
|
||||
'Error constructing RegExp filter for node ' + node.id,
|
||||
filter,
|
||||
error
|
||||
)
|
||||
}
|
||||
}
|
||||
if (!check) {
|
||||
const lower = filter.toLocaleLowerCase()
|
||||
check = (item: string) => item.toLocaleLowerCase().includes(lower)
|
||||
}
|
||||
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
|
||||
values = values.filter((item: string) => check(item))
|
||||
if (!values.length && targetWidget.options.values?.length) {
|
||||
console.warn(
|
||||
'Filter for node ' + node.id + ' has filtered out all items',
|
||||
filter
|
||||
)
|
||||
}
|
||||
}
|
||||
// @ts-expect-error targetWidget.value can be number or string
|
||||
let current_index = values.indexOf(targetWidget.value)
|
||||
let current_length = values.length
|
||||
|
||||
switch (v) {
|
||||
case 'increment':
|
||||
current_index += 1
|
||||
break
|
||||
case 'increment-wrap':
|
||||
current_index += 1
|
||||
if (current_index >= current_length) {
|
||||
current_index = 0
|
||||
}
|
||||
break
|
||||
case 'decrement':
|
||||
current_index -= 1
|
||||
break
|
||||
case 'randomize':
|
||||
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
|
||||
current_index = Math.floor(Math.random() * current_length)
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
current_index = Math.max(0, current_index)
|
||||
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
|
||||
current_index = Math.min(current_length - 1, current_index)
|
||||
if (current_index >= 0) {
|
||||
// @ts-expect-error Combo widget values may be a dictionary or legacy function type
|
||||
let value = values[current_index]
|
||||
targetWidget.value = value
|
||||
targetWidget.callback?.(value)
|
||||
}
|
||||
} else {
|
||||
//number
|
||||
let { min = 0, max = 1, step2 = 1 } = targetWidget.options
|
||||
// limit to something that javascript can handle
|
||||
max = Math.min(1125899906842624, max)
|
||||
min = Math.max(-1125899906842624, min)
|
||||
let range = (max - min) / step2
|
||||
|
||||
//adjust values based on valueControl Behaviour
|
||||
switch (v) {
|
||||
case 'fixed':
|
||||
break
|
||||
case 'increment':
|
||||
// @ts-expect-error targetWidget.value can be number or string
|
||||
targetWidget.value += step2
|
||||
break
|
||||
case 'decrement':
|
||||
// @ts-expect-error targetWidget.value can be number or string
|
||||
targetWidget.value -= step2
|
||||
break
|
||||
case 'randomize':
|
||||
targetWidget.value = Math.floor(Math.random() * range) * step2 + min
|
||||
break
|
||||
default:
|
||||
break
|
||||
}
|
||||
/*check if values are over or under their respective
|
||||
* ranges and set them to min or max.*/
|
||||
// @ts-expect-error targetWidget.value can be number or string
|
||||
if (targetWidget.value < min) targetWidget.value = min
|
||||
// @ts-expect-error targetWidget.value can be number or string
|
||||
if (targetWidget.value > max) targetWidget.value = max
|
||||
targetWidget.callback?.(targetWidget.value)
|
||||
}
|
||||
}
|
||||
|
||||
valueControl.beforeQueued = () => {
|
||||
if (controlValueRunBefore()) {
|
||||
// Don't run on first execution
|
||||
if (valueControl[HAS_EXECUTED]) {
|
||||
applyWidgetControl()
|
||||
}
|
||||
}
|
||||
valueControl[HAS_EXECUTED] = true
|
||||
}
|
||||
|
||||
valueControl.afterQueued = () => {
|
||||
if (!controlValueRunBefore()) {
|
||||
applyWidgetControl()
|
||||
}
|
||||
}
|
||||
|
||||
return widgets
|
||||
}
|
||||
|
||||
export const ComfyWidgets = {
|
||||
INT: transformWidgetConstructorV2ToV1(useIntWidget()),
|
||||
FLOAT: transformWidgetConstructorV2ToV1(useFloatWidget()),
|
||||
BOOLEAN: transformWidgetConstructorV2ToV1(useBooleanWidget()),
|
||||
STRING: transformWidgetConstructorV2ToV1(useStringWidget()),
|
||||
MARKDOWN: transformWidgetConstructorV2ToV1(useMarkdownWidget()),
|
||||
COMBO: transformWidgetConstructorV2ToV1(useComboWidget()),
|
||||
IMAGEUPLOAD: useImageUploadWidget(),
|
||||
COLOR: transformWidgetConstructorV2ToV1(useColorWidget()),
|
||||
IMAGECOMPARE: transformWidgetConstructorV2ToV1(useImageCompareWidget()),
|
||||
CHART: transformWidgetConstructorV2ToV1(useChartWidget()),
|
||||
GALLERIA: transformWidgetConstructorV2ToV1(useGalleriaWidget()),
|
||||
TEXTAREA: transformWidgetConstructorV2ToV1(useTextareaWidget()),
|
||||
...dynamicWidgets
|
||||
} as const
|
||||
|
||||
export function isValidWidgetType(
|
||||
key: unknown
|
||||
): key is keyof typeof ComfyWidgets {
|
||||
return ComfyWidgets[key as keyof typeof ComfyWidgets] !== undefined
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
import type {
|
||||
ExecutableLGraphNode,
|
||||
ExecutionId,
|
||||
LGraph
|
||||
} from '@/lib/litegraph/src/litegraph'
|
||||
import {
|
||||
ExecutableNodeDTO,
|
||||
LGraphEventMode
|
||||
} from '@/lib/litegraph/src/litegraph'
|
||||
import type {
|
||||
ComfyApiWorkflow,
|
||||
ComfyWorkflowJSON
|
||||
} from '@/platform/workflow/validation/schemas/workflowSchema'
|
||||
|
||||
import { ExecutableGroupNodeDTO, isGroupNode } from './executableGroupNodeDto'
|
||||
import { compressWidgetInputSlots } from './litegraphUtil'
|
||||
|
||||
/**
|
||||
* Converts the current graph workflow for sending to the API.
|
||||
* @note Node widgets are updated before serialization to prepare queueing.
|
||||
*
|
||||
* @param graph The graph to convert.
|
||||
* @param options The options for the conversion.
|
||||
* - `sortNodes`: Whether to sort the nodes by execution order.
|
||||
* @returns The workflow and node links
|
||||
*/
|
||||
export const graphToPrompt = async (
|
||||
graph: LGraph,
|
||||
options: { sortNodes?: boolean } = {}
|
||||
): Promise<{ workflow: ComfyWorkflowJSON; output: ComfyApiWorkflow }> => {
|
||||
const { sortNodes = false } = options
|
||||
|
||||
for (const node of graph.computeExecutionOrder(false)) {
|
||||
const innerNodes = node.getInnerNodes
|
||||
? node.getInnerNodes(new Map())
|
||||
: [node]
|
||||
for (const innerNode of innerNodes) {
|
||||
if (innerNode.isVirtualNode) {
|
||||
innerNode.applyToGraph?.()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const workflow = graph.serialize({ sortNodes })
|
||||
|
||||
// Remove localized_name from the workflow
|
||||
for (const node of workflow.nodes) {
|
||||
for (const slot of node.inputs ?? []) {
|
||||
delete slot.localized_name
|
||||
}
|
||||
for (const slot of node.outputs ?? []) {
|
||||
delete slot.localized_name
|
||||
}
|
||||
}
|
||||
|
||||
compressWidgetInputSlots(workflow)
|
||||
workflow.extra ??= {}
|
||||
workflow.extra.frontendVersion = __COMFYUI_FRONTEND_VERSION__
|
||||
|
||||
const nodeDtoMap = new Map<ExecutionId, ExecutableLGraphNode>()
|
||||
for (const node of graph.computeExecutionOrder(false)) {
|
||||
const dto: ExecutableLGraphNode = isGroupNode(node)
|
||||
? new ExecutableGroupNodeDTO(node, [], nodeDtoMap)
|
||||
: new ExecutableNodeDTO(node, [], nodeDtoMap)
|
||||
|
||||
for (const innerNode of dto.getInnerNodes()) {
|
||||
nodeDtoMap.set(innerNode.id, innerNode)
|
||||
}
|
||||
|
||||
nodeDtoMap.set(dto.id, dto)
|
||||
}
|
||||
|
||||
const output: ComfyApiWorkflow = {}
|
||||
// Process nodes in order of execution
|
||||
for (const node of nodeDtoMap.values()) {
|
||||
// Don't serialize muted nodes
|
||||
if (
|
||||
node.isVirtualNode ||
|
||||
node.mode === LGraphEventMode.NEVER ||
|
||||
node.mode === LGraphEventMode.BYPASS
|
||||
) {
|
||||
continue
|
||||
}
|
||||
|
||||
const inputs: ComfyApiWorkflow[string]['inputs'] = {}
|
||||
const { widgets } = node
|
||||
|
||||
// Store all widget values
|
||||
if (widgets) {
|
||||
for (const [i, widget] of widgets.entries()) {
|
||||
if (!widget.name || widget.options?.serialize === false) continue
|
||||
|
||||
const widgetValue = widget.serializeValue
|
||||
? await widget.serializeValue(node, i)
|
||||
: widget.value
|
||||
// By default, Array values are reserved to represent node connections.
|
||||
// We need to wrap the array as an object to avoid the misinterpretation
|
||||
// of the array as a node connection.
|
||||
// The backend automatically unwraps the object to an array during
|
||||
// execution.
|
||||
inputs[widget.name] = Array.isArray(widgetValue)
|
||||
? {
|
||||
__value__: widgetValue
|
||||
}
|
||||
: widgetValue
|
||||
}
|
||||
}
|
||||
|
||||
// Store all node links
|
||||
for (const [i, input] of node.inputs.entries()) {
|
||||
const resolvedInput = node.resolveInput(i)
|
||||
if (!resolvedInput) continue
|
||||
|
||||
// Resolved to an actual widget value rather than a node connection
|
||||
if (resolvedInput.widgetInfo) {
|
||||
const { value } = resolvedInput.widgetInfo
|
||||
inputs[input.name] = Array.isArray(value) ? { __value__: value } : value
|
||||
continue
|
||||
}
|
||||
|
||||
inputs[input.name] = [
|
||||
String(resolvedInput.origin_id),
|
||||
// @ts-expect-error link.origin_slot is already number.
|
||||
parseInt(resolvedInput.origin_slot)
|
||||
]
|
||||
}
|
||||
|
||||
output[String(node.id)] = {
|
||||
inputs,
|
||||
// TODO(huchenlei): Filter out all nodes that cannot be mapped to a
|
||||
// comfyClass.
|
||||
class_type: node.comfyClass!,
|
||||
// Ignored by the backend.
|
||||
_meta: {
|
||||
title: node.title
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Remove inputs connected to removed nodes
|
||||
for (const { inputs } of Object.values(output)) {
|
||||
for (const [i, input] of Object.entries(inputs)) {
|
||||
if (Array.isArray(input) && input.length === 2 && !output[input[0]]) {
|
||||
delete inputs[i]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return { workflow: workflow as ComfyWorkflowJSON, output }
|
||||
}
|
||||
@@ -0,0 +1,337 @@
|
||||
import _ from 'es-toolkit/compat'
|
||||
|
||||
import type {
|
||||
ComfyLinkObject,
|
||||
ComfyNode,
|
||||
NodeId,
|
||||
Reroute,
|
||||
WorkflowJSON04
|
||||
} from '@/platform/workflow/validation/schemas/workflowSchema'
|
||||
|
||||
type RerouteNode = ComfyNode & {
|
||||
type: 'Reroute'
|
||||
}
|
||||
|
||||
type LinkExtension = {
|
||||
id: number
|
||||
parentId: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Identifies all legacy Reroute nodes in a workflow
|
||||
*/
|
||||
export function findLegacyRerouteNodes(
|
||||
workflow: WorkflowJSON04
|
||||
): RerouteNode[] {
|
||||
return workflow.nodes.filter(
|
||||
(node) => node.type === 'Reroute'
|
||||
) as RerouteNode[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the workflow has no native reroutes
|
||||
*/
|
||||
export function noNativeReroutes(workflow: WorkflowJSON04): boolean {
|
||||
return (
|
||||
!workflow.extra?.reroutes?.length && !workflow.extra?.linkExtensions?.length
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the center position of a node
|
||||
*/
|
||||
function getNodeCenter(node: ComfyNode): [number, number] {
|
||||
return [node.pos[0] + node.size[0] / 2, node.pos[1] + node.size[1] / 2]
|
||||
}
|
||||
|
||||
class ConversionContext {
|
||||
nodeById: Record<NodeId, ComfyNode>
|
||||
linkById: Record<number, ComfyLinkObject>
|
||||
rerouteById: Record<number, Reroute>
|
||||
rerouteByNodeId: Record<NodeId, Reroute>
|
||||
linkExtensions: LinkExtension[]
|
||||
|
||||
/** Reroutes that has at least a valid link pass through it */
|
||||
validReroutes: Set<Reroute>
|
||||
|
||||
#rerouteIdCounter = 0
|
||||
|
||||
constructor(public workflow: WorkflowJSON04) {
|
||||
this.nodeById = _.keyBy(workflow.nodes.map(_.cloneDeep), 'id')
|
||||
this.linkById = _.keyBy(
|
||||
workflow.links.map((l) => ({
|
||||
id: l[0],
|
||||
origin_id: l[1],
|
||||
origin_slot: l[2],
|
||||
target_id: l[3],
|
||||
target_slot: l[4],
|
||||
type: l[5]
|
||||
})),
|
||||
'id'
|
||||
)
|
||||
|
||||
const reroutes = findLegacyRerouteNodes(workflow).map((node, index) => ({
|
||||
nodeId: node.id,
|
||||
id: index + 1,
|
||||
pos: getNodeCenter(node),
|
||||
linkIds: []
|
||||
}))
|
||||
this.#rerouteIdCounter = reroutes.length + 1
|
||||
|
||||
this.rerouteByNodeId = _.keyBy(reroutes, 'nodeId')
|
||||
this.rerouteById = _.keyBy(reroutes, 'id')
|
||||
|
||||
this.linkExtensions = []
|
||||
this.validReroutes = new Set()
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the chain of reroute nodes leading to the given node
|
||||
*/
|
||||
#getRerouteChain(node: RerouteNode): RerouteNode[] {
|
||||
const nodes: RerouteNode[] = []
|
||||
let currentNode: RerouteNode = node
|
||||
while (currentNode?.type === 'Reroute') {
|
||||
nodes.push(currentNode)
|
||||
const inputLink: ComfyLinkObject | undefined =
|
||||
this.linkById[currentNode.inputs?.[0]?.link ?? 0]
|
||||
|
||||
if (!inputLink) {
|
||||
break
|
||||
}
|
||||
|
||||
currentNode = this.nodeById[inputLink.origin_id] as RerouteNode
|
||||
}
|
||||
|
||||
return nodes
|
||||
}
|
||||
|
||||
#connectRerouteChain(rerouteNodes: RerouteNode[]): Reroute[] {
|
||||
const reroutes = rerouteNodes.map((node) => this.rerouteByNodeId[node.id])
|
||||
for (const reroute of reroutes) {
|
||||
this.validReroutes.add(reroute)
|
||||
}
|
||||
|
||||
for (let i = 0; i < rerouteNodes.length - 1; i++) {
|
||||
const to = reroutes[i]
|
||||
const from = reroutes[i + 1]
|
||||
to.parentId = from.id
|
||||
}
|
||||
|
||||
return reroutes
|
||||
}
|
||||
|
||||
#createNewLink(
|
||||
startingLink: ComfyLinkObject,
|
||||
endingLink: ComfyLinkObject,
|
||||
rerouteNodes: RerouteNode[]
|
||||
): ComfyLinkObject {
|
||||
if (rerouteNodes.length === 0) {
|
||||
throw new Error('No reroute nodes found')
|
||||
}
|
||||
|
||||
const reroute = this.rerouteByNodeId[rerouteNodes[0].id]
|
||||
this.linkExtensions.push({
|
||||
id: endingLink.id,
|
||||
parentId: reroute.id
|
||||
})
|
||||
|
||||
const reroutes = this.#connectRerouteChain(rerouteNodes)
|
||||
for (const reroute of reroutes) {
|
||||
reroute.linkIds ??= []
|
||||
reroute.linkIds.push(endingLink.id)
|
||||
delete reroute.floating
|
||||
}
|
||||
|
||||
return {
|
||||
id: endingLink.id,
|
||||
origin_id: startingLink.origin_id,
|
||||
origin_slot: startingLink.origin_slot,
|
||||
target_id: endingLink.target_id,
|
||||
target_slot: endingLink.target_slot,
|
||||
type: endingLink.type
|
||||
}
|
||||
}
|
||||
|
||||
#createNewInputFloatingLink(
|
||||
endingLink: ComfyLinkObject,
|
||||
rerouteNodes: RerouteNode[]
|
||||
): ComfyLinkObject {
|
||||
const reroutes = this.#connectRerouteChain(rerouteNodes)
|
||||
for (const reroute of reroutes) {
|
||||
if (!reroute.linkIds?.length) {
|
||||
reroute.floating = {
|
||||
slotType: 'input'
|
||||
}
|
||||
}
|
||||
}
|
||||
return {
|
||||
id: this.#rerouteIdCounter++,
|
||||
origin_id: -1,
|
||||
origin_slot: -1,
|
||||
target_id: endingLink.target_id,
|
||||
target_slot: endingLink.target_slot,
|
||||
type: endingLink.type,
|
||||
parentId: reroutes[0].id
|
||||
}
|
||||
}
|
||||
|
||||
#createNewOutputFloatingLink(
|
||||
startingLink: ComfyLinkObject,
|
||||
rerouteNodes: RerouteNode[]
|
||||
): ComfyLinkObject {
|
||||
const reroutes = this.#connectRerouteChain(rerouteNodes)
|
||||
for (const reroute of reroutes) {
|
||||
if (!reroute.linkIds?.length) {
|
||||
reroute.floating = {
|
||||
slotType: 'output'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
id: this.#rerouteIdCounter++,
|
||||
origin_id: startingLink.origin_id,
|
||||
origin_slot: startingLink.origin_slot,
|
||||
target_id: -1,
|
||||
target_slot: -1,
|
||||
type: startingLink.type,
|
||||
parentId: reroutes[0].id
|
||||
}
|
||||
}
|
||||
|
||||
#reconnectLinks(nodes: ComfyNode[], links: ComfyLinkObject[]): void {
|
||||
// Remove all existing links on sockets
|
||||
for (const node of nodes) {
|
||||
for (const input of node.inputs ?? []) {
|
||||
input.link = null
|
||||
}
|
||||
for (const output of node.outputs ?? []) {
|
||||
output.links = []
|
||||
}
|
||||
}
|
||||
|
||||
const nodesById = _.keyBy(nodes, 'id')
|
||||
|
||||
// Reconnect the links
|
||||
for (const link of links) {
|
||||
const sourceNode = nodesById[link.origin_id]
|
||||
sourceNode.outputs![link.origin_slot]!.links!.push(link.id)
|
||||
|
||||
const targetNode = nodesById[link.target_id]
|
||||
targetNode.inputs![link.target_slot]!.link = link.id
|
||||
}
|
||||
}
|
||||
|
||||
migrateReroutes(): WorkflowJSON04 {
|
||||
const links: ComfyLinkObject[] = []
|
||||
const floatingLinks: ComfyLinkObject[] = []
|
||||
|
||||
const endingLinks: ComfyLinkObject[] = []
|
||||
|
||||
for (const link of Object.values(this.linkById)) {
|
||||
const sourceIsReroute = !!this.rerouteByNodeId[link.origin_id]
|
||||
const targetIsReroute = !!this.rerouteByNodeId[link.target_id]
|
||||
|
||||
// Process links that are not connected to reroute nodes
|
||||
if (!sourceIsReroute && !targetIsReroute) {
|
||||
links.push(link)
|
||||
} else if (sourceIsReroute && !targetIsReroute) {
|
||||
endingLinks.push(link)
|
||||
}
|
||||
}
|
||||
|
||||
for (const endingLink of endingLinks) {
|
||||
const endingRerouteNode = this.nodeById[
|
||||
endingLink.origin_id
|
||||
] as RerouteNode
|
||||
const rerouteNodes = this.#getRerouteChain(endingRerouteNode)
|
||||
const startingLink =
|
||||
this.linkById[
|
||||
rerouteNodes[rerouteNodes.length - 1]?.inputs?.[0]?.link ?? -1
|
||||
]
|
||||
if (startingLink) {
|
||||
// Valid link found, create a new link
|
||||
links.push(this.#createNewLink(startingLink, endingLink, rerouteNodes))
|
||||
} else {
|
||||
// Floating link found, create a new floating link
|
||||
floatingLinks.push(
|
||||
this.#createNewInputFloatingLink(endingLink, rerouteNodes)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
const floatingEndingRerouteNodes = Object.keys(this.rerouteByNodeId)
|
||||
.map((nodeId) => this.nodeById[nodeId] as RerouteNode)
|
||||
.filter((rerouteNode) => {
|
||||
const output = rerouteNode.outputs?.[0]
|
||||
if (!output) return false
|
||||
return !output.links?.length
|
||||
})
|
||||
|
||||
for (const rerouteNode of floatingEndingRerouteNodes) {
|
||||
const rerouteNodes = this.#getRerouteChain(rerouteNode)
|
||||
const startingLink =
|
||||
this.linkById[
|
||||
rerouteNodes[rerouteNodes.length - 1]?.inputs?.[0]?.link ?? -1
|
||||
]
|
||||
if (startingLink) {
|
||||
floatingLinks.push(
|
||||
this.#createNewOutputFloatingLink(startingLink, rerouteNodes)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
const nodes = Object.values(this.nodeById).filter(
|
||||
(node) => node.type !== 'Reroute'
|
||||
)
|
||||
this.#reconnectLinks(nodes, links)
|
||||
|
||||
return {
|
||||
...this.workflow,
|
||||
nodes,
|
||||
links: links.map((link) => [
|
||||
link.id,
|
||||
link.origin_id,
|
||||
link.origin_slot,
|
||||
link.target_id,
|
||||
link.target_slot,
|
||||
link.type
|
||||
]),
|
||||
floatingLinks: floatingLinks.length > 0 ? floatingLinks : undefined,
|
||||
extra: {
|
||||
...this.workflow.extra,
|
||||
reroutes: Array.from(this.validReroutes).map(
|
||||
(reroute) => _.omit(reroute, 'nodeId') as Reroute
|
||||
),
|
||||
linkExtensions: this.linkExtensions
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Main function to migrate legacy reroute nodes to native reroute points
|
||||
*/
|
||||
export const migrateLegacyRerouteNodes = (
|
||||
workflow: WorkflowJSON04
|
||||
): WorkflowJSON04 => {
|
||||
// Find all legacy Reroute nodes
|
||||
const legacyRerouteNodes = findLegacyRerouteNodes(workflow)
|
||||
|
||||
// If no reroute nodes, return the workflow unchanged
|
||||
if (legacyRerouteNodes.length === 0) {
|
||||
return workflow
|
||||
}
|
||||
|
||||
// Create a deep copy of the workflow to avoid mutating the original
|
||||
const newWorkflow = JSON.parse(JSON.stringify(workflow)) as WorkflowJSON04
|
||||
|
||||
// Initialize extra structure if needed
|
||||
if (!newWorkflow.extra) {
|
||||
newWorkflow.extra = {}
|
||||
}
|
||||
|
||||
const context = new ConversionContext(newWorkflow)
|
||||
return context.migrateReroutes()
|
||||
}
|
||||
@@ -0,0 +1,408 @@
|
||||
[
|
||||
{
|
||||
"name": ".github/workflows/publish.yml",
|
||||
"crc": 4029730611,
|
||||
"size": 644,
|
||||
"compressed": 361,
|
||||
"offset": 0
|
||||
},
|
||||
{
|
||||
"name": ".gitignore",
|
||||
"crc": 1450662942,
|
||||
"size": 130,
|
||||
"compressed": 102,
|
||||
"offset": 420
|
||||
},
|
||||
{
|
||||
"name": "LICENSE",
|
||||
"crc": 2540125440,
|
||||
"size": 35149,
|
||||
"compressed": 12112,
|
||||
"offset": 562
|
||||
},
|
||||
{
|
||||
"name": "README.md",
|
||||
"crc": 4007662884,
|
||||
"size": 3961,
|
||||
"compressed": 1761,
|
||||
"offset": 12711
|
||||
},
|
||||
{
|
||||
"name": "__init__.py",
|
||||
"crc": 828987883,
|
||||
"size": 23074,
|
||||
"compressed": 5075,
|
||||
"offset": 14511
|
||||
},
|
||||
{
|
||||
"name": "custom_dimensions_example.json",
|
||||
"crc": 3432654072,
|
||||
"size": 329,
|
||||
"compressed": 99,
|
||||
"offset": 19627
|
||||
},
|
||||
{
|
||||
"name": "docs/images/2024-04-03_20_49_29-ComfyUI.png",
|
||||
"crc": 3529809956,
|
||||
"size": 176158,
|
||||
"compressed": 153675,
|
||||
"offset": 19786
|
||||
},
|
||||
{
|
||||
"name": "docs/images/319121566-05f66385-7568-4b1f-8bbc-11053660b02f.png",
|
||||
"crc": 2834170537,
|
||||
"size": 94315,
|
||||
"compressed": 88383,
|
||||
"offset": 173534
|
||||
},
|
||||
{
|
||||
"name": "docs/images/319121636-706b5081-9120-4a29-bd76-901691ada688.png",
|
||||
"crc": 226741621,
|
||||
"size": 24783,
|
||||
"compressed": 24159,
|
||||
"offset": 262009
|
||||
},
|
||||
{
|
||||
"name": "example_workflows/leapfusion_hunyuuanvideo_i2v_native_testing.json",
|
||||
"crc": 3630813698,
|
||||
"size": 20396,
|
||||
"compressed": 3356,
|
||||
"offset": 286260
|
||||
},
|
||||
{
|
||||
"name": "fonts/FreeMono.ttf",
|
||||
"crc": 2258512615,
|
||||
"size": 343980,
|
||||
"compressed": 161625,
|
||||
"offset": 289712
|
||||
},
|
||||
{
|
||||
"name": "fonts/FreeMonoBoldOblique.otf",
|
||||
"crc": 1414006633,
|
||||
"size": 237600,
|
||||
"compressed": 151874,
|
||||
"offset": 451385
|
||||
},
|
||||
{
|
||||
"name": "fonts/TTNorms-Black.otf",
|
||||
"crc": 551786674,
|
||||
"size": 152736,
|
||||
"compressed": 64716,
|
||||
"offset": 603318
|
||||
},
|
||||
{
|
||||
"name": "intrinsic_loras/intrinsic_lora_sd15_albedo.safetensors",
|
||||
"crc": 614627467,
|
||||
"size": 6416109,
|
||||
"compressed": 5961564,
|
||||
"offset": 668087
|
||||
},
|
||||
{
|
||||
"name": "intrinsic_loras/intrinsic_lora_sd15_depth.safetensors",
|
||||
"crc": 2592529254,
|
||||
"size": 6416109,
|
||||
"compressed": 5953901,
|
||||
"offset": 6629735
|
||||
},
|
||||
{
|
||||
"name": "intrinsic_loras/intrinsic_lora_sd15_normal.safetensors",
|
||||
"crc": 3901321543,
|
||||
"size": 6416109,
|
||||
"compressed": 5958260,
|
||||
"offset": 12583719
|
||||
},
|
||||
{
|
||||
"name": "intrinsic_loras/intrinsic_lora_sd15_shading.safetensors",
|
||||
"crc": 653285412,
|
||||
"size": 6416109,
|
||||
"compressed": 5961622,
|
||||
"offset": 18542063
|
||||
},
|
||||
{
|
||||
"name": "intrinsic_loras/intrinsic_loras.txt",
|
||||
"crc": 3545299234,
|
||||
"size": 103,
|
||||
"compressed": 88,
|
||||
"offset": 24503770
|
||||
},
|
||||
{
|
||||
"name": "kjweb_async/marked.min.js",
|
||||
"crc": 131147311,
|
||||
"size": 35418,
|
||||
"compressed": 10734,
|
||||
"offset": 24503923
|
||||
},
|
||||
{
|
||||
"name": "kjweb_async/purify.min.js",
|
||||
"crc": 929026289,
|
||||
"size": 21346,
|
||||
"compressed": 8257,
|
||||
"offset": 24514712
|
||||
},
|
||||
{
|
||||
"name": "nodes/audioscheduler_nodes.py",
|
||||
"crc": 3341841134,
|
||||
"size": 10708,
|
||||
"compressed": 2501,
|
||||
"offset": 24523024
|
||||
},
|
||||
{
|
||||
"name": "nodes/batchcrop_nodes.py",
|
||||
"crc": 1890698479,
|
||||
"size": 32069,
|
||||
"compressed": 5936,
|
||||
"offset": 24525584
|
||||
},
|
||||
{
|
||||
"name": "nodes/curve_nodes.py",
|
||||
"crc": 465276814,
|
||||
"size": 70536,
|
||||
"compressed": 15073,
|
||||
"offset": 24531574
|
||||
},
|
||||
{
|
||||
"name": "nodes/hdr_preview_node.py",
|
||||
"crc": 3691734566,
|
||||
"size": 6779,
|
||||
"compressed": 2496,
|
||||
"offset": 24546697
|
||||
},
|
||||
{
|
||||
"name": "nodes/image_nodes.py",
|
||||
"crc": 3524352847,
|
||||
"size": 205444,
|
||||
"compressed": 42778,
|
||||
"offset": 24549248
|
||||
},
|
||||
{
|
||||
"name": "nodes/image_transform_node.py",
|
||||
"crc": 1521249809,
|
||||
"size": 29645,
|
||||
"compressed": 6512,
|
||||
"offset": 24592076
|
||||
},
|
||||
{
|
||||
"name": "nodes/intrinsic_lora_nodes.py",
|
||||
"crc": 3775804860,
|
||||
"size": 4558,
|
||||
"compressed": 1651,
|
||||
"offset": 24598647
|
||||
},
|
||||
{
|
||||
"name": "nodes/lora_nodes.py",
|
||||
"crc": 3959644998,
|
||||
"size": 28344,
|
||||
"compressed": 7259,
|
||||
"offset": 24600357
|
||||
},
|
||||
{
|
||||
"name": "nodes/ltxv_nodes.py",
|
||||
"crc": 2315543216,
|
||||
"size": 102533,
|
||||
"compressed": 24817,
|
||||
"offset": 24607665
|
||||
},
|
||||
{
|
||||
"name": "nodes/mask_nodes.py",
|
||||
"crc": 2516607697,
|
||||
"size": 68856,
|
||||
"compressed": 15239,
|
||||
"offset": 24632531
|
||||
},
|
||||
{
|
||||
"name": "nodes/model_optimization_nodes.py",
|
||||
"crc": 3677215432,
|
||||
"size": 104857,
|
||||
"compressed": 21115,
|
||||
"offset": 24647819
|
||||
},
|
||||
{
|
||||
"name": "nodes/nodes.py",
|
||||
"crc": 2248522166,
|
||||
"size": 138662,
|
||||
"compressed": 29675,
|
||||
"offset": 24668997
|
||||
},
|
||||
{
|
||||
"name": "nodes/sharpen_nodes.py",
|
||||
"crc": 4092186357,
|
||||
"size": 11205,
|
||||
"compressed": 2958,
|
||||
"offset": 24698716
|
||||
},
|
||||
{
|
||||
"name": "pyproject.toml",
|
||||
"crc": 4014217252,
|
||||
"size": 504,
|
||||
"compressed": 335,
|
||||
"offset": 24701726
|
||||
},
|
||||
{
|
||||
"name": "requirements.txt",
|
||||
"crc": 907034315,
|
||||
"size": 67,
|
||||
"compressed": 66,
|
||||
"offset": 24702105
|
||||
},
|
||||
{
|
||||
"name": "utility/fluid.py",
|
||||
"crc": 3950222201,
|
||||
"size": 2917,
|
||||
"compressed": 1131,
|
||||
"offset": 24702217
|
||||
},
|
||||
{
|
||||
"name": "utility/magictex.py",
|
||||
"crc": 2847379072,
|
||||
"size": 3117,
|
||||
"compressed": 1223,
|
||||
"offset": 24703394
|
||||
},
|
||||
{
|
||||
"name": "utility/numerical.py",
|
||||
"crc": 1724782605,
|
||||
"size": 906,
|
||||
"compressed": 479,
|
||||
"offset": 24704666
|
||||
},
|
||||
{
|
||||
"name": "utility/utility.py",
|
||||
"crc": 1224130403,
|
||||
"size": 3689,
|
||||
"compressed": 1227,
|
||||
"offset": 24705195
|
||||
},
|
||||
{
|
||||
"name": "web/js/appearance.js",
|
||||
"crc": 3139227765,
|
||||
"size": 865,
|
||||
"compressed": 287,
|
||||
"offset": 24706470
|
||||
},
|
||||
{
|
||||
"name": "web/js/canvas_background.js",
|
||||
"crc": 485536879,
|
||||
"size": 13849,
|
||||
"compressed": 3590,
|
||||
"offset": 24706807
|
||||
},
|
||||
{
|
||||
"name": "web/js/contextmenu.js",
|
||||
"crc": 1969830613,
|
||||
"size": 9436,
|
||||
"compressed": 2683,
|
||||
"offset": 24710454
|
||||
},
|
||||
{
|
||||
"name": "web/js/editors/editor_base.js",
|
||||
"crc": 259451769,
|
||||
"size": 25887,
|
||||
"compressed": 7224,
|
||||
"offset": 24713188
|
||||
},
|
||||
{
|
||||
"name": "web/js/editors/interpolation.js",
|
||||
"crc": 639813891,
|
||||
"size": 9322,
|
||||
"compressed": 2085,
|
||||
"offset": 24720471
|
||||
},
|
||||
{
|
||||
"name": "web/js/editors/point_editor_canvas.js",
|
||||
"crc": 2321079016,
|
||||
"size": 14936,
|
||||
"compressed": 3682,
|
||||
"offset": 24722617
|
||||
},
|
||||
{
|
||||
"name": "web/js/editors/spline_editor_canvas.js",
|
||||
"crc": 4157444913,
|
||||
"size": 31752,
|
||||
"compressed": 7694,
|
||||
"offset": 24726366
|
||||
},
|
||||
{
|
||||
"name": "web/js/fast_preview.js",
|
||||
"crc": 342561461,
|
||||
"size": 1403,
|
||||
"compressed": 595,
|
||||
"offset": 24734128
|
||||
},
|
||||
{
|
||||
"name": "web/js/fillconnect.js",
|
||||
"crc": 1628206746,
|
||||
"size": 5836,
|
||||
"compressed": 2176,
|
||||
"offset": 24734775
|
||||
},
|
||||
{
|
||||
"name": "web/js/hdr_preview.js",
|
||||
"crc": 2211343703,
|
||||
"size": 24238,
|
||||
"compressed": 6245,
|
||||
"offset": 24737002
|
||||
},
|
||||
{
|
||||
"name": "web/js/help_popup.js",
|
||||
"crc": 2206154283,
|
||||
"size": 14366,
|
||||
"compressed": 4510,
|
||||
"offset": 24743298
|
||||
},
|
||||
{
|
||||
"name": "web/js/image_transform.js",
|
||||
"crc": 3569556932,
|
||||
"size": 95545,
|
||||
"compressed": 21976,
|
||||
"offset": 24747858
|
||||
},
|
||||
{
|
||||
"name": "web/js/jsnodes.js",
|
||||
"crc": 2200238772,
|
||||
"size": 16040,
|
||||
"compressed": 3403,
|
||||
"offset": 24769889
|
||||
},
|
||||
{
|
||||
"name": "web/js/nodeswap.js",
|
||||
"crc": 2363386205,
|
||||
"size": 11771,
|
||||
"compressed": 3792,
|
||||
"offset": 24773339
|
||||
},
|
||||
{
|
||||
"name": "web/js/performance.js",
|
||||
"crc": 265321834,
|
||||
"size": 8820,
|
||||
"compressed": 2151,
|
||||
"offset": 24777179
|
||||
},
|
||||
{
|
||||
"name": "web/js/play_sound.js",
|
||||
"crc": 4057327971,
|
||||
"size": 3934,
|
||||
"compressed": 1064,
|
||||
"offset": 24779381
|
||||
},
|
||||
{
|
||||
"name": "web/js/screencap_stream.js",
|
||||
"crc": 3607050156,
|
||||
"size": 16700,
|
||||
"compressed": 4769,
|
||||
"offset": 24780495
|
||||
},
|
||||
{
|
||||
"name": "web/js/setgetnodes.js",
|
||||
"crc": 3912945221,
|
||||
"size": 52031,
|
||||
"compressed": 13630,
|
||||
"offset": 24785320
|
||||
},
|
||||
{
|
||||
"name": "web/js/utility.js",
|
||||
"crc": 3029709966,
|
||||
"size": 8486,
|
||||
"compressed": 2890,
|
||||
"offset": 24799001
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,121 @@
|
||||
{
|
||||
"url": "https://cdn.comfy.org/kijai/comfyui-kjnodes/1.3.9/node.zip",
|
||||
"size": 24806185,
|
||||
"headers": {
|
||||
"x-guploader-uploadid": "AFy3sg3f-ojXXEX6Tp_6SP8pIiE2t6yF-f7cPQKR8uNl8xrJYAn7TAevQQxKH_gzXYgy8_mj",
|
||||
"x-goog-generation": "1777023150781855",
|
||||
"x-goog-metageneration": "1",
|
||||
"x-goog-stored-content-encoding": "identity",
|
||||
"x-goog-stored-content-length": "24806185",
|
||||
"x-goog-hash": "crc32c=9TsJKQ==",
|
||||
"x-goog-storage-class": "STANDARD",
|
||||
"accept-ranges": "bytes",
|
||||
"access-control-allow-origin": "*",
|
||||
"access-control-expose-headers": "*",
|
||||
"server": "UploadServer",
|
||||
"via": "1.1 google",
|
||||
"Date": "Fri, 30 Oct 2026 21:20:05 GMT",
|
||||
"Last-Modified": "Fri, 24 Apr 2026 09:32:30 GMT",
|
||||
"ETag": "\"22ab67024e5c2e35d156b12c52e41a74\"",
|
||||
"Content-Type": "application/zip",
|
||||
"Content-Length": "24806185",
|
||||
"Age": "54",
|
||||
"Cache-Control": "public,max-age=3600",
|
||||
"Alt-Svc": "h3=\":443\"; ma=2592000",
|
||||
"Connection": "close"
|
||||
},
|
||||
"ranges": [
|
||||
{
|
||||
"start": 24806163,
|
||||
"end": 24806184,
|
||||
"sha256": "5d4b5da36be7671658a95b05e76c15fb0452ede6abcfb7a46d2ac18aae8a7697"
|
||||
},
|
||||
{
|
||||
"start": 24806143,
|
||||
"end": 24806162,
|
||||
"sha256": "df762c254fe3efc4c5f6986993a555af39e1ec60446b10bffabbbefc781b7611"
|
||||
},
|
||||
{
|
||||
"start": 24801938,
|
||||
"end": 24806162,
|
||||
"sha256": "8cc4aeeac15fde037fedf6e117909f2251862bb3f5d685b0885ca35bd5414b4d"
|
||||
},
|
||||
{
|
||||
"start": 14511,
|
||||
"end": 14540,
|
||||
"sha256": "d1e34d63700d6b70cb01f1a97706748c647fd7012c035beb29f9f20ecbb7211d"
|
||||
},
|
||||
{
|
||||
"start": 14541,
|
||||
"end": 14551,
|
||||
"sha256": "8e2c1f727276d30ced72fa67cb848772a9802162bec39b42a8df5359fd063a4c"
|
||||
},
|
||||
{
|
||||
"start": 14552,
|
||||
"end": 19626,
|
||||
"sha256": "59a723576499938737a9fe24c14e298c1a36a81b0d0beb02f80334d615f849d7"
|
||||
},
|
||||
{
|
||||
"start": 24549248,
|
||||
"end": 24549277,
|
||||
"sha256": "813e3aee226f9fd045103e90baad924c51dfa0b1437aae2c02f8f3439bfd3b3e"
|
||||
},
|
||||
{
|
||||
"start": 24549278,
|
||||
"end": 24549297,
|
||||
"sha256": "1f07e9eef3bd09c8ec71624790329ed048012c9bf9fff98110c7cc43ad71f1c3"
|
||||
},
|
||||
{
|
||||
"start": 24549298,
|
||||
"end": 24592075,
|
||||
"sha256": "4aa638e194362a46cccfc23731a1c4eef1484b1d4bf6002b2f662bd3ba797bae"
|
||||
},
|
||||
{
|
||||
"start": 24705195,
|
||||
"end": 24705224,
|
||||
"sha256": "3bcbdd8f6400fd9e6b94766e28a0ee906d9590365d2e4fae5a2d7fd3f724df72"
|
||||
},
|
||||
{
|
||||
"start": 24705225,
|
||||
"end": 24705242,
|
||||
"sha256": "5814f2bf87a080a65d69379a420ceef3230aebf4c17232d5c1182113e0ef5f60"
|
||||
},
|
||||
{
|
||||
"start": 24705243,
|
||||
"end": 24706469,
|
||||
"sha256": "1a2e65d802973db8e535f9699f604cd356032c693a9ce100995f60a5a458806a"
|
||||
},
|
||||
{
|
||||
"start": 562,
|
||||
"end": 591,
|
||||
"sha256": "5fed87792991eb12d84dfaf549e9abf50ca31dd712df368c0eaf28b88b3b6a8c"
|
||||
},
|
||||
{
|
||||
"start": 592,
|
||||
"end": 598,
|
||||
"sha256": "c693279643b8cd5d248172d9c22cb7cf4ed163a3c98c8a3f69c2717edd3eacb7"
|
||||
},
|
||||
{
|
||||
"start": 599,
|
||||
"end": 12710,
|
||||
"sha256": "414bcae23a5467e1a1fd443dc2958e018421630cdc75eee4bb9ee5631cee8a8e"
|
||||
},
|
||||
{
|
||||
"start": 24701726,
|
||||
"end": 24701755,
|
||||
"sha256": "019140dbbb773544700bacaa474dc807632d2fea019dc1e7e9ed61f14eb545f8"
|
||||
},
|
||||
{
|
||||
"start": 24701756,
|
||||
"end": 24701769,
|
||||
"sha256": "50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711"
|
||||
},
|
||||
{
|
||||
"start": 24701770,
|
||||
"end": 24702104,
|
||||
"sha256": "2f292cdf335e5c82852620ecd38f10ca4f4d9380f7707d24ae9af05fdd6f527d"
|
||||
}
|
||||
],
|
||||
"package_sha256": "unknown; full archive intentionally not fetched",
|
||||
"git_binding": "unknown"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"changelog":"","createdAt":"2026-04-24T09:32:28.326616Z","dependencies":["pillow\u003e=10.3.0","color-matcher","matplotlib"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/kijai/comfyui-kjnodes/1.3.9/node.zip","id":"dc8d4038-a1e6-4f8f-8d27-948fbc632d5c","node_id":"comfyui-kjnodes","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"1.3.9"}
|
||||
@@ -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,306 @@
|
||||
from .nodes.nodes import *
|
||||
from .nodes.curve_nodes import *
|
||||
from .nodes.batchcrop_nodes import *
|
||||
from .nodes.audioscheduler_nodes import *
|
||||
from .nodes.image_nodes import *
|
||||
from .nodes.intrinsic_lora_nodes import *
|
||||
from .nodes.mask_nodes import *
|
||||
from .nodes.model_optimization_nodes import *
|
||||
from .nodes.lora_nodes import *
|
||||
from .nodes.image_transform_node import ImageTransformKJ
|
||||
from .nodes.sharpen_nodes import ImageSharpenKJ
|
||||
from .nodes.hdr_preview_node import HDRPreviewKJ
|
||||
|
||||
|
||||
NODE_CONFIG = {
|
||||
#constants
|
||||
"BOOLConstant": {"class": BOOLConstant, "name": "BOOL Constant"},
|
||||
"INTConstant": {"class": INTConstant, "name": "INT Constant"},
|
||||
"FloatConstant": {"class": FloatConstant, "name": "Float Constant"},
|
||||
"StringConstant": {"class": StringConstant, "name": "String Constant"},
|
||||
"StringConstantMultiline": {"class": StringConstantMultiline, "name": "String Constant Multiline"},
|
||||
#conditioning
|
||||
"ConditioningMultiCombine": {"class": ConditioningMultiCombine, "name": "Conditioning Multi Combine"},
|
||||
"ConditioningSetMaskAndCombine": {"class": ConditioningSetMaskAndCombine, "name": "ConditioningSetMaskAndCombine"},
|
||||
"ConditioningSetMaskAndCombine3": {"class": ConditioningSetMaskAndCombine3, "name": "ConditioningSetMaskAndCombine3"},
|
||||
"ConditioningSetMaskAndCombine4": {"class": ConditioningSetMaskAndCombine4, "name": "ConditioningSetMaskAndCombine4"},
|
||||
"ConditioningSetMaskAndCombine5": {"class": ConditioningSetMaskAndCombine5, "name": "ConditioningSetMaskAndCombine5"},
|
||||
"CondPassThrough": {"class": CondPassThrough},
|
||||
"WanImageToVideoSVIPro": {"class": WanImageToVideoSVIPro, "name": "Wan Image To Video SVIPro"},
|
||||
#masking
|
||||
"DrawMaskOnImage": {"class": DrawMaskOnImage, "name": "Draw Mask On Image"},
|
||||
"DownloadAndLoadCLIPSeg": {"class": DownloadAndLoadCLIPSeg, "name": "(Down)load CLIPSeg"},
|
||||
"BatchCLIPSeg": {"class": BatchCLIPSeg, "name": "Batch CLIPSeg"},
|
||||
"BlockifyMask": {"class": BlockifyMask, "name": "Blockify Mask"},
|
||||
"ColorToMask": {"class": ColorToMask, "name": "Color To Mask"},
|
||||
"CreateGradientMask": {"class": CreateGradientMask, "name": "Create Gradient Mask"},
|
||||
"CreateTextMask": {"class": CreateTextMask, "name": "Create Text Mask"},
|
||||
"CreateAudioMask": {"class": CreateAudioMask, "name": "Create Audio Mask"},
|
||||
"CreateFadeMask": {"class": CreateFadeMask, "name": "Create Fade Mask"},
|
||||
"CreateFadeMaskAdvanced": {"class": CreateFadeMaskAdvanced, "name": "Create Fade Mask Advanced"},
|
||||
"CreateFluidMask": {"class": CreateFluidMask, "name": "Create Fluid Mask"},
|
||||
"CreateShapeMask": {"class": CreateShapeMask, "name": "Create Shape Mask"},
|
||||
"CreateVoronoiMask": {"class": CreateVoronoiMask, "name": "Create Voronoi Mask"},
|
||||
"CreateMagicMask": {"class": CreateMagicMask, "name": "Create Magic Mask"},
|
||||
"GetMaskSizeAndCount": {"class": GetMaskSizeAndCount, "name": "Get Mask Size & Count"},
|
||||
"GrowMaskWithBlur": {"class": GrowMaskWithBlur, "name": "Grow Mask With Blur"},
|
||||
"MaskBatchMulti": {"class": MaskBatchMulti, "name": "Mask Batch Multi"},
|
||||
"OffsetMask": {"class": OffsetMask, "name": "Offset Mask"},
|
||||
"RemapMaskRange": {"class": RemapMaskRange, "name": "Remap Mask Range"},
|
||||
"ResizeMask": {"class": ResizeMask, "name": "Resize Mask"},
|
||||
"RoundMask": {"class": RoundMask, "name": "Round Mask"},
|
||||
"SeparateMasks": {"class": SeparateMasks, "name": "Separate Masks"},
|
||||
"ConsolidateMasksKJ": {"class": ConsolidateMasksKJ, "name": "Consolidate Masks"},
|
||||
#images
|
||||
"AddLabel": {"class": AddLabel, "name": "Add Label"},
|
||||
"ColorMatch": {"class": ColorMatch, "name": "Color Match"},
|
||||
"ColorMatchV2": {"class": ColorMatchV2, "name": "Color Match V2"},
|
||||
"ImageTensorList": {"class": ImageTensorList, "name": "Image Tensor List"},
|
||||
"CrossFadeImages": {"class": CrossFadeImages, "name": "Cross Fade Images"},
|
||||
"CrossFadeImagesMulti": {"class": CrossFadeImagesMulti, "name": "Cross Fade Images Multi"},
|
||||
"GetImagesFromBatchIndexed": {"class": GetImagesFromBatchIndexed, "name": "Get Images From Batch Indexed"},
|
||||
"GetImageRangeFromBatch": {"class": GetImageRangeFromBatch, "name": "Get Image or Mask Range From Batch"},
|
||||
"GetLatentRangeFromBatch": {"class": GetLatentRangeFromBatch, "name": "Get Latent Range From Batch"},
|
||||
"GetLatentSizeAndCount": {"class": GetLatentSizeAndCount, "name": "Get Latent Size & Count"},
|
||||
"GetImageSizeAndCount": {"class": GetImageSizeAndCount, "name": "Get Image Size & Count"},
|
||||
"FastPreview": {"class": FastPreview, "name": "Fast Preview"},
|
||||
"ImageBatchFilter": {"class": ImageBatchFilter, "name": "Image Batch Filter"},
|
||||
"ImageAndMaskPreview": {"class": ImageAndMaskPreview},
|
||||
"ImageAddMulti": {"class": ImageAddMulti, "name": "Image Add Multi"},
|
||||
"ImageBatchJoinWithTransition": {"class": ImageBatchJoinWithTransition, "name": "Image Batch Join With Transition"},
|
||||
"ImageBatchMulti": {"class": ImageBatchMulti, "name": "Image Batch Multi"},
|
||||
"ImageBatchRepeatInterleaving": {"class": ImageBatchRepeatInterleaving},
|
||||
"ImageBatchTestPattern": {"class": ImageBatchTestPattern, "name": "Image Batch Test Pattern"},
|
||||
"ImageConcanate": {"class": ImageConcanate, "name": "Image Concatenate"},
|
||||
"ImageConcatFromBatch": {"class": ImageConcatFromBatch, "name": "Image Concatenate From Batch"},
|
||||
"ImageConcatMulti": {"class": ImageConcatMulti, "name": "Image Concatenate Multi"},
|
||||
"ImageCropByMask": {"class": ImageCropByMask, "name": "Image Crop By Mask"},
|
||||
"ImageCropByMaskAndResize": {"class": ImageCropByMaskAndResize, "name": "Image Crop By Mask And Resize"},
|
||||
"ImageCropByMaskBatch": {"class": ImageCropByMaskBatch, "name": "Image Crop By Mask Batch"},
|
||||
"ImageUncropByMask": {"class": ImageUncropByMask, "name": "Image Uncrop By Mask"},
|
||||
"ImageBatchExtendWithOverlap": {"class": ImageBatchExtendWithOverlap, "name": "Image Batch Extend With Overlap"},
|
||||
"ImageGrabPIL": {"class": ImageGrabPIL, "name": "Image Grab PIL"},
|
||||
"ImageGridComposite2x2": {"class": ImageGridComposite2x2, "name": "Image Grid Composite 2x2"},
|
||||
"ImageGridComposite3x3": {"class": ImageGridComposite3x3, "name": "Image Grid Composite 3x3"},
|
||||
"ImageGridtoBatch": {"class": ImageGridtoBatch, "name": "Image Grid To Batch"},
|
||||
"ImageNoiseAugmentation": {"class": ImageNoiseAugmentation, "name": "Image Noise Augmentation"},
|
||||
"ImageNormalize_Neg1_To_1": {"class": ImageNormalize_Neg1_To_1, "name": "Image Normalize -1 to 1"},
|
||||
"ImagePass": {"class": ImagePass},
|
||||
"ImagePadKJ": {"class": ImagePadKJ, "name": "ImagePad KJ"},
|
||||
"ImagePadForOutpaintMasked": {"class": ImagePadForOutpaintMasked, "name": "Image Pad For Outpaint Masked"},
|
||||
"ImagePadForOutpaintTargetSize": {"class": ImagePadForOutpaintTargetSize, "name": "Image Pad For Outpaint Target Size"},
|
||||
"ImagePrepForICLora": {"class": ImagePrepForICLora, "name": "Image Prep For ICLora"},
|
||||
"ImageResizeKJ": {"class": ImageResizeKJ, "name": "Resize Image (deprecated)"},
|
||||
"ImageResizeKJv2": {"class": ImageResizeKJv2, "name": "Resize Image v2"},
|
||||
"ImageUpscaleWithModelBatched": {"class": ImageUpscaleWithModelBatched, "name": "Image Upscale With Model Batched"},
|
||||
"InsertImagesToBatchIndexed": {"class": InsertImagesToBatchIndexed, "name": "Insert Images To Batch Indexed"},
|
||||
"InsertLatentToIndexed": {"class": InsertLatentToIndex, "name": "Insert Latent To Index"},
|
||||
"LoadAndResizeImage": {"class": LoadAndResizeImage, "name": "Load & Resize Image"},
|
||||
"LoadImagesFromFolderKJ": {"class": LoadImagesFromFolderKJ, "name": "Load Images From Folder (KJ)"},
|
||||
"LoadVideosFromFolder": {"class": LoadVideosFromFolder, "name": "Load Videos From Folder"},
|
||||
"MergeImageChannels": {"class": MergeImageChannels, "name": "Merge Image Channels"},
|
||||
"PadImageBatchInterleaved": {"class": PadImageBatchInterleaved, "name": "Pad Image Batch Interleaved"},
|
||||
"PreviewAnimation": {"class": PreviewAnimation, "name": "Preview Animation"},
|
||||
"RemapImageRange": {"class": RemapImageRange, "name": "Remap Image Range"},
|
||||
"ReverseImageBatch": {"class": ReverseImageBatch, "name": "Reverse Image Batch"},
|
||||
"ReplaceImagesInBatch": {"class": ReplaceImagesInBatch, "name": "Replace Images In Batch"},
|
||||
"SaveImageWithAlpha": {"class": SaveImageWithAlpha, "name": "Save Image With Alpha"},
|
||||
"SaveImageKJ": {"class": SaveImageKJ, "name": "Save Image KJ"},
|
||||
"ShuffleImageBatch": {"class": ShuffleImageBatch, "name": "Shuffle Image Batch"},
|
||||
"SplitImageChannels": {"class": SplitImageChannels, "name": "Split Image Channels"},
|
||||
"TransitionImagesMulti": {"class": TransitionImagesMulti, "name": "Transition Images Multi"},
|
||||
"TransitionImagesInBatch": {"class": TransitionImagesInBatch, "name": "Transition Images In Batch"},
|
||||
"EncodeVideoComponents": {"class": EncodeVideoComponents, "name": "Encode Video Components"},
|
||||
"DecodeAndSaveVideo": {"class": DecodeAndSaveVideo, "name": "Decode And Save Video"},
|
||||
"ImageTransformKJ": {"class": ImageTransformKJ, "name": "Image Transform KJ"},
|
||||
"HDRPreviewKJ": {"class": HDRPreviewKJ, "name": "HDR Preview KJ"},
|
||||
"PreviewImageOrMask": {"class": PreviewImageOrMask, "name": "Preview Image Or Mask"},
|
||||
"ImageSharpenKJ": {"class": ImageSharpenKJ, "name": "Image Sharpen KJ"},
|
||||
#batch cropping
|
||||
"BatchCropFromMask": {"class": BatchCropFromMask, "name": "Batch Crop From Mask"},
|
||||
"BatchCropFromMaskAdvanced": {"class": BatchCropFromMaskAdvanced, "name": "Batch Crop From Mask Advanced"},
|
||||
"FilterZeroMasksAndCorrespondingImages": {"class": FilterZeroMasksAndCorrespondingImages},
|
||||
"InsertImageBatchByIndexes": {"class": InsertImageBatchByIndexes, "name": "Insert Image Batch By Indexes"},
|
||||
"BatchUncrop": {"class": BatchUncrop, "name": "Batch Uncrop"},
|
||||
"BatchUncropAdvanced": {"class": BatchUncropAdvanced, "name": "Batch Uncrop Advanced"},
|
||||
"SplitBboxes": {"class": SplitBboxes, "name": "Split Bboxes"},
|
||||
"BboxToInt": {"class": BboxToInt, "name": "Bbox To Int"},
|
||||
"BboxVisualize": {"class": BboxVisualize, "name": "Bbox Visualize"},
|
||||
#noise
|
||||
"GenerateNoise": {"class": GenerateNoise, "name": "Generate Noise"},
|
||||
"FlipSigmasAdjusted": {"class": FlipSigmasAdjusted, "name": "Flip Sigmas Adjusted"},
|
||||
"InjectNoiseToLatent": {"class": InjectNoiseToLatent, "name": "Inject Noise To Latent"},
|
||||
"CustomSigmas": {"class": CustomSigmas, "name": "Custom Sigmas"},
|
||||
#utility
|
||||
"StringToFloatList": {"class": StringToFloatList, "name": "String to Float List"},
|
||||
"WidgetToString": {"class": WidgetToString, "name": "Widget To String"},
|
||||
"SaveStringKJ": {"class": SaveStringKJ, "name": "Save String KJ"},
|
||||
"DummyOut": {"class": DummyOut, "name": "Dummy Out"},
|
||||
"GetLatentsFromBatchIndexed": {"class": GetLatentsFromBatchIndexed, "name": "Get Latents From Batch Indexed"},
|
||||
"ScaleBatchPromptSchedule": {"class": ScaleBatchPromptSchedule, "name": "Scale Batch Prompt Schedule"},
|
||||
"CameraPoseVisualizer": {"class": CameraPoseVisualizer, "name": "Camera Pose Visualizer"},
|
||||
"AppendStringsToList": {"class": AppendStringsToList, "name": "Append Strings To List"},
|
||||
"JoinStrings": {"class": JoinStrings, "name": "Join Strings"},
|
||||
"JoinStringMulti": {"class": JoinStringMulti, "name": "Join String Multi"},
|
||||
"SimpleCalculatorKJ": {"class": SimpleCalculatorKJ, "name": "Simple Calculator KJ"},
|
||||
"SomethingToString": {"class": SomethingToString, "name": "Something To String"},
|
||||
"Sleep": {"class": Sleep, "name": "Sleep"},
|
||||
"VRAM_Debug": {"class": VRAM_Debug, "name": "VRAM Debug"},
|
||||
"EmptyLatentImagePresets": {"class": EmptyLatentImagePresets, "name": "Empty Latent Image Presets"},
|
||||
"EmptyLatentImageCustomPresets": {"class": EmptyLatentImageCustomPresets, "name": "Empty Latent Image Custom Presets"},
|
||||
"ModelPassThrough": {"class": ModelPassThrough, "name": "ModelPass"},
|
||||
"ModelSaveKJ": {"class": ModelSaveKJ, "name": "Model Save KJ"},
|
||||
"SetShakkerLabsUnionControlNetType": {"class": SetShakkerLabsUnionControlNetType, "name": "Set Shakker Labs Union ControlNet Type"},
|
||||
"StyleModelApplyAdvanced": {"class": StyleModelApplyAdvanced, "name": "Style Model Apply Advanced"},
|
||||
"DiffusionModelSelector": {"class": DiffusionModelSelector, "name": "Diffusion Model Selector"},
|
||||
"LazySwitchKJ": {"class": LazySwitchKJ, "name": "Lazy Switch KJ"},
|
||||
"VisualizeSigmasKJ": {"class": VisualizeSigmasKJ, "name": "Visualize Sigmas KJ"},
|
||||
#audioscheduler stuff
|
||||
"NormalizedAmplitudeToMask": {"class": NormalizedAmplitudeToMask},
|
||||
"NormalizedAmplitudeToFloatList": {"class": NormalizedAmplitudeToFloatList},
|
||||
"OffsetMaskByNormalizedAmplitude": {"class": OffsetMaskByNormalizedAmplitude},
|
||||
"ImageTransformByNormalizedAmplitude": {"class": ImageTransformByNormalizedAmplitude},
|
||||
"AudioConcatenate": {"class": AudioConcatenate},
|
||||
#curve nodes
|
||||
"SplineEditor": {"class": SplineEditor, "name": "Spline Editor"},
|
||||
"CreateShapeImageOnPath": {"class": CreateShapeImageOnPath, "name": "Create Shape Image On Path"},
|
||||
"CreateShapeMaskOnPath": {"class": CreateShapeMaskOnPath, "name": "Create Shape Mask On Path"},
|
||||
"CreateTextOnPath": {"class": CreateTextOnPath, "name": "Create Text On Path"},
|
||||
"CreateGradientFromCoords": {"class": CreateGradientFromCoords, "name": "Create Gradient From Coords"},
|
||||
"CutAndDragOnPath": {"class": CutAndDragOnPath, "name": "Cut And Drag On Path"},
|
||||
"GradientToFloat": {"class": GradientToFloat, "name": "Gradient To Float"},
|
||||
"WeightScheduleExtend": {"class": WeightScheduleExtend, "name": "Weight Schedule Extend"},
|
||||
"MaskOrImageToWeight": {"class": MaskOrImageToWeight, "name": "Mask Or Image To Weight"},
|
||||
"WeightScheduleConvert": {"class": WeightScheduleConvert, "name": "Weight Schedule Convert"},
|
||||
"FloatToMask": {"class": FloatToMask, "name": "Float To Mask"},
|
||||
"FloatToSigmas": {"class": FloatToSigmas, "name": "Float To Sigmas"},
|
||||
"SigmasToFloat": {"class": SigmasToFloat, "name": "Sigmas To Float"},
|
||||
"PlotCoordinates": {"class": PlotCoordinates, "name": "Plot Coordinates"},
|
||||
"InterpolateCoords": {"class": InterpolateCoords, "name": "Interpolate Coords"},
|
||||
"PointsEditor": {"class": PointsEditor, "name": "Points Editor"},
|
||||
#experimental
|
||||
"SoundReactive": {"class": SoundReactive, "name": "Sound Reactive"},
|
||||
"StableZero123_BatchSchedule": {"class": StableZero123_BatchSchedule, "name": "Stable Zero123 Batch Schedule"},
|
||||
"SV3D_BatchSchedule": {"class": SV3D_BatchSchedule, "name": "SV3D Batch Schedule"},
|
||||
"LoadResAdapterNormalization": {"class": LoadResAdapterNormalization},
|
||||
"Superprompt": {"class": Superprompt, "name": "Superprompt"},
|
||||
"GLIGENTextBoxApplyBatchCoords": {"class": GLIGENTextBoxApplyBatchCoords},
|
||||
"Intrinsic_lora_sampling": {"class": Intrinsic_lora_sampling, "name": "Intrinsic Lora Sampling"},
|
||||
"CheckpointPerturbWeights": {"class": CheckpointPerturbWeights, "name": "CheckpointPerturbWeights"},
|
||||
"Screencap_mss": {"class": Screencap_mss, "name": "Screencap mss"},
|
||||
"ScreencapStream": {"class": ScreencapStream, "name": "Screencap Stream"},
|
||||
"WebcamCaptureCV2": {"class": WebcamCaptureCV2, "name": "Webcam Capture CV2"},
|
||||
"DifferentialDiffusionAdvanced": {"class": DifferentialDiffusionAdvanced, "name": "Differential Diffusion Advanced"},
|
||||
"DiTBlockLoraLoader": {"class": DiTBlockLoraLoader, "name": "DiT Block Lora Loader"},
|
||||
"FluxBlockLoraSelect": {"class": FluxBlockLoraSelect, "name": "Flux Block Lora Select"},
|
||||
"HunyuanVideoBlockLoraSelect": {"class": HunyuanVideoBlockLoraSelect, "name": "Hunyuan Video Block Lora Select"},
|
||||
"Wan21BlockLoraSelect": {"class": Wan21BlockLoraSelect, "name": "Wan21 Block Lora Select"},
|
||||
"LTX2BlockLoraSelect": {"class": LTX2BlockLoraSelect, "name": "LTX2 Block Lora Select"},
|
||||
"CustomControlNetWeightsFluxFromList": {"class": CustomControlNetWeightsFluxFromList, "name": "Custom ControlNet Weights Flux From List"},
|
||||
"CheckpointLoaderKJ": {"class": CheckpointLoaderKJ, "name": "CheckpointLoaderKJ"},
|
||||
"DiffusionModelLoaderKJ": {"class": DiffusionModelLoaderKJ, "name": "Diffusion Model Loader KJ"},
|
||||
"TorchCompileModelFluxAdvancedV2": {"class": TorchCompileModelFluxAdvancedV2, "name": "TorchCompileModelFluxAdvancedV2"},
|
||||
"TorchCompileVAE": {"class": TorchCompileVAE, "name": "TorchCompileVAE"},
|
||||
"TorchCompileControlNet": {"class": TorchCompileControlNet, "name": "TorchCompileControlNet"},
|
||||
"TorchCompileModelWanVideoV2": {"class": TorchCompileModelWanVideoV2, "name": "TorchCompileModelWanVideoV2"},
|
||||
"PathchSageAttentionKJ": {"class": PathchSageAttentionKJ, "name": "Patch Sage Attention KJ"},
|
||||
"LeapfusionHunyuanI2VPatcher": {"class": LeapfusionHunyuanI2V, "name": "Leapfusion Hunyuan I2V Patcher"},
|
||||
"VAELoaderKJ": {"class": VAELoaderKJ, "name": "VAELoader KJ"},
|
||||
"VAEDecodeLoopKJ": {"class": VAEDecodeLoopKJ, "name": "VAE Decode Loop KJ"},
|
||||
"ScheduledCFGGuidance": {"class": ScheduledCFGGuidance, "name": "Scheduled CFG Guidance"},
|
||||
"ApplyRifleXRoPE_HunuyanVideo": {"class": ApplyRifleXRoPE_HunuyanVideo, "name": "Apply RifleXRoPE HunuyanVideo"},
|
||||
"ApplyRifleXRoPE_WanVideo": {"class": ApplyRifleXRoPE_WanVideo, "name": "Apply RifleXRoPE WanVideo"},
|
||||
"WanVideoTeaCacheKJ": {"class": WanVideoTeaCacheKJ, "name": "WanVideo Tea Cache (native)"},
|
||||
"WanVideoEnhanceAVideoKJ": {"class": WanVideoEnhanceAVideoKJ, "name": "WanVideo Enhance A Video (native)"},
|
||||
"SkipLayerGuidanceWanVideo": {"class": SkipLayerGuidanceWanVideo, "name": "Skip Layer Guidance WanVideo"},
|
||||
"TimerNodeKJ": {"class": TimerNodeKJ, "name": "Timer Node KJ"},
|
||||
"HunyuanVideoEncodeKeyframesToCond": {"class": HunyuanVideoEncodeKeyframesToCond, "name": "HunyuanVideo Encode Keyframes To Cond"},
|
||||
"CFGZeroStarAndInit": {"class": CFGZeroStarAndInit, "name": "CFG Zero Star/Init"},
|
||||
"ModelPatchTorchSettings": {"class": ModelPatchTorchSettings, "name": "Model Patch Torch Settings"},
|
||||
"WanVideoNAG": {"class": WanVideoNAG, "name": "WanVideoNAG"},
|
||||
"GGUFLoaderKJ": {"class": GGUFLoaderKJ, "name": "GGUF Loader KJ"},
|
||||
"LatentInpaintTTM": {"class": LatentInpaintTTM, "name": "Latent Inpaint TTM"},
|
||||
"NABLA_AttentionKJ": {"class": NABLA_AttentionKJ, "name": "NABLA Attention KJ"},
|
||||
"TorchCompileModelAdvanced": {"class": TorchCompileModelAdvanced, "name": "TorchCompileModelAdvanced"},
|
||||
"StartRecordCUDAMemoryHistory": {"class": StartRecordCUDAMemoryHistory, "name": "Start Recording CUDAMemory History"},
|
||||
"EndRecordCUDAMemoryHistory": {"class": EndRecordCUDAMemoryHistory, "name": "End Recording CUDAMemory History"},
|
||||
"VisualizeCUDAMemoryHistory": {"class": VisualizeCUDAMemoryHistory, "name": "Visualize CUDAMemory History"},
|
||||
"PreviewLatentNoiseMask": {"class": PreviewLatentNoiseMask, "name": "Preview Latent Noise Mask"},
|
||||
"ModelMemoryUseReportPatch": {"class": ModelMemoryUseReportPatch, "name": "Model Memory Use Report Patch"},
|
||||
"ModelMemoryUsageFactorOverride": {"class": ModelMemoryUsageFactorOverride, "name": "Model Memory Usage Factor Override"},
|
||||
"WanChunkFeedForward": {"class": WanChunkFeedForward, "name": "Wan ChunkFeedForward"},
|
||||
"SamplerSelfRefineVideo": {"class": SamplerSelfRefineVideo, "name": "Sampler SelfRefineVideo"},
|
||||
"PlaySoundKJ": {"class": PlaySoundKJ, "name": "Play Sound KJ"},
|
||||
|
||||
#instance diffusion
|
||||
"CreateInstanceDiffusionTracking": {"class": CreateInstanceDiffusionTracking},
|
||||
"AppendInstanceDiffusionTracking": {"class": AppendInstanceDiffusionTracking},
|
||||
"DrawInstanceDiffusionTracking": {"class": DrawInstanceDiffusionTracking},
|
||||
|
||||
#lora
|
||||
"LoraExtractKJ": {"class": LoraExtractKJ, "name": "LoraExtractKJ"},
|
||||
"LoraReduceRankKJ": {"class": LoraReduceRank, "name": "LoraReduceRank"},
|
||||
|
||||
#tracks
|
||||
"GetTrackRange": {"class": GetTrackRange, "name": "Get Track Range"},
|
||||
"AddNoiseToTrackPath": {"class": AddNoiseToTrackPath, "name": "Add Noise To Track"},
|
||||
|
||||
# deprecated
|
||||
"PatchModelPatcherOrder": {"class": PatchModelPatcherOrder, "name": "Patch Model Patcher Order"},
|
||||
"TorchCompileModelFluxAdvanced": {"class": DeprecatedCompileNodeKJ, "name": "TorchCompileModelFluxAdvanced"},
|
||||
"TorchCompileLTXModel": {"class": DeprecatedCompileNodeKJ, "name": "TorchCompileLTXModel"},
|
||||
"TorchCompileCosmosModel": {"class": DeprecatedCompileNodeKJ, "name": "TorchCompileCosmosModel"},
|
||||
"TorchCompileModelHyVideo": {"class": DeprecatedCompileNodeKJ, "name": "TorchCompileModelHyVideo"},
|
||||
"TorchCompileModelQwenImage": {"class": DeprecatedCompileNodeKJ, "name": "TorchCompileModelQwenImage"},
|
||||
"TorchCompileModelWanVideo": {"class": DeprecatedCompileNodeKJ, "name": "TorchCompileModelWanVideo"},
|
||||
}
|
||||
|
||||
#ltxv
|
||||
try:
|
||||
from .nodes.ltxv_nodes import *
|
||||
NODE_CONFIG.update({
|
||||
"LTXVEnhanceAVideoKJ": {"class": LTXVEnhanceAVideoKJ, "name": "LTXV Enhance A Video KJ"},
|
||||
"LTXVAddGuideMulti": {"class": LTXVAddGuideMulti, "name": "LTXV Add Guide Multi"},
|
||||
"LTXVAddGuidesFromBatch": {"class": LTXVAddGuidesFromBatch, "name": "LTXV Add Guides From Batch"},
|
||||
"LTXVAudioVideoMask": {"class": LTXVAudioVideoMask, "name": "LTXV Audio Video Mask"},
|
||||
"LTX2_NAG": {"class": LTX2_NAG, "name": "LTX2 NAG"},
|
||||
"LTXVChunkFeedForward": {"class": LTXVChunkFeedForward, "name": "LTXV Chunk Feed Forward"},
|
||||
"LTX2SamplingPreviewOverride": {"class": LTX2SamplingPreviewOverride, "name": "LTX2 Sampling Preview Override"},
|
||||
"LTX2AudioLatentNormalizingSampling": {"class": LTX2AudioLatentNormalizingSampling, "name": "LTX2 Audio Latent Normalizing Sampling"},
|
||||
"LTXVImgToVideoInplaceKJ": {"class": LTXVImgToVideoInplaceKJ, "name": "LTXV Img To Video Inplace KJ"},
|
||||
"LTX2AttentionTunerPatch": {"class": LTX2AttentionTunerPatch, "name": "LTX2 Attention Tuner Patch"},
|
||||
"LTX2MemoryEfficientSageAttentionPatch": {"class": LTX2MemoryEfficientSageAttentionPatch, "name": "LTX2 Memory Efficient Sage Attention Patch"},
|
||||
"LTX2LoraLoaderAdvanced": {"class": LTX2LoraLoaderAdvanced, "name": "LTX2 Lora Loader Advanced"},
|
||||
})
|
||||
except Exception as e:
|
||||
logging.warning(f"KJNodes: LTXV nodes could not be imported. LTXV nodes will be unavailable. Error: {e}")
|
||||
|
||||
def generate_node_mappings(node_config):
|
||||
node_class_mappings = {}
|
||||
node_display_name_mappings = {}
|
||||
|
||||
for node_name, node_info in node_config.items():
|
||||
node_class_mappings[node_name] = node_info["class"]
|
||||
node_display_name_mappings[node_name] = node_info.get("name", node_info["class"].__name__)
|
||||
|
||||
return node_class_mappings, node_display_name_mappings
|
||||
|
||||
NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS = generate_node_mappings(NODE_CONFIG)
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
||||
|
||||
WEB_DIRECTORY = "./web"
|
||||
|
||||
from aiohttp import web
|
||||
from server import PromptServer
|
||||
from pathlib import Path
|
||||
|
||||
if hasattr(PromptServer, "instance"):
|
||||
try:
|
||||
# NOTE: we add an extra static path to avoid comfy mechanism
|
||||
# that loads every script in web.
|
||||
PromptServer.instance.app.add_routes(
|
||||
[web.static("/kjweb_async", (Path(__file__).parent.absolute() / "kjweb_async").as_posix())]
|
||||
)
|
||||
except:
|
||||
pass
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
[project]
|
||||
name = "comfyui-kjnodes"
|
||||
description = "Various quality of life -nodes for ComfyUI, mostly just visual stuff to improve usability."
|
||||
version = "1.3.9"
|
||||
license = {file = "LICENSE"}
|
||||
dependencies = ["pillow>=10.3.0", "color-matcher", "matplotlib"]
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/kijai/ComfyUI-KJNodes"
|
||||
# Used by Comfy Registry https://comfyregistry.org
|
||||
|
||||
[tool.comfy]
|
||||
PublisherId = "kijai"
|
||||
DisplayName = "ComfyUI-KJNodes"
|
||||
Icon = "https://avatars.githubusercontent.com/u/40791699"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user