HEL-892: document pinned Z-Image depth ControlNet wash workflow
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-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json"
|
||||
): "d91b44e3de58f8b960a799101396d9769e936aff3578490f9abebc1591bcb495",
|
||||
(
|
||||
"example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json"
|
||||
): "cebc6088ca1274ba13978ad449eec7e5afd3e4ec275a157ca761091cbf8bd0af",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,216 @@
|
||||
"Exact graph binding, all saved positions, dual scopes and closed eligibility."
|
||||
|
||||
import ast
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
import runpy
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS, canonical
|
||||
from calliope.comfyui.library import build_document
|
||||
from calliope.comfyui.source_reviews import review_for
|
||||
|
||||
REPO = Path(__file__).resolve().parents[2]
|
||||
OUT = REPO / "docs/hel-892/zimage-wash-document-evidence"
|
||||
PATH = "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.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("key", ["extra", "links", "id", "groups", "version"])
|
||||
def test_whole_graph_mutations_fail_closed(key):
|
||||
source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
source[key] = "forged"
|
||||
review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(
|
||||
canonical(source)
|
||||
).hexdigest()
|
||||
assert not doc(source, review)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("key", ["mode", "properties", "inputs", "outputs"])
|
||||
@pytest.mark.parametrize("index", [0, 4, 12, 15])
|
||||
def test_node_identity_and_state_fail_closed(key, index):
|
||||
source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
source["nodes"][index][key] = "forged"
|
||||
review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(
|
||||
canonical(source)
|
||||
).hexdigest()
|
||||
assert not doc(source, review)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
def test_exact_build_and_qualification():
|
||||
assert canonical(runpy.run_path(str(OUT / "build_definition.py"))["build"]()) == canonical(
|
||||
BLOCK
|
||||
)
|
||||
assert len(DEFINITIONS) == 68 and doc()["fixed_version"]["matched"]
|
||||
assert BLOCK["counts"]["saved_fields"] == BLOCK["counts"]["root_saved_fields"] == 138
|
||||
assert BLOCK["counts"]["source_notes"] == 1 and len(BLOCK["comments"]) == 1
|
||||
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_exact_wash_graph_and_identity_gaps():
|
||||
ns = {n["id"]: n for n in SOURCE["nodes"]}
|
||||
assert sum(n["mode"] == 4 for n in SOURCE["nodes"]) == 10
|
||||
assert ns[143]["outputs"][1]["links"] == []
|
||||
assert ns[303]["widgets_values"] == ["DepthAnythingPreprocessor", 1024]
|
||||
assert ns[321]["widgets_values"][6:8] == ["total_pixel(kilo pixel)", 2048]
|
||||
assert ns[675]["inputs"][0]["link"] == 3406 and ns[675]["inputs"][1]["link"] == 3407
|
||||
assert ns[313]["inputs"][0]["link"] == 3270 and ns[314]["inputs"][0]["link"] == 3130
|
||||
assert ns[313]["inputs"][3]["link"] == 3408 and ns[314]["inputs"][3]["link"] == 2687
|
||||
assert ns[313]["inputs"][5]["link"] == 3097 and ns[314]["inputs"][5]["link"] == 3112
|
||||
assert ns[618]["widgets_values"] == [9528, "fixed", None]
|
||||
assert not any(n["type"] in ["VAEEncode", "SetLatentNoiseMask"] for n in SOURCE["nodes"])
|
||||
assert "ver" not in ns[679]["properties"] and "cnr_id" not in ns[679]["properties"]
|
||||
assert ns[231]["inputs"][1]["link"] == 2067 and ns[230]["widgets_values"] == ["SeedVR 修复"]
|
||||
flow = "\n".join(BLOCK["flow"])
|
||||
for word in [
|
||||
"DepthAnythingPreprocessor",
|
||||
"不是已选姿态",
|
||||
"只有第一段接ControlNet",
|
||||
"9528/fixed/null",
|
||||
"Exposure679没有cnr_id/ver",
|
||||
"SeedVR 修复",
|
||||
"362字",
|
||||
"0.5.1",
|
||||
]:
|
||||
assert word in flow or word in BLOCK["user_overview"]
|
||||
for f in BLOCK["fields"]:
|
||||
if f["node_id"] == "629":
|
||||
assert f["input_name"] is None
|
||||
if f["node_id"] == "679":
|
||||
assert all("未知" in f[k] for k in ["schema_default", "limits", "unit"])
|
||||
linked = {
|
||||
f["node_id"] + "." + f["field"]
|
||||
for f in BLOCK["fields"]
|
||||
if f["input_pointer"].startswith("/")
|
||||
and pointer(SOURCE, f["input_pointer"]).get("link") is not None
|
||||
}
|
||||
assert linked == {"675.width", "675.height", "313.noise_seed", "314.noise_seed", "300.text"}
|
||||
|
||||
|
||||
@pytest.mark.parametrize("note", BLOCK["comments"])
|
||||
def test_full_notes_and_note_forgery(note):
|
||||
assert pointer(SOURCE, note["pointer"]) == note["text"]
|
||||
source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
review["fixed_version_document"]["comments"][0]["text"] = "forged"
|
||||
assert not doc(source, review)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
def test_path_and_source_binding_cannot_be_extended():
|
||||
from calliope.comfyui.fixed_document import fixed_document_for
|
||||
|
||||
assert fixed_document_for(PATH + "forged", SOURCE, REVIEW) is None
|
||||
review = copy.deepcopy(REVIEW)
|
||||
review["source_sha"] = "forged"
|
||||
assert not doc(SOURCE, review)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("suffix", [b"\n", b" ", b"\t"])
|
||||
def test_original_byte_identity_rejects_equivalent_json(suffix):
|
||||
altered = RAW + suffix
|
||||
assert json.loads(altered) == SOURCE
|
||||
assert review_for(PATH, hashlib.sha1(altered).hexdigest()) is None
|
||||
|
||||
|
||||
@pytest.mark.parametrize("key", ["user_overview", "source_sha256", "sources", "flow", "counts"])
|
||||
def test_editorial_or_citation_rehash_cannot_replace_code_owned_pin(key):
|
||||
source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
review["fixed_version_document"][key] = "forged"
|
||||
review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(
|
||||
canonical(source)
|
||||
).hexdigest()
|
||||
assert not doc(source, review)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"nid,key",
|
||||
[(295, "core0375"), (234, "core0367"), (322, "core0376"), (617, "core051"), (233, "core0359")],
|
||||
)
|
||||
def test_exact_declared_output_and_empty_backend_return(nid, key):
|
||||
n = next(n for n in SOURCE["nodes"] if n["id"] == nid)
|
||||
assert n["outputs"] == [{"name": "image_urls", "type": "STRING"}]
|
||||
if n["type"] == "PreviewImage":
|
||||
assert n["widgets_values"] == []
|
||||
e = next(e for e in BLOCK["sources"] if e["id"] == key and e["file"] == "nodes.py")
|
||||
tree = ast.parse((OUT / e["local_file"]).read_bytes())
|
||||
save = next(c for c in tree.body if isinstance(c, ast.ClassDef) and c.name == "SaveImage")
|
||||
ret = next(
|
||||
c.value
|
||||
for c in save.body
|
||||
if isinstance(c, ast.Assign)
|
||||
and any(isinstance(t, ast.Name) and t.id == "RETURN_TYPES" for t in c.targets)
|
||||
)
|
||||
assert isinstance(ret, ast.Tuple) and ret.elts == []
|
||||
if n["type"] == "PreviewImage":
|
||||
c = next(c for c in tree.body if isinstance(c, ast.ClassDef) and c.name == "PreviewImage")
|
||||
assert [ast.unparse(b) for b in c.bases] == ["SaveImage"]
|
||||
effect = next(
|
||||
z["effect"]
|
||||
for z in doc()["fixed_version"]["zero_saved_nodes"]
|
||||
if z["node_id"] == str(nid)
|
||||
)
|
||||
else:
|
||||
effect = next(
|
||||
f["effect"] for f in doc()["fixed_version"]["fields"] if f["node_id"] == str(nid)
|
||||
)
|
||||
assert "源声明STRING" in effect and "接口差异" in effect
|
||||
|
||||
|
||||
def test_easy_seed_null_and_model_identity_are_not_normalized():
|
||||
f = next(f for f in BLOCK["fields"] if f["node_id"] == "618" and f["field"] == "saved_aux_null")
|
||||
assert f["value"] is None and f["json_type"] == "NoneType" and f["input_name"] is None
|
||||
assert "未知" in f["schema_default"]
|
||||
dit = next(
|
||||
f for f in BLOCK["fields"] if f["node_id"] == "629" and f["field"] == "saved_position_0"
|
||||
)
|
||||
assert dit["value"] == "seedvr2_ema_3b_fp8_e4m3fn.safetensors"
|
||||
File diff suppressed because it is too large
Load Diff
+10527
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,89 @@
|
||||
{
|
||||
"fixed_count": 212,
|
||||
"fixed_paths": {
|
||||
"/api/workflows": 3,
|
||||
"/api/workflows/82": 4,
|
||||
"/api/workflows/81": 4,
|
||||
"/api/workflows/80": 3,
|
||||
"/api/workflows/79": 3,
|
||||
"/api/workflows/78": 3,
|
||||
"/api/workflows/77": 3,
|
||||
"/api/workflows/76": 3,
|
||||
"/api/workflows/75": 3,
|
||||
"/api/workflows/54": 3,
|
||||
"/api/workflows/55": 3,
|
||||
"/api/workflows/56": 3,
|
||||
"/api/workflows/58": 3,
|
||||
"/api/workflows/57": 3,
|
||||
"/api/workflows/44": 3,
|
||||
"/api/workflows/53": 3,
|
||||
"/api/workflows/52": 3,
|
||||
"/api/workflows/51": 3,
|
||||
"/api/workflows/50": 3,
|
||||
"/api/workflows/49": 3,
|
||||
"/api/workflows/47": 3,
|
||||
"/api/workflows/48": 3,
|
||||
"/api/workflows/46": 3,
|
||||
"/api/workflows/45": 3,
|
||||
"/api/workflows/42": 3,
|
||||
"/api/workflows/41": 3,
|
||||
"/api/workflows/40": 3,
|
||||
"/api/workflows/39": 3,
|
||||
"/api/workflows/38": 3,
|
||||
"/api/workflows/37": 3,
|
||||
"/api/workflows/18": 3,
|
||||
"/api/workflows/20": 3,
|
||||
"/api/workflows/30": 3,
|
||||
"/api/workflows/32": 3,
|
||||
"/api/workflows/34": 3,
|
||||
"/api/workflows/33": 3,
|
||||
"/api/workflows/31": 3,
|
||||
"/api/workflows/29": 3,
|
||||
"/api/workflows/28": 3,
|
||||
"/api/workflows/27": 3,
|
||||
"/api/workflows/26": 3,
|
||||
"/api/workflows/17": 3,
|
||||
"/api/workflows/4": 3,
|
||||
"/api/workflows/15": 3,
|
||||
"/api/workflows/11": 3,
|
||||
"/api/workflows/3": 3,
|
||||
"/api/workflows/9": 3,
|
||||
"/api/workflows/16": 3,
|
||||
"/api/workflows/10": 3,
|
||||
"/api/workflows/23": 3,
|
||||
"/api/workflows/8": 3,
|
||||
"/api/workflows/22": 3,
|
||||
"/api/workflows/5": 3,
|
||||
"/api/workflows/6": 3,
|
||||
"/api/workflows/7": 3,
|
||||
"/api/workflows/19": 3,
|
||||
"/api/workflows/13": 3,
|
||||
"/api/workflows/12": 3,
|
||||
"/api/workflows/64": 3,
|
||||
"/api/workflows/62": 3,
|
||||
"/api/workflows/70": 3,
|
||||
"/api/workflows/1": 3,
|
||||
"/api/workflows/36": 3,
|
||||
"/api/workflows/35": 3,
|
||||
"/api/workflows/2": 3,
|
||||
"/api/workflows/25": 3,
|
||||
"/api/workflows/24": 3,
|
||||
"/api/workflows/21": 3,
|
||||
"/api/workflows/14": 3,
|
||||
"/api/settings": 1,
|
||||
"/api/workflows/156": 1,
|
||||
"/api/workflows/157": 1
|
||||
},
|
||||
"polling_count": 26,
|
||||
"polling_paths": {
|
||||
"/api/jobs": 26
|
||||
},
|
||||
"readiness_gets": 1,
|
||||
"detail_fixture_intercepts": 6,
|
||||
"fixed_paths_browser_minus_fixtures_plus_readiness_matches_backend": true,
|
||||
"polling_snapshot_delta": {
|
||||
"/api/jobs": 0,
|
||||
"/api/events": 0
|
||||
},
|
||||
"polling_snapshot_tolerance": 1
|
||||
}
|
||||
@@ -0,0 +1,728 @@
|
||||
{
|
||||
"base": "702c6be64fe6d656a69c68451ee476370216a485",
|
||||
"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": 67,
|
||||
"drawer_css_unchanged": true,
|
||||
"drawer_whole_file_unchanged": true,
|
||||
"drawer_sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1",
|
||||
"conversion_rerun": false,
|
||||
"profiles_28_candidates_9_diffs_6": "unchanged"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,626 @@
|
||||
"""Static, exact-source editorial definition; never import or execute upstream."""
|
||||
|
||||
import ast
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
REPO = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "zimage-wash-reference"
|
||||
PATHS = ["example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json"]
|
||||
|
||||
|
||||
def canonical(value):
|
||||
return json.dumps(value, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
|
||||
|
||||
|
||||
LAYOUTS = {
|
||||
"llama_cpp_model_loader": [
|
||||
"model",
|
||||
"mmproj",
|
||||
"chat_handler",
|
||||
"n_ctx",
|
||||
"vram_limit",
|
||||
"image_min_tokens",
|
||||
"image_max_tokens",
|
||||
],
|
||||
"llama_cpp_instruct_adv": [
|
||||
"preset_prompt",
|
||||
"custom_prompt",
|
||||
"system_prompt",
|
||||
"inference_mode",
|
||||
"max_frames",
|
||||
"max_size",
|
||||
"seed",
|
||||
"seed_control_candidate",
|
||||
"force_offload",
|
||||
"save_states",
|
||||
],
|
||||
"LayerUtility: PurgeVRAM V2": ["purge_cache", "purge_models"],
|
||||
"VAELoader": ["vae_name"],
|
||||
"CLIPLoader": ["clip_name", "type", "device"],
|
||||
"UNETLoader": ["unet_name", "weight_dtype"],
|
||||
"ModelPatchLoader": ["name"],
|
||||
"ShowText|pysssss": ["saved_text_history"],
|
||||
"SetNode": ["alias"],
|
||||
"GetNode": ["alias"],
|
||||
"ZImageFunControlnet": ["strength"],
|
||||
"CLIPTextEncode": ["text"],
|
||||
"DifferentialDiffusion": ["strength"],
|
||||
"ImagePadForOutpaint": ["left", "top", "right", "bottom", "feathering"],
|
||||
"LayerUtility: ImageScaleByAspectRatio V2": [
|
||||
"aspect_ratio",
|
||||
"proportional_width",
|
||||
"proportional_height",
|
||||
"fit",
|
||||
"method",
|
||||
"round_to_multiple",
|
||||
"scale_to_side",
|
||||
"scale_to_length",
|
||||
"background_color",
|
||||
],
|
||||
"SeedVR2VideoUpscaler": [
|
||||
"seed",
|
||||
"seed_control_candidate",
|
||||
"resolution",
|
||||
"max_resolution",
|
||||
"batch_size",
|
||||
"uniform_batch_size",
|
||||
"color_correction",
|
||||
"temporal_overlap",
|
||||
"prepend_frames",
|
||||
"input_noise_scale",
|
||||
"latent_noise_scale",
|
||||
"offload_device",
|
||||
"enable_debug",
|
||||
],
|
||||
# Do not coerce flash_attn into BOOLEAN cache_model.
|
||||
"SeedVR2LoadDiTModel": ["saved_position_" + str(i) for i in range(7)],
|
||||
"SeedVR2LoadVAEModel": [
|
||||
"model",
|
||||
"device",
|
||||
"encode_tiled",
|
||||
"encode_tile_size",
|
||||
"encode_tile_overlap",
|
||||
"decode_tiled",
|
||||
"decode_tile_size",
|
||||
"decode_tile_overlap",
|
||||
"tile_debug",
|
||||
"offload_device",
|
||||
"cache_model",
|
||||
],
|
||||
"Image Comparer (rgthree)": ["saved_comparison_history"],
|
||||
"ImageScaleToTotalPixels": ["upscale_method", "megapixels", "resolution_steps"],
|
||||
"SaveImage": ["filename_prefix"],
|
||||
"LanPaint_MaskBlend": ["blend_overlap"],
|
||||
"ImageStitch": ["direction", "match_image_size", "spacing_width", "spacing_color"],
|
||||
"KSampler": [
|
||||
"seed",
|
||||
"seed_control_candidate",
|
||||
"steps",
|
||||
"cfg",
|
||||
"sampler_name",
|
||||
"scheduler",
|
||||
"denoise",
|
||||
],
|
||||
"LoadImage": ["image", "upload"],
|
||||
"ImageAndMaskPreview": ["mask_opacity", "mask_color", "pass_through"],
|
||||
}
|
||||
LAYOUTS.update(
|
||||
{
|
||||
"KSamplerAdvanced": [
|
||||
"add_noise",
|
||||
"noise_seed",
|
||||
"seed_control_candidate",
|
||||
"steps",
|
||||
"cfg",
|
||||
"sampler_name",
|
||||
"scheduler",
|
||||
"start_at_step",
|
||||
"end_at_step",
|
||||
"return_with_leftover_noise",
|
||||
],
|
||||
"EmptyLatentImage": ["width", "height", "batch_size"],
|
||||
"easy seed": ["seed", "seed_control_candidate", "saved_aux_null"],
|
||||
"LayerColor: Exposure": ["exposure"],
|
||||
"LayerUtility: ImageReel": [
|
||||
"image1_text",
|
||||
"image2_text",
|
||||
"image3_text",
|
||||
"image4_text",
|
||||
"reel_height",
|
||||
"border",
|
||||
],
|
||||
"LayerUtility: ImageReelComposit": ["font_file", "font_size", "border", "color_theme"],
|
||||
"AIO_Preprocessor": ["preprocessor", "resolution"],
|
||||
}
|
||||
)
|
||||
|
||||
LABELS = dict(
|
||||
model="模型引用",
|
||||
mmproj="视觉投影引用",
|
||||
chat_handler="视觉处理器",
|
||||
n_ctx="上下文限制",
|
||||
vram_limit="显存限制参考",
|
||||
image_min_tokens="图像token下限",
|
||||
image_max_tokens="图像token上限",
|
||||
purge_cache="清缓存保存开关",
|
||||
purge_models="卸载模型保存开关",
|
||||
vae_name="VAE引用",
|
||||
clip_name="文本模型引用",
|
||||
type="编码器类型",
|
||||
device="设备保存选择",
|
||||
unet_name="扩散模型引用",
|
||||
weight_dtype="权重类型",
|
||||
name="模型补丁引用",
|
||||
saved_text_history="完整历史展示文本",
|
||||
alias="具名别名字符串(恢复未知)",
|
||||
strength="强度保存值",
|
||||
text="完整条件文本缓存",
|
||||
left="左侧扩展",
|
||||
top="顶部扩展",
|
||||
right="右侧扩展",
|
||||
bottom="底部扩展",
|
||||
feathering="羽化保存值",
|
||||
aspect_ratio="比例保存选择",
|
||||
proportional_width="比例宽",
|
||||
proportional_height="比例高",
|
||||
fit="适配方式",
|
||||
method="插值选择",
|
||||
round_to_multiple="对齐倍数字符串",
|
||||
scale_to_side="缩放边选择",
|
||||
scale_to_length="缩放长度",
|
||||
background_color="背景颜色串",
|
||||
seed="种子保存值",
|
||||
seed_control_candidate="种子辅助候选(非独立后端参数)",
|
||||
resolution="分辨率保存值",
|
||||
max_resolution="最大分辨率",
|
||||
batch_size="批次保存值",
|
||||
uniform_batch_size="批次一致保存选择",
|
||||
color_correction="色彩校正选择",
|
||||
temporal_overlap="时间重叠",
|
||||
prepend_frames="前置帧保存值",
|
||||
input_noise_scale="输入噪声强度",
|
||||
latent_noise_scale="latent噪声强度",
|
||||
offload_device="卸载设备选择",
|
||||
enable_debug="调试保存选择",
|
||||
encode_tiled="编码分块开关",
|
||||
encode_tile_size="编码块尺寸",
|
||||
encode_tile_overlap="编码块重叠",
|
||||
decode_tiled="解码分块开关",
|
||||
decode_tile_size="解码块尺寸",
|
||||
decode_tile_overlap="解码块重叠",
|
||||
tile_debug="分块调试字符串",
|
||||
cache_model="模型缓存保存选择",
|
||||
saved_comparison_history="完整比较历史列表(仅文本)",
|
||||
upscale_method="缩放插值",
|
||||
megapixels="百万像素保存值",
|
||||
resolution_steps="分辨率步进",
|
||||
filename_prefix="保存文件前缀",
|
||||
blend_overlap="混合重叠保存值",
|
||||
preset_prompt="提示预设",
|
||||
custom_prompt="自定义提示原文",
|
||||
system_prompt="完整中文系统要求",
|
||||
inference_mode="推理模式保存选择",
|
||||
max_frames="帧数保存上限",
|
||||
max_size="尺寸保存上限",
|
||||
force_offload="强制卸载保存选择",
|
||||
save_states="保存上下文选择",
|
||||
direction="拼接方向",
|
||||
match_image_size="匹配尺寸选择",
|
||||
spacing_width="间距保存值",
|
||||
spacing_color="间距颜色",
|
||||
steps="采样步数保存值",
|
||||
cfg="引导保存值",
|
||||
sampler_name="采样器选择",
|
||||
scheduler="调度器选择",
|
||||
denoise="降噪保存值",
|
||||
image="图片文件引用",
|
||||
upload="上传保存线索",
|
||||
mask_opacity="遮罩叠加透明度",
|
||||
mask_color="遮罩颜色原串",
|
||||
pass_through="透传保存开关",
|
||||
)
|
||||
|
||||
LABELS.update(
|
||||
dict(
|
||||
add_noise="添加噪声保存选择",
|
||||
noise_seed="外线覆盖的种子缓存",
|
||||
start_at_step="开始步数保存值",
|
||||
end_at_step="结束步数保存值",
|
||||
return_with_leftover_noise="剩余噪声返回选择",
|
||||
width="外线覆盖的宽度缓存",
|
||||
height="外线覆盖的高度缓存",
|
||||
batch_size="批量保存值",
|
||||
saved_aux_null="完整null保存位置(控件身份未认证)",
|
||||
exposure="曝光保存int10(单位/算法未知)",
|
||||
image1_text="第一路字幕原文",
|
||||
image2_text="第二路字幕原文",
|
||||
image3_text="第三路空字幕",
|
||||
image4_text="第四路空字幕",
|
||||
reel_height="卷轴高度保存值",
|
||||
border="边框保存值",
|
||||
font_file="字体文件名(不证明已安装)",
|
||||
font_size="字体尺寸保存值",
|
||||
color_theme="文字主题选择",
|
||||
preprocessor="当前选择深度预处理器",
|
||||
resolution="预处理分辨率保存值",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def provider(node):
|
||||
p = node.get("properties", {})
|
||||
cnr = p.get("cnr_id")
|
||||
ver = p.get("ver")
|
||||
if cnr == "comfy-core":
|
||||
return "core" + ver.replace(".", "") if ver != "0.5.0" else "core050"
|
||||
return {
|
||||
"comfyui_layerstyle": "reel"
|
||||
if ver == "89014d833d2ad0998d724090eff1456692692a1d"
|
||||
else "layer",
|
||||
"comfyui_controlnet_aux": "aux",
|
||||
"comfyui-easy-use": "easy",
|
||||
"llama-cpp_vllm": "llama",
|
||||
"comfyui-custom-scripts": "show",
|
||||
"LanPaint": "lanpaint",
|
||||
"comfyui-kjnodes": "kj",
|
||||
"rgthree-comfy": "rgactive" if str(node["id"]) == "330" else "rgbypass",
|
||||
"seedvr2_videoupscaler": "seedpkg" if ver == "2.5.22" else "seed",
|
||||
}.get(cnr)
|
||||
|
||||
|
||||
def build(index=0):
|
||||
raw = (REPO / PATHS[index]).read_bytes()
|
||||
g = json.loads(raw)
|
||||
editorial = json.loads((OUT / "editorial.json").read_bytes())
|
||||
manifest = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
sources = []
|
||||
for e in manifest:
|
||||
data = (REF / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(data).hexdigest() == e["sha256"]
|
||||
sources.append(
|
||||
dict(
|
||||
e,
|
||||
local_file="../zimage-wash-reference/" + e["local_file"],
|
||||
lines=[1, len(data.decode().splitlines())],
|
||||
claim="本图独立准确来源原文;Git/发布包身份与适用限制分列,静态读取未执行",
|
||||
)
|
||||
)
|
||||
# Class-level spans where exact symbols exist; schema text is quoted by AST, not executed.
|
||||
class_refs = {}
|
||||
schemas = {}
|
||||
for node in g["nodes"]:
|
||||
key = provider(node)
|
||||
cls = node["type"]
|
||||
nid = str(node["id"])
|
||||
refs = []
|
||||
for i, e in enumerate(manifest):
|
||||
if e["id"] != key or not e["file"].endswith(".py"):
|
||||
continue
|
||||
data = (REF / e["local_file"]).read_bytes()
|
||||
try:
|
||||
tree = ast.parse(data)
|
||||
except SyntaxError:
|
||||
continue
|
||||
symbol = {
|
||||
"easy seed": "easySeed",
|
||||
"LayerUtility: ImageReel": "ImageReel",
|
||||
"LayerUtility: ImageReelComposit": "ImageReelComposit",
|
||||
"ShowText|pysssss": "ShowText",
|
||||
"Image Comparer (rgthree)": "RgthreeImageComparer",
|
||||
"LayerUtility: ImageScaleByAspectRatio V2": "ImageScaleByAspectRatioV2",
|
||||
"LayerUtility: PurgeVRAM V2": "PurgeVRAM_V2",
|
||||
}.get(cls, cls)
|
||||
for c in ast.walk(tree):
|
||||
if isinstance(c, ast.ClassDef) and c.name == symbol:
|
||||
sources.append(
|
||||
dict(
|
||||
sources[i],
|
||||
lines=[c.lineno, c.end_lineno],
|
||||
claim="本图准确声明类实现;保存索引映射/运行恢复仍需区分",
|
||||
)
|
||||
)
|
||||
refs.append(len(sources) - 1)
|
||||
for d in ast.walk(c):
|
||||
if not isinstance(d, ast.Dict):
|
||||
continue
|
||||
for k, v in zip(d.keys, d.values, strict=True):
|
||||
if (
|
||||
isinstance(k, ast.Constant)
|
||||
and isinstance(k.value, str)
|
||||
and isinstance(v, ast.Tuple)
|
||||
):
|
||||
default = "无显式default;动态枚举或方法条件见准确原文"
|
||||
for a in v.elts[1:]:
|
||||
if isinstance(a, ast.Dict):
|
||||
for dk, dv in zip(a.keys, a.values, strict=True):
|
||||
if (
|
||||
isinstance(dk, ast.Constant)
|
||||
and dk.value == "default"
|
||||
):
|
||||
default = ast.unparse(dv)
|
||||
schemas[nid, k.value] = (default, ast.unparse(v))
|
||||
for call in ast.walk(c):
|
||||
if (
|
||||
isinstance(call, ast.Call)
|
||||
and isinstance(call.func, ast.Attribute)
|
||||
and call.func.attr == "Input"
|
||||
and call.args
|
||||
and isinstance(call.args[0], ast.Constant)
|
||||
and isinstance(call.args[0].value, str)
|
||||
):
|
||||
name = call.args[0].value
|
||||
default = next(
|
||||
(ast.unparse(k.value) for k in call.keywords if k.arg == "default"),
|
||||
"无显式default;不从方法缺省补值",
|
||||
)
|
||||
schemas[nid, name] = (default, ast.unparse(call))
|
||||
# Registration and complete relevant original texts remain visible even for missing class.
|
||||
class_refs[nid] = refs + [
|
||||
i
|
||||
for i, e in enumerate(manifest)
|
||||
if e["id"] == key and (e["file"].endswith("__init__.py") or not refs)
|
||||
]
|
||||
schemas["303", "preprocessor"] = (
|
||||
"'none'",
|
||||
"INPUT.COMBO(PREPROCESSOR_OPTIONS, default='none');"
|
||||
+ "动态枚举来自准确wrapper注册,不能推目标安装",
|
||||
)
|
||||
schemas["303", "resolution"] = (
|
||||
"512",
|
||||
"INPUT.RESOLUTION(default=512,min=64,max=16384,step=64),源码接口条件,不认证当前目标效果",
|
||||
)
|
||||
class_refs["303"] += [
|
||||
i
|
||||
for i, e in enumerate(manifest)
|
||||
if e["id"] == "aux" and e["file"] in ["utils.py", "node_wrappers/depth_anything.py"]
|
||||
]
|
||||
ns = {n["id"]: n for n in g["nodes"]}
|
||||
fields = []
|
||||
empty = []
|
||||
comments = []
|
||||
flow = []
|
||||
for i, n in enumerate(g["nodes"]):
|
||||
nid = str(n["id"])
|
||||
cls = n["type"]
|
||||
ptr = f"/nodes/{i}"
|
||||
if cls == "Note":
|
||||
comments.append(
|
||||
dict(
|
||||
node_id=nid,
|
||||
pointer=ptr + "/widgets_values/0",
|
||||
text=n["widgets_values"][0],
|
||||
meaning="完整作者提示生图偏暗需调曝光;不证明单位/算法或调节已执行。",
|
||||
evidence=[],
|
||||
)
|
||||
)
|
||||
continue
|
||||
if cls in ["SetNode", "GetNode"]:
|
||||
alias = n["widgets_values"][0]
|
||||
effect = (
|
||||
f"{nid} {cls}仅aux字符串身份,保存别名“{alias}”;"
|
||||
"无准确实现/版本,不能从别图赋予KJ身份。"
|
||||
"模型输出/patch/VAE/CLIP/加载图像/反推提示词/洗图输出/SeedVR 修复各自独立;"
|
||||
"同字符串仅配对线索,不造跨别名边、不补值、不认证加载模型已贯通。"
|
||||
"别名恢复次序未知,物理入出边分别保留。"
|
||||
)
|
||||
elif cls == "Reroute":
|
||||
effect = (
|
||||
f"{nid} Reroute缺widgets_values键,不能当[]/null;"
|
||||
"仅保留逐条物理边,不执行恢复或模拟透传。"
|
||||
)
|
||||
else:
|
||||
effect = editorial[nid]
|
||||
effect += (
|
||||
" 原始mode="
|
||||
+ str(n["mode"])
|
||||
+ ";"
|
||||
+ (
|
||||
"旁路保存态与活动链分开,不模拟穿透。"
|
||||
if n["mode"] == 4
|
||||
else "活动保存态不等于可靠可执行。"
|
||||
)
|
||||
)
|
||||
flow.extend(
|
||||
[
|
||||
effect,
|
||||
nid + " 原属性 " + json.dumps(n.get("properties", {}), ensure_ascii=False),
|
||||
nid
|
||||
+ " 原输入/输出(缺键/null/[]分列) "
|
||||
+ json.dumps({k: n[k] for k in ["inputs", "outputs"]}, ensure_ascii=False),
|
||||
]
|
||||
)
|
||||
if not n.get("widgets_values"):
|
||||
empty.append(
|
||||
dict(
|
||||
node_id=nid,
|
||||
class_type=cls,
|
||||
pointer=ptr,
|
||||
scope="root",
|
||||
state="missing" if "widgets_values" not in n else "empty_list",
|
||||
effect=effect,
|
||||
)
|
||||
)
|
||||
continue
|
||||
for j, (name, value) in enumerate(zip(LAYOUTS[cls], n["widgets_values"], strict=True)):
|
||||
inp = next((k for k, x in enumerate(n["inputs"]) if x["name"] == name), None)
|
||||
default, limits = schemas.get(
|
||||
(nid, name),
|
||||
(
|
||||
"未知:准确schema无此独立控件或注册/映射未核准",
|
||||
"未知:保存位置只为线索,不按索引认证范围/默认/运行参数",
|
||||
),
|
||||
)
|
||||
# SeedVR2 exact release positional layout remains explicitly unresolved.
|
||||
extra = ""
|
||||
if name.startswith("saved_position_"):
|
||||
extra = (
|
||||
f" 第{j}保存位置原值与原类型独立保留;"
|
||||
"8个具名输入含torch_compile_args,七保存位置不能硬映射为其顺序;"
|
||||
"准确发布接口对照见流程。"
|
||||
)
|
||||
if name == "seed_control_candidate":
|
||||
extra = " fixed/randomize只保存字符串及前端辅助候选,不作为独立后端输入或执行随机。"
|
||||
if name in ["saved_comparison_history", "saved_text_history"]:
|
||||
extra = (
|
||||
" 历史完整保留为一个保存位置,仅纯文本,不加载或请求历史图片,不认证当前内容。"
|
||||
)
|
||||
fields.append(
|
||||
dict(
|
||||
node_id=nid,
|
||||
definition_node_id=nid,
|
||||
scope="root",
|
||||
class_type=cls,
|
||||
field=name,
|
||||
label=LABELS.get(name, "保存位置" + str(j) + "(映射待核)"),
|
||||
pointer=f"{ptr}/widgets_values/{j}",
|
||||
value=value,
|
||||
json_type=type(value).__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 name
|
||||
in [
|
||||
"upload",
|
||||
"seed_control_candidate",
|
||||
"saved_comparison_history",
|
||||
"saved_text_history",
|
||||
]
|
||||
else "saved_reference",
|
||||
unit="未知:679未声明准确实现身份,仅源值/类型/端口线索,不认证单位"
|
||||
if nid == "679"
|
||||
else "准确接口文本条件;源值/类型不规范化,不试算或认证目标环境",
|
||||
schema_default=default,
|
||||
limits=limits,
|
||||
effect=effect + extra,
|
||||
execution_note="仅静态参考,不构造prompt,不执行上游/模型/媒体/遮罩/种子/别名/清理;转换与执行资格不变。",
|
||||
evidence=class_refs[nid],
|
||||
)
|
||||
)
|
||||
for (nid, name), (default, limits) in schemas.items():
|
||||
flow.append(
|
||||
f"节点{nid}准确schema具名接口{name}:default={default};原定义{limits}。仅接口参考,不补缺保存、不按索引认证,不执行默认。"
|
||||
)
|
||||
for edge in g["links"]:
|
||||
eid, a, ao, z, zi, kind = edge
|
||||
flow.append(
|
||||
f"物理边{eid}:{a}.{ns[a]['outputs'][ao]['name']}[{ao}] → "
|
||||
f"{z}.{ns[z]['inputs'][zi]['name']}[{zi}] 类型{kind};"
|
||||
"仅原件连线,不补别名或旁路边。"
|
||||
)
|
||||
flow += [
|
||||
(
|
||||
"独立原字节盘点66根节点63物理边,无子图/具名保存,56 mo"
|
||||
"de0/10 mode4。138位置=136标量(含完整null"
|
||||
")+两完整比较历史列表;Note681完整11字符另列。311/"
|
||||
"322/617/294/233五[]零位置,Reroute/24"
|
||||
"2Bypasser/682Label缺键独立保留,不混同outp"
|
||||
"uts/null。"
|
||||
),
|
||||
(
|
||||
"frontendVersion准确1.23.0,同树锁/Lite"
|
||||
"Graph仅静态参考;LG是workflowRendererVe"
|
||||
"rsion,0246/UE/tab都是独立保存态,宿主动态控件、"
|
||||
"seed辅助、别名与组开关恢复未知,不借别版认证。"
|
||||
),
|
||||
(
|
||||
"FAQ:已选姿态/骨架控制吗?图名写姿势控制,但303当前值是D"
|
||||
"epthAnythingPreprocessor,深度条件不等于"
|
||||
"姿态。初始latent是原图吗?675 EmptyLatentI"
|
||||
"mage经3408供313,没有原图VAEEncode/nois"
|
||||
"e_mask。两段都有ControlNet吗?只有313接656"
|
||||
",314模型是Get290直出支路。9528是最终种子吗?外线覆"
|
||||
"盖两个缓存只是物理事实,easy/前端辅助/UE调用时序未知,不"
|
||||
"执行或认证。曝光10是什么单位?679无身份,未知,不能称EV或"
|
||||
"已核亮度。拼图第二路是什么?Get230 SeedVR 修复,不"
|
||||
"是主洗图输出,字幕意图与实际别名分开。历史是当前产物吗?不是,只"
|
||||
"文本不请求。"
|
||||
),
|
||||
]
|
||||
extra = REF / "findings.json"
|
||||
if extra.exists():
|
||||
flow += json.loads(extra.read_bytes())["findings"]
|
||||
overview = (
|
||||
"这张图当前把原图送入DepthAnything深度预处理并缩放,尺寸外线覆盖空latent的宽高,"
|
||||
"再用两段采样和解码/曝光支路保存洗图。图名虽写姿势控制,当前不是已选姿态或骨架;"
|
||||
"只有第一段接ControlNet,第二段模型来自另一条Get支路。easy seed外线覆盖缓存与"
|
||||
"最终执行种子分开,679曝光无实现身份。所有Set/Get恢复次序未知,不能称模型可靠贯通"
|
||||
"或自动提示已生效;旁路超分和字幕拼图不是已验证产物,当前仅参考。"
|
||||
)
|
||||
return dict(
|
||||
source_path=PATHS[index],
|
||||
source_sha1=hashlib.sha1(raw).hexdigest(),
|
||||
source_sha256=hashlib.sha256(raw).hexdigest(),
|
||||
canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),
|
||||
notice="仅参考:准确来源/接口缺口及别名恢复限制保留,未核目标环境或真实效果,转换/执行资格不变。",
|
||||
user_overview=overview,
|
||||
versions=[
|
||||
f"{e['id']} {e['tag']} commit {e['commit']} tree {e['tree']};许可{e['license_file']}"
|
||||
for e in {e["id"]: e for e in manifest}.values()
|
||||
]
|
||||
+ [
|
||||
(
|
||||
"旧67块2732位置+74注释逐对象冻结;本批138位置+1注释,68图28"
|
||||
"70位置+75注释仅参考;local_file以docs/hel-892/z"
|
||||
"image-wash-document-evidence为基准。"
|
||||
)
|
||||
],
|
||||
counts=dict(
|
||||
saved_fields=len(fields),
|
||||
root_saved_fields=len(fields),
|
||||
internal_saved_fields=0,
|
||||
linked_saved_fields=sum(
|
||||
1
|
||||
for f in fields
|
||||
if f["input_pointer"].startswith("/")
|
||||
and next(n for n in g["nodes"] if str(n["id"]) == f["node_id"])["inputs"][
|
||||
int(f["input_pointer"].rsplit("/", 1)[1])
|
||||
].get("link")
|
||||
is not None
|
||||
),
|
||||
frontend_only=sum(f["role"] == "frontend_reference_only" for f in fields),
|
||||
source_nodes=66,
|
||||
root_nodes=66,
|
||||
internal_nodes=0,
|
||||
physical_edges=63,
|
||||
source_notes=1,
|
||||
history_objects=2,
|
||||
final_scalars=0,
|
||||
final_prompt_constructed=False,
|
||||
),
|
||||
fields=fields,
|
||||
sources=sources,
|
||||
comments=comments,
|
||||
flow=flow,
|
||||
flow_evidence=list(range(len(sources))),
|
||||
zero_saved_nodes=empty,
|
||||
boundaries=[],
|
||||
steps=[
|
||||
overview,
|
||||
"阅读1:核138保存位置、Note681、完整系统提示/两历史及准确来源;618的null与辅助候选独立保留,禁止请求历史URL或媒体。",
|
||||
(
|
||||
"阅读2:沿143→303深度→321,image给656,wid"
|
||||
"th/height给675→313;313控制模型与314直接G"
|
||||
"et模型分别核,618外线覆盖noise_seed缓存但时序未知"
|
||||
"。"
|
||||
),
|
||||
(
|
||||
"阅读3:313→319→314→294解码→679未知曝光→29"
|
||||
"5/330A/Set297;比较B和LLM图像均需Get恢复,2"
|
||||
"31第二路是SeedVR 修复而非主洗图输出,不保证曝光或超分效"
|
||||
"果。"
|
||||
),
|
||||
(
|
||||
"阅读4:widgets_values=[]只表示零保存位置,Pr"
|
||||
"eview/Save及两比较器原声明出口与准确返回差异逐节点保留"
|
||||
";停用/未检查/空时间戳不变,155定稿/可靠转换/环境核对/必"
|
||||
"要实跑未完成。"
|
||||
),
|
||||
],
|
||||
)
|
||||
@@ -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/zimage-wash-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()
|
||||
@@ -0,0 +1,64 @@
|
||||
"""Select missing necessary exact text from the already pinned Git trees only."""
|
||||
|
||||
import datetime
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
REF = Path(__file__).resolve().parent.parent / "zimage-wash-reference"
|
||||
|
||||
|
||||
def main():
|
||||
rows = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
for key, files in {
|
||||
"aux": [
|
||||
"LICENSE.txt",
|
||||
"utils.py",
|
||||
"src/custom_controlnet_aux/depth_anything/__init__.py",
|
||||
"src/custom_controlnet_aux/util.py",
|
||||
"src/custom_controlnet_aux/depth_anything/transformers.py",
|
||||
],
|
||||
"easy": [
|
||||
"py/config.py",
|
||||
"web_version/v1/js/easy/easyWidgets.js",
|
||||
"web_version/v2/easyuse.js",
|
||||
],
|
||||
}.items():
|
||||
origin = next(e for e in rows if e["id"] == key)
|
||||
cache = ROOT / ".local-evidence" / ("zimage-wash-" + key + "-git")
|
||||
entries = json.loads((REF / (key + "-tree.json")).read_bytes())["tree"]
|
||||
for file in files:
|
||||
if any(e["id"] == key and e["file"] == file for e in rows):
|
||||
continue
|
||||
ent = next(e for e in entries if e["path"] == file)
|
||||
data = subprocess.check_output(
|
||||
["git", "-C", str(cache), "show", origin["commit"] + ":" + file]
|
||||
)
|
||||
name = key + "__" + file.replace("/", "__")
|
||||
(REF / name).write_bytes(data)
|
||||
rows.append(
|
||||
dict(
|
||||
origin,
|
||||
file=file,
|
||||
local_file=name,
|
||||
sha256=hashlib.sha256(data).hexdigest(),
|
||||
git_blob_sha1=ent["sha"],
|
||||
url=f"https://raw.githubusercontent.com/{origin['repo']}/{origin['commit']}/{file}",
|
||||
acquisition_time=datetime.datetime.now(datetime.timezone.utc).isoformat(),
|
||||
)
|
||||
)
|
||||
for e in rows:
|
||||
if e["id"] == "aux":
|
||||
e["license_file"] = "aux__LICENSE.txt"
|
||||
elif not e["license_file"].startswith("未知") and not (REF / e["license_file"]).exists():
|
||||
e["license_file"] = "未知:准确树必要文本缺许可,不推定授权"
|
||||
(REF / "sources.json").write_text(
|
||||
json.dumps(dict(sources=rows), ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
print("PASS necessary text only", len(rows), "sources; no archive or assets")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,37 @@
|
||||
第87批仅为 `8_Z-image+Controlnet_姿势控制-洗图.json` 增加实际doc_json / GET / 既有Drawer中文参考说明。继续原PR25/main、分支agent/agent/a64a969a6a44,真实基线702c6be64fe6d656a69c68451ee476370216a485。没有推进下一图,不合并部署。
|
||||
|
||||
独立原字节SHA256 `babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf`;66根节点63物理边、无子图/具名保存,56 mode0/10 mode4。138保存位置=136标量(含完整null)+两完整历史列表;Note681完整11字符另列。311/322/617/294/233五[]零位置,十个Reroute及Bypasser/Label缺键单列,不混同outputs/null。旧67块2732位置+74注释逐对象冻结;现68图2870位置+75注释仅参考,尚87张目标图没有此类参考块。155最终定稿0/实跑0/本批新增转换0,全量未完成。
|
||||
|
||||
关键内容已进入用途概要、逐项、步骤、FAQ及实际GET:
|
||||
|
||||
- 303当前保存DepthAnythingPreprocessor/1024,图名虽写姿势控制,当前是深度选择,不称已选姿态/骨架。143原IMAGE→303→321,另给加载图像Set;原MASK未接。AIO准确12f356动态注册/参数构造与必要DepthAnything实现已固定;本版使用HuggingFace transformers depth-estimation pipeline,不借旧DINOv2实现。不运行预处理器、SDK、模型或媒体。
|
||||
- 321准确Layer90f4的total_pixel(kilo pixel)/2048按千像素分支说明,不写成方图或长边、不试算尺寸。image给656,width槽3/height槽4外线覆盖675两个512缓存;675空latent才是313起点,没有原图VAEEncode/noise_mask。
|
||||
- 只有313接656 ControlNet模型,314.model来自Get290经397/628直出支路,两段模型条件不混同。两组add_noise/start/end/leftover与seed缓存完整保留;618准确Easy Seed后端仅seed输入、[9528,fixed,null]三个位置分开,不认证null按钮、最终种子或调用时序。五个实际外线覆盖位置分别为675宽高、两noise_seed缓存、300空串提示缓存。
|
||||
- 679 Exposure没有提供方/版本,本批未选择实现假设;JSON int10不解释为EV/已核亮度、默认/范围/算法/执行语义未知。解码→曝光→保存/330A/洗图Set,330B是加载图像Get;别名恢复未知,不认证模型贯通或自动提示已生效。
|
||||
- LLMa69与Showf283按本图重核,instruct的images模式/Detailed/完整系统要求与362字Show历史分开;图像输入来自Get358,链为669→357→359清理→Set260,再仅Get289物理覆盖300空串,不当当前产物。
|
||||
- 十mode4不模拟穿透。SeedVR2两身份独立,629保存fp8_e4m3fn模型而非上图fp16,flash_attn/cache_model及attention枚举差异保留。两rgthree完整历史只文本,不请求媒体或复用鉴权。ImageReel准确Layer89014d的第二路是Get230“SeedVR 修复”,不是主洗图输出,字幕“洗图”只是作者文字;字体/目录/许可未知,不下载字体,不称生成两张图。
|
||||
- 五个Save/Preview逐节点核准确core返回:295 0.3.75、234 0.3.67空RETURN_TYPES;322 0.3.76、617 0.5.1、233 0.3.59各自继承同版SaveImage空数据返回、仅ui.images。原图五者均声明STRING image_urls出口,保存[]不等于outputs=[],接口差异保留、不修图、不认证恢复、执行仍关闭。两比较器的源STRING出口与准确ui/无result同样分列。
|
||||
|
||||
文件用途:
|
||||
|
||||
- `calliope-backend/src/calliope/comfyui/source_reviews.json`:仅目标图新增固定参考块,其余155审校对象保持。
|
||||
- `calliope-backend/src/calliope/comfyui/fixed_document.py`:新增目标路径/代码拥有定义摘要白名单,调用方重算不能扩信任。
|
||||
- `calliope-backend/tests/test_zimage_wash_fixed_document.py`:逐138位置、原字节/全图/身份/文案伪造拒绝、138含null/历史、深度/两模型/seed覆盖/五输出接口静态回归。
|
||||
- `docs/hel-892/zimage-wash-reference/`:本图准确core0.3.52/AIO/Easy/Reel必要原文、Git身份/清单/许可和findings;sources.json复用其它准确core、LLM/Show/Layer/SeedVR2/两rgthree/frontend/LiteGraph原件并逐图绑定,采集时间保留。source-closure.json为175文件闭包,每项列用途/SHA。
|
||||
- `docs/hel-892/zimage-wash-document-evidence/`:独立盘点、构建/渲染、来源核准、真实旧库保护、打包/浏览验证与日志。definition-0.json是实际参考块,actual-8_Z-image+Controlnet_姿势控制-洗图.json是隔离库实际doc;完整中文另见 `docs/hel-892/ZImageControlNet深度洗图固定参考中文说明.md`。
|
||||
- `e2e/zimage-wash-document.mjs`、`e2e/run-zimage-wash-document.py`:两屏本地GET与共享回归、finally回收自有服务;没有修改Drawer整文件/CSS/依赖。
|
||||
|
||||
本轮实际验证,不累加旧轮次:
|
||||
|
||||
- 466后台测试通过(453本图专项+13工作流库),仅已有Starlette弃用警告。首轮465通过/1失败及Ruff长行日志保留,修复后结果不与首轮相加;未机械重跑未改全套或历史5项旧失败,不称全仓绿。
|
||||
- 真实702c6be旧代码隔离库恰1更新154跳过,其余154整行不动;幂等155、精确回退1/再升级、升级前后用户修改各1冲突/29列整行保护通过。155/排除1、16/139、1217/3660/294、停用/未检查/空定稿实跑时间戳保持。
|
||||
- 双次定义/渲染一致;离线wheel/sdist的fixed_document.py/source_reviews.json/library.py三资源原字节一致;14份自写Python显式后台项目配置Ruff check/format、JS语法、前端build通过。已有大chunk提示保留。
|
||||
- 4230最终浏览检查通过:本图2606、旧67块1608、汇总2、共享14。两屏逐138位置/完整Note/系统与历史/来源、关键链、默认折叠、旧摘要状态、错绑定/旧空回退、迟到/失败重试、焦点及无横溢通过;7张代表截图已实际目验(两屏默认、AIO选择、第一段采样结束、null保存位置、曝光未知、Reel字体)。所有截图仅附件。
|
||||
- 浏览固定217/轮询26/六详情夹具,后台固定212(217−6+就绪1)/轮询26逐路径一致,字体拦截1、禁止请求0;finally停服务后独立确认8247/5173拒绝连接。
|
||||
- 163原件/191冻结资源、28profile/九候选hash/六差分、执行资格、Drawer整文件/CSS/依赖保持,无新pyc入仓。
|
||||
|
||||
复现入口validation-commands.txt;先前端build再浏览,不与vite并发写生成目录。附件根changed-files.json逐文件列用途/SHA,自身不递归;含全部本批仓库改动、完整补丁、目标原图、准确来源闭包、实际中文/doc、最终head/定义摘要和截图。根清单与final-head归附件,不混作仓库文件。
|
||||
|
||||
来源边界:本图只通过filtered Git读取必要源码/许可,复用准确必要文本,不获取完整归档,不下载权重/媒体/字体/运行库,不导入执行上游。Easy的WEB_DIRECTORY依配置选v1/v2、v1辅助和v2入口只作有限原文参考,未认证null按钮或目标组合恢复。上批SeedVR2首次全包夹带媒体/两pt及删除事实原样保留,仅保留8必要文本、中央目录与历史采集SHA/成员CRC,Git绑定未知,本图未重下包或模型。
|
||||
|
||||
完成交总管HEL-893一次功能+界面审核后再推进下一图。当前无需材料或机器窗口。未连接目标、停TTS、启ComfyUI、构造prompt、执行上游/插件/SDK/预处理器/模型/GPU/媒体/种子/别名/旁路/表达式/清理/显存、增加依赖付费、写在线库、合并或部署。155最终定稿、可靠转换、环境核对及必要实跑仍未完成。
|
||||
@@ -0,0 +1,11 @@
|
||||
第87批开发失败与最终验证分开记录,不累加通过数。
|
||||
|
||||
首轮本图专项/工作流库回归为465通过、1失败:233的中文说明虽已区分源STRING口和准确空返回,但未显式写“接口差异”,专项检查要求明确表述。已只补齐该说明并重建全部派生实际内容和代码拥有摘要,最终466通过。完整首轮日志pytest-development-failure.txt保留;最终见pytest-log.txt。
|
||||
|
||||
初轮Ruff发现自写生成脚本长行,原输出ruff-initial.txt保留;按项目配置拆分字符串,保留编译后的原文。后续一处显示宽度长行已用字符串拼接保持原义,最终check/format通过。没有跳过或撤回测试。
|
||||
|
||||
源获取先按必要路径查找,准确AIO树显示许可证是LICENSE.txt,detector在src/custom_controlnet_aux而非src/controlnet_aux;Reel两类在同一py/image_reel.py,Easy Seed在py/nodes/seed.py。原absent清单记录首次查找的缺路径,后续通过完整准确树定位并只读补充必要文本,source-additional.txt保留。不将路径试探失败解释成类不存在,不导入执行注册或下载模型。
|
||||
|
||||
本图仅filtered Git获取必要源码/许可,未下载归档、权重、媒体、字体或运行库。SeedVR2旧全包越界及删除事实从上批准确采集记录保留,不能改写成从未下载。本批只复用已保留8必要文本/中央目录/采集摘要,包到Git未知。
|
||||
|
||||
未重跑上批410/3894或全后台历史5项旧失败,不把旧结果与本轮相加,不称全仓全绿。
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"143": "LoadImage准确core0.3.52,保存微信图片_20260425191936_248_41.jpg/image;IMAGE2428供303 AIO,IMAGE2442到Set332加载图像,MASK出口links=[]未接。按准确实现核RGB/alpha反转/无alpha占位与目录条件,不读取或解码图片、不以文件名推内容或素材存在。",
|
||||
"303": "AIO_Preprocessor准确12f35647f0d510e03b45a47fb420fe1245a575df;当前保存DepthAnythingPreprocessor/1024,图名虽写姿势控制,当前选择为深度预处理,不是已选姿态/骨架。143 IMAGE2428输入,IMAGE2429给321缩放。准确注册/动态枚举与选择实现仅静态核,不调用预处理器、不下载模型或媒体,不认证ControlNet兼容与效果。",
|
||||
"321": "Layer ImageScaleByAspectRatioV2准确90f4bfb38aaf121292f429b20eff07c6c121697e,接303预处理输出2429,不是直接原图。保存original/1/1/crop/lanczos/字符串16/total_pixel(kilo pixel)/2048/#000000;准确源码分支拼写是total_pixel(kilo pixel),本版先按比例与千像素乘1000求目标尺寸、int取整再按字符串16向上对齐,RGB中心crop后lanczos resize。2048不是方图或长边,不试算实际尺寸/精度。image2425到322预览、3269到656普通image;width槽3/height槽4经3406/3407覆盖675的512/512缓存。mask输入未接、mask/原尺寸出口未用于下游;不继承别版Layer或补mask。",
|
||||
"675": "EmptyLatentImage准确core0.18.5,保存width512/height512/batch_size1;width3406与height3407分别由321槽3/4外线覆盖,两个512只是缓存。LATENT3408才是313初始采样起点。没有原图VAEEncode或显式noise_mask,不把图名洗图当原图latent/局部重绘。按准确实现的通道/下采样条件只静态说明,不分配latent或计算尺寸。",
|
||||
"656": "ZImageFunControlnet准确core0.18.5,model3266来自Get290经397,model_patch3405来自Get674,vae3268来自Get306;普通image3269接321深度缩放图,而inpaint_image/mask均null未接。strength保存float0.9;MODEL3270只供313。准确继承/patch类型及前三通道/控制条件仅静态核,别名恢复未知,不称ControlNet已可靠贯通,也不能称314同样受ControlNet控制。",
|
||||
"313": "第一段KSamplerAdvanced准确core0.3.76,接656控制模型3270;正向300经316/317/2411、负向311 ZeroOut经2403,初始latent来自675/3408。保存enable/61188257356564/randomize/12/JSON int1/euler/simple/0/4/enable;noise_seed缓存实际有外线3097来自618,不能当最终已执行种子,randomize仍是辅助保存候选。准确add_noise enable意味着disable_noise=False条件,起止0/4、return_with_leftover_noise enable对应force_full_denoise=False条件,LATENT2414经319/2687到314;不运行噪声/种子/采样/调度,不承诺完整12步或无缝接力。",
|
||||
"314": "第二段KSamplerAdvanced准确core0.3.76,model3130来自Get290经397/628,直接模型支路,不来自656 ControlNet;正向300经316/317/318/2413、负向311经315/2408。latent2687来自313经319,输出2591供294解码。保存disable/344960296298952/randomize/12/JSON int1/euler/simple/4/10000/disable;seed缓存有3112经626来自618外线覆盖。准确add_noise disable对应disable_noise=True,leftover disable对应force_full_denoise=True条件;end10000不等于10000步或完整12步,不保证两段同一模型条件、连续质量或实际随机状态。",
|
||||
"618": "easy seed准确00c69fc8163478edfd25b12e758b561d66107054保存[9528,fixed,null]三个位置,null原样保留,不能丢弃、补默认或按端口序认证按钮。seed出口3097到313.noise_seed,3110→626→3112到314.noise_seed,覆盖两个采样缓存;fixed与两处randomize分别保存,不认定9528是最终已执行种子。准确后端/前端辅助/调用时序及UE组合恢复分层,不执行随机、按钮或种子逻辑。",
|
||||
"294": "VAEDecode准确core0.3.48,314 LATENT2591与Get293 VAE2368汇合,保存[]为零位置;IMAGE3410供679 Exposure,另2455给342清理。准确vae.decode(samples['samples'])只作静态条件,不解码媒体,不把清理支路当最终图。",
|
||||
"679": "LayerColor: Exposure没有cnr_id/ver,不从321或231传播Layer版本。本批未选择实现假设,保存JSON int10,源exposure INT口仅线索;默认/范围/单位/算法/执行语义未知,不能把10当已核亮度或EV,不能保证改善暗图。接294解码IMAGE3410,输出3415到295正式保存、3416到330比较A、3414到Set297洗图输出;不运行曝光或修值。",
|
||||
"295": "SaveImage准确core0.3.75,接679曝光后图3415,前缀z_image 洗图。源声明STRING image_urls出口,准确RETURN_TYPES=()且save_images仅ui.images,保留接口差异;不把保存位置当出口。实际目录/文件/history未知,不保存媒体、不修图或认证目标恢复。",
|
||||
"330": "活动Image Comparer准确rgthree b6e0e4b33ebcd337b3c27e46f2106792c44a032e,A物理接679曝光后图3416,B接Get333加载图像2443。Get只别名线索,不能认证原图实际恢复或曝光效果。完整两项历史列表为1保存位置,只纯文本不请求/view;Slide为属性。源声明STRING image_urls出口与准确compare_images仅ui.a_images/b_images、无result的差异保留,不制造图像产物。",
|
||||
"210": "UNETLoader准确core0.3.75,保存Z-Image反斜杠z_image_turbo_bf16.safetensors/default,MODEL3420只给Set78模型输出。default不证明设备/dtype或安装;Set/Get无身份,不认证加载贯通,不下载权重。",
|
||||
"672": "ModelPatchLoader准确core0.3.76,保存Z-Image-Turbo-Fun-Controlnet-Union-2.1-2602-8steps.safetensors,输出3404给Set673 patch。model_patches动态枚举不证明安装/兼容/许可;8steps文件名不是步数或性能证明,不加载模型。",
|
||||
"5": "VAELoader准确core0.3.48保存ae.safetensors,输出2357给Set278 VAE;Get306/293分别物理供控制和解码只是别名配对线索,不认证恢复次序或模型兼容,不加载/下载VAE。",
|
||||
"3": "CLIPLoader准确core0.3.48保存qwen_3_4b.safetensors/lumina2/default,CLIP144给Set76 CLIP;Get291经2376供300。模型目录/枚举/设备/兼容仅准确schema条件,不认证目标安装或别名贯通。",
|
||||
"300": "CLIPTextEncode准确core0.3.48,Get291 CLIP2376与Get289反推提示词STRING3265输入;保存text空串为缓存,存在外线覆盖但别名恢复未知,不能保证自动提示已生效。正向经316/317/318供两采样,另2391→310→311置零生成负向。保留物理支路,不编码或构造提示。",
|
||||
"311": "ConditioningZeroOut准确core0.3.76,接300经310/2392条件,输出2403供313负向,2407→315→2408供314负向。保存[]零位置,准确条件/pooled_output置零仅静态解释,不当作者写了另一段负向文本,不执行。",
|
||||
"670": "llama_cpp_model_loader准确a69be4883f98c4025915f0390a3e87aae9ea3477,cnr原拼llama-cpp_vllm。七保存值Qwen3.5-9b-heretic-v2-q8_0.gguf/Qwen3.5-9b-mmproj-BF16.gguf/Qwen3.5/8192/-1/0/0保留,准确schema/loadmodel没有load_mtp,不借后版填参。LLAMACPPMODEL3321供669;准确原件可得,模型/SDK/设备/目录与许可未知,不加载/卸载模型。",
|
||||
"669": "llama_cpp_instruct_adv同准确a69提交,本图preset Prompt Style - Detailed、custom_prompt空串、完整600字内中文system_prompt均保留,images模式不同于上一图one by one。images3320来自Get358加载图像,别名恢复未知;parameters与queue_handler均null未接。24/256/seed1045075827150323/randomize/false/false保存,seed辅助与后端参数分层,output_list/state_uid未接;STRING3319到357。仅准确源码条件,不执行LLM/SDK/随机/状态或保证提示内容。",
|
||||
"357": "ShowText|pysssss准确f2838ed5e59de4d73cde5c98354b87a8d3200190,接669输出3319,完整362字符女子卧室历史展示文本保留,不是本次图片内容或新生成。输出2479到359清理,再2478到Set260反推提示词;本图不是Show直接Set的上一图路径。准确INPUT_IS_LIST/OUTPUT_IS_LIST、ui/result与workflow写回条件只静态核,不展示历史为实际产物。",
|
||||
"359": "Layer PurgeVRAM V2准确90f4bfb38aaf121292f429b20eff07c6c121697e,接Show357/2479,保存purge_cache true/purge_models true,输出2478到Set260。准确方法无条件clear_memory,purge_cache未读取;purge_models条件为真才unload_all_models/soft_empty_cache,透传anything。不执行清理、gc、显存或缓存操作,不由此认证提示恢复。",
|
||||
"342": "Layer PurgeVRAM V2准确90f4,接294解码图2455,保存两个true;输出未用于主保存链。准确无条件clear_memory及purge_models条件卸载仅静态参考,purge_cache虽保存但方法未读;不执行清理/显存/缓存。",
|
||||
"368": "旁路mode4 ImageScaleToTotalPixels准确core0.3.76,接Get598洗图输出3131,保存lanczos/float0.3/int1,IMAGE2492到239超分、3096到617预览。按准确schema/方法缺省核像素与步进条件,不试算分辨率、不模拟旁路穿透。",
|
||||
"239": "旁路mode4 SeedVR2VideoUpscaler准确2a873e2f286224bb00c60fe3fb61b88b65258a6d,image2492来自368,dit3133来自629,vae2076来自236。13位置保存9527/fixed/2560/4096/1/false/lab/0/0/0/0/cpu/true;seed辅助候选单列,不执行种子/超分/模型下载。输出2070到234、2449到Set241 SeedVR 修复、3093到615 A;不模拟mode4或认证输出存在。",
|
||||
"236": "旁路mode4 SeedVR2LoadVAEModel准确2a873提交,11位置完整保留ema_vae_fp16.safetensors/cuda:0/true/1024/128/true/1024/128/字符串false/cpu/false。tile_debug字符串false不转布尔;准确schema尺寸1024/128与execute缺省512/64分别列出,cache/offload条件不证明设备可用。torch_compile_args null,输出2076给239;不执行VAE/分块/缓存。",
|
||||
"629": "旁路mode4 SeedVR2LoadDiTModel独立准确2.5.22发布包,模型现值seedvr2_ema_3b_fp8_e4m3fn.safetensors,不套上一图fp16。七值模型/cuda:0/16/false/cpu/flash_attn/sdpa保留;源cache_model BOOLEAN与字符串flash_attn的索引候选冲突、attention_mode新版枚举与Git2a873不同,不能硬映射、删多值或统一身份。torch_compile_args null未接,输出3133给239;仅复用已固定8必要文本,不重下归档或运行attention/模型。",
|
||||
"615": "旁路mode4 Image Comparer准确rgthree8ff50e4521881eca1fe26aec9615fc9362474931,与330版本独立。A物理来自239超分3093,B来自Get598经616/3095的洗图输出;别名和旁路未知,不认证比较有效。完整历史两项列表为1保存位置,旧鉴权仅原件文本,不认证/复用/请求或复制主卡;源STRING出口与准确UI/无result差异保留。",
|
||||
"234": "旁路mode4 SaveImage准确core0.3.67,接239输出2070,前缀SeedVR2 修复;源声明STRING image_urls出口与准确空RETURN_TYPES/ui.images的接口差异独立保留,不当已生成超分,不模拟旁路穿透或保存媒体。",
|
||||
"322": "活动PreviewImage准确core0.3.76,接321缩放图2425,widgets_values=[]零保存位置。源声明STRING image_urls出口;准确PreviewImage继承SaveImage RETURN_TYPES=()、save_images仅ui.images,存在接口差异,不能把保存[]说成outputs=[]。出口未接、不修图、不认证恢复,执行关闭,不请求预览。",
|
||||
"617": "旁路mode4 PreviewImage准确core0.5.1,接368缩小图3096,widgets_values=[]零位置。源声明STRING image_urls出口,准确本版PreviewImage继承SaveImage空RETURN_TYPES、save_images仅ui.images,保留接口差异,不借新版IMAGE返回或上图694。出口未接、暂不消费,不修图或模拟旁路,不读取/生成预览。",
|
||||
"231": "ImageReel准确Layer89014d833d2ad0998d724090eff1456692692a1d,image1经2066来自Get229加载图像,image2经2067来自Get230 SeedVR 修复(不是主洗图输出)。保存字幕原图/洗图/空串/空串与reel_height2048/border32;字幕意图与实际别名来源分列,image3/4未接。Reel2068给232,准确协议/尺寸/边框条件仅静态,不认证旁路超分恢复或生成两张图。",
|
||||
"232": "ImageReelComposit准确Layer89014d,reel_1接231/2068,reel_2/3/4未接;保存Alibaba-PuHuiTi-Heavy.ttf/30/8/light。按准确Reel拼接/注字/颜色与动态字体枚举条件阅读,字体文件名不证明存在或许可,不下载字体。IMAGE2069到233临时预览,不执行拼图、字体加载或认证两张真实产物。",
|
||||
"233": "PreviewImage准确core0.3.59,接232 Reel合成图2069,widgets_values=[]零位置。源声明STRING image_urls出口,与准确PreviewImage继承SaveImage空RETURN_TYPES、save_images仅ui.images的接口差异分层;不是outputs=[],出口未接、不修图、不认证恢复,执行关闭,不请求或保存预览媒体。",
|
||||
"242": "Fast Groups Bypasser (rgthree)缺widgets_values键且没有cnr/ver;组标题/开关等仅保存属性,不继承330/615版本,不模拟旁路穿透或组执行次序;缺键不当[]/null。",
|
||||
"682": "Label (rgthree)缺widgets_values键且无提供方/版本;字体/文本等仅属性,不继承比较器版本或认证字体存在,不下载字体,不把缺键当[]/null。"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
14 files already formatted
|
||||
@@ -0,0 +1,267 @@
|
||||
|
||||
> calliope-web@1.5.8 build
|
||||
> vite build
|
||||
|
||||
vite v6.4.3 building SSR bundle for production...
|
||||
transforming...
|
||||
3:46:40 PM [vite-plugin-svelte] src/routes/workbench/[id]/+page.svelte:345:3 Self-closing HTML tags for non-void elements are ambiguous — use `<div ...></div>` rather than `<div ... />`
|
||||
https://svelte.dev/e/element_invalid_self_closing_tag
|
||||
343: <div class="page-pad">
|
||||
344: <Skeleton height="64px" />
|
||||
345: <div class="gap" />
|
||||
^
|
||||
346: <Skeleton height="280px" />
|
||||
347: </div>
|
||||
3:46:41 PM [vite-plugin-svelte] src/lib/components/workbench/ShotStagePanel.svelte:156:5 `<video>` elements must have a `<track kind="captions">`
|
||||
https://svelte.dev/e/a11y_media_has_caption
|
||||
154: {#if shot.description}<p class="vshot-desc">{shot.description}</p>{/if}
|
||||
155: {#if shot.job?.status === 'done' && shot.job.output}
|
||||
156: <video
|
||||
^
|
||||
157: class="vshot-video"
|
||||
158: src={assetUrl(shot.job.output) ?? undefined}
|
||||
"handleConnectionChange" and "handleAttributionWarning" are imported from external module "@xyflow/system" but never used in "node_modules/@xyflow/svelte/dist/lib/hooks/useNodeConnections.svelte.js", "node_modules/@xyflow/svelte/dist/lib/components/Handle/Handle.svelte" and "node_modules/@xyflow/svelte/dist/lib/components/Attribution/Attribution.svelte".
|
||||
✓ 521 modules transformed.
|
||||
rendering chunks...
|
||||
vite v6.4.3 building for production...
|
||||
transforming...
|
||||
3:46:43 PM [vite-plugin-svelte] src/routes/workbench/[id]/+page.svelte:345:3 Self-closing HTML tags for non-void elements are ambiguous — use `<div ...></div>` rather than `<div ... />`
|
||||
https://svelte.dev/e/element_invalid_self_closing_tag
|
||||
343: <div class="page-pad">
|
||||
344: <Skeleton height="64px" />
|
||||
345: <div class="gap" />
|
||||
^
|
||||
346: <Skeleton height="280px" />
|
||||
347: </div>
|
||||
3:46:43 PM [vite-plugin-svelte] src/lib/components/workbench/ShotStagePanel.svelte:156:5 `<video>` elements must have a `<track kind="captions">`
|
||||
https://svelte.dev/e/a11y_media_has_caption
|
||||
154: {#if shot.description}<p class="vshot-desc">{shot.description}</p>{/if}
|
||||
155: {#if shot.job?.status === 'done' && shot.job.output}
|
||||
156: <video
|
||||
^
|
||||
157: class="vshot-video"
|
||||
158: src={assetUrl(shot.job.output) ?? undefined}
|
||||
✓ 763 modules transformed.
|
||||
rendering chunks...
|
||||
computing gzip size...
|
||||
.svelte-kit/output/client/_app/version.json 0.03 kB │ gzip: 0.05 kB
|
||||
.svelte-kit/output/client/.vite/manifest.json 26.73 kB │ gzip: 3.24 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/Icon.BrXLPzfy.css 0.08 kB │ gzip: 0.10 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/12.IyyrLGyK.css 0.22 kB │ gzip: 0.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/6.C62bpzl4.css 0.22 kB │ gzip: 0.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/LanguageSwitcher.BHCsXcey.css 0.33 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/Skeleton.BQeWIsLh.css 0.39 kB │ gzip: 0.22 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/SafeMedia.CBqd7Keo.css 0.54 kB │ gzip: 0.34 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/EmptyState.BXjpyO2u.css 0.58 kB │ gzip: 0.31 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/Spinner.us8fwMZC.css 0.73 kB │ gzip: 0.37 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ConfirmDialog.DOfiQL0c.css 0.91 kB │ gzip: 0.38 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ProgressBar.DG8dH-U_.css 1.44 kB │ gzip: 0.58 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/18.DG2SembM.css 1.87 kB │ gzip: 0.70 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ImageLightbox.BK2SuPZK.css 2.20 kB │ gzip: 0.72 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/10.-McisAlK.css 4.49 kB │ gzip: 1.20 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/15.Do7_3xO3.css 4.84 kB │ gzip: 1.32 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/ComfyDynamicForm.BMZDOzpt.css 4.86 kB │ gzip: 1.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/16.D3s-Wa9z.css 5.02 kB │ gzip: 1.31 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/AgentComposer.ub9gqAax.css 6.39 kB │ gzip: 1.59 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/4.D4ArXiOU.css 10.48 kB │ gzip: 2.23 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/11.CkE-wdAx.css 10.49 kB │ gzip: 2.33 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/3.CU9FCfPU.css 10.86 kB │ gzip: 2.39 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/AgentChat.DoddhUHp.css 11.39 kB │ gzip: 2.53 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/AppShell.BDTKT42t.css 12.74 kB │ gzip: 2.91 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/5.CYAHcbnz.css 15.04 kB │ gzip: 3.15 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/0.DtQ4sRph.css 19.40 kB │ gzip: 4.66 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/StudioGenerate.DLzq3T0v.css 21.08 kB │ gzip: 4.13 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/19.DdIn3xwb.css 22.49 kB │ gzip: 3.73 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/8.F76ywLuB.css 28.78 kB │ gzip: 5.24 kB
|
||||
.svelte-kit/output/client/_app/immutable/assets/7._yLDI1qf.css 31.71 kB │ gzip: 5.43 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/5.DUJAhBNk.js 0.09 kB │ gzip: 0.10 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/Bzak7iHL.js 0.10 kB │ gzip: 0.10 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/DTQKaZHR.js 0.10 kB │ gzip: 0.11 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/IKQcdn9t.js 0.12 kB │ gzip: 0.12 kB
|
||||
.svelte-kit/output/client/_app/immutable/entry/start.HZBnazAw.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.CjXJyViY.js 0.16 kB │ gzip: 0.14 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/9.ZeZVy5MI.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/B2ne_GkI.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.I_Afp3eo.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.R6xxHbZo.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.DtzbjWZU.js 1.18 kB │ gzip: 0.70 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.DMnvH2Gd.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/Bj014Du-.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.Cg5bmwz0.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/CzAPbG76.js 6.87 kB │ gzip: 3.09 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/B0Wlifky.js 9.22 kB │ gzip: 2.13 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/16.DdGf0pNX.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.C0fXcj3R.js 11.97 kB │ gzip: 4.01 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/0.CcvzD77g.js 12.03 kB │ gzip: 4.41 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/10.DbZ5zr7E.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.DHYdXBa_.js 23.02 kB │ gzip: 7.51 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/BJJs9uUo.js 23.99 kB │ gzip: 9.32 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/11.UMybnQSh.js 24.95 kB │ gzip: 8.35 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/3.ArXs8mMf.js 25.68 kB │ gzip: 8.33 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/4.CpVQP4q-.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/RA7bCDcS.js 38.54 kB │ gzip: 13.85 kB
|
||||
.svelte-kit/output/client/_app/immutable/chunks/CPluiqx0.js 41.30 kB │ gzip: 15.68 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/19.DcvKVwt7.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/CKco5v3B.js 81.38 kB │ gzip: 27.49 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/8.BfEK3W2v.js 86.49 kB │ gzip: 28.96 kB
|
||||
.svelte-kit/output/client/_app/immutable/nodes/7.DuUXI8Jt.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.74s
|
||||
.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 7.01s
|
||||
|
||||
Run npm run preview to preview your production build locally.
|
||||
|
||||
> Using @sveltejs/adapter-static
|
||||
Wrote site to "build"
|
||||
✔ done
|
||||
@@ -0,0 +1,771 @@
|
||||
{
|
||||
"base": "702c6be64fe6d656a69c68451ee476370216a485",
|
||||
"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": "702c6be64fe6d656a69c68451ee476370216a485",
|
||||
"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": 138,
|
||||
"new_notes": 1,
|
||||
"old_saved": 2732,
|
||||
"old_notes": 74,
|
||||
"overviews": 68,
|
||||
"all_disabled": true,
|
||||
"doc_done": 0,
|
||||
"executed": 0
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,84 @@
|
||||
"Independent source-byte inventory; no layout inference or execution."
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
PATH = "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json"
|
||||
|
||||
|
||||
def inventory():
|
||||
raw = (ROOT / PATH).read_bytes()
|
||||
g = json.loads(raw)
|
||||
fields, empty, slots, notes = [], [], [], []
|
||||
for i, n in enumerate(g["nodes"]):
|
||||
p = f"/nodes/{i}"
|
||||
assert "widgets_values_named" not in n
|
||||
if n["type"] in ["Note", "MarkdownNote"]:
|
||||
notes.append(
|
||||
dict(node=n["id"], pointer=p + "/widgets_values/0", text=n["widgets_values"][0])
|
||||
)
|
||||
continue
|
||||
if not n.get("widgets_values"):
|
||||
empty.append(
|
||||
dict(
|
||||
node=n["id"],
|
||||
pointer=p,
|
||||
state="missing" if "widgets_values" not in n else "empty_list",
|
||||
)
|
||||
)
|
||||
for j, v in enumerate(n.get("widgets_values", [])):
|
||||
fields.append(
|
||||
dict(
|
||||
node=n["id"],
|
||||
pointer=f"{p}/widgets_values/{j}",
|
||||
value=v,
|
||||
json_type=type(v).__name__,
|
||||
scope="root",
|
||||
)
|
||||
)
|
||||
for side in ["inputs", "outputs"]:
|
||||
for j, slot in enumerate(n[side]):
|
||||
key = "link" if side == "inputs" else "links"
|
||||
slots.append(
|
||||
dict(
|
||||
pointer=f"{p}/{side}/{j}",
|
||||
state="missing"
|
||||
if key not in slot
|
||||
else "null"
|
||||
if slot[key] is None
|
||||
else "value",
|
||||
original=slot,
|
||||
)
|
||||
)
|
||||
assert "definitions" not in g
|
||||
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=[
|
||||
dict(
|
||||
nodes=len(g["nodes"]),
|
||||
edges=len(g["links"]),
|
||||
modes=[n["mode"] for n in g["nodes"]],
|
||||
named_nodes=0,
|
||||
)
|
||||
],
|
||||
slots=slots,
|
||||
extra=g["extra"],
|
||||
nodes=g["nodes"],
|
||||
links=g["links"],
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
result = inventory()
|
||||
(OUT / "independent-inventory.json").write_text(
|
||||
json.dumps(result, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
print("PASS independent inventory", len(result["fields"]), result["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": "679170d3e3608844981c34002d6b1bbd395dbc0ec75882d2d77374e19c24b5b5",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 68
|
||||
},
|
||||
{
|
||||
"file": "source_reviews.json",
|
||||
"sha256": "7e554a088920df82b9e729bd1065c5ccc971c22c9afb075eeff0e9bd667486f4",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 68
|
||||
},
|
||||
{
|
||||
"file": "library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 68
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json": "d91b44e3de58f8b960a799101396d9769e936aff3578490f9abebc1591bcb495"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"port": 8247,
|
||||
"connect_ex": 111,
|
||||
"connection_refused": true
|
||||
},
|
||||
{
|
||||
"port": 5173,
|
||||
"connect_ex": 111,
|
||||
"connection_refused": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,185 @@
|
||||
"""Reuse exact necessary bytes, then acquire bounded missing pinned source text only."""
|
||||
|
||||
import datetime
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "zimage-wash-reference"
|
||||
REF.mkdir(exist_ok=True)
|
||||
|
||||
SPECS = [
|
||||
("core0352", "Comfy-Org/ComfyUI", "v0.3.52", ["nodes.py", "folder_paths.py", "LICENSE"]),
|
||||
(
|
||||
"aux",
|
||||
"Fannovel16/comfyui_controlnet_aux",
|
||||
"12f35647f0d510e03b45a47fb420fe1245a575df",
|
||||
[
|
||||
"__init__.py",
|
||||
"node_wrappers/depth_anything.py",
|
||||
"src/controlnet_aux/depth_anything/__init__.py",
|
||||
"src/controlnet_aux/util.py",
|
||||
"LICENSE",
|
||||
],
|
||||
),
|
||||
(
|
||||
"easy",
|
||||
"yolain/ComfyUI-Easy-Use",
|
||||
"00c69fc8163478edfd25b12e758b561d66107054",
|
||||
["__init__.py", "py/easyNodes.py", "py/nodes/logic.py", "py/nodes/util.py", "LICENSE"],
|
||||
),
|
||||
(
|
||||
"reel",
|
||||
"chflame163/ComfyUI_LayerStyle",
|
||||
"89014d833d2ad0998d724090eff1456692692a1d",
|
||||
[
|
||||
"__init__.py",
|
||||
"py/image_reel.py",
|
||||
"py/image_reel_composit.py",
|
||||
"py/imagefunc.py",
|
||||
"LICENSE",
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
def main():
|
||||
rows = []
|
||||
selections = [
|
||||
(
|
||||
"zimage-outpaint-reference",
|
||||
{
|
||||
"core0185",
|
||||
"core0348",
|
||||
"core0375",
|
||||
"core0376",
|
||||
"core0367",
|
||||
"layer",
|
||||
"llama",
|
||||
"show",
|
||||
"seed",
|
||||
"seedpkg",
|
||||
"rgactive",
|
||||
"rgbypass",
|
||||
"frontend",
|
||||
"litegraph",
|
||||
},
|
||||
),
|
||||
("zimage-qwen-reference", {"lora"}),
|
||||
("zimage-inpaint-reference", {"encode"}),
|
||||
]
|
||||
for folder, ids in selections:
|
||||
root = REF.parent / folder
|
||||
for original in json.loads((root / "sources.json").read_bytes())["sources"]:
|
||||
if original["id"] not in ids:
|
||||
continue
|
||||
if original["id"] == "lora" and original["file"] not in ["nodes.py", "LICENSE"]:
|
||||
continue
|
||||
e = original.copy()
|
||||
e["identity_key"] = e.get("identity_key", e["id"])
|
||||
e["id"] = {"lora": "core051", "encode": "core0359"}.get(e["id"], e["id"])
|
||||
for keyname in ["local_file", "identity_root"]:
|
||||
e[keyname] = "../" + folder + "/" + e.get(keyname, ".")
|
||||
if not e["license_file"].startswith("未知"):
|
||||
e["license_file"] = "../" + folder + "/" + e["license_file"]
|
||||
e.setdefault("tag", e["commit"])
|
||||
e["applicability"] = (
|
||||
"本图独立准确声明身份;旧采集时间保留、原字节重核。包到Git未知、宿主和别名恢复未知。"
|
||||
)
|
||||
rows.append(e)
|
||||
for key, repo, tag, files in SPECS:
|
||||
cache = ROOT / ".local-evidence" / ("zimage-wash-" + key + "-git")
|
||||
cache.mkdir(parents=True, exist_ok=True)
|
||||
subprocess.run(["git", "init", "--bare", str(cache)], check=True, stdout=subprocess.DEVNULL)
|
||||
if not (cache / "FETCH_HEAD").exists():
|
||||
subprocess.run(
|
||||
[
|
||||
"git",
|
||||
"-C",
|
||||
str(cache),
|
||||
"fetch",
|
||||
"--filter=blob:none",
|
||||
"--depth=1",
|
||||
"https://github.com/" + repo + ".git",
|
||||
("refs/tags/" + tag) if tag.startswith("v") else tag,
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
|
||||
def git(*args):
|
||||
return subprocess.check_output(["git", "-C", str(cache), *args])
|
||||
|
||||
rev = git("rev-parse", "FETCH_HEAD^{commit}").decode().strip()
|
||||
tree = git("rev-parse", rev + "^{tree}").decode().strip()
|
||||
(REF / (key + "-commit.txt")).write_bytes(git("cat-file", "commit", rev))
|
||||
(REF / (key + "-tag.txt")).write_bytes(git("cat-file", "-p", "FETCH_HEAD"))
|
||||
(REF / (key + "-tag.json")).write_text(
|
||||
json.dumps(
|
||||
dict(ref=tag, commit=rev, object=git("rev-parse", "FETCH_HEAD").decode().strip()),
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
entries = []
|
||||
for line in git("ls-tree", "-r", rev).decode().splitlines():
|
||||
head, path = line.split("\t", 1)
|
||||
mode, kind, sha = head.split()
|
||||
entries.append(dict(path=path, mode=mode, type=kind, sha=sha))
|
||||
(REF / (key + "-tree.json")).write_text(
|
||||
json.dumps(dict(sha=tree, truncated=False, tree=entries), indent=2) + "\n"
|
||||
)
|
||||
missing = []
|
||||
# Discover exact source text names within accurate tree, bounded to relevant classes/files.
|
||||
if key in ["easy", "reel"]:
|
||||
files += [
|
||||
e["path"]
|
||||
for e in entries
|
||||
if e["path"].endswith(".py")
|
||||
and any(s in e["path"].lower() for s in ["seed", "reel"])
|
||||
]
|
||||
if key == "easy":
|
||||
files += [
|
||||
e["path"]
|
||||
for e in entries
|
||||
if e["path"].endswith(".js") and "seed" in e["path"].lower()
|
||||
]
|
||||
for f in dict.fromkeys(files):
|
||||
ent = next((x for x in entries if x["path"] == f), None)
|
||||
if ent is None:
|
||||
missing.append(f)
|
||||
continue
|
||||
raw = git("show", rev + ":" + f)
|
||||
name = key + "__" + f.replace("/", "__")
|
||||
(REF / name).write_bytes(raw)
|
||||
rows.append(
|
||||
dict(
|
||||
id=key,
|
||||
repo=repo,
|
||||
file=f,
|
||||
local_file=name,
|
||||
commit=rev,
|
||||
tree=tree,
|
||||
tag=tag,
|
||||
url=f"https://raw.githubusercontent.com/{repo}/{rev}/{f}",
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
git_blob_sha1=ent["sha"],
|
||||
acquisition_time=datetime.datetime.now(datetime.timezone.utc).isoformat(),
|
||||
license_file=key + "__LICENSE",
|
||||
transport="filtered git; selected text only",
|
||||
applicability="本图准确声明版本静态参考;不执行上游或认证目标环境",
|
||||
identity_root=".",
|
||||
identity_key=key,
|
||||
)
|
||||
)
|
||||
(REF / (key + "-absent.json")).write_text(json.dumps(missing, indent=2) + "\n")
|
||||
(REF / "sources.json").write_text(
|
||||
json.dumps(dict(sources=rows), ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
print("PINNED", key, rev, flush=True)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS exact Git/package text, 138 positions, 1 note, 63 physical edges
|
||||
PASS actual 702c6be64fe6d656a69c68451ee476370216a485 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 68 definitions, frozen boundaries, wheel/sdist
|
||||
@@ -0,0 +1,56 @@
|
||||
........................................................................ [ 15%]
|
||||
........................................................................ [ 30%]
|
||||
........................................................................ [ 46%]
|
||||
........................................................................ [ 61%]
|
||||
........................................................................ [ 77%]
|
||||
........................................................................ [ 92%]
|
||||
...................F.............. [100%]
|
||||
=================================== FAILURES ===================================
|
||||
______ test_exact_declared_output_and_empty_backend_return[233-core0359] _______
|
||||
|
||||
nid = 233, key = 'core0359'
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"nid,key",
|
||||
[(295, "core0375"), (234, "core0367"), (322, "core0376"), (617, "core051"), (233, "core0359")],
|
||||
)
|
||||
def test_exact_declared_output_and_empty_backend_return(nid, key):
|
||||
n = next(n for n in SOURCE["nodes"] if n["id"] == nid)
|
||||
assert n["outputs"] == [{"name": "image_urls", "type": "STRING"}]
|
||||
if n["type"] == "PreviewImage":
|
||||
assert n["widgets_values"] == []
|
||||
e = next(e for e in BLOCK["sources"] if e["id"] == key and e["file"] == "nodes.py")
|
||||
tree = ast.parse((OUT / e["local_file"]).read_bytes())
|
||||
save = next(c for c in tree.body if isinstance(c, ast.ClassDef) and c.name == "SaveImage")
|
||||
ret = next(
|
||||
c.value
|
||||
for c in save.body
|
||||
if isinstance(c, ast.Assign)
|
||||
and any(isinstance(t, ast.Name) and t.id == "RETURN_TYPES" for t in c.targets)
|
||||
)
|
||||
assert isinstance(ret, ast.Tuple) and ret.elts == []
|
||||
if n["type"] == "PreviewImage":
|
||||
c = next(c for c in tree.body if isinstance(c, ast.ClassDef) and c.name == "PreviewImage")
|
||||
assert [ast.unparse(b) for b in c.bases] == ["SaveImage"]
|
||||
effect = next(
|
||||
z["effect"]
|
||||
for z in doc()["fixed_version"]["zero_saved_nodes"]
|
||||
if z["node_id"] == str(nid)
|
||||
)
|
||||
else:
|
||||
effect = next(
|
||||
f["effect"] for f in doc()["fixed_version"]["fields"] if f["node_id"] == str(nid)
|
||||
)
|
||||
> assert "源声明STRING" in effect and "接口差异" in effect
|
||||
E AssertionError: assert ('源声明STRING' in 'PreviewImage准确core0.3.59,接232 Reel合成图2069,widgets_values=[]零位置。源声明STRING image_urls出口,与准确PreviewImage继承SaveImage空RETURN_TYPES、save_images仅ui.images分层;不是outputs=[],出口未接、不修图、不认证恢复,执行关闭,不请求或保存预览媒体。 原始mode=0;活动保存态不等于可靠可执行。' and '接口差异' in 'PreviewImage准确core0.3.59,接232 Reel合成图2069,widgets_values=[]零位置。源声明STRING image_urls出口,与准确PreviewImage继承SaveImage空RETURN_TYPES、save_images仅ui.images分层;不是outputs=[],出口未接、不修图、不认证恢复,执行关闭,不请求或保存预览媒体。 原始mode=0;活动保存态不等于可靠可执行。')
|
||||
|
||||
calliope-backend/tests/test_zimage_wash_fixed_document.py:206: AssertionError
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-8d94b12fc336/workdir/aigc-home/calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
=========================== short test summary info ============================
|
||||
FAILED calliope-backend/tests/test_zimage_wash_fixed_document.py::test_exact_declared_output_and_empty_backend_return[233-core0359]
|
||||
1 failed, 465 passed, 1 warning in 7.58s
|
||||
@@ -0,0 +1,14 @@
|
||||
........................................................................ [ 15%]
|
||||
........................................................................ [ 30%]
|
||||
........................................................................ [ 46%]
|
||||
........................................................................ [ 61%]
|
||||
........................................................................ [ 77%]
|
||||
........................................................................ [ 92%]
|
||||
.................................. [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-8d94b12fc336/workdir/aigc-home/calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
466 passed, 1 warning in 7.50s
|
||||
@@ -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 = "702c6be64fe6d656a69c68451ee476370216a485"
|
||||
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 67 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) == 67
|
||||
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()) == 2732
|
||||
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": 67,
|
||||
"old_saved": 2732,
|
||||
"old_notes": 74,
|
||||
"new_saved": 138,
|
||||
"new_notes": 1,
|
||||
"total_documents": 68,
|
||||
"total_saved": 2870,
|
||||
"total_notes": 75,
|
||||
},
|
||||
)
|
||||
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": 138,
|
||||
"new_notes": 1,
|
||||
"old_saved": 2732,
|
||||
"old_notes": 74,
|
||||
"overviews": 68,
|
||||
"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": 67,
|
||||
"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": 68,
|
||||
}
|
||||
)
|
||||
write("package-check.json", packages)
|
||||
print(
|
||||
f"PASS actual {BASE} upgrade1/skip154, repe"
|
||||
"at155, rollback1, edits1"
|
||||
"/29cols, fresh155,"
|
||||
" 1217/3660/294, 68 defin"
|
||||
"itions, frozen bou"
|
||||
"ndaries, wheel/sdist"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,135 @@
|
||||
"Offline batch evidence tooling; no upstream execution."
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def main():
|
||||
lines = [
|
||||
"# ZImageControlNet深度洗图固定参考中文说明",
|
||||
"",
|
||||
(
|
||||
"新增138保存位置/1注释;旧67块2732位置+74源注释不变,68图"
|
||||
"2870+75仅参考;155定稿0/实跑0/新增转换0。"
|
||||
),
|
||||
"",
|
||||
(
|
||||
("来源local_file以docs/hel-892/zimage-wash-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 / "ZImageControlNet深度洗图固定参考中文说明.md").write_text(
|
||||
"\n".join(lines).rstrip() + "\n"
|
||||
)
|
||||
(OUT / "fixed-source-index.json").write_text(
|
||||
json.dumps(index, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1 @@
|
||||
PASS deterministic definitions and rendered artifacts: zero difference
|
||||
@@ -0,0 +1,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 / "ZImageControlNet深度洗图固定参考中文说明.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": 68,
|
||||
"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": 68,
|
||||
"repeated_build_equal": true,
|
||||
"repeated_render_equal": true,
|
||||
"resource_sha256": "77d8f362f2504b3c5f3c4810c8b421711432724474ed1951577d0d3dc467800a",
|
||||
"artifacts": {
|
||||
"fixed-source-index.json": "90c02f4d4390d0c5edf5579a11c65cb3e3c75af95d08de0c87a3c19868f5308c",
|
||||
"ZImageControlNet深度洗图固定参考中文说明.md": "bf52ba3ceb1a48fa472dcced04b54fbd350328d07fc806fc76a905fbb157859c"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"base": "702c6be64fe6d656a69c68451ee476370216a485",
|
||||
"changed_paths": [
|
||||
"example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json"
|
||||
],
|
||||
"other_reviews_unchanged": 155,
|
||||
"old_blocks_unchanged": 67,
|
||||
"old_saved": 2732,
|
||||
"old_notes": 74,
|
||||
"new_saved": 138,
|
||||
"new_notes": 1,
|
||||
"total_documents": 68,
|
||||
"total_saved": 2870,
|
||||
"total_notes": 75
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
All checks passed!
|
||||
@@ -0,0 +1,45 @@
|
||||
E501 Line too long (105 > 100)
|
||||
--> docs/hel-892/zimage-wash-document-evidence/build_definition.py:368:84
|
||||
|
|
||||
366 | schemas["303", "preprocessor"] = (
|
||||
367 | "'none'",
|
||||
368 | "INPUT.COMBO(PREPROCESSOR_OPTIONS, default='none');动态枚举来自准确wrapper注册,不能推目标安装",
|
||||
| ^^^^
|
||||
369 | )
|
||||
370 | schemas["303", "resolution"] = (
|
||||
|
|
||||
|
||||
E501 Line too long (246 > 100)
|
||||
--> docs/hel-892/zimage-wash-document-evidence/build_definition.py:515:70
|
||||
|
|
||||
513 | …
|
||||
514 | …
|
||||
515 | … 完整null)+两完整比较历史列表;Note681完整11字符另列。311/322/617/294/233五[]零位置,Reroute/242Bypasser/682Label缺键独立保留,不混同outputs/null。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
516 | …46/UE/tab都是独立保存态,宿主动态控件、seed辅助、别名与组开关恢复未知,不借别版认证。",
|
||||
517 | … 件不等于姿态。初始latent是原图吗?675 EmptyLatentImage经3408供313,没有原图VAEEncode/noise_mask。两段都有ControlNet吗?只有313接656,314模型是Get290直出支…
|
||||
|
|
||||
|
||||
E501 Line too long (520 > 100)
|
||||
--> docs/hel-892/zimage-wash-document-evidence/build_definition.py:517:72
|
||||
|
|
||||
515 | … 整null)+两完整比较历史列表;Note681完整11字符另列。311/322/617/294/233五[]零位置,Reroute/242Bypasser/682Label缺键独立保留,不混同outputs/null。",
|
||||
516 | …6/UE/tab都是独立保存态,宿主动态控件、seed辅助、别名与组开关恢复未知,不借别版认证。",
|
||||
517 | … 件不等于姿态。初始latent是原图吗?675 EmptyLatentImage经3408供313,没有原图VAEEncode/noise_mask。两段都有ControlNet吗?只有313接656,314模型是Get290直出支路。9528是最终种子吗?外线覆盖两个缓存只是物理事实,easy/前端辅助/UE调用时序未知,不执行或认证。曝光10是什么单位?679无身份,未知,不能称EV或已核亮度。拼图第二路是什么?Get230 SeedVR 修复,不是主洗图输出,字幕意图与实际别名分开。历史是当前产物吗?不是,只文本不请求。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
518 | …
|
||||
519 | …
|
||||
|
|
||||
|
||||
E501 Line too long (158 > 100)
|
||||
--> docs/hel-892/zimage-wash-document-evidence/build_definition.py:581:81
|
||||
|
|
||||
579 | … 准确来源;618的null与辅助候选独立保留,禁止请求历史URL或媒体。",
|
||||
580 | … 675→313;313控制模型与314直接Get模型分别核,618外线覆盖noise_seed缓存但时序未知。",
|
||||
581 | …297;比较B和LLM图像均需Get恢复,231第二路是SeedVR 修复而非主洗图输出,不保证曝光或超分效果。",
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
582 | …ave及两比较器原声明出口与准确返回差异逐节点保留;停用/未检查/空时间戳不变,155定稿/可靠转换/环境核对/必要实跑未完成。",
|
||||
583 | …
|
||||
|
|
||||
|
||||
Found 4 errors.
|
||||
@@ -0,0 +1,247 @@
|
||||
INFO: Started server process [1167290]
|
||||
INFO: Waiting for application startup.
|
||||
INFO: Application startup complete.
|
||||
INFO: Uvicorn running on http://127.0.0.1:8247 (Press CTRL+C to quit)
|
||||
{'counts': {'skipped': 154, 'updated': 1, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
|
||||
INFO: 127.0.0.1:38482 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/82 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/81 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/80 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/79 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/78 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/77 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/76 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/75 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/54 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/55 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/56 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/58 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/57 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/44 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/53 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/52 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/51 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/50 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/49 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/47 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/48 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38508 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38492 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38528 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:38518 - "GET /api/settings HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38530 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38542 - "GET /api/workflows/82 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38556 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:60974 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:60982 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:59376 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:59392 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:58102 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:58106 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:50286 - "GET /api/workflows/81 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50300 - "GET /api/workflows/80 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50306 - "GET /api/workflows/79 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50318 - "GET /api/workflows/78 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50322 - "GET /api/workflows/77 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50326 - "GET /api/workflows/76 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50328 - "GET /api/workflows/75 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50338 - "GET /api/workflows/54 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50352 - "GET /api/workflows/55 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50364 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:50370 - "GET /api/workflows/56 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50376 - "GET /api/workflows/58 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50388 - "GET /api/workflows/57 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50404 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:50406 - "GET /api/workflows/44 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50410 - "GET /api/workflows/53 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50424 - "GET /api/workflows/52 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50432 - "GET /api/workflows/51 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50444 - "GET /api/workflows/50 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50458 - "GET /api/workflows/49 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50462 - "GET /api/workflows/47 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50476 - "GET /api/workflows/48 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50490 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50506 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50514 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50522 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33398 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33404 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33414 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33426 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33438 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33446 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33456 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33458 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33464 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33470 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:33474 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33476 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33480 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33494 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:33502 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33512 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33516 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33532 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33548 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33554 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33558 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33564 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33570 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33578 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33592 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33604 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33608 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53516 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53522 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53538 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53552 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53558 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53574 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53590 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53594 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:53608 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53612 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53626 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53634 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:53646 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53654 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53666 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53672 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53676 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53682 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53690 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53700 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:53714 - "GET /api/workflows/82 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:48494 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:48504 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:55886 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:55898 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:55904 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:54448 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:54464 - "GET /api/workflows/81 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54468 - "GET /api/workflows/80 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54472 - "GET /api/workflows/79 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54474 - "GET /api/workflows/78 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54482 - "GET /api/workflows/77 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54494 - "GET /api/workflows/76 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54502 - "GET /api/workflows/75 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54506 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:54516 - "GET /api/workflows/54 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54528 - "GET /api/workflows/55 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54534 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:54542 - "GET /api/workflows/56 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54198 - "GET /api/workflows/58 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54206 - "GET /api/workflows/57 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54218 - "GET /api/workflows/44 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54232 - "GET /api/workflows/53 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54238 - "GET /api/workflows/52 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54244 - "GET /api/workflows/51 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54254 - "GET /api/workflows/50 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54264 - "GET /api/workflows/49 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54276 - "GET /api/workflows/47 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54288 - "GET /api/workflows/48 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54298 - "GET /api/workflows/46 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54308 - "GET /api/workflows/45 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54310 - "GET /api/workflows/42 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54312 - "GET /api/workflows/41 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54314 - "GET /api/workflows/40 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54326 - "GET /api/workflows/39 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54342 - "GET /api/workflows/38 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54350 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54352 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54360 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54362 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:54374 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54386 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54388 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54396 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:54402 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54418 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:54422 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38644 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38652 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38658 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38668 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38678 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38694 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38708 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38716 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38718 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38734 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38740 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38750 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38764 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38774 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38786 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38788 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38802 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38808 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38814 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:38828 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38838 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38850 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:38862 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38874 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38878 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38886 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38900 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:38910 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50440 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50448 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50462 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50470 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50472 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50476 - "GET /api/workflows/156 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50488 - "GET /api/workflows/157 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50502 - "GET /api/workflows/81 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:50512 - "GET /api/workflows/82 HTTP/1.1" 200 OK
|
||||
INFO: Shutting down
|
||||
INFO: Waiting for application shutdown.
|
||||
INFO: Application shutdown complete.
|
||||
INFO: Finished server process [1167290]
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
VITE v6.4.3 ready in 292 ms
|
||||
|
||||
➜ Local: http://127.0.0.1:5173/
|
||||
@@ -0,0 +1 @@
|
||||
{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]}
|
||||
@@ -0,0 +1,52 @@
|
||||
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.3.52 -> FETCH_HEAD
|
||||
PINNED core0352 71ed4a399ec76a75aa2870b772d2022e4b9a69a3
|
||||
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/Fannovel16/comfyui_controlnet_aux
|
||||
* branch 12f35647f0d510e03b45a47fb420fe1245a575df -> FETCH_HEAD
|
||||
PINNED aux 12f35647f0d510e03b45a47fb420fe1245a575df
|
||||
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/yolain/ComfyUI-Easy-Use
|
||||
* branch 00c69fc8163478edfd25b12e758b561d66107054 -> FETCH_HEAD
|
||||
PINNED easy 00c69fc8163478edfd25b12e758b561d66107054
|
||||
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/chflame163/ComfyUI_LayerStyle
|
||||
* branch 89014d833d2ad0998d724090eff1456692692a1d -> FETCH_HEAD
|
||||
PINNED reel 89014d833d2ad0998d724090eff1456692692a1d
|
||||
@@ -0,0 +1,3 @@
|
||||
PASS necessary text only 91 sources; no archive or assets
|
||||
PASS necessary text only 93 sources; no archive or assets
|
||||
PASS necessary text only 94 sources; no archive or assets
|
||||
@@ -0,0 +1 @@
|
||||
PASS exact Git/package text, 138 positions, 1 note, 63 physical edges
|
||||
@@ -0,0 +1,738 @@
|
||||
{
|
||||
"sources": [
|
||||
{
|
||||
"id": "llama",
|
||||
"file": "nodes.py",
|
||||
"sha256": "aa4eb4cb951c77d4709d828f7663c473333a06b502cc6a08d922b75637654807",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "llama",
|
||||
"file": "__init__.py",
|
||||
"sha256": "b18de9dc0005d53c6f3d873b501fc60dee4a6810b74a3722dd0f9420633a04e8",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "llama",
|
||||
"file": "pyproject.toml",
|
||||
"sha256": "63a52a69be3908dd67ff5aa57abc676a033935367f6f3ee2a956df120a755016",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "llama",
|
||||
"file": "support/prompt_enhancer_preset.py",
|
||||
"sha256": "317b53637ae9fd99db7f67fe0fb5dc0f075828c672bb3d40ba7ba6fc7b0ed79b",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "package.json",
|
||||
"sha256": "779859b44ef43fa6c7967e933757eb45c1310f1c9a1dc2a5939814beee657df5",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "package-lock.json",
|
||||
"sha256": "69ef63cb797d33667714507f0dc3d482898f69d4ed20816d7bcd8f5b8f63a217",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/scripts/widgets.ts",
|
||||
"sha256": "c0dbe60dd08111e6c589c4dfa86ad9be73b4a30007153aa6ac428600deda204e",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/scripts/app.ts",
|
||||
"sha256": "c1a9217d3ef3e16e4b7bebe000b796083c5ac97f098fff7e64566046418455c9",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/extensions/core/widgetInputs.ts",
|
||||
"sha256": "998f0f5e517080c2ea778f4e9c37723db174bb195a6f6960dfd6827a8fb49d4d",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "src/extensions/core/rerouteNode.ts",
|
||||
"sha256": "73eba79858028e6e8656a2d2ded434e64e75d5d74e066a727b93a585139c31bb",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "frontend",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0185",
|
||||
"file": "nodes.py",
|
||||
"sha256": "9e6d8d84d3a66d5f7b8ee121d0905800297322446d7a673357c41451b66920f8",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0185",
|
||||
"file": "comfy_extras/nodes_model_patch.py",
|
||||
"sha256": "916f0f8ce816ced96e08a2365262ed6c86c0fe49dba0a99cccddbf22b0fe3465",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0185",
|
||||
"file": "comfy_extras/nodes_images.py",
|
||||
"sha256": "3729f9651ff581d0ec7f52a59d577c6966b58c22cb95efcbe85ee27324e760e3",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0185",
|
||||
"file": "comfy/samplers.py",
|
||||
"sha256": "c084b339ee54a80d49148f52fecb0623be5f976dcc751073485e28868fe8f01f",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0185",
|
||||
"file": "comfy/sample.py",
|
||||
"sha256": "305040bb2f9a07d8e0688d1a7f87954ecfd17a986b07657b836dc4fef6c25d2f",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0185",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0348",
|
||||
"file": "nodes.py",
|
||||
"sha256": "9b150a95337cb3ebd9f42ad6f282db62cea6ff53d3a023211d94b02fdf535eeb",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0348",
|
||||
"file": "folder_paths.py",
|
||||
"sha256": "99d77f12a87d7d25ceac544d9c29dbe988d2718e94c0357b3eb754e79f4b7547",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0348",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0375",
|
||||
"file": "nodes.py",
|
||||
"sha256": "c922eb57ed906a6fad7832c2fcb259b4f06533fc6dce7927b3e1d87e078f34cc",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0375",
|
||||
"file": "folder_paths.py",
|
||||
"sha256": "4832712b5baa3178139be79c18fc7f6d744e42e3ab26fa66cfd0a8f392309ac7",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0375",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0376",
|
||||
"file": "nodes.py",
|
||||
"sha256": "f8e54830b7d57d4eb97152caa249be448f6c0d61bc5f59639f1058abbf870ac0",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0376",
|
||||
"file": "comfy_extras/nodes_model_patch.py",
|
||||
"sha256": "1616a983f97b009322b4e4f5c89e34cd94aa238ce6211fcc8cb56ec13500a93b",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0376",
|
||||
"file": "comfy_extras/nodes_post_processing.py",
|
||||
"sha256": "ad13ed14b387e753eb1646757fbc5c9b42c58d8722abfd1559005984ceffe2c8",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0376",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0367",
|
||||
"file": "nodes.py",
|
||||
"sha256": "37b7410ac68956b80d2a5398fc05b088a6e512ada79004ba16a5eeb67e8ea5b3",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0367",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"file": "__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"file": "py/image_scale_by_aspect_ratio_v2.py",
|
||||
"sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"file": "py/purge_vram.py",
|
||||
"sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"file": "py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"file": "LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "show",
|
||||
"file": "__init__.py",
|
||||
"sha256": "ced0aa0ea33f81d7d97b59b66ff0abc77b068bd17183f42480875e71708a0684",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "show",
|
||||
"file": "py/show_text.py",
|
||||
"sha256": "fb4182f541caed98621fd30cf4ad87d7a7deb2680cfafbcfbeb769355570cc8e",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "show",
|
||||
"file": "web/js/showText.js",
|
||||
"sha256": "faf44e1452d1f5965bcae9b69a5f6669597dbbe05ebedd85dad7256a14ef6975",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "show",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "rgactive",
|
||||
"file": "__init__.py",
|
||||
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "rgactive",
|
||||
"file": "py/image_comparer.py",
|
||||
"sha256": "43ccce9b6f9413d5196ce4a7a3ef544969ae1ce2b52c44345f6cc8fb28c596fc",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "rgactive",
|
||||
"file": "web/comfyui/image_comparer.js",
|
||||
"sha256": "b6dd39b71a2722774ecad101e12823220c6905f9f2a3d1cefca077e1aaa08a49",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "rgactive",
|
||||
"file": "LICENSE",
|
||||
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "rgbypass",
|
||||
"file": "__init__.py",
|
||||
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "rgbypass",
|
||||
"file": "py/image_comparer.py",
|
||||
"sha256": "43ccce9b6f9413d5196ce4a7a3ef544969ae1ce2b52c44345f6cc8fb28c596fc",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "rgbypass",
|
||||
"file": "web/comfyui/image_comparer.js",
|
||||
"sha256": "b6dd39b71a2722774ecad101e12823220c6905f9f2a3d1cefca077e1aaa08a49",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "rgbypass",
|
||||
"file": "LICENSE",
|
||||
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "seed",
|
||||
"file": "__init__.py",
|
||||
"sha256": "620e8922456828baddf384a14133d9ff21dec6bfbbf8bedc349594c4f708d153",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "seed",
|
||||
"file": "src/interfaces/video_upscaler.py",
|
||||
"sha256": "d8bdb8512d8e5393ce74c83cf8eecc51958b58506a4633573351f47af1d86936",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "seed",
|
||||
"file": "LICENSE",
|
||||
"sha256": "00fbe16bf33baf8896cad6bf0526fad3dacac95b1ec05520c500799c3180589c",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "seed",
|
||||
"file": "src/interfaces/__init__.py",
|
||||
"sha256": "c37c3fe439e202cf9809489d528219b1fa56215485b8bef3a6cebc0b1e3055fe",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "seed",
|
||||
"file": "src/interfaces/dit_model_loader.py",
|
||||
"sha256": "3d3ac39b354204331022b6c1ab09a1acd0a665ed95dc9a8b704f2540cda7e0c4",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "seed",
|
||||
"file": "src/interfaces/torch_compile_settings.py",
|
||||
"sha256": "09351b83caa3d74a04ec67bba57423863bd7b72afff313dcdd20fd4ae981d05d",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "seed",
|
||||
"file": "src/interfaces/vae_model_loader.py",
|
||||
"sha256": "fcf3ef513e848b015546f806c65036c49426e352548b88dfbe28f883ef64a7a5",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "seedpkg",
|
||||
"file": "LICENSE",
|
||||
"sha256": "5967a0c153e731109b76c5d83b5e0fae2382b6aaf7b898d08ff03702eea59430",
|
||||
"proof": "Exact2.5.22 acquisition SHA recorded; retained text SHA/CRC rechecked; full archive removed, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "seedpkg",
|
||||
"file": "__init__.py",
|
||||
"sha256": "562c03633d050165ea4ba6edf2905bf936ac4863b02c9364df27f8ee5450179f",
|
||||
"proof": "Exact2.5.22 acquisition SHA recorded; retained text SHA/CRC rechecked; full archive removed, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "seedpkg",
|
||||
"file": "pyproject.toml",
|
||||
"sha256": "a6527f90689747e9dfae7b72dc8032a96d6729e9a7f873b8ab14fc23454cf385",
|
||||
"proof": "Exact2.5.22 acquisition SHA recorded; retained text SHA/CRC rechecked; full archive removed, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "seedpkg",
|
||||
"file": "src/interfaces/__init__.py",
|
||||
"sha256": "c37c3fe439e202cf9809489d528219b1fa56215485b8bef3a6cebc0b1e3055fe",
|
||||
"proof": "Exact2.5.22 acquisition SHA recorded; retained text SHA/CRC rechecked; full archive removed, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "seedpkg",
|
||||
"file": "src/interfaces/dit_model_loader.py",
|
||||
"sha256": "c1779dd24aef30cf35771d988f78805a75c714d50b057589d05a8c763fe0cf92",
|
||||
"proof": "Exact2.5.22 acquisition SHA recorded; retained text SHA/CRC rechecked; full archive removed, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "seedpkg",
|
||||
"file": "src/interfaces/torch_compile_settings.py",
|
||||
"sha256": "09351b83caa3d74a04ec67bba57423863bd7b72afff313dcdd20fd4ae981d05d",
|
||||
"proof": "Exact2.5.22 acquisition SHA recorded; retained text SHA/CRC rechecked; full archive removed, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "seedpkg",
|
||||
"file": "src/interfaces/vae_model_loader.py",
|
||||
"sha256": "fcf3ef513e848b015546f806c65036c49426e352548b88dfbe28f883ef64a7a5",
|
||||
"proof": "Exact2.5.22 acquisition SHA recorded; retained text SHA/CRC rechecked; full archive removed, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "seedpkg",
|
||||
"file": "src/interfaces/video_upscaler.py",
|
||||
"sha256": "30d144924af59d6f8f57a5867f748f6003eb0a6910ebd11c3e481f6a44bfeeac",
|
||||
"proof": "Exact2.5.22 acquisition SHA recorded; retained text SHA/CRC rechecked; full archive removed, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "litegraph",
|
||||
"file": "package/LICENSE",
|
||||
"sha256": "1b38cc30fe774bcc77538ab99eb460f4e1c8a47c4fddc6e991ee3b5cc2a96bb9",
|
||||
"proof": "Pinned frontend1.23.0 lock, exact0.15.15 member SHA; whole artifact digest reused, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "litegraph",
|
||||
"file": "package/dist/litegraph.es.js",
|
||||
"sha256": "6242fb80a52ce2989ab89e1d87103a0c174c783ebdca0b5359fedc360726bd40",
|
||||
"proof": "Pinned frontend1.23.0 lock, exact0.15.15 member SHA; whole artifact digest reused, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "litegraph",
|
||||
"file": "package/package.json",
|
||||
"sha256": "7a9758d292a422fcec9af33159b54da11c90114722b3eb786dd19224b8103241",
|
||||
"proof": "Pinned frontend1.23.0 lock, exact0.15.15 member SHA; whole artifact digest reused, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "litegraph",
|
||||
"file": "package/dist/LGraphNode.d.ts",
|
||||
"sha256": "a3bc205d5492c23332647290fedb628443039ba8d6f8f4d731117f239481cf4b",
|
||||
"proof": "Pinned frontend1.23.0 lock, exact0.15.15 member SHA; whole artifact digest reused, Git unknown"
|
||||
},
|
||||
{
|
||||
"id": "core051",
|
||||
"file": "nodes.py",
|
||||
"sha256": "0b80b83ccccc84a2d516d0303ed39eed05477bae80ef60b0b6512c1cd04c9116",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core051",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0359",
|
||||
"file": "nodes.py",
|
||||
"sha256": "207cba7144e572dfe02e7584680ef18f9978f77bfce8705afd653053921a1e5b",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0359",
|
||||
"file": "folder_paths.py",
|
||||
"sha256": "df82630df610edbaf86cecf0376871e1d026a05c12aa439670916099ecdd4f7a",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0359",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0352",
|
||||
"file": "nodes.py",
|
||||
"sha256": "96c7e4b021af00661140b502873f3a35f0d5de00a14341b27090a8933320410f",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0352",
|
||||
"file": "folder_paths.py",
|
||||
"sha256": "4f3ed98f1f17daa6d933dd9ccff157d18ca63730a40c2fef93dd1b37ae1e2c6b",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "core0352",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "aux",
|
||||
"file": "__init__.py",
|
||||
"sha256": "9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "aux",
|
||||
"file": "node_wrappers/depth_anything.py",
|
||||
"sha256": "f769ac091bd2725065f4d8cddc6fba9ae636d659d16c3d2a79b9c202b099ec17",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "easy",
|
||||
"file": "__init__.py",
|
||||
"sha256": "d225b7157796aa5f015bb28bfa6cee8e3048fb810a45e988122ea3b365bdde22",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "easy",
|
||||
"file": "py/nodes/logic.py",
|
||||
"sha256": "a817877fc8c1074955316e85ff3a3f6487333598940afaea39723f0c5dfcb82b",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "easy",
|
||||
"file": "py/nodes/util.py",
|
||||
"sha256": "5f71760cf9bcb658477e99a6f726159a8bb172ca8215356f31458f97779e1c7f",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "easy",
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "easy",
|
||||
"file": "py/nodes/seed.py",
|
||||
"sha256": "4cea9f85825162015840396fa33cadcb81d749e6c84f46d56bab3063dfbe8542",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "easy",
|
||||
"file": "web_version/v1/js/poseEditor.js",
|
||||
"sha256": "3b0a85d33509a7f2856bde4395f0a0cbd5835de8801bdd56f3c04a6f2cb8d3e1",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "easy",
|
||||
"file": "web_version/v1/js/seed.js",
|
||||
"sha256": "ac27fc63701c0ca73c8f225c326b5ebbbd3eafb21dc906a3bece2e809a4ba0d3",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "reel",
|
||||
"file": "__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "reel",
|
||||
"file": "py/image_reel.py",
|
||||
"sha256": "d6f792c4e468d6bab6c87cd5632ff2c0cc71da5d603e63181576d2f72443dd8f",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "reel",
|
||||
"file": "py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "reel",
|
||||
"file": "LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "aux",
|
||||
"file": "LICENSE.txt",
|
||||
"sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "aux",
|
||||
"file": "utils.py",
|
||||
"sha256": "7d217c7ba934556ee0ffa2ff8cd7a705873381b274db179623c11b829f71a375",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "aux",
|
||||
"file": "src/custom_controlnet_aux/depth_anything/__init__.py",
|
||||
"sha256": "7bfb7a8efe99bfb5c767fbec3aed311b2ecf87ff8b815fd2080526267a1f025c",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "aux",
|
||||
"file": "src/custom_controlnet_aux/util.py",
|
||||
"sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "easy",
|
||||
"file": "py/config.py",
|
||||
"sha256": "c1dd81f73ef0803792e40dd803ff4be8defb4b60369e79738f69a3534f77a16c",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "aux",
|
||||
"file": "src/custom_controlnet_aux/depth_anything/transformers.py",
|
||||
"sha256": "3a78e82530e7608c81eedabba35e4bd6dd8b016708d39d767b28d0c9286f23b8",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "easy",
|
||||
"file": "web_version/v1/js/easy/easyWidgets.js",
|
||||
"sha256": "dbf040f824a2d8eff029cdd965170ab527110fb7cd0485198ff132dafca0c448",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
},
|
||||
{
|
||||
"id": "easy",
|
||||
"file": "web_version/v2/easyuse.js",
|
||||
"sha256": "5b4046d6faa16117d089a7b9b7dc3e2ac5e855ce60f363bfa0b5ac2f45df1990",
|
||||
"proof": "Rehashed commit/tag/selected blob; complete tree listing, not full tree-object rehash"
|
||||
}
|
||||
],
|
||||
"counts": {
|
||||
"saved_fields": 138,
|
||||
"root_saved_fields": 138,
|
||||
"internal_saved_fields": 0,
|
||||
"linked_saved_fields": 5,
|
||||
"frontend_only": 9,
|
||||
"source_nodes": 66,
|
||||
"root_nodes": 66,
|
||||
"internal_nodes": 0,
|
||||
"physical_edges": 63,
|
||||
"source_notes": 1,
|
||||
"history_objects": 2,
|
||||
"final_scalars": 0,
|
||||
"final_prompt_constructed": false
|
||||
},
|
||||
"physical_edges_checked": 63,
|
||||
"exact_core_output_checks": [
|
||||
{
|
||||
"node": 295,
|
||||
"saved_widgets": [
|
||||
"z_image 洗图"
|
||||
],
|
||||
"source_outputs": [
|
||||
{
|
||||
"name": "image_urls",
|
||||
"type": "STRING"
|
||||
}
|
||||
],
|
||||
"accurate_return_types": [],
|
||||
"source_id": "core0375"
|
||||
},
|
||||
{
|
||||
"node": 234,
|
||||
"saved_widgets": [
|
||||
"SeedVR2 修复"
|
||||
],
|
||||
"source_outputs": [
|
||||
{
|
||||
"name": "image_urls",
|
||||
"type": "STRING"
|
||||
}
|
||||
],
|
||||
"accurate_return_types": [],
|
||||
"source_id": "core0367"
|
||||
},
|
||||
{
|
||||
"node": 322,
|
||||
"saved_widgets": [],
|
||||
"source_outputs": [
|
||||
{
|
||||
"name": "image_urls",
|
||||
"type": "STRING"
|
||||
}
|
||||
],
|
||||
"accurate_return_types": [],
|
||||
"source_id": "core0376"
|
||||
},
|
||||
{
|
||||
"node": 617,
|
||||
"saved_widgets": [],
|
||||
"source_outputs": [
|
||||
{
|
||||
"name": "image_urls",
|
||||
"type": "STRING"
|
||||
}
|
||||
],
|
||||
"accurate_return_types": [],
|
||||
"source_id": "core051"
|
||||
},
|
||||
{
|
||||
"node": 233,
|
||||
"saved_widgets": [],
|
||||
"source_outputs": [
|
||||
{
|
||||
"name": "image_urls",
|
||||
"type": "STRING"
|
||||
}
|
||||
],
|
||||
"accurate_return_types": [],
|
||||
"source_id": "core0359"
|
||||
}
|
||||
],
|
||||
"original_type_mismatches": [
|
||||
{
|
||||
"edge": 144,
|
||||
"source_type": "CLIP",
|
||||
"destination_type": "CLIP",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2357,
|
||||
"source_type": "VAE",
|
||||
"destination_type": "VAE",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2391,
|
||||
"source_type": "CONDITIONING",
|
||||
"destination_type": "*",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2407,
|
||||
"source_type": "CONDITIONING",
|
||||
"destination_type": "*",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2409,
|
||||
"source_type": "CONDITIONING",
|
||||
"destination_type": "*",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2410,
|
||||
"source_type": "CONDITIONING",
|
||||
"destination_type": "*",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2412,
|
||||
"source_type": "CONDITIONING",
|
||||
"destination_type": "*",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2414,
|
||||
"source_type": "LATENT",
|
||||
"destination_type": "*",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2442,
|
||||
"source_type": "IMAGE",
|
||||
"destination_type": "IMAGE",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2449,
|
||||
"source_type": "IMAGE",
|
||||
"destination_type": "IMAGE",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2455,
|
||||
"source_type": "IMAGE",
|
||||
"destination_type": "*",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 2479,
|
||||
"source_type": "STRING",
|
||||
"destination_type": "*",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 3129,
|
||||
"source_type": "MODEL",
|
||||
"destination_type": "*",
|
||||
"edge_type": "*"
|
||||
},
|
||||
{
|
||||
"edge": 3132,
|
||||
"source_type": "IMAGE",
|
||||
"destination_type": "*",
|
||||
"edge_type": "*"
|
||||
}
|
||||
],
|
||||
"inventory_matches_definition": true,
|
||||
"no_upstream_execution": true
|
||||
}
|
||||
@@ -0,0 +1,882 @@
|
||||
{
|
||||
"files": [
|
||||
{
|
||||
"path": "docs/hel-892/flux2-lineart-reference/litegraph__package__LICENSE",
|
||||
"sha256": "1b38cc30fe774bcc77538ab99eb460f4e1c8a47c4fddc6e991ee3b5cc2a96bb9",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-lineart-reference/litegraph__package__dist__LGraphNode.d.ts",
|
||||
"sha256": "a3bc205d5492c23332647290fedb628443039ba8d6f8f4d731117f239481cf4b",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-lineart-reference/litegraph__package__dist__litegraph.es.js",
|
||||
"sha256": "6242fb80a52ce2989ab89e1d87103a0c174c783ebdca0b5359fedc360726bd40",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/flux2-lineart-reference/litegraph__package__package.json",
|
||||
"sha256": "7a9758d292a422fcec9af33159b54da11c90114722b3eb786dd19224b8103241",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-inpaint-reference/encode-commit.txt",
|
||||
"sha256": "283f9bdb431733356b98dcd7e9c0f3639d6a0682990b8e908244c9fa3fcf7044",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-inpaint-reference/encode-tag.json",
|
||||
"sha256": "a46c7564ea2e749215bfe490d9a4c5b6f55bf249f6f914a17a450bdbfe65569d",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-inpaint-reference/encode-tag.txt",
|
||||
"sha256": "283f9bdb431733356b98dcd7e9c0f3639d6a0682990b8e908244c9fa3fcf7044",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-inpaint-reference/encode-tree.json",
|
||||
"sha256": "855b8c0bfe14e5fe5f31b384138bb4da20fe7da64d7c0abb9d659561a131bd7a",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-inpaint-reference/encode__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-inpaint-reference/encode__folder_paths.py",
|
||||
"sha256": "df82630df610edbaf86cecf0376871e1d026a05c12aa439670916099ecdd4f7a",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-inpaint-reference/encode__nodes.py",
|
||||
"sha256": "207cba7144e572dfe02e7584680ef18f9978f77bfce8705afd653053921a1e5b",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0185-commit.txt",
|
||||
"sha256": "9e31ef34bdbdd71ff63f567067ede06209d9400b32a9a439ce0f47f4eedea4cc",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0185-tag.json",
|
||||
"sha256": "550533fe5d757ce726ead4b90cf1855088154bbdc03fc4b6156ffed0f37c3c0e",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0185-tag.txt",
|
||||
"sha256": "9e31ef34bdbdd71ff63f567067ede06209d9400b32a9a439ce0f47f4eedea4cc",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0185-tree.json",
|
||||
"sha256": "45d3c7e37221a1d45792690bdff8e16175d19765cf2a8e1e55f43830fe19d1e6",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0185__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0185__comfy__sample.py",
|
||||
"sha256": "305040bb2f9a07d8e0688d1a7f87954ecfd17a986b07657b836dc4fef6c25d2f",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0185__comfy__samplers.py",
|
||||
"sha256": "c084b339ee54a80d49148f52fecb0623be5f976dcc751073485e28868fe8f01f",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0185__comfy_extras__nodes_images.py",
|
||||
"sha256": "3729f9651ff581d0ec7f52a59d577c6966b58c22cb95efcbe85ee27324e760e3",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0185__comfy_extras__nodes_model_patch.py",
|
||||
"sha256": "916f0f8ce816ced96e08a2365262ed6c86c0fe49dba0a99cccddbf22b0fe3465",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0185__nodes.py",
|
||||
"sha256": "9e6d8d84d3a66d5f7b8ee121d0905800297322446d7a673357c41451b66920f8",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0348-commit.txt",
|
||||
"sha256": "0f6646c280fbf02deb312444bb1589e997d9508f386c78be57e3e713ca2822d5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0348-tag.json",
|
||||
"sha256": "655176bf4850d4e12355801e9a7dc2e4390efc4ff322f9a804b4b4dd65d8b7c6",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0348-tag.txt",
|
||||
"sha256": "0f6646c280fbf02deb312444bb1589e997d9508f386c78be57e3e713ca2822d5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0348-tree.json",
|
||||
"sha256": "1d7a1e54d309f3b054db2c583a08ee2b36f0705ffeea9675e2ce17001d9a80b6",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0348__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0348__folder_paths.py",
|
||||
"sha256": "99d77f12a87d7d25ceac544d9c29dbe988d2718e94c0357b3eb754e79f4b7547",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0348__nodes.py",
|
||||
"sha256": "9b150a95337cb3ebd9f42ad6f282db62cea6ff53d3a023211d94b02fdf535eeb",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0367-commit.txt",
|
||||
"sha256": "e418d665580946e5ac6af503b035ec982e580be9ad8f8a5bd019eb468270de3a",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0367-tag.json",
|
||||
"sha256": "0c4af30cf289e6a0f370455e5d1605a40a99d44a961bb4edc14a290e12fff5c5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0367-tag.txt",
|
||||
"sha256": "e418d665580946e5ac6af503b035ec982e580be9ad8f8a5bd019eb468270de3a",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0367-tree.json",
|
||||
"sha256": "713eb9a75ccffac8f0851fad1faae1ae1c8a3dd1666221e469e6ac03721019de",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0367__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0367__nodes.py",
|
||||
"sha256": "37b7410ac68956b80d2a5398fc05b088a6e512ada79004ba16a5eeb67e8ea5b3",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0375-commit.txt",
|
||||
"sha256": "cffe638ec0d19a403d718c2c31e9c26e42f1e5498b575c4d78334686170a18e2",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0375-tag.json",
|
||||
"sha256": "bce78eb1da18e96b3db8efaf2e2a31ec701802acc2695744548802a002d1b21a",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0375-tag.txt",
|
||||
"sha256": "cffe638ec0d19a403d718c2c31e9c26e42f1e5498b575c4d78334686170a18e2",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0375-tree.json",
|
||||
"sha256": "bcfef59135f3e6afd3f614e87546514dce3cdda17eb74904c853945e58296bba",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0375__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0375__folder_paths.py",
|
||||
"sha256": "4832712b5baa3178139be79c18fc7f6d744e42e3ab26fa66cfd0a8f392309ac7",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0375__nodes.py",
|
||||
"sha256": "c922eb57ed906a6fad7832c2fcb259b4f06533fc6dce7927b3e1d87e078f34cc",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0376-commit.txt",
|
||||
"sha256": "04e44494428de8ff9cee8ec8e52c0d5f9ef94709fd501ddc1bf00b5a865eb5d7",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0376-tag.json",
|
||||
"sha256": "efe327ce1370589a333c75357952ce722ba3cc9ec01f5a9ff010e200f526281f",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0376-tag.txt",
|
||||
"sha256": "04e44494428de8ff9cee8ec8e52c0d5f9ef94709fd501ddc1bf00b5a865eb5d7",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0376-tree.json",
|
||||
"sha256": "d2971c78e769e2899ff964524c978a4ac0aea1b64da227f7d45ebdebd0a7ba41",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0376__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0376__comfy_extras__nodes_model_patch.py",
|
||||
"sha256": "1616a983f97b009322b4e4f5c89e34cd94aa238ce6211fcc8cb56ec13500a93b",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0376__comfy_extras__nodes_post_processing.py",
|
||||
"sha256": "ad13ed14b387e753eb1646757fbc5c9b42c58d8722abfd1559005984ceffe2c8",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/core0376__nodes.py",
|
||||
"sha256": "f8e54830b7d57d4eb97152caa249be448f6c0d61bc5f59639f1058abbf870ac0",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/layer-commit.txt",
|
||||
"sha256": "dfb7f1923ddc1a434666930eef4de9f93a6464684b318358533bfa2a33007461",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/layer-tag.json",
|
||||
"sha256": "eaf2274f258f690e619cfc158da069e570fda40ed8282bc14764dff656c09e76",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/layer-tag.txt",
|
||||
"sha256": "dfb7f1923ddc1a434666930eef4de9f93a6464684b318358533bfa2a33007461",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/layer-tree.json",
|
||||
"sha256": "0660e9ad19db475d5dff8582e89ecfcbc730a41aa31ceabdab9d5c6920172389",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/layer__LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/layer____init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/layer__py__image_scale_by_aspect_ratio_v2.py",
|
||||
"sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/layer__py__imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/layer__py__purge_vram.py",
|
||||
"sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgactive-commit.txt",
|
||||
"sha256": "d2fc6a15da5e0704b72b27479be49db3395cf658f9d7bb7e9ad4ba6b03f03602",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgactive-tag.json",
|
||||
"sha256": "e516d992a3ede6c7b9a1c695d8c0241dcb6a2c60d8f6113f76c80f74f5126c67",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgactive-tag.txt",
|
||||
"sha256": "d2fc6a15da5e0704b72b27479be49db3395cf658f9d7bb7e9ad4ba6b03f03602",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgactive-tree.json",
|
||||
"sha256": "f223496bc666a962daab5ef3c1bb6779fa0c26280185cc6a1818c879dfadd9b5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgactive__LICENSE",
|
||||
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgactive____init__.py",
|
||||
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgactive__py__image_comparer.py",
|
||||
"sha256": "43ccce9b6f9413d5196ce4a7a3ef544969ae1ce2b52c44345f6cc8fb28c596fc",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgactive__web__comfyui__image_comparer.js",
|
||||
"sha256": "b6dd39b71a2722774ecad101e12823220c6905f9f2a3d1cefca077e1aaa08a49",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgbypass-commit.txt",
|
||||
"sha256": "8b3c7eb4ee980642427e22f328528980919a49a62273599d17e7ffc592a6403e",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgbypass-tag.json",
|
||||
"sha256": "e1c58f5ac26c5f9c0d40002aaad5663adfc746a0412ed64f17c016371ad9674f",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgbypass-tag.txt",
|
||||
"sha256": "8b3c7eb4ee980642427e22f328528980919a49a62273599d17e7ffc592a6403e",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgbypass-tree.json",
|
||||
"sha256": "8e5b48f52632e69e3bcb330c1225610b28b47268f89d8a9e15608275c97f178f",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgbypass__LICENSE",
|
||||
"sha256": "b34faf7c3e2975fe08d0169958e2b39f076d4d4289cbe2560dd7dd5b1a613ed1",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgbypass____init__.py",
|
||||
"sha256": "06174f22e7246b2b0771961cc0681846f452b853ccb927ca507e074f340abc61",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgbypass__py__image_comparer.py",
|
||||
"sha256": "43ccce9b6f9413d5196ce4a7a3ef544969ae1ce2b52c44345f6cc8fb28c596fc",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/rgbypass__web__comfyui__image_comparer.js",
|
||||
"sha256": "b6dd39b71a2722774ecad101e12823220c6905f9f2a3d1cefca077e1aaa08a49",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed-commit.txt",
|
||||
"sha256": "ef189f5a457f0eaafb94494b7235340ff20268f2471722d56c76dc053cd6d778",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed-tag.json",
|
||||
"sha256": "a5014de5995341f6460212c971e287a95b3022fa142da165951c5f2768ca0451",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed-tag.txt",
|
||||
"sha256": "ef189f5a457f0eaafb94494b7235340ff20268f2471722d56c76dc053cd6d778",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed-tree.json",
|
||||
"sha256": "3fc2a4554f990380c0b49637b64e98e4353df4c822e3a110c7d55f77f53ce6f0",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed__LICENSE",
|
||||
"sha256": "00fbe16bf33baf8896cad6bf0526fad3dacac95b1ec05520c500799c3180589c",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed____init__.py",
|
||||
"sha256": "620e8922456828baddf384a14133d9ff21dec6bfbbf8bedc349594c4f708d153",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed__src__interfaces____init__.py",
|
||||
"sha256": "c37c3fe439e202cf9809489d528219b1fa56215485b8bef3a6cebc0b1e3055fe",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed__src__interfaces__dit_model_loader.py",
|
||||
"sha256": "3d3ac39b354204331022b6c1ab09a1acd0a665ed95dc9a8b704f2540cda7e0c4",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed__src__interfaces__torch_compile_settings.py",
|
||||
"sha256": "09351b83caa3d74a04ec67bba57423863bd7b72afff313dcdd20fd4ae981d05d",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed__src__interfaces__vae_model_loader.py",
|
||||
"sha256": "fcf3ef513e848b015546f806c65036c49426e352548b88dfbe28f883ef64a7a5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seed__src__interfaces__video_upscaler.py",
|
||||
"sha256": "d8bdb8512d8e5393ce74c83cf8eecc51958b58506a4633573351f47af1d86936",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg-acquisition.json",
|
||||
"sha256": "3c33e2b647c9d042ffd6e45773dc8017910ac9ace957391b404d3ef9ef715447",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg-members.json",
|
||||
"sha256": "47d299f20c9f397cf867abcdbe42c70e0489e5f1fd1e073bbf9a36e83a5d4c5d",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg-registry.json",
|
||||
"sha256": "c8aea1c80876d6d5f1d933882b456bae89de2edfcaf81744f59e57973091233e",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg__LICENSE",
|
||||
"sha256": "5967a0c153e731109b76c5d83b5e0fae2382b6aaf7b898d08ff03702eea59430",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg____init__.py",
|
||||
"sha256": "562c03633d050165ea4ba6edf2905bf936ac4863b02c9364df27f8ee5450179f",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg__pyproject.toml",
|
||||
"sha256": "a6527f90689747e9dfae7b72dc8032a96d6729e9a7f873b8ab14fc23454cf385",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg__src__interfaces____init__.py",
|
||||
"sha256": "c37c3fe439e202cf9809489d528219b1fa56215485b8bef3a6cebc0b1e3055fe",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg__src__interfaces__dit_model_loader.py",
|
||||
"sha256": "c1779dd24aef30cf35771d988f78805a75c714d50b057589d05a8c763fe0cf92",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg__src__interfaces__torch_compile_settings.py",
|
||||
"sha256": "09351b83caa3d74a04ec67bba57423863bd7b72afff313dcdd20fd4ae981d05d",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg__src__interfaces__vae_model_loader.py",
|
||||
"sha256": "fcf3ef513e848b015546f806c65036c49426e352548b88dfbe28f883ef64a7a5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/seedpkg__src__interfaces__video_upscaler.py",
|
||||
"sha256": "30d144924af59d6f8f57a5867f748f6003eb0a6910ebd11c3e481f6a44bfeeac",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/show-commit.txt",
|
||||
"sha256": "3405baa8e334d2de3a227520cbdd247b5b94ffd9db90ccbf87becc2850b25177",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/show-tag.json",
|
||||
"sha256": "634e737bd692534f9f44569084eb0cfe79f065867b5afa8d81008e57fb23533a",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/show-tag.txt",
|
||||
"sha256": "3405baa8e334d2de3a227520cbdd247b5b94ffd9db90ccbf87becc2850b25177",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/show-tree.json",
|
||||
"sha256": "3b4b8b1ea1a7241be90ac29a66c39719d8b0fc1596fb4ddd3bd9b627db101c1c",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/show__LICENSE",
|
||||
"sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/show____init__.py",
|
||||
"sha256": "ced0aa0ea33f81d7d97b59b66ff0abc77b068bd17183f42480875e71708a0684",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/show__py__show_text.py",
|
||||
"sha256": "fb4182f541caed98621fd30cf4ad87d7a7deb2680cfafbcfbeb769355570cc8e",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-outpaint-reference/show__web__js__showText.js",
|
||||
"sha256": "faf44e1452d1f5965bcae9b69a5f6669597dbbe05ebedd85dad7256a14ef6975",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-qwen-reference/llama-commit.txt",
|
||||
"sha256": "7148c1643207adfcb4b0d8bfbd512f04032553e3c9d3b7ecda47c2c9790978c5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-qwen-reference/llama-tag.json",
|
||||
"sha256": "2450b158cb62bb53c00cf0b85404e71d16c5d55dc1a5e3ec49e58a4ba90173b7",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-qwen-reference/llama-tag.txt",
|
||||
"sha256": "7148c1643207adfcb4b0d8bfbd512f04032553e3c9d3b7ecda47c2c9790978c5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-qwen-reference/llama-tree.json",
|
||||
"sha256": "98809c253e6e87b41a591534661a91225fb029308438d21c80bf1a8c34ae9a26",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-qwen-reference/llama____init__.py",
|
||||
"sha256": "b18de9dc0005d53c6f3d873b501fc60dee4a6810b74a3722dd0f9420633a04e8",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-qwen-reference/llama__nodes.py",
|
||||
"sha256": "aa4eb4cb951c77d4709d828f7663c473333a06b502cc6a08d922b75637654807",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-qwen-reference/llama__pyproject.toml",
|
||||
"sha256": "63a52a69be3908dd67ff5aa57abc676a033935367f6f3ee2a956df120a755016",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-qwen-reference/llama__support__prompt_enhancer_preset.py",
|
||||
"sha256": "317b53637ae9fd99db7f67fe0fb5dc0f075828c672bb3d40ba7ba6fc7b0ed79b",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend-commit.txt",
|
||||
"sha256": "1cb71ab60ec3b5dc9190ba07cfd9804efb1944a4e57c613d838a017d2b109edd",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend-tag.json",
|
||||
"sha256": "cc9e09d82e33a569b6fff55a64aef218deac39fc50da7bf60ad9f8d1c150fffe",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend-tag.txt",
|
||||
"sha256": "1cb71ab60ec3b5dc9190ba07cfd9804efb1944a4e57c613d838a017d2b109edd",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend-tree.json",
|
||||
"sha256": "83881844c4ac68308d99be6e6fca1ef0ff02ab7b0cad445626eac8af01b5426e",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend__package-lock.json",
|
||||
"sha256": "69ef63cb797d33667714507f0dc3d482898f69d4ed20816d7bcd8f5b8f63a217",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend__package.json",
|
||||
"sha256": "779859b44ef43fa6c7967e933757eb45c1310f1c9a1dc2a5939814beee657df5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend__src__extensions__core__rerouteNode.ts",
|
||||
"sha256": "73eba79858028e6e8656a2d2ded434e64e75d5d74e066a727b93a585139c31bb",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend__src__extensions__core__widgetInputs.ts",
|
||||
"sha256": "998f0f5e517080c2ea778f4e9c37723db174bb195a6f6960dfd6827a8fb49d4d",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend__src__scripts__app.ts",
|
||||
"sha256": "c1a9217d3ef3e16e4b7bebe000b796083c5ac97f098fff7e64566046418455c9",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/frontend__src__scripts__widgets.ts",
|
||||
"sha256": "c0dbe60dd08111e6c589c4dfa86ad9be73b4a30007153aa6ac428600deda204e",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/lora-commit.txt",
|
||||
"sha256": "a5eed76c548f5c72eb31683175d98fe90b7de28a6dea746f58a22a880d513ba2",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/lora-tag.json",
|
||||
"sha256": "46dfd3f2d49668b36ee1084716d67e8240aa9f508a1f7e265d307fa4474e18d5",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/lora-tag.txt",
|
||||
"sha256": "a5eed76c548f5c72eb31683175d98fe90b7de28a6dea746f58a22a880d513ba2",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/lora-tree.json",
|
||||
"sha256": "399eb0fb19277113cf1b614729d66429529b272deda21b24c8983b7d0a8e8110",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/lora__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-reference/lora__nodes.py",
|
||||
"sha256": "0b80b83ccccc84a2d516d0303ed39eed05477bae80ef60b0b6512c1cd04c9116",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux-absent.json",
|
||||
"sha256": "5c4fb44dc9776612ba6534aca56c0f5b56629f9843f96c459f7951c42afe7e61",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux-commit.txt",
|
||||
"sha256": "75f0994a8bf4bd4d8e6d2d56d9c826f813013bf4632987777d0e12b51802f8fc",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux-tag.json",
|
||||
"sha256": "e140812e2bd8f2078a0e6f089ef8f2103d1e97cdf3f07beeb490499e9a9cae74",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux-tag.txt",
|
||||
"sha256": "75f0994a8bf4bd4d8e6d2d56d9c826f813013bf4632987777d0e12b51802f8fc",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux-tree.json",
|
||||
"sha256": "0838f65ca2f014e48c411ae7abe4d894416224c4c652349fc57510cec5cde21e",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux__LICENSE.txt",
|
||||
"sha256": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux____init__.py",
|
||||
"sha256": "9a5786ef9569223acd235676c08297aff78b2de1e46ab69c96665222b8c2a4b4",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux__node_wrappers__depth_anything.py",
|
||||
"sha256": "f769ac091bd2725065f4d8cddc6fba9ae636d659d16c3d2a79b9c202b099ec17",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux__src__custom_controlnet_aux__depth_anything____init__.py",
|
||||
"sha256": "7bfb7a8efe99bfb5c767fbec3aed311b2ecf87ff8b815fd2080526267a1f025c",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux__src__custom_controlnet_aux__depth_anything__transformers.py",
|
||||
"sha256": "3a78e82530e7608c81eedabba35e4bd6dd8b016708d39d767b28d0c9286f23b8",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux__src__custom_controlnet_aux__util.py",
|
||||
"sha256": "956ff6eb649148c98e68591824e9d029be527ea8f52eb1841b1b1c9f18f37b34",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/aux__utils.py",
|
||||
"sha256": "7d217c7ba934556ee0ffa2ff8cd7a705873381b274db179623c11b829f71a375",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/core0352-absent.json",
|
||||
"sha256": "37517e5f3dc66819f61f5a7bb8ace1921282415f10551d2defa5c3eb0985b570",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/core0352-commit.txt",
|
||||
"sha256": "3a2037a1335eb877de3e8afd872f68791a683482f720dd177872e41432a1adf7",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/core0352-tag.json",
|
||||
"sha256": "6916310507d119fba6e692d26421c53e4a0ec93df31998e19d47c00b9f686520",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/core0352-tag.txt",
|
||||
"sha256": "3a2037a1335eb877de3e8afd872f68791a683482f720dd177872e41432a1adf7",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/core0352-tree.json",
|
||||
"sha256": "99c36e53dced11c8cc86ecc02726687f57c1d64f8773cb22b659a158a4d78796",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/core0352__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/core0352__folder_paths.py",
|
||||
"sha256": "4f3ed98f1f17daa6d933dd9ccff157d18ca63730a40c2fef93dd1b37ae1e2c6b",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/core0352__nodes.py",
|
||||
"sha256": "96c7e4b021af00661140b502873f3a35f0d5de00a14341b27090a8933320410f",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy-absent.json",
|
||||
"sha256": "fc587a716b1852e8d6f54e616f886d7d9a5c857eed565f341ac2c324ef54ef88",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy-commit.txt",
|
||||
"sha256": "7618d488027a8e1ac6a657f6101d2f12452ee8c976b115fd85ab94a150a85194",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy-tag.json",
|
||||
"sha256": "f915fa1d1466b3fc473722255011d48b40a6629417b9c8d2810146f9a8f448e7",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy-tag.txt",
|
||||
"sha256": "7618d488027a8e1ac6a657f6101d2f12452ee8c976b115fd85ab94a150a85194",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy-tree.json",
|
||||
"sha256": "ddb8a942ebb31792866fe90c99904db7643db05400c324fce99f1ed19a2e2028",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy__LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy____init__.py",
|
||||
"sha256": "d225b7157796aa5f015bb28bfa6cee8e3048fb810a45e988122ea3b365bdde22",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy__py__config.py",
|
||||
"sha256": "c1dd81f73ef0803792e40dd803ff4be8defb4b60369e79738f69a3534f77a16c",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy__py__nodes__logic.py",
|
||||
"sha256": "a817877fc8c1074955316e85ff3a3f6487333598940afaea39723f0c5dfcb82b",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy__py__nodes__seed.py",
|
||||
"sha256": "4cea9f85825162015840396fa33cadcb81d749e6c84f46d56bab3063dfbe8542",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy__py__nodes__util.py",
|
||||
"sha256": "5f71760cf9bcb658477e99a6f726159a8bb172ca8215356f31458f97779e1c7f",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy__web_version__v1__js__easy__easyWidgets.js",
|
||||
"sha256": "dbf040f824a2d8eff029cdd965170ab527110fb7cd0485198ff132dafca0c448",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy__web_version__v1__js__poseEditor.js",
|
||||
"sha256": "3b0a85d33509a7f2856bde4395f0a0cbd5835de8801bdd56f3c04a6f2cb8d3e1",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy__web_version__v1__js__seed.js",
|
||||
"sha256": "ac27fc63701c0ca73c8f225c326b5ebbbd3eafb21dc906a3bece2e809a4ba0d3",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/easy__web_version__v2__easyuse.js",
|
||||
"sha256": "5b4046d6faa16117d089a7b9b7dc3e2ac5e855ce60f363bfa0b5ac2f45df1990",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/findings.json",
|
||||
"sha256": "b0fb0112081bf4ae00eca77b3597344f05e2ad4e49229ba681c1dc757e8534e4",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/reel-absent.json",
|
||||
"sha256": "253a77d0370f97c826f2f4d375c5ae58b30e316c16f7bd19caa317afa98a7ad1",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/reel-commit.txt",
|
||||
"sha256": "1dc3d7576a2351ca12e3f674c294e8b61a7b2a8adf319302f7505f8ff049b1a4",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/reel-tag.json",
|
||||
"sha256": "231cd912625e83aca98374706ac19c87e19ae5fc7db5bd839be08685abcd80da",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/reel-tag.txt",
|
||||
"sha256": "1dc3d7576a2351ca12e3f674c294e8b61a7b2a8adf319302f7505f8ff049b1a4",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/reel-tree.json",
|
||||
"sha256": "4463e31ffbf2f408aabfdf36d84b1cd22603091fc2c10738e90b9742af2c2e41",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/reel__LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/reel____init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/reel__py__image_reel.py",
|
||||
"sha256": "d6f792c4e468d6bab6c87cd5632ff2c0cc71da5d603e63181576d2f72443dd8f",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/reel__py__imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/zimage-wash-reference/sources.json",
|
||||
"sha256": "554ff29802aeec9f5bb50de16d97a90f9589d9a2c503af7dd31a005fd3b198a0",
|
||||
"purpose": "准确来源原文、许可或Git对象绑定;静态读取未执行"
|
||||
}
|
||||
],
|
||||
"count": 175,
|
||||
"upstream_executed": false,
|
||||
"note": "commit/tag字节和选定blob已重算;tree列表非完整树对象重哈希。整包SHA来自准确包采集记录,成员重哈希;包到Git未知,未安装。"
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
"List source texts and their identity/permission evidence, without self hashing."
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
from build_definition import OUT, REF, REPO
|
||||
|
||||
|
||||
def main():
|
||||
rows = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
paths = {p.resolve() for p in REF.iterdir() if p.is_file()}
|
||||
for e in rows:
|
||||
paths.add((REF / e["local_file"]).resolve())
|
||||
if not e["license_file"].startswith("未知"):
|
||||
paths.add((REF / e["license_file"]).resolve())
|
||||
if e["id"] == "litegraph":
|
||||
continue
|
||||
if e["id"] == "seedpkg":
|
||||
paths.update(
|
||||
(REF / e["identity_root"] / n).resolve()
|
||||
for n in [
|
||||
"seedpkg-registry.json",
|
||||
"seedpkg-members.json",
|
||||
"seedpkg-acquisition.json",
|
||||
]
|
||||
)
|
||||
continue
|
||||
if e["id"] in ["essentials", "rgthree"]:
|
||||
base = REF / e["identity_root"]
|
||||
names = [e["id"] + "-registry.json", e["id"] + "-members.json"]
|
||||
names += (
|
||||
["essentials-source.tar.gz"]
|
||||
if e["id"] == "essentials"
|
||||
else ["rgthree-range-proof.json"]
|
||||
)
|
||||
paths.update((base / n).resolve() for n in names)
|
||||
continue
|
||||
base = REF / e["identity_root"]
|
||||
paths.update(
|
||||
(base / (e["identity_key"] + suffix)).resolve()
|
||||
for suffix in ["-commit.txt", "-tag.txt", "-tag.json", "-tree.json"]
|
||||
)
|
||||
paths.update(p.resolve() for p in REF.glob("*registry*.json"))
|
||||
result = []
|
||||
for p in sorted(paths):
|
||||
raw = p.read_bytes()
|
||||
result.append(
|
||||
dict(
|
||||
path=str(p.relative_to(REPO)),
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
purpose="准确来源原文、许可或Git对象绑定;静态读取未执行",
|
||||
)
|
||||
)
|
||||
(OUT / "source-closure.json").write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
files=result,
|
||||
count=len(result),
|
||||
upstream_executed=False,
|
||||
note=(
|
||||
"commit/tag字节和选定blob已重算;tree列表非完整树对象"
|
||||
"重哈希。整包SHA来自准确包采集记录,成员重哈希;包到Git未知,未安"
|
||||
"装。"
|
||||
),
|
||||
),
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print("PASS source closure", len(result))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,25 @@
|
||||
# 第87批,仅Z-Image+ControlNet姿势控制-洗图;原PR25/main,基线702c6be64fe6d656a69c68451ee476370216a485。
|
||||
# 静态必要源码/许可,不执行上游、预处理器、模型、媒体、种子、别名或清理。
|
||||
# 既有依赖离线恢复,不增依赖。
|
||||
uv sync --project calliope-backend --offline --extra dev
|
||||
npm ci --offline --ignore-scripts --prefix calliope-web
|
||||
# 仓内已附准确原件,不需联网。仅重新核上游原件时可选如下两条;不下载归档或资产。
|
||||
# PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-wash-document-evidence/prepare_sources.py
|
||||
# PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-wash-document-evidence/complete_sources.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-wash-document-evidence/inventory.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-wash-document-evidence/verify_sources.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-wash-document-evidence/rebuild.py
|
||||
uv run --project calliope-backend --offline ruff format --config calliope-backend/pyproject.toml calliope-backend/src/calliope/comfyui/fixed_document.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-wash-document-evidence/repeat.py
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_zimage_wash_fixed_document.py calliope-backend/tests/test_workflow_library.py -q
|
||||
uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/zimage-wash-document-evidence/*.py calliope-backend/tests/test_zimage_wash_fixed_document.py e2e/run-zimage-wash-document.py calliope-backend/src/calliope/comfyui/fixed_document.py
|
||||
uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/zimage-wash-document-evidence/*.py calliope-backend/tests/test_zimage_wash_fixed_document.py e2e/run-zimage-wash-document.py calliope-backend/src/calliope/comfyui/fixed_document.py
|
||||
node --check e2e/zimage-wash-document.mjs
|
||||
PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/zimage-wash-document-evidence/recompute.py
|
||||
npm run build --prefix calliope-web
|
||||
# 前端build完成后再浏览,不与vite并发写生成目录。
|
||||
PYTHONDONTWRITEBYTECODE=1 LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome calliope-backend/.venv/bin/python e2e/run-zimage-wash-document.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-wash-document-evidence/collect_browser.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/zimage-wash-document-evidence/source_closure.py
|
||||
# 138新增位置/1注释;旧67块逐对象冻结。68图2870位置/75注释仅参考,155定稿0/实跑0/新增转换0。
|
||||
@@ -0,0 +1,215 @@
|
||||
"Verify exact text, Git/package provenance and source graph without upstream imports."
|
||||
|
||||
import ast
|
||||
import hashlib
|
||||
import json
|
||||
import zlib
|
||||
|
||||
from build_definition import OUT, REF, build, canonical
|
||||
from inventory import inventory
|
||||
|
||||
|
||||
def object_hash(kind, raw):
|
||||
return hashlib.sha1(kind.encode() + b" " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
|
||||
|
||||
|
||||
def main():
|
||||
block, inv = build(), inventory()
|
||||
rows = json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
checks = []
|
||||
for e in rows:
|
||||
raw = (REF / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
if e["id"] == "litegraph":
|
||||
root = REF / e["identity_root"]
|
||||
assert (
|
||||
json.loads((root / "litegraph__package__package.json").read_bytes())["version"]
|
||||
== "0.15.15"
|
||||
)
|
||||
front = next(
|
||||
x for x in rows if x["id"] == "frontend" and x["file"] == "package-lock.json"
|
||||
)
|
||||
lock = json.loads((REF / front["local_file"]).read_bytes())
|
||||
assert (
|
||||
lock["packages"]["node_modules/@comfyorg/litegraph"]["integrity"]
|
||||
== "sha512-" + e["artifact_sha512_base64"]
|
||||
)
|
||||
proof = (
|
||||
"Pinned frontend1.23.0 lock, exact0.15."
|
||||
"15 member SHA; whole artifact digest r"
|
||||
"eused, Git unknown"
|
||||
)
|
||||
elif e["id"] == "seedpkg":
|
||||
root = REF / e["identity_root"]
|
||||
acquisition = json.loads((root / "seedpkg-acquisition.json").read_bytes())
|
||||
assert acquisition["archive_sha256"] == e["package_sha256"]
|
||||
assert not acquisition["complete_archive_retained"]
|
||||
member = next(
|
||||
x
|
||||
for x in json.loads((root / "seedpkg-members.json").read_bytes())
|
||||
if x["name"] == e["file"]
|
||||
)
|
||||
assert member["crc"] == e["member_crc32"] == zlib.crc32(raw)
|
||||
assert e["file"] in acquisition["selected_members_verified_before_removal"]
|
||||
assert json.loads((root / "seedpkg-registry.json").read_bytes())["version"] == "2.5.22"
|
||||
proof = (
|
||||
"Exact2.5.22 acquisition SHA recorded; retained text SHA/CRC rechecked; "
|
||||
"full archive removed, Git unknown"
|
||||
)
|
||||
else:
|
||||
root = REF / e["identity_root"]
|
||||
key = e["identity_key"]
|
||||
commit = (root / (key + "-commit.txt")).read_bytes()
|
||||
tree = json.loads((root / (key + "-tree.json")).read_bytes())
|
||||
assert object_hash("commit", commit) == e["commit"]
|
||||
assert commit.decode().splitlines()[0] == "tree " + e["tree"] == "tree " + tree["sha"]
|
||||
assert not tree["truncated"]
|
||||
assert (
|
||||
next(t["sha"] for t in tree["tree"] if t["path"] == e["file"])
|
||||
== e["git_blob_sha1"]
|
||||
== object_hash("blob", raw)
|
||||
)
|
||||
tag = json.loads((root / (key + "-tag.json")).read_bytes())
|
||||
tag_raw = (root / (key + "-tag.txt")).read_bytes()
|
||||
assert tag["commit"] == e["commit"]
|
||||
if tag["object"] == e["commit"]:
|
||||
assert tag_raw == commit
|
||||
else:
|
||||
assert object_hash("tag", tag_raw) == tag["object"]
|
||||
assert tag_raw.decode().startswith("object " + e["commit"] + "\n")
|
||||
proof = (
|
||||
"Rehashed commit/tag/selected blo"
|
||||
"b; complete tree listing, not fu"
|
||||
"ll tree-object rehash"
|
||||
)
|
||||
if not e["license_file"].startswith("未知"):
|
||||
license_row = next(
|
||||
x for x in rows if x["id"] == e["id"] and x["local_file"] == e["license_file"]
|
||||
)
|
||||
assert (
|
||||
hashlib.sha256((REF / e["license_file"]).read_bytes()).hexdigest()
|
||||
== license_row["sha256"]
|
||||
)
|
||||
checks.append(dict(id=e["id"], file=e["file"], sha256=e["sha256"], proof=proof))
|
||||
assert len(inv["fields"]) == 138 and len(inv["notes"]) == 1
|
||||
assert inv["scopes"][0]["nodes"] == 66 and inv["scopes"][0]["edges"] == 63
|
||||
assert sum(n["mode"] == 0 for n in inv["nodes"]) == 56
|
||||
assert sum(n["mode"] == 4 for n in inv["nodes"]) == 10
|
||||
assert sum(f["json_type"] == "list" for f in inv["fields"]) == 2
|
||||
assert sum(f["json_type"] == "NoneType" for f in inv["fields"]) == 1
|
||||
assert {n["node"] for n in inv["empty"] if n["state"] == "empty_list"} == {
|
||||
311,
|
||||
322,
|
||||
617,
|
||||
294,
|
||||
233,
|
||||
}
|
||||
assert {n["node"] for n in inv["empty"] if n["state"] == "missing"} == {
|
||||
310,
|
||||
316,
|
||||
317,
|
||||
616,
|
||||
397,
|
||||
626,
|
||||
318,
|
||||
315,
|
||||
319,
|
||||
628,
|
||||
242,
|
||||
682,
|
||||
}
|
||||
assert [(n["node"], len(n["text"])) for n in inv["notes"]] == [(681, 11)]
|
||||
for a, f in zip(inv["fields"], block["fields"], strict=True):
|
||||
assert (a["pointer"], a["json_type"], canonical(a["value"])) == (
|
||||
f["pointer"],
|
||||
f["json_type"],
|
||||
canonical(f["value"]),
|
||||
)
|
||||
assert [(n["node"], n["pointer"], n["text"]) for n in inv["notes"]] == [
|
||||
(int(n["node_id"]), n["pointer"], n["text"]) for n in block["comments"]
|
||||
]
|
||||
ns = {n["id"]: n for n in inv["nodes"]}
|
||||
mismatches = []
|
||||
for eid, a, ao, z, zi, kind in inv["links"]:
|
||||
src, dst = ns[a]["outputs"][ao], ns[z]["inputs"][zi]
|
||||
assert eid in src["links"] and dst["link"] == eid
|
||||
if not (src["type"] == "*" or kind == src["type"]) or not (
|
||||
dst["type"] == "*" or kind == dst["type"]
|
||||
):
|
||||
mismatches.append(
|
||||
dict(
|
||||
edge=eid, source_type=src["type"], destination_type=dst["type"], edge_type=kind
|
||||
)
|
||||
)
|
||||
assert ns[143]["outputs"][1]["links"] == []
|
||||
assert ns[303]["widgets_values"] == ["DepthAnythingPreprocessor", 1024]
|
||||
assert ns[321]["widgets_values"][6:8] == ["total_pixel(kilo pixel)", 2048]
|
||||
assert [x.get("link") for x in ns[675]["inputs"][:2]] == [3406, 3407]
|
||||
assert ns[313]["inputs"][0]["link"] == 3270 and ns[314]["inputs"][0]["link"] == 3130
|
||||
assert ns[313]["inputs"][3]["link"] == 3408 and ns[314]["inputs"][3]["link"] == 2687
|
||||
assert ns[313]["inputs"][5]["link"] == 3097 and ns[314]["inputs"][5]["link"] == 3112
|
||||
assert ns[618]["widgets_values"] == [9528, "fixed", None]
|
||||
assert "ver" not in ns[679]["properties"] and "cnr_id" not in ns[679]["properties"]
|
||||
assert not any(n["type"] in ["VAEEncode", "SetLatentNoiseMask"] for n in inv["nodes"])
|
||||
assert ns[629]["widgets_values"][0] == "seedvr2_ema_3b_fp8_e4m3fn.safetensors"
|
||||
assert ns[231]["inputs"][1]["link"] == 2067 and ns[230]["widgets_values"] == ["SeedVR 修复"]
|
||||
assert (
|
||||
inv["extra"]["frontendVersion"] == "1.23.0"
|
||||
and inv["extra"]["workflowRendererVersion"] == "LG"
|
||||
)
|
||||
output_checks = []
|
||||
for nid, key in [
|
||||
(295, "core0375"),
|
||||
(234, "core0367"),
|
||||
(322, "core0376"),
|
||||
(617, "core051"),
|
||||
(233, "core0359"),
|
||||
]:
|
||||
e = next(e for e in rows if e["id"] == key and e["file"] == "nodes.py")
|
||||
tree = ast.parse((REF / e["local_file"]).read_bytes())
|
||||
save = next(c for c in tree.body if isinstance(c, ast.ClassDef) and c.name == "SaveImage")
|
||||
ret = next(
|
||||
c.value
|
||||
for c in save.body
|
||||
if isinstance(c, ast.Assign)
|
||||
and any(isinstance(t, ast.Name) and t.id == "RETURN_TYPES" for t in c.targets)
|
||||
)
|
||||
assert isinstance(ret, ast.Tuple) and ret.elts == []
|
||||
if ns[nid]["type"] == "PreviewImage":
|
||||
preview = next(
|
||||
c for c in tree.body if isinstance(c, ast.ClassDef) and c.name == "PreviewImage"
|
||||
)
|
||||
assert [ast.unparse(b) for b in preview.bases] == ["SaveImage"]
|
||||
assert not any(
|
||||
isinstance(c, ast.Assign)
|
||||
and any(isinstance(t, ast.Name) and t.id == "RETURN_TYPES" for t in c.targets)
|
||||
for c in preview.body
|
||||
)
|
||||
output_checks.append(
|
||||
dict(
|
||||
node=nid,
|
||||
saved_widgets=ns[nid]["widgets_values"],
|
||||
source_outputs=ns[nid]["outputs"],
|
||||
accurate_return_types=[],
|
||||
source_id=key,
|
||||
)
|
||||
)
|
||||
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())
|
||||
result = dict(
|
||||
sources=checks,
|
||||
counts=block["counts"],
|
||||
physical_edges_checked=63,
|
||||
exact_core_output_checks=output_checks,
|
||||
original_type_mismatches=mismatches,
|
||||
inventory_matches_definition=True,
|
||||
no_upstream_execution=True,
|
||||
)
|
||||
(OUT / "source-check.json").write_text(json.dumps(result, ensure_ascii=False, indent=2) + "\n")
|
||||
print("PASS exact Git/package text, 138 positions, 1 note, 63 physical edges")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,5 @@
|
||||
[
|
||||
"src/controlnet_aux/depth_anything/__init__.py",
|
||||
"src/controlnet_aux/util.py",
|
||||
"LICENSE"
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
tree 773982bb251732fbdf48ed6cb1bef33f146849ee
|
||||
parent 18fb8e40341fdfbef04e172eb84611b05e6ffa37
|
||||
author H.D.Tài 🇻🇳 <tai17082006.tk@gmail.com> 1761279515 +0700
|
||||
committer GitHub <noreply@github.com> 1761279515 +0700
|
||||
gpgsig -----BEGIN PGP SIGNATURE-----
|
||||
|
||||
wsFcBAABCAAQBQJo+v4bCRC1aQ7uu5UhlAAAPjgQAIKyRewcEdH3MezCipUJ7oW9
|
||||
HLDZfwlpb4tG4/POWy5TNON0jFivBpLiu3Xzjfe3d6UvUELJx+7QfBUGXZuYlvhd
|
||||
BRXRAt2HpGpbTABemK7iI0V+2+cqWI9Y2ajwx3Z/2HIyYo4R5RT/XpaT15N5tpXI
|
||||
mFjZH4EQpaCDF8NM67xPIesG6QOfw1l1IP5lJ4kgUUDKmzUTZa2mPa35eTKuntYl
|
||||
motW+xncEHnJQX+aE87nYQ+QU06TJ5bgNHyu3sJs0o2aZ0tSad9tg239k9w/T6SM
|
||||
LsoRVtm47ZhJLZh85FveAG/iNs3b792tiXKw8uMm3eaod3jK738f47Ja+gOTxSKJ
|
||||
KRVpDu9Z37SqPETWuddBcI1HVwS9EaiwPmu0OgT16AehcRJCAIojFig+qDl1Qcj8
|
||||
kkEHQnAZ9LO7U81jBkhhIjXn8zLlAYsZu672aAF7twq1i3Um61qCM+rijVDsZZhu
|
||||
gCZeL3svOeeuPL3GzTTlEBGD4Tyimma7b4bdXlGFaH/rIclLI+nxsAN2GRTo3iJ4
|
||||
0C6DJvQaQpiRRtSOtmmrK0oH7BgykvZ720IvXa77F1YXDvQlTSYvt8KM+g0AMXE3
|
||||
VvbjCqDfJwhbo1Q2VBPn1o7F7aV+JdUbVb7uFmogXcBvFTfkCvs+iRZhL+zuhxWY
|
||||
4lMV8D6PU3u2dK2EzCxy
|
||||
=NJ4L
|
||||
-----END PGP SIGNATURE-----
|
||||
|
||||
|
||||
Bump version from 1.1.2 to 1.1.3
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "12f35647f0d510e03b45a47fb420fe1245a575df",
|
||||
"commit": "12f35647f0d510e03b45a47fb420fe1245a575df",
|
||||
"object": "12f35647f0d510e03b45a47fb420fe1245a575df"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
tree 773982bb251732fbdf48ed6cb1bef33f146849ee
|
||||
parent 18fb8e40341fdfbef04e172eb84611b05e6ffa37
|
||||
author H.D.Tài 🇻🇳 <tai17082006.tk@gmail.com> 1761279515 +0700
|
||||
committer GitHub <noreply@github.com> 1761279515 +0700
|
||||
gpgsig -----BEGIN PGP SIGNATURE-----
|
||||
|
||||
wsFcBAABCAAQBQJo+v4bCRC1aQ7uu5UhlAAAPjgQAIKyRewcEdH3MezCipUJ7oW9
|
||||
HLDZfwlpb4tG4/POWy5TNON0jFivBpLiu3Xzjfe3d6UvUELJx+7QfBUGXZuYlvhd
|
||||
BRXRAt2HpGpbTABemK7iI0V+2+cqWI9Y2ajwx3Z/2HIyYo4R5RT/XpaT15N5tpXI
|
||||
mFjZH4EQpaCDF8NM67xPIesG6QOfw1l1IP5lJ4kgUUDKmzUTZa2mPa35eTKuntYl
|
||||
motW+xncEHnJQX+aE87nYQ+QU06TJ5bgNHyu3sJs0o2aZ0tSad9tg239k9w/T6SM
|
||||
LsoRVtm47ZhJLZh85FveAG/iNs3b792tiXKw8uMm3eaod3jK738f47Ja+gOTxSKJ
|
||||
KRVpDu9Z37SqPETWuddBcI1HVwS9EaiwPmu0OgT16AehcRJCAIojFig+qDl1Qcj8
|
||||
kkEHQnAZ9LO7U81jBkhhIjXn8zLlAYsZu672aAF7twq1i3Um61qCM+rijVDsZZhu
|
||||
gCZeL3svOeeuPL3GzTTlEBGD4Tyimma7b4bdXlGFaH/rIclLI+nxsAN2GRTo3iJ4
|
||||
0C6DJvQaQpiRRtSOtmmrK0oH7BgykvZ720IvXa77F1YXDvQlTSYvt8KM+g0AMXE3
|
||||
VvbjCqDfJwhbo1Q2VBPn1o7F7aV+JdUbVb7uFmogXcBvFTfkCvs+iRZhL+zuhxWY
|
||||
4lMV8D6PU3u2dK2EzCxy
|
||||
=NJ4L
|
||||
-----END PGP SIGNATURE-----
|
||||
|
||||
|
||||
Bump version from 1.1.2 to 1.1.3
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -0,0 +1,224 @@
|
||||
import sys, os
|
||||
|
||||
# Disable NPU device initialization and problematic MMCV ops to prevent RuntimeError
|
||||
# Must be set BEFORE any MMCV imports happen anywhere in ComfyUI
|
||||
os.environ['NPU_DEVICE_COUNT'] = '0'
|
||||
os.environ['MMCV_WITH_OPS'] = '0'
|
||||
from .utils import here, define_preprocessor_inputs, INPUT
|
||||
from pathlib import Path
|
||||
import traceback
|
||||
import importlib
|
||||
from .log import log, blue_text, cyan_text, get_summary, get_label
|
||||
from .hint_image_enchance import NODE_CLASS_MAPPINGS as HIE_NODE_CLASS_MAPPINGS
|
||||
from .hint_image_enchance import NODE_DISPLAY_NAME_MAPPINGS as HIE_NODE_DISPLAY_NAME_MAPPINGS
|
||||
#Ref: https://github.com/comfyanonymous/ComfyUI/blob/76d53c4622fc06372975ed2a43ad345935b8a551/nodes.py#L17
|
||||
sys.path.insert(0, str(Path(here, "src").resolve()))
|
||||
for pkg_name in ["custom_controlnet_aux", "custom_mmpkg"]:
|
||||
sys.path.append(str(Path(here, "src", pkg_name).resolve()))
|
||||
|
||||
#Enable CPU fallback for ops not being supported by MPS like upsample_bicubic2d.out
|
||||
#https://github.com/pytorch/pytorch/issues/77764
|
||||
#https://github.com/Fannovel16/comfyui_controlnet_aux/issues/2#issuecomment-1763579485
|
||||
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = os.getenv("PYTORCH_ENABLE_MPS_FALLBACK", '1')
|
||||
|
||||
|
||||
def load_nodes():
|
||||
shorted_errors = []
|
||||
full_error_messages = []
|
||||
node_class_mappings = {}
|
||||
node_display_name_mappings = {}
|
||||
|
||||
for filename in (here / "node_wrappers").iterdir():
|
||||
module_name = filename.stem
|
||||
if module_name.startswith('.'): continue #Skip hidden files created by the OS (e.g. [.DS_Store](https://en.wikipedia.org/wiki/.DS_Store))
|
||||
try:
|
||||
module = importlib.import_module(
|
||||
f".node_wrappers.{module_name}", package=__package__
|
||||
)
|
||||
node_class_mappings.update(getattr(module, "NODE_CLASS_MAPPINGS"))
|
||||
if hasattr(module, "NODE_DISPLAY_NAME_MAPPINGS"):
|
||||
node_display_name_mappings.update(getattr(module, "NODE_DISPLAY_NAME_MAPPINGS"))
|
||||
|
||||
log.debug(f"Imported {module_name} nodes")
|
||||
|
||||
except AttributeError:
|
||||
pass # wip nodes
|
||||
except Exception:
|
||||
error_message = traceback.format_exc()
|
||||
full_error_messages.append(error_message)
|
||||
error_message = error_message.splitlines()[-1]
|
||||
shorted_errors.append(
|
||||
f"Failed to import module {module_name} because {error_message}"
|
||||
)
|
||||
|
||||
if len(shorted_errors) > 0:
|
||||
full_err_log = '\n\n'.join(full_error_messages)
|
||||
print(f"\n\nFull error log from comfyui_controlnet_aux: \n{full_err_log}\n\n")
|
||||
log.info(
|
||||
f"Some nodes failed to load:\n\t"
|
||||
+ "\n\t".join(shorted_errors)
|
||||
+ "\n\n"
|
||||
+ "Check that you properly installed the dependencies.\n"
|
||||
+ "If you think this is a bug, please report it on the github page (https://github.com/Fannovel16/comfyui_controlnet_aux/issues)"
|
||||
)
|
||||
return node_class_mappings, node_display_name_mappings
|
||||
|
||||
AUX_NODE_MAPPINGS, AUX_DISPLAY_NAME_MAPPINGS = load_nodes()
|
||||
|
||||
#For nodes not mapping image to image or has special requirements
|
||||
AIO_NOT_SUPPORTED = ["InpaintPreprocessor", "MeshGraphormer+ImpactDetector-DepthMapPreprocessor", "DiffusionEdge_Preprocessor"]
|
||||
AIO_NOT_SUPPORTED += ["SavePoseKpsAsJsonFile", "FacialPartColoringFromPoseKps", "UpperBodyTrackingFromPoseKps", "RenderPeopleKps", "RenderAnimalKps"]
|
||||
AIO_NOT_SUPPORTED += ["Unimatch_OptFlowPreprocessor", "MaskOptFlow"]
|
||||
|
||||
def preprocessor_options():
|
||||
auxs = list(AUX_NODE_MAPPINGS.keys())
|
||||
auxs.insert(0, "none")
|
||||
for name in AIO_NOT_SUPPORTED:
|
||||
if name in auxs:
|
||||
auxs.remove(name)
|
||||
return auxs
|
||||
|
||||
|
||||
PREPROCESSOR_OPTIONS = preprocessor_options()
|
||||
|
||||
class AIO_Preprocessor:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return define_preprocessor_inputs(
|
||||
preprocessor=INPUT.COMBO(PREPROCESSOR_OPTIONS, default="none"),
|
||||
resolution=INPUT.RESOLUTION()
|
||||
)
|
||||
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "execute"
|
||||
|
||||
CATEGORY = "ControlNet Preprocessors"
|
||||
|
||||
def execute(self, preprocessor, image, resolution=512):
|
||||
if preprocessor == "none":
|
||||
return (image, )
|
||||
else:
|
||||
aux_class = AUX_NODE_MAPPINGS[preprocessor]
|
||||
input_types = aux_class.INPUT_TYPES()
|
||||
input_types = {
|
||||
**input_types["required"],
|
||||
**(input_types["optional"] if "optional" in input_types else {})
|
||||
}
|
||||
params = {}
|
||||
for name, input_type in input_types.items():
|
||||
if name == "image":
|
||||
params[name] = image
|
||||
continue
|
||||
|
||||
if name == "resolution":
|
||||
params[name] = resolution
|
||||
continue
|
||||
|
||||
if len(input_type) == 2 and ("default" in input_type[1]):
|
||||
params[name] = input_type[1]["default"]
|
||||
continue
|
||||
|
||||
default_values = { "INT": 0, "FLOAT": 0.0 }
|
||||
if type(input_type[0]) is list:
|
||||
for input_type_value in input_type[0]:
|
||||
if input_type_value in default_values:
|
||||
params[name] = default_values[input_type[0]]
|
||||
else:
|
||||
if input_type[0] in default_values:
|
||||
params[name] = default_values[input_type[0]]
|
||||
|
||||
return getattr(aux_class(), aux_class.FUNCTION)(**params)
|
||||
|
||||
class ControlNetAuxSimpleAddText:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return dict(
|
||||
required=dict(image=INPUT.IMAGE(), text=INPUT.STRING())
|
||||
)
|
||||
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "execute"
|
||||
CATEGORY = "ControlNet Preprocessors"
|
||||
def execute(self, image, text):
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
import numpy as np
|
||||
import torch
|
||||
|
||||
font = ImageFont.truetype(str((here / "NotoSans-Regular.ttf").resolve()), 40)
|
||||
img = Image.fromarray(image[0].cpu().numpy().__mul__(255.).astype(np.uint8))
|
||||
ImageDraw.Draw(img).text((0,0), text, fill=(0,255,0), font=font)
|
||||
return (torch.from_numpy(np.array(img)).unsqueeze(0) / 255.,)
|
||||
|
||||
class ExecuteAllControlNetPreprocessors:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return define_preprocessor_inputs(resolution=INPUT.RESOLUTION())
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "execute"
|
||||
|
||||
CATEGORY = "ControlNet Preprocessors"
|
||||
|
||||
def execute(self, image, resolution=512):
|
||||
try:
|
||||
from comfy_execution.graph_utils import GraphBuilder
|
||||
except:
|
||||
raise RuntimeError("ExecuteAllControlNetPreprocessor requries [Execution Model Inversion](https://github.com/comfyanonymous/ComfyUI/commit/5cfe38). Update ComfyUI/SwarmUI to get this feature")
|
||||
|
||||
graph = GraphBuilder()
|
||||
curr_outputs = []
|
||||
for preprocc in PREPROCESSOR_OPTIONS:
|
||||
preprocc_node = graph.node("AIO_Preprocessor", preprocessor=preprocc, image=image, resolution=resolution)
|
||||
hint_img = preprocc_node.out(0)
|
||||
add_text_node = graph.node("ControlNetAuxSimpleAddText", image=hint_img, text=preprocc)
|
||||
curr_outputs.append(add_text_node.out(0))
|
||||
|
||||
while len(curr_outputs) > 1:
|
||||
_outputs = []
|
||||
for i in range(0, len(curr_outputs), 2):
|
||||
if i+1 < len(curr_outputs):
|
||||
image_batch = graph.node("ImageBatch", image1=curr_outputs[i], image2=curr_outputs[i+1])
|
||||
_outputs.append(image_batch.out(0))
|
||||
else:
|
||||
_outputs.append(curr_outputs[i])
|
||||
curr_outputs = _outputs
|
||||
|
||||
return {
|
||||
"result": (curr_outputs[0],),
|
||||
"expand": graph.finalize(),
|
||||
}
|
||||
|
||||
class ControlNetPreprocessorSelector:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"preprocessor": (PREPROCESSOR_OPTIONS,),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = (PREPROCESSOR_OPTIONS,)
|
||||
RETURN_NAMES = ("preprocessor",)
|
||||
FUNCTION = "get_preprocessor"
|
||||
|
||||
CATEGORY = "ControlNet Preprocessors"
|
||||
|
||||
def get_preprocessor(self, preprocessor: str):
|
||||
return (preprocessor,)
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
**AUX_NODE_MAPPINGS,
|
||||
"AIO_Preprocessor": AIO_Preprocessor,
|
||||
"ControlNetPreprocessorSelector": ControlNetPreprocessorSelector,
|
||||
**HIE_NODE_CLASS_MAPPINGS,
|
||||
"ExecuteAllControlNetPreprocessors": ExecuteAllControlNetPreprocessors,
|
||||
"ControlNetAuxSimpleAddText": ControlNetAuxSimpleAddText
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
**AUX_DISPLAY_NAME_MAPPINGS,
|
||||
"AIO_Preprocessor": "AIO Aux Preprocessor",
|
||||
"ControlNetPreprocessorSelector": "Preprocessor Selector",
|
||||
**HIE_NODE_DISPLAY_NAME_MAPPINGS,
|
||||
"ExecuteAllControlNetPreprocessors": "Execute All ControlNet Preprocessors"
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
from ..utils import common_annotator_call, define_preprocessor_inputs, INPUT
|
||||
import comfy.model_management as model_management
|
||||
|
||||
class Depth_Anything_Preprocessor:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return define_preprocessor_inputs(
|
||||
ckpt_name=INPUT.COMBO(
|
||||
["depth_anything_vitl14.pth", "depth_anything_vitb14.pth", "depth_anything_vits14.pth"]
|
||||
),
|
||||
resolution=INPUT.RESOLUTION()
|
||||
)
|
||||
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "execute"
|
||||
|
||||
CATEGORY = "ControlNet Preprocessors/Normal and Depth Estimators"
|
||||
|
||||
def execute(self, image, ckpt_name="depth_anything_vitl14.pth", resolution=512, **kwargs):
|
||||
from custom_controlnet_aux.depth_anything import DepthAnythingDetector
|
||||
|
||||
model = DepthAnythingDetector.from_pretrained(filename=ckpt_name).to(model_management.get_torch_device())
|
||||
out = common_annotator_call(model, image, resolution=resolution)
|
||||
del model
|
||||
return (out, )
|
||||
|
||||
class Zoe_Depth_Anything_Preprocessor:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return define_preprocessor_inputs(
|
||||
environment=INPUT.COMBO(["indoor", "outdoor"]),
|
||||
resolution=INPUT.RESOLUTION()
|
||||
)
|
||||
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "execute"
|
||||
|
||||
CATEGORY = "ControlNet Preprocessors/Normal and Depth Estimators"
|
||||
|
||||
def execute(self, image, environment="indoor", resolution=512, **kwargs):
|
||||
from custom_controlnet_aux.zoe import ZoeDepthAnythingDetector
|
||||
ckpt_name = "depth_anything_metric_depth_indoor.pt" if environment == "indoor" else "depth_anything_metric_depth_outdoor.pt"
|
||||
model = ZoeDepthAnythingDetector.from_pretrained(filename=ckpt_name).to(model_management.get_torch_device())
|
||||
out = common_annotator_call(model, image, resolution=resolution)
|
||||
del model
|
||||
return (out, )
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"DepthAnythingPreprocessor": Depth_Anything_Preprocessor,
|
||||
"Zoe_DepthAnythingPreprocessor": Zoe_Depth_Anything_Preprocessor
|
||||
}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"DepthAnythingPreprocessor": "Depth Anything",
|
||||
"Zoe_DepthAnythingPreprocessor": "Zoe Depth Anything"
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
from .transformers import DepthAnythingDetector
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
"""
|
||||
Modern DepthAnything implementation using HuggingFace transformers.
|
||||
Replaces legacy torch.hub.load DINOv2 backbone with transformers pipeline.
|
||||
"""
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from PIL import Image
|
||||
from transformers import pipeline
|
||||
|
||||
from custom_controlnet_aux.util import HWC3, common_input_validate, resize_image_with_pad
|
||||
|
||||
class DepthAnythingDetector:
|
||||
"""DepthAnything depth estimation using HuggingFace transformers."""
|
||||
|
||||
def __init__(self, model_name="LiheYoung/depth-anything-large-hf"):
|
||||
"""Initialize DepthAnything with specified model."""
|
||||
self.pipe = pipeline(task="depth-estimation", model=model_name)
|
||||
self.device = "cpu"
|
||||
|
||||
@classmethod
|
||||
def from_pretrained(cls, pretrained_model_or_path=None, filename="depth_anything_vitl14.pth"):
|
||||
"""Create DepthAnything from pretrained model, mapping legacy names to HuggingFace models."""
|
||||
|
||||
# Map legacy checkpoint names to modern HuggingFace models
|
||||
model_mapping = {
|
||||
"depth_anything_vitl14.pth": "LiheYoung/depth-anything-large-hf",
|
||||
"depth_anything_vitb14.pth": "LiheYoung/depth-anything-base-hf",
|
||||
"depth_anything_vits14.pth": "LiheYoung/depth-anything-small-hf"
|
||||
}
|
||||
|
||||
model_name = model_mapping.get(filename, "LiheYoung/depth-anything-large-hf")
|
||||
return cls(model_name=model_name)
|
||||
|
||||
def to(self, device):
|
||||
"""Move model to specified device."""
|
||||
self.pipe.model = self.pipe.model.to(device)
|
||||
self.device = device
|
||||
return self
|
||||
|
||||
def __call__(self, input_image, detect_resolution=512, output_type=None, upscale_method="INTER_CUBIC", **kwargs):
|
||||
"""Perform depth estimation on input image."""
|
||||
input_image, output_type = common_input_validate(input_image, output_type, **kwargs)
|
||||
input_image, remove_pad = resize_image_with_pad(input_image, detect_resolution, upscale_method)
|
||||
|
||||
if isinstance(input_image, np.ndarray):
|
||||
pil_image = Image.fromarray(input_image)
|
||||
else:
|
||||
pil_image = input_image
|
||||
|
||||
with torch.no_grad():
|
||||
result = self.pipe(pil_image)
|
||||
depth = result["depth"]
|
||||
|
||||
if isinstance(depth, Image.Image):
|
||||
depth_array = np.array(depth, dtype=np.float32)
|
||||
else:
|
||||
depth_array = np.array(depth)
|
||||
|
||||
# Normalize depth values to 0-255 range
|
||||
depth_min = depth_array.min()
|
||||
depth_max = depth_array.max()
|
||||
if depth_max > depth_min:
|
||||
depth_array = (depth_array - depth_min) / (depth_max - depth_min) * 255.0
|
||||
else:
|
||||
depth_array = np.zeros_like(depth_array)
|
||||
|
||||
depth_image = depth_array.astype(np.uint8)
|
||||
|
||||
detected_map = remove_pad(HWC3(depth_image))
|
||||
|
||||
if output_type == "pil":
|
||||
detected_map = Image.fromarray(detected_map)
|
||||
|
||||
return detected_map
|
||||
@@ -0,0 +1,350 @@
|
||||
import os
|
||||
import random
|
||||
import tempfile
|
||||
import warnings
|
||||
from contextlib import suppress
|
||||
from pathlib import Path
|
||||
|
||||
import cv2
|
||||
import numpy as np
|
||||
import torch
|
||||
from huggingface_hub import constants, hf_hub_download
|
||||
from torch.utils.model_zoo import load_url
|
||||
from ast import literal_eval
|
||||
|
||||
|
||||
HF_MODEL_NAME = "lllyasviel/Annotators"
|
||||
DWPOSE_MODEL_NAME = "yzd-v/DWPose"
|
||||
BDS_MODEL_NAME = "bdsqlsz/qinglong_controlnet-lllite"
|
||||
DENSEPOSE_MODEL_NAME = "LayerNorm/DensePose-TorchScript-with-hint-image"
|
||||
MESH_GRAPHORMER_MODEL_NAME = "hr16/ControlNet-HandRefiner-pruned"
|
||||
SAM_MODEL_NAME = "dhkim2810/MobileSAM"
|
||||
UNIMATCH_MODEL_NAME = "hr16/Unimatch"
|
||||
DEPTH_ANYTHING_MODEL_NAME = "LiheYoung/Depth-Anything" #HF Space
|
||||
DIFFUSION_EDGE_MODEL_NAME = "hr16/Diffusion-Edge"
|
||||
METRIC3D_MODEL_NAME = "JUGGHM/Metric3D"
|
||||
|
||||
DEPTH_ANYTHING_V2_MODEL_NAME_DICT = {
|
||||
"depth_anything_v2_vits.pth": "depth-anything/Depth-Anything-V2-Small",
|
||||
"depth_anything_v2_vitb.pth": "depth-anything/Depth-Anything-V2-Base",
|
||||
"depth_anything_v2_vitl.pth": "depth-anything/Depth-Anything-V2-Large",
|
||||
"depth_anything_v2_vitg.pth": "depth-anything/Depth-Anything-V2-Giant",
|
||||
"depth_anything_v2_metric_vkitti_vitl.pth": "depth-anything/Depth-Anything-V2-Metric-VKITTI-Large",
|
||||
"depth_anything_v2_metric_hypersim_vitl.pth": "depth-anything/Depth-Anything-V2-Metric-Hypersim-Large"
|
||||
}
|
||||
|
||||
temp_dir = tempfile.gettempdir()
|
||||
annotator_ckpts_path = os.path.join(Path(__file__).parents[2], 'ckpts')
|
||||
USE_SYMLINKS = False
|
||||
|
||||
try:
|
||||
annotator_ckpts_path = os.environ['AUX_ANNOTATOR_CKPTS_PATH']
|
||||
except:
|
||||
warnings.warn("Custom pressesor model path not set successfully.")
|
||||
pass
|
||||
|
||||
try:
|
||||
USE_SYMLINKS = literal_eval(os.environ['AUX_USE_SYMLINKS'])
|
||||
except:
|
||||
warnings.warn("USE_SYMLINKS not set successfully. Using default value: False to download models.")
|
||||
pass
|
||||
|
||||
try:
|
||||
temp_dir = os.environ['AUX_TEMP_DIR']
|
||||
if len(temp_dir) >= 60:
|
||||
warnings.warn(f"custom temp dir is too long. Using default")
|
||||
temp_dir = tempfile.gettempdir()
|
||||
except:
|
||||
warnings.warn(f"custom temp dir not set successfully")
|
||||
pass
|
||||
|
||||
here = Path(__file__).parent.resolve()
|
||||
|
||||
def HWC3(x):
|
||||
assert x.dtype == np.uint8
|
||||
if x.ndim == 2:
|
||||
x = x[:, :, None]
|
||||
assert x.ndim == 3
|
||||
H, W, C = x.shape
|
||||
assert C == 1 or C == 3 or C == 4
|
||||
if C == 3:
|
||||
return x
|
||||
if C == 1:
|
||||
return np.concatenate([x, x, x], axis=2)
|
||||
if C == 4:
|
||||
color = x[:, :, 0:3].astype(np.float32)
|
||||
alpha = x[:, :, 3:4].astype(np.float32) / 255.0
|
||||
y = color * alpha + 255.0 * (1.0 - alpha)
|
||||
y = y.clip(0, 255).astype(np.uint8)
|
||||
return y
|
||||
|
||||
|
||||
def make_noise_disk(H, W, C, F, rng=None):
|
||||
if rng:
|
||||
noise = rng.uniform(low=0, high=1, size=((H // F) + 2, (W // F) + 2, C))
|
||||
else:
|
||||
noise = np.random.uniform(low=0, high=1, size=((H // F) + 2, (W // F) + 2, C))
|
||||
noise = cv2.resize(noise, (W + 2 * F, H + 2 * F), interpolation=cv2.INTER_CUBIC)
|
||||
noise = noise[F: F + H, F: F + W]
|
||||
noise -= np.min(noise)
|
||||
noise /= np.max(noise)
|
||||
if C == 1:
|
||||
noise = noise[:, :, None]
|
||||
return noise
|
||||
|
||||
|
||||
def nms(x, t, s):
|
||||
x = cv2.GaussianBlur(x.astype(np.float32), (0, 0), s)
|
||||
|
||||
f1 = np.array([[0, 0, 0], [1, 1, 1], [0, 0, 0]], dtype=np.uint8)
|
||||
f2 = np.array([[0, 1, 0], [0, 1, 0], [0, 1, 0]], dtype=np.uint8)
|
||||
f3 = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]], dtype=np.uint8)
|
||||
f4 = np.array([[0, 0, 1], [0, 1, 0], [1, 0, 0]], dtype=np.uint8)
|
||||
|
||||
y = np.zeros_like(x)
|
||||
|
||||
for f in [f1, f2, f3, f4]:
|
||||
np.putmask(y, cv2.dilate(x, kernel=f) == x, x)
|
||||
|
||||
z = np.zeros_like(y, dtype=np.uint8)
|
||||
z[y > t] = 255
|
||||
return z
|
||||
|
||||
def min_max_norm(x):
|
||||
x -= np.min(x)
|
||||
x /= np.maximum(np.max(x), 1e-5)
|
||||
return x
|
||||
|
||||
|
||||
def safe_step(x, step=2):
|
||||
y = x.astype(np.float32) * float(step + 1)
|
||||
y = y.astype(np.int32).astype(np.float32) / float(step)
|
||||
return y
|
||||
|
||||
|
||||
def img2mask(img, H, W, low=10, high=90):
|
||||
assert img.ndim == 3 or img.ndim == 2
|
||||
assert img.dtype == np.uint8
|
||||
|
||||
if img.ndim == 3:
|
||||
y = img[:, :, random.randrange(0, img.shape[2])]
|
||||
else:
|
||||
y = img
|
||||
|
||||
y = cv2.resize(y, (W, H), interpolation=cv2.INTER_CUBIC)
|
||||
|
||||
if random.uniform(0, 1) < 0.5:
|
||||
y = 255 - y
|
||||
|
||||
return y < np.percentile(y, random.randrange(low, high))
|
||||
|
||||
def safer_memory(x):
|
||||
# Fix many MAC/AMD problems
|
||||
return np.ascontiguousarray(x.copy()).copy()
|
||||
|
||||
UPSCALE_METHODS = ["INTER_NEAREST", "INTER_LINEAR", "INTER_AREA", "INTER_CUBIC", "INTER_LANCZOS4"]
|
||||
def get_upscale_method(method_str):
|
||||
assert method_str in UPSCALE_METHODS, f"Method {method_str} not found in {UPSCALE_METHODS}"
|
||||
return getattr(cv2, method_str)
|
||||
|
||||
def pad64(x):
|
||||
return int(np.ceil(float(x) / 64.0) * 64 - x)
|
||||
|
||||
#https://github.com/Mikubill/sd-webui-controlnet/blob/main/scripts/processor.py#L17
|
||||
#Added upscale_method, mode params
|
||||
def resize_image_with_pad(input_image, resolution, upscale_method = "", skip_hwc3=False, mode='edge'):
|
||||
if skip_hwc3:
|
||||
img = input_image
|
||||
else:
|
||||
img = HWC3(input_image)
|
||||
H_raw, W_raw, _ = img.shape
|
||||
if resolution == 0:
|
||||
return img, lambda x: x
|
||||
k = float(resolution) / float(min(H_raw, W_raw))
|
||||
H_target = int(np.round(float(H_raw) * k))
|
||||
W_target = int(np.round(float(W_raw) * k))
|
||||
img = cv2.resize(img, (W_target, H_target), interpolation=get_upscale_method(upscale_method) if k > 1 else cv2.INTER_AREA)
|
||||
H_pad, W_pad = pad64(H_target), pad64(W_target)
|
||||
img_padded = np.pad(img, [[0, H_pad], [0, W_pad], [0, 0]], mode=mode)
|
||||
|
||||
def remove_pad(x):
|
||||
return safer_memory(x[:H_target, :W_target, ...])
|
||||
|
||||
return safer_memory(img_padded), remove_pad
|
||||
|
||||
def common_input_validate(input_image, output_type, **kwargs):
|
||||
if "img" in kwargs:
|
||||
warnings.warn("img is deprecated, please use `input_image=...` instead.", DeprecationWarning)
|
||||
input_image = kwargs.pop("img")
|
||||
|
||||
if "return_pil" in kwargs:
|
||||
warnings.warn("return_pil is deprecated. Use output_type instead.", DeprecationWarning)
|
||||
output_type = "pil" if kwargs["return_pil"] else "np"
|
||||
|
||||
if type(output_type) is bool:
|
||||
warnings.warn("Passing `True` or `False` to `output_type` is deprecated and will raise an error in future versions")
|
||||
if output_type:
|
||||
output_type = "pil"
|
||||
|
||||
if input_image is None:
|
||||
raise ValueError("input_image must be defined.")
|
||||
|
||||
if not isinstance(input_image, np.ndarray):
|
||||
input_image = np.array(input_image, dtype=np.uint8)
|
||||
output_type = output_type or "pil"
|
||||
else:
|
||||
output_type = output_type or "np"
|
||||
|
||||
return (input_image, output_type)
|
||||
|
||||
def torch_gc():
|
||||
if torch.cuda.is_available():
|
||||
torch.cuda.empty_cache()
|
||||
torch.cuda.ipc_collect()
|
||||
|
||||
|
||||
def ade_palette():
|
||||
"""ADE20K palette that maps each class to RGB values."""
|
||||
return [[120, 120, 120], [180, 120, 120], [6, 230, 230], [80, 50, 50],
|
||||
[4, 200, 3], [120, 120, 80], [140, 140, 140], [204, 5, 255],
|
||||
[230, 230, 230], [4, 250, 7], [224, 5, 255], [235, 255, 7],
|
||||
[150, 5, 61], [120, 120, 70], [8, 255, 51], [255, 6, 82],
|
||||
[143, 255, 140], [204, 255, 4], [255, 51, 7], [204, 70, 3],
|
||||
[0, 102, 200], [61, 230, 250], [255, 6, 51], [11, 102, 255],
|
||||
[255, 7, 71], [255, 9, 224], [9, 7, 230], [220, 220, 220],
|
||||
[255, 9, 92], [112, 9, 255], [8, 255, 214], [7, 255, 224],
|
||||
[255, 184, 6], [10, 255, 71], [255, 41, 10], [7, 255, 255],
|
||||
[224, 255, 8], [102, 8, 255], [255, 61, 6], [255, 194, 7],
|
||||
[255, 122, 8], [0, 255, 20], [255, 8, 41], [255, 5, 153],
|
||||
[6, 51, 255], [235, 12, 255], [160, 150, 20], [0, 163, 255],
|
||||
[140, 140, 140], [250, 10, 15], [20, 255, 0], [31, 255, 0],
|
||||
[255, 31, 0], [255, 224, 0], [153, 255, 0], [0, 0, 255],
|
||||
[255, 71, 0], [0, 235, 255], [0, 173, 255], [31, 0, 255],
|
||||
[11, 200, 200], [255, 82, 0], [0, 255, 245], [0, 61, 255],
|
||||
[0, 255, 112], [0, 255, 133], [255, 0, 0], [255, 163, 0],
|
||||
[255, 102, 0], [194, 255, 0], [0, 143, 255], [51, 255, 0],
|
||||
[0, 82, 255], [0, 255, 41], [0, 255, 173], [10, 0, 255],
|
||||
[173, 255, 0], [0, 255, 153], [255, 92, 0], [255, 0, 255],
|
||||
[255, 0, 245], [255, 0, 102], [255, 173, 0], [255, 0, 20],
|
||||
[255, 184, 184], [0, 31, 255], [0, 255, 61], [0, 71, 255],
|
||||
[255, 0, 204], [0, 255, 194], [0, 255, 82], [0, 10, 255],
|
||||
[0, 112, 255], [51, 0, 255], [0, 194, 255], [0, 122, 255],
|
||||
[0, 255, 163], [255, 153, 0], [0, 255, 10], [255, 112, 0],
|
||||
[143, 255, 0], [82, 0, 255], [163, 255, 0], [255, 235, 0],
|
||||
[8, 184, 170], [133, 0, 255], [0, 255, 92], [184, 0, 255],
|
||||
[255, 0, 31], [0, 184, 255], [0, 214, 255], [255, 0, 112],
|
||||
[92, 255, 0], [0, 224, 255], [112, 224, 255], [70, 184, 160],
|
||||
[163, 0, 255], [153, 0, 255], [71, 255, 0], [255, 0, 163],
|
||||
[255, 204, 0], [255, 0, 143], [0, 255, 235], [133, 255, 0],
|
||||
[255, 0, 235], [245, 0, 255], [255, 0, 122], [255, 245, 0],
|
||||
[10, 190, 212], [214, 255, 0], [0, 204, 255], [20, 0, 255],
|
||||
[255, 255, 0], [0, 153, 255], [0, 41, 255], [0, 255, 204],
|
||||
[41, 0, 255], [41, 255, 0], [173, 0, 255], [0, 245, 255],
|
||||
[71, 0, 255], [122, 0, 255], [0, 255, 184], [0, 92, 255],
|
||||
[184, 255, 0], [0, 133, 255], [255, 214, 0], [25, 194, 194],
|
||||
[102, 255, 0], [92, 0, 255]]
|
||||
|
||||
#https://stackoverflow.com/a/44873382
|
||||
#Assume that the minimum version of Python ppl use is 3.9
|
||||
def sha256sum(file_path):
|
||||
import hashlib
|
||||
h = hashlib.sha256()
|
||||
b = bytearray(128*1024)
|
||||
mv = memoryview(b)
|
||||
with open(file_path, 'rb', buffering=0) as f:
|
||||
while n := f.readinto(mv):
|
||||
h.update(mv[:n])
|
||||
return h.hexdigest()
|
||||
|
||||
def check_hash_from_torch_hub(file_path, filename):
|
||||
basename, _ = filename.split('.')
|
||||
_, ref_hash = basename.split('-')
|
||||
curr_hash = sha256sum(file_path)
|
||||
return curr_hash[:len(ref_hash)] == ref_hash
|
||||
|
||||
def custom_torch_download(filename, ckpts_dir=annotator_ckpts_path):
|
||||
"""Download PyTorch models using PyTorch 2.7's built-in download mechanism."""
|
||||
model_url = "https://download.pytorch.org/models/" + filename
|
||||
|
||||
# Use PyTorch's built-in model downloading with custom cache directory
|
||||
local_dir = os.path.join(ckpts_dir, "torch")
|
||||
if not os.path.exists(local_dir):
|
||||
os.makedirs(local_dir, exist_ok=True)
|
||||
|
||||
model_path = os.path.join(local_dir, filename)
|
||||
|
||||
if not os.path.exists(model_path):
|
||||
print(f"Downloading {filename} from pytorch.org...")
|
||||
try:
|
||||
# Use PyTorch 2.7's load_url which handles caching, progress, and hash checking
|
||||
state_dict = load_url(model_url, model_dir=local_dir, file_name=filename, progress=True, check_hash=True)
|
||||
# The file is already saved by load_url, we just need the path
|
||||
except Exception as e:
|
||||
warnings.warn(f"Download failed with error: {e}")
|
||||
raise
|
||||
|
||||
print(f"model_path is {model_path}")
|
||||
return model_path
|
||||
|
||||
def custom_hf_download(pretrained_model_or_path, filename, cache_dir=temp_dir, ckpts_dir=annotator_ckpts_path, subfolder='', use_symlinks=USE_SYMLINKS, repo_type="model"):
|
||||
|
||||
local_dir = os.path.join(ckpts_dir, pretrained_model_or_path)
|
||||
model_path = Path(local_dir).joinpath(*subfolder.split('/'), filename).__str__()
|
||||
|
||||
if len(str(model_path)) >= 255:
|
||||
warnings.warn(f"Path {model_path} is too long, \n please change annotator_ckpts_path in config.yaml")
|
||||
|
||||
if not os.path.exists(model_path):
|
||||
print(f"Failed to find {model_path}.\n Downloading from huggingface.co")
|
||||
print(f"cacher folder is {cache_dir}, you can change it by custom_tmp_path in config.yaml")
|
||||
if use_symlinks:
|
||||
cache_dir_d = constants.HF_HUB_CACHE # use huggingface newer env variables `HF_HUB_CACHE`
|
||||
if cache_dir_d is None:
|
||||
import platform
|
||||
if platform.system() == "Windows":
|
||||
cache_dir_d = Path(os.getenv("USERPROFILE")).joinpath(".cache", "huggingface", "hub").__str__()
|
||||
else:
|
||||
cache_dir_d = os.path.join(os.getenv("HOME"), ".cache", "huggingface", "hub")
|
||||
try:
|
||||
# test_link
|
||||
Path(cache_dir_d).mkdir(parents=True, exist_ok=True)
|
||||
Path(ckpts_dir).mkdir(parents=True, exist_ok=True)
|
||||
(Path(cache_dir_d) / f"linktest_{filename}.txt").touch()
|
||||
# symlink instead of link avoid `invalid cross-device link` error.
|
||||
os.symlink(os.path.join(cache_dir_d, f"linktest_{filename}.txt"), os.path.join(ckpts_dir, f"linktest_{filename}.txt"))
|
||||
print("Using symlinks to download models. \n",\
|
||||
"Make sure you have enough space on your cache folder. \n",\
|
||||
"And do not purge the cache folder after downloading.\n",\
|
||||
"Otherwise, you will have to re-download the models every time you run the script.\n",\
|
||||
"You can use USE_SYMLINKS: False in config.yaml to avoid this behavior.")
|
||||
except:
|
||||
print("Maybe not able to create symlink. Disable using symlinks.")
|
||||
use_symlinks = False
|
||||
cache_dir_d = Path(cache_dir).joinpath("ckpts", pretrained_model_or_path).__str__()
|
||||
finally: # always remove test link files
|
||||
with suppress(FileNotFoundError):
|
||||
os.remove(os.path.join(ckpts_dir, f"linktest_{filename}.txt"))
|
||||
os.remove(os.path.join(cache_dir_d, f"linktest_{filename}.txt"))
|
||||
else:
|
||||
cache_dir_d = os.path.join(cache_dir, "ckpts", pretrained_model_or_path)
|
||||
|
||||
model_path = hf_hub_download(repo_id=pretrained_model_or_path,
|
||||
cache_dir=cache_dir_d,
|
||||
local_dir=local_dir,
|
||||
subfolder=subfolder,
|
||||
filename=filename,
|
||||
local_dir_use_symlinks=use_symlinks,
|
||||
resume_download=True,
|
||||
etag_timeout=100,
|
||||
repo_type=repo_type
|
||||
)
|
||||
if not use_symlinks:
|
||||
try:
|
||||
import shutil
|
||||
shutil.rmtree(os.path.join(cache_dir, "ckpts"))
|
||||
except Exception as e :
|
||||
print(e)
|
||||
|
||||
print(f"model_path is {model_path}")
|
||||
|
||||
return model_path
|
||||
@@ -0,0 +1,250 @@
|
||||
import torch
|
||||
import numpy as np
|
||||
import os
|
||||
import cv2
|
||||
import yaml
|
||||
from pathlib import Path
|
||||
from enum import Enum
|
||||
from .log import log
|
||||
import subprocess
|
||||
import threading
|
||||
import comfy
|
||||
import tempfile
|
||||
|
||||
here = Path(__file__).parent.resolve()
|
||||
|
||||
config_path = Path(here, "config.yaml")
|
||||
|
||||
if os.path.exists(config_path):
|
||||
config = yaml.load(open(config_path, "r"), Loader=yaml.FullLoader)
|
||||
|
||||
annotator_ckpts_path = str(Path(here, config["annotator_ckpts_path"]))
|
||||
TEMP_DIR = config["custom_temp_path"]
|
||||
USE_SYMLINKS = config["USE_SYMLINKS"]
|
||||
ORT_PROVIDERS = config["EP_list"]
|
||||
|
||||
if USE_SYMLINKS is None or type(USE_SYMLINKS) != bool:
|
||||
log.error("USE_SYMLINKS must be a boolean. Using False by default.")
|
||||
USE_SYMLINKS = False
|
||||
|
||||
if TEMP_DIR is None:
|
||||
TEMP_DIR = tempfile.gettempdir()
|
||||
elif not os.path.isdir(TEMP_DIR):
|
||||
try:
|
||||
os.makedirs(TEMP_DIR)
|
||||
except:
|
||||
log.error("Failed to create custom temp directory. Using default.")
|
||||
TEMP_DIR = tempfile.gettempdir()
|
||||
|
||||
if not os.path.isdir(annotator_ckpts_path):
|
||||
try:
|
||||
os.makedirs(annotator_ckpts_path)
|
||||
except:
|
||||
log.error("Failed to create config ckpts directory. Using default.")
|
||||
annotator_ckpts_path = str(Path(here, "./ckpts"))
|
||||
else:
|
||||
annotator_ckpts_path = str(Path(here, "./ckpts"))
|
||||
TEMP_DIR = tempfile.gettempdir()
|
||||
USE_SYMLINKS = False
|
||||
ORT_PROVIDERS = ["CUDAExecutionProvider", "DirectMLExecutionProvider", "OpenVINOExecutionProvider", "ROCMExecutionProvider", "CPUExecutionProvider", "CoreMLExecutionProvider"]
|
||||
|
||||
os.environ['AUX_ANNOTATOR_CKPTS_PATH'] = os.getenv('AUX_ANNOTATOR_CKPTS_PATH', annotator_ckpts_path)
|
||||
os.environ['AUX_TEMP_DIR'] = os.getenv('AUX_TEMP_DIR', str(TEMP_DIR))
|
||||
os.environ['AUX_USE_SYMLINKS'] = os.getenv('AUX_USE_SYMLINKS', str(USE_SYMLINKS))
|
||||
os.environ['AUX_ORT_PROVIDERS'] = os.getenv('AUX_ORT_PROVIDERS', str(",".join(ORT_PROVIDERS)))
|
||||
|
||||
log.info(f"Using ckpts path: {annotator_ckpts_path}")
|
||||
log.info(f"Using symlinks: {USE_SYMLINKS}")
|
||||
log.info(f"Using ort providers: {ORT_PROVIDERS}")
|
||||
|
||||
# Sync with theoritical limit from Comfy base
|
||||
# https://github.com/comfyanonymous/ComfyUI/blob/eecd69b53a896343775bcb02a4f8349e7442ffd1/nodes.py#L45
|
||||
MAX_RESOLUTION=16384
|
||||
|
||||
def common_annotator_call(model, tensor_image, input_batch=False, show_pbar=True, **kwargs):
|
||||
if "detect_resolution" in kwargs:
|
||||
del kwargs["detect_resolution"] #Prevent weird case?
|
||||
|
||||
if "resolution" in kwargs:
|
||||
detect_resolution = kwargs["resolution"] if type(kwargs["resolution"]) == int and kwargs["resolution"] >= 64 else 512
|
||||
del kwargs["resolution"]
|
||||
else:
|
||||
detect_resolution = 512
|
||||
|
||||
if input_batch:
|
||||
np_images = np.asarray(tensor_image * 255., dtype=np.uint8)
|
||||
np_results = model(np_images, output_type="np", detect_resolution=detect_resolution, **kwargs)
|
||||
return torch.from_numpy(np_results.astype(np.float32) / 255.0)
|
||||
|
||||
batch_size = tensor_image.shape[0]
|
||||
if show_pbar:
|
||||
pbar = comfy.utils.ProgressBar(batch_size)
|
||||
out_tensor = None
|
||||
for i, image in enumerate(tensor_image):
|
||||
np_image = np.asarray(image.cpu() * 255., dtype=np.uint8)
|
||||
np_result = model(np_image, output_type="np", detect_resolution=detect_resolution, **kwargs)
|
||||
out = torch.from_numpy(np_result.astype(np.float32) / 255.0)
|
||||
if out_tensor is None:
|
||||
out_tensor = torch.zeros(batch_size, *out.shape, dtype=torch.float32)
|
||||
out_tensor[i] = out
|
||||
if show_pbar:
|
||||
pbar.update(1)
|
||||
return out_tensor
|
||||
|
||||
def define_preprocessor_inputs(**arguments):
|
||||
return dict(
|
||||
required=dict(image=INPUT.IMAGE()),
|
||||
optional=arguments
|
||||
)
|
||||
|
||||
class INPUT(Enum):
|
||||
def IMAGE():
|
||||
return ("IMAGE",)
|
||||
def LATENT():
|
||||
return ("LATENT",)
|
||||
def MASK():
|
||||
return ("MASK",)
|
||||
def SEED(default=0):
|
||||
return ("INT", dict(default=default, min=0, max=0xffffffffffffffff))
|
||||
def RESOLUTION(default=512, min=64, max=MAX_RESOLUTION, step=64):
|
||||
return ("INT", dict(default=default, min=min, max=max, step=step))
|
||||
def INT(default=0, min=0, max=MAX_RESOLUTION, step=1):
|
||||
return ("INT", dict(default=default, min=min, max=max, step=step))
|
||||
def FLOAT(default=0, min=0, max=1, step=0.01):
|
||||
return ("FLOAT", dict(default=default, min=min, max=max, step=step))
|
||||
def STRING(default='', multiline=False):
|
||||
return ("STRING", dict(default=default, multiline=multiline))
|
||||
def COMBO(values, default=None):
|
||||
return (values, dict(default=values[0] if default is None else default))
|
||||
def BOOLEAN(default=True):
|
||||
return ("BOOLEAN", dict(default=default))
|
||||
|
||||
|
||||
|
||||
class ResizeMode(Enum):
|
||||
"""
|
||||
Resize modes for ControlNet input images.
|
||||
"""
|
||||
|
||||
RESIZE = "Just Resize"
|
||||
INNER_FIT = "Crop and Resize"
|
||||
OUTER_FIT = "Resize and Fill"
|
||||
|
||||
def int_value(self):
|
||||
if self == ResizeMode.RESIZE:
|
||||
return 0
|
||||
elif self == ResizeMode.INNER_FIT:
|
||||
return 1
|
||||
elif self == ResizeMode.OUTER_FIT:
|
||||
return 2
|
||||
assert False, "NOTREACHED"
|
||||
|
||||
#https://github.com/Mikubill/sd-webui-controlnet/blob/e67e017731aad05796b9615dc6eadce911298ea1/internal_controlnet/external_code.py#L89
|
||||
#Replaced logger with internal log
|
||||
def pixel_perfect_resolution(
|
||||
image: np.ndarray,
|
||||
target_H: int,
|
||||
target_W: int,
|
||||
resize_mode: ResizeMode,
|
||||
) -> int:
|
||||
"""
|
||||
Calculate the estimated resolution for resizing an image while preserving aspect ratio.
|
||||
|
||||
The function first calculates scaling factors for height and width of the image based on the target
|
||||
height and width. Then, based on the chosen resize mode, it either takes the smaller or the larger
|
||||
scaling factor to estimate the new resolution.
|
||||
|
||||
If the resize mode is OUTER_FIT, the function uses the smaller scaling factor, ensuring the whole image
|
||||
fits within the target dimensions, potentially leaving some empty space.
|
||||
|
||||
If the resize mode is not OUTER_FIT, the function uses the larger scaling factor, ensuring the target
|
||||
dimensions are fully filled, potentially cropping the image.
|
||||
|
||||
After calculating the estimated resolution, the function prints some debugging information.
|
||||
|
||||
Args:
|
||||
image (np.ndarray): A 3D numpy array representing an image. The dimensions represent [height, width, channels].
|
||||
target_H (int): The target height for the image.
|
||||
target_W (int): The target width for the image.
|
||||
resize_mode (ResizeMode): The mode for resizing.
|
||||
|
||||
Returns:
|
||||
int: The estimated resolution after resizing.
|
||||
"""
|
||||
raw_H, raw_W, _ = image.shape
|
||||
|
||||
k0 = float(target_H) / float(raw_H)
|
||||
k1 = float(target_W) / float(raw_W)
|
||||
|
||||
if resize_mode == ResizeMode.OUTER_FIT:
|
||||
estimation = min(k0, k1) * float(min(raw_H, raw_W))
|
||||
else:
|
||||
estimation = max(k0, k1) * float(min(raw_H, raw_W))
|
||||
|
||||
log.debug(f"Pixel Perfect Computation:")
|
||||
log.debug(f"resize_mode = {resize_mode}")
|
||||
log.debug(f"raw_H = {raw_H}")
|
||||
log.debug(f"raw_W = {raw_W}")
|
||||
log.debug(f"target_H = {target_H}")
|
||||
log.debug(f"target_W = {target_W}")
|
||||
log.debug(f"estimation = {estimation}")
|
||||
|
||||
return int(np.round(estimation))
|
||||
|
||||
#https://github.com/Mikubill/sd-webui-controlnet/blob/e67e017731aad05796b9615dc6eadce911298ea1/scripts/controlnet.py#L404
|
||||
def safe_numpy(x):
|
||||
# A very safe method to make sure that Apple/Mac works
|
||||
y = x
|
||||
|
||||
# below is very boring but do not change these. If you change these Apple or Mac may fail.
|
||||
y = y.copy()
|
||||
y = np.ascontiguousarray(y)
|
||||
y = y.copy()
|
||||
return y
|
||||
|
||||
#https://github.com/Mikubill/sd-webui-controlnet/blob/e67e017731aad05796b9615dc6eadce911298ea1/scripts/utils.py#L140
|
||||
def get_unique_axis0(data):
|
||||
arr = np.asanyarray(data)
|
||||
idxs = np.lexsort(arr.T)
|
||||
arr = arr[idxs]
|
||||
unique_idxs = np.empty(len(arr), dtype=np.bool_)
|
||||
unique_idxs[:1] = True
|
||||
unique_idxs[1:] = np.any(arr[:-1, :] != arr[1:, :], axis=-1)
|
||||
return arr[unique_idxs]
|
||||
|
||||
#Ref: https://github.com/ltdrdata/ComfyUI-Manager/blob/284e90dc8296a2e1e4f14b4b2d10fba2f52f0e53/__init__.py#L14
|
||||
def handle_stream(stream, prefix):
|
||||
for line in stream:
|
||||
print(prefix, line, end="")
|
||||
|
||||
|
||||
def run_script(cmd, cwd='.'):
|
||||
process = subprocess.Popen(cmd, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, bufsize=1)
|
||||
|
||||
stdout_thread = threading.Thread(target=handle_stream, args=(process.stdout, ""))
|
||||
stderr_thread = threading.Thread(target=handle_stream, args=(process.stderr, "[!]"))
|
||||
|
||||
stdout_thread.start()
|
||||
stderr_thread.start()
|
||||
|
||||
stdout_thread.join()
|
||||
stderr_thread.join()
|
||||
|
||||
return process.wait()
|
||||
|
||||
def nms(x, t, s):
|
||||
x = cv2.GaussianBlur(x.astype(np.float32), (0, 0), s)
|
||||
|
||||
f1 = np.array([[0, 0, 0], [1, 1, 1], [0, 0, 0]], dtype=np.uint8)
|
||||
f2 = np.array([[0, 1, 0], [0, 1, 0], [0, 1, 0]], dtype=np.uint8)
|
||||
f3 = np.array([[1, 0, 0], [0, 1, 0], [0, 0, 1]], dtype=np.uint8)
|
||||
f4 = np.array([[0, 0, 1], [0, 1, 0], [1, 0, 0]], dtype=np.uint8)
|
||||
|
||||
y = np.zeros_like(x)
|
||||
|
||||
for f in [f1, f2, f3, f4]:
|
||||
np.putmask(y, cv2.dilate(x, kernel=f) == x, x)
|
||||
|
||||
z = np.zeros_like(y, dtype=np.uint8)
|
||||
z[y > t] = 255
|
||||
return z
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,7 @@
|
||||
tree f01bc8602012031cc38a96f10aba803f9c0a0cb2
|
||||
parent 3e316c6338503a535801db3ddac9572a38a607ef
|
||||
author comfyanonymous <comfyanonymous@protonmail.com> 1755989829 -0400
|
||||
committer comfyanonymous <comfyanonymous@protonmail.com> 1755989829 -0400
|
||||
|
||||
ComfyUI version 0.3.52
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "v0.3.52",
|
||||
"commit": "71ed4a399ec76a75aa2870b772d2022e4b9a69a3",
|
||||
"object": "71ed4a399ec76a75aa2870b772d2022e4b9a69a3"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
tree f01bc8602012031cc38a96f10aba803f9c0a0cb2
|
||||
parent 3e316c6338503a535801db3ddac9572a38a607ef
|
||||
author comfyanonymous <comfyanonymous@protonmail.com> 1755989829 -0400
|
||||
committer comfyanonymous <comfyanonymous@protonmail.com> 1755989829 -0400
|
||||
|
||||
ComfyUI version 0.3.52
|
||||
|
||||
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,427 @@
|
||||
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["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)
|
||||
|
||||
output_directory = os.path.join(base_path, "output")
|
||||
temp_directory = os.path.join(base_path, "temp")
|
||||
input_directory = os.path.join(base_path, "input")
|
||||
user_directory = os.path.join(base_path, "user")
|
||||
|
||||
filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
|
||||
class CacheHelper:
|
||||
"""
|
||||
Helper class for managing file list cache data.
|
||||
"""
|
||||
def __init__(self):
|
||||
self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
self.active = False
|
||||
|
||||
def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]:
|
||||
if not self.active:
|
||||
return default
|
||||
return self.cache.get(key, default)
|
||||
|
||||
def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None:
|
||||
if self.active:
|
||||
self.cache[key] = value
|
||||
|
||||
def clear(self):
|
||||
self.cache.clear()
|
||||
|
||||
def __enter__(self):
|
||||
self.active = True
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.active = False
|
||||
self.clear()
|
||||
|
||||
cache_helper = CacheHelper()
|
||||
|
||||
extension_mimetypes_cache = {
|
||||
"webp" : "image",
|
||||
"fbx" : "model",
|
||||
}
|
||||
|
||||
def map_legacy(folder_name: str) -> str:
|
||||
legacy = {"unet": "diffusion_models",
|
||||
"clip": "text_encoders"}
|
||||
return legacy.get(folder_name, folder_name)
|
||||
|
||||
if not os.path.exists(input_directory):
|
||||
try:
|
||||
os.makedirs(input_directory)
|
||||
except:
|
||||
logging.error("Failed to create input directory")
|
||||
|
||||
def set_output_directory(output_dir: str) -> None:
|
||||
global output_directory
|
||||
output_directory = output_dir
|
||||
|
||||
def set_temp_directory(temp_dir: str) -> None:
|
||||
global temp_directory
|
||||
temp_directory = temp_dir
|
||||
|
||||
def set_input_directory(input_dir: str) -> None:
|
||||
global input_directory
|
||||
input_directory = input_dir
|
||||
|
||||
def get_output_directory() -> str:
|
||||
global output_directory
|
||||
return output_directory
|
||||
|
||||
def get_temp_directory() -> str:
|
||||
global temp_directory
|
||||
return temp_directory
|
||||
|
||||
def get_input_directory() -> str:
|
||||
global input_directory
|
||||
return input_directory
|
||||
|
||||
def get_user_directory() -> str:
|
||||
return user_directory
|
||||
|
||||
def set_user_directory(user_dir: str) -> None:
|
||||
global user_directory
|
||||
user_directory = user_dir
|
||||
|
||||
|
||||
#NOTE: used in http server so don't put folders that should not be accessed remotely
|
||||
def get_directory_by_type(type_name: str) -> str | None:
|
||||
if type_name == "output":
|
||||
return get_output_directory()
|
||||
if type_name == "temp":
|
||||
return get_temp_directory()
|
||||
if type_name == "input":
|
||||
return get_input_directory()
|
||||
return None
|
||||
|
||||
def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]:
|
||||
"""
|
||||
Example:
|
||||
files = os.listdir(folder_paths.get_input_directory())
|
||||
videos = filter_files_content_types(files, ["video"])
|
||||
|
||||
Note:
|
||||
- 'model' in MIME context refers to 3D models, not files containing trained weights and parameters
|
||||
"""
|
||||
global extension_mimetypes_cache
|
||||
result = []
|
||||
for file in files:
|
||||
extension = file.split('.')[-1]
|
||||
if extension not in extension_mimetypes_cache:
|
||||
mime_type, _ = mimetypes.guess_type(file, strict=False)
|
||||
if not mime_type:
|
||||
continue
|
||||
content_type = mime_type.split('/')[0]
|
||||
extension_mimetypes_cache[extension] = content_type
|
||||
else:
|
||||
content_type = extension_mimetypes_cache[extension]
|
||||
|
||||
if content_type in content_types:
|
||||
result.append(file)
|
||||
return result
|
||||
|
||||
# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format
|
||||
# otherwise use default_path as base_dir
|
||||
def annotated_filepath(name: str) -> tuple[str, str | None]:
|
||||
if name.endswith("[output]"):
|
||||
base_dir = get_output_directory()
|
||||
name = name[:-9]
|
||||
elif name.endswith("[input]"):
|
||||
base_dir = get_input_directory()
|
||||
name = name[:-8]
|
||||
elif name.endswith("[temp]"):
|
||||
base_dir = get_temp_directory()
|
||||
name = name[:-7]
|
||||
else:
|
||||
return name, None
|
||||
|
||||
return name, base_dir
|
||||
|
||||
|
||||
def get_annotated_filepath(name: str, default_dir: str | None=None) -> str:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
if default_dir is not None:
|
||||
base_dir = default_dir
|
||||
else:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
return os.path.join(base_dir, name)
|
||||
|
||||
|
||||
def exists_annotated_filepath(name) -> bool:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
filepath = os.path.join(base_dir, name)
|
||||
return os.path.exists(filepath)
|
||||
|
||||
|
||||
def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None:
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name in folder_names_and_paths:
|
||||
paths, _exts = folder_names_and_paths[folder_name]
|
||||
if full_folder_path in paths:
|
||||
if is_default and paths[0] != full_folder_path:
|
||||
# If the path to the folder is not the first in the list, move it to the beginning.
|
||||
paths.remove(full_folder_path)
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
if is_default:
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
paths.append(full_folder_path)
|
||||
else:
|
||||
folder_names_and_paths[folder_name] = ([full_folder_path], set())
|
||||
|
||||
def get_folder_paths(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
return folder_names_and_paths[folder_name][0][:]
|
||||
|
||||
def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]:
|
||||
if not os.path.isdir(directory):
|
||||
return [], {}
|
||||
|
||||
if excluded_dir_names is None:
|
||||
excluded_dir_names = []
|
||||
|
||||
result = []
|
||||
dirs = {}
|
||||
|
||||
# Attempt to add the initial directory to dirs with error handling
|
||||
try:
|
||||
dirs[directory] = os.path.getmtime(directory)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
|
||||
|
||||
logging.debug("recursive file list on directory {}".format(directory))
|
||||
dirpath: str
|
||||
subdirs: list[str]
|
||||
filenames: list[str]
|
||||
|
||||
for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True):
|
||||
subdirs[:] = [d for d in subdirs if d not in excluded_dir_names]
|
||||
for file_name in filenames:
|
||||
try:
|
||||
relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory)
|
||||
result.append(relative_path)
|
||||
except:
|
||||
logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.")
|
||||
continue
|
||||
|
||||
for d in subdirs:
|
||||
path: str = os.path.join(dirpath, d)
|
||||
try:
|
||||
dirs[path] = os.path.getmtime(path)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {path}. Skipping this path.")
|
||||
continue
|
||||
logging.debug("found {} files".format(len(result)))
|
||||
return result, dirs
|
||||
|
||||
def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]:
|
||||
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
|
||||
|
||||
|
||||
|
||||
def get_full_path(folder_name: str, filename: str) -> str | None:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in folder_names_and_paths:
|
||||
return None
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
filename = os.path.relpath(os.path.join("/", filename), "/")
|
||||
for x in folders[0]:
|
||||
full_path = os.path.join(x, filename)
|
||||
if os.path.isfile(full_path):
|
||||
return full_path
|
||||
elif os.path.islink(full_path):
|
||||
logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def get_full_path_or_raise(folder_name: str, filename: str) -> str:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
full_path = get_full_path(folder_name, filename)
|
||||
if full_path is None:
|
||||
raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.")
|
||||
return full_path
|
||||
|
||||
|
||||
def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
global folder_names_and_paths
|
||||
output_list = set()
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
output_folders = {}
|
||||
for x in folders[0]:
|
||||
files, folders_all = recursive_search(x, excluded_dir_names=[".git"])
|
||||
output_list.update(filter_files_extensions(files, folders[1]))
|
||||
output_folders = {**output_folders, **folders_all}
|
||||
|
||||
return sorted(list(output_list)), output_folders, time.perf_counter()
|
||||
|
||||
def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None:
|
||||
strong_cache = cache_helper.get(folder_name)
|
||||
if strong_cache is not None:
|
||||
return strong_cache
|
||||
|
||||
global filename_list_cache
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in filename_list_cache:
|
||||
return None
|
||||
out = filename_list_cache[folder_name]
|
||||
|
||||
for x in out[1]:
|
||||
time_modified = out[1][x]
|
||||
folder = x
|
||||
if os.path.getmtime(folder) != time_modified:
|
||||
return None
|
||||
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
for x in folders[0]:
|
||||
if os.path.isdir(x):
|
||||
if x not in out[1]:
|
||||
return None
|
||||
|
||||
return out
|
||||
|
||||
def get_filename_list(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
out = cached_filename_list_(folder_name)
|
||||
if out is None:
|
||||
out = get_filename_list_(folder_name)
|
||||
global filename_list_cache
|
||||
filename_list_cache[folder_name] = out
|
||||
cache_helper.set(folder_name, out)
|
||||
return list(out[0])
|
||||
|
||||
def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]:
|
||||
def map_filename(filename: str) -> tuple[int, str]:
|
||||
prefix_len = len(os.path.basename(filename_prefix))
|
||||
prefix = filename[:prefix_len + 1]
|
||||
try:
|
||||
digits = int(filename[prefix_len + 1:].split('_')[0])
|
||||
except:
|
||||
digits = 0
|
||||
return digits, prefix
|
||||
|
||||
def compute_vars(input: str, image_width: int, image_height: int) -> str:
|
||||
input = input.replace("%width%", str(image_width))
|
||||
input = input.replace("%height%", str(image_height))
|
||||
now = time.localtime()
|
||||
input = input.replace("%year%", str(now.tm_year))
|
||||
input = input.replace("%month%", str(now.tm_mon).zfill(2))
|
||||
input = input.replace("%day%", str(now.tm_mday).zfill(2))
|
||||
input = input.replace("%hour%", str(now.tm_hour).zfill(2))
|
||||
input = input.replace("%minute%", str(now.tm_min).zfill(2))
|
||||
input = input.replace("%second%", str(now.tm_sec).zfill(2))
|
||||
return input
|
||||
|
||||
if "%" in filename_prefix:
|
||||
filename_prefix = compute_vars(filename_prefix, image_width, image_height)
|
||||
|
||||
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
|
||||
filename = os.path.basename(os.path.normpath(filename_prefix))
|
||||
|
||||
full_output_folder = os.path.join(output_dir, subfolder)
|
||||
|
||||
if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
|
||||
err = "**** ERROR: Saving image outside the output folder is not allowed." + \
|
||||
"\n full_output_folder: " + os.path.abspath(full_output_folder) + \
|
||||
"\n output_dir: " + output_dir + \
|
||||
"\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder)))
|
||||
logging.error(err)
|
||||
raise Exception(err)
|
||||
|
||||
try:
|
||||
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
|
||||
except ValueError:
|
||||
counter = 1
|
||||
except FileNotFoundError:
|
||||
os.makedirs(full_output_folder, exist_ok=True)
|
||||
counter = 1
|
||||
return full_output_folder, filename, counter, subfolder, filename_prefix
|
||||
|
||||
def get_input_subfolders() -> list[str]:
|
||||
"""Returns a list of all subfolder paths in the input directory, recursively.
|
||||
|
||||
Returns:
|
||||
List of folder paths relative to the input directory, excluding the root directory
|
||||
"""
|
||||
input_dir = get_input_directory()
|
||||
folders = []
|
||||
|
||||
try:
|
||||
if not os.path.exists(input_dir):
|
||||
return []
|
||||
|
||||
for root, dirs, _ in os.walk(input_dir):
|
||||
rel_path = os.path.relpath(root, input_dir)
|
||||
if rel_path != ".": # Only include non-root directories
|
||||
# Normalize path separators to forward slashes
|
||||
folders.append(rel_path.replace(os.sep, '/'))
|
||||
|
||||
return sorted(folders)
|
||||
except FileNotFoundError:
|
||||
return []
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
[
|
||||
"py/easyNodes.py"
|
||||
]
|
||||
@@ -0,0 +1,6 @@
|
||||
tree e52597142b406f0c8505a16aa3e8676ee91dfa3e
|
||||
parent d39b5e13e29c2e08e0d3d255b6ef8f6dd5f982cc
|
||||
author yolain <yolain@163.com> 1766117634 +0800
|
||||
committer yolain <yolain@163.com> 1766117634 +0800
|
||||
|
||||
Bump version and add icon
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "00c69fc8163478edfd25b12e758b561d66107054",
|
||||
"commit": "00c69fc8163478edfd25b12e758b561d66107054",
|
||||
"object": "00c69fc8163478edfd25b12e758b561d66107054"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
tree e52597142b406f0c8505a16aa3e8676ee91dfa3e
|
||||
parent d39b5e13e29c2e08e0d3d255b6ef8f6dd5f982cc
|
||||
author yolain <yolain@163.com> 1766117634 +0800
|
||||
committer yolain <yolain@163.com> 1766117634 +0800
|
||||
|
||||
Bump version and add icon
|
||||
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,95 @@
|
||||
__version__ = "1.3.4"
|
||||
|
||||
import yaml
|
||||
import json
|
||||
import os
|
||||
import folder_paths
|
||||
import importlib
|
||||
|
||||
cwd_path = os.path.dirname(os.path.realpath(__file__))
|
||||
comfy_path = folder_paths.base_path
|
||||
|
||||
NODE_CLASS_MAPPINGS = {}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {}
|
||||
|
||||
importlib.import_module('.py.routes', __name__)
|
||||
importlib.import_module('.py.server', __name__)
|
||||
nodes_list = ["util", "seed", "prompt", "loaders", "adapter", "inpaint", "preSampling", "samplers", "fix", "pipe", "xyplot", "image", "logic", "api", "deprecated"]
|
||||
for module_name in nodes_list:
|
||||
imported_module = importlib.import_module(".py.nodes.{}".format(module_name), __name__)
|
||||
NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **imported_module.NODE_DISPLAY_NAME_MAPPINGS}
|
||||
|
||||
#Wildcards
|
||||
from .py.libs.wildcards import read_wildcard_dict
|
||||
wildcards_path = os.path.join(os.path.dirname(__file__), "wildcards")
|
||||
if not os.path.exists(wildcards_path):
|
||||
os.mkdir(wildcards_path)
|
||||
|
||||
# Add custom wildcards example
|
||||
example_path = os.path.join(wildcards_path, "example.txt")
|
||||
if not os.path.exists(example_path):
|
||||
with open(example_path, 'w') as f:
|
||||
text = "blue\nred\nyellow\ngreen\nbrown\npink\npurple\norange\nblack\nwhite"
|
||||
f.write(text)
|
||||
read_wildcard_dict(wildcards_path)
|
||||
|
||||
#Styles
|
||||
styles_path = os.path.join(os.path.dirname(__file__), "styles")
|
||||
samples_path = os.path.join(os.path.dirname(__file__), "styles", "samples")
|
||||
if os.path.exists(styles_path):
|
||||
if not os.path.exists(samples_path):
|
||||
os.mkdir(samples_path)
|
||||
else:
|
||||
os.mkdir(styles_path)
|
||||
os.mkdir(samples_path)
|
||||
|
||||
# Add custom styles example
|
||||
example_path = os.path.join(styles_path, "your_styles.json.example")
|
||||
if not os.path.exists(example_path):
|
||||
import json
|
||||
data = [
|
||||
{
|
||||
"name": "Example Style",
|
||||
"name_cn": "示例样式",
|
||||
"prompt": "(masterpiece), (best quality), (ultra-detailed), {prompt} ",
|
||||
"negative_prompt": "text, watermark, logo"
|
||||
},
|
||||
]
|
||||
# Write to file
|
||||
with open(example_path, 'w', encoding='utf-8') as f:
|
||||
json.dump(data, f, indent=4, ensure_ascii=False)
|
||||
|
||||
|
||||
web_default_version = 'v2'
|
||||
# web directory
|
||||
config_path = os.path.join(cwd_path, "config.yaml")
|
||||
if os.path.isfile(config_path):
|
||||
with open(config_path, 'r') as f:
|
||||
data = yaml.load(f, Loader=yaml.FullLoader)
|
||||
if data and "WEB_VERSION" in data:
|
||||
directory = f"web_version/{data['WEB_VERSION']}"
|
||||
with open(config_path, 'w') as f:
|
||||
yaml.dump(data, f)
|
||||
elif web_default_version != 'v1':
|
||||
if not data:
|
||||
data = {'WEB_VERSION': web_default_version}
|
||||
elif 'WEB_VERSION' not in data:
|
||||
data = {**data, 'WEB_VERSION': web_default_version}
|
||||
with open(config_path, 'w') as f:
|
||||
yaml.dump(data, f)
|
||||
directory = f"web_version/{web_default_version}"
|
||||
else:
|
||||
directory = f"web_version/v1"
|
||||
if not os.path.exists(os.path.join(cwd_path, directory)):
|
||||
print(f"web root {data['WEB_VERSION']} not found, using default")
|
||||
directory = f"web_version/{web_default_version}"
|
||||
WEB_DIRECTORY = directory
|
||||
else:
|
||||
directory = f"web_version/{web_default_version}"
|
||||
WEB_DIRECTORY = directory
|
||||
|
||||
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', "WEB_DIRECTORY"]
|
||||
|
||||
print(f'\033[34m[ComfyUI-Easy-Use] server: \033[0mv{__version__} \033[92mLoaded\033[0m')
|
||||
print(f'\033[34m[ComfyUI-Easy-Use] web root: \033[0m{os.path.join(cwd_path, directory)} \033[92mLoaded\033[0m')
|
||||
@@ -0,0 +1,407 @@
|
||||
import os
|
||||
import folder_paths
|
||||
from pathlib import Path
|
||||
|
||||
BASE_RESOLUTIONS = [
|
||||
("width", "height"),
|
||||
(512, 512),
|
||||
(512, 768),
|
||||
(576, 1024),
|
||||
(768, 512),
|
||||
(768, 768),
|
||||
(768, 1024),
|
||||
(768, 1280),
|
||||
(768, 1344),
|
||||
(768, 1536),
|
||||
(816, 1920),
|
||||
(832, 1152),
|
||||
(832, 1216),
|
||||
(896, 1152),
|
||||
(896, 1088),
|
||||
(1024, 1024),
|
||||
(1024, 576),
|
||||
(1024, 768),
|
||||
(1080, 1920),
|
||||
(1440, 2560),
|
||||
(1088, 896),
|
||||
(1216, 832),
|
||||
(1152, 832),
|
||||
(1152, 896),
|
||||
(1280, 768),
|
||||
(1344, 768),
|
||||
(1536, 640),
|
||||
(1536, 768),
|
||||
(1920, 816),
|
||||
(1920, 1080),
|
||||
(2560, 1440),
|
||||
]
|
||||
MAX_SEED_NUM = 1125899906842624
|
||||
|
||||
|
||||
RESOURCES_DIR = os.path.join(Path(__file__).parent.parent, "resources")
|
||||
|
||||
# inpaint
|
||||
INPAINT_DIR = os.path.join(folder_paths.models_dir, "inpaint")
|
||||
FOOOCUS_STYLES_DIR = os.path.join(Path(__file__).parent.parent, "styles")
|
||||
FOOOCUS_STYLES_SAMPLES = 'https://raw.githubusercontent.com/lllyasviel/Fooocus/main/sdxl_styles/samples/'
|
||||
FOOOCUS_INPAINT_HEAD = {
|
||||
"fooocus_inpaint_head": {
|
||||
"model_url": "https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/fooocus_inpaint_head.pth"
|
||||
}
|
||||
}
|
||||
FOOOCUS_INPAINT_PATCH = {
|
||||
"inpaint_v26 (1.32GB)": {
|
||||
"model_url": "https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/inpaint_v26.fooocus.patch"
|
||||
},
|
||||
"inpaint_v25 (2.58GB)": {
|
||||
"model_url": "https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/inpaint_v25.fooocus.patch"
|
||||
},
|
||||
"inpaint (1.32GB)": {
|
||||
"model_url": "https://huggingface.co/lllyasviel/fooocus_inpaint/resolve/main/inpaint.fooocus.patch"
|
||||
},
|
||||
}
|
||||
BRUSHNET_MODELS = {
|
||||
"random_mask": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/Kijai/BrushNet-fp16/resolve/main/brushnet_random_mask_fp16.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/yolain/brushnet/resolve/main/brushnet_random_mask_sdxl.safetensors"
|
||||
}
|
||||
},
|
||||
"segmentation_mask": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/Kijai/BrushNet-fp16/resolve/main/brushnet_segmentation_mask_fp16.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/yolain/brushnet/resolve/main/brushnet_segmentation_mask_sdxl.safetensors"
|
||||
}
|
||||
}
|
||||
}
|
||||
POWERPAINT_MODELS = {
|
||||
"base_fp16": {
|
||||
"model_url": "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/text_encoder/model.fp16.safetensors"
|
||||
},
|
||||
"v2.1": {
|
||||
"model_url": "https://huggingface.co/JunhaoZhuang/PowerPaint-v2-1/resolve/main/PowerPaint_Brushnet/diffusion_pytorch_model.safetensors",
|
||||
"clip_url": "https://huggingface.co/JunhaoZhuang/PowerPaint-v2-1/resolve/main/PowerPaint_Brushnet/pytorch_model.bin",
|
||||
}
|
||||
}
|
||||
|
||||
# layerDiffuse
|
||||
LAYER_DIFFUSION_DIR = os.path.join(folder_paths.models_dir, "layer_model")
|
||||
LAYER_DIFFUSION_VAE = {
|
||||
"encode": {
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/vae_transparent_encoder.safetensors"
|
||||
}
|
||||
},
|
||||
"decode": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_sd15_vae_transparent_decoder.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/vae_transparent_decoder.safetensors"
|
||||
}
|
||||
}
|
||||
}
|
||||
LAYER_DIFFUSION = {
|
||||
"Attention Injection": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_sd15_transparent_attn.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_xl_transparent_attn.safetensors"
|
||||
},
|
||||
},
|
||||
"Conv Injection": {
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_xl_transparent_conv.safetensors"
|
||||
},
|
||||
"sd1": {
|
||||
"model_url": None
|
||||
}
|
||||
},
|
||||
"Everything": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_sd15_joint.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": None
|
||||
}
|
||||
},
|
||||
"Foreground": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_sd15_fg2bg.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_xl_fg2ble.safetensors"
|
||||
}
|
||||
},
|
||||
"Foreground to Background": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_sd15_fg2bg.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_xl_fgble2bg.safetensors"
|
||||
}
|
||||
},
|
||||
"Background": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_sd15_bg2fg.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_xl_bg2ble.safetensors"
|
||||
}
|
||||
},
|
||||
"Background to Foreground": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_sd15_bg2fg.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/LayerDiffusion/layerdiffusion-v1/resolve/main/layer_xl_bgble2fg.safetensors"
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
# IC Light
|
||||
IC_LIGHT_MODELS = {
|
||||
"Foreground": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/huchenlei/IC-Light-ldm/resolve/main/iclight_sd15_fc_unet_ldm.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": None
|
||||
}
|
||||
},
|
||||
"Foreground&Background": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/huchenlei/IC-Light-ldm/resolve/main/iclight_sd15_fbc_unet_ldm.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# REMBG
|
||||
REMBG_DIR = os.path.join(folder_paths.models_dir, "rembg")
|
||||
REMBG_MODELS = {
|
||||
"RMBG-1.4": {
|
||||
"model_url": "https://huggingface.co/briaai/RMBG-1.4/resolve/main/model.pth"
|
||||
},
|
||||
"RMBG-2.0": {
|
||||
"model_url": "briaai/RMBG-2.0"
|
||||
},
|
||||
"BEN2": {
|
||||
"model_url": "https://huggingface.co/PramaLLC/BEN2/resolve/main/BEN2_Base.pth"
|
||||
}
|
||||
}
|
||||
|
||||
#ipadapter
|
||||
IPADAPTER_DIR = os.path.join(folder_paths.models_dir, "ipadapter")
|
||||
IPADAPTER_MODELS = {
|
||||
"LIGHT - SD1.5 only (low strength)": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter/resolve/main/models/ip-adapter_sd15_light_v11.bin"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": ""
|
||||
}
|
||||
},
|
||||
"STANDARD (medium strength)": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter/resolve/main/models/ip-adapter_sd15.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter/resolve/main/sdxl_models/ip-adapter_sdxl_vit-h.safetensors"
|
||||
}
|
||||
},
|
||||
"VIT-G (medium strength)": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter/resolve/main/models/ip-adapter_sd15_vit-G.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter/resolve/main/sdxl_models/ip-adapter_sdxl.safetensors"
|
||||
}
|
||||
},
|
||||
"PLUS (high strength)": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter/resolve/main/models/ip-adapter-plus_sd15.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter/resolve/main/sdxl_models/ip-adapter-plus_sdxl_vit-h.safetensors"
|
||||
}
|
||||
},
|
||||
"PLUS (kolors genernal)": {
|
||||
"sd1": {
|
||||
"model_url": ""
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url":"https://huggingface.co/Kwai-Kolors/Kolors-IP-Adapter-Plus/resolve/main/ip_adapter_plus_general.bin"
|
||||
}
|
||||
},
|
||||
"REGULAR - FLUX and SD3.5 only (high strength)": {
|
||||
"flux": {
|
||||
"model_url": "https://huggingface.co/InstantX/FLUX.1-dev-IP-Adapter/resolve/main/ip-adapter.bin",
|
||||
"model_file_name": "ip-adapter_flux_1_dev.bin",
|
||||
},
|
||||
"sd3": {
|
||||
"model_url": "https://huggingface.co/InstantX/SD3.5-Large-IP-Adapter/resolve/main/ip-adapter.bin",
|
||||
"model_file_name": "ip-adapter_sd35.bin",
|
||||
},
|
||||
},
|
||||
"PLUS FACE (portraits)": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter/resolve/main/models/ip-adapter-plus-face_sd15.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter/resolve/main/sdxl_models/ip-adapter-plus-face_sdxl_vit-h.safetensors"
|
||||
}
|
||||
},
|
||||
"FULL FACE - SD1.5 only (portraits stronger)": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter/resolve/main/models/ip-adapter-full-face_sd15.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": ""
|
||||
}
|
||||
},
|
||||
"FACEID": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid_sd15.bin",
|
||||
"lora_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid_sd15_lora.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid_sdxl.bin",
|
||||
"lora_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid_sdxl_lora.safetensors"
|
||||
}
|
||||
},
|
||||
"FACEID PLUS - SD1.5 only": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plus_sd15.bin",
|
||||
"lora_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plus_sd15_lora.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "",
|
||||
"lora_url": ""
|
||||
}
|
||||
},
|
||||
"FACEID PLUS V2": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plusv2_sd15.bin",
|
||||
"lora_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plusv2_sd15_lora.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plusv2_sdxl.bin",
|
||||
"lora_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-plusv2_sdxl_lora.safetensors"
|
||||
}
|
||||
},
|
||||
"FACEID PLUS KOLORS":{
|
||||
"sd1":{
|
||||
|
||||
},
|
||||
"sdxl":{
|
||||
"model_url":"https://huggingface.co/Kwai-Kolors/Kolors-IP-Adapter-FaceID-Plus/resolve/main/ipa-faceid-plus.bin"
|
||||
}
|
||||
},
|
||||
"FACEID PORTRAIT (style transfer)": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-portrait-v11_sd15.bin",
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-portrait_sdxl.bin",
|
||||
}
|
||||
},
|
||||
"FACEID PORTRAIT UNNORM - SDXL only (strong)": {
|
||||
"sd1": {
|
||||
"model_url":""
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/h94/IP-Adapter-FaceID/resolve/main/ip-adapter-faceid-portrait_sdxl_unnorm.bin",
|
||||
}
|
||||
},
|
||||
"COMPOSITION": {
|
||||
"sd1": {
|
||||
"model_url": "https://huggingface.co/ostris/ip-composition-adapter/resolve/main/ip_plus_composition_sd15.safetensors"
|
||||
},
|
||||
"sdxl": {
|
||||
"model_url": "https://huggingface.co/ostris/ip-composition-adapter/resolve/main/ip_plus_composition_sdxl.safetensors"
|
||||
}
|
||||
}
|
||||
}
|
||||
IPADAPTER_CLIPVISION_MODELS = {
|
||||
"clip-vit-large-patch14-336":{
|
||||
"model_url": "https://huggingface.co/openai/clip-vit-large-patch14-336/resolve/main/pytorch_model.bin"
|
||||
},
|
||||
"clip-vit-h-14-laion2B-s32B-b79K":{
|
||||
"model_url": "https://huggingface.co/laion/CLIP-ViT-H-14-laion2B-s32B-b79K/resolve/main/open_clip_model.safetensors"
|
||||
},
|
||||
"sigclip_vision_patch14_384":{
|
||||
"model_url": "https://huggingface.co/Comfy-Org/sigclip_vision_384/resolve/main/sigclip_vision_patch14_384.safetensors"
|
||||
}
|
||||
}
|
||||
|
||||
# dynamiCrafter
|
||||
DYNAMICRAFTER_DIR = os.path.join(folder_paths.models_dir, "dynamicrafter_models")
|
||||
DYNAMICRAFTER_MODELS = {
|
||||
"dynamicrafter_unet_512 (2.98GB)": {
|
||||
"model_url": "https://huggingface.co/ExponentialML/DynamiCrafterUNet/resolve/main/dynamicrafter_unet_512.safetensors",
|
||||
"vae_url": "https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors",
|
||||
"clip_url": "https://huggingface.co/stabilityai/stable-diffusion-2-1/resolve/main/text_encoder/model.safetensors",
|
||||
"clip_vision_url": "https://huggingface.co/laion/CLIP-ViT-H-14-laion2B-s32B-b79K/resolve/main/open_clip_model.safetensors",
|
||||
},
|
||||
"dynamicrafter_unet_512_interp (2.98GB)": {
|
||||
"model_url": "https://huggingface.co/ExponentialML/DynamiCrafterUNet/resolve/main/dynamicrafter_unet_512_interp.safetensors"
|
||||
},
|
||||
"dynamicrafter_unet_1024 (2.98GB)": {
|
||||
"model_url": "https://huggingface.co/ExponentialML/DynamiCrafterUNet/resolve/main/dynamicrafter_unet_1024.safetensors"
|
||||
},
|
||||
"dynamicrafter_unet_256 (2.98GB)": {
|
||||
"model_url": "https://huggingface.co/ExponentialML/DynamiCrafterUNet/resolve/main/dynamicrafter_unet_256.safetensors"
|
||||
},
|
||||
}
|
||||
|
||||
#humanParsing
|
||||
HUMANPARSING_MODELS = {
|
||||
"parsing_lip": {
|
||||
"model_url": "https://huggingface.co/levihsu/OOTDiffusion/resolve/main/checkpoints/humanparsing/parsing_lip.onnx",
|
||||
},
|
||||
"human-parts":{
|
||||
"model_url":"https://huggingface.co/Metal3d/deeplabv3p-resnet50-human/resolve/main/deeplabv3p-resnet50-human.onnx",
|
||||
},
|
||||
"segformer_b3_clothes":{
|
||||
"model_name": "sayeed99/segformer_b3_clothes",
|
||||
},
|
||||
"segformer_b3_fashion":{
|
||||
"model_name": "sayeed99/segformer-b3-fashion",
|
||||
},
|
||||
"face_parsing":{
|
||||
"model_name": "jonathandinu/face-parsing"
|
||||
}
|
||||
}
|
||||
|
||||
#mediapipe
|
||||
MEDIAPIPE_DIR = os.path.join(folder_paths.models_dir, "mediapipe")
|
||||
MEDIAPIPE_MODELS = {
|
||||
"selfie_multiclass_256x256": {
|
||||
"model_url": "https://huggingface.co/yolain/selfie_multiclass_256x256/resolve/main/selfie_multiclass_256x256.tflite"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#prompt template
|
||||
PROMPT_TEMPLATE = {
|
||||
"prefix": ["Detailed photo of", "Amateur photo of", "Flicker 2008 photo of", "Fantastic artwork of",
|
||||
"Vintage photograph of", "Unreal 5 render of", "Surrealist painting of",
|
||||
"Professional advertising design of"],
|
||||
"subject": ["a man", "a woman", "a young man", "a young woman", "a handsome man", "a beautiful woman", "a monster", "a toy", "a product", "a buddha", "a dog", "a cat"],
|
||||
"action": ["looking at viewer", "looking away", "looking up", "looking down", "looking back", "open mouth", "half-closed mouth", "closed mouth", "open eyes", "half-closed eyes", "closed eyes", "wink", "standing", "sitting", "lying", "walking", "running", "adjusting hair", "waving", "hand on hip", "crossed arms", "smile", "sad", "angry", "sleepy", "tired", "expressionless"],
|
||||
"clothes": ["underwear", "clothed", "casual", "dress", "swimsuit", "uniform", "bikini", "one-piece swimsuit", "shirt", "blouse", "sweater", "hoodie", "jeans", "pants", "shorts", "skirt", "vest", "coat", "trenchoat", "jacket", "short dress", "long dress", "off-shoulder", "backless", "hairbow", "hair ribbon", "hair tie", "hairband", "cap", "beanie", "bucket hat", "sun hat", "straw hat", "rice hat", "witch hat", "crown", "chain necklace", "tooth necklace", "choker", "pendant", "bracelet", "watch", "ring", "earring", "anklet", "belt", "scarf", "gloves", "mittens", "socks", "stockings", "tights", "leggings", "boots", "sneakers", "heels", "sandals", "flip-flops", "slippers", "loafers", "mules", "oxfords", "brogues", "derbies", "monk shoes", "chelsea boots", "combat boots", "riding boots", "rain boots", "wedge heels", "platform heels", "stilettos", "block heels", "kitten heels", "moccasins", "espadrilles", "pumps", "flats", "ballet flats", "mary janes", "slingbacks", "peep-toe", "mule sandals", "gladiator sandals", "thong sandals", "slide sandals", "espadrille sandals", "wedge sandals", "platform sandals", "ankle boots", "knee-high boots", "over-the-knee boots", "thigh-high boots", "wellington boots", "chukka boots", "desert boots", "chelsea boots", "hiking boots", "work boots", "snow boots", "rain boots", "riding boots", "cowboy boots", "combat boots", "biker boots", "duck boots", "military boots", "western boots", "ankle strap heels", "block heels", "chunky heels", "cone heels", "kitten heels", "platform heels", "pumps", "slingback heels", "stiletto heels", "wedge heels", "mules", "slingbacks", "slides", "thong sandals", "gladiator sandals", "espadrilles", "wedge sandals", "platform sandals", "ankle boots", "knee-high boots", "over-the-knee boots", "thigh-high boots", "wellington boots", "chukka boots", "desert boots", "chelsea boots", "hiking boots", "work boots", "snow boots", "rain boots", "riding boots", "cowboy boots", "combat boots", "biker boots", "duck boots", "military boots", "western boots", "ankle strap heels", "block heels" ],
|
||||
"environment": ["sunshine from window", "neon night, city", "sunset over sea", "golden time", "sci-fi RGB glowing, cyberpunk", "natural lighting", "warm atmosphere, at home, bedroom", "magic lit", "evil, gothic, in a cave", "light and shadow", "shadow from window", "soft studio lighting", "home atmosphere, cozy bedroom illumination", "neon, Wong Kar-wai, warm", "moonlight through curtains", "stormy sky lighting", "underwater glow, deep sea", "foggy forest at dawn", "golden hour in a meadow", "rainbow reflections, neon", "cozy candlelight", "apocalyptic, smoky atmosphere", "red glow, emergency lights", "mystical glow, enchanted forest", "campfire light", "harsh, industrial lighting", "sunrise in the mountains", "evening glow in the desert", "moonlight in a dark alley", "golden glow at a fairground", "midnight in the forest", "purple and pink hues at twilight", "foggy morning, muted light", "candle-lit room, rustic vibe", "fluorescent office lighting", "lightning flash in storm", "night, cozy warm light from fireplace", "ethereal glow, magical forest", "dusky evening on a beach", "afternoon light filtering through trees", "blue neon light, urban street", "red and blue police lights in rain", "aurora borealis glow, arctic landscape", "sunrise through foggy mountains", "golden hour on a city skyline", "mysterious twilight, heavy mist", "early morning rays, forest clearing", "colorful lantern light at festival", "soft glow through stained glass", "harsh spotlight in dark room", "mellow evening glow on a lake", "crystal reflections in a cave", "vibrant autumn lighting in a forest", "gentle snowfall at dusk", "hazy light of a winter morning", "soft, diffused foggy glow", "underwater luminescence", "rain-soaked reflections in city lights", "golden sunlight streaming through trees", "fireflies lighting up a summer night", "glowing embers from a forge", "dim candlelight in a gothic castle", "midnight sky with bright starlight", "warm sunset in a rural village", "flickering light in a haunted house", "desert sunset with mirage-like glow", "golden beams piercing through storm clouds"],
|
||||
"background": ["cars and people", "a cozy bed and a lamp", "a forest clearing with mist", "a bustling marketplace", "a quiet beach at dusk", "an old, cobblestone street", "a futuristic cityscape", "a tranquil lake with mountains", "a mysterious cave entrance", "bookshelves and plants in the background", "an ancient temple in ruins", "tall skyscrapers and neon signs", "a starry sky over a desert", "a bustling café", "rolling hills and farmland", "a modern living room with a fireplace", "an abandoned warehouse", "a picturesque mountain range", "a starry night sky", "the interior of a futuristic spaceship", "the cluttered workshop of an inventor", "the glowing embers of a bonfire", "a misty lake surrounded by trees", "an ornate palace hall", "a busy street market", "a vast desert landscape", "a peaceful library corner", "bustling train station", "a mystical, enchanted forest", "an underwater reef with colorful fish", "a quiet rural village", "a sandy beach with palm trees", "a vibrant coral reef, teeming with life", "snow-capped mountains in distance", "a stormy ocean, waves crashing", "a rustic barn in open fields", "a futuristic lab with glowing screens", "a dark, abandoned castle", "the ruins of an ancient civilization", "a bustling urban street in rain", "an elegant grand ballroom", "a sprawling field of wildflowers", "a dense jungle with sunlight filtering through", "a dimly lit, vintage bar", "an ice cave with sparkling crystals", "a serene riverbank at sunset", "a narrow alley with graffiti walls", "a peaceful zen garden with koi pond", "a high-tech control room", "a quiet mountain village at dawn", "a lighthouse on a rocky coast", "a rainy street with flickering lights", "a frozen lake with ice formations", "an abandoned theme park", "a small fishing village on a pier", "rolling sand dunes in a desert", "a dense forest with towering redwoods", "a snowy cabin in the mountains", "a mystical cave with bioluminescent plants", "a castle courtyard under moonlight", "a bustling open-air night market", "an old train station with steam", "a tranquil waterfall surrounded by trees", "a vineyard in the countryside", "a quaint medieval village", "a bustling harbor with boats", "a high-tech futuristic mall", "a lush tropical rainforest"],
|
||||
"nsfw": ["nude", "breast", "small breast", "middle breast", "large breast", "nipples", "clothes lift", "pussy juice trail", "pussy juice puddle", "small testicles", "medium testicles", "large testicles", "disembodied penis", "cum on body", "cum inside", "cum outside", "fingering", "handjob", "fellatio", "licking penis", "paizuri", "doggystyle", "cowgirl", "reversed cowgirl", "piledriver", "suspended congress", "full nelson",],
|
||||
}
|
||||
|
||||
NEW_SCHEDULERS = ['align_your_steps', 'gits']
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,106 @@
|
||||
from ..config import MAX_SEED_NUM
|
||||
import hashlib
|
||||
import random
|
||||
|
||||
class easySeed:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"seed": ("INT", {"default": 0, "min": 0, "max": MAX_SEED_NUM}),
|
||||
},
|
||||
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO", "my_unique_id": "UNIQUE_ID"},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("INT",)
|
||||
RETURN_NAMES = ("seed",)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "EasyUse/Seed"
|
||||
|
||||
def doit(self, seed=0, prompt=None, extra_pnginfo=None, my_unique_id=None):
|
||||
return seed,
|
||||
|
||||
class seedList:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"min_num": ("INT", {"default": 0, "min": 0, "max": MAX_SEED_NUM}),
|
||||
"max_num": ("INT", {"default": MAX_SEED_NUM, "max": MAX_SEED_NUM, "min": 0 }),
|
||||
"method": (["random", "increment", "decrement"], {"default": "random"}),
|
||||
"total": ("INT", {"default": 1, "min": 1, "max": 100000}),
|
||||
"seed": ("INT", {"default": 0, "min": 0, "max": MAX_SEED_NUM,}),
|
||||
},
|
||||
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO", "my_unique_id": "UNIQUE_ID"},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("INT", "INT")
|
||||
RETURN_NAMES = ("seed", "total")
|
||||
FUNCTION = "doit"
|
||||
DESCRIPTION = "Random number seed that can be used in a for loop, by connecting index and easy indexAny node to realize different seed values in the loop."
|
||||
|
||||
CATEGORY = "EasyUse/Seed"
|
||||
|
||||
def doit(self, min_num, max_num, method, total, seed=0, prompt=None, extra_pnginfo=None, my_unique_id=None):
|
||||
random.seed(seed)
|
||||
|
||||
seed_list = []
|
||||
if min_num > max_num:
|
||||
min_num, max_num = max_num, min_num
|
||||
for i in range(total):
|
||||
if method == 'random':
|
||||
s = random.randint(min_num, max_num)
|
||||
elif method == 'increment':
|
||||
s = min_num + i
|
||||
if s > max_num:
|
||||
s = max_num
|
||||
elif method == 'decrement':
|
||||
s = max_num - i
|
||||
if s < min_num:
|
||||
s = min_num
|
||||
seed_list.append(s)
|
||||
return seed_list, total
|
||||
|
||||
@classmethod
|
||||
def IS_CHANGED(s, seed, **kwargs):
|
||||
m = hashlib.sha256()
|
||||
m.update(seed)
|
||||
return m.digest().hex()
|
||||
|
||||
# 全局随机种
|
||||
class globalSeed:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"value": ("INT", {"default": 0, "min": 0, "max": MAX_SEED_NUM}),
|
||||
"mode": ("BOOLEAN", {"default": True, "label_on": "control_before_generate", "label_off": "control_after_generate"}),
|
||||
"action": (["fixed", "increment", "decrement", "randomize",
|
||||
"increment for each node", "decrement for each node", "randomize for each node"], ),
|
||||
"last_seed": ("STRING", {"default": ""}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ()
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "EasyUse/Seed"
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, **kwargs):
|
||||
return {}
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"easy seed": easySeed,
|
||||
"easy seedList": seedList,
|
||||
"easy globalSeed": globalSeed,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"easy seed": "EasySeed",
|
||||
"easy seedList": "EasySeedList",
|
||||
"easy globalSeed": "EasyGlobalSeed",
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
import os
|
||||
import folder_paths
|
||||
from ..libs.utils import AlwaysEqualProxy
|
||||
|
||||
class showLoaderSettingsNames:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"pipe": ("PIPE_LINE",),
|
||||
},
|
||||
"hidden": {
|
||||
"unique_id": "UNIQUE_ID",
|
||||
"extra_pnginfo": "EXTRA_PNGINFO",
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("STRING", "STRING", "STRING",)
|
||||
RETURN_NAMES = ("ckpt_name", "vae_name", "lora_name")
|
||||
|
||||
FUNCTION = "notify"
|
||||
OUTPUT_NODE = True
|
||||
|
||||
CATEGORY = "EasyUse/Util"
|
||||
|
||||
def notify(self, pipe, names=None, unique_id=None, extra_pnginfo=None):
|
||||
if unique_id and extra_pnginfo and "workflow" in extra_pnginfo:
|
||||
workflow = extra_pnginfo["workflow"]
|
||||
node = next((x for x in workflow["nodes"] if str(x["id"]) == unique_id), None)
|
||||
if node:
|
||||
ckpt_name = pipe['loader_settings']['ckpt_name'] if 'ckpt_name' in pipe['loader_settings'] else ''
|
||||
vae_name = pipe['loader_settings']['vae_name'] if 'vae_name' in pipe['loader_settings'] else ''
|
||||
lora_name = pipe['loader_settings']['lora_name'] if 'lora_name' in pipe['loader_settings'] else ''
|
||||
|
||||
if ckpt_name:
|
||||
ckpt_name = os.path.basename(os.path.splitext(ckpt_name)[0])
|
||||
if vae_name:
|
||||
vae_name = os.path.basename(os.path.splitext(vae_name)[0])
|
||||
if lora_name:
|
||||
lora_name = os.path.basename(os.path.splitext(lora_name)[0])
|
||||
|
||||
names = "ckpt_name: " + ckpt_name + '\n' + "vae_name: " + vae_name + '\n' + "lora_name: " + lora_name
|
||||
node["widgets_values"] = names
|
||||
|
||||
return {"ui": {"text": [names]}, "result": (ckpt_name, vae_name, lora_name)}
|
||||
|
||||
class sliderControl:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"mode": (['ipadapter layer weights'],),
|
||||
"model_type": (['sdxl', 'sd1'],),
|
||||
},
|
||||
"hidden": {
|
||||
"prompt": "PROMPT",
|
||||
"my_unique_id": "UNIQUE_ID",
|
||||
"extra_pnginfo": "EXTRA_PNGINFO",
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("STRING",)
|
||||
RETURN_NAMES = ("layer_weights",)
|
||||
|
||||
FUNCTION = "control"
|
||||
|
||||
CATEGORY = "EasyUse/Util"
|
||||
|
||||
def control(self, mode, model_type, prompt=None, my_unique_id=None, extra_pnginfo=None):
|
||||
values = ''
|
||||
if my_unique_id in prompt:
|
||||
if 'values' in prompt[my_unique_id]["inputs"]:
|
||||
values = prompt[my_unique_id]["inputs"]['values']
|
||||
|
||||
return (values,)
|
||||
|
||||
class setCkptName:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"ckpt_name": (folder_paths.get_filename_list("checkpoints"),),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = (AlwaysEqualProxy('*'),)
|
||||
RETURN_NAMES = ("ckpt_name",)
|
||||
FUNCTION = "set_name"
|
||||
CATEGORY = "EasyUse/Util"
|
||||
|
||||
def set_name(self, ckpt_name):
|
||||
return (ckpt_name,)
|
||||
|
||||
class setControlName:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"controlnet_name": (folder_paths.get_filename_list("controlnet"),),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = (AlwaysEqualProxy('*'),)
|
||||
RETURN_NAMES = ("controlnet_name",)
|
||||
FUNCTION = "set_name"
|
||||
CATEGORY = "EasyUse/Util"
|
||||
|
||||
def set_name(self, controlnet_name):
|
||||
return (controlnet_name,)
|
||||
|
||||
class setLoraName:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"lora_name": (folder_paths.get_filename_list("loras"),),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = (AlwaysEqualProxy('*'),)
|
||||
RETURN_NAMES = ("lora_name",)
|
||||
FUNCTION = "set_name"
|
||||
CATEGORY = "EasyUse/Util"
|
||||
|
||||
def set_name(self, lora_name):
|
||||
return (lora_name,)
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"easy showLoaderSettingsNames": showLoaderSettingsNames,
|
||||
"easy sliderControl": sliderControl,
|
||||
"easy ckptNames": setCkptName,
|
||||
"easy controlnetNames": setControlName,
|
||||
"easy loraNames": setLoraName,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"easy showLoaderSettingsNames": "Show Loader Settings Names",
|
||||
"easy sliderControl": "Easy Slider Control",
|
||||
"easy ckptNames": "Ckpt Names",
|
||||
"easy controlnetNames": "ControlNet Names",
|
||||
"easy loraNames": "Lora Names",
|
||||
}
|
||||
@@ -0,0 +1,400 @@
|
||||
import { app } from "../../../../scripts/app.js";
|
||||
import { ComfyWidgets } from "../../../../scripts/widgets.js";
|
||||
|
||||
const KEY_CODES = { ENTER: 13, ESC: 27, ARROW_DOWN: 40, ARROW_UP: 38 };
|
||||
const WIDGET_GAP = -4;
|
||||
|
||||
function hideInfoWidget(e, node, widget) {
|
||||
let dropdownShouldBeRemoved = false;
|
||||
let selectionIndex = -1;
|
||||
|
||||
if (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
displayDropdown(widget);
|
||||
} else {
|
||||
hideWidget(widget, node);
|
||||
}
|
||||
|
||||
function createDropdownElement() {
|
||||
const dropdown = document.createElement('ul');
|
||||
dropdown.id = 'hideinfo-dropdown';
|
||||
dropdown.setAttribute('role', 'listbox');
|
||||
dropdown.classList.add('hideInfo-dropdown');
|
||||
return dropdown;
|
||||
}
|
||||
|
||||
function createDropdownItem(textContent, action) {
|
||||
const listItem = document.createElement('li');
|
||||
listItem.id = `hideInfo-item-${textContent.replace(/ /g, '')}`;
|
||||
listItem.classList.add('hideInfo-item');
|
||||
listItem.setAttribute('role', 'option');
|
||||
listItem.textContent = textContent;
|
||||
listItem.addEventListener('mousedown', (event) => {
|
||||
event.preventDefault();
|
||||
action(widget, node); // perform the action when dropdown item is clicked
|
||||
removeDropdown();
|
||||
dropdownShouldBeRemoved = false;
|
||||
});
|
||||
listItem.dataset.action = textContent.replace(/ /g, ''); // store the action in a data attribute
|
||||
return listItem;
|
||||
}
|
||||
|
||||
function displayDropdown(widget) {
|
||||
removeDropdown();
|
||||
|
||||
const dropdown = createDropdownElement();
|
||||
const listItemHide = createDropdownItem('Hide info Widget', hideWidget);
|
||||
const listItemHideAll = createDropdownItem('Hide for all of this node-type', hideWidgetForNodetype);
|
||||
|
||||
dropdown.appendChild(listItemHide);
|
||||
dropdown.appendChild(listItemHideAll);
|
||||
|
||||
const inputRect = widget.inputEl.getBoundingClientRect();
|
||||
dropdown.style.top = `${inputRect.top + inputRect.height}px`;
|
||||
dropdown.style.left = `${inputRect.left}px`;
|
||||
dropdown.style.width = `${inputRect.width}px`;
|
||||
|
||||
document.body.appendChild(dropdown);
|
||||
dropdownShouldBeRemoved = true;
|
||||
|
||||
widget.inputEl.removeEventListener('keydown', handleKeyDown);
|
||||
widget.inputEl.addEventListener('keydown', handleKeyDown);
|
||||
document.addEventListener('click', handleDocumentClick);
|
||||
}
|
||||
|
||||
function removeDropdown() {
|
||||
const dropdown = document.getElementById('hideinfo-dropdown');
|
||||
if (dropdown) {
|
||||
dropdown.remove();
|
||||
widget.inputEl.removeEventListener('keydown', handleKeyDown);
|
||||
}
|
||||
document.removeEventListener('click', handleDocumentClick);
|
||||
|
||||
}
|
||||
|
||||
function handleKeyDown(event) {
|
||||
const dropdownItems = document.querySelectorAll('.hideInfo-item');
|
||||
|
||||
if (event.keyCode === KEY_CODES.ENTER && dropdownShouldBeRemoved) {
|
||||
event.preventDefault();
|
||||
if (selectionIndex !== -1) {
|
||||
const selectedAction = dropdownItems[selectionIndex].dataset.action;
|
||||
if (selectedAction === 'HideinfoWidget') {
|
||||
hideWidget(widget, node);
|
||||
} else if (selectedAction === 'Hideforall') {
|
||||
hideWidgetForNodetype(widget, node);
|
||||
}
|
||||
removeDropdown();
|
||||
dropdownShouldBeRemoved = false;
|
||||
}
|
||||
} else if (event.keyCode === KEY_CODES.ARROW_DOWN && dropdownShouldBeRemoved) {
|
||||
event.preventDefault();
|
||||
if (selectionIndex !== -1) {
|
||||
dropdownItems[selectionIndex].classList.remove('selected');
|
||||
}
|
||||
selectionIndex = (selectionIndex + 1) % dropdownItems.length;
|
||||
dropdownItems[selectionIndex].classList.add('selected');
|
||||
} else if (event.keyCode === KEY_CODES.ARROW_UP && dropdownShouldBeRemoved) {
|
||||
event.preventDefault();
|
||||
if (selectionIndex !== -1) {
|
||||
dropdownItems[selectionIndex].classList.remove('selected');
|
||||
}
|
||||
selectionIndex = (selectionIndex - 1 + dropdownItems.length) % dropdownItems.length;
|
||||
dropdownItems[selectionIndex].classList.add('selected');
|
||||
} else if (event.keyCode === KEY_CODES.ESC && dropdownShouldBeRemoved) {
|
||||
event.preventDefault();
|
||||
removeDropdown();
|
||||
}
|
||||
}
|
||||
|
||||
function hideWidget(widget, node) {
|
||||
node.properties['infoWidgetHidden'] = true;
|
||||
widget.type = "esayHidden";
|
||||
widget.computeSize = () => [0, WIDGET_GAP];
|
||||
node.setSize([node.size[0], node.size[1]]);
|
||||
}
|
||||
|
||||
function hideWidgetForNodetype(widget, node) {
|
||||
hideWidget(widget, node)
|
||||
const hiddenNodeTypes = JSON.parse(localStorage.getItem('hiddenWidgetNodeTypes') || "[]");
|
||||
if (!hiddenNodeTypes.includes(node.constructor.type)) {
|
||||
hiddenNodeTypes.push(node.constructor.type);
|
||||
}
|
||||
localStorage.setItem('hiddenWidgetNodeTypes', JSON.stringify(hiddenNodeTypes));
|
||||
}
|
||||
|
||||
function handleDocumentClick(event) {
|
||||
const dropdown = document.getElementById('hideinfo-dropdown');
|
||||
|
||||
// If the click was outside the dropdown and the dropdown should be removed, remove it
|
||||
if (dropdown && !dropdown.contains(event.target) && dropdownShouldBeRemoved) {
|
||||
removeDropdown();
|
||||
dropdownShouldBeRemoved = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var styleElement = document.createElement("style");
|
||||
const cssCode = `
|
||||
.easy-info_widget {
|
||||
background-color: var(--comfy-input-bg);
|
||||
color: var(--input-text);
|
||||
overflow: hidden;
|
||||
padding: 2px;
|
||||
resize: none;
|
||||
border: none;
|
||||
box-sizing: border-box;
|
||||
font-size: 10px;
|
||||
border-radius: 7px;
|
||||
text-align: center;
|
||||
text-wrap: balance;
|
||||
}
|
||||
.hideInfo-dropdown {
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
background-color: #121212;
|
||||
border-radius: 7px;
|
||||
box-shadow: 0 2px 4px rgba(255, 255, 255, .25);
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
z-index: 1000;
|
||||
overflow: auto;
|
||||
max-height: 200px;
|
||||
}
|
||||
|
||||
.hideInfo-dropdown li {
|
||||
padding: 4px 10px;
|
||||
cursor: pointer;
|
||||
font-family: system-ui;
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.hideInfo-dropdown li:hover,
|
||||
.hideInfo-dropdown li.selected {
|
||||
background-color: #e5e5e5;
|
||||
border-radius: 7px;
|
||||
}
|
||||
`
|
||||
styleElement.innerHTML = cssCode
|
||||
document.head.appendChild(styleElement);
|
||||
|
||||
const InfoSymbol = Symbol();
|
||||
const InfoResizeSymbol = Symbol();
|
||||
|
||||
|
||||
|
||||
|
||||
// WIDGET FUNCTIONS
|
||||
function addInfoWidget(node, name, opts, app) {
|
||||
const INFO_W_SIZE = 50;
|
||||
|
||||
node.addProperty('infoWidgetHidden', false)
|
||||
|
||||
function computeSize(size) {
|
||||
if (node.widgets[0].last_y == null) return;
|
||||
|
||||
let y = node.widgets[0].last_y;
|
||||
|
||||
// Compute the height of all non easyInfo widgets
|
||||
let widgetHeight = 0;
|
||||
const infoWidges = [];
|
||||
for (let i = 0; i < node.widgets.length; i++) {
|
||||
const w = node.widgets[i];
|
||||
if (w.type === "easyInfo") {
|
||||
infoWidges.push(w);
|
||||
} else {
|
||||
if (w.computeSize) {
|
||||
widgetHeight += w.computeSize()[1] + 4;
|
||||
} else {
|
||||
widgetHeight += LiteGraph.NODE_WIDGET_HEIGHT + 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let infoWidgetSpace = infoWidges.length * INFO_W_SIZE; // Height for all info widgets
|
||||
|
||||
// Check if there's enough space for all widgets
|
||||
if (size[1] < y + widgetHeight + infoWidgetSpace) {
|
||||
// There isn't enough space for all the widgets, increase the size of the node
|
||||
node.size[1] = y + widgetHeight + infoWidgetSpace;
|
||||
node.graph.setDirtyCanvas(true);
|
||||
}
|
||||
|
||||
// Position each of the widgets
|
||||
for (const w of node.widgets) {
|
||||
w.y = y;
|
||||
if (w.type === "easyInfo") {
|
||||
y += INFO_W_SIZE;
|
||||
} else if (w.computeSize) {
|
||||
y += w.computeSize()[1] + 4;
|
||||
} else {
|
||||
y += LiteGraph.NODE_WIDGET_HEIGHT + 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const widget = {
|
||||
type: "easyInfo",
|
||||
name,
|
||||
get value() {
|
||||
return this.inputEl.value;
|
||||
},
|
||||
set value(x) {
|
||||
this.inputEl.value = x;
|
||||
},
|
||||
draw: function (ctx, _, widgetWidth, y, widgetHeight) {
|
||||
if (!this.parent.inputHeight) {
|
||||
// If we are initially offscreen when created we wont have received a resize event
|
||||
// Calculate it here instead
|
||||
computeSize(node.size);
|
||||
}
|
||||
const visible = app.canvas.ds.scale > 0.5 && this.type === "easyInfo";
|
||||
const margin = 10;
|
||||
const elRect = ctx.canvas.getBoundingClientRect();
|
||||
const transform = new DOMMatrix()
|
||||
.scaleSelf(elRect.width / ctx.canvas.width, elRect.height / ctx.canvas.height)
|
||||
.multiplySelf(ctx.getTransform())
|
||||
.translateSelf(margin, margin + y);
|
||||
|
||||
Object.assign(this.inputEl.style, {
|
||||
transformOrigin: "0 0",
|
||||
transform: transform,
|
||||
left: "0px",
|
||||
top: "0px",
|
||||
width: `${widgetWidth - (margin * 2)}px`,
|
||||
height: `${this.parent.inputHeight - (margin * 2)}px`,
|
||||
position: "absolute",
|
||||
background: (!node.color)?'':node.color,
|
||||
color: (!node.color)?'':'white',
|
||||
zIndex: app.graph._nodes.indexOf(node),
|
||||
});
|
||||
this.inputEl.hidden = !visible;
|
||||
},
|
||||
};
|
||||
widget.inputEl = document.createElement("textarea");
|
||||
widget.inputEl.className = "easy-info_widget";
|
||||
widget.inputEl.value = opts.defaultVal;
|
||||
widget.inputEl.placeholder = opts.placeholder || "";
|
||||
widget.inputEl.readOnly = true;
|
||||
widget.parent = node;
|
||||
|
||||
document.body.appendChild(widget.inputEl);
|
||||
|
||||
node.addCustomWidget(widget);
|
||||
|
||||
app.canvas.onDrawBackground = function () {
|
||||
// Draw node isnt fired once the node is off the screen
|
||||
// if it goes off screen quickly, the input may not be removed
|
||||
// this shifts it off screen so it can be moved back if the node is visible.
|
||||
for (let n in app.graph._nodes) {
|
||||
n = app.graph._nodes[n];
|
||||
for (let w in n.widgets) {
|
||||
let wid = n.widgets[w];
|
||||
if (Object.hasOwn(wid, "inputEl")) {
|
||||
wid.inputEl.style.left = -8000 + "px";
|
||||
wid.inputEl.style.position = "absolute";
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
node.onRemoved = function () {
|
||||
// When removing this node we need to remove the input from the DOM
|
||||
for (let y in this.widgets) {
|
||||
if (this.widgets[y].inputEl) {
|
||||
this.widgets[y].inputEl.remove();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
widget.onRemove = () => {
|
||||
widget.inputEl?.remove();
|
||||
|
||||
// Restore original size handler if we are the last
|
||||
if (!--node[InfoSymbol]) {
|
||||
node.onResize = node[InfoResizeSymbol];
|
||||
delete node[InfoSymbol];
|
||||
delete node[InfoResizeSymbol];
|
||||
}
|
||||
};
|
||||
|
||||
if (node[InfoSymbol]) {
|
||||
node[InfoSymbol]++;
|
||||
} else {
|
||||
node[InfoSymbol] = 1;
|
||||
const onResize = (node[InfoResizeSymbol] = node.onResize);
|
||||
|
||||
node.onResize = function (size) {
|
||||
computeSize(size);
|
||||
|
||||
// Call original resizer handler
|
||||
if (onResize) {
|
||||
console.log(this, arguments)
|
||||
onResize.apply(this, arguments);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return { widget };
|
||||
}
|
||||
|
||||
// WIDGETS
|
||||
const easyCustomWidgets = {
|
||||
INFO(node, inputName, inputData, app) {
|
||||
const defaultVal = inputData[1].default || "";
|
||||
return addInfoWidget(node, inputName, { defaultVal, ...inputData[1] }, app);
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
app.registerExtension({
|
||||
name: "comfy.easy.widgets",
|
||||
getCustomWidgets(app) {
|
||||
return easyCustomWidgets;
|
||||
},
|
||||
nodeCreated(node) {
|
||||
if (node.widgets) {
|
||||
// Locate info widgets
|
||||
const widgets = node.widgets.filter((n) => (n.type === "easyInfo"));
|
||||
for (const widget of widgets) {
|
||||
widget.inputEl.addEventListener('contextmenu', function(e) {
|
||||
hideInfoWidget(e, node, widget);
|
||||
});
|
||||
widget.inputEl.addEventListener('click', function(e) {
|
||||
hideInfoWidget(e, node, widget);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
||||
const hiddenNodeTypes = JSON.parse(localStorage.getItem('hiddenWidgetNodeTypes') || "[]");
|
||||
const origOnConfigure = nodeType.prototype.onConfigure;
|
||||
nodeType.prototype.onConfigure = function () {
|
||||
const r = origOnConfigure ? origOnConfigure.apply(this, arguments) : undefined;
|
||||
if (this.properties['infoWidgetHidden']) {
|
||||
for (let i in this.widgets) {
|
||||
if (this.widgets[i].type == "easyInfo") {
|
||||
hideInfoWidget(null, this, this.widgets[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return r;
|
||||
};
|
||||
const origOnAdded = nodeType.prototype.onAdded;
|
||||
nodeType.prototype.onAdded = function () {
|
||||
const r = origOnAdded ? origOnAdded.apply(this, arguments) : undefined;
|
||||
if (hiddenNodeTypes.includes(this.type)) {
|
||||
for (let i in this.widgets) {
|
||||
if (this.widgets[i].type == "easyInfo") {
|
||||
this.properties['infoWidgetHidden'] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return r;
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,666 @@
|
||||
import { app } from "../../../scripts/app.js";
|
||||
import { fabric } from "../lib/fabric.js";
|
||||
|
||||
fabric.Object.prototype.transparentCorners = false;
|
||||
fabric.Object.prototype.cornerColor = "#108ce6";
|
||||
fabric.Object.prototype.borderColor = "#108ce6";
|
||||
fabric.Object.prototype.cornerSize = 10;
|
||||
|
||||
let connect_keypoints = [
|
||||
[0, 1],
|
||||
[1, 2],
|
||||
[2, 3],
|
||||
[3, 4],
|
||||
[1, 5],
|
||||
[5, 6],
|
||||
[6, 7],
|
||||
[1, 8],
|
||||
[8, 9],
|
||||
[9, 10],
|
||||
[1, 11],
|
||||
[11, 12],
|
||||
[12, 13],
|
||||
[0, 14],
|
||||
[14, 16],
|
||||
[0, 15],
|
||||
[15, 17],
|
||||
];
|
||||
|
||||
let connect_color = [
|
||||
[0, 0, 255],
|
||||
[255, 0, 0],
|
||||
[255, 170, 0],
|
||||
[255, 255, 0],
|
||||
[255, 85, 0],
|
||||
[170, 255, 0],
|
||||
[85, 255, 0],
|
||||
[0, 255, 0],
|
||||
[0, 255, 85],
|
||||
[0, 255, 170],
|
||||
[0, 255, 255],
|
||||
[0, 170, 255],
|
||||
[0, 85, 255],
|
||||
[85, 0, 255],
|
||||
[170, 0, 255],
|
||||
[255, 0, 255],
|
||||
[255, 0, 170],
|
||||
[255, 0, 85],
|
||||
];
|
||||
|
||||
const default_keypoints = [
|
||||
[241, 77],
|
||||
[241, 120],
|
||||
[191, 118],
|
||||
[177, 183],
|
||||
[163, 252],
|
||||
[298, 118],
|
||||
[317, 182],
|
||||
[332, 245],
|
||||
[225, 241],
|
||||
[213, 359],
|
||||
[215, 454],
|
||||
[270, 240],
|
||||
[282, 360],
|
||||
[286, 456],
|
||||
[232, 59],
|
||||
[253, 60],
|
||||
[225, 70],
|
||||
[260, 72],
|
||||
];
|
||||
|
||||
class OpenPose {
|
||||
constructor(node, canvasElement) {
|
||||
this.lockMode = false;
|
||||
this.visibleEyes = true;
|
||||
this.flipped = false;
|
||||
this.node = node;
|
||||
this.undo_history = LS_Poses[node.name].undo_history || [];
|
||||
this.redo_history = LS_Poses[node.name].redo_history || [];
|
||||
this.history_change = false;
|
||||
this.canvas = this.initCanvas(canvasElement);
|
||||
this.image = node.widgets.find((w) => w.name === "image");
|
||||
}
|
||||
|
||||
setPose(keypoints) {
|
||||
this.canvas.clear();
|
||||
|
||||
this.canvas.backgroundColor = "#000";
|
||||
|
||||
const res = [];
|
||||
for (let i = 0; i < keypoints.length; i += 18) {
|
||||
const chunk = keypoints.slice(i, i + 18);
|
||||
res.push(chunk);
|
||||
}
|
||||
|
||||
for (let item of res) {
|
||||
this.addPose(item);
|
||||
this.canvas.discardActiveObject();
|
||||
}
|
||||
}
|
||||
|
||||
addPose(keypoints = undefined) {
|
||||
if (keypoints === undefined) {
|
||||
keypoints = default_keypoints;
|
||||
}
|
||||
|
||||
const group = new fabric.Group();
|
||||
|
||||
const makeCircle = (
|
||||
color,
|
||||
left,
|
||||
top,
|
||||
line1,
|
||||
line2,
|
||||
line3,
|
||||
line4,
|
||||
line5
|
||||
) => {
|
||||
let c = new fabric.Circle({
|
||||
left: left,
|
||||
top: top,
|
||||
strokeWidth: 1,
|
||||
radius: 5,
|
||||
fill: color,
|
||||
stroke: color,
|
||||
});
|
||||
|
||||
c.hasControls = c.hasBorders = false;
|
||||
c.line1 = line1;
|
||||
c.line2 = line2;
|
||||
c.line3 = line3;
|
||||
c.line4 = line4;
|
||||
c.line5 = line5;
|
||||
|
||||
return c;
|
||||
};
|
||||
|
||||
const makeLine = (coords, color) => {
|
||||
return new fabric.Line(coords, {
|
||||
fill: color,
|
||||
stroke: color,
|
||||
strokeWidth: 10,
|
||||
selectable: false,
|
||||
evented: false,
|
||||
});
|
||||
};
|
||||
|
||||
const lines = [];
|
||||
const circles = [];
|
||||
|
||||
for (let i = 0; i < connect_keypoints.length; i++) {
|
||||
// 接続されるidxを指定 [0, 1]なら0と1つなぐ
|
||||
const item = connect_keypoints[i];
|
||||
const line = makeLine(
|
||||
keypoints[item[0]].concat(keypoints[item[1]]),
|
||||
`rgba(${connect_color[i].join(", ")}, 0.7)`
|
||||
);
|
||||
lines.push(line);
|
||||
this.canvas.add(line);
|
||||
}
|
||||
|
||||
for (let i = 0; i < keypoints.length; i++) {
|
||||
let list = [];
|
||||
|
||||
connect_keypoints.filter((item, idx) => {
|
||||
if (item.includes(i)) {
|
||||
list.push(lines[idx]);
|
||||
return idx;
|
||||
}
|
||||
});
|
||||
const circle = makeCircle(
|
||||
`rgb(${connect_color[i].join(", ")})`,
|
||||
keypoints[i][0],
|
||||
keypoints[i][1],
|
||||
...list
|
||||
);
|
||||
circle["id"] = i;
|
||||
circles.push(circle);
|
||||
group.addWithUpdate(circle);
|
||||
}
|
||||
|
||||
this.canvas.discardActiveObject();
|
||||
this.canvas.setActiveObject(group);
|
||||
this.canvas.add(group);
|
||||
group.toActiveSelection();
|
||||
this.canvas.requestRenderAll();
|
||||
}
|
||||
|
||||
initCanvas() {
|
||||
this.canvas = new fabric.Canvas(this.canvas, {
|
||||
backgroundColor: "#000",
|
||||
preserveObjectStacking: true,
|
||||
});
|
||||
|
||||
const updateLines = (target) => {
|
||||
if ("_objects" in target) {
|
||||
const flipX = target.flipX ? -1 : 1;
|
||||
const flipY = target.flipY ? -1 : 1;
|
||||
this.flipped = flipX * flipY === -1;
|
||||
const showEyes = this.flipped ? !this.visibleEyes : this.visibleEyes;
|
||||
|
||||
if (target.angle === 0) {
|
||||
const rtop = target.top;
|
||||
const rleft = target.left;
|
||||
for (const item of target._objects) {
|
||||
let p = item;
|
||||
p.scaleX = 1;
|
||||
p.scaleY = 1;
|
||||
const top =
|
||||
rtop +
|
||||
p.top * target.scaleY * flipY +
|
||||
(target.height * target.scaleY) / 2;
|
||||
const left =
|
||||
rleft +
|
||||
p.left * target.scaleX * flipX +
|
||||
(target.width * target.scaleX) / 2;
|
||||
p["_top"] = top;
|
||||
p["_left"] = left;
|
||||
if (p["id"] === 0) {
|
||||
p.line1 && p.line1.set({ x1: left, y1: top });
|
||||
} else {
|
||||
p.line1 && p.line1.set({ x2: left, y2: top });
|
||||
}
|
||||
if (p["id"] === 14 || p["id"] === 15) {
|
||||
p.radius = showEyes ? 5 : 0;
|
||||
if (p.line1) p.line1.strokeWidth = showEyes ? 10 : 0;
|
||||
if (p.line2) p.line2.strokeWidth = showEyes ? 10 : 0;
|
||||
}
|
||||
p.line2 && p.line2.set({ x1: left, y1: top });
|
||||
p.line3 && p.line3.set({ x1: left, y1: top });
|
||||
p.line4 && p.line4.set({ x1: left, y1: top });
|
||||
p.line5 && p.line5.set({ x1: left, y1: top });
|
||||
}
|
||||
} else {
|
||||
const aCoords = target.aCoords;
|
||||
const center = {
|
||||
x: (aCoords.tl.x + aCoords.br.x) / 2,
|
||||
y: (aCoords.tl.y + aCoords.br.y) / 2,
|
||||
};
|
||||
const rad = (target.angle * Math.PI) / 180;
|
||||
const sin = Math.sin(rad);
|
||||
const cos = Math.cos(rad);
|
||||
|
||||
for (const item of target._objects) {
|
||||
let p = item;
|
||||
const p_top = p.top * target.scaleY * flipY;
|
||||
const p_left = p.left * target.scaleX * flipX;
|
||||
const left = center.x + p_left * cos - p_top * sin;
|
||||
const top = center.y + p_left * sin + p_top * cos;
|
||||
p["_top"] = top;
|
||||
p["_left"] = left;
|
||||
if (p["id"] === 0) {
|
||||
p.line1 && p.line1.set({ x1: left, y1: top });
|
||||
} else {
|
||||
p.line1 && p.line1.set({ x2: left, y2: top });
|
||||
}
|
||||
if (p["id"] === 14 || p["id"] === 15) {
|
||||
p.radius = showEyes ? 5 : 0.3;
|
||||
if (p.line1) p.line1.strokeWidth = showEyes ? 10 : 0;
|
||||
if (p.line2) p.line2.strokeWidth = showEyes ? 10 : 0;
|
||||
}
|
||||
p.line2 && p.line2.set({ x1: left, y1: top });
|
||||
p.line3 && p.line3.set({ x1: left, y1: top });
|
||||
p.line4 && p.line4.set({ x1: left, y1: top });
|
||||
p.line5 && p.line5.set({ x1: left, y1: top });
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var p = target;
|
||||
if (p["id"] === 0) {
|
||||
p.line1 && p.line1.set({ x1: p.left, y1: p.top });
|
||||
} else {
|
||||
p.line1 && p.line1.set({ x2: p.left, y2: p.top });
|
||||
}
|
||||
p.line2 && p.line2.set({ x1: p.left, y1: p.top });
|
||||
p.line3 && p.line3.set({ x1: p.left, y1: p.top });
|
||||
p.line4 && p.line4.set({ x1: p.left, y1: p.top });
|
||||
p.line5 && p.line5.set({ x1: p.left, y1: p.top });
|
||||
}
|
||||
this.canvas.renderAll();
|
||||
};
|
||||
|
||||
this.canvas.on("object:moving", (e) => {
|
||||
updateLines(e.target);
|
||||
});
|
||||
|
||||
this.canvas.on("object:scaling", (e) => {
|
||||
updateLines(e.target);
|
||||
this.canvas.renderAll();
|
||||
});
|
||||
|
||||
this.canvas.on("object:rotating", (e) => {
|
||||
updateLines(e.target);
|
||||
this.canvas.renderAll();
|
||||
});
|
||||
|
||||
this.canvas.on("object:modified", () => {
|
||||
if (
|
||||
this.lockMode ||
|
||||
this.canvas.getActiveObject().type == "activeSelection"
|
||||
)
|
||||
return;
|
||||
this.undo_history.push(this.getJSON());
|
||||
this.redo_history.length = 0;
|
||||
this.history_change = true;
|
||||
this.uploadPoseFile(this.node.name);
|
||||
});
|
||||
|
||||
if (!LS_Poses[this.node.name].undo_history.length) {
|
||||
this.setPose(default_keypoints);
|
||||
this.undo_history.push(this.getJSON());
|
||||
}
|
||||
return this.canvas;
|
||||
}
|
||||
|
||||
undo() {
|
||||
if (this.undo_history.length > 0) {
|
||||
this.lockMode = true;
|
||||
if (this.undo_history.length > 1)
|
||||
this.redo_history.push(this.undo_history.pop());
|
||||
|
||||
const content = this.undo_history[this.undo_history.length - 1];
|
||||
this.loadPreset(content);
|
||||
this.canvas.renderAll();
|
||||
this.lockMode = false;
|
||||
this.history_change = true;
|
||||
this.uploadPoseFile(this.node.name);
|
||||
}
|
||||
}
|
||||
|
||||
redo() {
|
||||
if (this.redo_history.length > 0) {
|
||||
this.lockMode = true;
|
||||
const content = this.redo_history.pop();
|
||||
this.undo_history.push(content);
|
||||
this.loadPreset(content);
|
||||
this.canvas.renderAll();
|
||||
this.lockMode = false;
|
||||
this.history_change = true;
|
||||
this.uploadPoseFile(this.node.name);
|
||||
}
|
||||
}
|
||||
|
||||
resetCanvas() {
|
||||
this.canvas.clear();
|
||||
this.canvas.backgroundColor = "#000";
|
||||
this.addPose();
|
||||
}
|
||||
|
||||
updateHistoryData() {
|
||||
if (this.history_change) {
|
||||
LS_Poses[this.node.name].undo_history = this.undo_history;
|
||||
LS_Poses[this.node.name].redo_history = this.redo_history;
|
||||
LS_Save();
|
||||
this.history_change = false;
|
||||
}
|
||||
}
|
||||
|
||||
uploadPoseFile(fileName) {
|
||||
// Upload pose to temp folder ComfyUI
|
||||
|
||||
const uploadFile = async (blobFile) => {
|
||||
try {
|
||||
const resp = await fetch("/upload/image", {
|
||||
method: "POST",
|
||||
body: blobFile,
|
||||
});
|
||||
|
||||
if (resp.status === 200) {
|
||||
const data = await resp.json();
|
||||
|
||||
if (!this.image.options.values.includes(data.name)) {
|
||||
this.image.options.values.push(data.name);
|
||||
}
|
||||
|
||||
this.image.value = data.name;
|
||||
this.updateHistoryData();
|
||||
} else {
|
||||
alert(resp.status + " - " + resp.statusText);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
};
|
||||
|
||||
this.canvas.lowerCanvasEl.toBlob(function (blob) {
|
||||
let formData = new FormData();
|
||||
formData.append("image", blob, fileName);
|
||||
formData.append("overwrite", "true");
|
||||
formData.append("type", "temp");
|
||||
uploadFile(formData);
|
||||
}, "image/png");
|
||||
// - end
|
||||
|
||||
const callb = this.node.callback,
|
||||
self = this;
|
||||
this.image.callback = function () {
|
||||
this.image.value = self.node.name;
|
||||
if (callb) {
|
||||
return callb.apply(this, arguments);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
getJSON() {
|
||||
const json = {
|
||||
keypoints: this.canvas
|
||||
.getObjects()
|
||||
.filter((item) => {
|
||||
if (item.type === "circle") return item;
|
||||
})
|
||||
.map((item) => {
|
||||
return [Math.round(item.left), Math.round(item.top)];
|
||||
}),
|
||||
};
|
||||
|
||||
return json;
|
||||
}
|
||||
|
||||
loadPreset(json) {
|
||||
try {
|
||||
if (json["keypoints"].length % 18 === 0) {
|
||||
this.setPose(json["keypoints"]);
|
||||
} else {
|
||||
throw new Error("keypoints is invalid");
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Create OpenPose widget
|
||||
function createOpenPose(node, inputName, inputData, app) {
|
||||
node.name = inputName;
|
||||
const widget = {
|
||||
type: "openpose",
|
||||
name: `w${inputName}`,
|
||||
|
||||
draw: function (ctx, _, widgetWidth, y, widgetHeight) {
|
||||
const margin = 10,
|
||||
visible = app.canvas.ds.scale > 0.5 && this.type === "openpose",
|
||||
clientRectBound = ctx.canvas.getBoundingClientRect(),
|
||||
transform = new DOMMatrix()
|
||||
.scaleSelf(
|
||||
clientRectBound.width / ctx.canvas.width,
|
||||
clientRectBound.height / ctx.canvas.height
|
||||
)
|
||||
.multiplySelf(ctx.getTransform())
|
||||
.translateSelf(margin, margin + y),
|
||||
w = (widgetWidth - margin * 2 - 3) * transform.a;
|
||||
|
||||
Object.assign(this.openpose.style, {
|
||||
left: `${transform.a * margin + transform.e}px`,
|
||||
top: `${transform.d + transform.f}px`,
|
||||
width: w + "px",
|
||||
height: w + "px",
|
||||
position: "absolute",
|
||||
zIndex: app.graph._nodes.indexOf(node),
|
||||
});
|
||||
|
||||
Object.assign(this.openpose.children[0].style, {
|
||||
width: w + "px",
|
||||
height: w + "px",
|
||||
});
|
||||
|
||||
Object.assign(this.openpose.children[1].style, {
|
||||
width: w + "px",
|
||||
height: w + "px",
|
||||
});
|
||||
|
||||
Array.from(this.openpose.children[2].children).forEach((element) => {
|
||||
Object.assign(element.style, {
|
||||
width: `${28.0 * transform.a}px`,
|
||||
height: `${22.0 * transform.d}px`,
|
||||
fontSize: `${transform.d * 10.0}px`,
|
||||
});
|
||||
element.hidden = !visible;
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
// Fabric canvas
|
||||
let canvasOpenPose = document.createElement("canvas");
|
||||
node.openPose = new OpenPose(node, canvasOpenPose);
|
||||
|
||||
node.openPose.canvas.setWidth(512);
|
||||
node.openPose.canvas.setHeight(512);
|
||||
|
||||
let widgetCombo = node.widgets.filter((w) => w.type === "combo");
|
||||
widgetCombo[0].value = node.name;
|
||||
|
||||
widget.openpose = node.openPose.canvas.wrapperEl;
|
||||
widget.parent = node;
|
||||
|
||||
// Create elements undo, redo, clear history
|
||||
let panelButtons = document.createElement("div"),
|
||||
undoButton = document.createElement("button"),
|
||||
redoButton = document.createElement("button"),
|
||||
historyClearButton = document.createElement("button");
|
||||
|
||||
panelButtons.className = "panelButtons comfy-menu-btns";
|
||||
undoButton.textContent = "⟲";
|
||||
redoButton.textContent = "⟳";
|
||||
historyClearButton.textContent = "✖";
|
||||
undoButton.title = "Undo";
|
||||
redoButton.title = "Redo";
|
||||
historyClearButton.title = "Clear History";
|
||||
|
||||
undoButton.addEventListener("click", () => node.openPose.undo());
|
||||
redoButton.addEventListener("click", () => node.openPose.redo());
|
||||
historyClearButton.addEventListener("click", () => {
|
||||
if (confirm(`Delete all pose history of a node "${node.name}"?`)) {
|
||||
node.openPose.undo_history = [];
|
||||
node.openPose.redo_history = [];
|
||||
node.openPose.setPose(default_keypoints);
|
||||
node.openPose.undo_history.push(node.openPose.getJSON());
|
||||
node.openPose.history_change = true;
|
||||
node.openPose.updateHistoryData();
|
||||
}
|
||||
});
|
||||
|
||||
panelButtons.appendChild(undoButton);
|
||||
panelButtons.appendChild(redoButton);
|
||||
panelButtons.appendChild(historyClearButton);
|
||||
node.openPose.canvas.wrapperEl.appendChild(panelButtons);
|
||||
|
||||
document.body.appendChild(widget.openpose);
|
||||
|
||||
// Add buttons add, reset, undo, redo poses
|
||||
node.addWidget("button", "Add pose", "add_pose", () => {
|
||||
node.openPose.addPose();
|
||||
});
|
||||
|
||||
node.addWidget("button", "Reset pose", "reset_pose", () => {
|
||||
node.openPose.resetCanvas();
|
||||
});
|
||||
|
||||
// Add customWidget to node
|
||||
node.addCustomWidget(widget);
|
||||
|
||||
node.onRemoved = () => {
|
||||
if (Object.hasOwn(LS_Poses, node.name)) {
|
||||
delete LS_Poses[node.name];
|
||||
LS_Save();
|
||||
}
|
||||
|
||||
// When removing this node we need to remove the input from the DOM
|
||||
for (let y in node.widgets) {
|
||||
if (node.widgets[y].openpose) {
|
||||
node.widgets[y].openpose.remove();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
widget.onRemove = () => {
|
||||
widget.openpose?.remove();
|
||||
};
|
||||
|
||||
app.canvas.onDrawBackground = function () {
|
||||
// Draw node isnt fired once the node is off the screen
|
||||
// if it goes off screen quickly, the input may not be removed
|
||||
// this shifts it off screen so it can be moved back if the node is visible.
|
||||
for (let n in app.graph._nodes) {
|
||||
n = graph._nodes[n];
|
||||
for (let w in n.widgets) {
|
||||
let wid = n.widgets[w];
|
||||
if (Object.hasOwn(wid, "openpose")) {
|
||||
wid.openpose.style.left = -8000 + "px";
|
||||
wid.openpose.style.position = "absolute";
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
return { widget: widget };
|
||||
}
|
||||
|
||||
window.LS_Poses = {};
|
||||
function LS_Save() {
|
||||
///console.log("Save:", LS_Poses);
|
||||
localStorage.setItem("ComfyUI_Poses", JSON.stringify(LS_Poses));
|
||||
}
|
||||
|
||||
app.registerExtension({
|
||||
name: "comfy.easyuse.poseEditor",
|
||||
async init(app) {
|
||||
// Any initial setup to run as soon as the page loads
|
||||
let style = document.createElement("style");
|
||||
style.innerText = `.panelButtons{
|
||||
position: absolute;
|
||||
padding: 4px;
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
flex-direction: column;
|
||||
width: fit-content;
|
||||
}
|
||||
.panelButtons button:last-child{
|
||||
border-color: var(--error-text);
|
||||
color: var(--error-text) !important;
|
||||
}
|
||||
|
||||
`;
|
||||
document.head.appendChild(style);
|
||||
},
|
||||
async setup(app) {
|
||||
let openPoseNode = app.graph._nodes.filter((wi) => wi.type == "easy poseEditor");
|
||||
|
||||
if (openPoseNode.length) {
|
||||
openPoseNode.map((n) => {
|
||||
console.log(`Setup PoseNode: ${n.name}`);
|
||||
let widgetImage = n.widgets.find((w) => w.name == "image");
|
||||
if (widgetImage && Object.hasOwn(LS_Poses, n.name)) {
|
||||
let pose_ls = LS_Poses[n.name].undo_history;
|
||||
n.openPose.loadPreset(
|
||||
pose_ls.length > 0
|
||||
? pose_ls[pose_ls.length - 1]
|
||||
: { keypoints: default_keypoints }
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
||||
if (nodeData.name === "easy poseEditor") {
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated;
|
||||
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
const r = onNodeCreated
|
||||
? onNodeCreated.apply(this, arguments)
|
||||
: undefined;
|
||||
|
||||
let openPoseNode = app.graph._nodes.filter(
|
||||
(wi) => {wi.type == "easy poseEditor"}
|
||||
),
|
||||
nodeName = `Pose_${openPoseNode.length}`,
|
||||
nodeNamePNG = `${nodeName}.png`;
|
||||
|
||||
console.log(`Create PoseNode: ${nodeName}`);
|
||||
|
||||
LS_Poses =
|
||||
localStorage.getItem("ComfyUI_Poses") &&
|
||||
JSON.parse(localStorage.getItem("ComfyUI_Poses"));
|
||||
if (!LS_Poses) {
|
||||
localStorage.setItem("ComfyUI_Poses", JSON.stringify({}));
|
||||
LS_Poses = JSON.parse(localStorage.getItem("ComfyUI_Poses"));
|
||||
}
|
||||
|
||||
if (!Object.hasOwn(LS_Poses, nodeNamePNG)) {
|
||||
LS_Poses[nodeNamePNG] = {
|
||||
undo_history: [],
|
||||
redo_history: [],
|
||||
};
|
||||
LS_Save();
|
||||
}
|
||||
|
||||
createOpenPose.apply(this, [this, nodeNamePNG, {}, app]);
|
||||
setTimeout(() => {
|
||||
this.openPose.uploadPoseFile(nodeNamePNG);
|
||||
}, 1);
|
||||
|
||||
this.setSize([530, 620]);
|
||||
|
||||
return r;
|
||||
};
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,47 @@
|
||||
import { api } from "../../../scripts/api.js";
|
||||
|
||||
// 全局Seed
|
||||
function globalSeedHandler(event) {
|
||||
let nodes = app.graph._nodes_by_id;
|
||||
for(let i in nodes) {
|
||||
let node = nodes[i];
|
||||
if(node.type == 'easy globalSeed') {
|
||||
if(node.widgets) {
|
||||
const w = node.widgets.find((w) => w.name == 'value');
|
||||
const last_w = node.widgets.find((w) => w.name == 'last_seed');
|
||||
last_w.value = w.value;
|
||||
w.value = event.detail.value;
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(node.widgets) {
|
||||
const w = node.widgets.find((w) => w.name == 'seed_num' || w.name == 'seed' || w.name == 'noise_seed');
|
||||
if(w && event.detail.seed_map[node.id] != undefined) {
|
||||
w.value = event.detail.seed_map[node.id];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
api.addEventListener("easyuse-global-seed", globalSeedHandler);
|
||||
|
||||
const original_queuePrompt = api.queuePrompt;
|
||||
async function queuePrompt_with_seed(number, { output, workflow }) {
|
||||
workflow.seed_widgets = {};
|
||||
|
||||
for(let i in app.graph._nodes_by_id) {
|
||||
let widgets = app.graph._nodes_by_id[i].widgets;
|
||||
if(widgets) {
|
||||
for(let j in widgets) {
|
||||
if((widgets[j].name == 'seed_num' || widgets[j].name == 'seed' || widgets[j].name == 'noise_seed') && widgets[j].type != 'converted-widget')
|
||||
workflow.seed_widgets[i] = parseInt(j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return await original_queuePrompt.call(api, number, { output, workflow });
|
||||
}
|
||||
|
||||
api.queuePrompt = queuePrompt_with_seed;
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,13 @@
|
||||
{"findings":[
|
||||
"准确AIO12f356注册:顶层load_nodes静态遍历node_wrappers并尝试导入,成功映射合并AUX_NODE_MAPPINGS,PREPROCESSOR_OPTIONS动态枚举会排除AIO_NOT_SUPPORTED。因此源保存DepthAnythingPreprocessor不证明目标成功加载或已安装依赖。AIO class准确default none,resolution接口default512/min64/max16384/step64,保存1024独立;none分支原样返回image,当前非none分支读取被选类required/optional,把image与resolution传入,其他显式default按源码条件构参,不运行该构造或补写源保存值。",
|
||||
"准确DepthAnythingPreprocessor注册指向Depth_Anything_Preprocessor,wrapper的ckpt_name列表是vitl14/vitb14/vits14.pth,方法缺省vitl14,非本图显式保存的额外字段,不写入源图或当本次模型已选成功。准确detector在src/custom_controlnet_aux/depth_anything/transformers.py,旧pth名字映射LiheYoung/depth-anything-large/base/small-hf,然后建立transformers pipeline(task='depth-estimation');不是旧版DINOv2实现。common_annotator_call仅在resolution为int且>=64时采用,否则512;按batch逐图转uint8,detector resize/pad、pipeline depth、min-max归一与remove_pad/HWC3是静态条件。未导入SDK、未下载模型、未解码图像或运行预处理器,环境兼容/目录/真实深度效果未知。",
|
||||
"准确Layer90f4的total_pixel(kilo pixel)分支包含sqrt(ratio*scale_to_length*1000),目标高宽int截断后num_round_up_to_multiple按字符串16向上对齐;保存2048是千像素分支数值,不是2048×2048或长边。fit crop中心裁切,method lanczos,original取原输入比例,输入这里是AIO深度输出;未试算宽高、未读取原图。width/height输出确实各自外线覆盖675两个512缓存,latent来自EmptyLatentImage而非原图编码。",
|
||||
"准确两段KSamplerAdvanced core0.3.76:add_noise disable时disable_noise=True;return_with_leftover_noise enable时force_full_denoise=False;noise_seed、steps、cfg、sampler/scheduler、start/end、denoise按准确common_ksampler条件传递。本图313启噪声0→4且返回剩余噪声,314禁噪声4→10000且不返回剩余噪声;缓存的两个大seed均受618外线覆盖,两个randomize候选仍完整保留。313模型是656控制patch输出,314模型是Get290经397/628直接供给,不保证相同模型条件、12步全程、无缝接力或最终效果;不运行采样、随机、噪声或调度。",
|
||||
"准确easy seed00c69注册来自py/nodes/seed.py的easySeed,后端required只有seed INT default0/min0/maxMAX_SEED_NUM(同提交config为1125899906842624),doit返回(seed,);没有fixed/null的独立后端输入。源码也有不同类globalSeed,不将globalSeed的last_seed/action语义传播到618。保存三个位置9528/fixed/null独立;fixed仅辅助候选,null无法认证按钮身份,不能删掉、填默认或认证执行时序。顶层WEB_DIRECTORY受config.yaml与web_default_version v2选择,v1 seed.js的queuePrompt/global-seed钩子仅v1条件,不证明目标选用哪版;目标前端/UE组合恢复仍未知。",
|
||||
"准确Exposure679没有cnr_id/ver。本图不选择任何实现假设;source exposure INT只作端口线索,JSON int10不转float,不解释为EV/范围/默认/公式或已改善暗图。Note681全文“生图偏暗,调节曝光亮度”是作者建议,不是运行结果。曝光后图到295与330 A/Set297,330 B来自Get333加载图像;Get节点无身份,不能跨别名认证真实内容。",
|
||||
"准确Layer89014d的ImageReel将各输入batch逐图按reel_height等比例LANCZOS缩放,再拼入RGBA卷轴并记录texts/宽度/reel_height/reel_border,返回一个Reel对象;输入image3/4未接、两个空字幕保留。231第二路明确来自Get230 SeedVR 修复,并非主洗图输出;字幕洗图不能证明来源正确或旁路执行成功。ImageReelComposit经get_resource_dir动态枚举字体,font_size默认40/min4/max1024、border默认32/min8/max512;保存30/8与Alibaba-PuHuiTi-Heavy.ttf/light独立。light使用浅背景/深文字,draw_reel_text调用ImageFont.truetype;多Reel按宽高/间距拼接,返回一个IMAGE batch,不称生成两张图。未下载/加载字体或执行拼图。",
|
||||
"五个准确core输出独立核:295 Save0.3.75、234 Save0.3.67的RETURN_TYPES=(),322 Preview0.3.76、617 Preview0.5.1、233 Preview0.3.59分别继承各自同版SaveImage空RETURN_TYPES,save_images仅ui.images。原图五节点均声明STRING image_urls出口而非outputs=[],无link不等于无出口。Preview三个widgets_values=[]仅零保存位置;逐源声明/准确空数据返回差异保留,不修图、不认证恢复,执行继续关闭。两准确rgthree同样源声明STRING口,compare_images直接返回ui.a_images/b_images,无result;宿主PreviewImage版本不由比较器节点给出,不能借其它core节点传播。",
|
||||
"准确LLMa69与Showf283原件按本图重核:loader七项没有load_mtp,instruct的parameters/queue_handler null未接,images来自Get358别名而非直连原图。保存preset Detailed、images模式、完整中文系统要求与seed1045075827150323/randomize/false/false保留;Show357完整362字女子卧室历史只是保存态。链为669→357→359清理→Set260反推提示词,再仅Get289物理覆盖300空串,别名恢复未知。Layer90f4 PurgeVRAM_V2无条件clear_memory,purge_cache未读;purge_models才条件卸载,禁止执行清理/显存/缓存。",
|
||||
"十mode4节点与活动链分开:616/617/368/615/234/239/236/241/598/629均不模拟旁路穿透。SeedVR2 Git2a873准确注册/接口、VAE schema tile1024/128与execute缺省512/64、tile_debug字符串false、cache/offload条件沿用准确原字节并逐图绑定;629独立准确2.5.22发布8必要文本,fp8_e4m3fn模型不同于上图fp16。保存flash_attn对cache_model BOOLEAN候选冲突,发布包attention枚举sdpa/flash_attn_2/flash_attn_3/sageattn_2/sageattn_3与Git版不同,七保存位置不硬映射、不丢弃。旧完整包越界获取并删除事实继续保留,本图未重下包或模型媒体;整包SHA只为历史采集记录、Git绑定未知。",
|
||||
"所有Set/Get仅aux字符串,没有准确提供方/版本;模型输出/patch/VAE/CLIP/加载图像/反推提示词/洗图输出/SeedVR 修复只作同名配对线索。逐物理边/源口/目标口完整保留,不造跨别名边、不补值、不认证加载贯通或执行次序。frontendVersion1.23.0与同树锁LiteGraph成员核对;LG/0246/UE/tab/Bypasser/Label各自保存态与未知恢复分层。源码许可不证明模型/素材/字体授权、目标设备/目录/兼容或真实产物,两完整历史列表只纯文本、不请求历史媒体或复用鉴权。"
|
||||
]}
|
||||
@@ -0,0 +1,3 @@
|
||||
[
|
||||
"py/image_reel_composit.py"
|
||||
]
|
||||
@@ -0,0 +1,6 @@
|
||||
tree 338d8bf0ff7f1c01703b52b024fc03ffabaf49cb
|
||||
parent 42ccdd8f75ab312285eaa77073a5cc20bdba484c
|
||||
author chflame163 <chflame@163.com> 1757520381 +0800
|
||||
committer chflame163 <chflame@163.com> 1757520381 +0800
|
||||
|
||||
commit NanoBanana Image Scale node
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"ref": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"object": "89014d833d2ad0998d724090eff1456692692a1d"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
tree 338d8bf0ff7f1c01703b52b024fc03ffabaf49cb
|
||||
parent 42ccdd8f75ab312285eaa77073a5cc20bdba484c
|
||||
author chflame163 <chflame@163.com> 1757520381 +0800
|
||||
committer chflame163 <chflame@163.com> 1757520381 +0800
|
||||
|
||||
commit NanoBanana Image Scale node
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 chflame163
|
||||
|
||||
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,48 @@
|
||||
import importlib.util
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
|
||||
NODE_CLASS_MAPPINGS = {}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {}
|
||||
|
||||
python = sys.executable
|
||||
|
||||
def get_ext_dir(subpath=None, mkdir=False):
|
||||
dir = os.path.dirname(__file__)
|
||||
if subpath is not None:
|
||||
dir = os.path.join(dir, subpath)
|
||||
|
||||
dir = os.path.abspath(dir)
|
||||
|
||||
if mkdir and not os.path.exists(dir):
|
||||
os.makedirs(dir)
|
||||
return dir
|
||||
|
||||
def serialize(obj):
|
||||
if isinstance(obj, (str, int, float, bool, list, dict, type(None))):
|
||||
return obj
|
||||
return str(obj) # 转为字符串
|
||||
|
||||
|
||||
py = get_ext_dir("py")
|
||||
files = os.listdir(py)
|
||||
all_nodes = {}
|
||||
for file in files:
|
||||
if not file.endswith(".py"):
|
||||
continue
|
||||
name = os.path.splitext(file)[0]
|
||||
imported_module = importlib.import_module(".py.{}".format(name), __name__)
|
||||
try:
|
||||
NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **imported_module.NODE_DISPLAY_NAME_MAPPINGS}
|
||||
serialized_CLASS_MAPPINGS = {k: serialize(v) for k, v in imported_module.NODE_CLASS_MAPPINGS.items()}
|
||||
serialized_DISPLAY_NAME_MAPPINGS = {k: serialize(v) for k, v in imported_module.NODE_DISPLAY_NAME_MAPPINGS.items()}
|
||||
all_nodes[file]={"NODE_CLASS_MAPPINGS": serialized_CLASS_MAPPINGS, "NODE_DISPLAY_NAME_MAPPINGS": serialized_DISPLAY_NAME_MAPPINGS}
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
WEB_DIRECTORY = "./js"
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
||||
@@ -0,0 +1,224 @@
|
||||
import torch
|
||||
from PIL import Image, ImageFont, ImageDraw
|
||||
from .imagefunc import log, tensor2pil, pil2tensor, gaussian_blur, adjust_levels, get_resource_dir
|
||||
|
||||
class ImageReelPipeline:
|
||||
def __init__(self):
|
||||
self.image = None
|
||||
self.texts = {}
|
||||
self.reel_height = 0
|
||||
self.reel_border = 0
|
||||
|
||||
Reel = ImageReelPipeline()
|
||||
class ImageReel:
|
||||
|
||||
def __init__(self):
|
||||
self.NODE_NAME = 'ImageReel'
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
return {
|
||||
"required": {
|
||||
"image1": ("IMAGE",),
|
||||
"image1_text": ("STRING", {"multiline": False, "default": "image1"}),
|
||||
"image2_text": ("STRING", {"multiline": False, "default": "image2"}),
|
||||
"image3_text": ("STRING", {"multiline": False, "default": "image3"}),
|
||||
"image4_text": ("STRING", {"multiline": False, "default": "image4"}),
|
||||
"reel_height": ("INT", {"default": 512, "min": 64, "max": 2048}),
|
||||
"border": ("INT", {"default": 32, "min": 8, "max": 512}),
|
||||
},
|
||||
"optional": {
|
||||
"image2": ("IMAGE",),
|
||||
"image3": ("IMAGE",),
|
||||
"image4": ("IMAGE",),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("Reel",)
|
||||
RETURN_NAMES = ("reel",)
|
||||
FUNCTION = 'image_reel'
|
||||
CATEGORY = '😺dzNodes/LayerUtility'
|
||||
|
||||
def image_reel(self, image1, image1_text, image2_text, image3_text, image4_text,
|
||||
reel_height, border,
|
||||
image2=None, image3=None, image4=None,):
|
||||
|
||||
image_list = []
|
||||
texts = []
|
||||
for img in image1:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image1_text,i.width])
|
||||
if image2 is not None:
|
||||
for img in image2:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image2_text,i.width])
|
||||
if image3 is not None:
|
||||
for img in image3:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image3_text,i.width])
|
||||
if image4 is not None:
|
||||
for img in image4:
|
||||
i = self.resize_image_to_height(tensor2pil(img.unsqueeze(0)),reel_height)
|
||||
image_list.append(i)
|
||||
texts.append([image4_text,i.width])
|
||||
|
||||
reel = ImageReel()
|
||||
reel.image = self.draw_reel_image(image_list, border, reel_height)
|
||||
reel.texts = texts
|
||||
reel.reel_height = reel_height
|
||||
reel.reel_border = border
|
||||
return (reel,)
|
||||
|
||||
def resize_image_to_height(self, image, target_height) -> Image:
|
||||
w = int(target_height / image.height * image.width)
|
||||
return image.resize((w, target_height), Image.LANCZOS)
|
||||
|
||||
def draw_reel_image(self, image_list, border, reel_height) -> Image:
|
||||
reel_width = 0
|
||||
for img in image_list:
|
||||
reel_width += img.width + border
|
||||
reel_img = Image.new('RGBA', (reel_width, reel_height + border), color=(0, 0, 0, 0))
|
||||
#paste images
|
||||
w = border // 2
|
||||
for img in image_list:
|
||||
reel_img.paste(img, (w, border // 2))
|
||||
w += img.width + border
|
||||
return reel_img
|
||||
|
||||
|
||||
class ImageReelComposit:
|
||||
|
||||
def __init__(self):
|
||||
self.NODE_NAME = 'ImageReelComposit'
|
||||
(_, self.FONT_DICT) = get_resource_dir()
|
||||
self.FONT_LIST = list(self.FONT_DICT.keys())
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(self):
|
||||
(LUT_DICT, FONT_DICT) = get_resource_dir()
|
||||
FONT_LIST = list(FONT_DICT.keys())
|
||||
LUT_LIST = list(LUT_DICT.keys())
|
||||
|
||||
color_theme_list = ['light', 'dark']
|
||||
return {
|
||||
"required": {
|
||||
"reel_1": ("Reel",),
|
||||
"font_file": (FONT_LIST,),
|
||||
"font_size": ("INT", {"default": 40, "min": 4, "max": 1024}),
|
||||
"border": ("INT", {"default": 32, "min": 8, "max": 512}),
|
||||
"color_theme": (color_theme_list,),
|
||||
},
|
||||
"optional": {
|
||||
"reel_2": ("Reel",),
|
||||
"reel_3": ("Reel",),
|
||||
"reel_4": ("Reel",),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
RETURN_NAMES = ("image1",)
|
||||
FUNCTION = 'image_reel_composit'
|
||||
CATEGORY = '😺dzNodes/LayerUtility'
|
||||
|
||||
def image_reel_composit(self, reel_1, font_file, font_size, border, color_theme, reel_2=None, reel_3=None, reel_4=None,):
|
||||
|
||||
|
||||
ret_images = []
|
||||
|
||||
if color_theme == 'light':
|
||||
bg_color = "#E5E5E5"
|
||||
text_color = "#121212"
|
||||
else:
|
||||
bg_color = "#121212"
|
||||
text_color = "#E5E5E5"
|
||||
|
||||
|
||||
font_space = int(font_size * 1.5)
|
||||
width = reel_1.image.width
|
||||
height = reel_1.image.height + font_space + border
|
||||
if reel_2 is not None:
|
||||
width = max(width, reel_2.image.width)
|
||||
height += reel_2.image.height + font_space + border
|
||||
if reel_3 is not None:
|
||||
width = max(width, reel_3.image.width)
|
||||
height += reel_3.image.height + font_space + border
|
||||
if reel_4 is not None:
|
||||
width = max(width, reel_4.image.width)
|
||||
height += reel_4.image.height + font_space + border
|
||||
|
||||
ret_image = Image.new('RGB', (width, height), color=bg_color)
|
||||
paste_y = 0
|
||||
reel1_text_image = self.draw_reel_text(reel_1, font_file, font_size, text_color)
|
||||
shadow_size = reel_1.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_1.image, reel1_text_image, ((width - reel_1.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
|
||||
paste_y += reel_1.image.height + font_space + border
|
||||
if reel_2 is not None:
|
||||
reel2_text_image = self.draw_reel_text(reel_2, font_file, font_size, text_color)
|
||||
shadow_size = reel_2.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_2.image, reel2_text_image, ((width - reel_2.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
paste_y += reel_2.image.height + font_space + border
|
||||
if reel_3 is not None:
|
||||
reel3_text_image = self.draw_reel_text(reel_3, font_file, font_size, text_color)
|
||||
shadow_size = reel_3.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_3.image, reel3_text_image,((width - reel_3.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
paste_y += reel_3.image.height + font_space + border
|
||||
if reel_4 is not None:
|
||||
reel4_text_image = self.draw_reel_text(reel_4, font_file, font_size, text_color)
|
||||
shadow_size = reel_4.image.height // 80
|
||||
ret_image = self.paste_drop_shadow(ret_image, reel_4.image, reel4_text_image,((width - reel_4.image.width) // 2, paste_y),
|
||||
shadow_size, text_color)
|
||||
|
||||
ret_images.append(pil2tensor(ret_image))
|
||||
|
||||
log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
|
||||
return (torch.cat(ret_images, dim=0),)
|
||||
|
||||
def paste_drop_shadow(self, background_image, image, text_image, box, shadow_size, text_color) -> Image:
|
||||
# drop shadow
|
||||
_mask = image.split()[3]
|
||||
_blured_mask = gaussian_blur(_mask, shadow_size//1.3)
|
||||
_blured_mask = adjust_levels(_blured_mask, 0, 255, 0.5, 0, output_white=54).convert('L')
|
||||
background_image.paste(Image.new('RGBA', image.size, color="black"), (box[0]+shadow_size, box[1]+shadow_size), mask=_blured_mask)
|
||||
background_image.paste(image, box, mask=_mask)
|
||||
background_image.paste(Image.new('RGB', text_image.size, color=text_color), (box[0], box[1] + image.height), mask=text_image.split()[3])
|
||||
return background_image
|
||||
|
||||
def draw_reel_text(self, reel, font_file, font_size, text_color) -> Image:
|
||||
|
||||
font_path = self.FONT_DICT.get(font_file)
|
||||
font = ImageFont.truetype(font_path, font_size)
|
||||
texts = reel.texts
|
||||
text_image = Image.new('RGBA', (reel.image.width, reel.reel_border + int(font_size * 1.5)), color=(0, 0, 0, 0))
|
||||
draw = ImageDraw.Draw(text_image)
|
||||
x = reel.reel_border
|
||||
for t in texts:
|
||||
text = t[0]
|
||||
width = t[1]
|
||||
text_width = font.getbbox(text)[2]
|
||||
draw.text(
|
||||
xy=(x + width // 2 - text_width//2, reel.reel_border//4),
|
||||
text=text,
|
||||
fill=text_color,
|
||||
font=font,
|
||||
)
|
||||
x += width + reel.reel_border
|
||||
return text_image
|
||||
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"LayerUtility: ImageReel": ImageReel,
|
||||
"LayerUtility: ImageReelComposit": ImageReelComposit
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"LayerUtility: ImageReel": "LayerUtility: Image Reel",
|
||||
"LayerUtility: ImageReelComposit": "LayerUtility: Image Reel Composit"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -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/zimage-wash-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 = ["zimage-wash"]
|
||||
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()
|
||||
@@ -0,0 +1,111 @@
|
||||
// Local GET-only: 138 saved positions, 1 note, 67 frozen summaries; no upstream execution.
|
||||
import fs from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright');
|
||||
const out='.local-evidence/zimage-wash-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=['8_Z-image+Controlnet_姿势控制-洗图','7_Z-image+Controlnet_图像扩展','6_Z-image_局部重绘','5_Z-Image+Qwen3.5提示词反推_文生图','4_Z-Image+Qwen3.5-文生图','3_Z-Image_文生图(摇光梦幻).app','2_Z-Image+Base+Turbo+双重采样工作流','1_Z-Image-Tubro_文生图','flux2_klein-图生图_人物动作迁移','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===68&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===2870,'68图2870保存位置');
|
||||
check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===75,'68图75源注释');
|
||||
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_zimage_wash':'old_sixtyseven';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.replace(/\s+/g," ").includes(line.replace(/\s+/g," ")),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`);
|
||||
check(flowText.includes('DepthAnythingPreprocessor')&&flowText.includes('只有313接656'),`${width}当前深度选择与两段模型条件明确`);
|
||||
for(const z of b.zero_saved_nodes.filter(z=>['322','617','233'].includes(z.node_id)))check(z.state==='empty_list'&&z.effect.includes('源声明STRING')&&z.effect.includes('接口差异')&&flowText.includes(z.effect),`${width} ${z.node_id}零保存/源出口/准确空返回分层`);
|
||||
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==='321'&&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(['330','615'].includes(f.node_id)){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-history-source.png`});}
|
||||
if((['303','321','313','314','618','679','669','629','231','232'].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,'迟到ZImage响应不覆盖旧图摘要/字段');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();}
|
||||
Reference in New Issue
Block a user