HEL-892: document Flux person replacement with exact dual graph references
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/flux2_klein_图生图_人物迁移.json"
|
||||
): "827493e1dbfd639b0de588c951291f6ed84e27ee5432f9c2051ce4e1796e007b",
|
||||
(
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json"
|
||||
): "e43186103a41b78d2cd235334232812a60e65497191786821c5bb9a5d20e5798",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,150 @@
|
||||
"""Exact graph binding, all saved positions, dual scopes and closed eligibility."""
|
||||
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
import runpy
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS, canonical
|
||||
from calliope.comfyui.library import build_document
|
||||
from calliope.comfyui.source_reviews import review_for
|
||||
|
||||
REPO = Path(__file__).resolve().parents[2]
|
||||
OUT = REPO / "docs/hel-892/flux2-person-document-evidence"
|
||||
PATH = "example_ComfyUI_workflows/3-图像生成/Flux/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 x in p.strip("/").split("/"):
|
||||
obj = obj[int(x)] if isinstance(obj, list) else obj[x]
|
||||
return obj
|
||||
|
||||
|
||||
def doc(s=SOURCE, r=REVIEW):
|
||||
return build_document(PATH, s, None, None, [], r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
def test_each_saved_position_and_citation(f):
|
||||
assert canonical(pointer(SOURCE, f["pointer"])) == canonical(f["value"])
|
||||
assert type(pointer(SOURCE, f["pointer"])).__name__ == f["json_type"]
|
||||
assert "无widgets_values_named" in f["named_pointer"] and "named_value" not in f
|
||||
assert all(
|
||||
f[k] for k in ["label", "unit", "limits", "schema_default", "effect", "execution_note"]
|
||||
)
|
||||
if f["input_pointer"].startswith("/"):
|
||||
assert pointer(SOURCE, f["input_pointer"])["name"] == f["input_name"]
|
||||
for i in f["evidence"]:
|
||||
e = BLOCK["sources"][i]
|
||||
raw = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
@pytest.mark.parametrize("variant", ["source", "text"])
|
||||
def test_caller_rehash_cannot_expand_trust(f, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
if variant == "text":
|
||||
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
|
||||
else:
|
||||
p, _, key = f["pointer"].rpartition("/")
|
||||
pointer(s, p)[int(key)] = "forged"
|
||||
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
|
||||
assert not doc(s, r)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("i", [0, 1])
|
||||
@pytest.mark.parametrize("key", ["id", "inputs", "outputs", "widgets", "links"])
|
||||
def test_definition_mutations_fail_closed(i, key):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
s["definitions"]["subgraphs"][i][key] = "forged"
|
||||
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
|
||||
assert not doc(s, r)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
def test_exact_build_and_qualification():
|
||||
assert canonical(runpy.run_path(str(OUT / "build_definition.py"))["build"]()) == canonical(
|
||||
BLOCK
|
||||
)
|
||||
assert len(DEFINITIONS) == 59 and doc()["fixed_version"]["matched"]
|
||||
assert BLOCK["counts"]["saved_fields"] == 39 and BLOCK["counts"]["root_saved_fields"] == 14
|
||||
assert BLOCK["counts"]["source_notes"] == 0 and BLOCK["comments"] == []
|
||||
assert not doc()["status"]["doc_done"] and not doc()["status"]["exec_verified"]
|
||||
sys.path.insert(0, str(OUT))
|
||||
try:
|
||||
runpy.run_path(str(OUT / "verify_sources.py"))["main"]()
|
||||
finally:
|
||||
sys.path.remove(str(OUT))
|
||||
|
||||
|
||||
def test_graph_specific_chains_and_protocol_conflict():
|
||||
ns = {n["id"]: n for n in SOURCE["nodes"]}
|
||||
a, b = SOURCE["definitions"]["subgraphs"]
|
||||
inner = {n["id"]: n for n in a["nodes"]}
|
||||
assert ns[52]["widgets_values"] == [
|
||||
"original",
|
||||
1,
|
||||
1,
|
||||
"letterbox",
|
||||
"lanczos",
|
||||
"8",
|
||||
"height",
|
||||
1280,
|
||||
"#000000",
|
||||
]
|
||||
assert "links" not in ns[69]["outputs"][1] and "links" not in ns[70]["outputs"][1]
|
||||
assert ns[52]["outputs"][3]["links"] == ns[52]["outputs"][4]["links"] == []
|
||||
assert ns[43]["outputs"] == [{"localized_name": "images", "name": "images", "type": "IMAGE"}]
|
||||
assert inner[107]["widgets_values"] == ["full_encoder_small_decoder.safetensors"]
|
||||
assert inner[87]["properties"]["ver"] == "0.9.1" and inner[87]["widgets_values"] == [""]
|
||||
assert inner[113]["widgets_values"] == [
|
||||
"把图2的人物替换图1的人物,只替换人物及服装,同时保持图1场景、动作不变,场景光效一致"
|
||||
]
|
||||
assert inner[110]["widgets_values"] == inner[85]["widgets_values"] == ["lanczos", 1, 1]
|
||||
assert inner[103]["outputs"][1]["links"] == []
|
||||
assert ns[132]["outputs"][1]["links"] == []
|
||||
assert (
|
||||
len(ns[131]["properties"]["proxyWidgets"]) == 8
|
||||
and len(ns[132]["properties"]["proxyWidgets"]) == 1
|
||||
)
|
||||
assert len(ns[131]["inputs"]) == 6 and len(ns[132]["inputs"]) == 2
|
||||
edges = {x["id"]: x for x in a["links"]}
|
||||
for eid, src, dst in [
|
||||
(171, 108, 115),
|
||||
(172, 108, 109),
|
||||
(173, 108, 115),
|
||||
(174, 108, 109),
|
||||
(200, 126, 127),
|
||||
(199, 126, 125),
|
||||
(209, 127, 130),
|
||||
(210, 125, 128),
|
||||
(208, 129, 130),
|
||||
(207, 129, 128),
|
||||
]:
|
||||
assert (edges[eid]["origin_id"], edges[eid]["target_id"]) == (src, dst)
|
||||
assert [n["type"] for n in b["nodes"]] == [
|
||||
"RemoveBackground",
|
||||
"LoadBackgroundRemovalModel",
|
||||
"InvertMask",
|
||||
"JoinImageWithAlpha",
|
||||
]
|
||||
flow = "\n".join(BLOCK["flow"])
|
||||
for term in [
|
||||
"RETURN_TYPES=()",
|
||||
"第一再第二",
|
||||
"四尺寸覆盖",
|
||||
"1.0-",
|
||||
"不控制输出画布",
|
||||
"无LoRA/Comparer/历史列表",
|
||||
"881bc917",
|
||||
"foreground",
|
||||
]:
|
||||
assert term in flow
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"total": 155,
|
||||
"audit_scope": "current_delivery",
|
||||
"source_files": 156,
|
||||
"target_files": 155,
|
||||
"user_excluded": 1,
|
||||
"source_structure_purpose_partially_reviewed": 155,
|
||||
"full_documents_completed": 0,
|
||||
"files_with_selected_named_fields_reviewed": 41,
|
||||
"selected_named_fields_reviewed": 1217,
|
||||
"real_executions": 0,
|
||||
"states": {
|
||||
"pending_check": 16,
|
||||
"needs_conversion": 139
|
||||
},
|
||||
"named_values_preserved": 1217,
|
||||
"unnamed_widget_nodes": 3660,
|
||||
"semantic_batch_files": 139,
|
||||
"semantic_batch_without_named_fields": 114,
|
||||
"semantic_batch_named_fields": 490,
|
||||
"named_values_without_manual_field_review": 0,
|
||||
"named_values_without_verified_units_ranges_effects": 1217,
|
||||
"scope_limit": "人工结论与机械原值清单分开;源语义局部审校非完整说明定稿"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
........................................................................ [ 50%]
|
||||
.......................................................F.............. [100%]
|
||||
=================================== FAILURES ===================================
|
||||
______________________ test_exact_build_and_qualification ______________________
|
||||
|
||||
def test_exact_build_and_qualification():
|
||||
> assert canonical(runpy.run_path(str(OUT/'build_definition.py'))['build']())==canonical(BLOCK)
|
||||
E assert b'{"boundarie...mpty_list"}]}' == b'{"boundarie...mpty_list"}]}'
|
||||
E
|
||||
E At index 96752 diff: b'4' != b'1'
|
||||
E Use -v to get more diff
|
||||
|
||||
calliope-backend/tests/test_flux2_person_fixed_document.py:63: AssertionError
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-8931ab9b877c/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
|
||||
=========================== short test summary info ============================
|
||||
FAILED calliope-backend/tests/test_flux2_person_fixed_document.py::test_exact_build_and_qualification
|
||||
1 failed, 141 passed, 1 warning in 4.75s
|
||||
@@ -0,0 +1,9 @@
|
||||
........................................................................ [ 50%]
|
||||
...................................................................... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-8931ab9b877c/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
|
||||
142 passed, 1 warning in 5.08s
|
||||
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"fixed_count": 185,
|
||||
"fixed_paths": {
|
||||
"/api/workflows": 3,
|
||||
"/api/workflows/55": 4,
|
||||
"/api/workflows/56": 4,
|
||||
"/api/workflows/58": 3,
|
||||
"/api/workflows/57": 3,
|
||||
"/api/workflows/44": 3,
|
||||
"/api/workflows/53": 3,
|
||||
"/api/workflows/52": 3,
|
||||
"/api/workflows/51": 3,
|
||||
"/api/workflows/50": 3,
|
||||
"/api/workflows/49": 3,
|
||||
"/api/workflows/47": 3,
|
||||
"/api/workflows/48": 3,
|
||||
"/api/workflows/46": 3,
|
||||
"/api/workflows/45": 3,
|
||||
"/api/workflows/42": 3,
|
||||
"/api/workflows/41": 3,
|
||||
"/api/workflows/40": 3,
|
||||
"/api/workflows/39": 3,
|
||||
"/api/workflows/38": 3,
|
||||
"/api/workflows/37": 3,
|
||||
"/api/workflows/18": 3,
|
||||
"/api/workflows/20": 3,
|
||||
"/api/workflows/30": 3,
|
||||
"/api/workflows/32": 3,
|
||||
"/api/workflows/34": 3,
|
||||
"/api/workflows/33": 3,
|
||||
"/api/workflows/31": 3,
|
||||
"/api/workflows/29": 3,
|
||||
"/api/workflows/28": 3,
|
||||
"/api/workflows/27": 3,
|
||||
"/api/workflows/26": 3,
|
||||
"/api/workflows/17": 3,
|
||||
"/api/workflows/4": 3,
|
||||
"/api/workflows/15": 3,
|
||||
"/api/workflows/11": 3,
|
||||
"/api/workflows/3": 3,
|
||||
"/api/workflows/9": 3,
|
||||
"/api/workflows/16": 3,
|
||||
"/api/workflows/10": 3,
|
||||
"/api/workflows/23": 3,
|
||||
"/api/workflows/8": 3,
|
||||
"/api/workflows/22": 3,
|
||||
"/api/workflows/5": 3,
|
||||
"/api/workflows/6": 3,
|
||||
"/api/workflows/7": 3,
|
||||
"/api/workflows/19": 3,
|
||||
"/api/workflows/13": 3,
|
||||
"/api/workflows/12": 3,
|
||||
"/api/workflows/64": 3,
|
||||
"/api/workflows/62": 3,
|
||||
"/api/workflows/70": 3,
|
||||
"/api/workflows/1": 3,
|
||||
"/api/workflows/36": 3,
|
||||
"/api/workflows/35": 3,
|
||||
"/api/workflows/2": 3,
|
||||
"/api/workflows/25": 3,
|
||||
"/api/workflows/24": 3,
|
||||
"/api/workflows/21": 3,
|
||||
"/api/workflows/14": 3,
|
||||
"/api/settings": 1,
|
||||
"/api/workflows/156": 1,
|
||||
"/api/workflows/157": 1
|
||||
},
|
||||
"polling_count": 14,
|
||||
"polling_paths": {
|
||||
"/api/jobs": 14
|
||||
},
|
||||
"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,51 @@
|
||||
"""Rebind exact original texts for this graph only; no upstream execution."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
REF = ROOT / "docs/hel-892/flux2-person-reference"
|
||||
|
||||
|
||||
def main():
|
||||
rows = json.loads((REF / "new-sources.json").read_bytes())["sources"]
|
||||
for stem, keys in [
|
||||
("flux2-img", {"core"}),
|
||||
("flux2-clothing", {"negative"}),
|
||||
("flux2", {"frontend"}),
|
||||
]:
|
||||
origin = REF.parent / (stem + "-reference")
|
||||
for old in json.loads((origin / "sources.json").read_bytes())["sources"]:
|
||||
if old["id"] not in keys:
|
||||
continue
|
||||
e = dict(old)
|
||||
e.setdefault("identity_root", ".")
|
||||
e.setdefault("identity_key", e["id"])
|
||||
for key in ["local_file", "identity_root", "license_file"]:
|
||||
e[key] = os.path.relpath((origin / e[key]).resolve(), REF)
|
||||
rows.append(e)
|
||||
for e in rows:
|
||||
e.setdefault("identity_root", ".")
|
||||
e.setdefault("identity_key", e["id"])
|
||||
e["tree"] = (
|
||||
(REF / e["identity_root"] / (e["identity_key"] + "-commit.txt"))
|
||||
.read_text()
|
||||
.splitlines()[0]
|
||||
.removeprefix("tree ")
|
||||
)
|
||||
e["applicability"] = (
|
||||
"仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、fr"
|
||||
"ontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿"
|
||||
"主声明不赋予内部身份,UE/tab/恢复及安装未知。"
|
||||
)
|
||||
assert hashlib.sha256((REF / e["local_file"]).read_bytes()).hexdigest() == e["sha256"]
|
||||
(REF / "sources.json").write_text(
|
||||
json.dumps({"sources": rows, "upstream_executed": False}, ensure_ascii=False, indent=2)
|
||||
+ "\n"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,728 @@
|
||||
{
|
||||
"base": "89e37c198a53d2069ff6607673fbb19be61d0f68",
|
||||
"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_blocks_unchanged": 58,
|
||||
"drawer_css_unchanged": true,
|
||||
"drawer_whole_file_unchanged": true,
|
||||
"drawer_sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1",
|
||||
"conversion_rerun": false,
|
||||
"profiles_28_candidates_9_diffs_6": "unchanged"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,579 @@
|
||||
"Source-bound character replacement editorial text; never an execution prompt."
|
||||
|
||||
import ast
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
REPO = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "flux2-person-reference"
|
||||
PATHS = [("example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json")]
|
||||
|
||||
|
||||
def canonical(v):
|
||||
return json.dumps(v, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
|
||||
|
||||
|
||||
MEANING = {
|
||||
"70": (
|
||||
"第一原图ComfyUI_00150_.png/image,经144→52缩放→215→1"
|
||||
"31.image第一参考。MASK出口缺links键,不是null或[],没有已接遮罩证"
|
||||
"据;不读取图片内容。"
|
||||
),
|
||||
"69": (
|
||||
"第二原图ComfyUI_01759_.png/image,经219→132去背景定义→2"
|
||||
"20→131.image_1第二参考。MASK出口缺links键,不能据文件名判断人物内"
|
||||
"容或遮罩连接。"
|
||||
),
|
||||
"52": (
|
||||
"准确Layer881bc91790da6b907d3d28e5b91b295b9aef0"
|
||||
"6ee来自源aux仓库aining2022/ComfyUI_Swwan,不借89014d"
|
||||
"。保存original/1/1/letterbox/lanczos/字符串8/heigh"
|
||||
"t/1280/#000000。original取首图宽高比;两ratio分支的heigh"
|
||||
"t均令目标高=scale_to_length、宽=int(高×ratio),随后宽高各向"
|
||||
"上取整到8倍数。1/1仅custom分支使用。tensor2pil做clip/uint8"
|
||||
",图像转RGB丢弃alpha;letterbox按比例缩放并居中贴到background"
|
||||
"_color RGB底,非遮罩合成。仅静态说明,不试算实际尺寸/比例/像素;mask输入"
|
||||
"缺link,mask出口缺links,宽slot3/高slot4均links=[]未接,"
|
||||
"不能直接覆盖调度器。"
|
||||
),
|
||||
"43": (
|
||||
"131生成经217→43正式SaveImage,前缀Flux2-Klein。源声明一个i"
|
||||
"mages IMAGE出口(缺links),准确core0.9.2 RETURN_TYP"
|
||||
"ES=(),存在输出协议冲突,原样保留且转换/执行关闭。PNG output目录、递增文"
|
||||
"件名和ui.images仅静态代码参考,未证明成功、实际路径/history或透明效果。"
|
||||
),
|
||||
"131:102": "保存euler,SAMPLER→103;准确core0.8.2动态枚举仅静态阅读,不构造采样器。",
|
||||
"131:105": (
|
||||
"保存192921483949477/randomize,准确core0.8.2 seed"
|
||||
"默认0/UINT64范围与前端1.36.14生成后辅助分列。宿主只有代理没有具名保存;不"
|
||||
"运行钩子/种子/状态/缓存,不计算下一值、不保证复现。"
|
||||
),
|
||||
"131:106": (
|
||||
"保存Flux反斜杠flux-2-klein-9b-fp8.safetensors/def"
|
||||
"ault,直接→114.model,无LoRA。边界159来自宿主unet_name无外"
|
||||
"线;内部缓存与8代理分列。properties.models另写base模型名,不据文件"
|
||||
"名确认兼容、模型许可或安装。"
|
||||
),
|
||||
"131:107": (
|
||||
"VAE实际full_encoder_small_decoder.safetensors,"
|
||||
"三扇出148→104解码、204→126第一参考编码、212→129第二参考编码。准确0"
|
||||
".8.2动态枚举/文件解析/读取后构造并校验条件仅静态参考,不改为flux2-vae,不"
|
||||
"据名称认定家族、轻量效果、兼容或已安装。宿主vae_name经161,无外线/保存。"
|
||||
),
|
||||
"131:109": (
|
||||
"保存1024/1024/1;109空latent才是103.latent_image采样"
|
||||
"起点。108宽slot0经172覆盖width、高slot1经174覆盖height;b"
|
||||
"atch_size缓存1未连线。参考latent只进条件,不是像素拼接或图生图采样起点。"
|
||||
),
|
||||
"131:110": (
|
||||
"第一参考52→131.image→边界175→110,保存lanczos/JSON in"
|
||||
"t1/JSON int1;准确0.8.2 megapixels为FLOAT默认1.0范围"
|
||||
"0.01~16步0.01,resolution_steps INT默认1范围1~256。"
|
||||
"total=megapixels×1024×1024;scale_by=sqrt(tot"
|
||||
"al/(宽×高));宽高分别round(原边×scale_by/resolution_s"
|
||||
"teps)×resolution_steps,再common_upscale crop="
|
||||
"disabled。lanczos经PIL uint8、返回原device/dtype;无"
|
||||
"独立透明合成/去背景分支,通道能否被PIL处理依输入,不能保证精确百万像素、尺寸或比例。"
|
||||
"110同时→108读尺寸与126第一参考编码。"
|
||||
),
|
||||
"131:85": (
|
||||
"第二参考69→132去背景→131.image_1→边界186→85,保存lanczos"
|
||||
"/JSON int1/int1,准确0.8.2同110公式及FLOAT/default/"
|
||||
"通道条件。85只供129第二参考编码,不连108、不控制输出画布;不保证与110同尺寸或"
|
||||
"Alpha保留、比例及精确像素数。"
|
||||
),
|
||||
"131:111": (
|
||||
"保存qwen_3_8b_fp8mixed.safetensors/flux2/defau"
|
||||
"lt,151供113正向、189供87负向。准确core0.8.2 CLIP schem"
|
||||
"a;宿主clip_name经160无外线,内部缓存与代理分列。元数据模型/目录仅作者引用"
|
||||
",不证明dtype、设备、安装或兼容。"
|
||||
),
|
||||
"131:113": (
|
||||
"完整中文正向缓存:把图2的人物替换图1的人物,只替换人物及服装,同时保持图1场景、动作不"
|
||||
"变,场景光效一致。113→127先追加126第一参考,再→130追加129第二参考→11"
|
||||
"4正向。宿主text经162无外线且保存[];作者意图不保证人物身份、服装、场景光照/动"
|
||||
"作或未编辑像素一致。"
|
||||
),
|
||||
"131:87": (
|
||||
"空字符串负向完整保留,不制造负向词;本节点独立core0.9.1,不继承宿主0.8.2。"
|
||||
"87→125先追加126第一参考,再→128追加129第二参考→114负向;空串不等于无"
|
||||
"负向条件。"
|
||||
),
|
||||
"131:114": (
|
||||
"保存JSON int1,准确0.8.2 CFG schema FLOAT默认8.0,模型"
|
||||
"直接来自106,正向130、负向128→103.guider;无LoRA/Compare"
|
||||
"r/历史列表,不制造这些参数。"
|
||||
),
|
||||
"131:115": (
|
||||
"保存steps4/width1024/height1024;108读110第一参考实际宽"
|
||||
"slot0经171覆盖width、高slot1经173覆盖height,同时覆盖109两"
|
||||
"处1024共四缓存。第二参考85不控制输出画布;不求sigmas或实际尺寸。"
|
||||
),
|
||||
"132:14": (
|
||||
"保存birefnet.safetensors,准确core0.28.3已找到LoadBa"
|
||||
"ckgroundRemovalModel定义/BackgroundRemovalExte"
|
||||
"nsion注册,非旧图0.19.3未知结论。动态background_removal目录"
|
||||
"文件列表排序,无显式默认/固定成员;路径解析后load、None时抛错。准确load先读"
|
||||
"state_dict,需含bb.layers.1.blocks.0.attn.relat"
|
||||
"ive_position_index才选择birefnet.json,否则None;内部"
|
||||
"模型构造/加载和encode_image GPU、预处理/逐批/插值/sigmoid仅静"
|
||||
"态代码,不执行或认定M极性。14→13背景模型;宿主bg_removal_name经边界"
|
||||
"12无外线/保存。仅静态读取源码,文件名不证明模型存在、兼容、许可、下载资格或去背景成功"
|
||||
"。"
|
||||
),
|
||||
}
|
||||
EMPTY = {
|
||||
"133": "Label无提供方/版本,不因rgthree字样赋予身份或下载字体。",
|
||||
"134": "第二Label同样无身份,布局属性独立保留。",
|
||||
"131": (
|
||||
"宿主widgets_values=[]与定义widgets="
|
||||
"[]分开;8代理6输入,四模型/提示口无外线、image与i"
|
||||
"mage_1有外线,不造promoted值。"
|
||||
),
|
||||
"132": (
|
||||
"宿主widgets_values=[]与第二定义widget"
|
||||
"s=[]分开;1代理2输入,mask输出links=[]未接"
|
||||
",不能把内部原MASK出口当主图已接遮罩。"
|
||||
),
|
||||
"131:103": (
|
||||
"109空latent采样起点;第一LATENT slot0经"
|
||||
"147→104解码;第二LATENT denoised_ou"
|
||||
"tput links=[]未接,不冒充已取得去噪产物。"
|
||||
),
|
||||
"131:104": "103第一LATENT与107.VAE→104解码,定义输出153→131→43正式保存,无预览比较支路。",
|
||||
"131:108": (
|
||||
"110第一参考→108 GetImageSize,准确0.8.2宽slot0/高slot"
|
||||
"1分别覆盖115与109四1024缓存;batch_size slot2 links=["
|
||||
"]未接。"
|
||||
),
|
||||
"131:126": "110第一图与107.VAE→126,200到127正向、199到125负向,分别先追加第一参考。",
|
||||
"131:129": "85第二图与107.VAE→129,208到130正向、207到128负向,分别再追加第二参考。",
|
||||
"131:127": (
|
||||
"113正向先append126第一参考latent,再209"
|
||||
"→130;准确reference_latents原列表+[l"
|
||||
"atent],非像素拼接。"
|
||||
),
|
||||
"131:125": "87空负向先append126第一参考latent,再210→128;负向同样有参考,不能省略。",
|
||||
"131:130": "127正向已有第一参考,再append129第二参考,213→114.positive;顺序第一再第二。",
|
||||
"131:128": "125负向已有第一参考,再append129第二参考,214→114.negative;两条append链独立。",
|
||||
"132:13": (
|
||||
"准确core0.28.3 RemoveBackground已定义/注册,调用bg_rem"
|
||||
"oval_model.encode_image(image)输出MASK;原69同时经边"
|
||||
"界5供13、7供16,不读取媒体。不从类名或schema的foreground文字推定运"
|
||||
"行M的前景/背景极性。13原MASK既经4→15也经11输出定义mask;主图132.m"
|
||||
"ask=[]未接。"
|
||||
),
|
||||
"132:15": ("准确0.28.3 InvertMask.execute是1.0-mask;13.MASK→15→16.alpha。未运行、不猜M极性。"),
|
||||
"132:16": (
|
||||
"准确0.28.3 JoinImageWithAlpha先bilinear resize_"
|
||||
"mask(alpha.to(image),image.shape[1:]),再1.0-,"
|
||||
"按max批次repeat,cat(image[..., :3],alpha.unsque"
|
||||
"eze(-1))。15已反转一次,Join内部另反转;13原M与经15/16的Alpha"
|
||||
"链分开,不靠代数简化声称实际极性/透明成功。16经8输出IMAGE→132→131第二参"
|
||||
"考;不保证通道/批次/透明效果或未编辑像素不变。"
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
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, symbol=None, span=None, claim="本图准确版本静态参考"):
|
||||
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"]
|
||||
if symbol:
|
||||
node = next(
|
||||
n
|
||||
for n in ast.walk(ast.parse(data))
|
||||
if isinstance(n, (ast.ClassDef, ast.FunctionDef, ast.AsyncFunctionDef))
|
||||
and n.name == symbol
|
||||
)
|
||||
span = [node.lineno, node.end_lineno]
|
||||
span = span or [1, len(data.decode().splitlines())]
|
||||
sources.append(
|
||||
dict(
|
||||
e,
|
||||
local_file="../flux2-person-reference/" + e["local_file"],
|
||||
lines=span,
|
||||
claim=claim,
|
||||
)
|
||||
)
|
||||
return len(sources) - 1
|
||||
|
||||
refs = {}
|
||||
for cls, file in [
|
||||
("CLIPTextEncode", "nodes.py"),
|
||||
("VAELoader", "nodes.py"),
|
||||
("UNETLoader", "nodes.py"),
|
||||
("CLIPLoader", "nodes.py"),
|
||||
("VAEEncode", "nodes.py"),
|
||||
("VAEDecode", "nodes.py"),
|
||||
("CFGGuider", "comfy_extras/nodes_custom_sampler.py"),
|
||||
("RandomNoise", "comfy_extras/nodes_custom_sampler.py"),
|
||||
("KSamplerSelect", "comfy_extras/nodes_custom_sampler.py"),
|
||||
("SamplerCustomAdvanced", "comfy_extras/nodes_custom_sampler.py"),
|
||||
("EmptyFlux2LatentImage", "comfy_extras/nodes_flux.py"),
|
||||
("Flux2Scheduler", "comfy_extras/nodes_flux.py"),
|
||||
("ReferenceLatent", "comfy_extras/nodes_edit_model.py"),
|
||||
]:
|
||||
refs[cls] = [cite("core", file, cls)]
|
||||
refs["LoadImage"] = [cite("save", "nodes.py", "LoadImage")]
|
||||
refs["SaveImage"] = [cite("save", "nodes.py", "SaveImage")]
|
||||
refs["ImageScaleToTotalPixels"] = [
|
||||
cite("scale", "comfy_extras/nodes_post_processing.py", "ImageScaleToTotalPixels"),
|
||||
cite("scale", "comfy/utils.py", "lanczos"),
|
||||
cite("scale", "comfy/utils.py", "common_upscale"),
|
||||
]
|
||||
refs["GetImageSize"] = [cite("scale", "comfy_extras/nodes_images.py", "GetImageSize")]
|
||||
refs["LayerUtility: ImageScaleByAspectRatio V2"] = [
|
||||
cite("layer", "image_scale_by_aspect_ratio_v2.py", "ImageScaleByAspectRatioV2")
|
||||
]
|
||||
for sym in ["fit_resize_image", "num_round_up_to_multiple", "tensor2pil", "pil2tensor"]:
|
||||
refs["LayerUtility: ImageScaleByAspectRatio V2"].append(
|
||||
cite("layer", "layerstyle_utils.py", sym)
|
||||
)
|
||||
for cls, file in [
|
||||
("LoadBackgroundRemovalModel", "nodes_bg_removal.py"),
|
||||
("RemoveBackground", "nodes_bg_removal.py"),
|
||||
("InvertMask", "nodes_mask.py"),
|
||||
("JoinImageWithAlpha", "nodes_compositing.py"),
|
||||
]:
|
||||
refs[cls] = [cite("background", "comfy_extras/" + file, cls)]
|
||||
cite("background", "comfy_extras/nodes_bg_removal.py", "BackgroundRemovalExtension")
|
||||
cite("background", "comfy_extras/nodes_compositing.py", "resize_mask")
|
||||
cite("background", "comfy/bg_removal_model.py")
|
||||
cite(
|
||||
"background",
|
||||
"nodes.py",
|
||||
span=[2375, 2516],
|
||||
claim="准确0.28.3额外节点加载/注册范围,绑定本图背景定义",
|
||||
)
|
||||
cite(
|
||||
"layer",
|
||||
"__init__.py",
|
||||
span=[1, 58],
|
||||
claim="aux仓库准确完整提交的模块导入/节点映射,非仅同名",
|
||||
)
|
||||
cite(
|
||||
"frontsub",
|
||||
"src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
span=[226, 340],
|
||||
claim="准确1.36.14 configure边界及连接widget恢复",
|
||||
)
|
||||
cite(
|
||||
"frontsub",
|
||||
"src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
span=[606, 631],
|
||||
claim="准确1.36.14 serialize先同步相连widget",
|
||||
)
|
||||
cite(
|
||||
"frontend",
|
||||
"src/lib/litegraph/src/LGraphNode.ts",
|
||||
span=[778, 929],
|
||||
claim="父configure/serialize_widgets/serialize=false条件",
|
||||
)
|
||||
cite(
|
||||
"frontend",
|
||||
"src/scripts/widgets.ts",
|
||||
span=[53, 281],
|
||||
claim="生成后辅助控制与randomize初始值,仅读不运行",
|
||||
)
|
||||
negative = cite("negative", "nodes.py", "CLIPTextEncode")
|
||||
for e in manifest:
|
||||
if e["id"] == "frontend":
|
||||
# All frontend source and lock/license originals remain individually bound.
|
||||
cite(
|
||||
e["id"],
|
||||
e["file"],
|
||||
span=[1, min(len((REF / e["local_file"]).read_text().splitlines()), 45)],
|
||||
claim=(
|
||||
"仅本图准确frontend1.36.14与锁定依赖/许可,序"
|
||||
"列化/seed规则需对应原文全文;UE/tab目标恢复未知"
|
||||
),
|
||||
)
|
||||
# Reuse schema descriptions only after matching the exact implementation above.
|
||||
reviews = json.loads(
|
||||
subprocess.check_output(
|
||||
[
|
||||
"git",
|
||||
"show",
|
||||
(
|
||||
"89e37c198a53d2069ff6607673fbb19be61d0f68:cal"
|
||||
"liope-backend/src/calliope/comfyui/source_re"
|
||||
"views.json"
|
||||
),
|
||||
],
|
||||
cwd=REPO,
|
||||
)
|
||||
)
|
||||
common = {}
|
||||
for r in reviews.values():
|
||||
for f in r.get("fixed_version_document", {}).get("fields", []):
|
||||
common[f["class_type"], f["field"]] = f
|
||||
names = {
|
||||
"LoadImage": ["image", "upload"],
|
||||
"SaveImage": ["filename_prefix"],
|
||||
"LayerUtility: ImageScaleByAspectRatio V2": [
|
||||
"aspect_ratio",
|
||||
"proportional_width",
|
||||
"proportional_height",
|
||||
"fit",
|
||||
"method",
|
||||
"round_to_multiple",
|
||||
"scale_to_side",
|
||||
"scale_to_length",
|
||||
"background_color",
|
||||
],
|
||||
"RandomNoise": ["noise_seed", "control_after_generate"],
|
||||
"UNETLoader": ["unet_name", "weight_dtype"],
|
||||
"VAELoader": ["vae_name"],
|
||||
"EmptyFlux2LatentImage": ["width", "height", "batch_size"],
|
||||
"ImageScaleToTotalPixels": ["upscale_method", "megapixels", "resolution_steps"],
|
||||
"CLIPLoader": ["clip_name", "type", "device"],
|
||||
"CLIPTextEncode": ["text"],
|
||||
"CFGGuider": ["cfg"],
|
||||
"Flux2Scheduler": ["steps", "width", "height"],
|
||||
"KSamplerSelect": ["sampler_name"],
|
||||
"LoadBackgroundRemovalModel": ["bg_removal_name"],
|
||||
}
|
||||
fields = []
|
||||
empty = []
|
||||
boundaries = []
|
||||
flow = []
|
||||
scopes = [("", g, None)] + [
|
||||
(f"/definitions/subgraphs/{i}", s, 131 + i)
|
||||
for i, s in enumerate(g["definitions"]["subgraphs"])
|
||||
]
|
||||
for prefix, graph, host in scopes:
|
||||
for i, n in enumerate(graph["nodes"]):
|
||||
ptr = f"{prefix}/nodes/{i}"
|
||||
display = str(n["id"]) if host is None else f"{host}:{n['id']}"
|
||||
effect = MEANING.get(display, EMPTY.get(display))
|
||||
assert effect, display
|
||||
flow.append(effect)
|
||||
flow.append(
|
||||
f"{display} 独立源属性 " + json.dumps(n.get("properties", {}), ensure_ascii=False)
|
||||
)
|
||||
if not n.get("widgets_values"):
|
||||
state = "missing" if "widgets_values" not in n else "empty_list"
|
||||
empty.append(
|
||||
dict(
|
||||
node_id=display,
|
||||
class_type=n["type"],
|
||||
pointer=ptr,
|
||||
scope=prefix or "root",
|
||||
state=state,
|
||||
effect=(
|
||||
"源缺widgets_values键;"
|
||||
if state == "missing"
|
||||
else "源widgets_values=[]零位置;"
|
||||
)
|
||||
+ effect,
|
||||
)
|
||||
)
|
||||
continue
|
||||
for j, (name, v) in enumerate(zip(names[n["type"]], n["widgets_values"], strict=True)):
|
||||
previous = common.get((n["type"], name), {})
|
||||
f = {
|
||||
k: copy.deepcopy(previous[k])
|
||||
for k in ["label", "unit", "schema_default", "limits"]
|
||||
if k in previous
|
||||
}
|
||||
inp = next(
|
||||
(k for k, x in enumerate(n.get("inputs", [])) if x["name"] == name), None
|
||||
)
|
||||
aux = name in ["upload", "control_after_generate"]
|
||||
linked = not aux and inp is not None and n["inputs"][inp].get("link") is not None
|
||||
evidence = refs[n["type"]]
|
||||
if display == "131:87":
|
||||
evidence = [negative]
|
||||
if display == "132:14":
|
||||
f.update(
|
||||
label="背景移除模型引用",
|
||||
schema_default="无显式default;动态排序文件列表",
|
||||
limits="background_removal动态成员,路径解析/load及None报错条件;模型/素材/许可/安装未知",
|
||||
unit="模型引用",
|
||||
)
|
||||
f.update(
|
||||
node_id=display,
|
||||
definition_node_id=str(n["id"]),
|
||||
scope=prefix or "root",
|
||||
class_type=n["type"],
|
||||
field=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=n["inputs"][inp]["name"] if inp is not None else None,
|
||||
type=n["inputs"][inp]["type"] if inp is not None else "前端辅助",
|
||||
role="frontend_reference_only"
|
||||
if aux
|
||||
else "linked_saved_cache"
|
||||
if linked
|
||||
else "saved_layout_reference",
|
||||
effect=effect,
|
||||
evidence=evidence,
|
||||
execution_note=(
|
||||
"准确默认、源JSON现值、外线覆盖和宿主代理分列;目标安装/"
|
||||
"许可/目录/恢复/模型素材兼容与效果未知,保持停用,不新增转"
|
||||
"换或执行资格。"
|
||||
),
|
||||
)
|
||||
if n["type"] == "LayerUtility: ImageScaleByAspectRatio V2":
|
||||
f["limits"] = f["limits"].replace(
|
||||
";仅89014d参考假设,源版本未知",
|
||||
";仅准确881bc917 aux仓库参考,cnr提供方差异保留",
|
||||
)
|
||||
if name == "scale_to_length":
|
||||
f["unit"] = "像素INT(当前height;total_pixel分支另为千像素)"
|
||||
if display == "131:105" and name == "noise_seed":
|
||||
f["schema_default"] = "0"
|
||||
if display == "131:105" and name == "control_after_generate":
|
||||
f["limits"] = (
|
||||
"准确frontend1.36.14 fixed/increm"
|
||||
"ent/decrement/randomize,仅前端辅助,"
|
||||
"不运行钩子或计算种子"
|
||||
)
|
||||
if n["type"] == "CLIPTextEncode":
|
||||
f.update(
|
||||
label="完整中文正向缓存" if display == "131:113" else "空串负向缓存",
|
||||
schema_default="无显式default;保存文本不冒充默认",
|
||||
limits=(
|
||||
"准确core0.8.2 STRING multiline/dynamicPrompts"
|
||||
if display == "131:113"
|
||||
else "准确core0.9.1 STRING multiline=True"
|
||||
)
|
||||
+ ";只读原文,不执行指令",
|
||||
unit="编码文本",
|
||||
)
|
||||
fields.append(f)
|
||||
flow.extend(
|
||||
("根物理边 " if not prefix else prefix + " 物理边 ") + json.dumps(e, ensure_ascii=False)
|
||||
for e in graph["links"]
|
||||
)
|
||||
if prefix:
|
||||
h = next(n for n in g["nodes"] if n["id"] == host)
|
||||
boundaries.append(
|
||||
dict(
|
||||
scope=prefix,
|
||||
**{
|
||||
k: graph[k]
|
||||
for k in ["id", "inputNode", "outputNode", "inputs", "outputs", "widgets"]
|
||||
},
|
||||
)
|
||||
)
|
||||
boundaries.append(
|
||||
dict(
|
||||
host_pointer=f"/nodes/{g['nodes'].index(h)}",
|
||||
host_saved=h["widgets_values"],
|
||||
proxyWidgets=h["properties"]["proxyWidgets"],
|
||||
inputs=h["inputs"],
|
||||
effect=f"宿主{host}仅声明,不赋予内部身份;空保存、代理和边界分列,不造有效值。",
|
||||
)
|
||||
)
|
||||
assert len(fields) == 39 and sum(f["scope"] == "root" for f in fields) == 14
|
||||
overview = (
|
||||
"这张图希望把第二图的人物及服装替换到第一图,保持第一图场景、动作和光效:第一图先缩放,第"
|
||||
"二图先去背景,两参考依次加入正负条件,再从空latent生成并正式保存。人物、服装与场景"
|
||||
"保持只是作者意图,实际效果尚未验证。"
|
||||
)
|
||||
flow.insert(
|
||||
0,
|
||||
(
|
||||
"根8节点5边;第一定义21节点36含边界边;第二定义4节点8边,全mode0。根14+第"
|
||||
"一定义24+第二定义1=39标量,无Note/具名保存;两个Label缺键、两个空宿主和"
|
||||
"内部[]及定义widgets=[]分开。"
|
||||
),
|
||||
)
|
||||
flow.extend(
|
||||
[
|
||||
(
|
||||
"第一定义8代理6输入、第二定义1代理2输入,跨作用域相同ID"
|
||||
"/UUID不合并。无LoRA/Comparer/历史列表,不"
|
||||
"制造这些字段。"
|
||||
),
|
||||
(
|
||||
"原件cnr_id为comfyui_layerstyle但aux_id为aining202"
|
||||
"2/ComfyUI_Swwan;完整881bc917对象仅在aux仓库取得,LayerS"
|
||||
"tyle仓库精确提交获取失败,身份差异保留,不以同名等同提供方。"
|
||||
),
|
||||
(
|
||||
"前端准确1.36.14、锁文件与同树代码仅绑定本图;SubgraphNode.confi"
|
||||
"gure恢复边界/相连widget、serialize前同步与serialize_wid"
|
||||
"gets/serialize=false条件仅静态说明;8/1代理不证明保存或目标恢复。"
|
||||
"UE7.5.2/7.7/7.8和tab实现未知,不模拟回填。"
|
||||
),
|
||||
(
|
||||
"常见问题:52宽高出口未接;实际四尺寸覆盖源自110→108,第二图不控制画布。43输出"
|
||||
"声明与准确0.9.2冲突,保留并关闭;MASK缺键、空列表、反转及Alpha链不能视为已"
|
||||
"证明透明或局部编辑。"
|
||||
),
|
||||
]
|
||||
)
|
||||
flow.extend("原定义边界/宿主声明 " + json.dumps(x, ensure_ascii=False) for x in boundaries)
|
||||
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="仅参考:目标安装/恢复、模型/素材/许可与实际人物迁移效果未核;43输出协议冲突保留,停用且转换关闭。",
|
||||
user_overview=overview,
|
||||
versions=[
|
||||
f"{e['id']} {e['tag']} commit {e['commit']} tree {e['tree']};许可{e['license_file']}"
|
||||
for e in {e["id"]: e for e in manifest}.values()
|
||||
]
|
||||
+ [
|
||||
(
|
||||
"旧58块2238位置+66注释逐对象冻结;local_fil"
|
||||
"e以docs/hel-892/flux2-person-do"
|
||||
"cument-evidence为基准。"
|
||||
)
|
||||
],
|
||||
counts=dict(
|
||||
saved_fields=39,
|
||||
root_saved_fields=14,
|
||||
internal_saved_fields=25,
|
||||
linked_saved_fields=sum(f["role"] == "linked_saved_cache" for f in fields),
|
||||
frontend_only=sum(f["role"] == "frontend_reference_only" for f in fields),
|
||||
source_nodes=33,
|
||||
root_nodes=8,
|
||||
internal_nodes=25,
|
||||
physical_edges=49,
|
||||
source_notes=0,
|
||||
history_objects=0,
|
||||
final_scalars=0,
|
||||
final_prompt_constructed=False,
|
||||
),
|
||||
fields=fields,
|
||||
sources=sources,
|
||||
comments=[],
|
||||
flow=flow,
|
||||
flow_evidence=list(range(len(sources))),
|
||||
zero_saved_nodes=empty,
|
||||
boundaries=boundaries,
|
||||
steps=[
|
||||
overview,
|
||||
"阅读1:核对39位置原值/类型、完整正向与空负向、模型异名、两个独立子图及代理;仅读文本,不打开媒体/链接。",
|
||||
(
|
||||
"阅读2:第一图尺寸覆盖四缓存、正负分别先第一再第二参考、空l"
|
||||
"atent起点、背景模型/Invert/Join双反转链与正"
|
||||
"式保存;不试算尺寸或推定M极性。"
|
||||
),
|
||||
(
|
||||
"阅读3:保持停用、未检查和空时间戳;155完整定稿及必要实跑"
|
||||
"未完成,全量审核后才发布;不构造prompt、不执行上游/模"
|
||||
"型/种子/GPU/媒体,不连接目标或下载。"
|
||||
),
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,601 @@
|
||||
{
|
||||
"base": "89e37c198a53d2069ff6607673fbb19be61d0f68",
|
||||
"files": [
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"purpose": "增加本图代码拥有定义摘要白名单;保持旧58摘要不变",
|
||||
"sha256": "1abab05931b0287092da14446babe4206cc1c54ad5ca45abe7b274e7823b62bb",
|
||||
"bytes": 14817
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
|
||||
"purpose": "加入本图39保存位置、双定义边界、中文流程、准确来源;旧58对象冻结",
|
||||
"sha256": "ef5206cef39c4b4e19f4056fdad84a63de6471f4302e7fc436e749e1ad7548b5",
|
||||
"bytes": 7954366
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_flux2_person_fixed_document.py",
|
||||
"purpose": "逐位置/调用方重算拒绝/双定义变更/具体链与输出冲突专项测试",
|
||||
"sha256": "bd445a1fd18d6134168db057593df55e4c1e24ad653e435ad1c5939143247a74",
|
||||
"bytes": 5818
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/Flux人物迁移固定参考中文说明.md",
|
||||
"purpose": "实际中文详情或本批交付/开发记录",
|
||||
"sha256": "3e70cf72f27fa826c9a6115596ffbfd20176b72fbfd6b21b57a8d4da25be604b",
|
||||
"bytes": 125142
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/actual-flux2_klein_图生图_人物迁移.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "c469708cf50203f8329afca3c7fdceb50b170aa07429dd68b9644801fc07b6ee",
|
||||
"bytes": 213556
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/audit-summary.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a",
|
||||
"bytes": 797
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/backend-development.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "28547629027f9e2d658fd969849bdc9bc74793a6b29005348a2dc855a278081d",
|
||||
"bytes": 1552
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/backend-final.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "f92dd96bb5999e9a0382c540825d1cbd5e122ca39454504d5e71f79d175d52a7",
|
||||
"bytes": 800
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/backend-request-counts.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "217451a9015a3758ee40337c66c11e08e5b5a172e4acd429f7fddd50eca19fe5",
|
||||
"bytes": 2112
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/bind_sources.py",
|
||||
"purpose": "只重绑本图准确原文及独立身份",
|
||||
"sha256": "70c57f394f8f3dd9ebc40e98c8e49d4ddb31eabd57fb4375619960b3e4924fd7",
|
||||
"bytes": 1850
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/boundaries.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "8273720a6ef7e91ef219d0ba483c9fa7e3beef4fc22a0de56c4d6a3dff8234cc",
|
||||
"bytes": 38619
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/browser-results.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "52dcdc22c9d463b8b97f6d9c6722cdcbbfe3278aaf0a7d25cf96c4731cf21b99",
|
||||
"bytes": 150641
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/build_definition.py",
|
||||
"purpose": "按本图源字节、准确源码构建39项中文定义;不构造prompt",
|
||||
"sha256": "0415d15dab0bdd4c039e9d104e9d9727dd723821ac4a6580ec3991dd5fd7e8fd",
|
||||
"bytes": 27659
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/collect_browser.py",
|
||||
"purpose": "收集GET路径账和浏览报告,独立核端口释放",
|
||||
"sha256": "485a3e754736e35b0c7325713cfdec7d042cbe77cdd74cc1a62c55b745ad16ef",
|
||||
"bytes": 3263
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/definition-0.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "609bb408f5b0cceec94878a891eab7b1d7833e0ce2bb820e19e65c8676b5ee03",
|
||||
"bytes": 165650
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/delivery-summary.md",
|
||||
"purpose": "实际中文详情或本批交付/开发记录",
|
||||
"sha256": "e733e1e8fae5740ec0839d53bccfb2e1a198254fecd753b642c519a641af8e5c",
|
||||
"bytes": 2582
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/development-notes.md",
|
||||
"purpose": "实际中文详情或本批交付/开发记录",
|
||||
"sha256": "1e0b09ffb6bc173023e5ee780d45c0d5edaa3f5659399415b272fa18a8ea7de0",
|
||||
"bytes": 1503
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/development-ruff.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "70732397ec25ded4f3203f6019d8deabd3d995e917acf226776d35024b1d98c3",
|
||||
"bytes": 98932
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/fetch_sources.py",
|
||||
"purpose": "按准确tag/完整提交获取必要代码和许可,未运行上游",
|
||||
"sha256": "816a0a4d462654fed0024a6b832ecdf9a3bfbe1b6509f7d7043d7ce8aedd9949",
|
||||
"bytes": 4816
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/fixed-source-index.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "0d5bc8f0d3ead74170f78626510831adc28c98f4276d122ff465ddec62879679",
|
||||
"bytes": 64008
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/frontend-build.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "9e006b85120caff1256ce8660dbd44571e9a800c8bdd0babba8f98aa936ae089",
|
||||
"bytes": 24326
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/frozen-resource-check.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "d8ee0881e527ea467072137eae613ac9aff77452e1fca324a1c8d36dc832370e",
|
||||
"bytes": 40348
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/import-protection.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "c5772c9a502018697e438a040bf99afc304a3f44cd2b6084fd68ae8957d376c0",
|
||||
"bytes": 1270
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/independent-inventory.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "02b79e4fc5e0d1c2600fc1f10a977ef5173eadd1d55cc660e00ce48c9e25eff2",
|
||||
"bytes": 19274
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/inventory.py",
|
||||
"purpose": "独立源原字节/两定义/保存位置与缺键盘点",
|
||||
"sha256": "57433812d2b15272ad69f329467818f3397928ea149976e2544d3cc1054d8390",
|
||||
"bytes": 3162
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/js-syntax.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"bytes": 0
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/package-build.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "c00444fef525c4c1ed8a45e13530a1c95be11554e0ee19ff95f40e5dab717cee",
|
||||
"bytes": 211
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/package-check.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "7bdf441a078a1221daaae4829a5991532be557251551a37bc07d1ab184f6e6ab",
|
||||
"bytes": 550
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/pins.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "203edd21714d6cbb58ed4bbaa534f0e309eb69dfb2530abf08f35f1fac5f4fff",
|
||||
"bytes": 162
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/ports-independent.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "1e487821f761ab96db779fb3b6fb5e5411005f9027f12a880a779aefb23c50bc",
|
||||
"bytes": 165
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/pr-before.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "55c01ff4fc95b95e4c6d86ae296cd6c845f9f455943dd5cb96db11ae6f83b9ce",
|
||||
"bytes": 6949
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/rebuild.py",
|
||||
"purpose": "基于真实上批HEAD仅加本图说明并维护代码摘要",
|
||||
"sha256": "39f7845370125cbea7cf77bf11727a0b04ca3d7171c679dda36eb97d59b96a12",
|
||||
"bytes": 2457
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/recompute.py",
|
||||
"purpose": "真实旧代码隔离库/29列/回退/冻结/审计/包资源验证",
|
||||
"sha256": "4e0b7d49b4169d000a7aa71b2b05246f224501c62061041ebe98d06307a3407a",
|
||||
"bytes": 13767
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/recompute.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "3661dd37231c11a31a63573bee50640145a8c423cec5241d6fa55f4292a689f0",
|
||||
"bytes": 263
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/render_report.py",
|
||||
"purpose": "输出实际中文Markdown和字段/来源索引",
|
||||
"sha256": "424da421475514c2850d368c96de7d9a5273ec94cf94b6737ba2b35b61f9a689",
|
||||
"bytes": 4677
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/repeat.py",
|
||||
"purpose": "双次定义与渲染确定性比较",
|
||||
"sha256": "bccae53b3932159ef7fc53ec5c160188b715889da32af65508cbc3ed9a39a6e2",
|
||||
"bytes": 1310
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/repeatability.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "af986bc2729c0546d89ac0ec18fe4bdf64932a7db8da7fa27c2bd31b0a826e81",
|
||||
"bytes": 417
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/review-delta.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "ad412350ca19c5b09fa8bfb8eb734414d6d749773bb82c81dc8445bc04e8476f",
|
||||
"bytes": 385
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/ruff-check.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "82b3e6a6c090a57601d22943bd23fca9218d1031dbe5a7b754092f9a156b4f18",
|
||||
"bytes": 19
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/ruff-format.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "04eb0d6e6734823dcd2b2b704729e976f683df7a8f334da7216520ef1cb319bf",
|
||||
"bytes": 27
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/service-0.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "4d76625c5ecd9d3e50f7e178290f655203512dfcaa0140fd273cd9da9b94c2f3",
|
||||
"bytes": 13939
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/service-1.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "3f4e81ccd045b0ad4291cf9daf1ee5c6627eb0df0aed3f960904c74835c239db",
|
||||
"bytes": 138
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/service-stop.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "26a1c53a887aaa01778530a87c33062e6121fde93e9eacea671c3561b8fe5594",
|
||||
"bytes": 65
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/source-acquisition.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "8de960649366f4e660c95631a028307c5d63e164f4a00719ece939d5be2848c1",
|
||||
"bytes": 6020
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/source-check.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "f4130496635fe090137a418653eaf914053023940089fad8617cba394dc7d258",
|
||||
"bytes": 33587
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/source-closure.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "698b4082e830ec53308ce6833eb87f31ae7bfe25a282b3dc1f328fdcf2079479",
|
||||
"bytes": 22992
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/validation-commands.txt",
|
||||
"purpose": "本批实际验证日志或复现命令",
|
||||
"sha256": "2dff9a3a36c0377f0c428cea0e78a942f1f4cc56b96103026a2aa86d6394642e",
|
||||
"bytes": 2917
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/verify_sources.py",
|
||||
"purpose": "重算原文/原Git对象及全49物理端点/39位置",
|
||||
"sha256": "9789755c20b7a5bf72253fa131d22fa7b11074f27c038d6e8eb9114b6edf90ac",
|
||||
"bytes": 5510
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-document-evidence/visual-review.json",
|
||||
"purpose": "本批本地验证结构化报告/实际doc/来源或SHA索引",
|
||||
"sha256": "d5a244f13cda90047839a1b670a7fc35f71a15e0ce5406aad811c09974401614",
|
||||
"bytes": 658
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background-absent.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
|
||||
"bytes": 3
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background-commit.txt",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "bf8ec33c6728f75e232c550c413592debdcee1cce593b8306506da655c3a12a0",
|
||||
"bytes": 284
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background-tag.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "37ae35170fc468d164345bfac99b6b2cecec35922a67e120010c60d218f659cd",
|
||||
"bytes": 145
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background-tag.txt",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "bf8ec33c6728f75e232c550c413592debdcee1cce593b8306506da655c3a12a0",
|
||||
"bytes": 284
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background-tree.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "5194b0fc9ad28105a5247d498baffa92a6845256e2cd9aab765b5153bc680613",
|
||||
"bytes": 164422
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__LICENSE",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"bytes": 35149
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__comfy__bg_removal_model.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "c4f6f7beea512c759849efa07f03f09044ea76fe5c71fb7afff31e4886e4daa7",
|
||||
"bytes": 3012
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__comfy_extras__nodes_bg_removal.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "c2cf4b42f10cfb1bb057b60a8745fb96a2462e1f1a2bd275e00795bb3f758cce",
|
||||
"bytes": 2337
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__comfy_extras__nodes_compositing.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "e001e2963baaa5ea9f031e6b7920e4d70dae248588a70ed31ab595706a29efae",
|
||||
"bytes": 9149
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__comfy_extras__nodes_mask.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "f235d52703229b0bb7840cc48f0fffe6b00bf9398e119aa7d7f2fc9f3bdaba12",
|
||||
"bytes": 17095
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__comfy_extras__nodes_post_processing.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "96ec39e8d0e9fe9a70b332f97f994d507e1fa223a26699a3c9c9fbeedacf6575",
|
||||
"bytes": 40627
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__folder_paths.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "92e26ff2c3a382902eade6c39efc7653f4470584e9945626126c6cdfe6284d8b",
|
||||
"bytes": 22309
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__nodes.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "aecd111cf3f1ccf5a5ca6b4293d47dfe236f9a717e5190cbb6a66a03afb8d009",
|
||||
"bytes": 107127
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub-absent.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
|
||||
"bytes": 3
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub-commit.txt",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "c59d80deca9c740535ef9dcc7954645972aa9bff3c6c1835c4547163e0854a99",
|
||||
"bytes": 1366
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub-tag.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "37ced0f03b334e30e449cfef488222dd67fc3a1a664a91be9b5811d568a0974e",
|
||||
"bytes": 146
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub-tag.txt",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "c59d80deca9c740535ef9dcc7954645972aa9bff3c6c1835c4547163e0854a99",
|
||||
"bytes": 1366
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub-tree.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "e4330927b21f7d2491df319620becd7bc17dcd8e7ed18f9d70be7cb08ae9781c",
|
||||
"bytes": 399338
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub__LICENSE",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"bytes": 35149
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "d4f1017495158a6133ff770441a4d517dfbf2a328ba42b0405f8729853fe8209",
|
||||
"bytes": 20501
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer-absent.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
|
||||
"bytes": 3
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer-commit.txt",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "a19c91905aebaaed1b3e5f9f9c3a45ae326d0b9e54c0e7de0a60ed4cc25cb406",
|
||||
"bytes": 308
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer-tag.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "59a8d24650623ab21a8e6ef0eb06225b328227cf4af021389f18dcb93895f4c7",
|
||||
"bytes": 168
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer-tag.txt",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "a19c91905aebaaed1b3e5f9f9c3a45ae326d0b9e54c0e7de0a60ed4cc25cb406",
|
||||
"bytes": 308
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer-tree.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "c926aaa5896021471346addbc8e6eb376c767129024297086ba36a14e58e1e4d",
|
||||
"bytes": 10627
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer__LICENSE",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "ad35c0c38c2f8c88b35effa368bdb3dc2f74cf4e475ad0e21a6514ec64553ee4",
|
||||
"bytes": 1067
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer____init__.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "17048cb4c296eac73c68e3d5d3565b95e22bffadfd95c45cb4b7c769f5d89e7f",
|
||||
"bytes": 3737
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer__image_scale_by_aspect_ratio_v2.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "25986bfe8c985a66045abd2c76143d9766c53c77f553c74f7fbec191ea0169fe",
|
||||
"bytes": 8741
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer__layerstyle_utils.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "cba827fc697a71bf5917bea20fbdd86af3b22a2799318c2be95950bb36fd0668",
|
||||
"bytes": 10628
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/new-sources.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "a0ee20d5330820b5d1d1cd52cfb2c52bcffa9f5a13784eb9acd8419b3c4949fb",
|
||||
"bytes": 17651
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save-absent.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
|
||||
"bytes": 3
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save-commit.txt",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "ba6af574d2ae1128bacaefa85b238add3fabbb9f2b11009ca6728801ca7eceb4",
|
||||
"bytes": 255
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save-tag.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "a122eb7c7a4f6b419f117a7f8f3d5d1cda2679f724657090de936a5b294e95a3",
|
||||
"bytes": 144
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save-tag.txt",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "ba6af574d2ae1128bacaefa85b238add3fabbb9f2b11009ca6728801ca7eceb4",
|
||||
"bytes": 255
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save-tree.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "91e37a1e4e4cb1eb77553de093712205b5fb82edf940221727a390c1fc98ebe9",
|
||||
"bytes": 102728
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save__LICENSE",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"bytes": 35149
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save__folder_paths.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"bytes": 18573
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save__nodes.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "d3f0f179d0a9cf94092744740af06b3cf852576868358e2dbb2e01a137626bbd",
|
||||
"bytes": 100453
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale-absent.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
|
||||
"bytes": 3
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale-commit.txt",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "ec4f73ef13b685417a06729d99857250b1d5cec21d43521ae82d5c559a495860",
|
||||
"bytes": 263
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale-tag.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "dfeb820bc5f1c5a2e11dfe1f57efea32ae95c7cbf96c66426e0f938e69e86c5a",
|
||||
"bytes": 144
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale-tag.txt",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "ec4f73ef13b685417a06729d99857250b1d5cec21d43521ae82d5c559a495860",
|
||||
"bytes": 263
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale-tree.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "85fec4aa07288600254d3f6f365a552a990c1d9578acdfda83822f004cbd6a4e",
|
||||
"bytes": 99650
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale__LICENSE",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"bytes": 35149
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale__comfy__utils.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "dfd937c200548753a053befe53357c32deafb2384c9895bdde96b01a1d9ee4d6",
|
||||
"bytes": 54568
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale__comfy_extras__nodes_images.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "695f34b53f21ff714629bdcc3811a231de96458644be297fc1c506f2001c2bd3",
|
||||
"bytes": 22719
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale__comfy_extras__nodes_post_processing.py",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "082571da46d01e5d7f260ab43a4fe0944a8d2446511986810ac7295775acb48f",
|
||||
"bytes": 25466
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/sources.json",
|
||||
"purpose": "准确版本只读源码/许可/原Git身份或必要成员manifest;保持原字节,不执行",
|
||||
"sha256": "64923bf887afe24f59549bd2e427d61aaf14b8285399eefa51b5f255881d1487",
|
||||
"bytes": 54411
|
||||
},
|
||||
{
|
||||
"path": "e2e/flux2-person-document.mjs",
|
||||
"purpose": "1440/390只读GET浏览断言、截图及逐路径请求账",
|
||||
"sha256": "d91f3c2db3a3ddf553f8a4ebf0fc75ed5b092ae3660c557d785474ed5773564b",
|
||||
"bytes": 16235
|
||||
},
|
||||
{
|
||||
"path": "e2e/run-flux2-person-document.py",
|
||||
"purpose": "前台启动/就绪/浏览与finally停止自有服务",
|
||||
"sha256": "0dcf4c84aa4fd2a165b6ae60a6b425a7811f46e291a29c5bebffa802e94fcfee",
|
||||
"bytes": 3187
|
||||
}
|
||||
],
|
||||
"excluded_self": "本清单自身不递归哈希",
|
||||
"screenshots": "43 PNG仅在附件,不入仓"
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
"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-person-document/browser")
|
||||
|
||||
|
||||
def main():
|
||||
stopped = json.loads((LOCAL / "service-stop.json").read_bytes())
|
||||
assert stopped["ports_released"] == [8247, 5173]
|
||||
ports = []
|
||||
for port in [8247, 5173]:
|
||||
with socket.socket() as s:
|
||||
s.settimeout(1)
|
||||
result = s.connect_ex(("127.0.0.1", port))
|
||||
assert result != 0
|
||||
ports.append({"port": port, "connect_ex": result, "connection_refused": True})
|
||||
data = json.loads((LOCAL / "browser-results.json").read_bytes())
|
||||
assert not data["errors"] and data["viewports"] == [1440, 390]
|
||||
backend = collections.Counter(
|
||||
re.findall(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 = {
|
||||
"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,11 @@
|
||||
第78批只增加Flux人物迁移中文参考说明,原件未改。根8节点5边,第一定义21节点36边,第二定义4节点8边;全mode0。根14+第一定义24+第二定义1=39标量,无Note/具名值。旧58块2238位置+66注释逐对象冻结,现59块2277位置+66注释仅参考。
|
||||
|
||||
说明覆盖两图及两次总像素缩放、110→108四缓存覆盖、第二图不控制画布、正负独立依次追加第一/第二参考、空latent起点、实际异名VAE三扇出、完整中文正向和空负向、背景模型/原MASK/Invert/Join Alpha链、空宿主与8/1代理和6/2输入。两LoadImage MASK缺links、52宽高[]和132.mask[]各自保留。43源IMAGE输出与准确0.9.2 RETURN_TYPES=()冲突,继续关闭,不修改原件或构造prompt。
|
||||
|
||||
准确来源分别绑定core0.8.2、负向0.9.1、Load/Save0.9.2、背景定义0.28.3、frontend1.36.14与Layer881bc917完整提交的raw commit/tag/tree/selected blob/SHA/行号/许可。0.28.3找到背景两类定义/注册/加载条件,未套旧图未知结论;不据schema foreground推定运行M极性。Layer准确对象来自源aux仓库,cnr提供方差异仍未知。宿主声明、内部节点、UE/tab/恢复、模型安装/目录/兼容/许可适用与效果分列;没有LoRA/Comparer/历史列表。
|
||||
|
||||
本次验证142后台通过(129专项+13库),2178页面检查(新图770+旧58图1392+汇总2+共享14);13自写Python显式项目配置Ruff check/format、JS语法、前端build、wheel/sdist三资源字节及双次定义/渲染一致通过。真实89e37c1旧代码隔离库恰好1更新154跳过;其余154整行不变;幂等155跳过、回退1/再升级、前后用户编辑各1冲突/29列保护通过。155/排除1、16/139、1217/3660/294及全停用/未检查/空时间戳不变。163原件/191冻结资源、28profile/九候选hash/六差分及Drawer整文件/CSS/依赖不动。
|
||||
|
||||
浏览仅本地GET:固定190/轮询14/六详情夹具,后台固定185=190-6+就绪1,轮询14;逐路径匹配,禁止请求0。finally停服务并独立拒绝连接8247/5173。43截图仅附件,六代表图已实际目验,文字清楚、默认折叠及长源码/中文换行,无横溢;截图不入库。
|
||||
|
||||
剩余96目标图无此类参考块;155最终定稿、必要实跑及环境核对未完成。当前无材料/窗口卡点,本批交总管HEL-893一次审核后再推进下一图。未连接目标、停TTS、启ComfyUI、执行上游/SDK/模型/GPU/媒体/种子/缓存、下载权重素材字体运行库、加依赖付费、写在线库、合并部署。
|
||||
@@ -0,0 +1,10 @@
|
||||
本批开发失败及处理:
|
||||
|
||||
- 首次准确Layer提交在chflame163/ComfyUI_LayerStyle获取失败(not our ref);改按原件aux_id的aining2022/ComfyUI_Swwan取得881bc917完整对象。仍保留cnr_id与aux仓库提供方差异,不把同名等同安装身份。source-acquisition.txt保留失败和后续成功日志。
|
||||
- 首次复用旧save来源发现tree字段是历史ref而非tree对象,且缺raw commit证明。未改旧块;本图重新获取准确v0.9.2原对象并绑定commit/tree/blob,不沿用错误字段。
|
||||
- 开发阶段一次后台为141通过/1失败:追加准确frontend子图原文后未重建说明,确定性比较失败;完成最终来源绑定、重建及固定摘要后142通过。backend-development.txt保留,不能累加到最终通过数。
|
||||
- development-ruff.txt保留初稿紧凑写法和长中文行错误;已按项目显式配置拆分及格式化。最终13文件check/format通过,不表示全仓lint通过。
|
||||
- 前端build保留现有提示;后台保留Starlette/anyio弃用警告。历史5个后台失败仅沿用上批基线记录,本批未机械重跑未改全量套件,不称全仓绿。
|
||||
- 仅获取准确代码/许可文本,没有执行上游、模型/SDK/GPU/媒体/种子/缓存/表达式,不构造prompt。所有生成/转换资格不变。
|
||||
|
||||
原字节上游源码及raw commit/tag对象保留尾部空格,未为diff --check改写;开发日志同样保留原文。自写代码无尾空白、调试残留或新增pyc。
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,135 @@
|
||||
"Acquire necessary pinned text only; no upstream imports or execution."
|
||||
|
||||
import datetime
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "flux2-person-reference"
|
||||
|
||||
|
||||
def main():
|
||||
rows = []
|
||||
specs = [
|
||||
(
|
||||
"frontsub",
|
||||
"Comfy-Org/ComfyUI_frontend",
|
||||
"v1.36.14",
|
||||
["src/lib/litegraph/src/subgraph/SubgraphNode.ts", "LICENSE"],
|
||||
),
|
||||
("save", "Comfy-Org/ComfyUI", "v0.9.2", ["nodes.py", "folder_paths.py", "LICENSE"]),
|
||||
(
|
||||
"background",
|
||||
"Comfy-Org/ComfyUI",
|
||||
"v0.28.3",
|
||||
[
|
||||
"nodes.py",
|
||||
"comfy_extras/nodes_mask.py",
|
||||
"comfy_extras/nodes_bg_removal.py",
|
||||
"comfy/bg_removal_model.py",
|
||||
"folder_paths.py",
|
||||
"comfy_extras/nodes_compositing.py",
|
||||
"comfy_extras/nodes_post_processing.py",
|
||||
"LICENSE",
|
||||
],
|
||||
),
|
||||
(
|
||||
"scale",
|
||||
"Comfy-Org/ComfyUI",
|
||||
"v0.8.2",
|
||||
[
|
||||
"comfy_extras/nodes_images.py",
|
||||
"comfy_extras/nodes_post_processing.py",
|
||||
"comfy/utils.py",
|
||||
"LICENSE",
|
||||
],
|
||||
),
|
||||
(
|
||||
"layer",
|
||||
"aining2022/ComfyUI_Swwan",
|
||||
"881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
["image_scale_by_aspect_ratio_v2.py", "layerstyle_utils.py", "__init__.py", "LICENSE"],
|
||||
),
|
||||
]
|
||||
for key, repo, tag, files in specs:
|
||||
cache = ROOT / ".local-evidence" / ("flux2-person-" + 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) if tag.startswith("v") else tag,
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
|
||||
def git(*args):
|
||||
return subprocess.check_output(["git", "-C", str(cache), *args])
|
||||
|
||||
rev = git("rev-parse", "FETCH_HEAD^{commit}").decode().strip()
|
||||
tree = git("rev-parse", rev + "^{tree}").decode().strip()
|
||||
(REF / (key + "-commit.txt")).write_bytes(git("cat-file", "commit", rev))
|
||||
(REF / (key + "-tag.txt")).write_bytes(git("cat-file", "-p", "FETCH_HEAD"))
|
||||
(REF / (key + "-tag.json")).write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
ref=("refs/tags/" + tag) if tag.startswith("v") else 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")
|
||||
(REF / "new-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,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...
|
||||
8:09:32 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>
|
||||
8:09:32 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...
|
||||
8:09:34 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>
|
||||
8:09:35 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.23 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.B0MMjnJe.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.CmUy6IXy.js 0.16 kB │ gzip: 0.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/9.Bpl7j2Fa.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/LIE6I_Li.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.Csghtq6O.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.DbKBPFyG.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.CTiOyw0D.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.BgrgoMFi.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/BlNfV6zc.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.CZbNam9k.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/C42eKuEh.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.B_8cqKmp.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.1ylOKini.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.COcQ4RcS.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.Blx23dmr.js 23.02 kB │ gzip: 7.51 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Dx88HY0O.js 23.98 kB │ gzip: 9.32 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/11.BjYXwyTM.js 24.95 kB │ gzip: 8.35 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/3.DDVdS1lQ.js 25.68 kB │ gzip: 8.33 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/4.DTN6Y2RO.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/BU8Urwxw.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.DrzsInFx.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/BMiVnwUT.js 81.38 kB │ gzip: 27.49 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/8.CctrJ1w6.js 86.49 kB │ gzip: 28.96 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/7.vdRmdUlE.js 214.51 kB │ gzip: 69.05 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BsrzHLJP.js 684.82 kB │ gzip: 180.09 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/2QcV1iOV.js 720.35 kB │ gzip: 209.00 kB
|
||||
|
||||
(!) Some chunks are larger than 500 kB after minification. Consider:
|
||||
- Using dynamic import() to code-split the application
|
||||
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
|
||||
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
|
||||
✓ built in 3.65s
|
||||
.svelte-kit/output/server/.vite/manifest.json 23.36 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/Icon.BrXLPzfy.css 0.08 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.C62bpzl4.css 0.22 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.IyyrLGyK.css 0.22 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/LanguageSwitcher.BHCsXcey.css 0.33 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/Skeleton.BQeWIsLh.css 0.39 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/SafeMedia.CBqd7Keo.css 0.54 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/EmptyState.BXjpyO2u.css 0.58 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/Spinner.us8fwMZC.css 0.73 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/ConfirmDialog.C_pBcjz1.css 0.89 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/ProgressBar.DG8dH-U_.css 1.44 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.DG2SembM.css 1.87 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/ImageLightbox.Mjqtht7n.css 2.18 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.CxLkc7AF.css 3.49 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.-McisAlK.css 4.49 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/RefImageGrid.Cg0JH9u1.css 4.86 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.D3s-Wa9z.css 5.02 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/AgentComposer.BeAeVWGq.css 6.34 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.DH5AEk6F.css 9.35 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.Bra3CMMT.css 10.42 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.BUR6RoLt.css 10.46 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.0zMz792f.css 10.78 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/AgentChat.C1veD2Ar.css 11.37 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/AppShell.ymPBcNjP.css 12.64 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_layout.B1MJuaEd.css 19.33 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/StudioGenerate.pbw6ZUUi.css 20.96 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.DdIn3xwb.css 22.49 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.Bs4Fx5Yn.css 28.74 kB
|
||||
.svelte-kit/output/server/_app/immutable/assets/_page.BC6N9k4h.css 31.67 kB
|
||||
.svelte-kit/output/server/entries/pages/_layout.ts.js 0.06 kB
|
||||
.svelte-kit/output/server/entries/pages/agents/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/library/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/models/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/settings/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_id_/_page.ts.js 0.08 kB
|
||||
.svelte-kit/output/server/entries/pages/_page.ts.js 0.12 kB
|
||||
.svelte-kit/output/server/entries/hooks.server.js 0.13 kB
|
||||
.svelte-kit/output/server/chunks/wideLayout.js 0.15 kB
|
||||
.svelte-kit/output/server/entries/pages/build-scene/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_id_/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/playground/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/projects/_page.ts.js 0.17 kB
|
||||
.svelte-kit/output/server/entries/pages/image/_page.svelte.js 0.20 kB
|
||||
.svelte-kit/output/server/entries/pages/video/_page.svelte.js 0.20 kB
|
||||
.svelte-kit/output/server/entries/pages/project/_id_/_page.ts.js 0.20 kB
|
||||
.svelte-kit/output/server/chunks/index-server.js 0.22 kB
|
||||
.svelte-kit/output/server/env.js 0.23 kB
|
||||
.svelte-kit/output/server/chunks/client.js 0.31 kB
|
||||
.svelte-kit/output/server/chunks/index-server2.js 0.31 kB
|
||||
.svelte-kit/output/server/internal.js 0.35 kB
|
||||
.svelte-kit/output/server/entries/fallbacks/error.svelte.js 0.35 kB
|
||||
.svelte-kit/output/server/chunks/state.svelte.js 0.45 kB
|
||||
.svelte-kit/output/server/chunks/Skeleton.js 0.48 kB
|
||||
.svelte-kit/output/server/chunks/Spinner.js 0.52 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_id_/_layout.svelte.js 0.55 kB
|
||||
.svelte-kit/output/server/chunks/index2.js 0.57 kB
|
||||
.svelte-kit/output/server/chunks/server.js 0.62 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_page.svelte.js 0.66 kB
|
||||
.svelte-kit/output/server/entries/pages/playground/_page.svelte.js 0.67 kB
|
||||
.svelte-kit/output/server/chunks/utils2.js 0.72 kB
|
||||
.svelte-kit/output/server/chunks/ids.js 0.77 kB
|
||||
.svelte-kit/output/server/chunks/Icon.svelte_svelte_type_style_lang.js 0.86 kB
|
||||
.svelte-kit/output/server/chunks/endpointKind.js 0.95 kB
|
||||
.svelte-kit/output/server/chunks/createMutation.js 1.03 kB
|
||||
.svelte-kit/output/server/chunks/EmptyState.js 1.04 kB
|
||||
.svelte-kit/output/server/chunks/toast.js 1.14 kB
|
||||
.svelte-kit/output/server/chunks/context.js 1.20 kB
|
||||
.svelte-kit/output/server/chunks/LanguageSwitcher.js 1.36 kB
|
||||
.svelte-kit/output/server/chunks/AppShell.svelte_svelte_type_style_lang.js 1.46 kB
|
||||
.svelte-kit/output/server/chunks/SafeMedia.js 1.65 kB
|
||||
.svelte-kit/output/server/chunks/ProgressBar.js 1.88 kB
|
||||
.svelte-kit/output/server/chunks/useUpload.svelte.js 2.16 kB
|
||||
.svelte-kit/output/server/chunks/takeDelete.svelte.js 2.57 kB
|
||||
.svelte-kit/output/server/chunks/index3.js 2.77 kB
|
||||
.svelte-kit/output/server/entries/pages/_layout.svelte.js 3.08 kB
|
||||
.svelte-kit/output/server/chunks/ConfirmDialog.js 3.25 kB
|
||||
.svelte-kit/output/server/chunks/internal.js 3.79 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_page.svelte.js 4.93 kB
|
||||
.svelte-kit/output/server/chunks/exports.js 5.54 kB
|
||||
.svelte-kit/output/server/chunks/Icon.js 6.04 kB
|
||||
.svelte-kit/output/server/entries/pages/agents/_page.svelte.js 7.88 kB
|
||||
.svelte-kit/output/server/entries/pages/tasks/_page.svelte.js 13.44 kB
|
||||
.svelte-kit/output/server/entries/pages/settings/_page.svelte.js 15.12 kB
|
||||
.svelte-kit/output/server/chunks/LanguageSwitcher.svelte_svelte_type_style_lang.js 16.32 kB
|
||||
.svelte-kit/output/server/entries/pages/library/_page.svelte.js 19.77 kB
|
||||
.svelte-kit/output/server/entries/pages/_page.svelte.js 25.48 kB
|
||||
.svelte-kit/output/server/chunks/RefImageGrid.js 25.96 kB
|
||||
.svelte-kit/output/server/chunks/root.js 29.43 kB
|
||||
.svelte-kit/output/server/chunks/AgentComposer.js 34.01 kB
|
||||
.svelte-kit/output/server/chunks/utils.js 34.14 kB
|
||||
.svelte-kit/output/server/entries/pages/models/_page.svelte.js 36.24 kB
|
||||
.svelte-kit/output/server/remote-entry.js 36.81 kB
|
||||
.svelte-kit/output/server/chunks/AppShell.js 39.27 kB
|
||||
.svelte-kit/output/server/entries/pages/workbench/_id_/_page.svelte.js 50.91 kB
|
||||
.svelte-kit/output/server/entries/pages/build-scene/_page.svelte.js 51.30 kB
|
||||
.svelte-kit/output/server/chunks/StudioGenerate.js 99.49 kB
|
||||
.svelte-kit/output/server/chunks/index.js 101.49 kB
|
||||
.svelte-kit/output/server/index.js 130.14 kB
|
||||
.svelte-kit/output/server/entries/pages/connections/_page.svelte.js 132.44 kB
|
||||
.svelte-kit/output/server/entries/pages/canvas/_id_/_page.svelte.js 145.51 kB
|
||||
.svelte-kit/output/server/chunks/i18n.svelte.js 786.88 kB
|
||||
✓ built in 6.78s
|
||||
|
||||
Run npm run preview to preview your production build locally.
|
||||
|
||||
> Using @sveltejs/adapter-static
|
||||
Wrote site to "build"
|
||||
✔ done
|
||||
@@ -0,0 +1,771 @@
|
||||
{
|
||||
"base": "89e37c198a53d2069ff6607673fbb19be61d0f68",
|
||||
"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": "89e37c198a53d2069ff6607673fbb19be61d0f68",
|
||||
"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": 39,
|
||||
"new_notes": 0,
|
||||
"old_saved": 2238,
|
||||
"old_notes": 66,
|
||||
"overviews": 59,
|
||||
"all_disabled": true,
|
||||
"doc_done": 0,
|
||||
"executed": 0
|
||||
}
|
||||
@@ -0,0 +1,869 @@
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
|
||||
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e",
|
||||
"git_blob_sha1": "52c33ad3a062aa3d7b394d268672ad8cc7b50a63",
|
||||
"fields": [
|
||||
{
|
||||
"node": 70,
|
||||
"pointer": "/nodes/0/widgets_values/0",
|
||||
"value": "ComfyUI_00150_.png",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 70,
|
||||
"pointer": "/nodes/0/widgets_values/1",
|
||||
"value": "image",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 69,
|
||||
"pointer": "/nodes/1/widgets_values/0",
|
||||
"value": "ComfyUI_01759_.png",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 69,
|
||||
"pointer": "/nodes/1/widgets_values/1",
|
||||
"value": "image",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 52,
|
||||
"pointer": "/nodes/6/widgets_values/0",
|
||||
"value": "original",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 52,
|
||||
"pointer": "/nodes/6/widgets_values/1",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 52,
|
||||
"pointer": "/nodes/6/widgets_values/2",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 52,
|
||||
"pointer": "/nodes/6/widgets_values/3",
|
||||
"value": "letterbox",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 52,
|
||||
"pointer": "/nodes/6/widgets_values/4",
|
||||
"value": "lanczos",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 52,
|
||||
"pointer": "/nodes/6/widgets_values/5",
|
||||
"value": "8",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 52,
|
||||
"pointer": "/nodes/6/widgets_values/6",
|
||||
"value": "height",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 52,
|
||||
"pointer": "/nodes/6/widgets_values/7",
|
||||
"value": 1280,
|
||||
"json_type": "int",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 52,
|
||||
"pointer": "/nodes/6/widgets_values/8",
|
||||
"value": "#000000",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 43,
|
||||
"pointer": "/nodes/7/widgets_values/0",
|
||||
"value": "Flux2-Klein",
|
||||
"json_type": "str",
|
||||
"scope": "root",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 102,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/0/widgets_values/0",
|
||||
"value": "euler",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 105,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/3/widgets_values/0",
|
||||
"value": 192921483949477,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 105,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/3/widgets_values/1",
|
||||
"value": "randomize",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 106,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/4/widgets_values/0",
|
||||
"value": "Flux\\flux-2-klein-9b-fp8.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 106,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/4/widgets_values/1",
|
||||
"value": "default",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 107,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/5/widgets_values/0",
|
||||
"value": "full_encoder_small_decoder.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 109,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/7/widgets_values/0",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 109,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/7/widgets_values/1",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 109,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/7/widgets_values/2",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 110,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/8/widgets_values/0",
|
||||
"value": "lanczos",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 110,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/8/widgets_values/1",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 110,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/8/widgets_values/2",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 85,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/9/widgets_values/0",
|
||||
"value": "lanczos",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 85,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/9/widgets_values/1",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 85,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/9/widgets_values/2",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/10/widgets_values/0",
|
||||
"value": "qwen_3_8b_fp8mixed.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/10/widgets_values/1",
|
||||
"value": "flux2",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 111,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/10/widgets_values/2",
|
||||
"value": "default",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 113,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/11/widgets_values/0",
|
||||
"value": "把图2的人物替换图1的人物,只替换人物及服装,同时保持图1场景、动作不变,场景光效一致",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 87,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/12/widgets_values/0",
|
||||
"value": "",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 114,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/13/widgets_values/0",
|
||||
"value": 1,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 115,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/14/widgets_values/0",
|
||||
"value": 4,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 115,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/14/widgets_values/1",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 115,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/14/widgets_values/2",
|
||||
"value": 1024,
|
||||
"json_type": "int",
|
||||
"scope": "/definitions/subgraphs/0",
|
||||
"named": null
|
||||
},
|
||||
{
|
||||
"node": 14,
|
||||
"pointer": "/definitions/subgraphs/1/nodes/1/widgets_values/0",
|
||||
"value": "birefnet.safetensors",
|
||||
"json_type": "str",
|
||||
"scope": "/definitions/subgraphs/1",
|
||||
"named": null
|
||||
}
|
||||
],
|
||||
"empty": [
|
||||
{
|
||||
"node": 133,
|
||||
"pointer": "/nodes/2",
|
||||
"state": "missing"
|
||||
},
|
||||
{
|
||||
"node": 131,
|
||||
"pointer": "/nodes/3",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 132,
|
||||
"pointer": "/nodes/4",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 134,
|
||||
"pointer": "/nodes/5",
|
||||
"state": "missing"
|
||||
},
|
||||
{
|
||||
"node": 103,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/1",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 104,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/2",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 108,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/6",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 125,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/15",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 126,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/16",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 127,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/17",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 128,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/18",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 129,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/19",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 130,
|
||||
"pointer": "/definitions/subgraphs/0/nodes/20",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 13,
|
||||
"pointer": "/definitions/subgraphs/1/nodes/0",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 15,
|
||||
"pointer": "/definitions/subgraphs/1/nodes/2",
|
||||
"state": "empty_list"
|
||||
},
|
||||
{
|
||||
"node": 16,
|
||||
"pointer": "/definitions/subgraphs/1/nodes/3",
|
||||
"state": "empty_list"
|
||||
}
|
||||
],
|
||||
"notes": [],
|
||||
"scopes": [
|
||||
{
|
||||
"pointer": "/",
|
||||
"nodes": 8,
|
||||
"edges": 5,
|
||||
"modes": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"named_nodes": 0
|
||||
},
|
||||
{
|
||||
"pointer": "/definitions/subgraphs/0",
|
||||
"nodes": 21,
|
||||
"edges": 36,
|
||||
"modes": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"named_nodes": 0
|
||||
},
|
||||
{
|
||||
"pointer": "/definitions/subgraphs/1",
|
||||
"nodes": 4,
|
||||
"edges": 8,
|
||||
"modes": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"named_nodes": 0
|
||||
}
|
||||
],
|
||||
"extra": {
|
||||
"links_added_by_ue": [],
|
||||
"ue_links": [],
|
||||
"0246.VERSION": [
|
||||
0,
|
||||
0,
|
||||
4
|
||||
],
|
||||
"ds": {
|
||||
"scale": 0.8769226950000115,
|
||||
"offset": [
|
||||
-5206.5574491477,
|
||||
-125.2067477359279
|
||||
]
|
||||
},
|
||||
"workflowRendererVersion": "LG",
|
||||
"frontendVersion": "1.36.14",
|
||||
"VHS_latentpreview": false,
|
||||
"VHS_latentpreviewrate": 0,
|
||||
"VHS_MetadataImage": true,
|
||||
"VHS_KeepIntermediate": true
|
||||
},
|
||||
"hosts": [
|
||||
{
|
||||
"id": 131,
|
||||
"type": "10acc523-a688-4f33-a757-36bda7d2f3f8",
|
||||
"pos": [
|
||||
5948.85681016111,
|
||||
443.8580752911485
|
||||
],
|
||||
"size": [
|
||||
351.64944589159165,
|
||||
394.18186965313123
|
||||
],
|
||||
"flags": {
|
||||
"pinned": true
|
||||
},
|
||||
"order": 6,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"name": "unet_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "unet_name"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "clip_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "clip_name"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "vae_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "vae_name"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"label": "prompt",
|
||||
"name": "text",
|
||||
"type": "STRING",
|
||||
"widget": {
|
||||
"name": "text"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"label": "reference_image1",
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"link": 215
|
||||
},
|
||||
{
|
||||
"label": "reference_image2",
|
||||
"name": "image_1",
|
||||
"type": "IMAGE",
|
||||
"link": 220
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "IMAGE",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
217
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"proxyWidgets": [
|
||||
[
|
||||
"106",
|
||||
"unet_name"
|
||||
],
|
||||
[
|
||||
"111",
|
||||
"clip_name"
|
||||
],
|
||||
[
|
||||
"107",
|
||||
"vae_name"
|
||||
],
|
||||
[
|
||||
"113",
|
||||
"text"
|
||||
],
|
||||
[
|
||||
"105",
|
||||
"noise_seed"
|
||||
],
|
||||
[
|
||||
"105",
|
||||
"control_after_generate"
|
||||
],
|
||||
[
|
||||
"114",
|
||||
"cfg"
|
||||
],
|
||||
[
|
||||
"115",
|
||||
"steps"
|
||||
]
|
||||
],
|
||||
"cnr_id": "comfy-core",
|
||||
"ver": "0.8.2",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {
|
||||
"text": true
|
||||
},
|
||||
"version": "7.7",
|
||||
"input_ue_unconnectable": {}
|
||||
},
|
||||
"enableTabs": false,
|
||||
"tabWidth": 65,
|
||||
"tabXOffset": 10,
|
||||
"hasSecondTab": false,
|
||||
"secondTabText": "Send Back",
|
||||
"secondTabOffset": 80,
|
||||
"secondTabWidth": 65
|
||||
},
|
||||
"widgets_values": []
|
||||
},
|
||||
{
|
||||
"id": 132,
|
||||
"type": "8ea87164-1490-4e1f-9aac-72a5c0d6e806",
|
||||
"pos": [
|
||||
5938.010252534454,
|
||||
948.3905369373986
|
||||
],
|
||||
"size": [
|
||||
347.5891729797977,
|
||||
87.35164141414202
|
||||
],
|
||||
"flags": {
|
||||
"pinned": true
|
||||
},
|
||||
"order": 5,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "image",
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"link": 219
|
||||
},
|
||||
{
|
||||
"name": "bg_removal_name",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "bg_removal_name"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"localized_name": "IMAGE",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
220
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "mask",
|
||||
"type": "MASK",
|
||||
"links": []
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"proxyWidgets": [
|
||||
[
|
||||
"14",
|
||||
"bg_removal_name"
|
||||
]
|
||||
],
|
||||
"cnr_id": "comfy-core",
|
||||
"ver": "0.28.3",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"version": "7.8",
|
||||
"input_ue_unconnectable": {}
|
||||
}
|
||||
},
|
||||
"widgets_values": []
|
||||
}
|
||||
],
|
||||
"definition_boundary": [
|
||||
{
|
||||
"id": "10acc523-a688-4f33-a757-36bda7d2f3f8",
|
||||
"inputNode": {
|
||||
"id": -10,
|
||||
"bounding": [
|
||||
-730,
|
||||
580,
|
||||
150.36328125,
|
||||
168
|
||||
]
|
||||
},
|
||||
"outputNode": {
|
||||
"id": -20,
|
||||
"bounding": [
|
||||
1295.3333202680028,
|
||||
573.833333604156,
|
||||
128,
|
||||
68
|
||||
]
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"id": "ae713dbf-52cb-471a-807d-b12fa9acbb48",
|
||||
"name": "unet_name",
|
||||
"type": "COMBO",
|
||||
"linkIds": [
|
||||
159
|
||||
],
|
||||
"pos": [
|
||||
-603.63671875,
|
||||
604
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "f29f705e-e43a-4502-b231-a1eea93a1d69",
|
||||
"name": "clip_name",
|
||||
"type": "COMBO",
|
||||
"linkIds": [
|
||||
160
|
||||
],
|
||||
"pos": [
|
||||
-603.63671875,
|
||||
624
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "a954f490-386b-4367-9ea1-1b65913963a5",
|
||||
"name": "vae_name",
|
||||
"type": "COMBO",
|
||||
"linkIds": [
|
||||
161
|
||||
],
|
||||
"pos": [
|
||||
-603.63671875,
|
||||
644
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "7061147a-fb75-450d-8e97-c8be594a8e16",
|
||||
"name": "text",
|
||||
"type": "STRING",
|
||||
"linkIds": [
|
||||
162
|
||||
],
|
||||
"label": "prompt",
|
||||
"pos": [
|
||||
-603.63671875,
|
||||
664
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "68629112-b7b0-41ce-8912-23adad00d3db",
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"linkIds": [
|
||||
175
|
||||
],
|
||||
"label": "reference_image1",
|
||||
"pos": [
|
||||
-603.63671875,
|
||||
684
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "7e0c98fd-26e9-412a-a112-171e50fe2d0c",
|
||||
"name": "image_1",
|
||||
"type": "IMAGE",
|
||||
"linkIds": [
|
||||
186
|
||||
],
|
||||
"label": "reference_image2",
|
||||
"pos": [
|
||||
-603.63671875,
|
||||
704
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"id": "c5e7966d-07ed-4c9a-ad89-9d378a41ea7b",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"linkIds": [
|
||||
153
|
||||
],
|
||||
"localized_name": "IMAGE",
|
||||
"pos": [
|
||||
1319.3333202680028,
|
||||
597.833333604156
|
||||
]
|
||||
}
|
||||
],
|
||||
"widgets": []
|
||||
},
|
||||
{
|
||||
"id": "8ea87164-1490-4e1f-9aac-72a5c0d6e806",
|
||||
"inputNode": {
|
||||
"id": -10,
|
||||
"bounding": [
|
||||
-6728.534070722246,
|
||||
1475.2619799128663,
|
||||
150.9140625,
|
||||
88
|
||||
]
|
||||
},
|
||||
"outputNode": {
|
||||
"id": -20,
|
||||
"bounding": [
|
||||
-6169.049695722246,
|
||||
1475.2619799128663,
|
||||
128,
|
||||
88
|
||||
]
|
||||
},
|
||||
"inputs": [
|
||||
{
|
||||
"id": "7bc321cd-df31-4c39-aaf7-7f0d01326189",
|
||||
"name": "image",
|
||||
"type": "IMAGE",
|
||||
"linkIds": [
|
||||
5,
|
||||
7
|
||||
],
|
||||
"localized_name": "image",
|
||||
"pos": [
|
||||
-6601.620008222246,
|
||||
1499.2619799128663
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "e89d2cd8-daa3-4e29-8a69-851db85072cb",
|
||||
"name": "bg_removal_name",
|
||||
"type": "COMBO",
|
||||
"linkIds": [
|
||||
12
|
||||
],
|
||||
"pos": [
|
||||
-6601.620008222246,
|
||||
1519.2619799128663
|
||||
]
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"id": "16e7863c-4c38-46c2-aa74-e82991fbfe8d",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"linkIds": [
|
||||
8
|
||||
],
|
||||
"localized_name": "IMAGE",
|
||||
"pos": [
|
||||
-6145.049695722246,
|
||||
1499.2619799128663
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "f7240c19-5b80-406e-a8e2-9b12440ee2d6",
|
||||
"name": "mask",
|
||||
"type": "MASK",
|
||||
"linkIds": [
|
||||
11
|
||||
],
|
||||
"pos": [
|
||||
-6145.049695722246,
|
||||
1519.2619799128663
|
||||
]
|
||||
}
|
||||
],
|
||||
"widgets": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
"""Independent original bytes and every physical boundary; no layout mapping."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
PATH = "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json"
|
||||
|
||||
|
||||
def inventory():
|
||||
raw = (ROOT / PATH).read_bytes()
|
||||
g = json.loads(raw)
|
||||
fields, empty, notes, scopes = [], [], [], []
|
||||
graphs = [("", g)] + [
|
||||
(f"/definitions/subgraphs/{i}", s) for i, s in enumerate(g["definitions"]["subgraphs"])
|
||||
]
|
||||
for prefix, graph in graphs:
|
||||
scopes.append(
|
||||
dict(
|
||||
pointer=prefix or "/",
|
||||
nodes=len(graph["nodes"]),
|
||||
edges=len(graph["links"]),
|
||||
modes=[n["mode"] for n in graph["nodes"]],
|
||||
named_nodes=sum("widgets_values_named" in n for n in graph["nodes"]),
|
||||
)
|
||||
)
|
||||
for i, n in enumerate(graph["nodes"]):
|
||||
p = f"{prefix}/nodes/{i}"
|
||||
if "widgets_values" not in n or n["widgets_values"] in [None, []]:
|
||||
empty.append(
|
||||
dict(
|
||||
node=n["id"],
|
||||
pointer=p,
|
||||
state="missing"
|
||||
if "widgets_values" not in n
|
||||
else "null"
|
||||
if n["widgets_values"] is None
|
||||
else "empty_list",
|
||||
)
|
||||
)
|
||||
if n["type"] in ["Note", "MarkdownNote"]:
|
||||
notes.append(
|
||||
dict(
|
||||
node=n["id"],
|
||||
pointer=p + "/widgets_values/0",
|
||||
text=n["widgets_values"][0],
|
||||
characters=len(n["widgets_values"][0]),
|
||||
)
|
||||
)
|
||||
continue
|
||||
for j, v in enumerate(n.get("widgets_values") or []):
|
||||
fields.append(
|
||||
dict(
|
||||
node=n["id"],
|
||||
pointer=f"{p}/widgets_values/{j}",
|
||||
value=v,
|
||||
json_type=type(v).__name__,
|
||||
scope="root" if not prefix else prefix,
|
||||
named=n.get("widgets_values_named"),
|
||||
)
|
||||
)
|
||||
return dict(
|
||||
path=PATH,
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
git_blob_sha1=hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest(),
|
||||
fields=fields,
|
||||
empty=empty,
|
||||
notes=notes,
|
||||
scopes=scopes,
|
||||
extra=g["extra"],
|
||||
hosts=[n for n in g["nodes"] if n["id"] in [131, 132]],
|
||||
definition_boundary=[
|
||||
{k: s[k] for k in ["id", "inputNode", "outputNode", "inputs", "outputs", "widgets"]}
|
||||
for s in g["definitions"]["subgraphs"]
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
x = inventory()
|
||||
(OUT / "independent-inventory.json").write_text(
|
||||
json.dumps(x, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
print("Saved", len(x["fields"]), "notes", len(x["notes"]), "scopes", x["scopes"])
|
||||
@@ -0,0 +1,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,23 @@
|
||||
[
|
||||
{
|
||||
"file": "fixed_document.py",
|
||||
"sha256": "1abab05931b0287092da14446babe4206cc1c54ad5ca45abe7b274e7823b62bb",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 59
|
||||
},
|
||||
{
|
||||
"file": "source_reviews.json",
|
||||
"sha256": "ef5206cef39c4b4e19f4056fdad84a63de6471f4302e7fc436e749e1ad7548b5",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 59
|
||||
},
|
||||
{
|
||||
"file": "library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 59
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json": "827493e1dbfd639b0de588c951291f6ed84e27ee5432f9c2051ce4e1796e007b"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"port": 8247,
|
||||
"connect_ex": 111,
|
||||
"connection_refused": true
|
||||
},
|
||||
{
|
||||
"port": 5173,
|
||||
"connect_ex": 111,
|
||||
"connection_refused": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,220 @@
|
||||
{
|
||||
"number": 25,
|
||||
"state": "open",
|
||||
"merged": false,
|
||||
"head": {
|
||||
"label": "agent/agent/a64a969a6a44",
|
||||
"ref": "agent/agent/a64a969a6a44",
|
||||
"sha": "89e37c198a53d2069ff6607673fbb19be61d0f68",
|
||||
"repo_id": 41,
|
||||
"repo": {
|
||||
"id": 41,
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"login": "leefer",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "白栖知",
|
||||
"email": "2298888111@qq.com",
|
||||
"avatar_url": "http://gitea.xbay.cc/avatars/91b54124de25997159e246521e39a411c269d223991e40f108233dd43810b64c",
|
||||
"html_url": "http://gitea.xbay.cc/leefer",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-07-21T22:34:43+08:00",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "leefer"
|
||||
},
|
||||
"name": "aigc-home",
|
||||
"full_name": "leefer/aigc-home",
|
||||
"description": "AIGC工作台",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"mirror": false,
|
||||
"size": 90220,
|
||||
"language": "",
|
||||
"languages_url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home/languages",
|
||||
"html_url": "http://gitea.xbay.cc/leefer/aigc-home",
|
||||
"url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home",
|
||||
"link": "",
|
||||
"ssh_url": "ssh://git@192.168.200.36:222/leefer/aigc-home.git",
|
||||
"clone_url": "http://gitea.xbay.cc/leefer/aigc-home.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"branch_count": 84,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 11,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2026-09-27T15:54:10+08:00",
|
||||
"updated_at": "2026-10-31T08:00:01+08:00",
|
||||
"archived_at": "1970-01-01T08:00:00+08:00",
|
||||
"permissions": {
|
||||
"admin": false,
|
||||
"push": false,
|
||||
"pull": true
|
||||
},
|
||||
"has_code": true,
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"projects_mode": "all",
|
||||
"has_releases": true,
|
||||
"has_packages": true,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_fast_forward_only_merge": true,
|
||||
"allow_merge_update": true,
|
||||
"allow_rebase_update": true,
|
||||
"allow_manual_merge": false,
|
||||
"autodetect_manual_merge": false,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_update_style": "merge",
|
||||
"default_allow_maintainer_edit": true,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"object_format_name": "sha1",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
|
||||
"topics": [],
|
||||
"licenses": [
|
||||
"MIT"
|
||||
]
|
||||
}
|
||||
},
|
||||
"base": {
|
||||
"label": "main",
|
||||
"ref": "main",
|
||||
"sha": "1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532",
|
||||
"repo_id": 41,
|
||||
"repo": {
|
||||
"id": 41,
|
||||
"owner": {
|
||||
"id": 1,
|
||||
"login": "leefer",
|
||||
"login_name": "",
|
||||
"source_id": 0,
|
||||
"full_name": "白栖知",
|
||||
"email": "2298888111@qq.com",
|
||||
"avatar_url": "http://gitea.xbay.cc/avatars/91b54124de25997159e246521e39a411c269d223991e40f108233dd43810b64c",
|
||||
"html_url": "http://gitea.xbay.cc/leefer",
|
||||
"language": "",
|
||||
"is_admin": false,
|
||||
"last_login": "0001-01-01T00:00:00Z",
|
||||
"created": "2026-07-21T22:34:43+08:00",
|
||||
"restricted": false,
|
||||
"active": false,
|
||||
"prohibit_login": false,
|
||||
"location": "",
|
||||
"website": "",
|
||||
"description": "",
|
||||
"visibility": "public",
|
||||
"followers_count": 0,
|
||||
"following_count": 0,
|
||||
"starred_repos_count": 1,
|
||||
"username": "leefer"
|
||||
},
|
||||
"name": "aigc-home",
|
||||
"full_name": "leefer/aigc-home",
|
||||
"description": "AIGC工作台",
|
||||
"empty": false,
|
||||
"private": false,
|
||||
"fork": false,
|
||||
"template": false,
|
||||
"mirror": false,
|
||||
"size": 90220,
|
||||
"language": "",
|
||||
"languages_url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home/languages",
|
||||
"html_url": "http://gitea.xbay.cc/leefer/aigc-home",
|
||||
"url": "https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home",
|
||||
"link": "",
|
||||
"ssh_url": "ssh://git@192.168.200.36:222/leefer/aigc-home.git",
|
||||
"clone_url": "http://gitea.xbay.cc/leefer/aigc-home.git",
|
||||
"original_url": "",
|
||||
"website": "",
|
||||
"stars_count": 0,
|
||||
"forks_count": 0,
|
||||
"watchers_count": 1,
|
||||
"branch_count": 84,
|
||||
"open_issues_count": 0,
|
||||
"open_pr_counter": 11,
|
||||
"release_counter": 0,
|
||||
"default_branch": "main",
|
||||
"archived": false,
|
||||
"created_at": "2026-09-27T15:54:10+08:00",
|
||||
"updated_at": "2026-10-31T08:00:01+08:00",
|
||||
"archived_at": "1970-01-01T08:00:00+08:00",
|
||||
"permissions": {
|
||||
"admin": false,
|
||||
"push": false,
|
||||
"pull": true
|
||||
},
|
||||
"has_code": true,
|
||||
"has_issues": true,
|
||||
"internal_tracker": {
|
||||
"enable_time_tracker": true,
|
||||
"allow_only_contributors_to_track_time": true,
|
||||
"enable_issue_dependencies": true
|
||||
},
|
||||
"has_wiki": true,
|
||||
"has_pull_requests": true,
|
||||
"has_projects": true,
|
||||
"projects_mode": "all",
|
||||
"has_releases": true,
|
||||
"has_packages": true,
|
||||
"has_actions": true,
|
||||
"ignore_whitespace_conflicts": false,
|
||||
"allow_merge_commits": true,
|
||||
"allow_rebase": true,
|
||||
"allow_rebase_explicit": true,
|
||||
"allow_squash_merge": true,
|
||||
"allow_fast_forward_only_merge": true,
|
||||
"allow_merge_update": true,
|
||||
"allow_rebase_update": true,
|
||||
"allow_manual_merge": false,
|
||||
"autodetect_manual_merge": false,
|
||||
"default_delete_branch_after_merge": false,
|
||||
"default_merge_style": "merge",
|
||||
"default_update_style": "merge",
|
||||
"default_allow_maintainer_edit": true,
|
||||
"avatar_url": "",
|
||||
"internal": false,
|
||||
"mirror_interval": "",
|
||||
"object_format_name": "sha1",
|
||||
"mirror_updated": "0001-01-01T00:00:00Z",
|
||||
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
|
||||
"topics": [],
|
||||
"licenses": [
|
||||
"MIT"
|
||||
]
|
||||
}
|
||||
},
|
||||
"html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25"
|
||||
}
|
||||
@@ -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 = "89e37c198a53d2069ff6607673fbb19be61d0f68"
|
||||
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 58 blocks unchanged")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,369 @@
|
||||
"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) == 58
|
||||
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()) == 2238
|
||||
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": 58,
|
||||
"old_saved": 2238,
|
||||
"old_notes": 66,
|
||||
"new_saved": 39,
|
||||
"new_notes": 0,
|
||||
"total_documents": 59,
|
||||
"total_saved": 2277,
|
||||
"total_notes": 66,
|
||||
},
|
||||
)
|
||||
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": 39,
|
||||
"new_notes": 0,
|
||||
"old_saved": 2238,
|
||||
"old_notes": 66,
|
||||
"overviews": 59,
|
||||
"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_blocks_unchanged": 58,
|
||||
"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": 59,
|
||||
}
|
||||
)
|
||||
write("package-check.json", packages)
|
||||
print(
|
||||
f"PASS actual {BASE} upgrade1/skip154, repe"
|
||||
"at155, rollback1, edits1"
|
||||
"/29cols, fresh155,"
|
||||
" 1217/3660/294, 59 defin"
|
||||
"itions, frozen bou"
|
||||
"ndaries, wheel/sdist"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS exact sources, 49 bidirectional physical edges, 39 positions, two definitions
|
||||
PASS actual 89e37c198a53d2069ff6607673fbb19be61d0f68 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 59 definitions, frozen boundaries, wheel/sdist
|
||||
@@ -0,0 +1,130 @@
|
||||
"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 = [
|
||||
"# Flux人物迁移固定参考中文说明",
|
||||
"",
|
||||
"新增39保存位置/0注释;旧58块2238位置+66源注释不变,59图2277+66仅参考;155定稿0/实跑0/新增转换0。",
|
||||
"",
|
||||
(
|
||||
("来源local_file以docs/hel-892/flux2-person-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 / "Flux人物迁移固定参考中文说明.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,46 @@
|
||||
"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 / "Flux人物迁移固定参考中文说明.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": 59,
|
||||
"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": 59,
|
||||
"repeated_build_equal": true,
|
||||
"repeated_render_equal": true,
|
||||
"resource_sha256": "332fbd8dba7df33997e1751e94fc3e8c65ddcc3fd2a225ab8950b496a35f29b2",
|
||||
"artifacts": {
|
||||
"fixed-source-index.json": "0d5bc8f0d3ead74170f78626510831adc28c98f4276d122ff465ddec62879679",
|
||||
"Flux人物迁移固定参考中文说明.md": "3e70cf72f27fa826c9a6115596ffbfd20176b72fbfd6b21b57a8d4da25be604b"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"base": "89e37c198a53d2069ff6607673fbb19be61d0f68",
|
||||
"changed_paths": [
|
||||
"example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json"
|
||||
],
|
||||
"other_reviews_unchanged": 155,
|
||||
"old_blocks_unchanged": 58,
|
||||
"old_saved": 2238,
|
||||
"old_notes": 66,
|
||||
"new_saved": 39,
|
||||
"new_notes": 0,
|
||||
"total_documents": 59,
|
||||
"total_saved": 2277,
|
||||
"total_notes": 66
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
All checks passed!
|
||||
@@ -0,0 +1 @@
|
||||
13 files already formatted
|
||||
@@ -0,0 +1,208 @@
|
||||
INFO: Started server process [989291]
|
||||
INFO: Waiting for application startup.
|
||||
INFO: Application startup complete.
|
||||
INFO: Uvicorn running on http://127.0.0.1:8247 (Press CTRL+C to quit)
|
||||
{'counts': {'imported': 155, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
|
||||
INFO: 127.0.0.1:48582 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/55 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/56 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/58 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/57 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/44 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/53 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/52 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/51 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/50 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/49 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/47 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/48 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48590 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48598 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48616 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:48604 - "GET /api/settings HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48618 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48628 - "GET /api/workflows/55 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48634 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:57354 - "GET /api/workflows/56 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57366 - "GET /api/workflows/58 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57382 - "GET /api/workflows/57 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57386 - "GET /api/workflows/44 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57394 - "GET /api/workflows/53 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57408 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:57414 - "GET /api/workflows/52 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57422 - "GET /api/workflows/51 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57438 - "GET /api/workflows/50 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57446 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:57460 - "GET /api/workflows/49 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57466 - "GET /api/workflows/47 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57476 - "GET /api/workflows/48 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57480 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:57492 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39358 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39370 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39382 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39396 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39402 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39410 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39422 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39428 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39436 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39450 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39454 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39462 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39466 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39478 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39482 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39484 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39486 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:39500 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39508 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39516 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39518 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:39522 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39526 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39534 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39542 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39556 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39564 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39568 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44494 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44508 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44514 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44530 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44532 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44538 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44546 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44558 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44574 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44584 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44598 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44612 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44624 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44630 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:44638 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44646 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44656 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44660 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:44672 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44684 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44696 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44702 - "GET /api/workflows/55 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59138 - "GET /api/workflows/56 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59148 - "GET /api/workflows/58 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59162 - "GET /api/workflows/57 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59176 - "GET /api/workflows/44 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59180 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:59192 - "GET /api/workflows/53 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59204 - "GET /api/workflows/52 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59218 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:59226 - "GET /api/workflows/51 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59236 - "GET /api/workflows/50 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59248 - "GET /api/workflows/49 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59250 - "GET /api/workflows/47 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59252 - "GET /api/workflows/48 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59266 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59282 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59288 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59294 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59306 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59322 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59334 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:59350 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44136 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44150 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44158 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44160 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44162 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44168 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44174 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44186 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44188 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:44202 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44218 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44234 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44236 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:44252 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44262 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44268 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44284 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44292 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44308 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44310 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44322 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44332 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44334 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44342 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44350 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44364 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44380 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44382 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:44394 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47304 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47306 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47322 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47326 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47328 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47336 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:47340 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47342 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47354 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47368 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:47370 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47382 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47386 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47398 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47410 - "GET /api/workflows/156 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47424 - "GET /api/workflows/157 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47438 - "GET /api/workflows/56 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47454 - "GET /api/workflows/55 HTTP/1.1" 200 OK
|
||||
INFO: Shutting down
|
||||
INFO: Waiting for application shutdown.
|
||||
INFO: Application shutdown complete.
|
||||
INFO: Finished server process [989291]
|
||||
@@ -0,0 +1,5 @@
|
||||
8:09:44 AM [vite] (client) Forced re-optimization of dependencies
|
||||
|
||||
VITE v6.4.3 ready in 343 ms
|
||||
|
||||
➜ Local: http://127.0.0.1:5173/
|
||||
@@ -0,0 +1 @@
|
||||
{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]}
|
||||
@@ -0,0 +1,109 @@
|
||||
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.28.3 -> 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
|
||||
* tag v0.8.2 -> 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>
|
||||
fatal: remote error: upload-pack: not our ref 881bc91790da6b907d3d28e5b91b295b9aef06ee
|
||||
Traceback (most recent call last):
|
||||
File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-8931ab9b877c/workdir/aigc-home/docs/hel-892/flux2-person-document-evidence/fetch_sources.py", line 98, in <module>
|
||||
main()
|
||||
File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-8931ab9b877c/workdir/aigc-home/docs/hel-892/flux2-person-document-evidence/fetch_sources.py", line 27, in main
|
||||
subprocess.run(
|
||||
File "/usr/lib/python3.10/subprocess.py", line 526, in run
|
||||
raise CalledProcessError(retcode, process.args,
|
||||
subprocess.CalledProcessError: Command '['git', '-C', '/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-8931ab9b877c/workdir/aigc-home/.local-evidence/flux2-person-layer-git', 'fetch', '--filter=blob:none', '--depth=1', 'https://github.com/chflame163/ComfyUI_LayerStyle.git', '881bc91790da6b907d3d28e5b91b295b9aef06ee']' returned non-zero exit status 128.
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.28.3 -> FETCH_HEAD
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.8.2 -> FETCH_HEAD
|
||||
From https://github.com/aining2022/ComfyUI_Swwan
|
||||
* branch 881bc91790da6b907d3d28e5b91b295b9aef06ee -> FETCH_HEAD
|
||||
fatal: remote error: upload-pack: not our ref 3fa69fca9a8d18557b14b053fda1989caf821746
|
||||
fatal: remote error: upload-pack: not our ref 232ae139df1a325b6f3c62b33cc2132bee147a93
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.28.3 -> FETCH_HEAD
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.8.2 -> FETCH_HEAD
|
||||
From https://github.com/aining2022/ComfyUI_Swwan
|
||||
* branch 881bc91790da6b907d3d28e5b91b295b9aef06ee -> FETCH_HEAD
|
||||
fatal: remote error: upload-pack: not our ref 23e4b8a10dfd6d4113bdfe40d57e30976102e804
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.28.3 -> FETCH_HEAD
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.8.2 -> FETCH_HEAD
|
||||
From https://github.com/aining2022/ComfyUI_Swwan
|
||||
* branch 881bc91790da6b907d3d28e5b91b295b9aef06ee -> FETCH_HEAD
|
||||
fatal: remote error: upload-pack: not our ref 1aab6030bb78e6e295d5f6f65ee3abc5cd0a07c9
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.28.3 -> FETCH_HEAD
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.8.2 -> FETCH_HEAD
|
||||
From https://github.com/aining2022/ComfyUI_Swwan
|
||||
* branch 881bc91790da6b907d3d28e5b91b295b9aef06ee -> 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
|
||||
* tag v0.9.2 -> FETCH_HEAD
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.28.3 -> FETCH_HEAD
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.8.2 -> FETCH_HEAD
|
||||
From https://github.com/aining2022/ComfyUI_Swwan
|
||||
* branch 881bc91790da6b907d3d28e5b91b295b9aef06ee -> 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.14 -> FETCH_HEAD
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.9.2 -> FETCH_HEAD
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.28.3 -> FETCH_HEAD
|
||||
From https://github.com/Comfy-Org/ComfyUI
|
||||
* tag v0.8.2 -> FETCH_HEAD
|
||||
From https://github.com/aining2022/ComfyUI_Swwan
|
||||
* branch 881bc91790da6b907d3d28e5b91b295b9aef06ee -> FETCH_HEAD
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,426 @@
|
||||
{
|
||||
"files": [
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core-commit.txt",
|
||||
"sha256": "ec4f73ef13b685417a06729d99857250b1d5cec21d43521ae82d5c559a495860",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core-tag.json",
|
||||
"sha256": "dfeb820bc5f1c5a2e11dfe1f57efea32ae95c7cbf96c66426e0f938e69e86c5a",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core-tag.txt",
|
||||
"sha256": "ec4f73ef13b685417a06729d99857250b1d5cec21d43521ae82d5c559a495860",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core-tree.json",
|
||||
"sha256": "85fec4aa07288600254d3f6f365a552a990c1d9578acdfda83822f004cbd6a4e",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy__cli_args.py",
|
||||
"sha256": "b08dd1d029b3b7d64efee2c3125e7046ed5f07840200fffef4d564c600615e34",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy__sample.py",
|
||||
"sha256": "794be52ca4ad9be470aedfc79a595492f8116c2666101cf48c108a09cdc6dac6",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy__samplers.py",
|
||||
"sha256": "a7b0dec5aea19214cc640dd725d927ac8246377885d46c956a5c0d9fe79b1a47",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy__sd.py",
|
||||
"sha256": "e20431cac19074ff6ab931d4076aa867b2be1419c6a3be42b0700002f8184727",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy__utils.py",
|
||||
"sha256": "dfd937c200548753a053befe53357c32deafb2384c9895bdde96b01a1d9ee4d6",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_api__latest___io.py",
|
||||
"sha256": "41ebad9670bf980b7f85527a4839e3a15b18094583746515ea2d516d3946a1e5",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_api__latest___io_public.py",
|
||||
"sha256": "c805d754d61aba1ea72ed2d9d5c371de35be9affa5305d35426fb298fcb7c046",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_extras__nodes_custom_sampler.py",
|
||||
"sha256": "8e8c3763a618fa9058f2333dcc09be3b60889362875b8c6377aee23f9ea1abd2",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_extras__nodes_edit_model.py",
|
||||
"sha256": "e8d03a4ca5f7b8025f565d0fa7b4f0119693f2f35837db2a4114361537f78da3",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_extras__nodes_flux.py",
|
||||
"sha256": "a10f6890f81589e43f5384fc9d5e4e68e3d53b900abce84cb07740376e0135c6",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__comfy_extras__nodes_primitive.py",
|
||||
"sha256": "e3916389cbf848f73fd79f67feca97f3e666a2c541409bba2aef4500b6f7393b",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__latent_preview.py",
|
||||
"sha256": "c59708b07494615d2f7640d528df17f9281f4d77affe638b2e0efb9a49fa3cee",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__node_helpers.py",
|
||||
"sha256": "5ee43a50f57b84c64781f1bcfeb717d17ee2d07038d5d7d75eb788898fb72de0",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-img-reference/core__nodes.py",
|
||||
"sha256": "dd4b10eebd746da29178e0f8f75781f98edbf1f0620eb42afe2d03156a6c7c33",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background-commit.txt",
|
||||
"sha256": "bf8ec33c6728f75e232c550c413592debdcee1cce593b8306506da655c3a12a0",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background-tag.json",
|
||||
"sha256": "37ae35170fc468d164345bfac99b6b2cecec35922a67e120010c60d218f659cd",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background-tag.txt",
|
||||
"sha256": "bf8ec33c6728f75e232c550c413592debdcee1cce593b8306506da655c3a12a0",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background-tree.json",
|
||||
"sha256": "5194b0fc9ad28105a5247d498baffa92a6845256e2cd9aab765b5153bc680613",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__comfy__bg_removal_model.py",
|
||||
"sha256": "c4f6f7beea512c759849efa07f03f09044ea76fe5c71fb7afff31e4886e4daa7",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__comfy_extras__nodes_bg_removal.py",
|
||||
"sha256": "c2cf4b42f10cfb1bb057b60a8745fb96a2462e1f1a2bd275e00795bb3f758cce",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__comfy_extras__nodes_compositing.py",
|
||||
"sha256": "e001e2963baaa5ea9f031e6b7920e4d70dae248588a70ed31ab595706a29efae",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__comfy_extras__nodes_mask.py",
|
||||
"sha256": "f235d52703229b0bb7840cc48f0fffe6b00bf9398e119aa7d7f2fc9f3bdaba12",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__comfy_extras__nodes_post_processing.py",
|
||||
"sha256": "96ec39e8d0e9fe9a70b332f97f994d507e1fa223a26699a3c9c9fbeedacf6575",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__folder_paths.py",
|
||||
"sha256": "92e26ff2c3a382902eade6c39efc7653f4470584e9945626126c6cdfe6284d8b",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/background__nodes.py",
|
||||
"sha256": "aecd111cf3f1ccf5a5ca6b4293d47dfe236f9a717e5190cbb6a66a03afb8d009",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub-commit.txt",
|
||||
"sha256": "c59d80deca9c740535ef9dcc7954645972aa9bff3c6c1835c4547163e0854a99",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub-tag.json",
|
||||
"sha256": "37ced0f03b334e30e449cfef488222dd67fc3a1a664a91be9b5811d568a0974e",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub-tag.txt",
|
||||
"sha256": "c59d80deca9c740535ef9dcc7954645972aa9bff3c6c1835c4547163e0854a99",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub-tree.json",
|
||||
"sha256": "e4330927b21f7d2491df319620becd7bc17dcd8e7ed18f9d70be7cb08ae9781c",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/frontsub__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"sha256": "d4f1017495158a6133ff770441a4d517dfbf2a328ba42b0405f8729853fe8209",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer-commit.txt",
|
||||
"sha256": "a19c91905aebaaed1b3e5f9f9c3a45ae326d0b9e54c0e7de0a60ed4cc25cb406",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer-tag.json",
|
||||
"sha256": "59a8d24650623ab21a8e6ef0eb06225b328227cf4af021389f18dcb93895f4c7",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer-tag.txt",
|
||||
"sha256": "a19c91905aebaaed1b3e5f9f9c3a45ae326d0b9e54c0e7de0a60ed4cc25cb406",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer-tree.json",
|
||||
"sha256": "c926aaa5896021471346addbc8e6eb376c767129024297086ba36a14e58e1e4d",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer__LICENSE",
|
||||
"sha256": "ad35c0c38c2f8c88b35effa368bdb3dc2f74cf4e475ad0e21a6514ec64553ee4",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer____init__.py",
|
||||
"sha256": "17048cb4c296eac73c68e3d5d3565b95e22bffadfd95c45cb4b7c769f5d89e7f",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer__image_scale_by_aspect_ratio_v2.py",
|
||||
"sha256": "25986bfe8c985a66045abd2c76143d9766c53c77f553c74f7fbec191ea0169fe",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/layer__layerstyle_utils.py",
|
||||
"sha256": "cba827fc697a71bf5917bea20fbdd86af3b22a2799318c2be95950bb36fd0668",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/new-sources.json",
|
||||
"sha256": "a0ee20d5330820b5d1d1cd52cfb2c52bcffa9f5a13784eb9acd8419b3c4949fb",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save-commit.txt",
|
||||
"sha256": "ba6af574d2ae1128bacaefa85b238add3fabbb9f2b11009ca6728801ca7eceb4",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save-tag.json",
|
||||
"sha256": "a122eb7c7a4f6b419f117a7f8f3d5d1cda2679f724657090de936a5b294e95a3",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save-tag.txt",
|
||||
"sha256": "ba6af574d2ae1128bacaefa85b238add3fabbb9f2b11009ca6728801ca7eceb4",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save-tree.json",
|
||||
"sha256": "91e37a1e4e4cb1eb77553de093712205b5fb82edf940221727a390c1fc98ebe9",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save__folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/save__nodes.py",
|
||||
"sha256": "d3f0f179d0a9cf94092744740af06b3cf852576868358e2dbb2e01a137626bbd",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale-commit.txt",
|
||||
"sha256": "ec4f73ef13b685417a06729d99857250b1d5cec21d43521ae82d5c559a495860",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale-tag.json",
|
||||
"sha256": "dfeb820bc5f1c5a2e11dfe1f57efea32ae95c7cbf96c66426e0f938e69e86c5a",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale-tag.txt",
|
||||
"sha256": "ec4f73ef13b685417a06729d99857250b1d5cec21d43521ae82d5c559a495860",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale-tree.json",
|
||||
"sha256": "85fec4aa07288600254d3f6f365a552a990c1d9578acdfda83822f004cbd6a4e",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale__comfy__utils.py",
|
||||
"sha256": "dfd937c200548753a053befe53357c32deafb2384c9895bdde96b01a1d9ee4d6",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale__comfy_extras__nodes_images.py",
|
||||
"sha256": "695f34b53f21ff714629bdcc3811a231de96458644be297fc1c506f2001c2bd3",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/scale__comfy_extras__nodes_post_processing.py",
|
||||
"sha256": "082571da46d01e5d7f260ab43a4fe0944a8d2446511986810ac7295775acb48f",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-person-reference/sources.json",
|
||||
"sha256": "64923bf887afe24f59549bd2e427d61aaf14b8285399eefa51b5f255881d1487",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend-commit.txt",
|
||||
"sha256": "c59d80deca9c740535ef9dcc7954645972aa9bff3c6c1835c4547163e0854a99",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend-tag.json",
|
||||
"sha256": "37ced0f03b334e30e449cfef488222dd67fc3a1a664a91be9b5811d568a0974e",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend-tag.txt",
|
||||
"sha256": "c59d80deca9c740535ef9dcc7954645972aa9bff3c6c1835c4547163e0854a99",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend-tree.json",
|
||||
"sha256": "e4330927b21f7d2491df319620becd7bc17dcd8e7ed18f9d70be7cb08ae9781c",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__package.json",
|
||||
"sha256": "15aefdd570c97c79f18914133bcfac39bbcb4d46b77af03a8800c749aebe8bf8",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__pnpm-lock.yaml",
|
||||
"sha256": "bc16299891aa6489d075e9cf95e8c710b4a3e230ac275133d08a3cd5ba139eed",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__src__extensions__core__rerouteNode.ts",
|
||||
"sha256": "53abe69665c97427faa7e41d4d0b9b33c8c1415fff84f582ed51862bdf7bfcd8",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__src__extensions__core__widgetInputs.ts",
|
||||
"sha256": "488d38eb209816778a6da8cb8f734f539e3fbd7f77aae41ec649a52b8764b613",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__src__lib__litegraph__LICENSE",
|
||||
"sha256": "1b38cc30fe774bcc77538ab99eb460f4e1c8a47c4fddc6e991ee3b5cc2a96bb9",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
|
||||
"sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__src__lib__litegraph__src__Reroute.ts",
|
||||
"sha256": "8d235116da40cf91de59ab8789f892fff89b507965d6c4e8142a9a4b514fa68c",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__src__scripts__app.ts",
|
||||
"sha256": "1035fbc0313170282d6b0a05e30c04c7458648da6503ec70c67af03858a7a37e",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__src__scripts__widgets.ts",
|
||||
"sha256": "e8bb428cbf69635015de43a4ebc89817b3443f876cbed52eeafe67d26f2398d8",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/frontend__src__utils__migration__migrateReroute.ts",
|
||||
"sha256": "51e4e0cbc4da3f89239d5a333c615d31ea10745579d33350c0914c08e017d161",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/primitive-commit.txt",
|
||||
"sha256": "1c89581dd1547cff5011e97bf9bcef4a759c0535a530e2359ae4de4f3a2b5836",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/primitive-tag.json",
|
||||
"sha256": "b134d541992a597e8547f316c5b0e8b12c76d63ec74aca8bdd3a262788af173c",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/primitive-tag.txt",
|
||||
"sha256": "1c89581dd1547cff5011e97bf9bcef4a759c0535a530e2359ae4de4f3a2b5836",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/primitive-tree.json",
|
||||
"sha256": "c265fca1d9f917db9bddc9cbdd9102384e9d2119b85f437dc373a026463ba1c7",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/primitive__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-reference/primitive__nodes.py",
|
||||
"sha256": "cec4f56d3ac6c9a8b107b68a787a993e1b7333c0c6e4168efe9424c25e63592c",
|
||||
"purpose": "准确来源原文、许可或commit/tag/tree/blob绑定证据;只读未执行"
|
||||
}
|
||||
],
|
||||
"full_tree_rehashed": false,
|
||||
"upstream_executed": false
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
# 第78批:仓库根;原PR25 agent/agent/a64a969a6a44 / main
|
||||
# 真实旧代码基线89e37c198a53d2069ff6607673fbb19be61d0f68。
|
||||
# 本次Python3.12.14,现有锁依赖离线安装;未运行上游或连接目标。
|
||||
uv sync --project calliope-backend --offline --extra dev
|
||||
# fetch_sources.py仅在首次缺少准确源码时获取Git代码与许可,未获取模型/媒体。
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-person-document-evidence/inventory.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-person-document-evidence/bind_sources.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-person-document-evidence/verify_sources.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-person-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-person-document-evidence/repeat.py
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_flux2_person_fixed_document.py calliope-backend/tests/test_workflow_library.py -q
|
||||
uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/flux2-person-document-evidence/*.py calliope-backend/tests/test_flux2_person_fixed_document.py e2e/run-flux2-person-document.py calliope-backend/src/calliope/comfyui/fixed_document.py
|
||||
uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/flux2-person-document-evidence/*.py calliope-backend/tests/test_flux2_person_fixed_document.py e2e/run-flux2-person-document.py calliope-backend/src/calliope/comfyui/fixed_document.py
|
||||
node --check e2e/flux2-person-document.mjs
|
||||
PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/flux2-person-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-person-document.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/flux2-person-document-evidence/collect_browser.py
|
||||
# 1440/390逐39保存位置/完整正向/空负向/来源/边界链和旧58概要状态;无Note。
|
||||
# 浏览finally停止自有服务,collect独立核8247/5173拒绝连接;43截图仅附件不入仓。
|
||||
# 59块2277位置+66注释仅参考,155定稿/实跑/新增转换0,全量未完成。
|
||||
@@ -0,0 +1,126 @@
|
||||
"""Verify exact text identities, all physical endpoints and every saved position."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
from build_definition import OUT, PATHS, REF, REPO, build, canonical
|
||||
from inventory import inventory
|
||||
|
||||
|
||||
def main():
|
||||
block = build()
|
||||
rows = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
checks = []
|
||||
for e in rows:
|
||||
raw = (REF / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
blob = hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
|
||||
assert blob == e["git_blob_sha1"]
|
||||
root = REF / e["identity_root"]
|
||||
key = e["identity_key"]
|
||||
tree = json.loads((root / (key + "-tree.json")).read_bytes())
|
||||
assert tree["sha"] == e["tree"] and not tree["truncated"]
|
||||
assert next(t["sha"] for t in tree["tree"] if t["path"] == e["file"]) == blob
|
||||
c = (root / (key + "-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((root / (key + "-tag.json")).read_bytes())
|
||||
assert tag["commit"] == e["commit"]
|
||||
t = (root / (key + "-tag.txt")).read_bytes()
|
||||
if tag["object"] != e["commit"]:
|
||||
assert (
|
||||
hashlib.sha1(b"tag " + str(len(t)).encode() + b"\0" + t).hexdigest()
|
||||
== tag["object"]
|
||||
)
|
||||
assert t.decode().startswith("object " + e["commit"] + "\n")
|
||||
else:
|
||||
assert t == c
|
||||
lic = next(x for x in rows if x["id"] == e["id"] and x["file"] == "LICENSE")
|
||||
assert hashlib.sha256((REF / e["license_file"]).read_bytes()).hexdigest() == lic["sha256"]
|
||||
checks.append(
|
||||
dict(
|
||||
id=e["id"],
|
||||
file=e["file"],
|
||||
sha256=e["sha256"],
|
||||
commit=e["commit"],
|
||||
tree=e["tree"],
|
||||
proof="raw commit/tag + tree identity + selected blob; full tree not rehashed",
|
||||
license_file=e["license_file"],
|
||||
)
|
||||
)
|
||||
inv = inventory()
|
||||
assert [s["nodes"] for s in inv["scopes"]] == [8, 21, 4]
|
||||
assert [s["edges"] for s in inv["scopes"]] == [5, 36, 8]
|
||||
assert len(inv["fields"]) == 39 and not inv["notes"]
|
||||
assert all(s["named_nodes"] == 0 and set(s["modes"]) == {0} for s in inv["scopes"])
|
||||
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"]),
|
||||
)
|
||||
for e in block["sources"]:
|
||||
raw = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||||
g = json.loads((REPO / PATHS[0]).read_bytes())
|
||||
endpoints = []
|
||||
for scope, graph in [("root", g)] + [
|
||||
(str(i), s) for i, s in enumerate(g["definitions"]["subgraphs"])
|
||||
]:
|
||||
ns = {n["id"]: n for n in graph["nodes"]}
|
||||
ids = []
|
||||
for original in graph["links"]:
|
||||
eid, a, ao, z, zi, kind = (
|
||||
original
|
||||
if scope == "root"
|
||||
else [
|
||||
original[k]
|
||||
for k in ["id", "origin_id", "origin_slot", "target_id", "target_slot", "type"]
|
||||
]
|
||||
)
|
||||
ids.append(eid)
|
||||
source = graph["inputs"][ao] if a == -10 else ns[a]["outputs"][ao]
|
||||
target = graph["outputs"][zi] if z == -20 else ns[z]["inputs"][zi]
|
||||
assert eid in source.get("linkIds", source.get("links", []))
|
||||
assert eid in target["linkIds"] if z == -20 else target["link"] == eid
|
||||
assert source["type"] == "*" or kind in source["type"].split(",")
|
||||
assert target["type"] == "*" or kind in target["type"].split(",")
|
||||
endpoints.append(
|
||||
dict(scope=scope, edge=original, source_backref=True, target_backref=True)
|
||||
)
|
||||
assert len(ids) == len(set(ids))
|
||||
for n in graph["nodes"]:
|
||||
for slot in n.get("inputs", []):
|
||||
assert slot.get("link") is None or slot["link"] in ids
|
||||
for slot in n.get("outputs", []):
|
||||
assert all(x in ids for x in slot.get("links") or [])
|
||||
if scope != "root":
|
||||
for b in graph["inputs"] + graph["outputs"]:
|
||||
assert all(x in ids for x in b["linkIds"])
|
||||
for host, sub, np, ni in [
|
||||
(131, g["definitions"]["subgraphs"][0], 8, 6),
|
||||
(132, g["definitions"]["subgraphs"][1], 1, 2),
|
||||
]:
|
||||
h = next(n for n in g["nodes"] if n["id"] == host)
|
||||
assert len(h["properties"]["proxyWidgets"]) == np and len(h["inputs"]) == ni
|
||||
assert h["widgets_values"] == sub["widgets"] == []
|
||||
for outer, b in zip(h["inputs"], sub["inputs"], strict=True):
|
||||
assert (outer["name"], outer["type"]) == (b["name"], b["type"])
|
||||
(OUT / "source-check.json").write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
sources=checks, endpoints=endpoints, inventory_matched=True, upstream_executed=False
|
||||
),
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print("PASS exact sources, 49 bidirectional physical edges, 39 positions, two definitions")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"actually_viewed": [
|
||||
"1440-55-default.png",
|
||||
"1440-55-branch-flow.png",
|
||||
"390-55-131:113-text.png",
|
||||
"390-55-132:14-bg_removal_name.png",
|
||||
"390-55-52-scale_to_side.png",
|
||||
"390-55-43-filename_prefix.png"
|
||||
],
|
||||
"viewports": [
|
||||
1440,
|
||||
390
|
||||
],
|
||||
"observations": [
|
||||
"默认用途与待核状态清楚,技术内容折叠",
|
||||
"完整中文正向与空负向未被改写;长指针/提交SHA自然换行",
|
||||
"背景模型准确版本、双反转链及保存协议冲突可读",
|
||||
"没有横向溢出、叠字或新增样式,关闭按钮固定可见"
|
||||
],
|
||||
"screenshots_attachment_only": true,
|
||||
"screenshot_count": 43
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,6 @@
|
||||
tree 112edae7988632612bf2f7eb8f2d5fd1c18b9fee
|
||||
parent ad8ecb97d02e39c857a96b5f3b73a9791e6759d8
|
||||
author fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1784749775 +0000
|
||||
committer fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1784749775 +0000
|
||||
|
||||
ComfyUI v0.28.3
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "refs/tags/v0.28.3",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"object": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
tree 112edae7988632612bf2f7eb8f2d5fd1c18b9fee
|
||||
parent ad8ecb97d02e39c857a96b5f3b73a9791e6759d8
|
||||
author fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1784749775 +0000
|
||||
committer fen-release[bot] <fen-release[bot]@users.noreply.github.com> 1784749775 +0000
|
||||
|
||||
ComfyUI v0.28.3
|
||||
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,80 @@
|
||||
from .utils import load_torch_file
|
||||
import os
|
||||
import json
|
||||
import torch
|
||||
import logging
|
||||
|
||||
import comfy.ops
|
||||
import comfy.model_patcher
|
||||
import comfy.model_management
|
||||
import comfy.clip_model
|
||||
import comfy.background_removal.birefnet
|
||||
|
||||
BG_REMOVAL_MODELS = {
|
||||
"birefnet": comfy.background_removal.birefnet.BiRefNet
|
||||
}
|
||||
|
||||
class BackgroundRemovalModel():
|
||||
def __init__(self, json_config):
|
||||
with open(json_config) as f:
|
||||
config = json.load(f)
|
||||
|
||||
self.image_size = config.get("image_size", 1024)
|
||||
self.image_mean = config.get("image_mean", [0.0, 0.0, 0.0])
|
||||
self.image_std = config.get("image_std", [1.0, 1.0, 1.0])
|
||||
self.model_type = config.get("model_type", "birefnet")
|
||||
self.config = config.copy()
|
||||
model_class = BG_REMOVAL_MODELS.get(self.model_type)
|
||||
|
||||
self.load_device = comfy.model_management.text_encoder_device()
|
||||
offload_device = comfy.model_management.text_encoder_offload_device()
|
||||
self.dtype = comfy.model_management.text_encoder_dtype(self.load_device)
|
||||
self.model = model_class(config, self.dtype, offload_device, comfy.ops.manual_cast)
|
||||
self.model.eval()
|
||||
|
||||
self.patcher = comfy.model_patcher.CoreModelPatcher(self.model, load_device=self.load_device, offload_device=offload_device)
|
||||
|
||||
def load_sd(self, sd):
|
||||
return self.model.load_state_dict(sd, strict=False, assign=self.patcher.is_dynamic())
|
||||
|
||||
def get_sd(self):
|
||||
return self.model.state_dict()
|
||||
|
||||
def encode_image(self, image):
|
||||
comfy.model_management.load_model_gpu(self.patcher)
|
||||
H, W = image.shape[1], image.shape[2]
|
||||
pixel_values = comfy.clip_model.clip_preprocess(image.to(self.load_device), size=self.image_size, mean=self.image_mean, std=self.image_std, crop=False)
|
||||
|
||||
if pixel_values.shape[0] > 1:
|
||||
out = torch.cat([
|
||||
self.model(pixel_values=pixel_values[i:i+1])
|
||||
for i in range(pixel_values.shape[0])
|
||||
], dim=0)
|
||||
else:
|
||||
out = self.model(pixel_values=pixel_values)
|
||||
out = torch.nn.functional.interpolate(out, size=(H, W), mode="bicubic", antialias=False)
|
||||
|
||||
mask = out.sigmoid().to(device=comfy.model_management.intermediate_device(), dtype=comfy.model_management.intermediate_dtype())
|
||||
return mask.squeeze(1) # (B, 1, H, W) -> (B, H, W)
|
||||
|
||||
|
||||
def load_background_removal_model(sd):
|
||||
if "bb.layers.1.blocks.0.attn.relative_position_index" in sd:
|
||||
json_config = os.path.join(os.path.join(os.path.dirname(os.path.realpath(__file__)), "background_removal"), "birefnet.json")
|
||||
else:
|
||||
return None
|
||||
|
||||
bg_model = BackgroundRemovalModel(json_config)
|
||||
m, u = bg_model.load_sd(sd)
|
||||
if len(m) > 0:
|
||||
logging.warning("missing background removal: {}".format(m))
|
||||
u = set(u)
|
||||
keys = list(sd.keys())
|
||||
for k in keys:
|
||||
if k not in u:
|
||||
sd.pop(k)
|
||||
return bg_model
|
||||
|
||||
def load(ckpt_path):
|
||||
sd = load_torch_file(ckpt_path)
|
||||
return load_background_removal_model(sd)
|
||||
@@ -0,0 +1,61 @@
|
||||
import folder_paths
|
||||
from typing_extensions import override
|
||||
from comfy_api.latest import ComfyExtension, IO
|
||||
from comfy.bg_removal_model import load
|
||||
|
||||
|
||||
class LoadBackgroundRemovalModel(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
files = folder_paths.get_filename_list("background_removal")
|
||||
return IO.Schema(
|
||||
node_id="LoadBackgroundRemovalModel",
|
||||
display_name="Load Background Removal Model",
|
||||
category="model/loaders",
|
||||
inputs=[
|
||||
IO.Combo.Input("bg_removal_name", options=sorted(files), tooltip="The model used to remove backgrounds from images"),
|
||||
],
|
||||
outputs=[
|
||||
IO.BackgroundRemoval.Output("bg_model")
|
||||
]
|
||||
)
|
||||
@classmethod
|
||||
def execute(cls, bg_removal_name):
|
||||
path = folder_paths.get_full_path_or_raise("background_removal", bg_removal_name)
|
||||
bg = load(path)
|
||||
if bg is None:
|
||||
raise RuntimeError("ERROR: background model file is invalid and does not contain a valid background removal model.")
|
||||
return IO.NodeOutput(bg)
|
||||
|
||||
class RemoveBackground(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="RemoveBackground",
|
||||
display_name="Remove Background",
|
||||
category="image/background removal",
|
||||
description="Generates a foreground mask to remove the background from an image using a background removal model.",
|
||||
inputs=[
|
||||
IO.BackgroundRemoval.Input("bg_removal_model", tooltip="Background removal model used to generate the mask"),
|
||||
IO.Image.Input("image", tooltip="Input image to remove the background from")
|
||||
],
|
||||
outputs=[
|
||||
IO.Mask.Output("mask", tooltip="Generated foreground mask")
|
||||
]
|
||||
)
|
||||
@classmethod
|
||||
def execute(cls, bg_removal_model, image):
|
||||
mask = bg_removal_model.encode_image(image)
|
||||
return IO.NodeOutput(mask)
|
||||
|
||||
class BackgroundRemovalExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[IO.ComfyNode]]:
|
||||
return [
|
||||
LoadBackgroundRemovalModel,
|
||||
RemoveBackground
|
||||
]
|
||||
|
||||
|
||||
async def comfy_entrypoint() -> BackgroundRemovalExtension:
|
||||
return BackgroundRemovalExtension()
|
||||
@@ -0,0 +1,223 @@
|
||||
import torch
|
||||
import comfy.utils
|
||||
from enum import Enum
|
||||
from typing_extensions import override
|
||||
from comfy_api.latest import ComfyExtension, io
|
||||
|
||||
|
||||
def resize_mask(mask, shape):
|
||||
return torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(shape[0], shape[1]), mode="bilinear").squeeze(1)
|
||||
|
||||
class PorterDuffMode(Enum):
|
||||
ADD = 0
|
||||
CLEAR = 1
|
||||
DARKEN = 2
|
||||
DST = 3
|
||||
DST_ATOP = 4
|
||||
DST_IN = 5
|
||||
DST_OUT = 6
|
||||
DST_OVER = 7
|
||||
LIGHTEN = 8
|
||||
MULTIPLY = 9
|
||||
OVERLAY = 10
|
||||
SCREEN = 11
|
||||
SRC = 12
|
||||
SRC_ATOP = 13
|
||||
SRC_IN = 14
|
||||
SRC_OUT = 15
|
||||
SRC_OVER = 16
|
||||
XOR = 17
|
||||
|
||||
|
||||
def porter_duff_composite(src_image: torch.Tensor, src_alpha: torch.Tensor, dst_image: torch.Tensor, dst_alpha: torch.Tensor, mode: PorterDuffMode):
|
||||
# convert mask to alpha
|
||||
src_alpha = 1 - src_alpha
|
||||
dst_alpha = 1 - dst_alpha
|
||||
# premultiply alpha
|
||||
src_image = src_image * src_alpha
|
||||
dst_image = dst_image * dst_alpha
|
||||
|
||||
# composite ops below assume alpha-premultiplied images
|
||||
if mode == PorterDuffMode.ADD:
|
||||
out_alpha = torch.clamp(src_alpha + dst_alpha, 0, 1)
|
||||
out_image = torch.clamp(src_image + dst_image, 0, 1)
|
||||
elif mode == PorterDuffMode.CLEAR:
|
||||
out_alpha = torch.zeros_like(dst_alpha)
|
||||
out_image = torch.zeros_like(dst_image)
|
||||
elif mode == PorterDuffMode.DARKEN:
|
||||
out_alpha = src_alpha + dst_alpha - src_alpha * dst_alpha
|
||||
out_image = (1 - dst_alpha) * src_image + (1 - src_alpha) * dst_image + torch.min(src_image, dst_image)
|
||||
elif mode == PorterDuffMode.DST:
|
||||
out_alpha = dst_alpha
|
||||
out_image = dst_image
|
||||
elif mode == PorterDuffMode.DST_ATOP:
|
||||
out_alpha = src_alpha
|
||||
out_image = src_alpha * dst_image + (1 - dst_alpha) * src_image
|
||||
elif mode == PorterDuffMode.DST_IN:
|
||||
out_alpha = src_alpha * dst_alpha
|
||||
out_image = dst_image * src_alpha
|
||||
elif mode == PorterDuffMode.DST_OUT:
|
||||
out_alpha = (1 - src_alpha) * dst_alpha
|
||||
out_image = (1 - src_alpha) * dst_image
|
||||
elif mode == PorterDuffMode.DST_OVER:
|
||||
out_alpha = dst_alpha + (1 - dst_alpha) * src_alpha
|
||||
out_image = dst_image + (1 - dst_alpha) * src_image
|
||||
elif mode == PorterDuffMode.LIGHTEN:
|
||||
out_alpha = src_alpha + dst_alpha - src_alpha * dst_alpha
|
||||
out_image = (1 - dst_alpha) * src_image + (1 - src_alpha) * dst_image + torch.max(src_image, dst_image)
|
||||
elif mode == PorterDuffMode.MULTIPLY:
|
||||
out_alpha = src_alpha * dst_alpha
|
||||
out_image = src_image * dst_image
|
||||
elif mode == PorterDuffMode.OVERLAY:
|
||||
out_alpha = src_alpha + dst_alpha - src_alpha * dst_alpha
|
||||
out_image = torch.where(2 * dst_image < dst_alpha, 2 * src_image * dst_image,
|
||||
src_alpha * dst_alpha - 2 * (dst_alpha - src_image) * (src_alpha - dst_image))
|
||||
elif mode == PorterDuffMode.SCREEN:
|
||||
out_alpha = src_alpha + dst_alpha - src_alpha * dst_alpha
|
||||
out_image = src_image + dst_image - src_image * dst_image
|
||||
elif mode == PorterDuffMode.SRC:
|
||||
out_alpha = src_alpha
|
||||
out_image = src_image
|
||||
elif mode == PorterDuffMode.SRC_ATOP:
|
||||
out_alpha = dst_alpha
|
||||
out_image = dst_alpha * src_image + (1 - src_alpha) * dst_image
|
||||
elif mode == PorterDuffMode.SRC_IN:
|
||||
out_alpha = src_alpha * dst_alpha
|
||||
out_image = src_image * dst_alpha
|
||||
elif mode == PorterDuffMode.SRC_OUT:
|
||||
out_alpha = (1 - dst_alpha) * src_alpha
|
||||
out_image = (1 - dst_alpha) * src_image
|
||||
elif mode == PorterDuffMode.SRC_OVER:
|
||||
out_alpha = src_alpha + (1 - src_alpha) * dst_alpha
|
||||
out_image = src_image + (1 - src_alpha) * dst_image
|
||||
elif mode == PorterDuffMode.XOR:
|
||||
out_alpha = (1 - dst_alpha) * src_alpha + (1 - src_alpha) * dst_alpha
|
||||
out_image = (1 - dst_alpha) * src_image + (1 - src_alpha) * dst_image
|
||||
else:
|
||||
return None, None
|
||||
|
||||
# back to non-premultiplied alpha
|
||||
out_image = torch.where(out_alpha > 1e-5, out_image / out_alpha, torch.zeros_like(out_image))
|
||||
out_image = torch.clamp(out_image, 0, 1)
|
||||
# convert alpha to mask
|
||||
out_alpha = 1 - out_alpha
|
||||
return out_image, out_alpha
|
||||
|
||||
|
||||
class PorterDuffImageComposite(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="PorterDuffImageComposite",
|
||||
search_aliases=["alpha composite", "blend modes", "layer blend", "transparency blend"],
|
||||
display_name="Porter-Duff Image Composite",
|
||||
category="image/compositing",
|
||||
inputs=[
|
||||
io.Image.Input("source"),
|
||||
io.Mask.Input("source_alpha"),
|
||||
io.Image.Input("destination"),
|
||||
io.Mask.Input("destination_alpha"),
|
||||
io.Combo.Input("mode", options=[mode.name for mode in PorterDuffMode], default=PorterDuffMode.DST.name),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
io.Mask.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, source: torch.Tensor, source_alpha: torch.Tensor, destination: torch.Tensor, destination_alpha: torch.Tensor, mode) -> io.NodeOutput:
|
||||
batch_size = min(len(source), len(source_alpha), len(destination), len(destination_alpha))
|
||||
out_images = []
|
||||
out_alphas = []
|
||||
|
||||
for i in range(batch_size):
|
||||
src_image = source[i]
|
||||
dst_image = destination[i]
|
||||
|
||||
assert src_image.shape[2] == dst_image.shape[2] # inputs need to have same number of channels
|
||||
|
||||
src_alpha = source_alpha[i].unsqueeze(2)
|
||||
dst_alpha = destination_alpha[i].unsqueeze(2)
|
||||
|
||||
if dst_alpha.shape[:2] != dst_image.shape[:2]:
|
||||
upscale_input = dst_alpha.unsqueeze(0).permute(0, 3, 1, 2)
|
||||
upscale_output = comfy.utils.common_upscale(upscale_input, dst_image.shape[1], dst_image.shape[0], upscale_method='bicubic', crop='center')
|
||||
dst_alpha = upscale_output.permute(0, 2, 3, 1).squeeze(0)
|
||||
if src_image.shape != dst_image.shape:
|
||||
upscale_input = src_image.unsqueeze(0).permute(0, 3, 1, 2)
|
||||
upscale_output = comfy.utils.common_upscale(upscale_input, dst_image.shape[1], dst_image.shape[0], upscale_method='bicubic', crop='center')
|
||||
src_image = upscale_output.permute(0, 2, 3, 1).squeeze(0)
|
||||
if src_alpha.shape != dst_alpha.shape:
|
||||
upscale_input = src_alpha.unsqueeze(0).permute(0, 3, 1, 2)
|
||||
upscale_output = comfy.utils.common_upscale(upscale_input, dst_alpha.shape[1], dst_alpha.shape[0], upscale_method='bicubic', crop='center')
|
||||
src_alpha = upscale_output.permute(0, 2, 3, 1).squeeze(0)
|
||||
|
||||
out_image, out_alpha = porter_duff_composite(src_image, src_alpha, dst_image, dst_alpha, PorterDuffMode[mode])
|
||||
|
||||
out_images.append(out_image)
|
||||
out_alphas.append(out_alpha.squeeze(2))
|
||||
|
||||
return io.NodeOutput(torch.stack(out_images), torch.stack(out_alphas))
|
||||
|
||||
|
||||
class SplitImageWithAlpha(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="SplitImageWithAlpha",
|
||||
search_aliases=["extract alpha", "separate transparency", "remove alpha"],
|
||||
display_name="Split Image with Alpha",
|
||||
category="image/compositing",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
io.Mask.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image: torch.Tensor) -> io.NodeOutput:
|
||||
out_images = [i[:,:,:3] for i in image]
|
||||
out_alphas = [i[:,:,3] if i.shape[2] > 3 else torch.ones_like(i[:,:,0]) for i in image]
|
||||
return io.NodeOutput(torch.stack(out_images), 1.0 - torch.stack(out_alphas))
|
||||
|
||||
|
||||
class JoinImageWithAlpha(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="JoinImageWithAlpha",
|
||||
search_aliases=["add transparency", "apply alpha", "composite alpha", "RGBA"],
|
||||
display_name="Join Image with Alpha",
|
||||
category="image/compositing",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
io.Mask.Input("alpha"),
|
||||
],
|
||||
outputs=[io.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image: torch.Tensor, alpha: torch.Tensor) -> io.NodeOutput:
|
||||
batch_size = max(len(image), len(alpha))
|
||||
alpha = 1.0 - resize_mask(alpha.to(image), image.shape[1:])
|
||||
alpha = comfy.utils.repeat_to_batch_size(alpha, batch_size)
|
||||
image = comfy.utils.repeat_to_batch_size(image, batch_size)
|
||||
return io.NodeOutput(torch.cat((image[..., :3], alpha.unsqueeze(-1)), dim=-1))
|
||||
|
||||
|
||||
class CompositingExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||
return [
|
||||
PorterDuffImageComposite,
|
||||
SplitImageWithAlpha,
|
||||
JoinImageWithAlpha,
|
||||
]
|
||||
|
||||
|
||||
async def comfy_entrypoint() -> CompositingExtension:
|
||||
return CompositingExtension()
|
||||
@@ -0,0 +1,457 @@
|
||||
import numpy as np
|
||||
import scipy.ndimage
|
||||
import torch
|
||||
import comfy.utils
|
||||
import comfy.model_management
|
||||
import node_helpers
|
||||
from typing_extensions import override
|
||||
from comfy_api.latest import ComfyExtension, IO, UI
|
||||
|
||||
import nodes
|
||||
|
||||
def composite(destination, source, x, y, mask = None, multiplier = 8, resize_source = False):
|
||||
source = source.to(destination.device)
|
||||
if resize_source:
|
||||
source = torch.nn.functional.interpolate(source, size=(destination.shape[-2], destination.shape[-1]), mode="bilinear")
|
||||
|
||||
source = comfy.utils.repeat_to_batch_size(source, destination.shape[0])
|
||||
|
||||
x = max(-source.shape[-1] * multiplier, min(x, destination.shape[-1] * multiplier))
|
||||
y = max(-source.shape[-2] * multiplier, min(y, destination.shape[-2] * multiplier))
|
||||
|
||||
left, top = (x // multiplier, y // multiplier)
|
||||
right, bottom = (left + source.shape[-1], top + source.shape[-2],)
|
||||
|
||||
if mask is None:
|
||||
mask = torch.ones_like(source)
|
||||
else:
|
||||
mask = mask.to(destination.device, copy=True)
|
||||
mask = torch.nn.functional.interpolate(mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])), size=(source.shape[-2], source.shape[-1]), mode="bilinear")
|
||||
mask = comfy.utils.repeat_to_batch_size(mask, source.shape[0])
|
||||
|
||||
# calculate the bounds of the source that will be overlapping the destination
|
||||
# this prevents the source trying to overwrite latent pixels that are out of bounds
|
||||
# of the destination
|
||||
visible_width, visible_height = (destination.shape[-1] - left + min(0, x), destination.shape[-2] - top + min(0, y),)
|
||||
|
||||
mask = mask[:, :, :visible_height, :visible_width]
|
||||
if mask.ndim < source.ndim:
|
||||
mask = mask.unsqueeze(1)
|
||||
|
||||
inverse_mask = torch.ones_like(mask) - mask
|
||||
|
||||
source_portion = mask * source[..., :visible_height, :visible_width]
|
||||
destination_portion = inverse_mask * destination[..., top:bottom, left:right]
|
||||
|
||||
destination[..., top:bottom, left:right] = source_portion + destination_portion
|
||||
return destination
|
||||
|
||||
|
||||
class LatentCompositeMasked(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="LatentCompositeMasked",
|
||||
search_aliases=["overlay latent", "layer latent", "paste latent", "inpaint latent"],
|
||||
display_name="Latent Composite Masked",
|
||||
category="model/latent",
|
||||
inputs=[
|
||||
IO.Latent.Input("destination"),
|
||||
IO.Latent.Input("source"),
|
||||
IO.Int.Input("x", default=0, min=0, max=nodes.MAX_RESOLUTION, step=8),
|
||||
IO.Int.Input("y", default=0, min=0, max=nodes.MAX_RESOLUTION, step=8),
|
||||
IO.Boolean.Input("resize_source", default=False),
|
||||
IO.Mask.Input("mask", optional=True),
|
||||
],
|
||||
outputs=[IO.Latent.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, destination, source, x, y, resize_source, mask = None) -> IO.NodeOutput:
|
||||
output = destination.copy()
|
||||
destination = destination["samples"].clone()
|
||||
source = source["samples"]
|
||||
output["samples"] = composite(destination, source, x, y, mask, 8, resize_source)
|
||||
return IO.NodeOutput(output)
|
||||
|
||||
composite = execute # TODO: remove
|
||||
|
||||
|
||||
class ImageCompositeMasked(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ImageCompositeMasked",
|
||||
search_aliases=["overlay", "layer", "paste image", "images composition"],
|
||||
display_name="Image Composite Masked",
|
||||
category="image/compositing",
|
||||
inputs=[
|
||||
IO.Image.Input("destination"),
|
||||
IO.Image.Input("source"),
|
||||
IO.Int.Input("x", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("y", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Boolean.Input("resize_source", default=False),
|
||||
IO.Mask.Input("mask", optional=True),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, destination, source, x, y, resize_source, mask = None) -> IO.NodeOutput:
|
||||
destination, source = node_helpers.image_alpha_fix(destination, source)
|
||||
destination = destination.clone().movedim(-1, 1)
|
||||
output = composite(destination, source.movedim(-1, 1), x, y, mask, 1, resize_source).movedim(1, -1)
|
||||
return IO.NodeOutput(output)
|
||||
|
||||
composite = execute # TODO: remove
|
||||
|
||||
|
||||
class MaskToImage(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="MaskToImage",
|
||||
search_aliases=["convert mask"],
|
||||
display_name="Convert Mask to Image",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
IO.Mask.Input("mask"),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, mask) -> IO.NodeOutput:
|
||||
result = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3)
|
||||
return IO.NodeOutput(result)
|
||||
|
||||
mask_to_image = execute # TODO: remove
|
||||
|
||||
|
||||
class ImageToMask(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ImageToMask",
|
||||
search_aliases=["extract channel", "channel to mask"],
|
||||
display_name="Convert Image to Mask",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
IO.Combo.Input("channel", options=["red", "green", "blue", "alpha"]),
|
||||
],
|
||||
outputs=[IO.Mask.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, channel) -> IO.NodeOutput:
|
||||
channels = ["red", "green", "blue", "alpha"]
|
||||
mask = image[:, :, :, channels.index(channel)]
|
||||
return IO.NodeOutput(mask)
|
||||
|
||||
image_to_mask = execute # TODO: remove
|
||||
|
||||
|
||||
class ImageColorToMask(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ImageColorToMask",
|
||||
search_aliases=["color keying", "chroma key"],
|
||||
display_name="Convert Image Color to Mask",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
IO.Int.Input("color", default=0, min=0, max=0xFFFFFF, step=1, display_mode=IO.NumberDisplay.number),
|
||||
],
|
||||
outputs=[IO.Mask.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, color) -> IO.NodeOutput:
|
||||
temp = (torch.clamp(image, 0, 1.0) * 255.0).round().to(torch.int)
|
||||
temp = torch.bitwise_left_shift(temp[:,:,:,0], 16) + torch.bitwise_left_shift(temp[:,:,:,1], 8) + temp[:,:,:,2]
|
||||
mask = torch.where(temp == color, 1.0, 0).float()
|
||||
return IO.NodeOutput(mask)
|
||||
|
||||
image_to_mask = execute # TODO: remove
|
||||
|
||||
|
||||
class SolidMask(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SolidMask",
|
||||
display_name="Create Solid Mask",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
IO.Float.Input("value", default=1.0, min=0.0, max=1.0, step=0.01),
|
||||
IO.Int.Input("width", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("height", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
|
||||
],
|
||||
outputs=[IO.Mask.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, value, width, height) -> IO.NodeOutput:
|
||||
out = torch.full((1, height, width), value, dtype=torch.float32, device=comfy.model_management.intermediate_device())
|
||||
return IO.NodeOutput(out)
|
||||
|
||||
solid = execute # TODO: remove
|
||||
|
||||
|
||||
class InvertMask(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="InvertMask",
|
||||
search_aliases=["reverse mask", "flip mask"],
|
||||
display_name="Invert Mask",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
IO.Mask.Input("mask"),
|
||||
],
|
||||
outputs=[IO.Mask.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, mask) -> IO.NodeOutput:
|
||||
out = 1.0 - mask
|
||||
return IO.NodeOutput(out)
|
||||
|
||||
invert = execute # TODO: remove
|
||||
|
||||
|
||||
class CropMask(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="CropMask",
|
||||
search_aliases=["cut mask", "extract mask region", "mask slice"],
|
||||
display_name="Crop Mask",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
IO.Mask.Input("mask"),
|
||||
IO.Int.Input("x", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("y", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("width", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("height", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
|
||||
],
|
||||
outputs=[IO.Mask.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, mask, x, y, width, height) -> IO.NodeOutput:
|
||||
mask = mask.reshape((-1, mask.shape[-2], mask.shape[-1]))
|
||||
out = mask[:, y:y + height, x:x + width]
|
||||
return IO.NodeOutput(out)
|
||||
|
||||
crop = execute # TODO: remove
|
||||
|
||||
|
||||
class MaskComposite(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="MaskComposite",
|
||||
search_aliases=["combine masks", "blend masks", "layer masks", "masks composition"],
|
||||
display_name="Combine Masks",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
IO.Mask.Input("destination"),
|
||||
IO.Mask.Input("source"),
|
||||
IO.Int.Input("x", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("y", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Combo.Input("operation", options=["multiply", "add", "subtract", "and", "or", "xor"]),
|
||||
],
|
||||
outputs=[IO.Mask.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, destination, source, x, y, operation) -> IO.NodeOutput:
|
||||
output = destination.reshape((-1, destination.shape[-2], destination.shape[-1])).clone()
|
||||
source = source.reshape((-1, source.shape[-2], source.shape[-1]))
|
||||
source = source.to(output.device)
|
||||
|
||||
left, top = (x, y,)
|
||||
right, bottom = (min(left + source.shape[-1], destination.shape[-1]), min(top + source.shape[-2], destination.shape[-2]))
|
||||
visible_width, visible_height = (right - left, bottom - top,)
|
||||
|
||||
source_portion = source[:, :visible_height, :visible_width]
|
||||
destination_portion = output[:, top:bottom, left:right]
|
||||
|
||||
if operation == "multiply":
|
||||
output[:, top:bottom, left:right] = destination_portion * source_portion
|
||||
elif operation == "add":
|
||||
output[:, top:bottom, left:right] = destination_portion + source_portion
|
||||
elif operation == "subtract":
|
||||
output[:, top:bottom, left:right] = destination_portion - source_portion
|
||||
elif operation == "and":
|
||||
output[:, top:bottom, left:right] = torch.bitwise_and(destination_portion.round().bool(), source_portion.round().bool()).float()
|
||||
elif operation == "or":
|
||||
output[:, top:bottom, left:right] = torch.bitwise_or(destination_portion.round().bool(), source_portion.round().bool()).float()
|
||||
elif operation == "xor":
|
||||
output[:, top:bottom, left:right] = torch.bitwise_xor(destination_portion.round().bool(), source_portion.round().bool()).float()
|
||||
|
||||
output = torch.clamp(output, 0.0, 1.0)
|
||||
|
||||
return IO.NodeOutput(output)
|
||||
|
||||
combine = execute # TODO: remove
|
||||
|
||||
|
||||
class FeatherMask(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="FeatherMask",
|
||||
search_aliases=["soft edge mask", "blur mask edges", "gradient mask edge"],
|
||||
display_name="Feather Mask",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
IO.Mask.Input("mask"),
|
||||
IO.Int.Input("left", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("top", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("right", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("bottom", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
],
|
||||
outputs=[IO.Mask.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, mask, left, top, right, bottom) -> IO.NodeOutput:
|
||||
output = mask.reshape((-1, mask.shape[-2], mask.shape[-1])).clone()
|
||||
|
||||
left = min(left, output.shape[-1])
|
||||
right = min(right, output.shape[-1])
|
||||
top = min(top, output.shape[-2])
|
||||
bottom = min(bottom, output.shape[-2])
|
||||
|
||||
for x in range(left):
|
||||
feather_rate = (x + 1.0) / left
|
||||
output[:, :, x] *= feather_rate
|
||||
|
||||
for x in range(right):
|
||||
feather_rate = (x + 1) / right
|
||||
output[:, :, -(x + 1)] *= feather_rate
|
||||
|
||||
for y in range(top):
|
||||
feather_rate = (y + 1) / top
|
||||
output[:, y, :] *= feather_rate
|
||||
|
||||
for y in range(bottom):
|
||||
feather_rate = (y + 1) / bottom
|
||||
output[:, -(y + 1), :] *= feather_rate
|
||||
|
||||
return IO.NodeOutput(output)
|
||||
|
||||
feather = execute # TODO: remove
|
||||
|
||||
|
||||
class GrowMask(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="GrowMask",
|
||||
search_aliases=["expand mask", "shrink mask"],
|
||||
display_name="Grow Mask",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
IO.Mask.Input("mask"),
|
||||
IO.Int.Input("expand", default=0, min=-nodes.MAX_RESOLUTION, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Boolean.Input("tapered_corners", default=True, advanced=True),
|
||||
],
|
||||
outputs=[IO.Mask.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, mask, expand, tapered_corners) -> IO.NodeOutput:
|
||||
c = 0 if tapered_corners else 1
|
||||
kernel = np.array([[c, 1, c],
|
||||
[1, 1, 1],
|
||||
[c, 1, c]])
|
||||
mask = mask.reshape((-1, mask.shape[-2], mask.shape[-1]))
|
||||
out = []
|
||||
for m in mask:
|
||||
output = m.numpy()
|
||||
for _ in range(abs(expand)):
|
||||
if expand < 0:
|
||||
output = scipy.ndimage.grey_erosion(output, footprint=kernel)
|
||||
else:
|
||||
output = scipy.ndimage.grey_dilation(output, footprint=kernel)
|
||||
output = torch.from_numpy(output)
|
||||
out.append(output)
|
||||
return IO.NodeOutput(torch.stack(out, dim=0))
|
||||
|
||||
expand_mask = execute # TODO: remove
|
||||
|
||||
class ThresholdMask(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ThresholdMask",
|
||||
search_aliases=["binary mask"],
|
||||
display_name="Threshold Mask",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
IO.Mask.Input("mask"),
|
||||
IO.Float.Input("value", default=0.5, min=0.0, max=1.0, step=0.01),
|
||||
],
|
||||
outputs=[IO.Mask.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, mask, value) -> IO.NodeOutput:
|
||||
mask = (mask > value).float()
|
||||
return IO.NodeOutput(mask)
|
||||
|
||||
image_to_mask = execute # TODO: remove
|
||||
|
||||
|
||||
# Mask Preview - original implement from
|
||||
# https://github.com/cubiq/ComfyUI_essentials/blob/9d9f4bedfc9f0321c19faf71855e228c93bd0dc9/mask.py#L81
|
||||
# upstream requested in https://github.com/Kosinkadink/rfcs/blob/main/rfcs/0000-corenodes.md#preview-nodes
|
||||
class MaskPreview(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="MaskPreview",
|
||||
search_aliases=["show mask", "view mask", "inspect mask", "debug mask"],
|
||||
display_name="Preview Mask",
|
||||
category="image/mask",
|
||||
description="Preview the masks without saving them to the ComfyUI output directory.",
|
||||
inputs=[
|
||||
IO.Mask.Input("mask"),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
outputs=[IO.Mask.Output(display_name="mask")]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, mask, filename_prefix="ComfyUI") -> IO.NodeOutput:
|
||||
return IO.NodeOutput(mask, ui=UI.PreviewMask(mask))
|
||||
|
||||
|
||||
class MaskExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[IO.ComfyNode]]:
|
||||
return [
|
||||
LatentCompositeMasked,
|
||||
ImageCompositeMasked,
|
||||
MaskToImage,
|
||||
ImageToMask,
|
||||
ImageColorToMask,
|
||||
SolidMask,
|
||||
InvertMask,
|
||||
CropMask,
|
||||
MaskComposite,
|
||||
FeatherMask,
|
||||
GrowMask,
|
||||
ThresholdMask,
|
||||
MaskPreview,
|
||||
]
|
||||
|
||||
|
||||
async def comfy_entrypoint() -> MaskExtension:
|
||||
return MaskExtension()
|
||||
+909
@@ -0,0 +1,909 @@
|
||||
from typing_extensions import override
|
||||
import numpy as np
|
||||
import torch
|
||||
import torch.nn.functional as F
|
||||
from PIL import Image
|
||||
import math
|
||||
from enum import Enum
|
||||
from typing import TypedDict, Literal
|
||||
import kornia
|
||||
|
||||
import comfy.utils
|
||||
import comfy.model_management
|
||||
from comfy_extras.nodes_latent import reshape_latent_to
|
||||
import node_helpers
|
||||
from comfy_api.latest import ComfyExtension, io
|
||||
from nodes import MAX_RESOLUTION
|
||||
|
||||
class Blend(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ImageBlend",
|
||||
search_aliases=["mix images"],
|
||||
display_name="Blend Images",
|
||||
category="image/filters",
|
||||
essentials_category="Image Tools",
|
||||
inputs=[
|
||||
io.Image.Input("image1"),
|
||||
io.Image.Input("image2"),
|
||||
io.Float.Input("blend_factor", default=0.5, min=0.0, max=1.0, step=0.01),
|
||||
io.Combo.Input("blend_mode", options=["normal", "multiply", "screen", "overlay", "soft_light", "difference"]),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image1: torch.Tensor, image2: torch.Tensor, blend_factor: float, blend_mode: str) -> io.NodeOutput:
|
||||
image1, image2 = node_helpers.image_alpha_fix(image1, image2)
|
||||
image2 = image2.to(image1.device)
|
||||
if image1.shape != image2.shape:
|
||||
image2 = image2.permute(0, 3, 1, 2)
|
||||
image2 = comfy.utils.common_upscale(image2, image1.shape[2], image1.shape[1], upscale_method='bicubic', crop='center')
|
||||
image2 = image2.permute(0, 2, 3, 1)
|
||||
|
||||
blended_image = cls.blend_mode(image1, image2, blend_mode)
|
||||
blended_image = image1 * (1 - blend_factor) + blended_image * blend_factor
|
||||
blended_image = torch.clamp(blended_image, 0, 1)
|
||||
return io.NodeOutput(blended_image)
|
||||
|
||||
@classmethod
|
||||
def blend_mode(cls, img1, img2, mode):
|
||||
if mode == "normal":
|
||||
return img2
|
||||
elif mode == "multiply":
|
||||
return img1 * img2
|
||||
elif mode == "screen":
|
||||
return 1 - (1 - img1) * (1 - img2)
|
||||
elif mode == "overlay":
|
||||
return torch.where(img1 <= 0.5, 2 * img1 * img2, 1 - 2 * (1 - img1) * (1 - img2))
|
||||
elif mode == "soft_light":
|
||||
return torch.where(img2 <= 0.5, img1 - (1 - 2 * img2) * img1 * (1 - img1), img1 + (2 * img2 - 1) * (cls.g(img1) - img1))
|
||||
elif mode == "difference":
|
||||
return img1 - img2
|
||||
raise ValueError(f"Unsupported blend mode: {mode}")
|
||||
|
||||
@classmethod
|
||||
def g(cls, x):
|
||||
return torch.where(x <= 0.25, ((16 * x - 12) * x + 4) * x, torch.sqrt(x))
|
||||
|
||||
def gaussian_kernel(kernel_size: int, sigma: float, device=None, dtype=torch.float32):
|
||||
x, y = torch.meshgrid(torch.linspace(-1, 1, kernel_size, device=device), torch.linspace(-1, 1, kernel_size, device=device), indexing="ij")
|
||||
d = torch.sqrt(x * x + y * y)
|
||||
g = torch.exp(-(d * d) / (2.0 * sigma * sigma))
|
||||
return (g / g.sum()).to(dtype)
|
||||
|
||||
class Blur(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ImageBlur",
|
||||
display_name="Blur Image",
|
||||
category="image/filters",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
io.Int.Input("blur_radius", default=1, min=1, max=31, step=1),
|
||||
io.Float.Input("sigma", default=1.0, min=0.1, max=10.0, step=0.1),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image: torch.Tensor, blur_radius: int, sigma: float) -> io.NodeOutput:
|
||||
if blur_radius == 0:
|
||||
return io.NodeOutput(image)
|
||||
|
||||
image = image.to(comfy.model_management.get_torch_device())
|
||||
batch_size, height, width, channels = image.shape
|
||||
|
||||
kernel_size = blur_radius * 2 + 1
|
||||
kernel = gaussian_kernel(kernel_size, sigma, device=image.device, dtype=image.dtype).repeat(channels, 1, 1).unsqueeze(1)
|
||||
|
||||
image = image.permute(0, 3, 1, 2) # Torch wants (B, C, H, W) we use (B, H, W, C)
|
||||
padded_image = F.pad(image, (blur_radius,blur_radius,blur_radius,blur_radius), 'reflect')
|
||||
blurred = F.conv2d(padded_image, kernel, padding=kernel_size // 2, groups=channels)[:,:,blur_radius:-blur_radius, blur_radius:-blur_radius]
|
||||
blurred = blurred.permute(0, 2, 3, 1)
|
||||
|
||||
return io.NodeOutput(blurred.to(comfy.model_management.intermediate_device()))
|
||||
|
||||
|
||||
class Quantize(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ImageQuantize",
|
||||
display_name="Quantize Image",
|
||||
category="image/filters",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
io.Int.Input("colors", default=256, min=1, max=256, step=1),
|
||||
io.Combo.Input("dither", options=["none", "floyd-steinberg", "bayer-2", "bayer-4", "bayer-8", "bayer-16"]),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def bayer(im, pal_im, order):
|
||||
def normalized_bayer_matrix(n):
|
||||
if n == 0:
|
||||
return np.zeros((1,1), "float32")
|
||||
else:
|
||||
q = 4 ** n
|
||||
m = q * normalized_bayer_matrix(n - 1)
|
||||
return np.bmat(((m-1.5, m+0.5), (m+1.5, m-0.5))) / q
|
||||
|
||||
num_colors = len(pal_im.getpalette()) // 3
|
||||
spread = 2 * 256 / num_colors
|
||||
bayer_n = int(math.log2(order))
|
||||
bayer_matrix = torch.from_numpy(spread * normalized_bayer_matrix(bayer_n) + 0.5)
|
||||
|
||||
result = torch.from_numpy(np.array(im).astype(np.float32))
|
||||
tw = math.ceil(result.shape[0] / bayer_matrix.shape[0])
|
||||
th = math.ceil(result.shape[1] / bayer_matrix.shape[1])
|
||||
tiled_matrix = bayer_matrix.tile(tw, th).unsqueeze(-1)
|
||||
result.add_(tiled_matrix[:result.shape[0],:result.shape[1]]).clamp_(0, 255)
|
||||
result = result.to(dtype=torch.uint8)
|
||||
|
||||
im = Image.fromarray(result.cpu().numpy())
|
||||
im = im.quantize(palette=pal_im, dither=Image.Dither.NONE)
|
||||
return im
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image: torch.Tensor, colors: int, dither: str) -> io.NodeOutput:
|
||||
batch_size, height, width, _ = image.shape
|
||||
result = torch.zeros_like(image)
|
||||
|
||||
for b in range(batch_size):
|
||||
im = Image.fromarray((image[b] * 255).to(torch.uint8).numpy(), mode='RGB')
|
||||
|
||||
pal_im = im.quantize(colors=colors) # Required as described in https://github.com/python-pillow/Pillow/issues/5836
|
||||
|
||||
if dither == "none":
|
||||
quantized_image = im.quantize(palette=pal_im, dither=Image.Dither.NONE)
|
||||
elif dither == "floyd-steinberg":
|
||||
quantized_image = im.quantize(palette=pal_im, dither=Image.Dither.FLOYDSTEINBERG)
|
||||
elif dither.startswith("bayer"):
|
||||
order = int(dither.split('-')[-1])
|
||||
quantized_image = Quantize.bayer(im, pal_im, order)
|
||||
|
||||
quantized_array = torch.tensor(np.array(quantized_image.convert("RGB"))).float() / 255
|
||||
result[b] = quantized_array
|
||||
|
||||
return io.NodeOutput(result)
|
||||
|
||||
class Sharpen(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ImageSharpen",
|
||||
display_name="Sharpen Image",
|
||||
category="image/filters",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
io.Int.Input("sharpen_radius", default=1, min=1, max=31, step=1, advanced=True),
|
||||
io.Float.Input("sigma", default=1.0, min=0.1, max=10.0, step=0.01, advanced=True),
|
||||
io.Float.Input("alpha", default=1.0, min=0.0, max=5.0, step=0.01, advanced=True),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image: torch.Tensor, sharpen_radius: int, sigma:float, alpha: float) -> io.NodeOutput:
|
||||
if sharpen_radius == 0:
|
||||
return io.NodeOutput(image)
|
||||
|
||||
batch_size, height, width, channels = image.shape
|
||||
image = image.to(comfy.model_management.get_torch_device())
|
||||
|
||||
kernel_size = sharpen_radius * 2 + 1
|
||||
kernel = gaussian_kernel(kernel_size, sigma, device=image.device, dtype=image.dtype) * -(alpha*10)
|
||||
kernel = kernel.to(dtype=image.dtype)
|
||||
center = kernel_size // 2
|
||||
kernel[center, center] = kernel[center, center] - kernel.sum() + 1.0
|
||||
kernel = kernel.repeat(channels, 1, 1).unsqueeze(1)
|
||||
|
||||
tensor_image = image.permute(0, 3, 1, 2) # Torch wants (B, C, H, W) we use (B, H, W, C)
|
||||
tensor_image = F.pad(tensor_image, (sharpen_radius,sharpen_radius,sharpen_radius,sharpen_radius), 'reflect')
|
||||
sharpened = F.conv2d(tensor_image, kernel, padding=center, groups=channels)[:,:,sharpen_radius:-sharpen_radius, sharpen_radius:-sharpen_radius]
|
||||
sharpened = sharpened.permute(0, 2, 3, 1)
|
||||
|
||||
result = torch.clamp(sharpened, 0, 1)
|
||||
|
||||
return io.NodeOutput(result.to(comfy.model_management.intermediate_device()))
|
||||
|
||||
class ImageScaleToTotalPixels(io.ComfyNode):
|
||||
upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"]
|
||||
crop_methods = ["disabled", "center"]
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ImageScaleToTotalPixels",
|
||||
display_name="Scale Image to Total Pixels",
|
||||
category="image/upscaling",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
io.Combo.Input("upscale_method", options=cls.upscale_methods),
|
||||
io.Float.Input("megapixels", default=1.0, min=0.01, max=16.0, step=0.01),
|
||||
io.Int.Input("resolution_steps", default=1, min=1, max=256, advanced=True),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, upscale_method, megapixels, resolution_steps) -> io.NodeOutput:
|
||||
samples = image.movedim(-1,1)
|
||||
total = megapixels * 1024 * 1024
|
||||
|
||||
scale_by = math.sqrt(total / (samples.shape[3] * samples.shape[2]))
|
||||
width = round(samples.shape[3] * scale_by / resolution_steps) * resolution_steps
|
||||
height = round(samples.shape[2] * scale_by / resolution_steps) * resolution_steps
|
||||
|
||||
s = comfy.utils.common_upscale(samples, int(width), int(height), upscale_method, "disabled")
|
||||
s = s.movedim(1,-1)
|
||||
return io.NodeOutput(s)
|
||||
|
||||
class ResizeType(str, Enum):
|
||||
SCALE_BY = "scale by multiplier"
|
||||
SCALE_DIMENSIONS = "scale dimensions"
|
||||
SCALE_LONGER_DIMENSION = "scale longer dimension"
|
||||
SCALE_SHORTER_DIMENSION = "scale shorter dimension"
|
||||
SCALE_WIDTH = "scale width"
|
||||
SCALE_HEIGHT = "scale height"
|
||||
SCALE_TOTAL_PIXELS = "scale total pixels"
|
||||
MATCH_SIZE = "match size"
|
||||
SCALE_TO_MULTIPLE = "scale to multiple"
|
||||
|
||||
def is_image(input: torch.Tensor) -> bool:
|
||||
# images have 4 dimensions: [batch, height, width, channels]
|
||||
# masks have 3 dimensions: [batch, height, width]
|
||||
return len(input.shape) == 4
|
||||
|
||||
def init_image_mask_input(input: torch.Tensor, is_type_image: bool) -> torch.Tensor:
|
||||
if is_type_image:
|
||||
input = input.movedim(-1, 1)
|
||||
else:
|
||||
input = input.unsqueeze(1)
|
||||
return input
|
||||
|
||||
def finalize_image_mask_input(input: torch.Tensor, is_type_image: bool) -> torch.Tensor:
|
||||
if is_type_image:
|
||||
input = input.movedim(1, -1)
|
||||
else:
|
||||
input = input.squeeze(1)
|
||||
return input
|
||||
|
||||
def scale_by(input: torch.Tensor, multiplier: float, scale_method: str) -> torch.Tensor:
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
width = round(input.shape[-1] * multiplier)
|
||||
height = round(input.shape[-2] * multiplier)
|
||||
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, "disabled")
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_dimensions(input: torch.Tensor, width: int, height: int, scale_method: str, crop: str="disabled") -> torch.Tensor:
|
||||
if width == 0 and height == 0:
|
||||
return input
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
|
||||
if width == 0:
|
||||
width = max(1, round(input.shape[-1] * height / input.shape[-2]))
|
||||
elif height == 0:
|
||||
height = max(1, round(input.shape[-2] * width / input.shape[-1]))
|
||||
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, crop)
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_longer_dimension(input: torch.Tensor, longer_size: int, scale_method: str) -> torch.Tensor:
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
width = input.shape[-1]
|
||||
height = input.shape[-2]
|
||||
|
||||
if height > width:
|
||||
width = round((width / height) * longer_size)
|
||||
height = longer_size
|
||||
elif width > height:
|
||||
height = round((height / width) * longer_size)
|
||||
width = longer_size
|
||||
else:
|
||||
height = longer_size
|
||||
width = longer_size
|
||||
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, "disabled")
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_shorter_dimension(input: torch.Tensor, shorter_size: int, scale_method: str) -> torch.Tensor:
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
width = input.shape[-1]
|
||||
height = input.shape[-2]
|
||||
|
||||
if height < width:
|
||||
width = round((width / height) * shorter_size)
|
||||
height = shorter_size
|
||||
elif width < height:
|
||||
height = round((height / width) * shorter_size)
|
||||
width = shorter_size
|
||||
else:
|
||||
height = shorter_size
|
||||
width = shorter_size
|
||||
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, "disabled")
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_total_pixels(input: torch.Tensor, megapixels: float, scale_method: str) -> torch.Tensor:
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
total = int(megapixels * 1024 * 1024)
|
||||
|
||||
scale_by = math.sqrt(total / (input.shape[-1] * input.shape[-2]))
|
||||
width = round(input.shape[-1] * scale_by)
|
||||
height = round(input.shape[-2] * scale_by)
|
||||
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, "disabled")
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_match_size(input: torch.Tensor, match: torch.Tensor, scale_method: str, crop: str) -> torch.Tensor:
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
match = init_image_mask_input(match, is_image(match))
|
||||
|
||||
width = match.shape[-1]
|
||||
height = match.shape[-2]
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, crop)
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_to_multiple_cover(input: torch.Tensor, multiple: int, scale_method: str) -> torch.Tensor:
|
||||
if multiple <= 1:
|
||||
return input
|
||||
is_type_image = is_image(input)
|
||||
if is_type_image:
|
||||
_, height, width, _ = input.shape
|
||||
else:
|
||||
_, height, width = input.shape
|
||||
target_w = (width // multiple) * multiple
|
||||
target_h = (height // multiple) * multiple
|
||||
if target_w == 0 or target_h == 0:
|
||||
return input
|
||||
if target_w == width and target_h == height:
|
||||
return input
|
||||
s_w = target_w / width
|
||||
s_h = target_h / height
|
||||
if s_w >= s_h:
|
||||
scaled_w = target_w
|
||||
scaled_h = int(math.ceil(height * s_w))
|
||||
if scaled_h < target_h:
|
||||
scaled_h = target_h
|
||||
else:
|
||||
scaled_h = target_h
|
||||
scaled_w = int(math.ceil(width * s_h))
|
||||
if scaled_w < target_w:
|
||||
scaled_w = target_w
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
input = comfy.utils.common_upscale(input, scaled_w, scaled_h, scale_method, "disabled")
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
x0 = (scaled_w - target_w) // 2
|
||||
y0 = (scaled_h - target_h) // 2
|
||||
x1 = x0 + target_w
|
||||
y1 = y0 + target_h
|
||||
if is_type_image:
|
||||
return input[:, y0:y1, x0:x1, :]
|
||||
return input[:, y0:y1, x0:x1]
|
||||
|
||||
class ResizeImageMaskNode(io.ComfyNode):
|
||||
scale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"]
|
||||
crop_methods = ["disabled", "center"]
|
||||
|
||||
class ResizeTypedDict(TypedDict):
|
||||
resize_type: ResizeType
|
||||
scale_method: Literal["nearest-exact", "bilinear", "area", "bicubic", "lanczos"]
|
||||
crop: Literal["disabled", "center"]
|
||||
multiplier: float
|
||||
width: int
|
||||
height: int
|
||||
longer_size: int
|
||||
shorter_size: int
|
||||
megapixels: float
|
||||
multiple: int
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
template = io.MatchType.Template("input_type", [io.Image, io.Mask])
|
||||
crop_combo = io.Combo.Input(
|
||||
"crop",
|
||||
options=cls.crop_methods,
|
||||
default="center",
|
||||
tooltip="How to handle aspect ratio mismatch: 'disabled' stretches to fit, 'center' crops to maintain aspect ratio.",
|
||||
)
|
||||
return io.Schema(
|
||||
node_id="ResizeImageMaskNode",
|
||||
display_name="Resize Image/Mask",
|
||||
description="Resize an image or mask using various scaling methods.",
|
||||
category="image/transform",
|
||||
search_aliases=["resize", "resize image", "resize mask", "scale", "scale image", "scale mask", "image resize", "change size", "dimensions", "shrink", "enlarge"],
|
||||
inputs=[
|
||||
io.MatchType.Input("input", template=template),
|
||||
io.DynamicCombo.Input(
|
||||
"resize_type",
|
||||
tooltip="Select how to resize: by exact dimensions, scale factor, matching another image, etc.",
|
||||
options=[
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_DIMENSIONS, [
|
||||
io.Int.Input("width", default=512, min=0, max=MAX_RESOLUTION, step=1, tooltip="Target width in pixels. Set to 0 to auto-calculate from height while preserving aspect ratio."),
|
||||
io.Int.Input("height", default=512, min=0, max=MAX_RESOLUTION, step=1, tooltip="Target height in pixels. Set to 0 to auto-calculate from width while preserving aspect ratio."),
|
||||
crop_combo,
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_BY, [
|
||||
io.Float.Input("multiplier", default=1.00, min=0.01, max=8.0, step=0.01, tooltip="Scale factor (e.g., 2.0 doubles size, 0.5 halves size)."),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_LONGER_DIMENSION, [
|
||||
io.Int.Input("longer_size", default=512, min=0, max=MAX_RESOLUTION, step=1, tooltip="The longer edge will be resized to this value. Aspect ratio is preserved."),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_SHORTER_DIMENSION, [
|
||||
io.Int.Input("shorter_size", default=512, min=0, max=MAX_RESOLUTION, step=1, tooltip="The shorter edge will be resized to this value. Aspect ratio is preserved."),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_WIDTH, [
|
||||
io.Int.Input("width", default=512, min=0, max=MAX_RESOLUTION, step=1, tooltip="Target width in pixels. Height auto-adjusts to preserve aspect ratio."),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_HEIGHT, [
|
||||
io.Int.Input("height", default=512, min=0, max=MAX_RESOLUTION, step=1, tooltip="Target height in pixels. Width auto-adjusts to preserve aspect ratio."),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_TOTAL_PIXELS, [
|
||||
io.Float.Input("megapixels", default=1.0, min=0.01, max=16.0, step=0.01, tooltip="Target total megapixels (e.g., 1.0 ≈ 1024×1024). Aspect ratio is preserved."),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.MATCH_SIZE, [
|
||||
io.MultiType.Input("match", [io.Image, io.Mask], tooltip="Resize input to match the dimensions of this reference image or mask."),
|
||||
crop_combo,
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_TO_MULTIPLE, [
|
||||
io.Int.Input("multiple", default=8, min=1, max=MAX_RESOLUTION, step=1, tooltip="Resize so width and height are divisible by this number. Useful for latent alignment (e.g., 8 or 64)."),
|
||||
]),
|
||||
],
|
||||
),
|
||||
io.Combo.Input(
|
||||
"scale_method",
|
||||
options=cls.scale_methods,
|
||||
default="area",
|
||||
tooltip="Interpolation algorithm. 'area' is best for downscaling, 'lanczos' for upscaling, 'nearest-exact' for pixel art.",
|
||||
),
|
||||
],
|
||||
outputs=[io.MatchType.Output(template=template, display_name="resized")]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, input: io.Image.Type | io.Mask.Type, scale_method: io.Combo.Type, resize_type: ResizeTypedDict) -> io.NodeOutput:
|
||||
selected_type = resize_type["resize_type"]
|
||||
if selected_type == ResizeType.SCALE_BY:
|
||||
return io.NodeOutput(scale_by(input, resize_type["multiplier"], scale_method))
|
||||
elif selected_type == ResizeType.SCALE_DIMENSIONS:
|
||||
return io.NodeOutput(scale_dimensions(input, resize_type["width"], resize_type["height"], scale_method, resize_type["crop"]))
|
||||
elif selected_type == ResizeType.SCALE_LONGER_DIMENSION:
|
||||
return io.NodeOutput(scale_longer_dimension(input, resize_type["longer_size"], scale_method))
|
||||
elif selected_type == ResizeType.SCALE_SHORTER_DIMENSION:
|
||||
return io.NodeOutput(scale_shorter_dimension(input, resize_type["shorter_size"], scale_method))
|
||||
elif selected_type == ResizeType.SCALE_WIDTH:
|
||||
return io.NodeOutput(scale_dimensions(input, resize_type["width"], 0, scale_method))
|
||||
elif selected_type == ResizeType.SCALE_HEIGHT:
|
||||
return io.NodeOutput(scale_dimensions(input, 0, resize_type["height"], scale_method))
|
||||
elif selected_type == ResizeType.SCALE_TOTAL_PIXELS:
|
||||
return io.NodeOutput(scale_total_pixels(input, resize_type["megapixels"], scale_method))
|
||||
elif selected_type == ResizeType.MATCH_SIZE:
|
||||
return io.NodeOutput(scale_match_size(input, resize_type["match"], scale_method, resize_type["crop"]))
|
||||
elif selected_type == ResizeType.SCALE_TO_MULTIPLE:
|
||||
return io.NodeOutput(scale_to_multiple_cover(input, resize_type["multiple"], scale_method))
|
||||
raise ValueError(f"Unsupported resize type: {selected_type}")
|
||||
|
||||
def batch_images(images: list[torch.Tensor]) -> torch.Tensor | None:
|
||||
if len(images) == 0:
|
||||
return None
|
||||
# first, get the max channels count
|
||||
max_channels = max(image.shape[-1] for image in images)
|
||||
# then, pad all images to have the same channels count
|
||||
padded_images: list[torch.Tensor] = []
|
||||
for image in images:
|
||||
if image.shape[-1] < max_channels:
|
||||
padded_images.append(torch.nn.functional.pad(image, (0,1), mode='constant', value=1.0))
|
||||
else:
|
||||
padded_images.append(image)
|
||||
# resize all images to be the same size as the first image
|
||||
resized_images: list[torch.Tensor] = []
|
||||
first_image_shape = padded_images[0].shape
|
||||
for image in padded_images:
|
||||
if image.shape[1:] != first_image_shape[1:]:
|
||||
resized_images.append(comfy.utils.common_upscale(image.movedim(-1,1), first_image_shape[2], first_image_shape[1], "bilinear", "center").movedim(1,-1))
|
||||
else:
|
||||
resized_images.append(image)
|
||||
# batch the images in the format [b, h, w, c]
|
||||
return torch.cat(resized_images, dim=0)
|
||||
|
||||
def batch_masks(masks: list[torch.Tensor]) -> torch.Tensor | None:
|
||||
if len(masks) == 0:
|
||||
return None
|
||||
# resize all masks to be the same size as the first mask
|
||||
resized_masks: list[torch.Tensor] = []
|
||||
first_mask_shape = masks[0].shape
|
||||
for mask in masks:
|
||||
if mask.shape[1:] != first_mask_shape[1:]:
|
||||
mask = init_image_mask_input(mask, is_type_image=False)
|
||||
mask = comfy.utils.common_upscale(mask, first_mask_shape[2], first_mask_shape[1], "bilinear", "center")
|
||||
resized_masks.append(finalize_image_mask_input(mask, is_type_image=False))
|
||||
else:
|
||||
resized_masks.append(mask)
|
||||
# batch the masks in the format [b, h, w]
|
||||
return torch.cat(resized_masks, dim=0)
|
||||
|
||||
def batch_latents(latents: list[dict[str, torch.Tensor]]) -> dict[str, torch.Tensor] | None:
|
||||
if len(latents) == 0:
|
||||
return None
|
||||
samples_out = latents[0].copy()
|
||||
samples_out["batch_index"] = []
|
||||
first_samples = latents[0]["samples"]
|
||||
tensors: list[torch.Tensor] = []
|
||||
for latent in latents:
|
||||
# first, deal with latent tensors
|
||||
tensors.append(reshape_latent_to(first_samples.shape, latent["samples"], repeat_batch=False))
|
||||
# next, deal with batch_index
|
||||
samples_out["batch_index"].extend(latent.get("batch_index", [x for x in range(0, latent["samples"].shape[0])]))
|
||||
samples_out["samples"] = torch.cat(tensors, dim=0)
|
||||
return samples_out
|
||||
|
||||
class BatchImagesNode(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
autogrow_template = io.Autogrow.TemplatePrefix(io.Image.Input("image"), prefix="image", min=1, max=50)
|
||||
return io.Schema(
|
||||
node_id="BatchImagesNode",
|
||||
display_name="Batch Images",
|
||||
category="image/batch",
|
||||
essentials_category="Image Tools",
|
||||
search_aliases=["batch", "image batch", "batch images", "combine images", "merge images", "stack images"],
|
||||
inputs=[
|
||||
io.Autogrow.Input("images", template=autogrow_template)
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output()
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, images: io.Autogrow.Type) -> io.NodeOutput:
|
||||
return io.NodeOutput(batch_images(list(images.values())))
|
||||
|
||||
class BatchMasksNode(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
autogrow_template = io.Autogrow.TemplatePrefix(io.Mask.Input("mask"), prefix="mask", min=1, max=50)
|
||||
return io.Schema(
|
||||
node_id="BatchMasksNode",
|
||||
search_aliases=["combine masks", "stack masks", "merge masks"],
|
||||
display_name="Batch Masks",
|
||||
category="image/mask",
|
||||
inputs=[
|
||||
io.Autogrow.Input("masks", template=autogrow_template)
|
||||
],
|
||||
outputs=[
|
||||
io.Mask.Output()
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, masks: io.Autogrow.Type) -> io.NodeOutput:
|
||||
return io.NodeOutput(batch_masks(list(masks.values())))
|
||||
|
||||
class BatchLatentsNode(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
autogrow_template = io.Autogrow.TemplatePrefix(io.Latent.Input("latent"), prefix="latent", min=1, max=50)
|
||||
return io.Schema(
|
||||
node_id="BatchLatentsNode",
|
||||
search_aliases=["combine latents", "stack latents", "merge latents"],
|
||||
display_name="Batch Latents",
|
||||
category="model/latent/batch",
|
||||
inputs=[
|
||||
io.Autogrow.Input("latents", template=autogrow_template)
|
||||
],
|
||||
outputs=[
|
||||
io.Latent.Output()
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, latents: io.Autogrow.Type) -> io.NodeOutput:
|
||||
return io.NodeOutput(batch_latents(list(latents.values())))
|
||||
|
||||
class BatchImagesMasksLatentsNode(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
matchtype_template = io.MatchType.Template("input", allowed_types=[io.Image, io.Mask, io.Latent])
|
||||
autogrow_template = io.Autogrow.TemplatePrefix(
|
||||
io.MatchType.Input("input", matchtype_template),
|
||||
prefix="input", min=1, max=50)
|
||||
return io.Schema(
|
||||
node_id="BatchImagesMasksLatentsNode",
|
||||
search_aliases=["combine batch", "merge batch", "stack inputs"],
|
||||
display_name="Batch Images/Masks/Latents",
|
||||
category="util",
|
||||
inputs=[
|
||||
io.Autogrow.Input("inputs", template=autogrow_template)
|
||||
],
|
||||
outputs=[
|
||||
io.MatchType.Output(id=None, template=matchtype_template)
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, inputs: io.Autogrow.Type) -> io.NodeOutput:
|
||||
batched = None
|
||||
values = list(inputs.values())
|
||||
# latents
|
||||
if isinstance(values[0], dict):
|
||||
batched = batch_latents(values)
|
||||
# images
|
||||
elif is_image(values[0]):
|
||||
batched = batch_images(values)
|
||||
# masks
|
||||
else:
|
||||
batched = batch_masks(values)
|
||||
return io.NodeOutput(batched)
|
||||
|
||||
|
||||
class ColorTransfer(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ColorTransfer",
|
||||
display_name="Transfer Color",
|
||||
category="image/filters",
|
||||
description="Match the colors of one image to another using various algorithms.",
|
||||
search_aliases=["color match", "color grading", "color correction", "match colors", "color transform", "mkl", "reinhard", "histogram"],
|
||||
inputs=[
|
||||
io.Image.Input("image_target", tooltip="Image(s) to apply the color transform to."),
|
||||
io.Image.Input("image_ref", tooltip="Reference image(s) to match colors to."),
|
||||
io.Combo.Input("method", options=['reinhard_lab', 'mkl_lab', 'histogram'],),
|
||||
io.DynamicCombo.Input("source_stats",
|
||||
tooltip="per_frame: each frame matched to image_ref individually. uniform: pool stats across all source frames as baseline, match to image_ref. target_frame: use one chosen frame as the baseline for the transform to image_ref, applied uniformly to all frames (preserves relative differences)",
|
||||
options=[
|
||||
io.DynamicCombo.Option("per_frame", []),
|
||||
io.DynamicCombo.Option("uniform", []),
|
||||
io.DynamicCombo.Option("target_frame", [
|
||||
io.Int.Input("target_index", default=0, min=0, max=10000,
|
||||
tooltip="Frame index used as the source baseline for computing the transform to image_ref"),
|
||||
]),
|
||||
]),
|
||||
io.Float.Input("strength", default=1.0, min=0.0, max=10.0, step=0.01),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(display_name="image"),
|
||||
],
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def _to_lab(images, i, device):
|
||||
return kornia.color.rgb_to_lab(
|
||||
images[i:i+1].to(device, dtype=torch.float32).permute(0, 3, 1, 2))
|
||||
|
||||
@staticmethod
|
||||
def _pool_stats(images, device, is_reinhard, eps):
|
||||
"""Two-pass pooled mean + std/cov across all frames."""
|
||||
N, C = images.shape[0], images.shape[3]
|
||||
HW = images.shape[1] * images.shape[2]
|
||||
mean = torch.zeros(C, 1, device=device, dtype=torch.float32)
|
||||
for i in range(N):
|
||||
mean += ColorTransfer._to_lab(images, i, device).view(C, -1).mean(dim=-1, keepdim=True)
|
||||
mean /= N
|
||||
acc = torch.zeros(C, 1 if is_reinhard else C, device=device, dtype=torch.float32)
|
||||
for i in range(N):
|
||||
centered = ColorTransfer._to_lab(images, i, device).view(C, -1) - mean
|
||||
if is_reinhard:
|
||||
acc += (centered * centered).mean(dim=-1, keepdim=True)
|
||||
else:
|
||||
acc += centered @ centered.T / HW
|
||||
if is_reinhard:
|
||||
return mean, torch.sqrt(acc / N).clamp_min_(eps)
|
||||
return mean, acc / N
|
||||
|
||||
@staticmethod
|
||||
def _frame_stats(lab_flat, hw, is_reinhard, eps):
|
||||
"""Per-frame mean + std/cov."""
|
||||
mean = lab_flat.mean(dim=-1, keepdim=True)
|
||||
if is_reinhard:
|
||||
return mean, lab_flat.std(dim=-1, keepdim=True, unbiased=False).clamp_min_(eps)
|
||||
centered = lab_flat - mean
|
||||
return mean, centered @ centered.T / hw
|
||||
|
||||
@staticmethod
|
||||
def _mkl_matrix(cov_s, cov_r, eps):
|
||||
"""Compute MKL 3x3 transform matrix from source and ref covariances."""
|
||||
eig_val_s, eig_vec_s = torch.linalg.eigh(cov_s)
|
||||
sqrt_val_s = torch.sqrt(eig_val_s.clamp_min(0)).clamp_min_(eps)
|
||||
|
||||
scaled_V = eig_vec_s * sqrt_val_s.unsqueeze(0)
|
||||
mid = scaled_V.T @ cov_r @ scaled_V
|
||||
eig_val_m, eig_vec_m = torch.linalg.eigh(mid)
|
||||
sqrt_m = torch.sqrt(eig_val_m.clamp_min(0))
|
||||
|
||||
inv_sqrt_s = 1.0 / sqrt_val_s
|
||||
inv_scaled_V = eig_vec_s * inv_sqrt_s.unsqueeze(0)
|
||||
M_half = (eig_vec_m * sqrt_m.unsqueeze(0)) @ eig_vec_m.T
|
||||
return inv_scaled_V @ M_half @ inv_scaled_V.T
|
||||
|
||||
@staticmethod
|
||||
def _histogram_lut(src, ref, bins=256):
|
||||
"""Build per-channel LUT from source and ref histograms. src/ref: (C, HW) in [0,1]."""
|
||||
s_bins = (src * (bins - 1)).long().clamp(0, bins - 1)
|
||||
r_bins = (ref * (bins - 1)).long().clamp(0, bins - 1)
|
||||
s_hist = torch.zeros(src.shape[0], bins, device=src.device, dtype=src.dtype)
|
||||
r_hist = torch.zeros(src.shape[0], bins, device=src.device, dtype=src.dtype)
|
||||
ones_s = torch.ones_like(src)
|
||||
ones_r = torch.ones_like(ref)
|
||||
s_hist.scatter_add_(1, s_bins, ones_s)
|
||||
r_hist.scatter_add_(1, r_bins, ones_r)
|
||||
s_cdf = s_hist.cumsum(1)
|
||||
s_cdf = s_cdf / s_cdf[:, -1:]
|
||||
r_cdf = r_hist.cumsum(1)
|
||||
r_cdf = r_cdf / r_cdf[:, -1:]
|
||||
return torch.searchsorted(r_cdf, s_cdf).clamp_max_(bins - 1).float() / (bins - 1)
|
||||
|
||||
@classmethod
|
||||
def _pooled_cdf(cls, images, device, num_bins=256):
|
||||
"""Build pooled CDF across all frames, one frame at a time."""
|
||||
C = images.shape[3]
|
||||
hist = torch.zeros(C, num_bins, device=device, dtype=torch.float32)
|
||||
for i in range(images.shape[0]):
|
||||
frame = images[i].to(device, dtype=torch.float32).permute(2, 0, 1).reshape(C, -1)
|
||||
bins = (frame * (num_bins - 1)).long().clamp(0, num_bins - 1)
|
||||
hist.scatter_add_(1, bins, torch.ones_like(frame))
|
||||
cdf = hist.cumsum(1)
|
||||
return cdf / cdf[:, -1:]
|
||||
|
||||
@classmethod
|
||||
def _build_histogram_transform(cls, image_target, image_ref, device, stats_mode, target_index, B):
|
||||
"""Build per-frame or uniform LUT transform for histogram mode."""
|
||||
if stats_mode == 'per_frame':
|
||||
return None # LUT computed per-frame in the apply loop
|
||||
|
||||
r_cdf = cls._pooled_cdf(image_ref, device)
|
||||
if stats_mode == 'target_frame':
|
||||
ti = min(target_index, B - 1)
|
||||
s_cdf = cls._pooled_cdf(image_target[ti:ti+1], device)
|
||||
else:
|
||||
s_cdf = cls._pooled_cdf(image_target, device)
|
||||
return torch.searchsorted(r_cdf, s_cdf).clamp_max_(255).float() / 255.0
|
||||
|
||||
@classmethod
|
||||
def _build_lab_transform(cls, image_target, image_ref, device, stats_mode, target_index, is_reinhard):
|
||||
"""Build transform parameters for Lab-based methods. Returns a transform function."""
|
||||
eps = 1e-6
|
||||
B, H, W, C = image_target.shape
|
||||
B_ref = image_ref.shape[0]
|
||||
single_ref = B_ref == 1
|
||||
HW = H * W
|
||||
HW_ref = image_ref.shape[1] * image_ref.shape[2]
|
||||
|
||||
# Precompute ref stats
|
||||
if single_ref or stats_mode in ('uniform', 'target_frame'):
|
||||
ref_mean, ref_sc = cls._pool_stats(image_ref, device, is_reinhard, eps)
|
||||
|
||||
# Uniform/target_frame: precompute single affine transform
|
||||
if stats_mode in ('uniform', 'target_frame'):
|
||||
if stats_mode == 'target_frame':
|
||||
ti = min(target_index, B - 1)
|
||||
s_lab = cls._to_lab(image_target, ti, device).view(C, -1)
|
||||
s_mean, s_sc = cls._frame_stats(s_lab, HW, is_reinhard, eps)
|
||||
else:
|
||||
s_mean, s_sc = cls._pool_stats(image_target, device, is_reinhard, eps)
|
||||
|
||||
if is_reinhard:
|
||||
scale = ref_sc / s_sc
|
||||
offset = ref_mean - scale * s_mean
|
||||
return lambda src_flat, **_: src_flat * scale + offset
|
||||
T = cls._mkl_matrix(s_sc, ref_sc, eps)
|
||||
offset = ref_mean - T @ s_mean
|
||||
return lambda src_flat, **_: T @ src_flat + offset
|
||||
|
||||
# per_frame
|
||||
def per_frame_transform(src_flat, frame_idx):
|
||||
s_mean, s_sc = cls._frame_stats(src_flat, HW, is_reinhard, eps)
|
||||
|
||||
if single_ref:
|
||||
r_mean, r_sc = ref_mean, ref_sc
|
||||
else:
|
||||
ri = min(frame_idx, B_ref - 1)
|
||||
r_mean, r_sc = cls._frame_stats(cls._to_lab(image_ref, ri, device).view(C, -1), HW_ref, is_reinhard, eps)
|
||||
|
||||
centered = src_flat - s_mean
|
||||
if is_reinhard:
|
||||
return centered * (r_sc / s_sc) + r_mean
|
||||
T = cls._mkl_matrix(centered @ centered.T / HW, r_sc, eps)
|
||||
return T @ centered + r_mean
|
||||
|
||||
return per_frame_transform
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image_target, image_ref, method, source_stats, strength=1.0) -> io.NodeOutput:
|
||||
stats_mode = source_stats["source_stats"]
|
||||
target_index = source_stats.get("target_index", 0)
|
||||
|
||||
if strength == 0 or image_ref is None:
|
||||
return io.NodeOutput(image_target)
|
||||
|
||||
device = comfy.model_management.get_torch_device()
|
||||
intermediate_device = comfy.model_management.intermediate_device()
|
||||
intermediate_dtype = comfy.model_management.intermediate_dtype()
|
||||
|
||||
B, H, W, C = image_target.shape
|
||||
B_ref = image_ref.shape[0]
|
||||
pbar = comfy.utils.ProgressBar(B)
|
||||
out = torch.empty(B, H, W, C, device=intermediate_device, dtype=intermediate_dtype)
|
||||
|
||||
if method == 'histogram':
|
||||
uniform_lut = cls._build_histogram_transform(
|
||||
image_target, image_ref, device, stats_mode, target_index, B)
|
||||
|
||||
for i in range(B):
|
||||
src = image_target[i].to(device, dtype=torch.float32).permute(2, 0, 1)
|
||||
src_flat = src.reshape(C, -1)
|
||||
if uniform_lut is not None:
|
||||
lut = uniform_lut
|
||||
else:
|
||||
ri = min(i, B_ref - 1)
|
||||
ref = image_ref[ri].to(device, dtype=torch.float32).permute(2, 0, 1).reshape(C, -1)
|
||||
lut = cls._histogram_lut(src_flat, ref)
|
||||
bin_idx = (src_flat * 255).long().clamp(0, 255)
|
||||
matched = lut.gather(1, bin_idx).view(C, H, W)
|
||||
result = matched if strength == 1.0 else torch.lerp(src, matched, strength)
|
||||
out[i] = result.permute(1, 2, 0).clamp_(0, 1).to(device=intermediate_device, dtype=intermediate_dtype)
|
||||
pbar.update(1)
|
||||
else:
|
||||
transform = cls._build_lab_transform(image_target, image_ref, device, stats_mode, target_index, is_reinhard=method == "reinhard_lab")
|
||||
|
||||
for i in range(B):
|
||||
src_frame = cls._to_lab(image_target, i, device)
|
||||
corrected = transform(src_frame.view(C, -1), frame_idx=i)
|
||||
if strength == 1.0:
|
||||
result = kornia.color.lab_to_rgb(corrected.view(1, C, H, W))
|
||||
else:
|
||||
result = kornia.color.lab_to_rgb(torch.lerp(src_frame, corrected.view(1, C, H, W), strength))
|
||||
out[i] = result.squeeze(0).permute(1, 2, 0).clamp_(0, 1).to(device=intermediate_device, dtype=intermediate_dtype)
|
||||
pbar.update(1)
|
||||
|
||||
return io.NodeOutput(out)
|
||||
|
||||
|
||||
class PostProcessingExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||
return [
|
||||
Blend,
|
||||
Blur,
|
||||
Quantize,
|
||||
Sharpen,
|
||||
ImageScaleToTotalPixels,
|
||||
ResizeImageMaskNode,
|
||||
BatchImagesNode,
|
||||
BatchMasksNode,
|
||||
BatchLatentsNode,
|
||||
ColorTransfer,
|
||||
# BatchImagesMasksLatentsNode,
|
||||
]
|
||||
|
||||
async def comfy_entrypoint() -> PostProcessingExtension:
|
||||
return PostProcessingExtension()
|
||||
@@ -0,0 +1,571 @@
|
||||
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__))
|
||||
|
||||
if args.models_directory:
|
||||
models_dir = os.path.abspath(args.models_directory)
|
||||
else:
|
||||
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)
|
||||
|
||||
folder_names_and_paths["background_removal"] = ([os.path.join(models_dir, "background_removal")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["frame_interpolation"] = ([os.path.join(models_dir, "frame_interpolation")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["geometry_estimation"] = ([os.path.join(models_dir, "geometry_estimation")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["optical_flow"] = ([os.path.join(models_dir, "optical_flow")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["detection"] = ([os.path.join(models_dir, "detection")], 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
|
||||
|
||||
|
||||
# Content types a browser may execute or render inline. File endpoints that
|
||||
# serve user-controlled content must force these to download (and ideally set
|
||||
# Content-Disposition: attachment) to avoid stored XSS. Centralised here so the
|
||||
# /view and /userdata handlers can't drift apart. mimetypes.guess_type may
|
||||
# return either the text/* or application/* spelling depending on platform, so
|
||||
# both are listed.
|
||||
DANGEROUS_CONTENT_TYPES = {
|
||||
'text/html', 'text/html-sandboxed', 'application/xhtml+xml',
|
||||
'text/javascript', 'application/javascript', 'application/x-javascript',
|
||||
'application/ecmascript', 'text/css',
|
||||
'image/svg+xml', 'application/xml', 'text/xml',
|
||||
# message/rfc822 (.mht/.mhtml) can carry script in some browsers.
|
||||
'message/rfc822',
|
||||
}
|
||||
|
||||
|
||||
def is_dangerous_content_type(content_type: str | None) -> bool:
|
||||
"""Return True if a browser may execute or render `content_type` inline.
|
||||
|
||||
Normalises before matching so the check can't be slipped past with a
|
||||
charset/boundary parameter (``text/html; charset=utf-8``) or casing
|
||||
(``TEXT/HTML``). Any XML dialect (``*+xml`` or ``*/xml``) is treated as
|
||||
dangerous because XML can carry inline script via stylesheet/entity tricks,
|
||||
which also covers the ``application/{xslt,rss,atom,rdf}+xml`` family without
|
||||
enumerating each one. Endpoints serving user-controlled content should route
|
||||
a dangerous type to ``application/octet-stream`` + ``Content-Disposition:
|
||||
attachment`` + ``X-Content-Type-Options: nosniff``.
|
||||
"""
|
||||
if not content_type:
|
||||
return False
|
||||
normalized = content_type.split(';', 1)[0].strip().lower()
|
||||
if normalized in DANGEROUS_CONTENT_TYPES:
|
||||
return True
|
||||
return normalized.endswith('+xml') or normalized.endswith('/xml')
|
||||
|
||||
|
||||
def is_within_directory(directory: str, target: str) -> bool:
|
||||
"""Return True if `target` resolves to a path inside `directory`.
|
||||
|
||||
Uses realpath on both operands so that a symlink placed inside `directory`
|
||||
that points elsewhere cannot escape the containment check at open time.
|
||||
"""
|
||||
try:
|
||||
directory = os.path.realpath(directory)
|
||||
target = os.path.realpath(target)
|
||||
return os.path.commonpath((directory, target)) == directory
|
||||
except ValueError:
|
||||
# ValueError is raised by realpath() on a path with an embedded null
|
||||
# byte, and by commonpath() on Windows when the paths are on different
|
||||
# drives. In either case the target is not safely within the directory.
|
||||
return False
|
||||
|
||||
|
||||
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
|
||||
|
||||
filepath = os.path.abspath(os.path.join(base_dir, name))
|
||||
# Prevent path traversal: the resolved path must stay within base_dir.
|
||||
# repr() the name in the message so a crafted value can't inject log lines.
|
||||
if not is_within_directory(base_dir, filepath):
|
||||
raise ValueError("Invalid file path: {!r}".format(name))
|
||||
return filepath
|
||||
|
||||
|
||||
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.abspath(os.path.join(base_dir, name))
|
||||
# Treat traversal attempts as non-existent rather than probing the filesystem.
|
||||
if not is_within_directory(base_dir, filepath):
|
||||
return False
|
||||
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:
|
||||
remainder = filename[prefix_len + 1:]
|
||||
base_remainder = remainder.split('.')[0]
|
||||
digits = int(base_remainder.split('_')[0])
|
||||
except:
|
||||
digits = 0
|
||||
return digits, prefix
|
||||
|
||||
def compute_vars(input: str, image_width: int, image_height: int) -> str:
|
||||
input = input.replace("%width%", str(image_width))
|
||||
input = input.replace("%height%", str(image_height))
|
||||
now = time.localtime()
|
||||
input = input.replace("%year%", str(now.tm_year))
|
||||
input = input.replace("%month%", str(now.tm_mon).zfill(2))
|
||||
input = input.replace("%day%", str(now.tm_mday).zfill(2))
|
||||
input = input.replace("%hour%", str(now.tm_hour).zfill(2))
|
||||
input = input.replace("%minute%", str(now.tm_min).zfill(2))
|
||||
input = input.replace("%second%", str(now.tm_sec).zfill(2))
|
||||
return input
|
||||
|
||||
if "%" in filename_prefix:
|
||||
filename_prefix = compute_vars(filename_prefix, image_width, image_height)
|
||||
|
||||
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
|
||||
filename = os.path.basename(os.path.normpath(filename_prefix))
|
||||
|
||||
full_output_folder = os.path.join(output_dir, subfolder)
|
||||
|
||||
if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
|
||||
err = "**** ERROR: Saving image outside the output folder is not allowed." + \
|
||||
"\n full_output_folder: " + os.path.abspath(full_output_folder) + \
|
||||
"\n output_dir: " + output_dir + \
|
||||
"\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder)))
|
||||
logging.error(err)
|
||||
raise Exception(err)
|
||||
|
||||
try:
|
||||
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
|
||||
except ValueError:
|
||||
counter = 1
|
||||
except FileNotFoundError:
|
||||
os.makedirs(full_output_folder, exist_ok=True)
|
||||
counter = 1
|
||||
return full_output_folder, filename, counter, subfolder, filename_prefix
|
||||
|
||||
def get_input_subfolders() -> list[str]:
|
||||
"""Returns a list of all subfolder paths in the input directory, recursively.
|
||||
|
||||
Returns:
|
||||
List of folder paths relative to the input directory, excluding the root directory
|
||||
"""
|
||||
input_dir = get_input_directory()
|
||||
folders = []
|
||||
|
||||
try:
|
||||
if not os.path.exists(input_dir):
|
||||
return []
|
||||
|
||||
for root, dirs, _ in os.walk(input_dir):
|
||||
rel_path = os.path.relpath(root, input_dir)
|
||||
if rel_path != ".": # Only include non-root directories
|
||||
# Normalize path separators to forward slashes
|
||||
folders.append(rel_path.replace(os.sep, '/'))
|
||||
|
||||
return sorted(folders)
|
||||
except FileNotFoundError:
|
||||
return []
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,33 @@
|
||||
tree 4cb1123453e6ff1964cbde082e418d9c62c28e63
|
||||
parent c52957abc9ef32a5e5c4165af675147b266aa4e1
|
||||
author Comfy Org PR Bot <snomiao+comfy-pr@gmail.com> 1768284502 +0900
|
||||
committer GitHub <noreply@github.com> 1768284502 -0700
|
||||
gpgsig -----BEGIN PGP SIGNATURE-----
|
||||
|
||||
wsFcBAABCAAQBQJpZeFWCRC1aQ7uu5UhlAAAZu0QACaKwXhkeJ6Xz2MxiwKqUvvf
|
||||
K4yPJO+K3Js3XDy6wydlcOjJTIVrSvOJAgTTm7HIq2HU8iAnK0JmrhWLnOUr5Tmr
|
||||
cWA0XP6nUhXulhwbLo7amj4prBi6LfUX81cclNTatChpZPVdBCBSZUNirJKXcNa+
|
||||
AUrvGurO3d7yEGmJbgHFuX476RNSwGuOvopBlH+og0BQC4bd4X166lNH6/hGxoES
|
||||
F4qLZfry6natWrXSbwjsQM9QQd8GUM2eCHd+fFuyHAObSRULc65huKIZolXgr0MG
|
||||
hOF46PYd8iwM35GrKlS4xlCY93eZsePxkD9kWlVBCaebm5APvIfZPt4s8rgGxsi9
|
||||
r4kFUTJgsnoGC2sEohbirH1BQb78sBC6vICFmOpk2OLJ4zb3koweD068iS+EYqNm
|
||||
CIU41faaF9gzEu9ztdlmPI6/q27Hco48fM0wNlGdUtcYw6zzR2jxd9jjwWuu5PVG
|
||||
Bu6NXbCXFGbwaRxl01521gNwemhw8eZyllqFmG8A1swAucY4+Ld6VZNnmNcfO/LW
|
||||
wtUg2jmARy+me5Rm2AKxNDi4T0kHQJ/eZNvpZM835kaWcki6HqLOB7miu9mSLkeS
|
||||
YHmws+uuGY2nBSL/uW6gF6N40gaVxrvGUXp6wVU3qmrhnE7VbR7FDxgJTEsQEaYS
|
||||
4DcTuFlN2BE4StamGyEn
|
||||
=8rYL
|
||||
-----END PGP SIGNATURE-----
|
||||
|
||||
|
||||
1.36.14 (#8022)
|
||||
|
||||
Patch version increment to 1.36.14
|
||||
|
||||
**Base branch:** `core/1.36`
|
||||
|
||||
┆Issue is synchronized with this [Notion
|
||||
page](https://www.notion.so/PR-8022-1-36-14-2e76d73d365081aea9b6e1d90a24b45d)
|
||||
by [Unito](https://www.unito.io)
|
||||
|
||||
Co-authored-by: christian-byrne <72887196+christian-byrne@users.noreply.github.com>
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "refs/tags/v1.36.14",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"object": "c57a7d019bd33b688615b9a544d5f7a656c43464"
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
tree 4cb1123453e6ff1964cbde082e418d9c62c28e63
|
||||
parent c52957abc9ef32a5e5c4165af675147b266aa4e1
|
||||
author Comfy Org PR Bot <snomiao+comfy-pr@gmail.com> 1768284502 +0900
|
||||
committer GitHub <noreply@github.com> 1768284502 -0700
|
||||
gpgsig -----BEGIN PGP SIGNATURE-----
|
||||
|
||||
wsFcBAABCAAQBQJpZeFWCRC1aQ7uu5UhlAAAZu0QACaKwXhkeJ6Xz2MxiwKqUvvf
|
||||
K4yPJO+K3Js3XDy6wydlcOjJTIVrSvOJAgTTm7HIq2HU8iAnK0JmrhWLnOUr5Tmr
|
||||
cWA0XP6nUhXulhwbLo7amj4prBi6LfUX81cclNTatChpZPVdBCBSZUNirJKXcNa+
|
||||
AUrvGurO3d7yEGmJbgHFuX476RNSwGuOvopBlH+og0BQC4bd4X166lNH6/hGxoES
|
||||
F4qLZfry6natWrXSbwjsQM9QQd8GUM2eCHd+fFuyHAObSRULc65huKIZolXgr0MG
|
||||
hOF46PYd8iwM35GrKlS4xlCY93eZsePxkD9kWlVBCaebm5APvIfZPt4s8rgGxsi9
|
||||
r4kFUTJgsnoGC2sEohbirH1BQb78sBC6vICFmOpk2OLJ4zb3koweD068iS+EYqNm
|
||||
CIU41faaF9gzEu9ztdlmPI6/q27Hco48fM0wNlGdUtcYw6zzR2jxd9jjwWuu5PVG
|
||||
Bu6NXbCXFGbwaRxl01521gNwemhw8eZyllqFmG8A1swAucY4+Ld6VZNnmNcfO/LW
|
||||
wtUg2jmARy+me5Rm2AKxNDi4T0kHQJ/eZNvpZM835kaWcki6HqLOB7miu9mSLkeS
|
||||
YHmws+uuGY2nBSL/uW6gF6N40gaVxrvGUXp6wVU3qmrhnE7VbR7FDxgJTEsQEaYS
|
||||
4DcTuFlN2BE4StamGyEn
|
||||
=8rYL
|
||||
-----END PGP SIGNATURE-----
|
||||
|
||||
|
||||
1.36.14 (#8022)
|
||||
|
||||
Patch version increment to 1.36.14
|
||||
|
||||
**Base branch:** `core/1.36`
|
||||
|
||||
┆Issue is synchronized with this [Notion
|
||||
page](https://www.notion.so/PR-8022-1-36-14-2e76d73d365081aea9b6e1d90a24b45d)
|
||||
by [Unito](https://www.unito.io)
|
||||
|
||||
Co-authored-by: christian-byrne <72887196+christian-byrne@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>.
|
||||
+645
@@ -0,0 +1,645 @@
|
||||
import type { BaseLGraph, LGraph } from '@/lib/litegraph/src/LGraph'
|
||||
import type { LGraphButton } from '@/lib/litegraph/src/LGraphButton'
|
||||
import type { LGraphCanvas } from '@/lib/litegraph/src/LGraphCanvas'
|
||||
import { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
|
||||
import type { DrawTitleBoxOptions } from '@/lib/litegraph/src/LGraphNode'
|
||||
import { LLink } from '@/lib/litegraph/src/LLink'
|
||||
import type { ResolvedConnection } from '@/lib/litegraph/src/LLink'
|
||||
import { RecursionError } from '@/lib/litegraph/src/infrastructure/RecursionError'
|
||||
import type {
|
||||
ISubgraphInput,
|
||||
IWidgetLocator
|
||||
} from '@/lib/litegraph/src/interfaces'
|
||||
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
|
||||
import type {
|
||||
INodeInputSlot,
|
||||
ISlotType,
|
||||
NodeId
|
||||
} from '@/lib/litegraph/src/litegraph'
|
||||
import { NodeInputSlot } from '@/lib/litegraph/src/node/NodeInputSlot'
|
||||
import { NodeOutputSlot } from '@/lib/litegraph/src/node/NodeOutputSlot'
|
||||
import type {
|
||||
GraphOrSubgraph,
|
||||
Subgraph
|
||||
} from '@/lib/litegraph/src/subgraph/Subgraph'
|
||||
import type {
|
||||
ExportedSubgraphInstance,
|
||||
ISerialisedNode
|
||||
} from '@/lib/litegraph/src/types/serialisation'
|
||||
import type { IBaseWidget } from '@/lib/litegraph/src/types/widgets'
|
||||
import type { UUID } from '@/lib/litegraph/src/utils/uuid'
|
||||
import { AssetWidget } from '@/lib/litegraph/src/widgets/AssetWidget'
|
||||
import { toConcreteWidget } from '@/lib/litegraph/src/widgets/widgetMap'
|
||||
|
||||
import { ExecutableNodeDTO } from './ExecutableNodeDTO'
|
||||
import type { ExecutableLGraphNode, ExecutionId } from './ExecutableNodeDTO'
|
||||
import type { SubgraphInput } from './SubgraphInput'
|
||||
|
||||
const workflowSvg = new Image()
|
||||
workflowSvg.src =
|
||||
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-width='1.3' d='M9.18613 3.09999H6.81377M9.18613 12.9H7.55288c-3.08678 0-5.35171-2.99581-4.60305-6.08843l.3054-1.26158M14.7486 2.1721l-.5931 2.45c-.132.54533-.6065.92789-1.1508.92789h-2.2993c-.77173 0-1.33797-.74895-1.1508-1.5221l.5931-2.45c.132-.54533.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.74896 1.1508 1.52211Zm-8.3033 0-.59309 2.45c-.13201.54533-.60646.92789-1.15076.92789H2.4021c-.7717 0-1.33793-.74895-1.15077-1.5221l.59309-2.45c.13201-.54533.60647-.9279 1.15077-.9279h2.29935c.77169 0 1.33792.74896 1.15076 1.52211Zm8.3033 9.8-.5931 2.45c-.132.5453-.6065.9279-1.1508.9279h-2.2993c-.77173 0-1.33797-.749-1.1508-1.5221l.5931-2.45c.132-.5453.6065-.9279 1.1508-.9279h2.2993c.7717 0 1.3379.7489 1.1508 1.5221Z'/%3E%3C/svg%3E %3C/svg%3E"
|
||||
|
||||
/**
|
||||
* An instance of a {@link Subgraph}, displayed as a node on the containing (parent) graph.
|
||||
*/
|
||||
export class SubgraphNode extends LGraphNode implements BaseLGraph {
|
||||
declare inputs: (INodeInputSlot & Partial<ISubgraphInput>)[]
|
||||
|
||||
override readonly type: UUID
|
||||
override readonly isVirtualNode = true as const
|
||||
|
||||
get rootGraph(): LGraph {
|
||||
return this.graph.rootGraph
|
||||
}
|
||||
|
||||
override get displayType(): string {
|
||||
return 'Subgraph node'
|
||||
}
|
||||
|
||||
override isSubgraphNode(): this is SubgraphNode {
|
||||
return true
|
||||
}
|
||||
|
||||
override widgets: IBaseWidget[] = []
|
||||
|
||||
/** Manages lifecycle of all subgraph event listeners */
|
||||
#eventAbortController = new AbortController()
|
||||
|
||||
constructor(
|
||||
/** The (sub)graph that contains this subgraph instance. */
|
||||
override readonly graph: GraphOrSubgraph,
|
||||
/** The definition of this subgraph; how its nodes are configured, etc. */
|
||||
readonly subgraph: Subgraph,
|
||||
instanceData: ExportedSubgraphInstance
|
||||
) {
|
||||
super(subgraph.name, subgraph.id)
|
||||
|
||||
// Update this node when the subgraph input / output slots are changed
|
||||
const subgraphEvents = this.subgraph.events
|
||||
const { signal } = this.#eventAbortController
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'input-added',
|
||||
(e) => {
|
||||
const subgraphInput = e.detail.input
|
||||
const { name, type } = subgraphInput
|
||||
const existingInput = this.inputs.find((i) => i.name == name)
|
||||
if (existingInput) {
|
||||
const linkId = subgraphInput.linkIds[0]
|
||||
const { inputNode, input } = subgraph.links[linkId].resolve(subgraph)
|
||||
const widget = inputNode?.widgets?.find?.((w) => w.name == name)
|
||||
if (widget)
|
||||
this.#setWidget(subgraphInput, existingInput, widget, input?.widget)
|
||||
return
|
||||
}
|
||||
const input = this.addInput(name, type)
|
||||
|
||||
this.#addSubgraphInputListeners(subgraphInput, input)
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'removing-input',
|
||||
(e) => {
|
||||
const widget = e.detail.input._widget
|
||||
if (widget) this.ensureWidgetRemoved(widget)
|
||||
|
||||
this.removeInput(e.detail.index)
|
||||
this.setDirtyCanvas(true, true)
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'output-added',
|
||||
(e) => {
|
||||
const { name, type } = e.detail.output
|
||||
this.addOutput(name, type)
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'removing-output',
|
||||
(e) => {
|
||||
this.removeOutput(e.detail.index)
|
||||
this.setDirtyCanvas(true, true)
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'renaming-input',
|
||||
(e) => {
|
||||
const { index, newName } = e.detail
|
||||
const input = this.inputs.at(index)
|
||||
if (!input) throw new Error('Subgraph input not found')
|
||||
|
||||
input.label = newName
|
||||
if (input._widget) {
|
||||
input._widget.label = newName
|
||||
}
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphEvents.addEventListener(
|
||||
'renaming-output',
|
||||
(e) => {
|
||||
const { index, newName } = e.detail
|
||||
const output = this.outputs.at(index)
|
||||
if (!output) throw new Error('Subgraph output not found')
|
||||
|
||||
output.label = newName
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
this.type = subgraph.id
|
||||
this.configure(instanceData)
|
||||
|
||||
this.addTitleButton({
|
||||
name: 'enter_subgraph',
|
||||
text: '\uE93B', // Unicode for pi-window-maximize
|
||||
yOffset: 0, // No vertical offset needed, button is centered
|
||||
xOffset: -10,
|
||||
fontSize: 16
|
||||
})
|
||||
}
|
||||
|
||||
override onTitleButtonClick(
|
||||
button: LGraphButton,
|
||||
canvas: LGraphCanvas
|
||||
): void {
|
||||
if (button.name === 'enter_subgraph') {
|
||||
canvas.openSubgraph(this.subgraph, this)
|
||||
} else {
|
||||
super.onTitleButtonClick(button, canvas)
|
||||
}
|
||||
}
|
||||
|
||||
#addSubgraphInputListeners(
|
||||
subgraphInput: SubgraphInput,
|
||||
input: INodeInputSlot & Partial<ISubgraphInput>
|
||||
) {
|
||||
if (
|
||||
input._listenerController &&
|
||||
typeof input._listenerController.abort === 'function'
|
||||
) {
|
||||
input._listenerController.abort()
|
||||
}
|
||||
input._listenerController = new AbortController()
|
||||
const { signal } = input._listenerController
|
||||
|
||||
subgraphInput.events.addEventListener(
|
||||
'input-connected',
|
||||
(e) => {
|
||||
if (input._widget) return
|
||||
|
||||
const widget = subgraphInput._widget
|
||||
if (!widget) return
|
||||
|
||||
const widgetLocator = e.detail.input.widget
|
||||
this.#setWidget(subgraphInput, input, widget, widgetLocator)
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
|
||||
subgraphInput.events.addEventListener(
|
||||
'input-disconnected',
|
||||
() => {
|
||||
// If the input is connected to more than one widget, don't remove the widget
|
||||
const connectedWidgets = subgraphInput.getConnectedWidgets()
|
||||
if (connectedWidgets.length > 0) return
|
||||
|
||||
this.removeWidgetByName(input.name)
|
||||
|
||||
delete input.pos
|
||||
delete input.widget
|
||||
input._widget = undefined
|
||||
},
|
||||
{ signal }
|
||||
)
|
||||
}
|
||||
|
||||
override configure(info: ExportedSubgraphInstance): void {
|
||||
for (const input of this.inputs) {
|
||||
if (
|
||||
input._listenerController &&
|
||||
typeof input._listenerController.abort === 'function'
|
||||
) {
|
||||
input._listenerController.abort()
|
||||
}
|
||||
}
|
||||
|
||||
this.inputs.length = 0
|
||||
this.inputs.push(
|
||||
...this.subgraph.inputNode.slots.map(
|
||||
(slot) =>
|
||||
new NodeInputSlot(
|
||||
{
|
||||
name: slot.name,
|
||||
localized_name: slot.localized_name,
|
||||
label: slot.label,
|
||||
type: slot.type,
|
||||
link: null
|
||||
},
|
||||
this
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
this.outputs.length = 0
|
||||
this.outputs.push(
|
||||
...this.subgraph.outputNode.slots.map(
|
||||
(slot) =>
|
||||
new NodeOutputSlot(
|
||||
{
|
||||
name: slot.name,
|
||||
localized_name: slot.localized_name,
|
||||
label: slot.label,
|
||||
type: slot.type,
|
||||
links: null
|
||||
},
|
||||
this
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
super.configure(info)
|
||||
}
|
||||
|
||||
override _internalConfigureAfterSlots() {
|
||||
// Reset widgets
|
||||
this.widgets.length = 0
|
||||
|
||||
// Check all inputs for connected widgets
|
||||
for (const input of this.inputs) {
|
||||
const subgraphInput = this.subgraph.inputNode.slots.find(
|
||||
(slot) => slot.name === input.name
|
||||
)
|
||||
if (!subgraphInput) {
|
||||
// Skip inputs that don't exist in the subgraph definition
|
||||
// This can happen when loading workflows with dynamically added inputs
|
||||
console.warn(
|
||||
`[SubgraphNode.configure] No subgraph input found for input ${input.name}, skipping`
|
||||
)
|
||||
continue
|
||||
}
|
||||
|
||||
this.#addSubgraphInputListeners(subgraphInput, input)
|
||||
|
||||
// Find the first widget that this slot is connected to
|
||||
for (const linkId of subgraphInput.linkIds) {
|
||||
const link = this.subgraph.getLink(linkId)
|
||||
if (!link) {
|
||||
console.warn(
|
||||
`[SubgraphNode.configure] No link found for link ID ${linkId}`,
|
||||
this
|
||||
)
|
||||
continue
|
||||
}
|
||||
|
||||
const { inputNode } = link.resolve(this.subgraph)
|
||||
if (!inputNode) {
|
||||
console.warn('Failed to resolve inputNode', link, this)
|
||||
continue
|
||||
}
|
||||
|
||||
//Manually find input since target_slot can't be trusted
|
||||
const targetInput = inputNode.inputs.find((inp) => inp.link === linkId)
|
||||
if (!targetInput) {
|
||||
console.warn('Failed to find corresponding input', link, inputNode)
|
||||
continue
|
||||
}
|
||||
|
||||
// No widget - ignore this link
|
||||
const widget = inputNode.getWidgetFromSlot(targetInput)
|
||||
if (!widget) continue
|
||||
|
||||
this.#setWidget(subgraphInput, input, widget, targetInput.widget)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#setWidget(
|
||||
subgraphInput: Readonly<SubgraphInput>,
|
||||
input: INodeInputSlot,
|
||||
widget: Readonly<IBaseWidget>,
|
||||
inputWidget: IWidgetLocator | undefined
|
||||
) {
|
||||
// Use the first matching widget
|
||||
const promotedWidget = toConcreteWidget(widget, this).createCopyForNode(
|
||||
this
|
||||
)
|
||||
if (widget instanceof AssetWidget)
|
||||
promotedWidget.options.nodeType ??= widget.node.type
|
||||
|
||||
Object.assign(promotedWidget, {
|
||||
get name() {
|
||||
return subgraphInput.name
|
||||
},
|
||||
set name(value) {
|
||||
console.warn(
|
||||
'Promoted widget: setting name is not allowed',
|
||||
this,
|
||||
value
|
||||
)
|
||||
},
|
||||
get localized_name() {
|
||||
return subgraphInput.localized_name
|
||||
},
|
||||
set localized_name(value) {
|
||||
console.warn(
|
||||
'Promoted widget: setting localized_name is not allowed',
|
||||
this,
|
||||
value
|
||||
)
|
||||
},
|
||||
get label() {
|
||||
return subgraphInput.label
|
||||
},
|
||||
set label(value) {
|
||||
console.warn(
|
||||
'Promoted widget: setting label is not allowed',
|
||||
this,
|
||||
value
|
||||
)
|
||||
},
|
||||
get tooltip() {
|
||||
// Preserve the original widget's tooltip for promoted widgets
|
||||
return widget.tooltip
|
||||
},
|
||||
set tooltip(value) {
|
||||
console.warn(
|
||||
'Promoted widget: setting tooltip is not allowed',
|
||||
this,
|
||||
value
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
const widgetCount = this.inputs.filter((i) => i.widget).length
|
||||
this.widgets.splice(widgetCount, 0, promotedWidget)
|
||||
|
||||
// Dispatch widget-promoted event
|
||||
this.subgraph.events.dispatch('widget-promoted', {
|
||||
widget: promotedWidget,
|
||||
subgraphNode: this
|
||||
})
|
||||
|
||||
// NOTE: This code creates linked chains of prototypes for passing across
|
||||
// multiple levels of subgraphs. As part of this, it intentionally avoids
|
||||
// creating new objects. Have care when making changes.
|
||||
input.widget ??= { name: subgraphInput.name }
|
||||
input.widget.name = subgraphInput.name
|
||||
if (inputWidget) Object.setPrototypeOf(input.widget, inputWidget)
|
||||
|
||||
input._widget = promotedWidget
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensures the subgraph slot is in the params before adding the input as normal.
|
||||
* @param name The name of the input slot.
|
||||
* @param type The type of the input slot.
|
||||
* @param inputProperties Properties that are directly assigned to the created input. Default: a new, empty object.
|
||||
* @returns The new input slot.
|
||||
* @remarks Assertion is required to instantiate empty generic POJO.
|
||||
*/
|
||||
override addInput<TInput extends Partial<ISubgraphInput>>(
|
||||
name: string,
|
||||
type: ISlotType,
|
||||
inputProperties: TInput = {} as TInput
|
||||
): INodeInputSlot & TInput {
|
||||
// Bypasses type narrowing on this.inputs
|
||||
return super.addInput(name, type, inputProperties)
|
||||
}
|
||||
|
||||
override getInputLink(slot: number): LLink | null {
|
||||
// Output side: the link from inside the subgraph
|
||||
const innerLink = this.subgraph.outputNode.slots[slot].getLinks().at(0)
|
||||
if (!innerLink) {
|
||||
console.warn(
|
||||
`SubgraphNode.getInputLink: no inner link found for slot ${slot}`
|
||||
)
|
||||
return null
|
||||
}
|
||||
|
||||
const newLink = LLink.create(innerLink)
|
||||
newLink.origin_id = `${this.id}:${innerLink.origin_id}`
|
||||
newLink.origin_slot = innerLink.origin_slot
|
||||
|
||||
return newLink
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the internal links connected to the given input slot inside the subgraph, and resolves the nodes / slots.
|
||||
* @param slot The slot index
|
||||
* @returns The resolved connections, or undefined if no input node is found.
|
||||
* @remarks This is used to resolve the input links when dragging a link from a subgraph input slot.
|
||||
*/
|
||||
resolveSubgraphInputLinks(slot: number): ResolvedConnection[] {
|
||||
const inputSlot = this.subgraph.inputNode.slots[slot]
|
||||
const innerLinks = inputSlot.getLinks()
|
||||
if (innerLinks.length === 0) {
|
||||
console.warn(
|
||||
`[SubgraphNode.resolveSubgraphInputLinks] No inner links found for input slot [${slot}] ${inputSlot.name}`,
|
||||
this
|
||||
)
|
||||
return []
|
||||
}
|
||||
return innerLinks.map((link) => link.resolve(this.subgraph))
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the internal link connected to the given output slot inside the subgraph, and resolves the nodes / slots.
|
||||
* @param slot The slot index
|
||||
* @returns The output node if found, otherwise undefined.
|
||||
*/
|
||||
resolveSubgraphOutputLink(slot: number): ResolvedConnection | undefined {
|
||||
const outputSlot = this.subgraph.outputNode.slots[slot]
|
||||
const innerLink = outputSlot.getLinks().at(0)
|
||||
if (innerLink) {
|
||||
return innerLink.resolve(this.subgraph)
|
||||
}
|
||||
console.warn(
|
||||
`[SubgraphNode.resolveSubgraphOutputLink] No inner link found for output slot [${slot}] ${outputSlot.name}`,
|
||||
this
|
||||
)
|
||||
}
|
||||
|
||||
/** @internal Used to flatten the subgraph before execution. */
|
||||
override getInnerNodes(
|
||||
/** The set of computed node DTOs for this execution. */
|
||||
executableNodes: Map<ExecutionId, ExecutableLGraphNode>,
|
||||
/** The path of subgraph node IDs. */
|
||||
subgraphNodePath: readonly NodeId[] = [],
|
||||
/** Internal recursion param. The list of nodes to add to. */
|
||||
nodes: ExecutableLGraphNode[] = [],
|
||||
/** Internal recursion param. The set of visited nodes. */
|
||||
visited = new Set<SubgraphNode>()
|
||||
): ExecutableLGraphNode[] {
|
||||
if (visited.has(this)) {
|
||||
const nodeInfo = `${this.id}${this.title ? ` (${this.title})` : ''}`
|
||||
const subgraphInfo = `'${this.subgraph.name || 'Unnamed Subgraph'}'`
|
||||
const depth = subgraphNodePath.length
|
||||
throw new RecursionError(
|
||||
`Circular reference detected at depth ${depth} in node ${nodeInfo} of subgraph ${subgraphInfo}. ` +
|
||||
`This creates an infinite loop in the subgraph hierarchy.`
|
||||
)
|
||||
}
|
||||
visited.add(this)
|
||||
|
||||
const subgraphInstanceIdPath = [...subgraphNodePath, this.id]
|
||||
|
||||
// Store the subgraph node DTO
|
||||
const parentSubgraphNode = this.graph.rootGraph
|
||||
.resolveSubgraphIdPath(subgraphNodePath)
|
||||
.at(-1)
|
||||
const subgraphNodeDto = new ExecutableNodeDTO(
|
||||
this,
|
||||
subgraphNodePath,
|
||||
executableNodes,
|
||||
parentSubgraphNode
|
||||
)
|
||||
executableNodes.set(subgraphNodeDto.id, subgraphNodeDto)
|
||||
|
||||
for (const node of this.subgraph.nodes) {
|
||||
if ('getInnerNodes' in node && node.getInnerNodes) {
|
||||
node.getInnerNodes(
|
||||
executableNodes,
|
||||
subgraphInstanceIdPath,
|
||||
nodes,
|
||||
new Set(visited)
|
||||
)
|
||||
} else {
|
||||
// Create minimal DTOs rather than cloning the node
|
||||
const aVeryRealNode = new ExecutableNodeDTO(
|
||||
node,
|
||||
subgraphInstanceIdPath,
|
||||
executableNodes,
|
||||
this
|
||||
)
|
||||
executableNodes.set(aVeryRealNode.id, aVeryRealNode)
|
||||
nodes.push(aVeryRealNode)
|
||||
}
|
||||
}
|
||||
return nodes
|
||||
}
|
||||
|
||||
override removeWidgetByName(name: string): void {
|
||||
const widget = this.widgets.find((w) => w.name === name)
|
||||
if (widget) {
|
||||
this.subgraph.events.dispatch('widget-demoted', {
|
||||
widget,
|
||||
subgraphNode: this
|
||||
})
|
||||
}
|
||||
super.removeWidgetByName(name)
|
||||
}
|
||||
|
||||
override ensureWidgetRemoved(widget: IBaseWidget): void {
|
||||
if (this.widgets.includes(widget)) {
|
||||
this.subgraph.events.dispatch('widget-demoted', {
|
||||
widget,
|
||||
subgraphNode: this
|
||||
})
|
||||
}
|
||||
super.ensureWidgetRemoved(widget)
|
||||
}
|
||||
|
||||
override onRemoved(): void {
|
||||
// Clean up all subgraph event listeners
|
||||
this.#eventAbortController.abort()
|
||||
|
||||
// Clean up all promoted widgets
|
||||
for (const widget of this.widgets) {
|
||||
if ('isProxyWidget' in widget && widget.isProxyWidget) continue
|
||||
this.subgraph.events.dispatch('widget-demoted', {
|
||||
widget,
|
||||
subgraphNode: this
|
||||
})
|
||||
}
|
||||
|
||||
for (const input of this.inputs) {
|
||||
if (
|
||||
input._listenerController &&
|
||||
typeof input._listenerController.abort === 'function'
|
||||
) {
|
||||
input._listenerController.abort()
|
||||
}
|
||||
}
|
||||
}
|
||||
override drawTitleBox(
|
||||
ctx: CanvasRenderingContext2D,
|
||||
{
|
||||
scale,
|
||||
low_quality = false,
|
||||
title_height = LiteGraph.NODE_TITLE_HEIGHT,
|
||||
box_size = 10
|
||||
}: DrawTitleBoxOptions
|
||||
): void {
|
||||
if (this.onDrawTitleBox) {
|
||||
this.onDrawTitleBox(ctx, title_height, this.renderingSize, scale)
|
||||
return
|
||||
}
|
||||
ctx.save()
|
||||
ctx.fillStyle = '#3b82f6'
|
||||
ctx.beginPath()
|
||||
ctx.roundRect(6, -24.5, 22, 20, 5)
|
||||
ctx.fill()
|
||||
if (!low_quality) {
|
||||
ctx.translate(25, 23)
|
||||
ctx.scale(-1.5, 1.5)
|
||||
ctx.drawImage(workflowSvg, 0, -title_height, box_size, box_size)
|
||||
}
|
||||
ctx.restore()
|
||||
}
|
||||
|
||||
/**
|
||||
* Synchronizes widget values from this SubgraphNode instance to the
|
||||
* corresponding widgets in the subgraph definition before serialization.
|
||||
* This ensures nested subgraph widget values are preserved when saving.
|
||||
*/
|
||||
override serialize(): ISerialisedNode {
|
||||
// Sync widget values to subgraph definition before serialization
|
||||
for (let i = 0; i < this.widgets.length; i++) {
|
||||
const widget = this.widgets[i]
|
||||
const input = this.inputs.find((inp) => inp.name === widget.name)
|
||||
|
||||
if (input) {
|
||||
const subgraphInput = this.subgraph.inputNode.slots.find(
|
||||
(slot) => slot.name === input.name
|
||||
)
|
||||
|
||||
if (subgraphInput) {
|
||||
// Find all widgets connected to this subgraph input
|
||||
const connectedWidgets = subgraphInput.getConnectedWidgets()
|
||||
|
||||
// Update the value of all connected widgets
|
||||
for (const connectedWidget of connectedWidgets) {
|
||||
connectedWidget.value = widget.value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Call parent serialize method
|
||||
return super.serialize()
|
||||
}
|
||||
override clone() {
|
||||
const clone = super.clone()
|
||||
// force reasign so domWidgets reset ownership
|
||||
|
||||
this.properties.proxyWidgets = this.properties.proxyWidgets
|
||||
|
||||
//TODO: Consider deep cloning subgraphs here.
|
||||
//It's the safest place to prevent creation of linked subgraphs
|
||||
//But the frequency of clone().serialize() calls is likely to result in
|
||||
//pollution of rootGraph.subgraphs
|
||||
|
||||
return clone
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,6 @@
|
||||
tree abfc66b11c94d7a6da31a755bc2a096825566fc9
|
||||
parent 942060020aae812b1aa850848cbe2458ecedd717
|
||||
author aining2022 <aining2022@gmail.com> 1767108210 +0800
|
||||
committer aining2022 <aining2022@gmail.com> 1767108210 +0800
|
||||
|
||||
集成开关节点,移除冗余的静音节点,并修复图片比较节点的显示问题
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"commit": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"object": "881bc91790da6b907d3d28e5b91b295b9aef06ee"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
tree abfc66b11c94d7a6da31a755bc2a096825566fc9
|
||||
parent 942060020aae812b1aa850848cbe2458ecedd717
|
||||
author aining2022 <aining2022@gmail.com> 1767108210 +0800
|
||||
committer aining2022 <aining2022@gmail.com> 1767108210 +0800
|
||||
|
||||
集成开关节点,移除冗余的静音节点,并修复图片比较节点的显示问题
|
||||
@@ -0,0 +1,408 @@
|
||||
{
|
||||
"sha": "abfc66b11c94d7a6da31a755bc2a096825566fc9",
|
||||
"truncated": false,
|
||||
"tree": [
|
||||
{
|
||||
"path": ".DS_Store",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "4b03094e4da41a36f6b5dea330c73bb3f52dfb7d"
|
||||
},
|
||||
{
|
||||
"path": ".gitignore",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "b41f20e944a3dcc2cd19ea19789aa0802d36b579"
|
||||
},
|
||||
{
|
||||
"path": "C_math.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "6f2c6fc90df7408715b5657bedb4ee5d7f81125e"
|
||||
},
|
||||
{
|
||||
"path": "INSTALLATION_CHECKLIST.md",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "fa03bd4a7e64696a5a1187c015eb9a87629dc0e9"
|
||||
},
|
||||
{
|
||||
"path": "LICENSE",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "232ae139df1a325b6f3c62b33cc2132bee147a93"
|
||||
},
|
||||
{
|
||||
"path": "QUICK_START.md",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "b804df6ce7d8a5fbf63bce7640acc3abdb88c79a"
|
||||
},
|
||||
{
|
||||
"path": "README.md",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "41a05dfcbf6b61f40e276f3d2fcd1ad3de659c63"
|
||||
},
|
||||
{
|
||||
"path": "README_CN.md",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "0e03674193edb9707aa2a44105b707cd65e909c9"
|
||||
},
|
||||
{
|
||||
"path": "__init__.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "3fa69fca9a8d18557b14b053fda1989caf821746"
|
||||
},
|
||||
{
|
||||
"path": "crop_by_mask_v2.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "fc6b025169ad57636b8164843867ecd079ad07ef"
|
||||
},
|
||||
{
|
||||
"path": "crop_by_mask_v3.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "9fff3928eaaf8688269d29a0630bee012521fc31"
|
||||
},
|
||||
{
|
||||
"path": "fonts/FreeMono.ttf",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "7485f9e4c84d5a372c81e11df2cd9f5e2eb2064a"
|
||||
},
|
||||
{
|
||||
"path": "fonts/FreeMonoBoldOblique.otf",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "dac575acbd08b6fa36d9aac4acd0b2d7ea140eec"
|
||||
},
|
||||
{
|
||||
"path": "fonts/TTNorms-Black.otf",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "39f96c80af61c25ca8c35b25b3cb21673cb0d037"
|
||||
},
|
||||
{
|
||||
"path": "image_batch_utils.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "026784fce613c03e767433f1c3183608f0b5222c"
|
||||
},
|
||||
{
|
||||
"path": "image_comparer.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "1f7aa5084effc0ec7998d16d4856216ccd4c6a54"
|
||||
},
|
||||
{
|
||||
"path": "image_nodes.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "415f4f26c3c9f230045c6806866d2edd796cbb17"
|
||||
},
|
||||
{
|
||||
"path": "image_resize_sum.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "9dd85b26acc4001f4bf36aa0dfb5b28e346d1e42"
|
||||
},
|
||||
{
|
||||
"path": "image_scale_by_aspect_ratio_v2.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "23e4b8a10dfd6d4113bdfe40d57e30976102e804"
|
||||
},
|
||||
{
|
||||
"path": "layerstyle_utils.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "1aab6030bb78e6e295d5f6f65ee3abc5cd0a07c9"
|
||||
},
|
||||
{
|
||||
"path": "main_unit.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "6a856b993075a988a74d29b838bf4b09d30f4451"
|
||||
},
|
||||
{
|
||||
"path": "nodes_switch.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "7cfc6fa6b318cea988b74f6406546876034b5cc2"
|
||||
},
|
||||
{
|
||||
"path": "requirements.txt",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "138f2b0a01b2df0d6a323bbb53d2046eb466e451"
|
||||
},
|
||||
{
|
||||
"path": "restore_crop_box.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "3607a4c86915d8d079931a654eadde65dbf6ecc8"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/comfyui_shim.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "54007bafceead4ce4f70defc2e67be68f37c2744"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/comfyui_shim_pnginfo.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "7ef8e6b005f46b0b6c367839bb2518accb6e7b19"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/components/base_custom_element.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "d389ffc23932ed933232c60be3a3841afa3bd7a1"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/css/buttons.css",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "2c9f13c0acd4416847b2778048a4b79a03234a60"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/css/dialog.css",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "c9efdf67c5848facf4589d308ed53e300d67cdd9"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/css/dialog_lora_chooser.css",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "0142ab10a522512a0cc8dbdb11ce5793baa41f11"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/css/dialog_model_info.css",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "5edee06a5eb3c3502c966320e3da1c6b0f655346"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/css/menu.css",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "426469e745b16056409b4318cf89f479cf0e11bd"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/css/pages_base.css",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "49233231999fa37182bb313afe5f9f61389387c6"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/dialog.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "6c1a6eadfb830acb6a76459ea908d93d55849f49"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/link_fixer.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "eed3eee06e68f98f9da069e4b8dc7bbc225484f4"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/media/rgthree.svg",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "766a76152eefcdf8d05bf320c329b82afc704eaa"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/media/svgs.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "2bd25227abc482dc6bfd006c211ab856a398fa80"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/menu.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "3e0e81429eb6f513667d9a2555e48a1db2e48dd2"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/model_info_service.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "e7ec80824062b5deae01df26fb75feb21dfe097b"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/progress_bar.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "e342f0e926f46af0d8b817e01b522d0bc0161260"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/prompt_service.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "1f238889da859785842190511a7918a7cfa6d55f"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/py_parser.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "0251c1683d3e418032f676c74920fcf60ed24879"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/rgthree_api.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "eae650f44bd2ab88f3468ad071978d21ac0d4489"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/shared_utils.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "61ba549c24140e53dde893a8a8a43fab3528b090"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/utils_dom.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "c07e876f8ec801f3467d05d78ef7b9b8c7db6ba3"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/utils_templates.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "973ca1b05e7ec588f2f4247d430fe5ab38884b3a"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/common/utils_workflow.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "5dc2963987e64bcc13d4e9e1e6d847bd44592b3a"
|
||||
},
|
||||
{
|
||||
"path": "rgthree/config.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "f92995d201b36ad71676bc26942d9c0eb01bfe8e"
|
||||
},
|
||||
{
|
||||
"path": "seed.py",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "496e238e26f176ae4a1b71d9832c8ca2c52818c3"
|
||||
},
|
||||
{
|
||||
"path": "web/js/README.md",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "5ba7b3c993e66076fce062c511097d22a179ce2a"
|
||||
},
|
||||
{
|
||||
"path": "web/js/base_any_input_connected_node.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "09e2950c76a3c503df1fa35102829af0aa0d00ec"
|
||||
},
|
||||
{
|
||||
"path": "web/js/base_node.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "a004ca9fa5138965b1ec544a18f0a78eab892a00"
|
||||
},
|
||||
{
|
||||
"path": "web/js/base_node_mode_changer.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "8d2b20783025517227b9acab8076a113b838d36d"
|
||||
},
|
||||
{
|
||||
"path": "web/js/common/dialog.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "6c1a6eadfb830acb6a76459ea908d93d55849f49"
|
||||
},
|
||||
{
|
||||
"path": "web/js/common/shared_utils.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "61ba549c24140e53dde893a8a8a43fab3528b090"
|
||||
},
|
||||
{
|
||||
"path": "web/js/constants.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "b05bf4bda40f45921483f291808aa8809b0b6a9f"
|
||||
},
|
||||
{
|
||||
"path": "web/js/feature_import_individual_nodes.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "ca5058aa6e254e0f690ded2f03ff87ea2222b230"
|
||||
},
|
||||
{
|
||||
"path": "web/js/image_comparer.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "4c5d6b8d8f33f53387d8e385ba6d9ffe4ed4caba"
|
||||
},
|
||||
{
|
||||
"path": "web/js/rgthree.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "ec4bfa7357a032e63087c8706a26eacbd7bc18f2"
|
||||
},
|
||||
{
|
||||
"path": "web/js/seed.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "e23fa073294b17dd4879c82f4890f77890fcc9e9"
|
||||
},
|
||||
{
|
||||
"path": "web/js/services/bookmarks_services.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "839df30e7299b0d00910a141cbd5abc7dff82734"
|
||||
},
|
||||
{
|
||||
"path": "web/js/services/config_service.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "34f1087173c01cda464a519f4d8ebdfb81fbf25a"
|
||||
},
|
||||
{
|
||||
"path": "web/js/services/context_service.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "27e19658cbdc20d6213cd673fa6f10f79ee9ee7a"
|
||||
},
|
||||
{
|
||||
"path": "web/js/services/key_events_services.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "af1550488246ac2b9e53c34a0374f49f226dbb31"
|
||||
},
|
||||
{
|
||||
"path": "web/js/utils.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "a58d938e0e11731f008c8286f33f79795bb6a1f2"
|
||||
},
|
||||
{
|
||||
"path": "web/js/utils_canvas.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "dc09972e894393d172e62af471c0d293542ed638"
|
||||
},
|
||||
{
|
||||
"path": "web/js/utils_widgets.js",
|
||||
"mode": "100644",
|
||||
"type": "blob",
|
||||
"sha": "dabce087578b85f55f1e85a279374f36b6565e5c"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 aining2022
|
||||
|
||||
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.
|
||||
@@ -0,0 +1,75 @@
|
||||
# Import migrated LayerStyle nodes
|
||||
from .crop_by_mask_v2 import NODE_CLASS_MAPPINGS as CROP_V2_NODE_CLASS_MAPPINGS
|
||||
from .crop_by_mask_v2 import NODE_DISPLAY_NAME_MAPPINGS as CROP_V2_NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
from .crop_by_mask_v3 import NODE_CLASS_MAPPINGS as CROP_V3_NODE_CLASS_MAPPINGS
|
||||
from .crop_by_mask_v3 import NODE_DISPLAY_NAME_MAPPINGS as CROP_V3_NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
from .restore_crop_box import NODE_CLASS_MAPPINGS as RESTORE_NODE_CLASS_MAPPINGS
|
||||
from .restore_crop_box import NODE_DISPLAY_NAME_MAPPINGS as RESTORE_NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
from .image_scale_by_aspect_ratio_v2 import NODE_CLASS_MAPPINGS as SCALE_NODE_CLASS_MAPPINGS
|
||||
from .image_scale_by_aspect_ratio_v2 import NODE_DISPLAY_NAME_MAPPINGS as SCALE_NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
|
||||
from .image_comparer import NODE_CLASS_MAPPINGS as COMPARER_NODE_CLASS_MAPPINGS
|
||||
from .image_comparer import (
|
||||
NODE_DISPLAY_NAME_MAPPINGS as COMPARER_NODE_DISPLAY_NAME_MAPPINGS,
|
||||
)
|
||||
|
||||
|
||||
from .seed import NODE_CLASS_MAPPINGS as SEED_NODE_CLASS_MAPPINGS
|
||||
from .seed import NODE_DISPLAY_NAME_MAPPINGS as SEED_NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
from .image_batch_utils import NODE_CLASS_MAPPINGS as IMAGE_BATCH_NODE_CLASS_MAPPINGS
|
||||
from .image_batch_utils import NODE_DISPLAY_NAME_MAPPINGS as IMAGE_BATCH_NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
from .image_resize_sum import NODE_CLASS_MAPPINGS as IMAGE_RESIZE_SUM_NODE_CLASS_MAPPINGS
|
||||
from .image_resize_sum import NODE_DISPLAY_NAME_MAPPINGS as IMAGE_RESIZE_SUM_NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
from .C_math import NODE_CLASS_MAPPINGS as C_MATH_NODE_CLASS_MAPPINGS
|
||||
from .C_math import NODE_DISPLAY_NAME_MAPPINGS as C_MATH_NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
|
||||
from .image_nodes import NODE_CLASS_MAPPINGS as IMAGE_NODES_CLASS_MAPPINGS
|
||||
from .image_nodes import NODE_DISPLAY_NAME_MAPPINGS as IMAGE_NODES_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
from .nodes_switch import NODE_CLASS_MAPPINGS as SWITCH_NODE_CLASS_MAPPINGS
|
||||
from .nodes_switch import NODE_DISPLAY_NAME_MAPPINGS as SWITCH_NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
import folder_paths
|
||||
import os
|
||||
|
||||
fonts_path = os.path.join(os.path.dirname(__file__), "fonts")
|
||||
folder_paths.folder_names_and_paths["swwan_fonts"] = ([fonts_path], {".otf", ".ttf"})
|
||||
|
||||
# Merge all node mappings
|
||||
NODE_CLASS_MAPPINGS = {}
|
||||
NODE_CLASS_MAPPINGS.update(CROP_V2_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(CROP_V3_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(RESTORE_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(SCALE_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(COMPARER_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(SEED_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(IMAGE_BATCH_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(IMAGE_RESIZE_SUM_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(C_MATH_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(IMAGE_NODES_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(SWITCH_NODE_CLASS_MAPPINGS)
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {}
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(CROP_V2_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(CROP_V3_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(RESTORE_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(SCALE_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(COMPARER_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(SEED_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(IMAGE_BATCH_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(IMAGE_RESIZE_SUM_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(C_MATH_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(IMAGE_NODES_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(SWITCH_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
|
||||
WEB_DIRECTORY = "./web/js"
|
||||
|
||||
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']
|
||||
@@ -0,0 +1,186 @@
|
||||
import torch
|
||||
from PIL import Image
|
||||
import math
|
||||
from .layerstyle_utils import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask
|
||||
|
||||
|
||||
|
||||
class ImageScaleByAspectRatioV2:
|
||||
|
||||
def __init__(self):
|
||||
self.NODE_NAME = 'ImageScaleByAspectRatio V2'
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
ratio_list = ['original', 'custom', '1:1', '3:2', '4:3', '16:9', '2:3', '3:4', '9:16']
|
||||
fit_mode = ['letterbox', 'crop', 'fill']
|
||||
method_mode = ['lanczos', 'bicubic', 'hamming', 'bilinear', 'box', 'nearest']
|
||||
multiple_list = ['8', '16', '32', '64', '128', '256', '512', 'None']
|
||||
scale_to_list = ['None', 'longest', 'shortest', 'width', 'height', 'total_pixel(kilo pixel)']
|
||||
return {
|
||||
"required": {
|
||||
"aspect_ratio": (ratio_list,),
|
||||
"proportional_width": ("INT", {"default": 1, "min": 1, "max": 1e8, "step": 1}),
|
||||
"proportional_height": ("INT", {"default": 1, "min": 1, "max": 1e8, "step": 1}),
|
||||
"fit": (fit_mode,),
|
||||
"method": (method_mode,),
|
||||
"round_to_multiple": (multiple_list,),
|
||||
"scale_to_side": (scale_to_list,), # 是否按长边缩放
|
||||
"scale_to_length": ("INT", {"default": 1024, "min": 4, "max": 1e8, "step": 1}),
|
||||
"background_color": ("STRING", {"default": "#000000"}), # 背景颜色
|
||||
},
|
||||
"optional": {
|
||||
"image": ("IMAGE",), #
|
||||
"mask": ("MASK",), #
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("IMAGE", "MASK", "BOX", "INT", "INT",)
|
||||
RETURN_NAMES = ("image", "mask", "original_size", "width", "height",)
|
||||
FUNCTION = 'image_scale_by_aspect_ratio'
|
||||
CATEGORY = 'RunningHub/LayerUtility'
|
||||
|
||||
def image_scale_by_aspect_ratio(self, aspect_ratio, proportional_width, proportional_height,
|
||||
fit, method, round_to_multiple, scale_to_side, scale_to_length,
|
||||
background_color,
|
||||
image=None, mask = None,
|
||||
):
|
||||
orig_images = []
|
||||
orig_masks = []
|
||||
orig_width = 0
|
||||
orig_height = 0
|
||||
target_width = 0
|
||||
target_height = 0
|
||||
ratio = 1.0
|
||||
ret_images = []
|
||||
ret_masks = []
|
||||
if image is not None:
|
||||
for i in image:
|
||||
i = torch.unsqueeze(i, 0)
|
||||
orig_images.append(i)
|
||||
orig_width, orig_height = tensor2pil(orig_images[0]).size
|
||||
if mask is not None:
|
||||
if mask.dim() == 2:
|
||||
mask = torch.unsqueeze(mask, 0)
|
||||
for m in mask:
|
||||
m = torch.unsqueeze(m, 0)
|
||||
if not is_valid_mask(m) and m.shape==torch.Size([1,64,64]):
|
||||
log(f"Warning: {self.NODE_NAME} input mask is empty, ignore it.", message_type='warning')
|
||||
else:
|
||||
orig_masks.append(m)
|
||||
|
||||
if len(orig_masks) > 0:
|
||||
_width, _height = tensor2pil(orig_masks[0]).size
|
||||
if (orig_width > 0 and orig_width != _width) or (orig_height > 0 and orig_height != _height):
|
||||
log(f"Error: {self.NODE_NAME} execute failed, because the mask is does'nt match image.", message_type='error')
|
||||
return (None, None, None, 0, 0,)
|
||||
elif orig_width + orig_height == 0:
|
||||
orig_width = _width
|
||||
orig_height = _height
|
||||
|
||||
if orig_width + orig_height == 0:
|
||||
log(f"Error: {self.NODE_NAME} execute failed, because the image or mask at least one must be input.", message_type='error')
|
||||
return (None, None, None, 0, 0,)
|
||||
|
||||
if aspect_ratio == 'original':
|
||||
ratio = orig_width / orig_height
|
||||
elif aspect_ratio == 'custom':
|
||||
ratio = proportional_width / proportional_height
|
||||
else:
|
||||
s = aspect_ratio.split(":")
|
||||
ratio = int(s[0]) / int(s[1])
|
||||
|
||||
# calculate target width and height
|
||||
if ratio > 1:
|
||||
if scale_to_side == 'longest':
|
||||
target_width = scale_to_length
|
||||
target_height = int(target_width / ratio)
|
||||
elif scale_to_side == 'shortest':
|
||||
target_height = scale_to_length
|
||||
target_width = int(target_height * ratio)
|
||||
elif scale_to_side == 'width':
|
||||
target_width = scale_to_length
|
||||
target_height = int(target_width / ratio)
|
||||
elif scale_to_side == 'height':
|
||||
target_height = scale_to_length
|
||||
target_width = int(target_height * ratio)
|
||||
elif scale_to_side == 'total_pixel(kilo pixel)':
|
||||
target_width = math.sqrt(ratio * scale_to_length * 1000)
|
||||
target_height = target_width / ratio
|
||||
target_width = int(target_width)
|
||||
target_height = int(target_height)
|
||||
else:
|
||||
target_width = orig_width
|
||||
target_height = int(target_width / ratio)
|
||||
else:
|
||||
if scale_to_side == 'longest':
|
||||
target_height = scale_to_length
|
||||
target_width = int(target_height * ratio)
|
||||
elif scale_to_side == 'shortest':
|
||||
target_width = scale_to_length
|
||||
target_height = int(target_width / ratio)
|
||||
elif scale_to_side == 'width':
|
||||
target_width = scale_to_length
|
||||
target_height = int(target_width / ratio)
|
||||
elif scale_to_side == 'height':
|
||||
target_height = scale_to_length
|
||||
target_width = int(target_height * ratio)
|
||||
elif scale_to_side == 'total_pixel(kilo pixel)':
|
||||
target_width = math.sqrt(ratio * scale_to_length * 1000)
|
||||
target_height = target_width / ratio
|
||||
target_width = int(target_width)
|
||||
target_height = int(target_height)
|
||||
else:
|
||||
target_height = orig_height
|
||||
target_width = int(target_height * ratio)
|
||||
|
||||
if round_to_multiple != 'None':
|
||||
multiple = int(round_to_multiple)
|
||||
target_width = num_round_up_to_multiple(target_width, multiple)
|
||||
target_height = num_round_up_to_multiple(target_height, multiple)
|
||||
|
||||
_mask = Image.new('L', size=(target_width, target_height), color='black')
|
||||
_image = Image.new('RGB', size=(target_width, target_height), color='black')
|
||||
|
||||
resize_sampler = Image.LANCZOS
|
||||
if method == "bicubic":
|
||||
resize_sampler = Image.BICUBIC
|
||||
elif method == "hamming":
|
||||
resize_sampler = Image.HAMMING
|
||||
elif method == "bilinear":
|
||||
resize_sampler = Image.BILINEAR
|
||||
elif method == "box":
|
||||
resize_sampler = Image.BOX
|
||||
elif method == "nearest":
|
||||
resize_sampler = Image.NEAREST
|
||||
|
||||
if len(orig_images) > 0:
|
||||
for i in orig_images:
|
||||
_image = tensor2pil(i).convert('RGB')
|
||||
_image = fit_resize_image(_image, target_width, target_height, fit, resize_sampler, background_color)
|
||||
ret_images.append(pil2tensor(_image))
|
||||
if len(orig_masks) > 0:
|
||||
for m in orig_masks:
|
||||
_mask = tensor2pil(m).convert('L')
|
||||
_mask = fit_resize_image(_mask, target_width, target_height, fit, resize_sampler).convert('L')
|
||||
ret_masks.append(image2mask(_mask))
|
||||
if len(ret_images) > 0 and len(ret_masks) >0:
|
||||
log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
|
||||
return (torch.cat(ret_images, dim=0), torch.cat(ret_masks, dim=0),[orig_width, orig_height], target_width, target_height,)
|
||||
elif len(ret_images) > 0 and len(ret_masks) == 0:
|
||||
log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
|
||||
return (torch.cat(ret_images, dim=0), None, [orig_width, orig_height], target_width, target_height,)
|
||||
elif len(ret_images) == 0 and len(ret_masks) > 0:
|
||||
log(f"{self.NODE_NAME} Processed {len(ret_masks)} image(s).", message_type='finish')
|
||||
return (None, torch.cat(ret_masks, dim=0), [orig_width, orig_height], target_width, target_height,)
|
||||
else:
|
||||
log(f"Error: {self.NODE_NAME} skipped, because the available image or mask is not found.", message_type='error')
|
||||
return (None, None, None, 0, 0,)
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"LayerUtility: ImageScaleByAspectRatio V2": ImageScaleByAspectRatioV2
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"
|
||||
}
|
||||
@@ -0,0 +1,288 @@
|
||||
"""Utility functions extracted from ComfyUI_LayerStyle for node migration
|
||||
|
||||
This module contains essential image processing and conversion functions
|
||||
extracted from ComfyUI_LayerStyle/py/imagefunc.py to support the migrated nodes.
|
||||
|
||||
Original source: https://github.com/chflame163/ComfyUI_LayerStyle
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
import cv2
|
||||
from PIL import Image, ImageFilter, ImageDraw
|
||||
from typing import Union, List
|
||||
|
||||
|
||||
def log(message: str, message_type: str = 'info'):
|
||||
"""Log messages with color coding based on message type"""
|
||||
name = 'LayerStyle'
|
||||
|
||||
if message_type == 'error':
|
||||
message = '\033[1;41m' + message + '\033[m'
|
||||
elif message_type == 'warning':
|
||||
message = '\033[1;31m' + message + '\033[m'
|
||||
elif message_type == 'finish':
|
||||
message = '\033[1;32m' + message + '\033[m'
|
||||
else:
|
||||
message = '\033[1;33m' + message + '\033[m'
|
||||
print(f"# 😺dzNodes: {name} -> {message}")
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Converter Functions
|
||||
# ============================================================================
|
||||
|
||||
def cv22pil(cv2_img: np.ndarray) -> Image:
|
||||
"""Convert OpenCV image (BGR) to PIL Image (RGB)"""
|
||||
cv2_img = cv2.cvtColor(cv2_img, cv2.COLOR_BGR2RGB)
|
||||
return Image.fromarray(cv2_img)
|
||||
|
||||
|
||||
def pil2cv2(pil_img: Image) -> np.array:
|
||||
"""Convert PIL Image (RGB) to OpenCV image (BGR)"""
|
||||
np_img_array = np.asarray(pil_img)
|
||||
return cv2.cvtColor(np_img_array, cv2.COLOR_RGB2BGR)
|
||||
|
||||
|
||||
def pil2tensor(image: Image) -> torch.Tensor:
|
||||
"""Convert PIL Image to PyTorch tensor"""
|
||||
return torch.from_numpy(np.array(image).astype(np.float32) / 255.0).unsqueeze(0)
|
||||
|
||||
|
||||
def tensor2np(tensor: torch.Tensor) -> List[np.ndarray]:
|
||||
"""Convert PyTorch tensor to numpy array(s)"""
|
||||
if len(tensor.shape) == 3: # Single image
|
||||
return np.clip(255.0 * tensor.cpu().numpy(), 0, 255).astype(np.uint8)
|
||||
else: # Batch of images
|
||||
return [np.clip(255.0 * t.cpu().numpy(), 0, 255).astype(np.uint8) for t in tensor]
|
||||
|
||||
|
||||
def tensor2pil(t_image: torch.Tensor) -> Image:
|
||||
"""Convert PyTorch tensor to PIL Image"""
|
||||
return Image.fromarray(np.clip(255.0 * t_image.cpu().numpy().squeeze(), 0, 255).astype(np.uint8))
|
||||
|
||||
|
||||
def image2mask(image: Image) -> torch.Tensor:
|
||||
"""Convert PIL Image to mask tensor"""
|
||||
if image.mode == 'L':
|
||||
return torch.tensor([pil2tensor(image)[0, :, :].tolist()])
|
||||
else:
|
||||
image = image.convert('RGB').split()[0]
|
||||
return torch.tensor([pil2tensor(image)[0, :, :].tolist()])
|
||||
|
||||
|
||||
def mask2image(mask: torch.Tensor) -> Image:
|
||||
"""Convert mask tensor to PIL Image"""
|
||||
masks = tensor2np(mask)
|
||||
for m in masks:
|
||||
_mask = Image.fromarray(m).convert("L")
|
||||
_image = Image.new("RGBA", _mask.size, color='white')
|
||||
_image = Image.composite(
|
||||
_image, Image.new("RGBA", _mask.size, color='black'), _mask)
|
||||
return _image
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Image Processing Functions
|
||||
# ============================================================================
|
||||
|
||||
def gaussian_blur(image: Image, radius: int) -> Image:
|
||||
"""Apply Gaussian blur to an image"""
|
||||
# image = image.convert("RGBA")
|
||||
ret_image = image.filter(ImageFilter.GaussianBlur(radius=radius))
|
||||
return ret_image
|
||||
|
||||
|
||||
def fit_resize_image(image: Image, target_width: int, target_height: int, fit: str,
|
||||
resize_sampler: str, background_color: str = '#000000') -> Image:
|
||||
"""Resize image to target dimensions with different fit modes
|
||||
|
||||
Args:
|
||||
image: Input PIL Image
|
||||
target_width: Target width
|
||||
target_height: Target height
|
||||
fit: Fit mode - 'letterbox', 'crop', or 'fill'
|
||||
resize_sampler: PIL resampling filter
|
||||
background_color: Background color for letterbox mode
|
||||
|
||||
Returns:
|
||||
Resized PIL Image
|
||||
"""
|
||||
image = image.convert('RGB')
|
||||
orig_width, orig_height = image.size
|
||||
if image is not None:
|
||||
if fit == 'letterbox':
|
||||
if orig_width / orig_height > target_width / target_height: # 更宽,上下留黑
|
||||
fit_width = target_width
|
||||
fit_height = int(target_width / orig_width * orig_height)
|
||||
else: # 更瘦,左右留黑
|
||||
fit_height = target_height
|
||||
fit_width = int(target_height / orig_height * orig_width)
|
||||
fit_image = image.resize((fit_width, fit_height), resize_sampler)
|
||||
ret_image = Image.new('RGB', size=(target_width, target_height), color=background_color)
|
||||
ret_image.paste(fit_image, box=((target_width - fit_width)//2, (target_height - fit_height)//2))
|
||||
elif fit == 'crop':
|
||||
if orig_width / orig_height > target_width / target_height: # 更宽,裁左右
|
||||
fit_width = int(orig_height * target_width / target_height)
|
||||
fit_image = image.crop(
|
||||
((orig_width - fit_width)//2, 0, (orig_width - fit_width)//2 + fit_width, orig_height))
|
||||
else: # 更瘦,裁上下
|
||||
fit_height = int(orig_width * target_height / target_width)
|
||||
fit_image = image.crop(
|
||||
(0, (orig_height-fit_height)//2, orig_width, (orig_height-fit_height)//2 + fit_height))
|
||||
ret_image = fit_image.resize((target_width, target_height), resize_sampler)
|
||||
else:
|
||||
ret_image = image.resize((target_width, target_height), resize_sampler)
|
||||
return ret_image
|
||||
|
||||
|
||||
def draw_rect(image: Image, x: int, y: int, width: int, height: int,
|
||||
line_color: str, line_width: int, box_color: str = None) -> Image:
|
||||
"""Draw a rectangle on an image"""
|
||||
draw = ImageDraw.Draw(image)
|
||||
draw.rectangle((x, y, x + width, y + height), fill=box_color, outline=line_color, width=line_width)
|
||||
return image
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Mask Detection Functions
|
||||
# ============================================================================
|
||||
|
||||
def mask_area(image: Image) -> tuple:
|
||||
"""Detect the bounding box of non-transparent area in an image
|
||||
|
||||
Returns:
|
||||
Tuple of (x, y, width, height)
|
||||
"""
|
||||
cv2_image = pil2cv2(image.convert('RGBA'))
|
||||
gray = cv2.cvtColor(cv2_image, cv2.COLOR_BGR2GRAY)
|
||||
_, thresh = cv2.threshold(gray, 127, 255, 0)
|
||||
locs = np.where(thresh == 255)
|
||||
try:
|
||||
x1 = np.min(locs[1])
|
||||
x2 = np.max(locs[1])
|
||||
y1 = np.min(locs[0])
|
||||
y2 = np.max(locs[0])
|
||||
except ValueError:
|
||||
x1, y1, x2, y2 = -1, -1, 0, 0
|
||||
x1, y1, x2, y2 = min(x1, x2), min(y1, y2), max(x1, x2), max(y1, y2)
|
||||
return (x1, y1, x2 - x1, y2 - y1)
|
||||
|
||||
|
||||
def min_bounding_rect(image: Image) -> tuple:
|
||||
"""Find the minimum bounding rectangle of non-zero pixels
|
||||
|
||||
Returns:
|
||||
Tuple of (x, y, width, height)
|
||||
"""
|
||||
cv2_image = pil2cv2(image)
|
||||
gray = cv2.cvtColor(cv2_image, cv2.COLOR_BGR2GRAY)
|
||||
ret, thresh = cv2.threshold(gray, 127, 255, 0)
|
||||
contours, _ = cv2.findContours(thresh, 1, 2)
|
||||
x, y, width, height = 0, 0, 0, 0
|
||||
area = 0
|
||||
for contour in contours:
|
||||
_x, _y, _w, _h = cv2.boundingRect(contour)
|
||||
_area = _w * _h
|
||||
if _area > area:
|
||||
area = _area
|
||||
x, y, width, height = _x, _y, _w, _h
|
||||
return (x, y, width, height)
|
||||
|
||||
|
||||
def max_inscribed_rect(image: Image) -> tuple:
|
||||
"""Find the maximum inscribed rectangle within non-zero pixels
|
||||
|
||||
Returns:
|
||||
Tuple of (x, y, width, height)
|
||||
"""
|
||||
img = pil2cv2(image)
|
||||
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
|
||||
ret, img_bin = cv2.threshold(img_gray, 127, 255, cv2.THRESH_BINARY)
|
||||
contours, _ = cv2.findContours(img_bin, cv2.RETR_CCOMP, cv2.CHAIN_APPROX_SIMPLE)
|
||||
contour = contours[0].reshape(len(contours[0]), 2)
|
||||
rect = []
|
||||
for i in range(len(contour)):
|
||||
x1, y1 = contour[i]
|
||||
for j in range(len(contour)):
|
||||
x2, y2 = contour[j]
|
||||
area = abs(y2 - y1) * abs(x2 - x1)
|
||||
rect.append(((x1, y1), (x2, y2), area))
|
||||
all_rect = sorted(rect, key=lambda x: x[2], reverse=True)
|
||||
if all_rect:
|
||||
best_rect_found = False
|
||||
index_rect = 0
|
||||
nb_rect = len(all_rect)
|
||||
while not best_rect_found and index_rect < nb_rect:
|
||||
rect = all_rect[index_rect]
|
||||
(x1, y1) = rect[0]
|
||||
(x2, y2) = rect[1]
|
||||
valid_rect = True
|
||||
x = min(x1, x2)
|
||||
while x < max(x1, x2) + 1 and valid_rect:
|
||||
if any(img[y1, x]) == 0 or any(img[y2, x]) == 0:
|
||||
valid_rect = False
|
||||
x += 1
|
||||
y = min(y1, y2)
|
||||
while y < max(y1, y2) + 1 and valid_rect:
|
||||
if any(img[y, x1]) == 0 or any(img[y, x2]) == 0:
|
||||
valid_rect = False
|
||||
y += 1
|
||||
if valid_rect:
|
||||
best_rect_found = True
|
||||
index_rect += 1
|
||||
# 较小的数值排前面
|
||||
x1, y1, x2, y2 = min(x1, x2), min(y1, y2), max(x1, x2), max(y1, y2)
|
||||
return (x1, y1, x2 - x1, y2 - y1)
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Color Functions
|
||||
# ============================================================================
|
||||
|
||||
def Hex_to_RGB(inhex: str) -> tuple:
|
||||
"""Convert hex color code to RGB tuple
|
||||
|
||||
Args:
|
||||
inhex: Hex color code (e.g., '#FFFFFF' or '#FFF')
|
||||
|
||||
Returns:
|
||||
RGB tuple (r, g, b) with values 0-255
|
||||
"""
|
||||
if not inhex.startswith('#'):
|
||||
raise ValueError(f'Invalid Hex Code in {inhex}')
|
||||
else:
|
||||
if len(inhex) == 4:
|
||||
inhex = "#" + "".join([char * 2 for char in inhex[1:]])
|
||||
rval = inhex[1:3]
|
||||
gval = inhex[3:5]
|
||||
bval = inhex[5:]
|
||||
rgb = (int(rval, 16), int(gval, 16), int(bval, 16))
|
||||
return tuple(rgb)
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Value Functions
|
||||
# ============================================================================
|
||||
|
||||
def is_valid_mask(tensor: torch.Tensor) -> bool:
|
||||
"""Check if a mask tensor contains any non-zero values"""
|
||||
return not bool(torch.all(tensor == 0).item())
|
||||
|
||||
|
||||
def num_round_up_to_multiple(number: int, multiple: int) -> int:
|
||||
"""Round a number up to the nearest multiple
|
||||
|
||||
Args:
|
||||
number: Number to round
|
||||
multiple: Multiple to round to
|
||||
|
||||
Returns:
|
||||
Rounded number
|
||||
"""
|
||||
remainder = number % multiple
|
||||
if remainder == 0:
|
||||
return number
|
||||
else:
|
||||
factor = (number + multiple - 1) // multiple # 向上取整的计算方式
|
||||
return factor * multiple
|
||||
@@ -0,0 +1,340 @@
|
||||
{
|
||||
"sources": [
|
||||
{
|
||||
"id": "frontsub",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"local_file": "frontsub__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"sha256": "d4f1017495158a6133ff770441a4d517dfbf2a328ba42b0405f8729853fe8209",
|
||||
"git_blob_sha1": "e26e1cd48c7b5ac33f935dc0597cfaa1c7c81330",
|
||||
"acquisition_time": "2026-10-31T00:08:38.652628+00:00",
|
||||
"license_file": "frontsub__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "frontsub",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "LICENSE",
|
||||
"local_file": "frontsub__LICENSE",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-31T00:08:39.316374+00:00",
|
||||
"license_file": "frontsub__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "save",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "nodes.py",
|
||||
"local_file": "save__nodes.py",
|
||||
"commit": "8f40b43e0204d5b9780f3e9618e140e929e80594",
|
||||
"tree": "3a98824ee41cac4afc6d1782c995b672f34fbe05",
|
||||
"tag": "v0.9.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8f40b43e0204d5b9780f3e9618e140e929e80594/nodes.py",
|
||||
"sha256": "d3f0f179d0a9cf94092744740af06b3cf852576868358e2dbb2e01a137626bbd",
|
||||
"git_blob_sha1": "f19d5fd1c3b6fd879fd9de904fe13c3a092ac064",
|
||||
"acquisition_time": "2026-10-31T00:08:40.335792+00:00",
|
||||
"license_file": "save__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "save",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "folder_paths.py",
|
||||
"local_file": "save__folder_paths.py",
|
||||
"commit": "8f40b43e0204d5b9780f3e9618e140e929e80594",
|
||||
"tree": "3a98824ee41cac4afc6d1782c995b672f34fbe05",
|
||||
"tag": "v0.9.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8f40b43e0204d5b9780f3e9618e140e929e80594/folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"git_blob_sha1": "9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8",
|
||||
"acquisition_time": "2026-10-31T00:08:40.338199+00:00",
|
||||
"license_file": "save__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "save",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "save__LICENSE",
|
||||
"commit": "8f40b43e0204d5b9780f3e9618e140e929e80594",
|
||||
"tree": "3a98824ee41cac4afc6d1782c995b672f34fbe05",
|
||||
"tag": "v0.9.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8f40b43e0204d5b9780f3e9618e140e929e80594/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-31T00:08:40.341216+00:00",
|
||||
"license_file": "save__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "nodes.py",
|
||||
"local_file": "background__nodes.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/nodes.py",
|
||||
"sha256": "aecd111cf3f1ccf5a5ca6b4293d47dfe236f9a717e5190cbb6a66a03afb8d009",
|
||||
"git_blob_sha1": "883258bd157d0867eca70cf4e694f57a8d870c93",
|
||||
"acquisition_time": "2026-10-31T00:08:41.310181+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_mask.py",
|
||||
"local_file": "background__comfy_extras__nodes_mask.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/comfy_extras/nodes_mask.py",
|
||||
"sha256": "f235d52703229b0bb7840cc48f0fffe6b00bf9398e119aa7d7f2fc9f3bdaba12",
|
||||
"git_blob_sha1": "3fae7221f18dc18547a3ef4806cbc4518162093f",
|
||||
"acquisition_time": "2026-10-31T00:08:41.312708+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_bg_removal.py",
|
||||
"local_file": "background__comfy_extras__nodes_bg_removal.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/comfy_extras/nodes_bg_removal.py",
|
||||
"sha256": "c2cf4b42f10cfb1bb057b60a8745fb96a2462e1f1a2bd275e00795bb3f758cce",
|
||||
"git_blob_sha1": "c7b33a821720c5271354781d6c076b2b281d9d1e",
|
||||
"acquisition_time": "2026-10-31T00:08:41.313867+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy/bg_removal_model.py",
|
||||
"local_file": "background__comfy__bg_removal_model.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/comfy/bg_removal_model.py",
|
||||
"sha256": "c4f6f7beea512c759849efa07f03f09044ea76fe5c71fb7afff31e4886e4daa7",
|
||||
"git_blob_sha1": "c772c5f6a69ae49a3646cae6d23e60e93183662e",
|
||||
"acquisition_time": "2026-10-31T00:08:41.316511+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "folder_paths.py",
|
||||
"local_file": "background__folder_paths.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/folder_paths.py",
|
||||
"sha256": "92e26ff2c3a382902eade6c39efc7653f4470584e9945626126c6cdfe6284d8b",
|
||||
"git_blob_sha1": "937428c18d16cdfd3559922504e872c000da9363",
|
||||
"acquisition_time": "2026-10-31T00:08:41.319094+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_compositing.py",
|
||||
"local_file": "background__comfy_extras__nodes_compositing.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/comfy_extras/nodes_compositing.py",
|
||||
"sha256": "e001e2963baaa5ea9f031e6b7920e4d70dae248588a70ed31ab595706a29efae",
|
||||
"git_blob_sha1": "8fcbe720e7398d24d7dbc957787f68ec0d123713",
|
||||
"acquisition_time": "2026-10-31T00:08:41.320266+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_post_processing.py",
|
||||
"local_file": "background__comfy_extras__nodes_post_processing.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/comfy_extras/nodes_post_processing.py",
|
||||
"sha256": "96ec39e8d0e9fe9a70b332f97f994d507e1fa223a26699a3c9c9fbeedacf6575",
|
||||
"git_blob_sha1": "763b8a52fa84fbee9432ee116000f131c0002400",
|
||||
"acquisition_time": "2026-10-31T00:08:41.323416+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "background__LICENSE",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-31T00:08:41.326780+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "scale",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_images.py",
|
||||
"local_file": "scale__comfy_extras__nodes_images.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy_extras/nodes_images.py",
|
||||
"sha256": "695f34b53f21ff714629bdcc3811a231de96458644be297fc1c506f2001c2bd3",
|
||||
"git_blob_sha1": "ce21caade8cf9e1783507bafe5b3626566400c1d",
|
||||
"acquisition_time": "2026-10-31T00:08:42.267627+00:00",
|
||||
"license_file": "scale__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "scale",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_post_processing.py",
|
||||
"local_file": "scale__comfy_extras__nodes_post_processing.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy_extras/nodes_post_processing.py",
|
||||
"sha256": "082571da46d01e5d7f260ab43a4fe0944a8d2446511986810ac7295775acb48f",
|
||||
"git_blob_sha1": "01afa13a18eefe313f9517be4d1f6e0e035d610c",
|
||||
"acquisition_time": "2026-10-31T00:08:42.270536+00:00",
|
||||
"license_file": "scale__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "scale",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy/utils.py",
|
||||
"local_file": "scale__comfy__utils.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy/utils.py",
|
||||
"sha256": "dfd937c200548753a053befe53357c32deafb2384c9895bdde96b01a1d9ee4d6",
|
||||
"git_blob_sha1": "ffa98c9b1b8149917238ef0431c8e77211de669c",
|
||||
"acquisition_time": "2026-10-31T00:08:42.272456+00:00",
|
||||
"license_file": "scale__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "scale",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "scale__LICENSE",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-31T00:08:42.273925+00:00",
|
||||
"license_file": "scale__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "aining2022/ComfyUI_Swwan",
|
||||
"file": "image_scale_by_aspect_ratio_v2.py",
|
||||
"local_file": "layer__image_scale_by_aspect_ratio_v2.py",
|
||||
"commit": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"tree": "abfc66b11c94d7a6da31a755bc2a096825566fc9",
|
||||
"tag": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"url": "https://raw.githubusercontent.com/aining2022/ComfyUI_Swwan/881bc91790da6b907d3d28e5b91b295b9aef06ee/image_scale_by_aspect_ratio_v2.py",
|
||||
"sha256": "25986bfe8c985a66045abd2c76143d9766c53c77f553c74f7fbec191ea0169fe",
|
||||
"git_blob_sha1": "23e4b8a10dfd6d4113bdfe40d57e30976102e804",
|
||||
"acquisition_time": "2026-10-31T00:08:43.199145+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "aining2022/ComfyUI_Swwan",
|
||||
"file": "layerstyle_utils.py",
|
||||
"local_file": "layer__layerstyle_utils.py",
|
||||
"commit": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"tree": "abfc66b11c94d7a6da31a755bc2a096825566fc9",
|
||||
"tag": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"url": "https://raw.githubusercontent.com/aining2022/ComfyUI_Swwan/881bc91790da6b907d3d28e5b91b295b9aef06ee/layerstyle_utils.py",
|
||||
"sha256": "cba827fc697a71bf5917bea20fbdd86af3b22a2799318c2be95950bb36fd0668",
|
||||
"git_blob_sha1": "1aab6030bb78e6e295d5f6f65ee3abc5cd0a07c9",
|
||||
"acquisition_time": "2026-10-31T00:08:43.201568+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "aining2022/ComfyUI_Swwan",
|
||||
"file": "__init__.py",
|
||||
"local_file": "layer____init__.py",
|
||||
"commit": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"tree": "abfc66b11c94d7a6da31a755bc2a096825566fc9",
|
||||
"tag": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"url": "https://raw.githubusercontent.com/aining2022/ComfyUI_Swwan/881bc91790da6b907d3d28e5b91b295b9aef06ee/__init__.py",
|
||||
"sha256": "17048cb4c296eac73c68e3d5d3565b95e22bffadfd95c45cb4b7c769f5d89e7f",
|
||||
"git_blob_sha1": "3fa69fca9a8d18557b14b053fda1989caf821746",
|
||||
"acquisition_time": "2026-10-31T00:08:43.203933+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "aining2022/ComfyUI_Swwan",
|
||||
"file": "LICENSE",
|
||||
"local_file": "layer__LICENSE",
|
||||
"commit": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"tree": "abfc66b11c94d7a6da31a755bc2a096825566fc9",
|
||||
"tag": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"url": "https://raw.githubusercontent.com/aining2022/ComfyUI_Swwan/881bc91790da6b907d3d28e5b91b295b9aef06ee/LICENSE",
|
||||
"sha256": "ad35c0c38c2f8c88b35effa368bdb3dc2f74cf4e475ad0e21a6514ec64553ee4",
|
||||
"git_blob_sha1": "232ae139df1a325b6f3c62b33cc2132bee147a93",
|
||||
"acquisition_time": "2026-10-31T00:08:43.206006+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "本图独立声明版本;UE/tab/宿主恢复未知"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,6 @@
|
||||
tree 3a98824ee41cac4afc6d1782c995b672f34fbe05
|
||||
parent 3b832231bb81024d80bbe31b7d7e51e07b633beb
|
||||
author comfyanonymous <comfyanonymous@protonmail.com> 1768492655 -0500
|
||||
committer comfyanonymous <comfyanonymous@protonmail.com> 1768492655 -0500
|
||||
|
||||
ComfyUI v0.9.2
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "refs/tags/v0.9.2",
|
||||
"commit": "8f40b43e0204d5b9780f3e9618e140e929e80594",
|
||||
"object": "8f40b43e0204d5b9780f3e9618e140e929e80594"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
tree 3a98824ee41cac4afc6d1782c995b672f34fbe05
|
||||
parent 3b832231bb81024d80bbe31b7d7e51e07b633beb
|
||||
author comfyanonymous <comfyanonymous@protonmail.com> 1768492655 -0500
|
||||
committer comfyanonymous <comfyanonymous@protonmail.com> 1768492655 -0500
|
||||
|
||||
ComfyUI v0.9.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,496 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import time
|
||||
import mimetypes
|
||||
import logging
|
||||
from typing import Literal, List
|
||||
from collections.abc import Collection
|
||||
|
||||
from comfy.cli_args import args
|
||||
|
||||
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
|
||||
|
||||
folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {}
|
||||
|
||||
# --base-directory - Resets all default paths configured in folder_paths with a new base path
|
||||
if args.base_directory:
|
||||
base_path = os.path.abspath(args.base_directory)
|
||||
else:
|
||||
base_path = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
models_dir = os.path.join(base_path, "models")
|
||||
folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions)
|
||||
folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"])
|
||||
|
||||
folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions)
|
||||
folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions)
|
||||
folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions)
|
||||
folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"])
|
||||
folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions)
|
||||
folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["latent_upscale_models"] = ([os.path.join(models_dir, "latent_upscale_models")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set())
|
||||
|
||||
folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
|
||||
|
||||
folder_names_and_paths["model_patches"] = ([os.path.join(models_dir, "model_patches")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["audio_encoders"] = ([os.path.join(models_dir, "audio_encoders")], supported_pt_extensions)
|
||||
|
||||
output_directory = os.path.join(base_path, "output")
|
||||
temp_directory = os.path.join(base_path, "temp")
|
||||
input_directory = os.path.join(base_path, "input")
|
||||
user_directory = os.path.join(base_path, "user")
|
||||
|
||||
filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
|
||||
class CacheHelper:
|
||||
"""
|
||||
Helper class for managing file list cache data.
|
||||
"""
|
||||
def __init__(self):
|
||||
self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
self.active = False
|
||||
|
||||
def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]:
|
||||
if not self.active:
|
||||
return default
|
||||
return self.cache.get(key, default)
|
||||
|
||||
def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None:
|
||||
if self.active:
|
||||
self.cache[key] = value
|
||||
|
||||
def clear(self):
|
||||
self.cache.clear()
|
||||
|
||||
def __enter__(self):
|
||||
self.active = True
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.active = False
|
||||
self.clear()
|
||||
|
||||
cache_helper = CacheHelper()
|
||||
|
||||
extension_mimetypes_cache = {
|
||||
"webp" : "image",
|
||||
"fbx" : "model",
|
||||
}
|
||||
|
||||
def map_legacy(folder_name: str) -> str:
|
||||
legacy = {"unet": "diffusion_models",
|
||||
"clip": "text_encoders"}
|
||||
return legacy.get(folder_name, folder_name)
|
||||
|
||||
if not os.path.exists(input_directory):
|
||||
try:
|
||||
os.makedirs(input_directory)
|
||||
except:
|
||||
logging.error("Failed to create input directory")
|
||||
|
||||
def set_output_directory(output_dir: str) -> None:
|
||||
global output_directory
|
||||
output_directory = output_dir
|
||||
|
||||
def set_temp_directory(temp_dir: str) -> None:
|
||||
global temp_directory
|
||||
temp_directory = temp_dir
|
||||
|
||||
def set_input_directory(input_dir: str) -> None:
|
||||
global input_directory
|
||||
input_directory = input_dir
|
||||
|
||||
def get_output_directory() -> str:
|
||||
global output_directory
|
||||
return output_directory
|
||||
|
||||
def get_temp_directory() -> str:
|
||||
global temp_directory
|
||||
return temp_directory
|
||||
|
||||
def get_input_directory() -> str:
|
||||
global input_directory
|
||||
return input_directory
|
||||
|
||||
def get_user_directory() -> str:
|
||||
return user_directory
|
||||
|
||||
def set_user_directory(user_dir: str) -> None:
|
||||
global user_directory
|
||||
user_directory = user_dir
|
||||
|
||||
|
||||
# System User Protection - Protects system directories from HTTP endpoint access
|
||||
# System Users are internal-only users that cannot be accessed via HTTP endpoints.
|
||||
# They use the '__' prefix convention (similar to Python's private member convention).
|
||||
SYSTEM_USER_PREFIX = "__"
|
||||
|
||||
|
||||
def get_system_user_directory(name: str = "system") -> str:
|
||||
"""
|
||||
Get the path to a System User directory.
|
||||
|
||||
System User directories (prefixed with '__') are only accessible via internal API,
|
||||
not through HTTP endpoints. Use this for storing system-internal data that
|
||||
should not be exposed to users.
|
||||
|
||||
Args:
|
||||
name: System user name (e.g., "system", "cache"). Must be alphanumeric
|
||||
with underscores allowed, but cannot start with underscore.
|
||||
|
||||
Returns:
|
||||
Absolute path to the system user directory.
|
||||
|
||||
Raises:
|
||||
ValueError: If name is empty, invalid, or starts with underscore.
|
||||
|
||||
Example:
|
||||
>>> get_system_user_directory("cache")
|
||||
'/path/to/user/__cache'
|
||||
"""
|
||||
if not name or not isinstance(name, str):
|
||||
raise ValueError("System user name cannot be empty")
|
||||
if not name.replace("_", "").isalnum():
|
||||
raise ValueError(f"Invalid system user name: '{name}'")
|
||||
if name.startswith("_"):
|
||||
raise ValueError("System user name should not start with underscore")
|
||||
return os.path.join(get_user_directory(), f"{SYSTEM_USER_PREFIX}{name}")
|
||||
|
||||
|
||||
def get_public_user_directory(user_id: str) -> str | None:
|
||||
"""
|
||||
Get the path to a Public User directory for HTTP endpoint access.
|
||||
|
||||
This function provides structural security by returning None for any
|
||||
System User (prefixed with '__'). All HTTP endpoints should use this
|
||||
function instead of directly constructing user paths.
|
||||
|
||||
Args:
|
||||
user_id: User identifier from HTTP request.
|
||||
|
||||
Returns:
|
||||
Absolute path to the user directory, or None if user_id is invalid
|
||||
or refers to a System User.
|
||||
|
||||
Example:
|
||||
>>> get_public_user_directory("default")
|
||||
'/path/to/user/default'
|
||||
>>> get_public_user_directory("__system")
|
||||
None
|
||||
"""
|
||||
if not user_id or not isinstance(user_id, str):
|
||||
return None
|
||||
if user_id.startswith(SYSTEM_USER_PREFIX):
|
||||
return None
|
||||
return os.path.join(get_user_directory(), user_id)
|
||||
|
||||
|
||||
#NOTE: used in http server so don't put folders that should not be accessed remotely
|
||||
def get_directory_by_type(type_name: str) -> str | None:
|
||||
if type_name == "output":
|
||||
return get_output_directory()
|
||||
if type_name == "temp":
|
||||
return get_temp_directory()
|
||||
if type_name == "input":
|
||||
return get_input_directory()
|
||||
return None
|
||||
|
||||
def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]:
|
||||
"""
|
||||
Example:
|
||||
files = os.listdir(folder_paths.get_input_directory())
|
||||
videos = filter_files_content_types(files, ["video"])
|
||||
|
||||
Note:
|
||||
- 'model' in MIME context refers to 3D models, not files containing trained weights and parameters
|
||||
"""
|
||||
global extension_mimetypes_cache
|
||||
result = []
|
||||
for file in files:
|
||||
extension = file.split('.')[-1]
|
||||
if extension not in extension_mimetypes_cache:
|
||||
mime_type, _ = mimetypes.guess_type(file, strict=False)
|
||||
if not mime_type:
|
||||
continue
|
||||
content_type = mime_type.split('/')[0]
|
||||
extension_mimetypes_cache[extension] = content_type
|
||||
else:
|
||||
content_type = extension_mimetypes_cache[extension]
|
||||
|
||||
if content_type in content_types:
|
||||
result.append(file)
|
||||
return result
|
||||
|
||||
# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format
|
||||
# otherwise use default_path as base_dir
|
||||
def annotated_filepath(name: str) -> tuple[str, str | None]:
|
||||
if name.endswith("[output]"):
|
||||
base_dir = get_output_directory()
|
||||
name = name[:-9]
|
||||
elif name.endswith("[input]"):
|
||||
base_dir = get_input_directory()
|
||||
name = name[:-8]
|
||||
elif name.endswith("[temp]"):
|
||||
base_dir = get_temp_directory()
|
||||
name = name[:-7]
|
||||
else:
|
||||
return name, None
|
||||
|
||||
return name, base_dir
|
||||
|
||||
|
||||
def get_annotated_filepath(name: str, default_dir: str | None=None) -> str:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
if default_dir is not None:
|
||||
base_dir = default_dir
|
||||
else:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
return os.path.join(base_dir, name)
|
||||
|
||||
|
||||
def exists_annotated_filepath(name) -> bool:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
filepath = os.path.join(base_dir, name)
|
||||
return os.path.exists(filepath)
|
||||
|
||||
|
||||
def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None:
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name in folder_names_and_paths:
|
||||
paths, _exts = folder_names_and_paths[folder_name]
|
||||
if full_folder_path in paths:
|
||||
if is_default and paths[0] != full_folder_path:
|
||||
# If the path to the folder is not the first in the list, move it to the beginning.
|
||||
paths.remove(full_folder_path)
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
if is_default:
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
paths.append(full_folder_path)
|
||||
else:
|
||||
folder_names_and_paths[folder_name] = ([full_folder_path], set())
|
||||
|
||||
def get_folder_paths(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
return folder_names_and_paths[folder_name][0][:]
|
||||
|
||||
def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]:
|
||||
if not os.path.isdir(directory):
|
||||
return [], {}
|
||||
|
||||
if excluded_dir_names is None:
|
||||
excluded_dir_names = []
|
||||
|
||||
result = []
|
||||
dirs = {}
|
||||
|
||||
# Attempt to add the initial directory to dirs with error handling
|
||||
try:
|
||||
dirs[directory] = os.path.getmtime(directory)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
|
||||
|
||||
logging.debug("recursive file list on directory {}".format(directory))
|
||||
dirpath: str
|
||||
subdirs: list[str]
|
||||
filenames: list[str]
|
||||
|
||||
for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True):
|
||||
subdirs[:] = [d for d in subdirs if d not in excluded_dir_names]
|
||||
for file_name in filenames:
|
||||
try:
|
||||
relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory)
|
||||
result.append(relative_path)
|
||||
except:
|
||||
logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.")
|
||||
continue
|
||||
|
||||
for d in subdirs:
|
||||
path: str = os.path.join(dirpath, d)
|
||||
try:
|
||||
dirs[path] = os.path.getmtime(path)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {path}. Skipping this path.")
|
||||
continue
|
||||
logging.debug("found {} files".format(len(result)))
|
||||
return result, dirs
|
||||
|
||||
def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]:
|
||||
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
|
||||
|
||||
|
||||
|
||||
def get_full_path(folder_name: str, filename: str) -> str | None:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in folder_names_and_paths:
|
||||
return None
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
filename = os.path.relpath(os.path.join("/", filename), "/")
|
||||
for x in folders[0]:
|
||||
full_path = os.path.join(x, filename)
|
||||
if os.path.isfile(full_path):
|
||||
return full_path
|
||||
elif os.path.islink(full_path):
|
||||
logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def get_full_path_or_raise(folder_name: str, filename: str) -> str:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
full_path = get_full_path(folder_name, filename)
|
||||
if full_path is None:
|
||||
raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.")
|
||||
return full_path
|
||||
|
||||
|
||||
def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
global folder_names_and_paths
|
||||
output_list = set()
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
output_folders = {}
|
||||
for x in folders[0]:
|
||||
files, folders_all = recursive_search(x, excluded_dir_names=[".git"])
|
||||
output_list.update(filter_files_extensions(files, folders[1]))
|
||||
output_folders = {**output_folders, **folders_all}
|
||||
|
||||
return sorted(list(output_list)), output_folders, time.perf_counter()
|
||||
|
||||
def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None:
|
||||
strong_cache = cache_helper.get(folder_name)
|
||||
if strong_cache is not None:
|
||||
return strong_cache
|
||||
|
||||
global filename_list_cache
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in filename_list_cache:
|
||||
return None
|
||||
out = filename_list_cache[folder_name]
|
||||
|
||||
for x in out[1]:
|
||||
time_modified = out[1][x]
|
||||
folder = x
|
||||
if os.path.getmtime(folder) != time_modified:
|
||||
return None
|
||||
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
for x in folders[0]:
|
||||
if os.path.isdir(x):
|
||||
if x not in out[1]:
|
||||
return None
|
||||
|
||||
return out
|
||||
|
||||
def get_filename_list(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
out = cached_filename_list_(folder_name)
|
||||
if out is None:
|
||||
out = get_filename_list_(folder_name)
|
||||
global filename_list_cache
|
||||
filename_list_cache[folder_name] = out
|
||||
cache_helper.set(folder_name, out)
|
||||
return list(out[0])
|
||||
|
||||
def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]:
|
||||
def map_filename(filename: str) -> tuple[int, str]:
|
||||
prefix_len = len(os.path.basename(filename_prefix))
|
||||
prefix = filename[:prefix_len + 1]
|
||||
try:
|
||||
digits = int(filename[prefix_len + 1:].split('_')[0])
|
||||
except:
|
||||
digits = 0
|
||||
return digits, prefix
|
||||
|
||||
def compute_vars(input: str, image_width: int, image_height: int) -> str:
|
||||
input = input.replace("%width%", str(image_width))
|
||||
input = input.replace("%height%", str(image_height))
|
||||
now = time.localtime()
|
||||
input = input.replace("%year%", str(now.tm_year))
|
||||
input = input.replace("%month%", str(now.tm_mon).zfill(2))
|
||||
input = input.replace("%day%", str(now.tm_mday).zfill(2))
|
||||
input = input.replace("%hour%", str(now.tm_hour).zfill(2))
|
||||
input = input.replace("%minute%", str(now.tm_min).zfill(2))
|
||||
input = input.replace("%second%", str(now.tm_sec).zfill(2))
|
||||
return input
|
||||
|
||||
if "%" in filename_prefix:
|
||||
filename_prefix = compute_vars(filename_prefix, image_width, image_height)
|
||||
|
||||
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
|
||||
filename = os.path.basename(os.path.normpath(filename_prefix))
|
||||
|
||||
full_output_folder = os.path.join(output_dir, subfolder)
|
||||
|
||||
if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
|
||||
err = "**** ERROR: Saving image outside the output folder is not allowed." + \
|
||||
"\n full_output_folder: " + os.path.abspath(full_output_folder) + \
|
||||
"\n output_dir: " + output_dir + \
|
||||
"\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder)))
|
||||
logging.error(err)
|
||||
raise Exception(err)
|
||||
|
||||
try:
|
||||
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
|
||||
except ValueError:
|
||||
counter = 1
|
||||
except FileNotFoundError:
|
||||
os.makedirs(full_output_folder, exist_ok=True)
|
||||
counter = 1
|
||||
return full_output_folder, filename, counter, subfolder, filename_prefix
|
||||
|
||||
def get_input_subfolders() -> list[str]:
|
||||
"""Returns a list of all subfolder paths in the input directory, recursively.
|
||||
|
||||
Returns:
|
||||
List of folder paths relative to the input directory, excluding the root directory
|
||||
"""
|
||||
input_dir = get_input_directory()
|
||||
folders = []
|
||||
|
||||
try:
|
||||
if not os.path.exists(input_dir):
|
||||
return []
|
||||
|
||||
for root, dirs, _ in os.walk(input_dir):
|
||||
rel_path = os.path.relpath(root, input_dir)
|
||||
if rel_path != ".": # Only include non-root directories
|
||||
# Normalize path separators to forward slashes
|
||||
folders.append(rel_path.replace(os.sep, '/'))
|
||||
|
||||
return sorted(folders)
|
||||
except FileNotFoundError:
|
||||
return []
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,6 @@
|
||||
tree 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>.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,647 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import nodes
|
||||
import folder_paths
|
||||
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import torch
|
||||
import comfy.utils
|
||||
|
||||
from server import PromptServer
|
||||
from comfy_api.latest import ComfyExtension, IO, UI
|
||||
from typing_extensions import override
|
||||
|
||||
SVG = IO.SVG.Type # TODO: temporary solution for backward compatibility, will be removed later.
|
||||
|
||||
MAX_RESOLUTION = nodes.MAX_RESOLUTION
|
||||
|
||||
class ImageCrop(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ImageCrop",
|
||||
display_name="Image Crop",
|
||||
category="image/transform",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
IO.Int.Input("width", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("height", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("x", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("y", default=0, min=0, max=nodes.MAX_RESOLUTION, step=1),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, width, height, x, y) -> IO.NodeOutput:
|
||||
x = min(x, image.shape[2] - 1)
|
||||
y = min(y, image.shape[1] - 1)
|
||||
to_x = width + x
|
||||
to_y = height + y
|
||||
img = image[:,y:to_y, x:to_x, :]
|
||||
return IO.NodeOutput(img)
|
||||
|
||||
crop = execute # TODO: remove
|
||||
|
||||
|
||||
class RepeatImageBatch(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="RepeatImageBatch",
|
||||
category="image/batch",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
IO.Int.Input("amount", default=1, min=1, max=4096),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, amount) -> IO.NodeOutput:
|
||||
s = image.repeat((amount, 1,1,1))
|
||||
return IO.NodeOutput(s)
|
||||
|
||||
repeat = execute # TODO: remove
|
||||
|
||||
|
||||
class ImageFromBatch(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ImageFromBatch",
|
||||
category="image/batch",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
IO.Int.Input("batch_index", default=0, min=0, max=4095),
|
||||
IO.Int.Input("length", default=1, min=1, max=4096),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, batch_index, length) -> IO.NodeOutput:
|
||||
s_in = image
|
||||
batch_index = min(s_in.shape[0] - 1, batch_index)
|
||||
length = min(s_in.shape[0] - batch_index, length)
|
||||
s = s_in[batch_index:batch_index + length].clone()
|
||||
return IO.NodeOutput(s)
|
||||
|
||||
frombatch = execute # TODO: remove
|
||||
|
||||
|
||||
class ImageAddNoise(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ImageAddNoise",
|
||||
category="image",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
IO.Int.Input(
|
||||
"seed",
|
||||
default=0,
|
||||
min=0,
|
||||
max=0xFFFFFFFFFFFFFFFF,
|
||||
control_after_generate=True,
|
||||
tooltip="The random seed used for creating the noise.",
|
||||
),
|
||||
IO.Float.Input("strength", default=0.5, min=0.0, max=1.0, step=0.01),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, seed, strength) -> IO.NodeOutput:
|
||||
generator = torch.manual_seed(seed)
|
||||
s = torch.clip((image + strength * torch.randn(image.size(), generator=generator, device="cpu").to(image)), min=0.0, max=1.0)
|
||||
return IO.NodeOutput(s)
|
||||
|
||||
repeat = execute # TODO: remove
|
||||
|
||||
|
||||
class SaveAnimatedWEBP(IO.ComfyNode):
|
||||
COMPRESS_METHODS = {"default": 4, "fastest": 0, "slowest": 6}
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SaveAnimatedWEBP",
|
||||
category="image/animation",
|
||||
inputs=[
|
||||
IO.Image.Input("images"),
|
||||
IO.String.Input("filename_prefix", default="ComfyUI"),
|
||||
IO.Float.Input("fps", default=6.0, min=0.01, max=1000.0, step=0.01),
|
||||
IO.Boolean.Input("lossless", default=True),
|
||||
IO.Int.Input("quality", default=80, min=0, max=100),
|
||||
IO.Combo.Input("method", options=list(cls.COMPRESS_METHODS.keys())),
|
||||
# "num_frames": ("INT", {"default": 0, "min": 0, "max": 8192}),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, images, fps, filename_prefix, lossless, quality, method, num_frames=0) -> IO.NodeOutput:
|
||||
return IO.NodeOutput(
|
||||
ui=UI.ImageSaveHelper.get_save_animated_webp_ui(
|
||||
images=images,
|
||||
filename_prefix=filename_prefix,
|
||||
cls=cls,
|
||||
fps=fps,
|
||||
lossless=lossless,
|
||||
quality=quality,
|
||||
method=cls.COMPRESS_METHODS.get(method)
|
||||
)
|
||||
)
|
||||
|
||||
save_images = execute # TODO: remove
|
||||
|
||||
|
||||
class SaveAnimatedPNG(IO.ComfyNode):
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SaveAnimatedPNG",
|
||||
category="image/animation",
|
||||
inputs=[
|
||||
IO.Image.Input("images"),
|
||||
IO.String.Input("filename_prefix", default="ComfyUI"),
|
||||
IO.Float.Input("fps", default=6.0, min=0.01, max=1000.0, step=0.01),
|
||||
IO.Int.Input("compress_level", default=4, min=0, max=9),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, images, fps, compress_level, filename_prefix="ComfyUI") -> IO.NodeOutput:
|
||||
return IO.NodeOutput(
|
||||
ui=UI.ImageSaveHelper.get_save_animated_png_ui(
|
||||
images=images,
|
||||
filename_prefix=filename_prefix,
|
||||
cls=cls,
|
||||
fps=fps,
|
||||
compress_level=compress_level,
|
||||
)
|
||||
)
|
||||
|
||||
save_images = execute # TODO: remove
|
||||
|
||||
|
||||
class ImageStitch(IO.ComfyNode):
|
||||
"""Upstreamed from https://github.com/kijai/ComfyUI-KJNodes"""
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ImageStitch",
|
||||
display_name="Image Stitch",
|
||||
description="Stitches image2 to image1 in the specified direction.\n"
|
||||
"If image2 is not provided, returns image1 unchanged.\n"
|
||||
"Optional spacing can be added between images.",
|
||||
category="image/transform",
|
||||
inputs=[
|
||||
IO.Image.Input("image1"),
|
||||
IO.Combo.Input("direction", options=["right", "down", "left", "up"], default="right"),
|
||||
IO.Boolean.Input("match_image_size", default=True),
|
||||
IO.Int.Input("spacing_width", default=0, min=0, max=1024, step=2),
|
||||
IO.Combo.Input("spacing_color", options=["white", "black", "red", "green", "blue"], default="white"),
|
||||
IO.Image.Input("image2", optional=True),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(
|
||||
cls,
|
||||
image1,
|
||||
direction,
|
||||
match_image_size,
|
||||
spacing_width,
|
||||
spacing_color,
|
||||
image2=None,
|
||||
) -> IO.NodeOutput:
|
||||
if image2 is None:
|
||||
return IO.NodeOutput(image1)
|
||||
|
||||
# Handle batch size differences
|
||||
if image1.shape[0] != image2.shape[0]:
|
||||
max_batch = max(image1.shape[0], image2.shape[0])
|
||||
if image1.shape[0] < max_batch:
|
||||
image1 = torch.cat(
|
||||
[image1, image1[-1:].repeat(max_batch - image1.shape[0], 1, 1, 1)]
|
||||
)
|
||||
if image2.shape[0] < max_batch:
|
||||
image2 = torch.cat(
|
||||
[image2, image2[-1:].repeat(max_batch - image2.shape[0], 1, 1, 1)]
|
||||
)
|
||||
|
||||
# Match image sizes if requested
|
||||
if match_image_size:
|
||||
h1, w1 = image1.shape[1:3]
|
||||
h2, w2 = image2.shape[1:3]
|
||||
aspect_ratio = w2 / h2
|
||||
|
||||
if direction in ["left", "right"]:
|
||||
target_h, target_w = h1, int(h1 * aspect_ratio)
|
||||
else: # up, down
|
||||
target_w, target_h = w1, int(w1 / aspect_ratio)
|
||||
|
||||
image2 = comfy.utils.common_upscale(
|
||||
image2.movedim(-1, 1), target_w, target_h, "lanczos", "disabled"
|
||||
).movedim(1, -1)
|
||||
|
||||
color_map = {
|
||||
"white": 1.0,
|
||||
"black": 0.0,
|
||||
"red": (1.0, 0.0, 0.0),
|
||||
"green": (0.0, 1.0, 0.0),
|
||||
"blue": (0.0, 0.0, 1.0),
|
||||
}
|
||||
|
||||
color_val = color_map[spacing_color]
|
||||
|
||||
# When not matching sizes, pad to align non-concat dimensions
|
||||
if not match_image_size:
|
||||
h1, w1 = image1.shape[1:3]
|
||||
h2, w2 = image2.shape[1:3]
|
||||
pad_value = 0.0
|
||||
if not isinstance(color_val, tuple):
|
||||
pad_value = color_val
|
||||
|
||||
if direction in ["left", "right"]:
|
||||
# For horizontal concat, pad heights to match
|
||||
if h1 != h2:
|
||||
target_h = max(h1, h2)
|
||||
if h1 < target_h:
|
||||
pad_h = target_h - h1
|
||||
pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2
|
||||
image1 = torch.nn.functional.pad(image1, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)
|
||||
if h2 < target_h:
|
||||
pad_h = target_h - h2
|
||||
pad_top, pad_bottom = pad_h // 2, pad_h - pad_h // 2
|
||||
image2 = torch.nn.functional.pad(image2, (0, 0, 0, 0, pad_top, pad_bottom), mode='constant', value=pad_value)
|
||||
else: # up, down
|
||||
# For vertical concat, pad widths to match
|
||||
if w1 != w2:
|
||||
target_w = max(w1, w2)
|
||||
if w1 < target_w:
|
||||
pad_w = target_w - w1
|
||||
pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2
|
||||
image1 = torch.nn.functional.pad(image1, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)
|
||||
if w2 < target_w:
|
||||
pad_w = target_w - w2
|
||||
pad_left, pad_right = pad_w // 2, pad_w - pad_w // 2
|
||||
image2 = torch.nn.functional.pad(image2, (0, 0, pad_left, pad_right), mode='constant', value=pad_value)
|
||||
|
||||
# Ensure same number of channels
|
||||
if image1.shape[-1] != image2.shape[-1]:
|
||||
max_channels = max(image1.shape[-1], image2.shape[-1])
|
||||
if image1.shape[-1] < max_channels:
|
||||
image1 = torch.cat(
|
||||
[
|
||||
image1,
|
||||
torch.ones(
|
||||
*image1.shape[:-1],
|
||||
max_channels - image1.shape[-1],
|
||||
device=image1.device,
|
||||
),
|
||||
],
|
||||
dim=-1,
|
||||
)
|
||||
if image2.shape[-1] < max_channels:
|
||||
image2 = torch.cat(
|
||||
[
|
||||
image2,
|
||||
torch.ones(
|
||||
*image2.shape[:-1],
|
||||
max_channels - image2.shape[-1],
|
||||
device=image2.device,
|
||||
),
|
||||
],
|
||||
dim=-1,
|
||||
)
|
||||
|
||||
# Add spacing if specified
|
||||
if spacing_width > 0:
|
||||
spacing_width = spacing_width + (spacing_width % 2) # Ensure even
|
||||
|
||||
if direction in ["left", "right"]:
|
||||
spacing_shape = (
|
||||
image1.shape[0],
|
||||
max(image1.shape[1], image2.shape[1]),
|
||||
spacing_width,
|
||||
image1.shape[-1],
|
||||
)
|
||||
else:
|
||||
spacing_shape = (
|
||||
image1.shape[0],
|
||||
spacing_width,
|
||||
max(image1.shape[2], image2.shape[2]),
|
||||
image1.shape[-1],
|
||||
)
|
||||
|
||||
spacing = torch.full(spacing_shape, 0.0, device=image1.device)
|
||||
if isinstance(color_val, tuple):
|
||||
for i, c in enumerate(color_val):
|
||||
if i < spacing.shape[-1]:
|
||||
spacing[..., i] = c
|
||||
if spacing.shape[-1] == 4: # Add alpha
|
||||
spacing[..., 3] = 1.0
|
||||
else:
|
||||
spacing[..., : min(3, spacing.shape[-1])] = color_val
|
||||
if spacing.shape[-1] == 4:
|
||||
spacing[..., 3] = 1.0
|
||||
|
||||
# Concatenate images
|
||||
images = [image2, image1] if direction in ["left", "up"] else [image1, image2]
|
||||
if spacing_width > 0:
|
||||
images.insert(1, spacing)
|
||||
|
||||
concat_dim = 2 if direction in ["left", "right"] else 1
|
||||
return IO.NodeOutput(torch.cat(images, dim=concat_dim))
|
||||
|
||||
stitch = execute # TODO: remove
|
||||
|
||||
|
||||
class ResizeAndPadImage(IO.ComfyNode):
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ResizeAndPadImage",
|
||||
category="image/transform",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
IO.Int.Input("target_width", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Int.Input("target_height", default=512, min=1, max=nodes.MAX_RESOLUTION, step=1),
|
||||
IO.Combo.Input("padding_color", options=["white", "black"]),
|
||||
IO.Combo.Input("interpolation", options=["area", "bicubic", "nearest-exact", "bilinear", "lanczos"]),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, target_width, target_height, padding_color, interpolation) -> IO.NodeOutput:
|
||||
batch_size, orig_height, orig_width, channels = image.shape
|
||||
|
||||
scale_w = target_width / orig_width
|
||||
scale_h = target_height / orig_height
|
||||
scale = min(scale_w, scale_h)
|
||||
|
||||
new_width = int(orig_width * scale)
|
||||
new_height = int(orig_height * scale)
|
||||
|
||||
image_permuted = image.permute(0, 3, 1, 2)
|
||||
|
||||
resized = comfy.utils.common_upscale(image_permuted, new_width, new_height, interpolation, "disabled")
|
||||
|
||||
pad_value = 0.0 if padding_color == "black" else 1.0
|
||||
padded = torch.full(
|
||||
(batch_size, channels, target_height, target_width),
|
||||
pad_value,
|
||||
dtype=image.dtype,
|
||||
device=image.device
|
||||
)
|
||||
|
||||
y_offset = (target_height - new_height) // 2
|
||||
x_offset = (target_width - new_width) // 2
|
||||
|
||||
padded[:, :, y_offset:y_offset + new_height, x_offset:x_offset + new_width] = resized
|
||||
|
||||
output = padded.permute(0, 2, 3, 1)
|
||||
return IO.NodeOutput(output)
|
||||
|
||||
resize_and_pad = execute # TODO: remove
|
||||
|
||||
|
||||
class SaveSVGNode(IO.ComfyNode):
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SaveSVGNode",
|
||||
description="Save SVG files on disk.",
|
||||
category="image/save",
|
||||
inputs=[
|
||||
IO.SVG.Input("svg"),
|
||||
IO.String.Input(
|
||||
"filename_prefix",
|
||||
default="svg/ComfyUI",
|
||||
tooltip="The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes.",
|
||||
),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, svg: IO.SVG.Type, filename_prefix="svg/ComfyUI") -> IO.NodeOutput:
|
||||
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, folder_paths.get_output_directory())
|
||||
results: list[UI.SavedResult] = []
|
||||
|
||||
# Prepare metadata JSON
|
||||
metadata_dict = {}
|
||||
if cls.hidden.prompt is not None:
|
||||
metadata_dict["prompt"] = cls.hidden.prompt
|
||||
if cls.hidden.extra_pnginfo is not None:
|
||||
metadata_dict.update(cls.hidden.extra_pnginfo)
|
||||
|
||||
# Convert metadata to JSON string
|
||||
metadata_json = json.dumps(metadata_dict, indent=2) if metadata_dict else None
|
||||
|
||||
|
||||
for batch_number, svg_bytes in enumerate(svg.data):
|
||||
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
|
||||
file = f"{filename_with_batch_num}_{counter:05}_.svg"
|
||||
|
||||
# Read SVG content
|
||||
svg_bytes.seek(0)
|
||||
svg_content = svg_bytes.read().decode('utf-8')
|
||||
|
||||
# Inject metadata if available
|
||||
if metadata_json:
|
||||
# Create metadata element with CDATA section
|
||||
metadata_element = f""" <metadata>
|
||||
<![CDATA[
|
||||
{metadata_json}
|
||||
]]>
|
||||
</metadata>
|
||||
"""
|
||||
# Insert metadata after opening svg tag using regex with a replacement function
|
||||
def replacement(match):
|
||||
# match.group(1) contains the captured <svg> tag
|
||||
return match.group(1) + '\n' + metadata_element
|
||||
|
||||
# Apply the substitution
|
||||
svg_content = re.sub(r'(<svg[^>]*>)', replacement, svg_content, flags=re.UNICODE)
|
||||
|
||||
# Write the modified SVG to file
|
||||
with open(os.path.join(full_output_folder, file), 'wb') as svg_file:
|
||||
svg_file.write(svg_content.encode('utf-8'))
|
||||
|
||||
results.append(UI.SavedResult(filename=file, subfolder=subfolder, type=IO.FolderType.output))
|
||||
counter += 1
|
||||
return IO.NodeOutput(ui={"images": results})
|
||||
|
||||
save_svg = execute # TODO: remove
|
||||
|
||||
|
||||
class GetImageSize(IO.ComfyNode):
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="GetImageSize",
|
||||
display_name="Get Image Size",
|
||||
description="Returns width and height of the image, and passes it through unchanged.",
|
||||
category="image",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
],
|
||||
outputs=[
|
||||
IO.Int.Output(display_name="width"),
|
||||
IO.Int.Output(display_name="height"),
|
||||
IO.Int.Output(display_name="batch_size"),
|
||||
],
|
||||
hidden=[IO.Hidden.unique_id],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image) -> IO.NodeOutput:
|
||||
height = image.shape[1]
|
||||
width = image.shape[2]
|
||||
batch_size = image.shape[0]
|
||||
|
||||
# Send progress text to display size on the node
|
||||
if cls.hidden.unique_id:
|
||||
PromptServer.instance.send_progress_text(f"width: {width}, height: {height}\n batch size: {batch_size}", cls.hidden.unique_id)
|
||||
|
||||
return IO.NodeOutput(width, height, batch_size)
|
||||
|
||||
get_size = execute # TODO: remove
|
||||
|
||||
|
||||
class ImageRotate(IO.ComfyNode):
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ImageRotate",
|
||||
category="image/transform",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
IO.Combo.Input("rotation", options=["none", "90 degrees", "180 degrees", "270 degrees"]),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, rotation) -> IO.NodeOutput:
|
||||
rotate_by = 0
|
||||
if rotation.startswith("90"):
|
||||
rotate_by = 1
|
||||
elif rotation.startswith("180"):
|
||||
rotate_by = 2
|
||||
elif rotation.startswith("270"):
|
||||
rotate_by = 3
|
||||
|
||||
image = torch.rot90(image, k=rotate_by, dims=[2, 1])
|
||||
return IO.NodeOutput(image)
|
||||
|
||||
rotate = execute # TODO: remove
|
||||
|
||||
|
||||
class ImageFlip(IO.ComfyNode):
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ImageFlip",
|
||||
category="image/transform",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
IO.Combo.Input("flip_method", options=["x-axis: vertically", "y-axis: horizontally"]),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, flip_method) -> IO.NodeOutput:
|
||||
if flip_method.startswith("x"):
|
||||
image = torch.flip(image, dims=[1])
|
||||
elif flip_method.startswith("y"):
|
||||
image = torch.flip(image, dims=[2])
|
||||
|
||||
return IO.NodeOutput(image)
|
||||
|
||||
flip = execute # TODO: remove
|
||||
|
||||
|
||||
class ImageScaleToMaxDimension(IO.ComfyNode):
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ImageScaleToMaxDimension",
|
||||
category="image/upscaling",
|
||||
inputs=[
|
||||
IO.Image.Input("image"),
|
||||
IO.Combo.Input(
|
||||
"upscale_method",
|
||||
options=["area", "lanczos", "bilinear", "nearest-exact", "bilinear", "bicubic"],
|
||||
),
|
||||
IO.Int.Input("largest_size", default=512, min=0, max=MAX_RESOLUTION, step=1),
|
||||
],
|
||||
outputs=[IO.Image.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, upscale_method, largest_size) -> IO.NodeOutput:
|
||||
height = image.shape[1]
|
||||
width = image.shape[2]
|
||||
|
||||
if height > width:
|
||||
width = round((width / height) * largest_size)
|
||||
height = largest_size
|
||||
elif width > height:
|
||||
height = round((height / width) * largest_size)
|
||||
width = largest_size
|
||||
else:
|
||||
height = largest_size
|
||||
width = largest_size
|
||||
|
||||
samples = image.movedim(-1, 1)
|
||||
s = comfy.utils.common_upscale(samples, width, height, upscale_method, "disabled")
|
||||
s = s.movedim(1, -1)
|
||||
return IO.NodeOutput(s)
|
||||
|
||||
upscale = execute # TODO: remove
|
||||
|
||||
|
||||
class ImagesExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[IO.ComfyNode]]:
|
||||
return [
|
||||
ImageCrop,
|
||||
RepeatImageBatch,
|
||||
ImageFromBatch,
|
||||
ImageAddNoise,
|
||||
SaveAnimatedWEBP,
|
||||
SaveAnimatedPNG,
|
||||
SaveSVGNode,
|
||||
ImageStitch,
|
||||
ResizeAndPadImage,
|
||||
GetImageSize,
|
||||
ImageRotate,
|
||||
ImageFlip,
|
||||
ImageScaleToMaxDimension,
|
||||
]
|
||||
|
||||
|
||||
async def comfy_entrypoint() -> ImagesExtension:
|
||||
return ImagesExtension()
|
||||
@@ -0,0 +1,612 @@
|
||||
from typing_extensions import override
|
||||
import numpy as np
|
||||
import torch
|
||||
import torch.nn.functional as F
|
||||
from PIL import Image
|
||||
import math
|
||||
from enum import Enum
|
||||
from typing import TypedDict, Literal
|
||||
|
||||
import comfy.utils
|
||||
import comfy.model_management
|
||||
from comfy_extras.nodes_latent import reshape_latent_to
|
||||
import node_helpers
|
||||
from comfy_api.latest import ComfyExtension, io
|
||||
from nodes import MAX_RESOLUTION
|
||||
|
||||
class Blend(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ImageBlend",
|
||||
category="image/postprocessing",
|
||||
inputs=[
|
||||
io.Image.Input("image1"),
|
||||
io.Image.Input("image2"),
|
||||
io.Float.Input("blend_factor", default=0.5, min=0.0, max=1.0, step=0.01),
|
||||
io.Combo.Input("blend_mode", options=["normal", "multiply", "screen", "overlay", "soft_light", "difference"]),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image1: torch.Tensor, image2: torch.Tensor, blend_factor: float, blend_mode: str) -> io.NodeOutput:
|
||||
image1, image2 = node_helpers.image_alpha_fix(image1, image2)
|
||||
image2 = image2.to(image1.device)
|
||||
if image1.shape != image2.shape:
|
||||
image2 = image2.permute(0, 3, 1, 2)
|
||||
image2 = comfy.utils.common_upscale(image2, image1.shape[2], image1.shape[1], upscale_method='bicubic', crop='center')
|
||||
image2 = image2.permute(0, 2, 3, 1)
|
||||
|
||||
blended_image = cls.blend_mode(image1, image2, blend_mode)
|
||||
blended_image = image1 * (1 - blend_factor) + blended_image * blend_factor
|
||||
blended_image = torch.clamp(blended_image, 0, 1)
|
||||
return io.NodeOutput(blended_image)
|
||||
|
||||
@classmethod
|
||||
def blend_mode(cls, img1, img2, mode):
|
||||
if mode == "normal":
|
||||
return img2
|
||||
elif mode == "multiply":
|
||||
return img1 * img2
|
||||
elif mode == "screen":
|
||||
return 1 - (1 - img1) * (1 - img2)
|
||||
elif mode == "overlay":
|
||||
return torch.where(img1 <= 0.5, 2 * img1 * img2, 1 - 2 * (1 - img1) * (1 - img2))
|
||||
elif mode == "soft_light":
|
||||
return torch.where(img2 <= 0.5, img1 - (1 - 2 * img2) * img1 * (1 - img1), img1 + (2 * img2 - 1) * (cls.g(img1) - img1))
|
||||
elif mode == "difference":
|
||||
return img1 - img2
|
||||
raise ValueError(f"Unsupported blend mode: {mode}")
|
||||
|
||||
@classmethod
|
||||
def g(cls, x):
|
||||
return torch.where(x <= 0.25, ((16 * x - 12) * x + 4) * x, torch.sqrt(x))
|
||||
|
||||
def gaussian_kernel(kernel_size: int, sigma: float, device=None):
|
||||
x, y = torch.meshgrid(torch.linspace(-1, 1, kernel_size, device=device), torch.linspace(-1, 1, kernel_size, device=device), indexing="ij")
|
||||
d = torch.sqrt(x * x + y * y)
|
||||
g = torch.exp(-(d * d) / (2.0 * sigma * sigma))
|
||||
return g / g.sum()
|
||||
|
||||
class Blur(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ImageBlur",
|
||||
category="image/postprocessing",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
io.Int.Input("blur_radius", default=1, min=1, max=31, step=1),
|
||||
io.Float.Input("sigma", default=1.0, min=0.1, max=10.0, step=0.1),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image: torch.Tensor, blur_radius: int, sigma: float) -> io.NodeOutput:
|
||||
if blur_radius == 0:
|
||||
return io.NodeOutput(image)
|
||||
|
||||
image = image.to(comfy.model_management.get_torch_device())
|
||||
batch_size, height, width, channels = image.shape
|
||||
|
||||
kernel_size = blur_radius * 2 + 1
|
||||
kernel = gaussian_kernel(kernel_size, sigma, device=image.device).repeat(channels, 1, 1).unsqueeze(1)
|
||||
|
||||
image = image.permute(0, 3, 1, 2) # Torch wants (B, C, H, W) we use (B, H, W, C)
|
||||
padded_image = F.pad(image, (blur_radius,blur_radius,blur_radius,blur_radius), 'reflect')
|
||||
blurred = F.conv2d(padded_image, kernel, padding=kernel_size // 2, groups=channels)[:,:,blur_radius:-blur_radius, blur_radius:-blur_radius]
|
||||
blurred = blurred.permute(0, 2, 3, 1)
|
||||
|
||||
return io.NodeOutput(blurred.to(comfy.model_management.intermediate_device()))
|
||||
|
||||
|
||||
class Quantize(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ImageQuantize",
|
||||
category="image/postprocessing",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
io.Int.Input("colors", default=256, min=1, max=256, step=1),
|
||||
io.Combo.Input("dither", options=["none", "floyd-steinberg", "bayer-2", "bayer-4", "bayer-8", "bayer-16"]),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def bayer(im, pal_im, order):
|
||||
def normalized_bayer_matrix(n):
|
||||
if n == 0:
|
||||
return np.zeros((1,1), "float32")
|
||||
else:
|
||||
q = 4 ** n
|
||||
m = q * normalized_bayer_matrix(n - 1)
|
||||
return np.bmat(((m-1.5, m+0.5), (m+1.5, m-0.5))) / q
|
||||
|
||||
num_colors = len(pal_im.getpalette()) // 3
|
||||
spread = 2 * 256 / num_colors
|
||||
bayer_n = int(math.log2(order))
|
||||
bayer_matrix = torch.from_numpy(spread * normalized_bayer_matrix(bayer_n) + 0.5)
|
||||
|
||||
result = torch.from_numpy(np.array(im).astype(np.float32))
|
||||
tw = math.ceil(result.shape[0] / bayer_matrix.shape[0])
|
||||
th = math.ceil(result.shape[1] / bayer_matrix.shape[1])
|
||||
tiled_matrix = bayer_matrix.tile(tw, th).unsqueeze(-1)
|
||||
result.add_(tiled_matrix[:result.shape[0],:result.shape[1]]).clamp_(0, 255)
|
||||
result = result.to(dtype=torch.uint8)
|
||||
|
||||
im = Image.fromarray(result.cpu().numpy())
|
||||
im = im.quantize(palette=pal_im, dither=Image.Dither.NONE)
|
||||
return im
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image: torch.Tensor, colors: int, dither: str) -> io.NodeOutput:
|
||||
batch_size, height, width, _ = image.shape
|
||||
result = torch.zeros_like(image)
|
||||
|
||||
for b in range(batch_size):
|
||||
im = Image.fromarray((image[b] * 255).to(torch.uint8).numpy(), mode='RGB')
|
||||
|
||||
pal_im = im.quantize(colors=colors) # Required as described in https://github.com/python-pillow/Pillow/issues/5836
|
||||
|
||||
if dither == "none":
|
||||
quantized_image = im.quantize(palette=pal_im, dither=Image.Dither.NONE)
|
||||
elif dither == "floyd-steinberg":
|
||||
quantized_image = im.quantize(palette=pal_im, dither=Image.Dither.FLOYDSTEINBERG)
|
||||
elif dither.startswith("bayer"):
|
||||
order = int(dither.split('-')[-1])
|
||||
quantized_image = Quantize.bayer(im, pal_im, order)
|
||||
|
||||
quantized_array = torch.tensor(np.array(quantized_image.convert("RGB"))).float() / 255
|
||||
result[b] = quantized_array
|
||||
|
||||
return io.NodeOutput(result)
|
||||
|
||||
class Sharpen(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ImageSharpen",
|
||||
category="image/postprocessing",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
io.Int.Input("sharpen_radius", default=1, min=1, max=31, step=1),
|
||||
io.Float.Input("sigma", default=1.0, min=0.1, max=10.0, step=0.01),
|
||||
io.Float.Input("alpha", default=1.0, min=0.0, max=5.0, step=0.01),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image: torch.Tensor, sharpen_radius: int, sigma:float, alpha: float) -> io.NodeOutput:
|
||||
if sharpen_radius == 0:
|
||||
return io.NodeOutput(image)
|
||||
|
||||
batch_size, height, width, channels = image.shape
|
||||
image = image.to(comfy.model_management.get_torch_device())
|
||||
|
||||
kernel_size = sharpen_radius * 2 + 1
|
||||
kernel = gaussian_kernel(kernel_size, sigma, device=image.device) * -(alpha*10)
|
||||
kernel = kernel.to(dtype=image.dtype)
|
||||
center = kernel_size // 2
|
||||
kernel[center, center] = kernel[center, center] - kernel.sum() + 1.0
|
||||
kernel = kernel.repeat(channels, 1, 1).unsqueeze(1)
|
||||
|
||||
tensor_image = image.permute(0, 3, 1, 2) # Torch wants (B, C, H, W) we use (B, H, W, C)
|
||||
tensor_image = F.pad(tensor_image, (sharpen_radius,sharpen_radius,sharpen_radius,sharpen_radius), 'reflect')
|
||||
sharpened = F.conv2d(tensor_image, kernel, padding=center, groups=channels)[:,:,sharpen_radius:-sharpen_radius, sharpen_radius:-sharpen_radius]
|
||||
sharpened = sharpened.permute(0, 2, 3, 1)
|
||||
|
||||
result = torch.clamp(sharpened, 0, 1)
|
||||
|
||||
return io.NodeOutput(result.to(comfy.model_management.intermediate_device()))
|
||||
|
||||
class ImageScaleToTotalPixels(io.ComfyNode):
|
||||
upscale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"]
|
||||
crop_methods = ["disabled", "center"]
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return io.Schema(
|
||||
node_id="ImageScaleToTotalPixels",
|
||||
category="image/upscaling",
|
||||
inputs=[
|
||||
io.Image.Input("image"),
|
||||
io.Combo.Input("upscale_method", options=cls.upscale_methods),
|
||||
io.Float.Input("megapixels", default=1.0, min=0.01, max=16.0, step=0.01),
|
||||
io.Int.Input("resolution_steps", default=1, min=1, max=256),
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output(),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, image, upscale_method, megapixels, resolution_steps) -> io.NodeOutput:
|
||||
samples = image.movedim(-1,1)
|
||||
total = megapixels * 1024 * 1024
|
||||
|
||||
scale_by = math.sqrt(total / (samples.shape[3] * samples.shape[2]))
|
||||
width = round(samples.shape[3] * scale_by / resolution_steps) * resolution_steps
|
||||
height = round(samples.shape[2] * scale_by / resolution_steps) * resolution_steps
|
||||
|
||||
s = comfy.utils.common_upscale(samples, int(width), int(height), upscale_method, "disabled")
|
||||
s = s.movedim(1,-1)
|
||||
return io.NodeOutput(s)
|
||||
|
||||
class ResizeType(str, Enum):
|
||||
SCALE_BY = "scale by multiplier"
|
||||
SCALE_DIMENSIONS = "scale dimensions"
|
||||
SCALE_LONGER_DIMENSION = "scale longer dimension"
|
||||
SCALE_SHORTER_DIMENSION = "scale shorter dimension"
|
||||
SCALE_WIDTH = "scale width"
|
||||
SCALE_HEIGHT = "scale height"
|
||||
SCALE_TOTAL_PIXELS = "scale total pixels"
|
||||
MATCH_SIZE = "match size"
|
||||
|
||||
def is_image(input: torch.Tensor) -> bool:
|
||||
# images have 4 dimensions: [batch, height, width, channels]
|
||||
# masks have 3 dimensions: [batch, height, width]
|
||||
return len(input.shape) == 4
|
||||
|
||||
def init_image_mask_input(input: torch.Tensor, is_type_image: bool) -> torch.Tensor:
|
||||
if is_type_image:
|
||||
input = input.movedim(-1, 1)
|
||||
else:
|
||||
input = input.unsqueeze(1)
|
||||
return input
|
||||
|
||||
def finalize_image_mask_input(input: torch.Tensor, is_type_image: bool) -> torch.Tensor:
|
||||
if is_type_image:
|
||||
input = input.movedim(1, -1)
|
||||
else:
|
||||
input = input.squeeze(1)
|
||||
return input
|
||||
|
||||
def scale_by(input: torch.Tensor, multiplier: float, scale_method: str) -> torch.Tensor:
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
width = round(input.shape[-1] * multiplier)
|
||||
height = round(input.shape[-2] * multiplier)
|
||||
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, "disabled")
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_dimensions(input: torch.Tensor, width: int, height: int, scale_method: str, crop: str="disabled") -> torch.Tensor:
|
||||
if width == 0 and height == 0:
|
||||
return input
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
|
||||
if width == 0:
|
||||
width = max(1, round(input.shape[-1] * height / input.shape[-2]))
|
||||
elif height == 0:
|
||||
height = max(1, round(input.shape[-2] * width / input.shape[-1]))
|
||||
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, crop)
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_longer_dimension(input: torch.Tensor, longer_size: int, scale_method: str) -> torch.Tensor:
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
width = input.shape[-1]
|
||||
height = input.shape[-2]
|
||||
|
||||
if height > width:
|
||||
width = round((width / height) * longer_size)
|
||||
height = longer_size
|
||||
elif width > height:
|
||||
height = round((height / width) * longer_size)
|
||||
width = longer_size
|
||||
else:
|
||||
height = longer_size
|
||||
width = longer_size
|
||||
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, "disabled")
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_shorter_dimension(input: torch.Tensor, shorter_size: int, scale_method: str) -> torch.Tensor:
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
width = input.shape[-1]
|
||||
height = input.shape[-2]
|
||||
|
||||
if height < width:
|
||||
width = round((width / height) * shorter_size)
|
||||
height = shorter_size
|
||||
elif width > height:
|
||||
height = round((height / width) * shorter_size)
|
||||
width = shorter_size
|
||||
else:
|
||||
height = shorter_size
|
||||
width = shorter_size
|
||||
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, "disabled")
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_total_pixels(input: torch.Tensor, megapixels: float, scale_method: str) -> torch.Tensor:
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
total = int(megapixels * 1024 * 1024)
|
||||
|
||||
scale_by = math.sqrt(total / (input.shape[-1] * input.shape[-2]))
|
||||
width = round(input.shape[-1] * scale_by)
|
||||
height = round(input.shape[-2] * scale_by)
|
||||
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, "disabled")
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
def scale_match_size(input: torch.Tensor, match: torch.Tensor, scale_method: str, crop: str) -> torch.Tensor:
|
||||
is_type_image = is_image(input)
|
||||
input = init_image_mask_input(input, is_type_image)
|
||||
match = init_image_mask_input(match, is_image(match))
|
||||
|
||||
width = match.shape[-1]
|
||||
height = match.shape[-2]
|
||||
input = comfy.utils.common_upscale(input, width, height, scale_method, crop)
|
||||
input = finalize_image_mask_input(input, is_type_image)
|
||||
return input
|
||||
|
||||
class ResizeImageMaskNode(io.ComfyNode):
|
||||
|
||||
scale_methods = ["nearest-exact", "bilinear", "area", "bicubic", "lanczos"]
|
||||
crop_methods = ["disabled", "center"]
|
||||
|
||||
class ResizeTypedDict(TypedDict):
|
||||
resize_type: ResizeType
|
||||
scale_method: Literal["nearest-exact", "bilinear", "area", "bicubic", "lanczos"]
|
||||
crop: Literal["disabled", "center"]
|
||||
multiplier: float
|
||||
width: int
|
||||
height: int
|
||||
longer_size: int
|
||||
shorter_size: int
|
||||
megapixels: float
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
template = io.MatchType.Template("input_type", [io.Image, io.Mask])
|
||||
crop_combo = io.Combo.Input("crop", options=cls.crop_methods, default="center")
|
||||
return io.Schema(
|
||||
node_id="ResizeImageMaskNode",
|
||||
display_name="Resize Image/Mask",
|
||||
category="transform",
|
||||
inputs=[
|
||||
io.MatchType.Input("input", template=template),
|
||||
io.DynamicCombo.Input("resize_type", options=[
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_BY, [
|
||||
io.Float.Input("multiplier", default=1.00, min=0.01, max=8.0, step=0.01),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_DIMENSIONS, [
|
||||
io.Int.Input("width", default=512, min=0, max=MAX_RESOLUTION, step=1),
|
||||
io.Int.Input("height", default=512, min=0, max=MAX_RESOLUTION, step=1),
|
||||
crop_combo,
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_LONGER_DIMENSION, [
|
||||
io.Int.Input("longer_size", default=512, min=0, max=MAX_RESOLUTION, step=1),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_SHORTER_DIMENSION, [
|
||||
io.Int.Input("shorter_size", default=512, min=0, max=MAX_RESOLUTION, step=1),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_WIDTH, [
|
||||
io.Int.Input("width", default=512, min=0, max=MAX_RESOLUTION, step=1),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_HEIGHT, [
|
||||
io.Int.Input("height", default=512, min=0, max=MAX_RESOLUTION, step=1),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.SCALE_TOTAL_PIXELS, [
|
||||
io.Float.Input("megapixels", default=1.0, min=0.01, max=16.0, step=0.01),
|
||||
]),
|
||||
io.DynamicCombo.Option(ResizeType.MATCH_SIZE, [
|
||||
io.MultiType.Input("match", [io.Image, io.Mask]),
|
||||
crop_combo,
|
||||
]),
|
||||
]),
|
||||
io.Combo.Input("scale_method", options=cls.scale_methods, default="area"),
|
||||
],
|
||||
outputs=[io.MatchType.Output(template=template, display_name="resized")]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, input: io.Image.Type | io.Mask.Type, scale_method: io.Combo.Type, resize_type: ResizeTypedDict) -> io.NodeOutput:
|
||||
selected_type = resize_type["resize_type"]
|
||||
if selected_type == ResizeType.SCALE_BY:
|
||||
return io.NodeOutput(scale_by(input, resize_type["multiplier"], scale_method))
|
||||
elif selected_type == ResizeType.SCALE_DIMENSIONS:
|
||||
return io.NodeOutput(scale_dimensions(input, resize_type["width"], resize_type["height"], scale_method, resize_type["crop"]))
|
||||
elif selected_type == ResizeType.SCALE_LONGER_DIMENSION:
|
||||
return io.NodeOutput(scale_longer_dimension(input, resize_type["longer_size"], scale_method))
|
||||
elif selected_type == ResizeType.SCALE_SHORTER_DIMENSION:
|
||||
return io.NodeOutput(scale_shorter_dimension(input, resize_type["shorter_size"], scale_method))
|
||||
elif selected_type == ResizeType.SCALE_WIDTH:
|
||||
return io.NodeOutput(scale_dimensions(input, resize_type["width"], 0, scale_method))
|
||||
elif selected_type == ResizeType.SCALE_HEIGHT:
|
||||
return io.NodeOutput(scale_dimensions(input, 0, resize_type["height"], scale_method))
|
||||
elif selected_type == ResizeType.SCALE_TOTAL_PIXELS:
|
||||
return io.NodeOutput(scale_total_pixels(input, resize_type["megapixels"], scale_method))
|
||||
elif selected_type == ResizeType.MATCH_SIZE:
|
||||
return io.NodeOutput(scale_match_size(input, resize_type["match"], scale_method, resize_type["crop"]))
|
||||
raise ValueError(f"Unsupported resize type: {selected_type}")
|
||||
|
||||
def batch_images(images: list[torch.Tensor]) -> torch.Tensor | None:
|
||||
if len(images) == 0:
|
||||
return None
|
||||
# first, get the max channels count
|
||||
max_channels = max(image.shape[-1] for image in images)
|
||||
# then, pad all images to have the same channels count
|
||||
padded_images: list[torch.Tensor] = []
|
||||
for image in images:
|
||||
if image.shape[-1] < max_channels:
|
||||
padded_images.append(torch.nn.functional.pad(image, (0,1), mode='constant', value=1.0))
|
||||
else:
|
||||
padded_images.append(image)
|
||||
# resize all images to be the same size as the first image
|
||||
resized_images: list[torch.Tensor] = []
|
||||
first_image_shape = padded_images[0].shape
|
||||
for image in padded_images:
|
||||
if image.shape[1:] != first_image_shape[1:]:
|
||||
resized_images.append(comfy.utils.common_upscale(image.movedim(-1,1), first_image_shape[2], first_image_shape[1], "bilinear", "center").movedim(1,-1))
|
||||
else:
|
||||
resized_images.append(image)
|
||||
# batch the images in the format [b, h, w, c]
|
||||
return torch.cat(resized_images, dim=0)
|
||||
|
||||
def batch_masks(masks: list[torch.Tensor]) -> torch.Tensor | None:
|
||||
if len(masks) == 0:
|
||||
return None
|
||||
# resize all masks to be the same size as the first mask
|
||||
resized_masks: list[torch.Tensor] = []
|
||||
first_mask_shape = masks[0].shape
|
||||
for mask in masks:
|
||||
if mask.shape[1:] != first_mask_shape[1:]:
|
||||
mask = init_image_mask_input(mask, is_type_image=False)
|
||||
mask = comfy.utils.common_upscale(mask, first_mask_shape[2], first_mask_shape[1], "bilinear", "center")
|
||||
resized_masks.append(finalize_image_mask_input(mask, is_type_image=False))
|
||||
else:
|
||||
resized_masks.append(mask)
|
||||
# batch the masks in the format [b, h, w]
|
||||
return torch.cat(resized_masks, dim=0)
|
||||
|
||||
def batch_latents(latents: list[dict[str, torch.Tensor]]) -> dict[str, torch.Tensor] | None:
|
||||
if len(latents) == 0:
|
||||
return None
|
||||
samples_out = latents[0].copy()
|
||||
samples_out["batch_index"] = []
|
||||
first_samples = latents[0]["samples"]
|
||||
tensors: list[torch.Tensor] = []
|
||||
for latent in latents:
|
||||
# first, deal with latent tensors
|
||||
tensors.append(reshape_latent_to(first_samples.shape, latent["samples"], repeat_batch=False))
|
||||
# next, deal with batch_index
|
||||
samples_out["batch_index"].extend(latent.get("batch_index", [x for x in range(0, latent["samples"].shape[0])]))
|
||||
samples_out["samples"] = torch.cat(tensors, dim=0)
|
||||
return samples_out
|
||||
|
||||
class BatchImagesNode(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
autogrow_template = io.Autogrow.TemplatePrefix(io.Image.Input("image"), prefix="image", min=2, max=50)
|
||||
return io.Schema(
|
||||
node_id="BatchImagesNode",
|
||||
display_name="Batch Images",
|
||||
category="image",
|
||||
inputs=[
|
||||
io.Autogrow.Input("images", template=autogrow_template)
|
||||
],
|
||||
outputs=[
|
||||
io.Image.Output()
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, images: io.Autogrow.Type) -> io.NodeOutput:
|
||||
return io.NodeOutput(batch_images(list(images.values())))
|
||||
|
||||
class BatchMasksNode(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
autogrow_template = io.Autogrow.TemplatePrefix(io.Mask.Input("mask"), prefix="mask", min=2, max=50)
|
||||
return io.Schema(
|
||||
node_id="BatchMasksNode",
|
||||
display_name="Batch Masks",
|
||||
category="mask",
|
||||
inputs=[
|
||||
io.Autogrow.Input("masks", template=autogrow_template)
|
||||
],
|
||||
outputs=[
|
||||
io.Mask.Output()
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, masks: io.Autogrow.Type) -> io.NodeOutput:
|
||||
return io.NodeOutput(batch_masks(list(masks.values())))
|
||||
|
||||
class BatchLatentsNode(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
autogrow_template = io.Autogrow.TemplatePrefix(io.Latent.Input("latent"), prefix="latent", min=2, max=50)
|
||||
return io.Schema(
|
||||
node_id="BatchLatentsNode",
|
||||
display_name="Batch Latents",
|
||||
category="latent",
|
||||
inputs=[
|
||||
io.Autogrow.Input("latents", template=autogrow_template)
|
||||
],
|
||||
outputs=[
|
||||
io.Latent.Output()
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, latents: io.Autogrow.Type) -> io.NodeOutput:
|
||||
return io.NodeOutput(batch_latents(list(latents.values())))
|
||||
|
||||
class BatchImagesMasksLatentsNode(io.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
matchtype_template = io.MatchType.Template("input", allowed_types=[io.Image, io.Mask, io.Latent])
|
||||
autogrow_template = io.Autogrow.TemplatePrefix(
|
||||
io.MatchType.Input("input", matchtype_template),
|
||||
prefix="input", min=1, max=50)
|
||||
return io.Schema(
|
||||
node_id="BatchImagesMasksLatentsNode",
|
||||
display_name="Batch Images/Masks/Latents",
|
||||
category="util",
|
||||
inputs=[
|
||||
io.Autogrow.Input("inputs", template=autogrow_template)
|
||||
],
|
||||
outputs=[
|
||||
io.MatchType.Output(id=None, template=matchtype_template)
|
||||
]
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, inputs: io.Autogrow.Type) -> io.NodeOutput:
|
||||
batched = None
|
||||
values = list(inputs.values())
|
||||
# latents
|
||||
if isinstance(values[0], dict):
|
||||
batched = batch_latents(values)
|
||||
# images
|
||||
elif is_image(values[0]):
|
||||
batched = batch_images(values)
|
||||
# masks
|
||||
else:
|
||||
batched = batch_masks(values)
|
||||
return io.NodeOutput(batched)
|
||||
|
||||
class PostProcessingExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||
return [
|
||||
Blend,
|
||||
Blur,
|
||||
Quantize,
|
||||
Sharpen,
|
||||
ImageScaleToTotalPixels,
|
||||
ResizeImageMaskNode,
|
||||
BatchImagesNode,
|
||||
BatchMasksNode,
|
||||
BatchLatentsNode,
|
||||
# BatchImagesMasksLatentsNode,
|
||||
]
|
||||
|
||||
async def comfy_entrypoint() -> PostProcessingExtension:
|
||||
return PostProcessingExtension()
|
||||
@@ -0,0 +1,905 @@
|
||||
{
|
||||
"sources": [
|
||||
{
|
||||
"id": "frontsub",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"local_file": "frontsub__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/src/lib/litegraph/src/subgraph/SubgraphNode.ts",
|
||||
"sha256": "d4f1017495158a6133ff770441a4d517dfbf2a328ba42b0405f8729853fe8209",
|
||||
"git_blob_sha1": "e26e1cd48c7b5ac33f935dc0597cfaa1c7c81330",
|
||||
"acquisition_time": "2026-10-31T00:08:38.652628+00:00",
|
||||
"license_file": "frontsub__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "frontsub"
|
||||
},
|
||||
{
|
||||
"id": "frontsub",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "LICENSE",
|
||||
"local_file": "frontsub__LICENSE",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-31T00:08:39.316374+00:00",
|
||||
"license_file": "frontsub__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "frontsub"
|
||||
},
|
||||
{
|
||||
"id": "save",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "nodes.py",
|
||||
"local_file": "save__nodes.py",
|
||||
"commit": "8f40b43e0204d5b9780f3e9618e140e929e80594",
|
||||
"tree": "3a98824ee41cac4afc6d1782c995b672f34fbe05",
|
||||
"tag": "v0.9.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8f40b43e0204d5b9780f3e9618e140e929e80594/nodes.py",
|
||||
"sha256": "d3f0f179d0a9cf94092744740af06b3cf852576868358e2dbb2e01a137626bbd",
|
||||
"git_blob_sha1": "f19d5fd1c3b6fd879fd9de904fe13c3a092ac064",
|
||||
"acquisition_time": "2026-10-31T00:08:40.335792+00:00",
|
||||
"license_file": "save__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "save"
|
||||
},
|
||||
{
|
||||
"id": "save",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "folder_paths.py",
|
||||
"local_file": "save__folder_paths.py",
|
||||
"commit": "8f40b43e0204d5b9780f3e9618e140e929e80594",
|
||||
"tree": "3a98824ee41cac4afc6d1782c995b672f34fbe05",
|
||||
"tag": "v0.9.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8f40b43e0204d5b9780f3e9618e140e929e80594/folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"git_blob_sha1": "9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8",
|
||||
"acquisition_time": "2026-10-31T00:08:40.338199+00:00",
|
||||
"license_file": "save__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "save"
|
||||
},
|
||||
{
|
||||
"id": "save",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "save__LICENSE",
|
||||
"commit": "8f40b43e0204d5b9780f3e9618e140e929e80594",
|
||||
"tree": "3a98824ee41cac4afc6d1782c995b672f34fbe05",
|
||||
"tag": "v0.9.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8f40b43e0204d5b9780f3e9618e140e929e80594/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-31T00:08:40.341216+00:00",
|
||||
"license_file": "save__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "save"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "nodes.py",
|
||||
"local_file": "background__nodes.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/nodes.py",
|
||||
"sha256": "aecd111cf3f1ccf5a5ca6b4293d47dfe236f9a717e5190cbb6a66a03afb8d009",
|
||||
"git_blob_sha1": "883258bd157d0867eca70cf4e694f57a8d870c93",
|
||||
"acquisition_time": "2026-10-31T00:08:41.310181+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "background"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_mask.py",
|
||||
"local_file": "background__comfy_extras__nodes_mask.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/comfy_extras/nodes_mask.py",
|
||||
"sha256": "f235d52703229b0bb7840cc48f0fffe6b00bf9398e119aa7d7f2fc9f3bdaba12",
|
||||
"git_blob_sha1": "3fae7221f18dc18547a3ef4806cbc4518162093f",
|
||||
"acquisition_time": "2026-10-31T00:08:41.312708+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "background"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_bg_removal.py",
|
||||
"local_file": "background__comfy_extras__nodes_bg_removal.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/comfy_extras/nodes_bg_removal.py",
|
||||
"sha256": "c2cf4b42f10cfb1bb057b60a8745fb96a2462e1f1a2bd275e00795bb3f758cce",
|
||||
"git_blob_sha1": "c7b33a821720c5271354781d6c076b2b281d9d1e",
|
||||
"acquisition_time": "2026-10-31T00:08:41.313867+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "background"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy/bg_removal_model.py",
|
||||
"local_file": "background__comfy__bg_removal_model.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/comfy/bg_removal_model.py",
|
||||
"sha256": "c4f6f7beea512c759849efa07f03f09044ea76fe5c71fb7afff31e4886e4daa7",
|
||||
"git_blob_sha1": "c772c5f6a69ae49a3646cae6d23e60e93183662e",
|
||||
"acquisition_time": "2026-10-31T00:08:41.316511+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "background"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "folder_paths.py",
|
||||
"local_file": "background__folder_paths.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/folder_paths.py",
|
||||
"sha256": "92e26ff2c3a382902eade6c39efc7653f4470584e9945626126c6cdfe6284d8b",
|
||||
"git_blob_sha1": "937428c18d16cdfd3559922504e872c000da9363",
|
||||
"acquisition_time": "2026-10-31T00:08:41.319094+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "background"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_compositing.py",
|
||||
"local_file": "background__comfy_extras__nodes_compositing.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/comfy_extras/nodes_compositing.py",
|
||||
"sha256": "e001e2963baaa5ea9f031e6b7920e4d70dae248588a70ed31ab595706a29efae",
|
||||
"git_blob_sha1": "8fcbe720e7398d24d7dbc957787f68ec0d123713",
|
||||
"acquisition_time": "2026-10-31T00:08:41.320266+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "background"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_post_processing.py",
|
||||
"local_file": "background__comfy_extras__nodes_post_processing.py",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/comfy_extras/nodes_post_processing.py",
|
||||
"sha256": "96ec39e8d0e9fe9a70b332f97f994d507e1fa223a26699a3c9c9fbeedacf6575",
|
||||
"git_blob_sha1": "763b8a52fa84fbee9432ee116000f131c0002400",
|
||||
"acquisition_time": "2026-10-31T00:08:41.323416+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "background"
|
||||
},
|
||||
{
|
||||
"id": "background",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "background__LICENSE",
|
||||
"commit": "34d0629452cac83dc20aa3d84e45c9b60d9e36b3",
|
||||
"tree": "112edae7988632612bf2f7eb8f2d5fd1c18b9fee",
|
||||
"tag": "v0.28.3",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/34d0629452cac83dc20aa3d84e45c9b60d9e36b3/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-31T00:08:41.326780+00:00",
|
||||
"license_file": "background__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "background"
|
||||
},
|
||||
{
|
||||
"id": "scale",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_images.py",
|
||||
"local_file": "scale__comfy_extras__nodes_images.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy_extras/nodes_images.py",
|
||||
"sha256": "695f34b53f21ff714629bdcc3811a231de96458644be297fc1c506f2001c2bd3",
|
||||
"git_blob_sha1": "ce21caade8cf9e1783507bafe5b3626566400c1d",
|
||||
"acquisition_time": "2026-10-31T00:08:42.267627+00:00",
|
||||
"license_file": "scale__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "scale"
|
||||
},
|
||||
{
|
||||
"id": "scale",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_post_processing.py",
|
||||
"local_file": "scale__comfy_extras__nodes_post_processing.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy_extras/nodes_post_processing.py",
|
||||
"sha256": "082571da46d01e5d7f260ab43a4fe0944a8d2446511986810ac7295775acb48f",
|
||||
"git_blob_sha1": "01afa13a18eefe313f9517be4d1f6e0e035d610c",
|
||||
"acquisition_time": "2026-10-31T00:08:42.270536+00:00",
|
||||
"license_file": "scale__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "scale"
|
||||
},
|
||||
{
|
||||
"id": "scale",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy/utils.py",
|
||||
"local_file": "scale__comfy__utils.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy/utils.py",
|
||||
"sha256": "dfd937c200548753a053befe53357c32deafb2384c9895bdde96b01a1d9ee4d6",
|
||||
"git_blob_sha1": "ffa98c9b1b8149917238ef0431c8e77211de669c",
|
||||
"acquisition_time": "2026-10-31T00:08:42.272456+00:00",
|
||||
"license_file": "scale__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "scale"
|
||||
},
|
||||
{
|
||||
"id": "scale",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "scale__LICENSE",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-31T00:08:42.273925+00:00",
|
||||
"license_file": "scale__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "scale"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "aining2022/ComfyUI_Swwan",
|
||||
"file": "image_scale_by_aspect_ratio_v2.py",
|
||||
"local_file": "layer__image_scale_by_aspect_ratio_v2.py",
|
||||
"commit": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"tree": "abfc66b11c94d7a6da31a755bc2a096825566fc9",
|
||||
"tag": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"url": "https://raw.githubusercontent.com/aining2022/ComfyUI_Swwan/881bc91790da6b907d3d28e5b91b295b9aef06ee/image_scale_by_aspect_ratio_v2.py",
|
||||
"sha256": "25986bfe8c985a66045abd2c76143d9766c53c77f553c74f7fbec191ea0169fe",
|
||||
"git_blob_sha1": "23e4b8a10dfd6d4113bdfe40d57e30976102e804",
|
||||
"acquisition_time": "2026-10-31T00:08:43.199145+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "layer"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "aining2022/ComfyUI_Swwan",
|
||||
"file": "layerstyle_utils.py",
|
||||
"local_file": "layer__layerstyle_utils.py",
|
||||
"commit": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"tree": "abfc66b11c94d7a6da31a755bc2a096825566fc9",
|
||||
"tag": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"url": "https://raw.githubusercontent.com/aining2022/ComfyUI_Swwan/881bc91790da6b907d3d28e5b91b295b9aef06ee/layerstyle_utils.py",
|
||||
"sha256": "cba827fc697a71bf5917bea20fbdd86af3b22a2799318c2be95950bb36fd0668",
|
||||
"git_blob_sha1": "1aab6030bb78e6e295d5f6f65ee3abc5cd0a07c9",
|
||||
"acquisition_time": "2026-10-31T00:08:43.201568+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "layer"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "aining2022/ComfyUI_Swwan",
|
||||
"file": "__init__.py",
|
||||
"local_file": "layer____init__.py",
|
||||
"commit": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"tree": "abfc66b11c94d7a6da31a755bc2a096825566fc9",
|
||||
"tag": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"url": "https://raw.githubusercontent.com/aining2022/ComfyUI_Swwan/881bc91790da6b907d3d28e5b91b295b9aef06ee/__init__.py",
|
||||
"sha256": "17048cb4c296eac73c68e3d5d3565b95e22bffadfd95c45cb4b7c769f5d89e7f",
|
||||
"git_blob_sha1": "3fa69fca9a8d18557b14b053fda1989caf821746",
|
||||
"acquisition_time": "2026-10-31T00:08:43.203933+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "layer"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "aining2022/ComfyUI_Swwan",
|
||||
"file": "LICENSE",
|
||||
"local_file": "layer__LICENSE",
|
||||
"commit": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"tree": "abfc66b11c94d7a6da31a755bc2a096825566fc9",
|
||||
"tag": "881bc91790da6b907d3d28e5b91b295b9aef06ee",
|
||||
"url": "https://raw.githubusercontent.com/aining2022/ComfyUI_Swwan/881bc91790da6b907d3d28e5b91b295b9aef06ee/LICENSE",
|
||||
"sha256": "ad35c0c38c2f8c88b35effa368bdb3dc2f74cf4e475ad0e21a6514ec64553ee4",
|
||||
"git_blob_sha1": "232ae139df1a325b6f3c62b33cc2132bee147a93",
|
||||
"acquisition_time": "2026-10-31T00:08:43.206006+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"transport": "filtered git; selected text blobs only",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": ".",
|
||||
"identity_key": "layer"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../flux2-img-reference/core__nodes.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/nodes.py",
|
||||
"sha256": "dd4b10eebd746da29178e0f8f75781f98edbf1f0620eb42afe2d03156a6c7c33",
|
||||
"git_blob_sha1": "56b74ebe31303dd420542d8096abf7e1c1226bfb",
|
||||
"acquisition_time": "2026-10-30T21:08:28.247217+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "folder_paths.py",
|
||||
"local_file": "../flux2-img-reference/core__folder_paths.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"git_blob_sha1": "9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8",
|
||||
"acquisition_time": "2026-10-30T21:08:28.248691+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_custom_sampler.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy_extras__nodes_custom_sampler.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy_extras/nodes_custom_sampler.py",
|
||||
"sha256": "8e8c3763a618fa9058f2333dcc09be3b60889362875b8c6377aee23f9ea1abd2",
|
||||
"git_blob_sha1": "f19adf4b9eb52de4105188de1c457e5d796ca4aa",
|
||||
"acquisition_time": "2026-10-30T21:08:28.250324+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_flux.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy_extras__nodes_flux.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy_extras/nodes_flux.py",
|
||||
"sha256": "a10f6890f81589e43f5384fc9d5e4e68e3d53b900abce84cb07740376e0135c6",
|
||||
"git_blob_sha1": "12c8ed3e6492162ade6c32822c6fde4e5fd69aea",
|
||||
"acquisition_time": "2026-10-30T21:08:28.251736+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_primitive.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy_extras__nodes_primitive.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy_extras/nodes_primitive.py",
|
||||
"sha256": "e3916389cbf848f73fd79f67feca97f3e666a2c541409bba2aef4500b6f7393b",
|
||||
"git_blob_sha1": "937321800249090e3949b4cadcab17864f858d01",
|
||||
"acquisition_time": "2026-10-30T21:08:28.252762+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy/samplers.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy__samplers.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy/samplers.py",
|
||||
"sha256": "a7b0dec5aea19214cc640dd725d927ac8246377885d46c956a5c0d9fe79b1a47",
|
||||
"git_blob_sha1": "1989ef107adca2e5c560caa623ce746afe27d312",
|
||||
"acquisition_time": "2026-10-30T21:08:28.254065+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy/sample.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy__sample.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy/sample.py",
|
||||
"sha256": "794be52ca4ad9be470aedfc79a595492f8116c2666101cf48c108a09cdc6dac6",
|
||||
"git_blob_sha1": "2f8f3a51c5fc30e804e643c75a1b267fb0a94697",
|
||||
"acquisition_time": "2026-10-30T21:08:28.255055+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy/sd.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy__sd.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy/sd.py",
|
||||
"sha256": "e20431cac19074ff6ab931d4076aa867b2be1419c6a3be42b0700002f8184727",
|
||||
"git_blob_sha1": "5a7221620290bec7841cbbad990ae7f5d2adf83e",
|
||||
"acquisition_time": "2026-10-30T21:08:28.256755+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../flux2-img-reference/core__LICENSE",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-30T21:08:28.258556+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_api/latest/_io.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy_api__latest___io.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy_api/latest/_io.py",
|
||||
"sha256": "41ebad9670bf980b7f85527a4839e3a15b18094583746515ea2d516d3946a1e5",
|
||||
"git_blob_sha1": "764fa8b2b4dabddf313bf0821bb2d9e436d3b8b4",
|
||||
"acquisition_time": "2026-10-30T21:08:55.269845+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_api/latest/_io_public.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy_api__latest___io_public.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy_api/latest/_io_public.py",
|
||||
"sha256": "c805d754d61aba1ea72ed2d9d5c371de35be9affa5305d35426fb298fcb7c046",
|
||||
"git_blob_sha1": "43c7680f3283cec64bf89023ca7ec90314a3499d",
|
||||
"acquisition_time": "2026-10-30T21:08:55.272201+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy/cli_args.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy__cli_args.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy/cli_args.py",
|
||||
"sha256": "b08dd1d029b3b7d64efee2c3125e7046ed5f07840200fffef4d564c600615e34",
|
||||
"git_blob_sha1": "dae9a895de8a8449910133e481a657c0645479f1",
|
||||
"acquisition_time": "2026-10-30T21:08:55.274830+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "latent_preview.py",
|
||||
"local_file": "../flux2-img-reference/core__latent_preview.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/latent_preview.py",
|
||||
"sha256": "c59708b07494615d2f7640d528df17f9281f4d77affe638b2e0efb9a49fa3cee",
|
||||
"git_blob_sha1": "d52e3f7a1fd03a343161ba4d62580a357b486ade",
|
||||
"acquisition_time": "2026-10-30T21:08:55.277141+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_edit_model.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy_extras__nodes_edit_model.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy_extras/nodes_edit_model.py",
|
||||
"sha256": "e8d03a4ca5f7b8025f565d0fa7b4f0119693f2f35837db2a4114361537f78da3",
|
||||
"git_blob_sha1": "36da66f34e1d19e54ed2ffc8338a232bf8879945",
|
||||
"acquisition_time": "2026-10-30T21:20:30.726665+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "node_helpers.py",
|
||||
"local_file": "../flux2-img-reference/core__node_helpers.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/node_helpers.py",
|
||||
"sha256": "5ee43a50f57b84c64781f1bcfeb717d17ee2d07038d5d7d75eb788898fb72de0",
|
||||
"git_blob_sha1": "4ff960ef8afeadd935b6e48a9a683b7ef6970b2f",
|
||||
"acquisition_time": "2026-10-30T21:20:31.119372+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy/utils.py",
|
||||
"local_file": "../flux2-img-reference/core__comfy__utils.py",
|
||||
"commit": "2e9d51680a90bca9cc375ba7767f7bf3ed27d563",
|
||||
"tree": "618eabb5ce059e55ba51a90a4f0a7dbd297c5cec",
|
||||
"tag": "v0.8.2",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/2e9d51680a90bca9cc375ba7767f7bf3ed27d563/comfy/utils.py",
|
||||
"sha256": "dfd937c200548753a053befe53357c32deafb2384c9895bdde96b01a1d9ee4d6",
|
||||
"git_blob_sha1": "ffa98c9b1b8149917238ef0431c8e77211de669c",
|
||||
"acquisition_time": "2026-10-30T21:20:31.545290+00:00",
|
||||
"license_file": "../flux2-img-reference/core__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-img-reference",
|
||||
"identity_key": "core"
|
||||
},
|
||||
{
|
||||
"id": "negative",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../flux2-reference/primitive__nodes.py",
|
||||
"commit": "5ac13725331c1dfdf7aab977d4588b0a06a3debd",
|
||||
"tree": "ce2cf021f70c6e74bb8e962da56c9461297e4892",
|
||||
"tag": "v0.9.1",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/5ac13725331c1dfdf7aab977d4588b0a06a3debd/nodes.py",
|
||||
"sha256": "cec4f56d3ac6c9a8b107b68a787a993e1b7333c0c6e4168efe9424c25e63592c",
|
||||
"git_blob_sha1": "5a9d42d4a515a098a200b325481d4a9c2828dd00",
|
||||
"acquisition_time": "2026-10-30T21:08:32.661676+00:00",
|
||||
"license_file": "../flux2-reference/primitive__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "primitive"
|
||||
},
|
||||
{
|
||||
"id": "negative",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../flux2-reference/primitive__LICENSE",
|
||||
"commit": "5ac13725331c1dfdf7aab977d4588b0a06a3debd",
|
||||
"tree": "ce2cf021f70c6e74bb8e962da56c9461297e4892",
|
||||
"tag": "v0.9.1",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/5ac13725331c1dfdf7aab977d4588b0a06a3debd/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-30T21:08:32.663359+00:00",
|
||||
"license_file": "../flux2-reference/primitive__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "primitive"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "package.json",
|
||||
"local_file": "../flux2-reference/frontend__package.json",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/package.json",
|
||||
"sha256": "15aefdd570c97c79f18914133bcfac39bbcb4d46b77af03a8800c749aebe8bf8",
|
||||
"git_blob_sha1": "e0792325d3fb41bbcf0a3254ac0560030b5c5b8e",
|
||||
"acquisition_time": "2026-10-30T21:08:31.243515+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "pnpm-lock.yaml",
|
||||
"local_file": "../flux2-reference/frontend__pnpm-lock.yaml",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/pnpm-lock.yaml",
|
||||
"sha256": "bc16299891aa6489d075e9cf95e8c710b4a3e230ac275133d08a3cd5ba139eed",
|
||||
"git_blob_sha1": "2188bf0e4e7ca045fe3f27d1efdb5bbf08f43e05",
|
||||
"acquisition_time": "2026-10-30T21:08:31.249571+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/scripts/widgets.ts",
|
||||
"local_file": "../flux2-reference/frontend__src__scripts__widgets.ts",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/src/scripts/widgets.ts",
|
||||
"sha256": "e8bb428cbf69635015de43a4ebc89817b3443f876cbed52eeafe67d26f2398d8",
|
||||
"git_blob_sha1": "50dabe011f326aa77b3b032c0932491eaac18586",
|
||||
"acquisition_time": "2026-10-30T21:08:31.252255+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/scripts/app.ts",
|
||||
"local_file": "../flux2-reference/frontend__src__scripts__app.ts",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/src/scripts/app.ts",
|
||||
"sha256": "1035fbc0313170282d6b0a05e30c04c7458648da6503ec70c67af03858a7a37e",
|
||||
"git_blob_sha1": "cd75be7f76c7ec29c2ac9ca1c5d27ed5e200d8a4",
|
||||
"acquisition_time": "2026-10-30T21:08:31.256007+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/extensions/core/widgetInputs.ts",
|
||||
"local_file": "../flux2-reference/frontend__src__extensions__core__widgetInputs.ts",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/src/extensions/core/widgetInputs.ts",
|
||||
"sha256": "488d38eb209816778a6da8cb8f734f539e3fbd7f77aae41ec649a52b8764b613",
|
||||
"git_blob_sha1": "c7f9f6eb828df61463d316669629ff7368fa882f",
|
||||
"acquisition_time": "2026-10-30T21:08:31.258701+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/lib/litegraph/src/LGraphNode.ts",
|
||||
"local_file": "../flux2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/src/lib/litegraph/src/LGraphNode.ts",
|
||||
"sha256": "ce4078003ea69ec804d8f4c5e6ca021a952c05c299a3dab6c20f7e4123b8619f",
|
||||
"git_blob_sha1": "036bc56607390f903c2426b0152622b9039a2663",
|
||||
"acquisition_time": "2026-10-30T21:08:31.260665+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/extensions/core/rerouteNode.ts",
|
||||
"local_file": "../flux2-reference/frontend__src__extensions__core__rerouteNode.ts",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/src/extensions/core/rerouteNode.ts",
|
||||
"sha256": "53abe69665c97427faa7e41d4d0b9b33c8c1415fff84f582ed51862bdf7bfcd8",
|
||||
"git_blob_sha1": "44c3f3150f113870548f41bb4d4f6be834031cf5",
|
||||
"acquisition_time": "2026-10-30T21:08:31.262896+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/lib/litegraph/LICENSE",
|
||||
"local_file": "../flux2-reference/frontend__src__lib__litegraph__LICENSE",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/src/lib/litegraph/LICENSE",
|
||||
"sha256": "1b38cc30fe774bcc77538ab99eb460f4e1c8a47c4fddc6e991ee3b5cc2a96bb9",
|
||||
"git_blob_sha1": "1b52aa11c186c25f8d66f1de74c0d378851bfcff",
|
||||
"acquisition_time": "2026-10-30T21:08:31.264451+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../flux2-reference/frontend__LICENSE",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"acquisition_time": "2026-10-30T21:08:31.265677+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/lib/litegraph/src/Reroute.ts",
|
||||
"local_file": "../flux2-reference/frontend__src__lib__litegraph__src__Reroute.ts",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/src/lib/litegraph/src/Reroute.ts",
|
||||
"sha256": "8d235116da40cf91de59ab8789f892fff89b507965d6c4e8142a9a4b514fa68c",
|
||||
"git_blob_sha1": "6436df532233f2b26a62cfc72b95b95600aff22a",
|
||||
"acquisition_time": "2026-10-30T21:08:55.286074+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/utils/migration/migrateReroute.ts",
|
||||
"local_file": "../flux2-reference/frontend__src__utils__migration__migrateReroute.ts",
|
||||
"commit": "c57a7d019bd33b688615b9a544d5f7a656c43464",
|
||||
"tree": "4cb1123453e6ff1964cbde082e418d9c62c28e63",
|
||||
"tag": "v1.36.14",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/c57a7d019bd33b688615b9a544d5f7a656c43464/src/utils/migration/migrateReroute.ts",
|
||||
"sha256": "51e4e0cbc4da3f89239d5a333c615d31ea10745579d33350c0914c08e017d161",
|
||||
"git_blob_sha1": "07ba18dc3aafec598834d95026a902099c22162d",
|
||||
"acquisition_time": "2026-10-30T21:08:55.287485+00:00",
|
||||
"license_file": "../flux2-reference/frontend__LICENSE",
|
||||
"transport": "git exact tag text; no execution",
|
||||
"applicability": "仅人物迁移本图:各实例独立core0.8.2/0.9.1/0.9.2/0.28.3、frontend1.36.14、Layer881bc917完整提交(aux仓库准确对象);宿主声明不赋予内部身份,UE/tab/恢复及安装未知。",
|
||||
"identity_root": "../flux2-reference",
|
||||
"identity_key": "frontend"
|
||||
}
|
||||
],
|
||||
"upstream_executed": false
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
// Local GET-only: 37 positions, one MarkdownNote, 57 frozen summaries.
|
||||
import fs from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright');
|
||||
const out='.local-evidence/flux2-person-document/browser';fs.mkdirSync(out,{recursive:true});
|
||||
const checks=[],requests=[],errors=[],blockedFonts=[],assertionGroups={},interceptions=[];let group='aggregate';
|
||||
function check(condition,label){assert.ok(condition,label);checks.push(label);assertionGroups[group]=(assertionGroups[group]||0)+1;console.log('PASS '+label);}
|
||||
const browser=await chromium.launch({headless:true,executablePath:process.env.BROWSER_EXECUTABLE});
|
||||
try {
|
||||
const page=await browser.newPage({viewport:{width:1440,height:1000}});
|
||||
await page.route('**/*',route=>{
|
||||
const u=new URL(route.request().url());
|
||||
if(u.hostname==='fonts.googleapis.com'){blockedFonts.push(String(u));return route.fulfill({contentType:'text/css',body:''});}
|
||||
if(route.request().method()!=='GET'||u.hostname!=='127.0.0.1'||u.pathname==='/api/view'||(/\.(mp4|png|wav|mp3|webm)$/i.test(u.pathname)&&u.pathname!=='/favicon.png')){errors.push('Forbidden request '+u);return route.abort();}
|
||||
return route.continue();
|
||||
});
|
||||
page.on('request',r=>{if(r.url().includes('/api/'))requests.push({method:r.method(),url:r.url()});});
|
||||
page.on('pageerror',e=>errors.push(e.message));
|
||||
requests.push({method:'GET',url:'http://127.0.0.1:8247/api/workflows'});
|
||||
const records=await(await fetch('http://127.0.0.1:8247/api/workflows')).json();
|
||||
const names=['flux2_klein_图生图_人物迁移','flux2_klein_图生图_印花提取','flux2_klein_服装迁移','flux2_klein_图生图_老照片修复','10_flux2_klein_文生图-角色三视图','8_flux2_klein_双图编辑','7_flux2_klein_图生图-动漫转真人','6_flux2-klein+Qwen3.5_转线稿洗图','5_flux2_klein_图生图_扩图','4_flux2_klein_图生图_局部重绘','3_flux2_klein_图生图一致性增强(大雄lora)','3_flux2_klein_图生图一致性增强(小志lora)','2_flux2_klein_图生图','1_flux2_klein_文生图','minimax_music_文生音乐','ace_step_1.5+Qwen3.5_自动歌词音乐生成','ace_step1_5_xl_turbo_8Step极速音乐生成','index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话','Qwen3-TTS_语音设计+语音克隆','Qwen3-TTS_多角色对话','Llama-cpp+Qwen3.5-提示词','moge3_深度图_几何图_线稿图','Seedvr2_视频放大FOR循环长视频','VOSR2_视频放大_分批循环长视频','视频模型放大插帧(简单快速版)','图像放大比较','VOSR2_图像超分放大','Seedvr2_3b_int8_视频放大','Seedvr2_3b_int8_图像放大','RTX_video_upscale','RTX_image_upscale','手动按分镜视频截取','sam3_图像视频-提示词遮罩分割','多视频合成分屏展示','图像4种添加水印节点','birefnet_图像移除背景','加载本地latent解码','截取视频每一帧','双图像或视频合并显示','视频转gif动图图片','加载图片合成视频','视频倒放','NLF_视频人物动作骨架获取','openpose-video-姿态检测','sdpose_视频人物姿势骨架提取','gemma4_提示词反推(图像视频音频)','图像合并成四宫格','图像分割-多宫格分割','Qwen_image2.1_图像编辑_背景移除','Qwen_image2.1_图像编辑_提示词增强','Qwen_image2.1_文生图_提示词增强','ControlNet_aux_常用样例','Qwen3-ASR-语音转文字','Qwen3-ASR-Subtitle语音转字幕','Minimax-H3提示词增强','音频转MP3格式','音频人声分离','视频-音频分离','图像嵌入文字描述'];
|
||||
const details=[];
|
||||
for(const name of names){const r=records.find(r=>r.name===name);assert.ok(r);const url=`http://127.0.0.1:8247/api/workflows/${r.id}`;requests.push({method:'GET',url});details.push(await(await fetch(url)).json());}
|
||||
check(details.length===59&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===2277,'59图2277保存位置');
|
||||
check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===66,'59图66源注释');
|
||||
await page.goto('http://127.0.0.1:5173/connections',{waitUntil:'networkidle'});
|
||||
const dialog=page.getByRole('dialog',{name:'工作流说明'});
|
||||
const fixedCard=dialog.locator('.card').filter({has:page.getByText('固定版本参数说明',{exact:true})});
|
||||
async function begin(name){const row=page.locator('.wf-row').filter({has:page.locator('.wf-name').filter({hasText:name})}).first();const button=row.getByRole('button',{name:'说明',exact:true});await button.focus();await page.keyboard.press('Enter');return button;}
|
||||
async function loaded(){await dialog.getByText('用途与来源',{exact:true}).waitFor();await dialog.evaluate(el=>Promise.all(el.getAnimations().map(a=>a.finished)));}
|
||||
for(const width of [1440,390]){
|
||||
await page.setViewportSize({width,height:width===390?844:1000});
|
||||
for(const d of details){
|
||||
group=details.indexOf(d)<1?'new_person':'old_fifty_eight';const b=d.doc_json.fixed_version,button=await begin(d.name);await loaded();
|
||||
const overview=dialog.locator('.card').filter({has:page.getByText('用途与来源',{exact:true})});
|
||||
check((await overview.innerText()).includes(b.user_overview),`${width} ${d.name}默认中文用途`);
|
||||
check(!(await dialog.getByText('源图与审校记录',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}源审校默认折叠`);
|
||||
check(!(await dialog.getByText('核对范围与来源依据',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}技术范围默认折叠`);
|
||||
const visible=await fixedCard.innerText();
|
||||
check(!visible.includes('执行标量')&&!visible.includes('widgetId')&&!visible.includes(b.source_sha256)&&!visible.includes('UUID'),`${width} ${d.name}默认无执行计数/实现标识`);
|
||||
check(visible.includes('依据固定版本整理,目标环境与实际效果未核对。'),`${width} ${d.name}默认依据限制可见`);
|
||||
for(const t of ['说明未定稿','未验证实跑','未检查'])check((await dialog.innerText()).includes(t),`${width} ${d.name} ${t}`);
|
||||
check(!d.is_enabled&&!d.doc_completed_at&&!d.exec_verified_at,`${width} ${d.name}停用/时间戳空`);
|
||||
check(await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===b.fields.length,`${width} ${d.name}参数全保留`);
|
||||
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${d.name}默认无溢出`);
|
||||
await dialog.locator('.drawer-body').evaluate(el=>el.scrollTop=0);
|
||||
if(details.indexOf(d)<1)await page.screenshot({path:`${out}/${width}-${d.id}-default.png`});
|
||||
if(details.indexOf(d)>0){await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}旧图归还焦点`);continue;}
|
||||
await dialog.getByText('源图与审校记录',{exact:true}).click();
|
||||
check((await overview.innerText()).includes(d.doc_json.purpose)&&(await overview.innerText()).includes(d.source_repo_path),`${width} ${d.name}原用途/源路径展开保留`);
|
||||
await dialog.getByText('核对范围与来源依据',{exact:true}).click();
|
||||
const flowText=await fixedCard.innerText();check(flowText.includes(`被连线覆盖 ${b.counts.linked_saved_fields} 项`)&&flowText.includes(`仅前端控制 ${b.counts.frontend_only} 项`),`${width}准确覆盖与前端位置计数`);
|
||||
for(const line of b.flow)check(flowText.includes(line),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`);
|
||||
if(width===1440){await fixedCard.getByText(b.flow[2],{exact:true}).first().evaluate(el=>el.scrollIntoView({block:'center'}));await page.screenshot({path:`${out}/${width}-${d.id}-branch-flow.png`});}
|
||||
await dialog.getByText('版本、源图与连线依据',{exact:true}).click();
|
||||
check((await fixedCard.innerText()).includes(b.source_sha256)&&b.versions.every(v=>(v&&true)),`${width} ${d.name}原件摘要可展开`);
|
||||
const versionText=await fixedCard.innerText();
|
||||
for(const v of b.versions)check(versionText.includes(v),`${width} ${d.name}版本 ${b.versions.indexOf(v)}`);
|
||||
if(details.indexOf(d)<1){
|
||||
for(const f of b.fields){
|
||||
const summary=fixedCard.locator(`details[data-fixed-field="${f.pointer}"] > summary`);await summary.focus();await page.keyboard.press('Enter');const box=summary.locator('..');
|
||||
check(await box.evaluate(el=>el.open),`${width} ${f.node_id}.${f.field}键盘展开`);
|
||||
let text=await box.innerText();const has=value=>text.replace(/\s+/g,' ').includes(value.replace(/\s+/g,' '));check(has(f.effect)&&has(f.limits)&&has(f.schema_default)&&has(f.execution_note)&&has(f.unit),`${width} ${f.node_id}.${f.field}用途/单位/范围/来源条件`);
|
||||
check(await box.locator(':scope > pre').textContent()===(typeof f.value==='string'?f.value:JSON.stringify(f.value,null,2)),`${width} ${f.node_id}.${f.field}精确保留现值`);
|
||||
check(!text.includes(f.pointer),`${width} ${f.node_id}.${f.field}指针默认折叠`);
|
||||
await box.getByText('来源依据',{exact:true}).click();text=await box.innerText();
|
||||
check(text.includes(f.pointer)&&text.includes(f.named_pointer)&&text.includes(f.class_type)&&text.includes(f.json_type)&&f.evidence.every(i=>{const e=b.sources[i];return (!e.commit||text.includes(e.commit))&&text.includes(e.sha256)&&text.includes(e.lines.join('~'));}),`${width} ${f.node_id}.${f.field}精确源码/类型/指针`);
|
||||
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${f.node_id}.${f.field}展开无溢出`);
|
||||
if(f.node_id==='52'&&f.field==='round_to_multiple'){
|
||||
await page.screenshot({path:`${out}/${width}-${d.id}-scale-multiple.png`});
|
||||
await box.getByText('来源依据',{exact:true}).evaluate(el=>el.scrollIntoView({block:'start'}));
|
||||
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width}准确来源展开无横溢`);
|
||||
await page.screenshot({path:`${out}/${width}-${d.id}-source-citations.png`});
|
||||
}
|
||||
if(f.node_id==='132:14'){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-history-source.png`});}
|
||||
if((['131:113','131:87','131:107','131:110','52','43','132:14'].includes(f.node_id)))await page.screenshot({path:`${out}/${width}-${d.id}-${f.node_id}-${f.field}.png`});
|
||||
await summary.click();
|
||||
}
|
||||
for(const n of b.comments){const summary=dialog.getByText(`节点 ${n.node_id}`,{exact:true});await summary.click();const expected=d.doc_json.source_notes.find(x=>String(x.node_id)===n.node_id);check(await summary.locator('..').locator('pre').textContent()===JSON.stringify(expected.content,null,2),`${width}注释${n.node_id}全文`);check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width}注释${n.node_id}无溢出`);if(width===390){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-${n.node_id}-note.png`});}await summary.click();}
|
||||
await dialog.getByRole('button',{name:'关闭',exact:true}).focus();await page.keyboard.press('Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}Tab焦点保留`);await page.keyboard.press('Shift+Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}ShiftTab焦点保留`);
|
||||
}
|
||||
await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}关闭归还焦点`);
|
||||
}
|
||||
}
|
||||
group='shared_regressions';
|
||||
for(const name of ['旧工作流回退(隔离测试夹具)','空说明回退(隔离测试夹具)']){await begin(name);await loaded();check((await dialog.innerText()).includes('隔离库旧条目回退测试'),'旧/空说明回退 '+name);await page.keyboard.press('Escape');}
|
||||
// Missing summary and mismatched bindings are tested with local GET fixtures, without writes.
|
||||
for(const variant of ['missing-overview','mismatched','html-summary']){
|
||||
const d=structuredClone(details[0]);
|
||||
if(variant==='missing-overview')delete d.doc_json.fixed_version.user_overview;
|
||||
if(variant==='mismatched')d.doc_json.fixed_version={matched:false,notice:'固定版本参数说明待核对:源文件、声明版本或说明依据未匹配,未采用旧定义。'};
|
||||
if(variant==='html-summary')d.doc_json.fixed_version.user_overview='<img src="https://example.invalid/forbidden">仅纯文本';
|
||||
await page.route(`**/api/workflows/${d.id}`,route=>{interceptions.push({variant,url:route.request().url()});return route.fulfill({json:d});});await begin(d.name);await loaded();
|
||||
if(variant==='missing-overview')check((await dialog.innerText()).includes('这张图的用途和操作重点可在下方使用步骤中查看;目标环境与实际效果仍待核对。'),'缺摘要自然中文回退');
|
||||
if(variant==='mismatched')check((await dialog.innerText()).includes(d.doc_json.fixed_version.notice)&&!await dialog.getByText('核对范围与来源依据',{exact:true}).count(),'错绑定提示明确且不展示旧字段');
|
||||
if(variant==='html-summary')check((await dialog.innerText()).includes(d.doc_json.fixed_version.user_overview)&&await dialog.locator('img').count()===0,'摘要HTML仅纯文本不创建图像或请求');
|
||||
check(!(await dialog.innerText()).includes('undefined'),'回退不暴露undefined');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${d.id}`);
|
||||
}
|
||||
let release,entered,delivered;const hold=new Promise(r=>release=r),intercept=new Promise(r=>entered=r),done=new Promise(r=>delivered=r);
|
||||
await page.route(`**/api/workflows/${details[0].id}`,async route=>{interceptions.push({variant:"late",url:route.request().url()});entered();await hold;await route.fulfill({json:details[0]});delivered();});
|
||||
await begin(details[0].name);await intercept;await page.keyboard.press('Escape');await begin(details[1].name);await loaded();release();await done;
|
||||
check((await dialog.innerText()).includes(details[1].doc_json.fixed_version.user_overview)&&await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===details[1].doc_json.fixed_version.fields.length,'迟到人物迁移响应不覆盖旧图摘要/字段');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${details[0].id}`);
|
||||
await page.route(`**/api/workflows/${details[0].id}`,route=>{interceptions.push({variant:'failure',url:route.request().url()});return route.fulfill({status:500,json:{detail:'隔离失败夹具'}});});await begin(details[0].name);await dialog.getByRole('alert').waitFor({timeout:20000});check(await dialog.getByRole('button',{name:'重试',exact:true}).isVisible(),'GET失败显示重试');check(await dialog.getByText('用途与来源',{exact:true}).count()===0,'读取失败隐藏旧摘要');await page.unroute(`**/api/workflows/${details[0].id}`);await dialog.getByRole('button',{name:'重试',exact:true}).click();await loaded();check((await dialog.innerText()).includes(details[0].doc_json.fixed_version.user_overview),'重试恢复摘要');await page.keyboard.press('Escape');
|
||||
check(errors.length===0,'无脚本错误或禁止请求 '+JSON.stringify(errors));check(requests.every(r=>r.method==='GET'&&new URL(r.url).hostname==='127.0.0.1'&&!r.url.includes('/api/view')),'全程本地GET无写/生成/目标/历史预览请求');
|
||||
const polling=requests.filter(r=>['/api/jobs','/api/events'].includes(new URL(r.url).pathname));
|
||||
const fixed=requests.filter(r=>!polling.includes(r));
|
||||
const frequencies=rs=>Object.fromEntries([...new Set(rs.map(r=>new URL(r.url).pathname))].sort().map(p=>[p,rs.filter(r=>new URL(r.url).pathname===p).length]));
|
||||
fs.writeFileSync(`${out}/browser-results.json`,JSON.stringify({request_accounting:{fixed_count:fixed.length,fixed_paths:frequencies(fixed),polling_count:polling.length,polling_paths:frequencies(polling),polling_tolerance:1,reason:'定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。'},assertion_count:checks.length,assertionGroups,interceptions,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2));
|
||||
} finally {await browser.close();}
|
||||
@@ -0,0 +1,95 @@
|
||||
"""Foreground local browser check; stop every owned service before returning."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import signal
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
import urllib.error
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
OUT = ROOT / ".local-evidence/flux2-person-document/browser"
|
||||
|
||||
|
||||
def main():
|
||||
OUT.mkdir(parents=True, exist_ok=True)
|
||||
# Refuse to reuse another operator's service or port.
|
||||
import socket
|
||||
|
||||
for port in (8247, 5173):
|
||||
with socket.socket() as sock:
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
sock.bind(("127.0.0.1", port))
|
||||
processes = []
|
||||
logs = []
|
||||
try:
|
||||
commands = [
|
||||
([sys.executable, str(ROOT / "e2e/workflow-document-server.py")], ROOT),
|
||||
(
|
||||
["node", "node_modules/vite/bin/vite.js", "--host", "127.0.0.1"],
|
||||
ROOT / "calliope-web",
|
||||
),
|
||||
]
|
||||
for i, (command, cwd) in enumerate(commands):
|
||||
log = (OUT / f"service-{i}.log").open("w")
|
||||
logs.append(log)
|
||||
processes.append(
|
||||
subprocess.Popen(command, cwd=cwd, stdout=log, stderr=log, start_new_session=True)
|
||||
)
|
||||
for url in (
|
||||
"http://127.0.0.1:8247/api/workflows",
|
||||
"http://127.0.0.1:5173/connections",
|
||||
):
|
||||
deadline = time.monotonic() + 30
|
||||
while True:
|
||||
if any(p.poll() is not None for p in processes):
|
||||
raise RuntimeError("Local service exited; inspect service logs")
|
||||
try:
|
||||
with urllib.request.urlopen(url, timeout=1) as response:
|
||||
if response.status == 200:
|
||||
break
|
||||
except (urllib.error.URLError, TimeoutError):
|
||||
pass
|
||||
if time.monotonic() > deadline:
|
||||
raise TimeoutError(url)
|
||||
time.sleep(0.2)
|
||||
names = ["flux2-person"]
|
||||
for name in names:
|
||||
subprocess.run(["node", f"e2e/{name}-document.mjs"], cwd=ROOT, check=True)
|
||||
finally:
|
||||
for p in processes:
|
||||
if p.poll() is None:
|
||||
os.killpg(p.pid, signal.SIGTERM)
|
||||
try:
|
||||
p.wait(timeout=10)
|
||||
except subprocess.TimeoutExpired:
|
||||
os.killpg(p.pid, signal.SIGKILL)
|
||||
p.wait(timeout=5)
|
||||
for log in logs:
|
||||
log.close()
|
||||
import json
|
||||
|
||||
released = []
|
||||
for port in (8247, 5173):
|
||||
with socket.socket() as sock:
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
sock.bind(("127.0.0.1", port))
|
||||
released.append(port)
|
||||
(OUT / "service-stop.json").write_text(
|
||||
json.dumps(
|
||||
{
|
||||
"ports_released": released,
|
||||
"child_exit_codes": [p.returncode for p in processes],
|
||||
}
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print("All owned browser services stopped; ports released.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user