HEL-892: document Qwen3-TTS multi-role dialogue reference
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -15,6 +15,9 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
|
||||
|
||||
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
|
||||
DEFINITIONS = {
|
||||
(
|
||||
"example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json"
|
||||
): "5ab03e194bdc9336f90ba17c4d9b47789946d2f60e6680ec56245bf8ed9109b4",
|
||||
(
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分"
|
||||
"离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3."
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,196 @@
|
||||
"""Mixed-version dialogue notes stay source-bound and cannot enable execution."""
|
||||
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
import runpy
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS, canonical
|
||||
from calliope.comfyui.library import build_document
|
||||
from calliope.comfyui.source_reviews import review_for
|
||||
|
||||
REPO = Path(__file__).resolve().parents[2]
|
||||
OUT = REPO / "docs/hel-892/tts-document-evidence"
|
||||
PATH = next(p for p in DEFINITIONS if p.endswith("/Qwen3-TTS_多角色对话.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, path):
|
||||
for part in path.strip("/").split("/"):
|
||||
obj = obj[int(part)] if isinstance(obj, list) else obj[part]
|
||||
return obj
|
||||
|
||||
|
||||
def doc(s=SOURCE, r=REVIEW):
|
||||
return build_document(PATH, s, None, None, [], r)
|
||||
|
||||
|
||||
def refuse(s, r):
|
||||
r["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
|
||||
assert not doc(s, r)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
def test_all_70_positions_keep_raw_types_separate_ports_and_citations(f):
|
||||
assert canonical(pointer(SOURCE, f["pointer"])) == canonical(f["value"])
|
||||
assert type(pointer(SOURCE, f["pointer"])).__name__ == f["json_type"]
|
||||
assert not f["named_pointer"].startswith("/") and "named_value" not in f
|
||||
if f["input_pointer"].startswith("/"):
|
||||
assert pointer(SOURCE, f["input_pointer"])["name"] == f["input_name"]
|
||||
assert "未知" in f["execution_note"]
|
||||
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", "definition"])
|
||||
def test_caller_rehash_cannot_bypass_saved_values_or_editorial_text(f, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
if variant == "source":
|
||||
parent, _, key = f["pointer"].rpartition("/")
|
||||
pointer(s, parent)[int(key)] = "forged"
|
||||
else:
|
||||
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("ni", range(32))
|
||||
@pytest.mark.parametrize("variant", ["mode", "identity", "named-values"])
|
||||
def test_modes_exact_or_absent_identity_and_named_values_bound(ni, variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
n = s["nodes"][ni]
|
||||
if variant == "mode":
|
||||
n["mode"] = 0 if n["mode"] == 4 else 4
|
||||
elif variant == "identity":
|
||||
n["properties"]["ver"] = "forged"
|
||||
else:
|
||||
n["widgets_values_named"] = {"forged": 0}
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("ei", range(26))
|
||||
def test_every_physical_edge_bound(ei):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
s["links"][ei][3] = 99999
|
||||
refuse(s, r)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"variant",
|
||||
[
|
||||
"overview",
|
||||
"citation",
|
||||
"source_sha",
|
||||
"missing",
|
||||
"empty",
|
||||
"frontend",
|
||||
"notes",
|
||||
"zero",
|
||||
"counts",
|
||||
],
|
||||
)
|
||||
def test_all_metadata_fail_closed(variant):
|
||||
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
b = r["fixed_version_document"]
|
||||
if variant == "overview":
|
||||
b["user_overview"] = "forged"
|
||||
elif variant == "citation":
|
||||
b["sources"][0]["sha256"] = "forged"
|
||||
elif variant == "source_sha":
|
||||
r["source_sha"] = "forged"
|
||||
elif variant == "missing":
|
||||
r.pop("fixed_version_document")
|
||||
elif variant == "empty":
|
||||
r["fixed_version_document"] = {}
|
||||
elif variant == "frontend":
|
||||
s["extra"]["frontendVersion"] = "1.52.7"
|
||||
elif variant == "notes":
|
||||
b["comments"][0]["text"] = "forged"
|
||||
elif variant == "zero":
|
||||
b["zero_saved_nodes"][0]["effect"] = "forged"
|
||||
else:
|
||||
b["counts"]["final_prompt_constructed"] = True
|
||||
assert not doc(s, r)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("generated", [False, True])
|
||||
def test_dialogue_specific_semantics_and_unknowns_are_actual_doc(generated):
|
||||
b = runpy.run_path(str(OUT / "build_definition.py"))["build"]() if generated else BLOCK
|
||||
assert canonical(b) == canonical(BLOCK)
|
||||
assert b["counts"]["saved_fields"] == 70 and b["counts"]["source_notes"] == 2
|
||||
ns = {n["id"]: n for n in SOURCE["nodes"]}
|
||||
assert ns[8]["widgets_values"] == [] and "widgets_values" not in ns[27]
|
||||
assert all(ns[i]["mode"] == 4 for i in [19, 20, 21, 22, 23, 24, 25, 26, 42])
|
||||
assert ns[45]["widgets_values"][2].startswith("ole:")
|
||||
assert not b["counts"]["final_prompt_constructed"] and not b["boundaries"]
|
||||
|
||||
def f(node, name):
|
||||
return next(x for x in b["fields"] if x["node_id"] == str(node) and x["field"] == name)
|
||||
|
||||
assert f(18, "interval")["value"] == 0.5 and f(18, "seed")["value"] == 62556003384494
|
||||
assert f(18, "control_after_generate")["value"] == "fixed"
|
||||
assert (
|
||||
f(9, "speakers_config")["value"].startswith("[\n")
|
||||
and f(9, "manage_speakers")["value"] == "Edit"
|
||||
)
|
||||
assert all(f(12, "saved_null_" + str(i))["value"] is None for i in range(3))
|
||||
assert "audioUI" in f(19, "saved_null_1")["effect"] and not f(19, "saved_null_1")[
|
||||
"input_pointer"
|
||||
].startswith("/")
|
||||
assert "无版本" in f(38, "alias_name")["schema_default"]
|
||||
flow = "\n".join(b["flow"])
|
||||
for phrase in [
|
||||
"speaker_5未接",
|
||||
"同名后项覆盖",
|
||||
"静音",
|
||||
"不重采样",
|
||||
"temp FLAC",
|
||||
"purge_cache变量未读",
|
||||
"load_mtp",
|
||||
"未知角色",
|
||||
"input1",
|
||||
"609f3afa",
|
||||
]:
|
||||
assert phrase in flow
|
||||
actual = doc()["fixed_version"]
|
||||
assert actual["matched"] and actual["fields"] == b["fields"]
|
||||
assert actual["comments"] == b["comments"] and actual["user_overview"] == b["user_overview"]
|
||||
|
||||
|
||||
def test_39_existing_blocks_and_all_other_reviews_frozen():
|
||||
import subprocess
|
||||
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
base = json.loads(
|
||||
subprocess.check_output(
|
||||
["git", "show", "21f0fd678add77a88a975793d1b0b9dbb72bb059:" + resource], cwd=REPO
|
||||
)
|
||||
)
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
blocks = [r["fixed_version_document"] for r in base.values() if "fixed_version_document" in r]
|
||||
assert len(blocks) == 39 and sum(len(b["fields"]) for b in blocks) == 1381
|
||||
assert (
|
||||
sum(
|
||||
len(
|
||||
build_document(p, json.loads((REPO / p).read_bytes()), None, None, [], base[p])[
|
||||
"source_notes"
|
||||
]
|
||||
)
|
||||
for p in DEFINITIONS
|
||||
if p != PATH
|
||||
)
|
||||
== 41
|
||||
)
|
||||
for p, r in base.items():
|
||||
if p != PATH:
|
||||
assert now[p] == r
|
||||
now[PATH].pop("fixed_version_document")
|
||||
assert now == base
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"total": 155,
|
||||
"audit_scope": "current_delivery",
|
||||
"source_files": 156,
|
||||
"target_files": 155,
|
||||
"user_excluded": 1,
|
||||
"source_structure_purpose_partially_reviewed": 155,
|
||||
"full_documents_completed": 0,
|
||||
"files_with_selected_named_fields_reviewed": 41,
|
||||
"selected_named_fields_reviewed": 1217,
|
||||
"real_executions": 0,
|
||||
"states": {
|
||||
"pending_check": 16,
|
||||
"needs_conversion": 139
|
||||
},
|
||||
"named_values_preserved": 1217,
|
||||
"unnamed_widget_nodes": 3660,
|
||||
"semantic_batch_files": 139,
|
||||
"semantic_batch_without_named_fields": 114,
|
||||
"semantic_batch_named_fields": 490,
|
||||
"named_values_without_manual_field_review": 0,
|
||||
"named_values_without_verified_units_ranges_effects": 1217,
|
||||
"scope_limit": "人工结论与机械原值清单分开;源语义局部审校非完整说明定稿"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"total": 141,
|
||||
"fixed_including_readiness": 128,
|
||||
"readiness": 1,
|
||||
"polling": 13,
|
||||
"all_get_local": true
|
||||
}
|
||||
@@ -0,0 +1,728 @@
|
||||
{
|
||||
"base": "21f0fd678add77a88a975793d1b0b9dbb72bb059",
|
||||
"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_thirty_nine_blocks_unchanged": true,
|
||||
"drawer_css_unchanged": true,
|
||||
"drawer_whole_file_unchanged": true,
|
||||
"drawer_sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1",
|
||||
"conversion_rerun": false,
|
||||
"profiles_28_candidates_9_diffs_6": "unchanged"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
第59批只增加Qwen3-TTS多角色对话单图参考说明。新增70顶层保存位置、2完整Note,旧39块1381位置和全部旧审校对象冻结;40图1451位置+43源注释仅供参考。155完整定稿0、必要实跑0、可靠新增转换0,整体尚未完成。
|
||||
|
||||
实际代码仅在source_reviews.json加入绑定原字节SHA1/SHA256、规范全图摘要的说明块,并在fixed_document.py显式允许该路径和定义摘要;没有修改转换器、资格、执行器或Drawer。原字节、具名值缺失、JSON类型与输入口证据分列;来源未声明前端版本,LG仅renderer。原32节点/26边、23 mode0/9 mode4;PreviewAudio空[]与Bypasser缺键、三个PreviewAny null和四组LoadAudio的null分别保留。
|
||||
|
||||
两个准确Qwen提交分开:loader90b11750与dialog0c20c6b9;loader旧init无WEB_DIRECTORY,新dialog才有JS。core准确0.15.0、CR准确d78b780a、Show31准确609f3afa、Purge准确d94bef1e、Impact准确发布8.28.2各自固定;所有Git原件按blob与tree检查,Impact按发布包SHA和成员检查,Git绑定未知。llama45/46与前端1.52.7仅显式参考,源身份/前端/UE恢复未知;18 seed辅助仅引用前端构造,不混入llama后端规则。来源local_file以本目录为基准;tts-reference/sources.json则以tts-reference为基准。CR原树缺LICENSE;llama已有固定树也缺LICENSE,许可文本未知。
|
||||
|
||||
可操作说明先讲四角色声音/台词用途,再按现有折叠层展示:手工CR JSON、自动小说/系统指南、Show历史、模型/素材引用、准确Switch选择规则、未知Set/Get别名、四音频旁路与保存旁路。9配置与18文本、45 custom/system缓存被外线覆盖,不能拿缓存当执行输入。以ole开头长system和所有长文本、两Note全文保留;不解析执行配置,不把name/instruct/text拆成虚构新参数。准确MultiDialog的同名覆盖/角色匹配优先级、缺角色续文、Base缺音频跳过、采样率不一致不重采样、一秒静音回退、interval秒与种子副作用均明确;不保证声音一致。准确PreviewAudio会写temp FLAC/ui.audio,Batch会写temp WAV;不能因SaveAudio旁路宣称无写入。旧PurgeVRAM无条件clear_memory,purge_cache未读取、purge_models控制卸载;没有调用这些代码。
|
||||
|
||||
本次验证口径:344专项+13库,最终357通过;自写12个Python文件Ruff/format与1个JS语法通过,离线wheel/sdist三个资源字节相同,双次重建与报告渲染完全一致。原21f0fd6旧代码隔离库只1更新154跳过,其余154条29列整行不变;重复155跳过、回退1、再升级1、升级前后用户修改各1冲突且整行保护。新库155/排除1、16 pending_check/139 needs_conversion、1217源具名值/3660位置控件节点/294配套具名值、全停用/未检查/空时间戳保持。163原件、191冻结资源、28profiles、9候选hash、六差分、Drawer整文件保持。
|
||||
|
||||
开发期曾出现测试对旧comments缺键及旧注释分布的错误假设,已改成核对实际source_notes;长字符串格式整理曾产生拼接错误,已修复并完成构建/确定性验证;首轮浏览发现默认说明真实换行在DOM折叠,改用可读转义展示schema默认,源实际值与长文本未改。只报告最终单次结果,不累加重跑;未机械复跑未改全量后台/前端大套件,不称全仓绿。既有基线五个后台失败及lint问题沿用历史记录,未扩修。
|
||||
|
||||
本次1936浏览检查通过(984本图+936旧39图+2汇总+14共享)。1440/390逐70位置/完整长文本/两Note/来源、默认折叠、旧空错绑定回退、迟到重试、键盘焦点和无横溢通过;5张代表图已目验,11截图附卡不入仓。浏览固定GET133/轮询13,真实后端固定128含就绪1/轮询13;6个详情夹具与1个字体CSS拦截分列,禁止请求0。浏览验证结果和GET计数见browser-counts.json及browser-results.json;服务就绪/本地固定GET/轮询/拦截夹具分开,finally-stop.json与ports-independent.json核对停止。代表截图附任务卡,不入仓。源码和输出的SHA/用途逐文件见delivery-files.json;补丁另附,validation-commands.txt是重现入口。review-delta.json、import-protection.json、boundaries.json和frozen-resource-check.json供差分审核。
|
||||
|
||||
尚余115图未有本类固定参考块。全155说明仍未完整定稿,目标安装/恢复、别名提供方、SDK/模型兼容、素材/声纹权限、真实耗时和声音产物均未知;当前不需要材料或机器窗口。未连接目标、停TTS、启ComfyUI、执行插件/模型/GPU/媒体/表达式/随机种子/状态/清显存,未构造prompt、下载权重素材字体运行库、引入依赖付费或写在线库;不合并、不部署,全量审核后才发布。
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"assertion_count": 1936,
|
||||
"assertionGroups": {
|
||||
"aggregate": 2,
|
||||
"new_tts": 984,
|
||||
"old_thirty_nine": 936,
|
||||
"shared_regressions": 14
|
||||
},
|
||||
"request_accounting": {
|
||||
"fixed_count": 133,
|
||||
"fixed_paths": {
|
||||
"/api/settings": 1,
|
||||
"/api/workflows": 2,
|
||||
"/api/workflows/1": 3,
|
||||
"/api/workflows/10": 3,
|
||||
"/api/workflows/11": 3,
|
||||
"/api/workflows/12": 3,
|
||||
"/api/workflows/13": 3,
|
||||
"/api/workflows/14": 3,
|
||||
"/api/workflows/15": 3,
|
||||
"/api/workflows/156": 1,
|
||||
"/api/workflows/157": 1,
|
||||
"/api/workflows/16": 3,
|
||||
"/api/workflows/17": 3,
|
||||
"/api/workflows/18": 4,
|
||||
"/api/workflows/19": 3,
|
||||
"/api/workflows/2": 3,
|
||||
"/api/workflows/20": 3,
|
||||
"/api/workflows/21": 3,
|
||||
"/api/workflows/22": 3,
|
||||
"/api/workflows/23": 3,
|
||||
"/api/workflows/24": 3,
|
||||
"/api/workflows/25": 3,
|
||||
"/api/workflows/26": 3,
|
||||
"/api/workflows/27": 3,
|
||||
"/api/workflows/28": 3,
|
||||
"/api/workflows/29": 3,
|
||||
"/api/workflows/3": 3,
|
||||
"/api/workflows/30": 3,
|
||||
"/api/workflows/31": 3,
|
||||
"/api/workflows/32": 3,
|
||||
"/api/workflows/33": 3,
|
||||
"/api/workflows/34": 3,
|
||||
"/api/workflows/35": 3,
|
||||
"/api/workflows/36": 3,
|
||||
"/api/workflows/37": 10,
|
||||
"/api/workflows/4": 3,
|
||||
"/api/workflows/5": 3,
|
||||
"/api/workflows/6": 3,
|
||||
"/api/workflows/62": 3,
|
||||
"/api/workflows/64": 3,
|
||||
"/api/workflows/7": 3,
|
||||
"/api/workflows/70": 3,
|
||||
"/api/workflows/8": 3,
|
||||
"/api/workflows/9": 3
|
||||
},
|
||||
"polling_count": 13,
|
||||
"polling_paths": {
|
||||
"/api/jobs": 13
|
||||
},
|
||||
"polling_tolerance": 1,
|
||||
"reason": "定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。"
|
||||
},
|
||||
"errors": [],
|
||||
"blockedFonts": [
|
||||
"https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600&display=swap"
|
||||
],
|
||||
"viewports": [
|
||||
1440,
|
||||
390
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,913 @@
|
||||
"""Source-bound Chinese reading notes; never execute upstream."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
REPO = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
REF = OUT.parent / "tts-reference"
|
||||
PATHS = ["example_ComfyUI_workflows/1-" + "语音生成/Qwen3-TTS_多角色对话.json"]
|
||||
|
||||
|
||||
def canonical(value):
|
||||
return json.dumps(value, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
|
||||
|
||||
|
||||
def build(index=0):
|
||||
raw = (REPO / PATHS[index]).read_bytes()
|
||||
g = json.loads(raw)
|
||||
sources = []
|
||||
|
||||
def ref(directory, file, a, b, claim):
|
||||
root = OUT.parent / directory
|
||||
e = next(
|
||||
(
|
||||
e
|
||||
for e in json.loads((root / "sources.json").read_bytes())["sources"]
|
||||
if e["local_file"] == file
|
||||
)
|
||||
)
|
||||
data = (root / file).read_bytes()
|
||||
assert hashlib.sha256(data).hexdigest() == e["sha256"]
|
||||
assert 1 <= a <= b <= len(data.decode().splitlines())
|
||||
e = {**e, "local_file": "../" + directory + "/" + file, "lines": [a, b], "claim": claim}
|
||||
if e not in sources:
|
||||
sources.append(e)
|
||||
return sources.index(e)
|
||||
|
||||
def cite(file, a, b, claim):
|
||||
return ref("tts-reference", file, a, b, claim)
|
||||
|
||||
loader = cite(
|
||||
"loader__nodes.py",
|
||||
56,
|
||||
179,
|
||||
"源两loader准确90b11750:构造顺序/模型目录" + "/禁用自动下载分支;SDK联网与实际安装未知",
|
||||
)
|
||||
define = cite(
|
||||
"dialog__nodes.py",
|
||||
220,
|
||||
239,
|
||||
"准确0c20c6b9 DefineSpeaker:str" + "ip名字并返回name/audio,不执行旁路",
|
||||
)
|
||||
batch = cite(
|
||||
"dialog__nodes.py",
|
||||
241,
|
||||
349,
|
||||
"准确0c20c6b9 Batch:schema/配置解析"
|
||||
+ "/跳过无效角色/生成及temp WAV写入/返回;只读不"
|
||||
+ "调用",
|
||||
)
|
||||
dialog = cite(
|
||||
"dialog__nodes.py",
|
||||
351,
|
||||
597,
|
||||
"准确MultiDialog schema、角色覆盖/匹配" + "/模型分支、间隔与拼接/静音回退;不执行",
|
||||
)
|
||||
edit = cite(
|
||||
"dialog__js__batch_speaker.js",
|
||||
1,
|
||||
40,
|
||||
"准确JS追加Manage Speakers按钮Edit和" + "历史batch_outputs;不执行JS",
|
||||
)
|
||||
dynamic = cite(
|
||||
"dialog__js__multi_dialog.js",
|
||||
1,
|
||||
130,
|
||||
"准确JS根据连接动态speaker_N;不模拟当前前端/" + "UE恢复",
|
||||
)
|
||||
audio = cite(
|
||||
"core__comfy_extras__nodes_audio.py",
|
||||
154,
|
||||
256,
|
||||
"准确core0.15.0 SaveAudio/Previ"
|
||||
+ "ewAudio schema与UI helper,无数据"
|
||||
+ "输出,不套后版audioUI",
|
||||
)
|
||||
load_audio = cite(
|
||||
"core__comfy_extras__nodes_audio.py",
|
||||
268,
|
||||
333,
|
||||
"准确LoadAudio只有audio控件,音视频动态目录" + "/解码/验证;源两null位置没有准确前端解释",
|
||||
)
|
||||
audio_ui = cite(
|
||||
"core__comfy_api__latest___ui.py",
|
||||
260,
|
||||
425,
|
||||
"准确0.15.0 helper写音频,默认FLAC;Pr"
|
||||
+ "eviewAudio临时目录并ui.audio文件描述符"
|
||||
+ ",不等于无写入",
|
||||
)
|
||||
preview = cite(
|
||||
"core__comfy_extras__nodes_preview_any.py",
|
||||
1,
|
||||
44,
|
||||
"准确PreviewAny仅source输入/UI tex" + "t返回,无三个保存null的后端schema",
|
||||
)
|
||||
cr = cite(
|
||||
"cr__nodes__nodes_core.py",
|
||||
204,
|
||||
224,
|
||||
"准确CR Prompt Text:一个prompt字符串原样返回及help;不执行提示文字",
|
||||
)
|
||||
purge = cite(
|
||||
"layer__py__purge_vram.py",
|
||||
1,
|
||||
38,
|
||||
"准确d94bef1e PurgeVRAM:无数据出口,c"
|
||||
+ "lear_memory无条件执行,purge_model"
|
||||
+ "s控制卸载,purge_cache值未使用",
|
||||
)
|
||||
memory = cite(
|
||||
"layer__py__imagefunc.py",
|
||||
2151,
|
||||
2158,
|
||||
"准确clear_memory:GC,CUDA可用时emp" + "ty_cache和ipc_collect;仅解释不调用",
|
||||
)
|
||||
switch = cite(
|
||||
"impact__modules__impact__util_nodes.py",
|
||||
15,
|
||||
91,
|
||||
"准确8.28.2 GeneralSwitch:selec"
|
||||
+ "t1默认/范围、sel_mode=false标签;按in"
|
||||
+ "putN返回、缺输入返回None,API警告",
|
||||
)
|
||||
cite(
|
||||
"impact____init__.py",
|
||||
185,
|
||||
207,
|
||||
"准确8.28.2 ImpactSwitch注册Gener" + "alSwitch;Git提交/目标安装绑定未知",
|
||||
)
|
||||
for key in ["loader", "dialog"]:
|
||||
cite(
|
||||
key + "____init__.py",
|
||||
1,
|
||||
len((REF / (key + "____init__.py")).read_text().splitlines()),
|
||||
"准确各自提交注册链;loader旧版无WEB_DIREC"
|
||||
+ "TORY,dialog新版有js;不把两版合成同一安装",
|
||||
)
|
||||
cite(
|
||||
key + "__nodes.py",
|
||||
683 if key == "dialog" else 297,
|
||||
695 if key == "dialog" else 309,
|
||||
"各自版本节点注册字典;不执行导入",
|
||||
)
|
||||
cite(
|
||||
"cr__node_mappings.py",
|
||||
1,
|
||||
len((REF / "cr__node_mappings.py").read_text().splitlines()),
|
||||
"CR准确注册链;原树缺LICENSE,许可文本未知",
|
||||
)
|
||||
cite(
|
||||
"layer____init__.py",
|
||||
1,
|
||||
len((REF / "layer____init__.py").read_text().splitlines()),
|
||||
"LayerStyle准确动态注册链,原件只读",
|
||||
)
|
||||
cite("core__comfy_extras__nodes_audio.py", 766, 792, "core准确audio扩展注册列表")
|
||||
for key in ["loader", "dialog", "layer", "core"]:
|
||||
f = key + "__LICENSE"
|
||||
cite(
|
||||
f,
|
||||
1,
|
||||
len((REF / f).read_text().splitlines()),
|
||||
"各自准确上游许可全文;不授权源音频声纹或保证模型许可",
|
||||
)
|
||||
cite(
|
||||
"impact__LICENSE.txt",
|
||||
1,
|
||||
len((REF / "impact__LICENSE.txt").read_text().splitlines()),
|
||||
"8.28.2发布包许可全文;成员SHA与Git绑定分开",
|
||||
)
|
||||
old = json.loads((OUT.parent / "llama-document-evidence/definition-0.json").read_bytes())
|
||||
|
||||
def old_refs(field, frontend_only=False):
|
||||
result = []
|
||||
for i in field["evidence"]:
|
||||
e = old["sources"][i]
|
||||
if frontend_only and e["id"] != "frontend":
|
||||
continue
|
||||
(directory, file) = e["local_file"].removeprefix("../").split("/", 1)
|
||||
result.append(
|
||||
ref(
|
||||
directory,
|
||||
file,
|
||||
*e["lines"],
|
||||
e["claim"]
|
||||
+ (
|
||||
";仅显式前端参考,本图无frontendVersion"
|
||||
if e["id"] == "frontend"
|
||||
else ";仅本图45/46显式参考,源无版本"
|
||||
),
|
||||
)
|
||||
)
|
||||
return result
|
||||
|
||||
show = ref(
|
||||
"llama-reference",
|
||||
"showtext__py__show_text.py",
|
||||
1,
|
||||
49,
|
||||
"本图Show31明确609f3afa准确身份:list输"
|
||||
+ "入、UI/result与历史widgets写回;不是前图"
|
||||
+ "无身份假设",
|
||||
)
|
||||
showjs = ref(
|
||||
"llama-reference",
|
||||
"showtext__web__js__showText.js",
|
||||
10,
|
||||
78,
|
||||
"本图Show31准确609f3afa历史展示/恢复;全图前端/UE组合未知",
|
||||
)
|
||||
ref("llama-reference", "showtext____init__.py", 1, 25, "准确ShowText动态注册链")
|
||||
f = "showtext__LICENSE"
|
||||
ref(
|
||||
"llama-reference",
|
||||
f,
|
||||
1,
|
||||
len((OUT.parent / "llama-reference" / f).read_text().splitlines()),
|
||||
"Show31准确提交许可全文",
|
||||
)
|
||||
names = {
|
||||
3: [
|
||||
"model_path",
|
||||
"precision",
|
||||
"device",
|
||||
"attn_implementation",
|
||||
"auto_download",
|
||||
"download_source",
|
||||
],
|
||||
4: [
|
||||
"model_path",
|
||||
"precision",
|
||||
"device",
|
||||
"attn_implementation",
|
||||
"auto_download",
|
||||
"download_source",
|
||||
],
|
||||
12: ["saved_null_0", "saved_null_1", "saved_null_2"],
|
||||
15: ["prompt"],
|
||||
14: ["prompt"],
|
||||
29: ["prompt"],
|
||||
35: ["prompt"],
|
||||
9: ["speakers_config", "manage_speakers"],
|
||||
18: ["text", "interval", "seed", "control_after_generate"],
|
||||
20: ["name"],
|
||||
22: ["name"],
|
||||
24: ["name"],
|
||||
26: ["name"],
|
||||
19: ["audio", "saved_null_1", "saved_null_2"],
|
||||
21: ["audio", "saved_null_1", "saved_null_2"],
|
||||
23: ["audio", "saved_null_1", "saved_null_2"],
|
||||
25: ["audio", "saved_null_1", "saved_null_2"],
|
||||
32: ["purge_cache", "purge_models"],
|
||||
33: ["purge_cache", "purge_models"],
|
||||
37: ["alias_name"],
|
||||
39: ["alias_name"],
|
||||
38: ["alias_name"],
|
||||
40: ["alias_name"],
|
||||
44: ["select", "sel_mode"],
|
||||
31: ["history_text"],
|
||||
42: ["filename_prefix"],
|
||||
}
|
||||
names[46] = [
|
||||
"model",
|
||||
"mmproj",
|
||||
"chat_handler",
|
||||
"n_ctx",
|
||||
"vram_limit",
|
||||
"image_min_tokens",
|
||||
"image_max_tokens",
|
||||
]
|
||||
names[45] = [
|
||||
"preset_prompt",
|
||||
"custom_prompt",
|
||||
"system_prompt",
|
||||
"inference_mode",
|
||||
"max_frames",
|
||||
"max_size",
|
||||
"seed",
|
||||
"control_after_generate",
|
||||
"force_offload",
|
||||
"save_states",
|
||||
]
|
||||
specs = {
|
||||
"model_path": (
|
||||
"模型目录引用",
|
||||
"Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice",
|
||||
"目录/标识",
|
||||
"已知列表与本地models/Qwen3-TTS-Mode" + "ls子目录合并;列表不是安装证明",
|
||||
"此版取最后一段构成本地目录;VoiceDesign经4→"
|
||||
+ "9,Base经3→18。实际模型类型由对象tts_mod"
|
||||
+ "el_type决定,文件名不保证兼容。",
|
||||
),
|
||||
"precision": (
|
||||
"模型加载精度选择",
|
||||
"bf16",
|
||||
"枚举",
|
||||
"bf16/fp16/fp32",
|
||||
"准确loader映射torch.bfloat16/flo"
|
||||
+ "at16/float32传入from_pretraine"
|
||||
+ "d;不保证硬件支持、内存/音质或量化精度。",
|
||||
),
|
||||
"device": (
|
||||
"模型加载设备",
|
||||
"cuda",
|
||||
"枚举",
|
||||
"cuda/cpu",
|
||||
"传入SDK device_map;没有探测目标GPU、驱动或可用显存。",
|
||||
),
|
||||
"attn_implementation": (
|
||||
"注意力实现选择",
|
||||
"sdpa",
|
||||
"枚举",
|
||||
"sdpa/flash_attention_2/eager",
|
||||
"传给from_pretrained;依赖是否可用及目标兼" + "容未知,不安装运行库。",
|
||||
),
|
||||
"auto_download": (
|
||||
"缺本地目录时自动下载开关",
|
||||
"False",
|
||||
"布尔",
|
||||
"true/false;只控制本插件缺目录分支",
|
||||
"保存false:目录缺失则FileNotFoundErr"
|
||||
+ "or;目录存在仍调用SDK from_pretraine"
|
||||
+ "d,不能承诺绝不联网、已经有模型或可加载。",
|
||||
),
|
||||
"download_source": (
|
||||
"条件下载提供方",
|
||||
"ModelScope",
|
||||
"枚举",
|
||||
"ModelScope/HuggingFace;仅启用自动下载且缺本地目录时进入",
|
||||
"保存ModelScope只记条件来源,不是本次下载事实," + "未调用下载函数。",
|
||||
),
|
||||
"speakers_config": (
|
||||
"角色设计配置缓存",
|
||||
"[](STRING)",
|
||||
"完整文本",
|
||||
"要求角色name/instruct/text;本版另有l" + "iteral_eval回退,未执行任何解析",
|
||||
"9此缓存NewSpeaker示例被44→speakers"
|
||||
+ "_config覆盖。准确实现逐角色生成V"
|
||||
+ (
|
||||
"oiceDesign音频并写temp WAV,返回SPE"
|
||||
+ "AKER_LIST和ui.batch_outputs;不"
|
||||
+ "能称这份示例已被采用或无写入。"
|
||||
),
|
||||
),
|
||||
"manage_speakers": (
|
||||
"角色管理按钮保存值",
|
||||
"Edit(准确插件JS按钮)",
|
||||
"前端辅助文本",
|
||||
"Manage Speakers按钮;无同名后端输入口",
|
||||
"准确batch_speaker.js追加Edit按钮;源"
|
||||
+ "无前端版本,真实恢复/序列化与UE组合未知,不点击或执行"
|
||||
+ "JS。",
|
||||
),
|
||||
"text": (
|
||||
"多角色对话文本缓存",
|
||||
"Vivian: 你好!\nRyan: 你好,今天天气真不错"
|
||||
+ "。\nRoleA: 我是自定义角色A。\nVivian: 欢"
|
||||
+ "迎你!",
|
||||
"完整文本",
|
||||
"保存缓存非最终文本;15→18.text外线覆盖",
|
||||
"源缓存四句你好/天气等不是有效运行文本;15实际保存旁白"
|
||||
+ "/国王/冰沙王子/针眼画师四句,经CR原样返回。角色解析"
|
||||
+ "见准确分支,不执行对话。",
|
||||
),
|
||||
"interval": (
|
||||
"相邻段落间静音长度",
|
||||
"0.5",
|
||||
"秒(准确int(interval*sr))",
|
||||
"0.0~5.0,步长0.1;仅成功段且原对话索引不是末项时插入",
|
||||
"本版插入int(interval*sr)个零样本,不等于"
|
||||
+ "混音或淡入淡出。跳过失败片段/采样率不一致会影响实际间隔"
|
||||
+ ",未测时长。",
|
||||
),
|
||||
"seed": (
|
||||
"多角色生成基础种子",
|
||||
"0",
|
||||
"整数种子",
|
||||
"0~18446744073709551615;保留源62556003384494",
|
||||
"准确实现按基础seed加角色名Adler32再取模,调用"
|
||||
+ "torch CPU/CUDA种子;这里只解释算法,不计算"
|
||||
+ "种子,不保证声线一致或跨环境确定性。",
|
||||
),
|
||||
"control_after_generate": (
|
||||
"可能的种子辅助控制",
|
||||
"仅前端1.52.7参考默认randomize",
|
||||
"前端辅助枚举",
|
||||
"fixed/increment/decrement/ra" + "ndomize;源准确默认/恢复未知",
|
||||
"保存fixed另列;固定前端构造仅显式参考假设,不是后端" + "seed参数,不计算下一种子。",
|
||||
),
|
||||
"name": (
|
||||
"自定义声音角色名",
|
||||
"MySpeaker",
|
||||
"字符串",
|
||||
"本版仅strip前后空白;角色匹配区分精确/忽略大小写路径",
|
||||
"DefineSpeaker仅返回name/audio字典"
|
||||
+ "。此节点mode4,不能将旁路模拟成有效SPEAKER或"
|
||||
+ "声纹克隆已使用。",
|
||||
),
|
||||
"audio": (
|
||||
"参考音频/视频文件引用",
|
||||
"input音视频动态列表,无固定默认",
|
||||
"文件名",
|
||||
"准确LoadAudio接受audio/video列表;源" + "额外audioUI/upload口不在本版schema",
|
||||
"只引用国王.mp4/云希男.mp3/懒洋洋.flac/针"
|
||||
+ "眼画师2.mp4。四LoadAudio均mode4,不读"
|
||||
+ "取媒体,不验证文件存在、解码、授权或声纹。",
|
||||
),
|
||||
"purge_cache": (
|
||||
"缓存清理开关保存值",
|
||||
"True",
|
||||
"布尔",
|
||||
"准确此旧类实际未读取purge_cache,不套V2",
|
||||
"32/33保存true;本版无条件clear_memor"
|
||||
+ "y,即GC及CUDA可用时empty_cache/ipc"
|
||||
+ "_collect,不能说false即不清缓存;没有执行。",
|
||||
),
|
||||
"purge_models": (
|
||||
"模型卸载开关",
|
||||
"True",
|
||||
"布尔",
|
||||
"true时unload_all_models后soft_empty_cache",
|
||||
"32由18.AUDIO触发依赖、33由45.output"
|
||||
+ "触发依赖;旧PurgeVRAM无数据输出,不当音频透传或"
|
||||
+ "成功产物。没有执行卸载。",
|
||||
),
|
||||
"alias_name": (
|
||||
"Set/Get别名字面保存",
|
||||
"未知:aux仅字面SetNode/GetNode,无版本",
|
||||
"字符串",
|
||||
"无可靠提供方/schema/作用域,不继承KJ profile",
|
||||
"自动角色语音设计/自定义角色语音设计只是标签。物理线到S"
|
||||
+ "et和Get到Switch分别记录;未证别名查找作用域、"
|
||||
+ "恢复、重名与执行关系,不宣称已经连通。",
|
||||
),
|
||||
"select": (
|
||||
"Switch选择输入编号",
|
||||
"1",
|
||||
"整数序号",
|
||||
"1~999999,步长1;按inputN取值,缺输入返回None",
|
||||
"准确8.28.2 select1对应input1(38."
|
||||
+ "Get自动角色语音设计),不是input"
|
||||
+ ("2自定义。这里只证明Switch规则,Get值/旁路恢复" + "未知,不断言实际角色配置。"),
|
||||
),
|
||||
"sel_mode": (
|
||||
"Switch选择时机保存值",
|
||||
"False",
|
||||
"布尔",
|
||||
"false标签select_on_execution;t" + "rue标签select_on_prompt(旧版模式)",
|
||||
"本版check_lazy_status请求选中input"
|
||||
+ "N,doit按select取值;无wor"
|
||||
+ ("kflow元数据时有API模式不保证正常的警告。不能据此" + "证明本图UE/别名执行成功。"),
|
||||
),
|
||||
"history_text": (
|
||||
"角色设计历史展示文字",
|
||||
"无静态默认;UI写回历史",
|
||||
"完整历史字符串",
|
||||
"准确Show31为INPUT_IS_LIST/OUTPU" + "T_IS_LIST;源标量保存仍原样保留",
|
||||
"来自45.output槽0的历史JSON文本,含重复旁白"
|
||||
+ "/国王及大臣,不是当前自动角色结果、不执"
|
||||
+ "行JSON转换;准确609f3afa写回[text],源形状与恢复组合未知。",
|
||||
),
|
||||
"filename_prefix": (
|
||||
"正式音频保存前缀缓存",
|
||||
"audio/ComfyUI(schema);execute函数缺参默认ComfyUI分开",
|
||||
"路径前缀",
|
||||
"准确SaveAudio默认FLAC、UI audio文件描述符;不是文件存在证明",
|
||||
"42为mode4,保存audio/ComfyUI不代表正"
|
||||
+ "式文件已保存。8.PreviewAudi"
|
||||
+ ("o为mode0,其准确helper若执行会写temp F" + "LAC,不能承诺全图无写入。"),
|
||||
),
|
||||
}
|
||||
fields = []
|
||||
comments = []
|
||||
zero = []
|
||||
llama_fields = {f["field"]: f for f in old["fields"] if f["node_id"] in ["1", "2"]}
|
||||
for ni, n in enumerate(g["nodes"]):
|
||||
nid = n["id"]
|
||||
w = n.get("widgets_values")
|
||||
if n["type"] == "Note":
|
||||
comments.append(
|
||||
dict(
|
||||
node_id=str(nid),
|
||||
scope="root",
|
||||
pointer=f"/nodes/{ni}/widgets_values/0",
|
||||
text=w[0],
|
||||
meaning="源注释全文仅解释输入JSON格式。"
|
||||
if nid == 16
|
||||
else "源注释提示切换序号;准确select1对应input1," + "但别名恢复未知。",
|
||||
)
|
||||
)
|
||||
continue
|
||||
if not w:
|
||||
zero.append(
|
||||
dict(
|
||||
node_id=str(nid),
|
||||
class_type=n["type"],
|
||||
pointer=f"/nodes/{ni}",
|
||||
effect="缺widgets_values;Bypasser无身份版"
|
||||
+ "本,matchTitle三组名/属性仅保"
|
||||
+ "存事实,不执行JS、自动改模式或按组名断言链活动。"
|
||||
if w is None
|
||||
else "PreviewAudio保存空[],零位置不是null或"
|
||||
+ "缺键;准确core执行会写temp FLAC并返回ui."
|
||||
+ "audio描述符。",
|
||||
)
|
||||
)
|
||||
continue
|
||||
for k, value in enumerate(w):
|
||||
name = names[nid][k]
|
||||
inp = next((i for (i, p) in enumerate(n.get("inputs", [])) if p["name"] == name), None)
|
||||
if nid in [45, 46]:
|
||||
template = llama_fields[name]
|
||||
ev = old_refs(template)
|
||||
(label, default, unit, limits) = (
|
||||
template["label"],
|
||||
template["schema_default"],
|
||||
template["unit"],
|
||||
template["limits"],
|
||||
)
|
||||
effect = (
|
||||
"仅显式llama f2209ccc和前端1.52.7参考"
|
||||
+ "假设;源45/46无身份版本。"
|
||||
+ template["effect"]
|
||||
)
|
||||
if nid == 45:
|
||||
specific = {
|
||||
"preset_prompt": "源缓存Normal - Describe;参考custo"
|
||||
+ "m非空且预设不含*时覆盖预设,星号模板另"
|
||||
+ "有替换路径,不执行。",
|
||||
"custom_prompt": "源缓存空字符串被29.CR小说片段外线覆盖;不是源中文请"
|
||||
+ "求缓存,亦不保证JSON输出。",
|
||||
"system_prompt": "保留以ole开头的完整旧缓存,35.CR外线覆盖;参考系"
|
||||
+ "统提示变化会清状态,未执行。",
|
||||
"inference_mode": "源保存one by one;参考此分支无images时一"
|
||||
+ "次纯文本调用,返回output与outp"
|
||||
+ "ut_list/state_uid;只连槽0至31和33。",
|
||||
"max_frames": "源缓存24;参考仅video采样使用,one by on"
|
||||
+ "e不采用,未采样素材。",
|
||||
"max_size": "源缓存256;参考one by one有图片才逐图缩放,"
|
||||
+ "无images不读取/缩放素材,不保证最终尺寸。",
|
||||
"seed": "源保存281648296193605;randomize"
|
||||
+ "辅助值单列,不计算或修改种子。",
|
||||
"control_after_generate": "保存randomize;固定前端1.52.7追加seed"
|
||||
+ "辅助控件仅参考假设,源前端及UE恢复未知。",
|
||||
"force_offload": "保存false;参考关闭卸载仍可能清Qwen混合缓存,不执行。",
|
||||
"save_states": "保存false;参考false会clean_state,"
|
||||
+ "不能承诺无状态副作用,不执行。",
|
||||
}
|
||||
effect = (
|
||||
"仅显式llama f2209ccc/前端1.52.7参考"
|
||||
+ "布局假设,源无身份版本。"
|
||||
+ specific[name]
|
||||
)
|
||||
limits = (
|
||||
limits.replace("源290079675294308", "源281648296193605")
|
||||
.replace("源images分支不使用", "源one by one分支不使用")
|
||||
.replace("参考Detailed为列表选项,非默认", "源Normal - Describe为参考默认")
|
||||
)
|
||||
effect += (
|
||||
" 本图images/parameters/queue_h"
|
||||
+ "andler均无外线;29覆盖custo"
|
||||
+ ("m_prompt、35覆盖system_prompt,保" + "存长system开头ole保持不修。参考")
|
||||
+ "默认parameters空字典;load_mtp缺口保留。"
|
||||
)
|
||||
if name in ["seed", "control_after_generate"]:
|
||||
effect += " 本图seed原值独立保留,不采用前图数值或计算。"
|
||||
if name == "max_frames":
|
||||
effect += " 本图保存one by one,帧数只在video参考分支使用。"
|
||||
else:
|
||||
if name == "model":
|
||||
effect = (
|
||||
"仅显式参考布局假设:46语言模型文件引用→45.llam"
|
||||
+ "a_model;不证明架构、实际精度或显存。"
|
||||
)
|
||||
effect += (
|
||||
" 本图46→45;参考多出load_mtp而源无口/值," + "不补默认,模型文件只是引用。"
|
||||
)
|
||||
role = (
|
||||
"frontend_control"
|
||||
if name == "control_after_generate"
|
||||
else "reference_layout_hypothesis"
|
||||
)
|
||||
elif name.startswith("saved_null"):
|
||||
label = "未知保存null位置" + str(k)
|
||||
default = "未知:准确后端无此保存控件,源缺前端版本"
|
||||
unit = "JSON null"
|
||||
limits = "原null保持,区别于空字符串/空数组/缺键;不猜恢复默认"
|
||||
effect = (
|
||||
"PreviewAny准确后端只有source口/返回ui" + ".text,无三null含义证据。"
|
||||
if nid == 12
|
||||
else "LoadAudio准确0.15.0仅audio输入,源a"
|
||||
+ "udioUI/upload两口与两个null位置不可据序"
|
||||
+ "号配对,保持未知。"
|
||||
)
|
||||
ev = [preview] if nid == 12 else [load_audio]
|
||||
role = "unknown_saved_state"
|
||||
elif name == "prompt":
|
||||
label = {
|
||||
14: "四角色手工设计JSON文本",
|
||||
15: "四角色对话正文",
|
||||
29: "小说原文片段",
|
||||
35: "角色设计系统长指南",
|
||||
}[nid]
|
||||
(default, unit, limits) = (
|
||||
"prompt(准确schema)",
|
||||
"完整字符串",
|
||||
"CR原样返回prompt与帮助链接;不解析JSON、不执行文本/链接",
|
||||
)
|
||||
effect = {
|
||||
14: "14→39.Set自定义角色语音设计;name/inst"
|
||||
+ "ruct/text作为整份字符串,不拆成虚构参数。",
|
||||
15: "15→18.text覆盖对话缓存,四角色四句全文保留,不" + "声称生成成功。",
|
||||
29: "29→45.custom_prompt覆盖空缓存,源小说"
|
||||
+ "只是输入引用文本,不从历史展示反推当前结果。",
|
||||
35: "35→45.system_prompt覆盖以ole开头的"
|
||||
+ "旧缓存;源指南中的指令/示例只作文本展示,不执行改写。",
|
||||
}[nid]
|
||||
ev = [cr]
|
||||
role = "saved_text"
|
||||
else:
|
||||
(label, default, unit, limits, effect) = specs[name]
|
||||
ev = (
|
||||
[loader]
|
||||
if nid in [3, 4]
|
||||
else [define]
|
||||
if nid in [20, 22, 24, 26]
|
||||
else [batch, edit]
|
||||
if nid == 9
|
||||
else [dialog, dynamic]
|
||||
if nid == 18
|
||||
else [load_audio]
|
||||
if nid in [19, 21, 23, 25]
|
||||
else [purge, memory]
|
||||
if nid in [32, 33]
|
||||
else [switch]
|
||||
if nid == 44
|
||||
else [show, showjs]
|
||||
if nid == 31
|
||||
else [audio, audio_ui]
|
||||
if nid == 42
|
||||
else []
|
||||
)
|
||||
if name == "control_after_generate":
|
||||
ev += old_refs(llama_fields[name], frontend_only=True)
|
||||
role = (
|
||||
"frontend_control"
|
||||
if name in ["manage_speakers", "control_after_generate"]
|
||||
else "history_text"
|
||||
if nid == 31
|
||||
else "saved_layout_reference"
|
||||
)
|
||||
linked = inp is not None and n["inputs"][inp].get("link") is not None
|
||||
fields.append(
|
||||
dict(
|
||||
node_id=str(nid),
|
||||
definition_node_id=str(nid),
|
||||
scope="root",
|
||||
class_type=n["type"],
|
||||
field=name,
|
||||
label=label,
|
||||
pointer=f"/nodes/{ni}/widgets_values/{k}",
|
||||
value=value,
|
||||
json_type=type(value).__name__,
|
||||
named_pointer="源缺widgets_values_named,无具名保存指针,不制造",
|
||||
input_pointer=f"/nodes/{ni}/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=role,
|
||||
schema_default=default.replace("\n", "\\n"),
|
||||
unit=unit,
|
||||
limits=limits,
|
||||
effect="保存数组布局解释与源输入口名分列;无具名保存值,不以端口"
|
||||
+ "顺序作映射。"
|
||||
+ effect,
|
||||
execution_note=f"原mode{n['mode']};"
|
||||
+ ("此保存缓存有外线覆盖,连线只证明端点。" if linked else "")
|
||||
+ (
|
||||
"源无前端版本,真实恢复/UE7.3或7.7、目标安装/素"
|
||||
+ "材/效果未知;转换关闭、未实跑。"
|
||||
),
|
||||
evidence=ev,
|
||||
)
|
||||
)
|
||||
assert len(fields) == 70 and len(comments) == 2
|
||||
overview = (
|
||||
"这张图用于为旁白、国王、冰沙王子和针眼画师准备声音,再把"
|
||||
+ "按角色分行的台词接成一段对话音频。它同时"
|
||||
+ (
|
||||
"保存自动角色设计、手工角色设计和四份音频引用;四条参考音"
|
||||
+ "频支路与正式保存节点处于旁路。当前只可阅"
|
||||
)
|
||||
+ "读参考说明,角色设计历史不是新结果,目标环境和声音效果未验证。"
|
||||
)
|
||||
flow = [
|
||||
"独立原字节盘点:根32节点、26物理边,无子图;23个m"
|
||||
+ "ode0、9个mode4;70非注释顶层"
|
||||
+ (
|
||||
"保存位置+2份完整Note。LG仅renderer标签,"
|
||||
+ "全图无frontendVersion、全节点无widge"
|
||||
+ "ts_values_named。"
|
||||
),
|
||||
"活动保存链:4.VoiceDesign→9.BatchG"
|
||||
+ "enerateSpeaker→12.PreviewAny"
|
||||
+ "及18.speaker_list;3.Base→18.m"
|
||||
+ "odel;15.CR→18.text覆盖缓存;18.AU"
|
||||
+ "DIO→8.PreviewAudio、32.PurgeV"
|
||||
+ "RAM与mode4的42.SaveAudio。不是三份已"
|
||||
+ "产生音频。",
|
||||
"旁路链:19.LoadAudio→20.Define(旁"
|
||||
+ "白)→18.speaker_1;21→22(国王)→sp"
|
||||
+ "eaker_2;23→24(冰沙王子)→speaker_"
|
||||
+ "3;25→26(针眼画师)→speaker_4。八节点均"
|
||||
+ "mode4,speaker_5未接;不模拟旁路成有效SP"
|
||||
+ "EAKER,不宣称音频已用于克隆。",
|
||||
"四个素材仅为引用:国王.mp4、云希男.mp3、懒洋洋."
|
||||
+ "flac、针眼画师2.mp4;准确cor"
|
||||
+ ("e LoadAudio支持动态音视频列表,不证明存在、可" + "解码或声纹授权,未读文件。Preview")
|
||||
+ (
|
||||
"Audio空[]、Bypasser缺widgets_va"
|
||||
+ "lues与PreviewAny三null/LoadAud"
|
||||
+ "io两null分开,源无前端版本不补默认。"
|
||||
),
|
||||
"手工设计:14.CR四角色JSON→39.Set(自定义"
|
||||
+ "角色语音设计);自动设计:46.load"
|
||||
+ (
|
||||
"er→45,29.CR小说→45.custom_prom"
|
||||
+ "pt、35.CR长指南→45.system_prompt"
|
||||
+ ";45.output槽0→31.ShowText与33."
|
||||
+ "Purge,31→37.Set(自动角色语音设计)。45"
|
||||
+ ".parameters/images/queue_han"
|
||||
+ "dler无外线。"
|
||||
),
|
||||
"别名未知:37/39是aux字面SetNode、38/4"
|
||||
+ "0是aux字面GetNode且均无版本;不继承KJ pr"
|
||||
+ "ofile,不猜作用域。38.Get自动→44.inpu"
|
||||
+ "t1,40.Get自定义→44.input2;准确8.2"
|
||||
+ "8.2 select1取input1,sel_mode="
|
||||
+ "fals"
|
||||
+ ("e标签执行时选择;动态Get值与实际恢复仍未知。44→9" + ".speakers_config覆盖Ne")
|
||||
+ "wSpeaker缓存。",
|
||||
"准确Batch会先json.loads、失败才ast.l"
|
||||
+ "iteral_eval;不是执行授权。n"
|
||||
+ ("ame/instruct/text缺失会跳过,生成异常按" + "角色继续,VoiceDesign生成后把")
|
||||
+ (
|
||||
"audio/instruct写SPEAKER_LIST并"
|
||||
+ "写temp WAV/ui.batch_outputs。没"
|
||||
+ "有运行解析或生成,也不把Edit当后端输入。"
|
||||
),
|
||||
"准确MultiDialog先遍历speaker_list"
|
||||
+ "建字典(同名后项覆盖),再遍历非空spe"
|
||||
+ (
|
||||
"aker_* kwargs覆盖同名;忽略大小写映射由字典"
|
||||
+ "顺序构建,大小写碰撞可能后项生效。独立s"
|
||||
)
|
||||
+ "peaker_5未接;源旁路不等于真的提供了kwargs音频。",
|
||||
"准确角色解析:支持英文/中文冒号和去方括号;优先自定义精"
|
||||
+ "确→自定义忽略大小写→预设精确→预设忽略"
|
||||
+ (
|
||||
"大小写。未知角色把整行当当前角色续文,无冒号也续用;初始"
|
||||
+ "取首自定义,否则Vivian。未查询动态"
|
||||
)
|
||||
+ "预设或验证中文角色均有效。",
|
||||
"准确模型分支:voice_design需instruct"
|
||||
+ ";base需audio,参考音频waveform首bat"
|
||||
+ "ch、多声道取均值,generate_voice_clo"
|
||||
+ "ne用ref_text=None/x_vector_on"
|
||||
+ "ly_mode=True;custom_voice按支持"
|
||||
+ "名单回退"
|
||||
+ (";不匹配/缺音频或instruct会跳过。文件名Base" + "/VoiceDesign不保证实际模型对")
|
||||
+ "象类型。",
|
||||
"准确interval0.5按int(interval*s"
|
||||
+ "r)零样本插入成功且非末索引段;不是混音"
|
||||
+ ("、重采样或淡入淡出。首个成功sr为结果sample_ra" + "te,后续sr不同仅警告并继续拼接不重采")
|
||||
+ ("样;无成功音频返回一秒静音(无sr时24000)。不能把" + "静音或有返回当所有角色成功。"),
|
||||
"准确MultiDialog每段会依据角色名哈希与seed"
|
||||
+ "调用torch随机种子;仅记录保存625"
|
||||
+ (
|
||||
"56003384494和fixed,不计算。fixed解"
|
||||
+ "释只复用显式frontend1.52.7构造参考,源无前"
|
||||
+ "端版本/UE7.3与7.7恢复未知,不保证音色一致。"
|
||||
),
|
||||
"两loader准确90b11750与9/18/Defin"
|
||||
+ "e准确0c20c6b9各自独立,不合成同版。bf16/c"
|
||||
+ "uda/sdpa/auto_download=false"
|
||||
+ "/ModelScope按"
|
||||
+ ("准确schema解释;本地目录缺失且false报错,存在" + "则from_pretrained,不能承")
|
||||
+ "诺绝不联网或资源兼容。",
|
||||
"准确core0.15.0:PreviewAny仅ui.t"
|
||||
+ "ext,无数据输出;8.PreviewAudio执行时h"
|
||||
+ "elper写temp FLAC并返回ui.audio文件"
|
||||
+ "描述符,非后版audio"
|
||||
+ ("UI。42.SaveAudio为mode4不代表正式保存" + "已发生,也不能据其旁路称全图无写入;9.")
|
||||
+ "Batch也可能写临时WAV。",
|
||||
"32/33准确d94bef1e旧PurgeVRAM无数据"
|
||||
+ "输出:无条件GC及CUDA缓存清理,purge_cach"
|
||||
+ "e变量未读;purge_models=true会unlo"
|
||||
+ "ad_all_models/soft_empty_cac"
|
||||
+ "he。只解释副作用,未执行清显存。27.Bypasser"
|
||||
+ "无版本,三组matchTitle和属性只是保存事实,不运"
|
||||
+ "行JS或自动改mode。",
|
||||
"45/46无身份版本,沿用llama f2209ccc显"
|
||||
+ "式参考,不变成准确安装;loader七值"
|
||||
+ (
|
||||
"而参考还需load_mtp,缺口保留。45保存one b"
|
||||
+ "y one,参考max_frames只video用;无i"
|
||||
+ "mages不证明一定可推理,Qwen3.5/mmproj"
|
||||
+ "/SDK兼容未知。cus"
|
||||
+ ("tom/system外线覆盖缓存,保留长缓存开头ole," + "不执行指南或构造prompt。")
|
||||
),
|
||||
"Show31明确准确609f3afa,与前张无身份Sho"
|
||||
+ "w分开;保存完整角色JSON历史含大臣及"
|
||||
+ (
|
||||
"重复旁白/国王,不是当前小说/角色结果。两个CR长文本、"
|
||||
+ "缓存长system和JSON整项展示,不"
|
||||
)
|
||||
+ ("拆新增参数或执行状态操作。参考llama清状态/卸载副作" + "用仍适用条件未知,不运行。"),
|
||||
"常见问题核对:无声不等于成功(可能静音回退);角色不匹配"
|
||||
+ "会续用当前角色;Base缺有效audio"
|
||||
+ (
|
||||
"会跳过;旁路支路不能证明克隆输入;别名/切换不确定不可猜"
|
||||
+ "有效配置;缺模型目录且禁下载会报错;历史"
|
||||
)
|
||||
+ ("JSON不是当前生成。155定稿0/实跑0/新增转换0," + "继续停用/未检查/空时间戳。"),
|
||||
]
|
||||
flow += ["原物理边 " + json.dumps(e, ensure_ascii=False) for e in g["links"]]
|
||||
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=[
|
||||
"loader3/4:90b117502f237dd008"
|
||||
+ "c541372b72935d93ae894c;9/18/"
|
||||
+ "四Define:0c20c6b9ac22ecc4b552"
|
||||
+ "5de651fca0776a382dd3。",
|
||||
"core0.15.0→b874bd2b8c324d58c"
|
||||
+ "fc37bff0754dd16815a8f3c(复用SD"
|
||||
+ "Pose准确tag/commit记录);CR→d78b7"
|
||||
+ "80ae43fcf8c6b7c6505e6ffb4584"
|
||||
+ "281ceca。",
|
||||
"Show31准确609f3afaa74b2f88ef9c"
|
||||
+ "e8d939626065e3247469;Purge32"
|
||||
+ "/33准确d94bef1ee5ed3656f5ff1bb"
|
||||
+ "2830a4ffd94f40935。",
|
||||
"ImpactSwitch准确发布8.28.2,包SHA/"
|
||||
+ "成员见tts-reference;Git提交及目标安装绑"
|
||||
+ "定未知,不套8.25.1。",
|
||||
"45/46无身份版本,仅llama f2209cccb7"
|
||||
+ "26647640271bd1cea071a570fc62"
|
||||
+ "f5显式参考;LICENSE原树缺失,load_mtp缺"
|
||||
+ "口保留。",
|
||||
"全图无frontendVersion;seed/恢复仅显"
|
||||
+ "式frontend1.52.7→1a7a6b825148"
|
||||
+ "74545dc5e8203d0bd2188c2d9b18"
|
||||
+ "假设。Set/Get/Bypasser无版本,不继承pr"
|
||||
+ "ofile;UE7.3/7.7组合与真实恢复未知。",
|
||||
"local_file基准docs/hel-892/tts"
|
||||
+ "-document-evidence;准确提交不证明目标"
|
||||
+ "安装/发布包绑定;CR原树缺LICENSE许可文本未知。",
|
||||
],
|
||||
counts=dict(
|
||||
saved_fields=70,
|
||||
root_saved_fields=70,
|
||||
internal_saved_fields=0,
|
||||
linked_saved_fields=4,
|
||||
frontend_only=3,
|
||||
source_nodes=32,
|
||||
root_nodes=32,
|
||||
internal_nodes=0,
|
||||
physical_edges=26,
|
||||
internal_edge_records=0,
|
||||
source_notes=2,
|
||||
history_objects=0,
|
||||
history_strings=1,
|
||||
final_scalars=0,
|
||||
final_prompt_constructed=False,
|
||||
),
|
||||
fields=fields,
|
||||
sources=sources,
|
||||
comments=comments,
|
||||
flow=flow,
|
||||
flow_evidence=list(range(len(sources))),
|
||||
zero_saved_nodes=zero,
|
||||
boundaries=[],
|
||||
steps=[
|
||||
overview,
|
||||
"操作1:只读核对四角色台词、两份角色设计长文本、历史展示"
|
||||
+ "与四素材/模型引用,分清外线覆盖与旁路;不读取音频。",
|
||||
"操作2:核准准确节点版本及前端/UE恢复、别名提供方和动"
|
||||
+ "态角色/模型兼容;未知项保留,不按组名或缓存宣称有效链。",
|
||||
"操作3:全量审核完成前保持停用,不构造prompt、不解"
|
||||
+ "析执行配置、不推理、不算种子、不保存/清状态、不清显存。",
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,40 @@
|
||||
"Offline batch evidence tooling; no upstream execution."
|
||||
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
FILES = [
|
||||
("calliope-backend/src/calliope/co" + "mfyui/fixed_document.py"),
|
||||
"calliope-backend/tests/test_tts_fixed_document.py",
|
||||
"e2e/run-tts-document.py",
|
||||
] + [str(p.relative_to(ROOT)) for p in sorted(OUT.glob("*.py"))]
|
||||
|
||||
|
||||
def main():
|
||||
for command in [["check"], ["format", "--check"]]:
|
||||
subprocess.run(
|
||||
[
|
||||
"uv",
|
||||
"run",
|
||||
"--project",
|
||||
"calliope-backend",
|
||||
"--offline",
|
||||
"ruff",
|
||||
*command,
|
||||
"--config",
|
||||
"calliope-backend/pyproject.toml",
|
||||
*FILES,
|
||||
],
|
||||
cwd=ROOT,
|
||||
check=True,
|
||||
)
|
||||
subprocess.run(["node", "--check", "e2e/tts-document.mjs"], cwd=ROOT, check=True)
|
||||
(OUT / "python-check-files.json").write_text(json.dumps(FILES, indent=2) + "\n")
|
||||
print("PASS", len(FILES), (("authored Python files and one " + "JS") + " syntax check"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,541 @@
|
||||
{
|
||||
"base": "21f0fd678add77a88a975793d1b0b9dbb72bb059",
|
||||
"files": [
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"bytes": 11412,
|
||||
"sha256": "9a2ce69532d918265bb0f59fc1562763234b04aec31daded20d5474e454a79d3",
|
||||
"purpose": "仅新增本图路径+完整定义摘要允许项,失败关闭逻辑不变"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
|
||||
"bytes": 5058259,
|
||||
"sha256": "95fed306a9413e694167d3e722d4bc4db179246eed3946ae596721afe762f35f",
|
||||
"purpose": "只追加本图70位置/2完整Note和具体中文流程/用途/步骤/固定来源;其余审校对象冻结"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_tts_fixed_document.py",
|
||||
"bytes": 7115,
|
||||
"sha256": "2f1e17841b451ceef003513f9a3a0ad717c4789a0832d903725a495e0a745e5b",
|
||||
"purpose": "仅新增本图路径+完整定义摘要允许项,失败关闭逻辑不变"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/Qwen3TTS多角色对话固定参考中文说明.md",
|
||||
"bytes": 181436,
|
||||
"sha256": "7ff1e2219a81046134c9d5f2f9316424003e6b41d9ac510722139eb6b58aafdc",
|
||||
"purpose": "完整逐位置中文参考说明或交付核对摘要;不宣称真实执行或定稿"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/actual-Qwen3-TTS_多角色对话.json",
|
||||
"bytes": 205744,
|
||||
"sha256": "34e501c8edea60890d62ac5d3bf03fd51ec5e71def3bcc58c3e9dbb72f405a8a",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/audit-summary.json",
|
||||
"bytes": 797,
|
||||
"sha256": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/backend-request-counts.json",
|
||||
"bytes": 115,
|
||||
"sha256": "03e17b544517837b6ee5aab4a22e8004cb58f1c7799cdee54c39d07cec8a6c26",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/boundaries.json",
|
||||
"bytes": 38633,
|
||||
"sha256": "21a1363405ec91005ed9cc46b4c43edd17fa083024eeab359ce87604b429a944",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/brief.md",
|
||||
"bytes": 4842,
|
||||
"sha256": "0c8327d2b65c1430b62617f5a8e2b7c3d4d2bc0a52cc4395317a1a4eed5d69cf",
|
||||
"purpose": "完整逐位置中文参考说明或交付核对摘要;不宣称真实执行或定稿"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/browser-counts.json",
|
||||
"bytes": 2083,
|
||||
"sha256": "eeb8e0324e43c0d0abb9abfad6aca607d33a9c5f57bf0cce9059a00afcf0830f",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/browser-results.json",
|
||||
"bytes": 118335,
|
||||
"sha256": "ba1a2451ee28a9b7680e0ba913c5ca7dbe285968e5af68d80f1633aaa09ffec2",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/browser.txt",
|
||||
"bytes": 98785,
|
||||
"sha256": "f61a4cdf0c41624e904cdc77deef716797d3c22ab123802e34eda63f73a1551d",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/build.txt",
|
||||
"bytes": 0,
|
||||
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/build_definition.py",
|
||||
"bytes": 40209,
|
||||
"sha256": "4cf1d39bdfca0d0d8b0f12d10923e0a543944e7be7792cbc7942e339fac81a71",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/check_code.py",
|
||||
"bytes": 1202,
|
||||
"sha256": "8ff29492f6b65020e43db56b4acf964220d6d539bc6394f6da5190016f3be285",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/definition-0.json",
|
||||
"bytes": 150610,
|
||||
"sha256": "2c4e11d9538907b2bffa0a95239bd1bf090c93a4156422f050e0263241f0316b",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/fetch_sources.py",
|
||||
"bytes": 5208,
|
||||
"sha256": "d690092a8d105fe96cd8bc58b228a9b163f84561949d43bd409d9cb1ebac45ea",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/final-validation.json",
|
||||
"bytes": 1278,
|
||||
"sha256": "8308c76b75392b6cef336fc955241d896bff67362c818f042ab18dc83edf4fb5",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/finally-stop.json",
|
||||
"bytes": 65,
|
||||
"sha256": "26a1c53a887aaa01778530a87c33062e6121fde93e9eacea671c3561b8fe5594",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/fixed-source-index.json",
|
||||
"bytes": 44699,
|
||||
"sha256": "7cf9a91ebb044306970ede927f1659ff91c33536fc1369c57e21fd00b34a515b",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/frozen-resource-check.json",
|
||||
"bytes": 40348,
|
||||
"sha256": "6cd87374d8a162b406763172ba972f777349f5eccdb358178114b604da3c4318",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/import-protection.json",
|
||||
"bytes": 1270,
|
||||
"sha256": "baafaed1fd570caf79dbded6ccb121ef017f3ac120b112b7177ff750b9d0a91a",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/independent-inventory.json",
|
||||
"bytes": 22587,
|
||||
"sha256": "109a850e41b18bdf12c731443f3850ab91e54f244ba71841fb3478d93abe05e3",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/inventory.py",
|
||||
"bytes": 2278,
|
||||
"sha256": "34f97a8d92094516e496e2b918bba4841b8821c65abc9200d0cd0e876543b039",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/lint.txt",
|
||||
"bytes": 100,
|
||||
"sha256": "ba3ad488d916696d5b35456e7287d7d18bf5b5b11a65c8345c7fc47948bddea9",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/package-check.json",
|
||||
"bytes": 550,
|
||||
"sha256": "211fee601097e840eab1c7041d4bf4c127ae2fc9dbe5b630211aab23e937112c",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/pins.json",
|
||||
"bytes": 148,
|
||||
"sha256": "41809f653225ba9b114a721e264b83ac04a921509504b907119718d87816b31e",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/ports-independent.json",
|
||||
"bytes": 165,
|
||||
"sha256": "1e487821f761ab96db779fb3b6fb5e5411005f9027f12a880a779aefb23c50bc",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/pr-before.json",
|
||||
"bytes": 321,
|
||||
"sha256": "78f6e075fdfbcc0c1ab5cbbcdcafaaa7422eeffb7f3d8f2291e22bf9e9c7dc80",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/python-check-files.json",
|
||||
"bytes": 641,
|
||||
"sha256": "12c657391402c2b24f57847f83aaba1ff4e7e2c81dec5fd1fffaf81df2889819",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/rebuild.py",
|
||||
"bytes": 2539,
|
||||
"sha256": "390e7936b0fe0d47ff900f3d2a50160f058f1a98fdee894f2dee4f697d0ab597",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/rebuild.txt",
|
||||
"bytes": 67,
|
||||
"sha256": "1d6693453f808d495fea6ee6cc907c93e59dfc1700a053a5e10ee830538061fe",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/recompute.py",
|
||||
"bytes": 12930,
|
||||
"sha256": "4a8e7ca9ce87435fd8407de19b803ede3b694b37756a15c59e1361ba39f3af02",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/recompute.txt",
|
||||
"bytes": 292,
|
||||
"sha256": "fbe87587e042afbe3f743eb23c8fc348775d19b134a571b572f5192a88c16e04",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/render_report.py",
|
||||
"bytes": 4758,
|
||||
"sha256": "7f9289cbf59af41e2fb31f17a49508bbf2a07e6576842d98bc4770c366751f89",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/repeat.py",
|
||||
"bytes": 1353,
|
||||
"sha256": "35762a2c8a27d02f96e56d9011010b54072d758a9f125e5394fe6ac57981353d",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/repeatability.json",
|
||||
"bytes": 424,
|
||||
"sha256": "339c9a23b9112c665f171bc14822b7b4422687780cced7ee5366f452a6066efb",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/repeatability.txt",
|
||||
"bytes": 71,
|
||||
"sha256": "1c4de890cacc8abbcb119c86e6ebbea50780922b17bc7883685bfe4e0b261a96",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/review-delta.json",
|
||||
"bytes": 371,
|
||||
"sha256": "b59caf0d34d15ad6e3c8a4eec38aa93270cbfa82d271f326aa78b3949d8e5444",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/screenshots.json",
|
||||
"bytes": 1442,
|
||||
"sha256": "20bd8b17536e4409af429b8fbcc83da6fca79a590cebf8eedb3a69e0e64244e6",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/service-0.log",
|
||||
"bytes": 10009,
|
||||
"sha256": "ccead83b680234632ebe8163e2f40658b5d0d1158f5a2119f887df8ce055ede7",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/service-1.log",
|
||||
"bytes": 72,
|
||||
"sha256": "15482c7b4a7a7eeee8a795b4043effae004355dcc1b6a23f3cc9c498ccd93761",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/source-check.json",
|
||||
"bytes": 751,
|
||||
"sha256": "d0458439029410d77cb4eca409ec3d0b4d1b123c3deedbbb2f2b440f844d7d11",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/tests.txt",
|
||||
"bytes": 1040,
|
||||
"sha256": "1c0ffac0dbb2338fc6d92cb1d4ef128f0e2ad2c0d4c22c0c5dd2c79200a5ce05",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/validation-commands.txt",
|
||||
"bytes": 2298,
|
||||
"sha256": "314e473882526fd7b74f21bd10d890f894c8b70c81c802772ee558f5f81a51f7",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/verify_sources.py",
|
||||
"bytes": 3975,
|
||||
"sha256": "24770159e58cbb01f79d96c1728c0a6e34f5dc26c06126acdbf49f8cc112c017",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-document-evidence/visual-inspection.json",
|
||||
"bytes": 390,
|
||||
"sha256": "ad5d3014c35e8ed7542b74b2f5715f03a9e27413dfcaff17465c82daf6aa8184",
|
||||
"purpose": "本批可复核检查证据、实际doc/摘要/来源/差分/包字节/导入保护/GET日志;计数不累加重跑"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/core-commit.json",
|
||||
"bytes": 1117,
|
||||
"sha256": "e2ba46fdda05c083b72f05a40d4f62d034cc772a0579e3f03a74152988244d3a",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/core-tree.json",
|
||||
"bytes": 203927,
|
||||
"sha256": "62574fa701fbd15b75114aa045e679158c41d3a63c7b4e53b9da75f8163250b2",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/core__LICENSE",
|
||||
"bytes": 35149,
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/core__comfy_api__latest___ui.py",
|
||||
"bytes": 17849,
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/core__comfy_extras__nodes_audio.py",
|
||||
"bytes": 28641,
|
||||
"sha256": "3b126494a63be63fb90707aea819d2f492dbdcb06e1dc4f964a3036aead394ed",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/core__comfy_extras__nodes_preview_any.py",
|
||||
"bytes": 1271,
|
||||
"sha256": "f8c526dbc4ec512f88a067524865f59eb24db636858f37d601e848885b2d0751",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/core__folder_paths.py",
|
||||
"bytes": 18573,
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/cr-commit.json",
|
||||
"bytes": 1169,
|
||||
"sha256": "4453a4581a6bfc903416a6a430474a6e9c8c694304fc7a01b38edc16df7fbdbd",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/cr-tree.json",
|
||||
"bytes": 41246,
|
||||
"sha256": "e92e91b113baf9afe3d49b36f5481153f55fff9513b0a0c4eb7e20cd184783d2",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/cr____init__.py",
|
||||
"bytes": 1781,
|
||||
"sha256": "f5648f54dad6044763ac2f5f75bb26ec7f24bb43a8c4a6f6be62e523efee2ff6",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/cr__node_mappings.py",
|
||||
"bytes": 24479,
|
||||
"sha256": "9ae8fbedc4941f5bd1f58dd46898bb3dff20ef76ed65b27eb35d70df98b6e633",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/cr__nodes__nodes_core.py",
|
||||
"bytes": 17213,
|
||||
"sha256": "cece30b4134527ee0b9e7b083de0d3cc389124c02d5f1785284c023ba6756ece",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/dialog-commit.json",
|
||||
"bytes": 1156,
|
||||
"sha256": "c36238d0325449d1d0d993e946181b9a635aaf5bf6e9485040310b19d3af2067",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/dialog-tree.json",
|
||||
"bytes": 20606,
|
||||
"sha256": "01ef285cb5a808609aa31ea5493372620f9c51fb33c6bddbba1c6466f3db93a3",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/dialog__LICENSE",
|
||||
"bytes": 10173,
|
||||
"sha256": "c4a2cd14eb3abe621891b235bbe2cfd65f1f71afcfcd5c9b691bb016387dfe88",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/dialog____init__.py",
|
||||
"bytes": 237,
|
||||
"sha256": "a246ff77bc33dc055d04310ed11d69d72917462c57637eab055bae5d51b9747b",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/dialog__js__batch_speaker.js",
|
||||
"bytes": 10783,
|
||||
"sha256": "2011f9f3666a8e70c3ff3701f1abdbc3275eacfce4ed8c959a6fe1aafe1800ae",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/dialog__js__multi_dialog.js",
|
||||
"bytes": 7788,
|
||||
"sha256": "05fbf6e01d4733870b6711f1cb9015156fcdbcd648b0349c45ed989f04c39e3a",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/dialog__nodes.py",
|
||||
"bytes": 31102,
|
||||
"sha256": "45b01b04a1237ec33a1d980b4b949967730d4535ce3362c058886a88a2867eff",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/impact-members.json",
|
||||
"bytes": 15943,
|
||||
"sha256": "2a4ab099765ec23abd42e06258602f4ef101e4e70c1bfbc122ffbba73bcc6ffe",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/impact-registry.json",
|
||||
"bytes": 608,
|
||||
"sha256": "02c785731e99ab136766f4f7098d64a93ccb5ed219b415d86365fad2658cc6ce",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/impact-source.zip",
|
||||
"bytes": 2641425,
|
||||
"sha256": "f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/impact__LICENSE.txt",
|
||||
"bytes": 35149,
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/impact____init__.py",
|
||||
"bytes": 21951,
|
||||
"sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/impact__modules__impact__core.py",
|
||||
"bytes": 99603,
|
||||
"sha256": "6dc6cfc3048ae222779841eb28c61c594106293e68730003c13d72dc73f01545",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/impact__modules__impact__logics.py",
|
||||
"bytes": 22496,
|
||||
"sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/impact__modules__impact__util_nodes.py",
|
||||
"bytes": 24486,
|
||||
"sha256": "7ca6a382fd2d5e7c563a0c9ac15918a23b84c872ef7f64248bc485c26921c710",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/impact__pyproject.toml",
|
||||
"bytes": 745,
|
||||
"sha256": "3d6fa2cbd4b687d3d514ac41f601aae9e8a2f73c71f93adb548ccb09458a9094",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/layer-commit.json",
|
||||
"bytes": 1174,
|
||||
"sha256": "18c7e0ecc53d71e7de8dd38e7699d5ed36df875728f703775e0a7079bbaaf601",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/layer-tree.json",
|
||||
"bytes": 131985,
|
||||
"sha256": "7588ef3e59ec5e820e475e23250afb3f65ceafc7c1e7393ef306e95e53fd3c68",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/layer__LICENSE",
|
||||
"bytes": 1067,
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/layer____init__.py",
|
||||
"bytes": 1572,
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/layer__py__imagefunc.py",
|
||||
"bytes": 108024,
|
||||
"sha256": "8b86d33e06617cef208bdcb7fcd91585866d4b701eeede6033417463accddcdc",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/layer__py__purge_vram.py",
|
||||
"bytes": 2039,
|
||||
"sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/loader-commit.json",
|
||||
"bytes": 1194,
|
||||
"sha256": "c92d4773c9443ef6eff1c561389d80cc145d88a5fbbcdc991932132375fd6f2f",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/loader-tree.json",
|
||||
"bytes": 13283,
|
||||
"sha256": "61a5d52f83e463d3d58b8377a3ec4dd5f874c4f17d7d99196cf0ac0efcdf8242",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/loader__LICENSE",
|
||||
"bytes": 10173,
|
||||
"sha256": "c4a2cd14eb3abe621891b235bbe2cfd65f1f71afcfcd5c9b691bb016387dfe88",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/loader____init__.py",
|
||||
"bytes": 132,
|
||||
"sha256": "7d1c52e999d89ba5cc77619c179d5917cedb8ba6f6445f5b27f765d2107a6f65",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/loader__nodes.py",
|
||||
"bytes": 13326,
|
||||
"sha256": "856bae79b336675bcaa027226e36375d9f948883c8971bfb4d4715dd56f95c2c",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/tts-reference/sources.json",
|
||||
"bytes": 20651,
|
||||
"sha256": "f954faf7c5bbe3e7065fae958937abe50fa2ae74587dc27a3c9069444bc48203",
|
||||
"purpose": "固定上游原字节/完整树/commit/准确发布包/许可/成员/来源元数据,只读不执行"
|
||||
},
|
||||
{
|
||||
"path": "e2e/run-tts-document.py",
|
||||
"bytes": 3169,
|
||||
"sha256": "21d3e4ac7789fbf72dc4f4b0cd7887c3345888227a93e69293d6c51e8b2bb19f",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
},
|
||||
{
|
||||
"path": "e2e/tts-document.mjs",
|
||||
"bytes": 14849,
|
||||
"sha256": "b5e712620a330835a1a4019ccbad3bc1751eddd8fd90823b3b29e6c721566719",
|
||||
"purpose": "专项保护测试/本地GET双屏浏览验证/确定性定义重建与独立盘点/来源/导入保护/报告工具;不引入依赖"
|
||||
}
|
||||
],
|
||||
"self_excluded": true,
|
||||
"manifest_note": "清单自身不列自身摘要以避免递归"
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
"""Fetch only pinned upstream text; never import upstream code."""
|
||||
|
||||
import concurrent.futures
|
||||
import datetime
|
||||
import hashlib
|
||||
import json
|
||||
import urllib.request
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parents[1] / "tts-reference"
|
||||
SPECS = {
|
||||
"core": (
|
||||
"Comfy-Org/ComfyUI",
|
||||
"b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
[
|
||||
"comfy_extras/nodes_audio.py",
|
||||
"comfy_extras/nodes_preview_any.py",
|
||||
"comfy_api/latest/_ui.py",
|
||||
"LICENSE",
|
||||
"folder_paths.py",
|
||||
],
|
||||
),
|
||||
"cr": (
|
||||
"Suzie1/ComfyUI_Comfyroll_CustomNodes",
|
||||
"d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
|
||||
["__init__.py", "node_mappings.py", "nodes/nodes_core.py"],
|
||||
),
|
||||
"loader": (
|
||||
"AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"90b117502f237dd008c541372b72935d93ae894c",
|
||||
["__init__.py", "nodes.py", "LICENSE"],
|
||||
),
|
||||
"dialog": (
|
||||
"AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
["__init__.py", "nodes.py", "LICENSE", "js/batch_speaker.js", "js/multi_dialog.js"],
|
||||
),
|
||||
"layer": (
|
||||
"chflame163/ComfyUI_LayerStyle",
|
||||
"d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935",
|
||||
["__init__.py", "py/purge_vram.py", "py/imagefunc.py", "LICENSE"],
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
def get(url):
|
||||
with urllib.request.urlopen(url, timeout=40) as r:
|
||||
return r.read()
|
||||
|
||||
|
||||
def fetch(spec):
|
||||
key, (repo, rev, files) = spec
|
||||
base = f"https://api.github.com/repos/{repo}/git/"
|
||||
tree = get(base + f"trees/{rev}?recursive=1")
|
||||
t = json.loads(tree)
|
||||
assert not t["truncated"]
|
||||
(OUT / (key + "-tree.json")).write_bytes(tree)
|
||||
commit = get(base + f"commits/{rev}")
|
||||
(OUT / (key + "-commit.json")).write_bytes(commit)
|
||||
rows = []
|
||||
for f in files:
|
||||
url = f"https://raw.githubusercontent.com/{repo}/{rev}/{f}"
|
||||
raw = get(url)
|
||||
blob = next(e["sha"] for e in t["tree"] if e["path"] == f)
|
||||
assert hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest() == blob
|
||||
name = key + "__" + f.replace("/", "__")
|
||||
(OUT / name).write_bytes(raw)
|
||||
rows.append(
|
||||
dict(
|
||||
id=key,
|
||||
repo=repo,
|
||||
file=f,
|
||||
local_file=name,
|
||||
commit=rev,
|
||||
tree=json.loads(commit)["tree"]["sha"],
|
||||
url=url,
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
git_blob_sha1=blob,
|
||||
fetched_at=datetime.datetime.now(datetime.timezone.utc).isoformat(),
|
||||
license_file="原Git树无LICENSE,许可文本未知" if key == "cr" else key + "__LICENSE",
|
||||
applicability="源声明准确提交;发布包/目标安装绑定未知",
|
||||
transport="GitHub pinned raw text; blob verified",
|
||||
)
|
||||
)
|
||||
return rows
|
||||
|
||||
|
||||
def impact():
|
||||
import io
|
||||
import zipfile
|
||||
|
||||
repo = "ltdrdata/ComfyUI-Impact-Pack"
|
||||
url = "https://api.comfy.org/nodes/comfyui-impact-pack/versions/8.28.2"
|
||||
raw = get(url)
|
||||
registry = json.loads(raw)
|
||||
(OUT / "impact-registry.json").write_bytes(raw)
|
||||
url = registry["downloadUrl"]
|
||||
raw = get(url)
|
||||
(OUT / "impact-source.zip").write_bytes(raw)
|
||||
sha = hashlib.sha256(raw).hexdigest()
|
||||
rows = []
|
||||
with zipfile.ZipFile(io.BytesIO(raw)) as z:
|
||||
members = [
|
||||
dict(path=i.filename, size=i.file_size, sha256=hashlib.sha256(z.read(i)).hexdigest())
|
||||
for i in z.infolist()
|
||||
if not i.is_dir()
|
||||
]
|
||||
for file in [
|
||||
"__init__.py",
|
||||
"modules/impact/logics.py",
|
||||
"modules/impact/util_nodes.py",
|
||||
"modules/impact/core.py",
|
||||
"js/impact-logics.js",
|
||||
"LICENSE.txt",
|
||||
"pyproject.toml",
|
||||
]:
|
||||
if file not in z.namelist():
|
||||
continue
|
||||
data = z.read(file)
|
||||
name = "impact__" + file.replace("/", "__")
|
||||
(OUT / name).write_bytes(data)
|
||||
rows.append(
|
||||
dict(
|
||||
id="impact",
|
||||
repo=repo,
|
||||
file=file,
|
||||
local_file=name,
|
||||
url=url,
|
||||
commit="发布包SHA256:" + sha,
|
||||
package_sha256=sha,
|
||||
git_commit_binding="unknown",
|
||||
sha256=hashlib.sha256(data).hexdigest(),
|
||||
fetched_at=datetime.datetime.now(datetime.timezone.utc).isoformat(),
|
||||
license_file="impact__LICENSE.txt",
|
||||
tag="8.28.2",
|
||||
applicability="准确发布8.28.2;Git提交及目标绑定未知",
|
||||
)
|
||||
)
|
||||
(OUT / "impact-members.json").write_text(json.dumps(members, indent=2) + "\n")
|
||||
return rows
|
||||
|
||||
|
||||
def main():
|
||||
OUT.mkdir(parents=True, exist_ok=True)
|
||||
with concurrent.futures.ThreadPoolExecutor(max_workers=3) as ex:
|
||||
rows = sum(ex.map(fetch, SPECS.items()), [])
|
||||
rows += impact()
|
||||
(OUT / "sources.json").write_text(
|
||||
json.dumps(dict(sources=rows), ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"base": "21f0fd678add77a88a975793d1b0b9dbb72bb059",
|
||||
"backend": {
|
||||
"specialized": 344,
|
||||
"library": 13,
|
||||
"passed": 357,
|
||||
"failed": 0,
|
||||
"warnings": 1,
|
||||
"warning": "existing anyio BlockingPortal deprecation"
|
||||
},
|
||||
"browser": {
|
||||
"passed": 1936,
|
||||
"groups": {
|
||||
"aggregate": 2,
|
||||
"new_tts": 984,
|
||||
"old_thirty_nine": 936,
|
||||
"shared_regressions": 14
|
||||
},
|
||||
"failed": 0
|
||||
},
|
||||
"lint": {
|
||||
"scope": "12 authored Python files and one JS syntax check",
|
||||
"all_repo_clean_claimed": false
|
||||
},
|
||||
"build": {
|
||||
"offline": true,
|
||||
"wheel_and_sdist": true,
|
||||
"three_resource_bytes_equal": true
|
||||
},
|
||||
"unchanged": {
|
||||
"old_blocks": 39,
|
||||
"old_positions": 1381,
|
||||
"old_source_notes": 41,
|
||||
"source_originals": 163,
|
||||
"resources": 191,
|
||||
"profiles": 28,
|
||||
"candidate_hashes": 9,
|
||||
"diffs": 6,
|
||||
"drawer_whole_file": true
|
||||
},
|
||||
"new": {
|
||||
"documents": 1,
|
||||
"saved_positions": 70,
|
||||
"notes": 2,
|
||||
"converted": 0
|
||||
},
|
||||
"total": {
|
||||
"reference_documents": 40,
|
||||
"positions": 1451,
|
||||
"notes": 43,
|
||||
"target": 155,
|
||||
"finalized": 0,
|
||||
"executed": 0,
|
||||
"remaining_without_reference_block": 115
|
||||
},
|
||||
"no_upstream_or_target_execution": true,
|
||||
"no_new_dependencies": true,
|
||||
"services_stopped": true
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]}
|
||||
@@ -0,0 +1,902 @@
|
||||
[
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "loader",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../tts-reference/loader__nodes.py",
|
||||
"commit": "90b117502f237dd008c541372b72935d93ae894c",
|
||||
"tree": "8fa976b4a50452d4313c63287548451ed8b0b668",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/90b117502f237dd008c541372b72935d93ae894c/nodes.py",
|
||||
"sha256": "856bae79b336675bcaa027226e36375d9f948883c8971bfb4d4715dd56f95c2c",
|
||||
"git_blob_sha1": "05bee6030b166338d2a5de2dc87607bc2ccad003",
|
||||
"fetched_at": "2026-10-30T19:32:30.456569+00:00",
|
||||
"license_file": "loader__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
56,
|
||||
179
|
||||
],
|
||||
"claim": "源两loader准确90b11750:构造顺序/模型目录/禁用自动下载分支;SDK联网与实际安装未知"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../tts-reference/dialog__nodes.py",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/nodes.py",
|
||||
"sha256": "45b01b04a1237ec33a1d980b4b949967730d4535ce3362c058886a88a2867eff",
|
||||
"git_blob_sha1": "4861124c730b522857bc2b2eed08f8e1017911e2",
|
||||
"fetched_at": "2026-10-30T19:32:32.146196+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
220,
|
||||
239
|
||||
],
|
||||
"claim": "准确0c20c6b9 DefineSpeaker:strip名字并返回name/audio,不执行旁路"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../tts-reference/dialog__nodes.py",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/nodes.py",
|
||||
"sha256": "45b01b04a1237ec33a1d980b4b949967730d4535ce3362c058886a88a2867eff",
|
||||
"git_blob_sha1": "4861124c730b522857bc2b2eed08f8e1017911e2",
|
||||
"fetched_at": "2026-10-30T19:32:32.146196+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
241,
|
||||
349
|
||||
],
|
||||
"claim": "准确0c20c6b9 Batch:schema/配置解析/跳过无效角色/生成及temp WAV写入/返回;只读不调用"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../tts-reference/dialog__nodes.py",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/nodes.py",
|
||||
"sha256": "45b01b04a1237ec33a1d980b4b949967730d4535ce3362c058886a88a2867eff",
|
||||
"git_blob_sha1": "4861124c730b522857bc2b2eed08f8e1017911e2",
|
||||
"fetched_at": "2026-10-30T19:32:32.146196+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
351,
|
||||
597
|
||||
],
|
||||
"claim": "准确MultiDialog schema、角色覆盖/匹配/模型分支、间隔与拼接/静音回退;不执行"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "js/batch_speaker.js",
|
||||
"local_file": "../tts-reference/dialog__js__batch_speaker.js",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/js/batch_speaker.js",
|
||||
"sha256": "2011f9f3666a8e70c3ff3701f1abdbc3275eacfce4ed8c959a6fe1aafe1800ae",
|
||||
"git_blob_sha1": "71e5f8da1047f0e606b4a0a458f76661329d9939",
|
||||
"fetched_at": "2026-10-30T19:32:32.781149+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
40
|
||||
],
|
||||
"claim": "准确JS追加Manage Speakers按钮Edit和历史batch_outputs;不执行JS"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "js/multi_dialog.js",
|
||||
"local_file": "../tts-reference/dialog__js__multi_dialog.js",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/js/multi_dialog.js",
|
||||
"sha256": "05fbf6e01d4733870b6711f1cb9015156fcdbcd648b0349c45ed989f04c39e3a",
|
||||
"git_blob_sha1": "c60324a1faa88c5bd3b182197c73e8bdd34664fa",
|
||||
"fetched_at": "2026-10-30T19:32:33.376338+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
130
|
||||
],
|
||||
"claim": "准确JS根据连接动态speaker_N;不模拟当前前端/UE恢复"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_audio.py",
|
||||
"local_file": "../tts-reference/core__comfy_extras__nodes_audio.py",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tree": "7b8179ffb38c06974fcd9f5c127b3e943893c6f5",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/comfy_extras/nodes_audio.py",
|
||||
"sha256": "3b126494a63be63fb90707aea819d2f492dbdcb06e1dc4f964a3036aead394ed",
|
||||
"git_blob_sha1": "43df0512f290f47584fe91f718f0e6a4e4c8b9f7",
|
||||
"fetched_at": "2026-10-30T19:32:32.813149+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
154,
|
||||
256
|
||||
],
|
||||
"claim": "准确core0.15.0 SaveAudio/PreviewAudio schema与UI helper,无数据输出,不套后版audioUI"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_audio.py",
|
||||
"local_file": "../tts-reference/core__comfy_extras__nodes_audio.py",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tree": "7b8179ffb38c06974fcd9f5c127b3e943893c6f5",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/comfy_extras/nodes_audio.py",
|
||||
"sha256": "3b126494a63be63fb90707aea819d2f492dbdcb06e1dc4f964a3036aead394ed",
|
||||
"git_blob_sha1": "43df0512f290f47584fe91f718f0e6a4e4c8b9f7",
|
||||
"fetched_at": "2026-10-30T19:32:32.813149+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
268,
|
||||
333
|
||||
],
|
||||
"claim": "准确LoadAudio只有audio控件,音视频动态目录/解码/验证;源两null位置没有准确前端解释"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"local_file": "../tts-reference/core__comfy_api__latest___ui.py",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tag": "v0.15.0",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/comfy_api/latest/_ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa",
|
||||
"fetched_at": "2026-10-30T19:32:56.399023+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源准确core0.15.0;目标安装未知",
|
||||
"lines": [
|
||||
260,
|
||||
425
|
||||
],
|
||||
"claim": "准确0.15.0 helper写音频,默认FLAC;PreviewAudio临时目录并ui.audio文件描述符,不等于无写入"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_preview_any.py",
|
||||
"local_file": "../tts-reference/core__comfy_extras__nodes_preview_any.py",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tree": "7b8179ffb38c06974fcd9f5c127b3e943893c6f5",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/comfy_extras/nodes_preview_any.py",
|
||||
"sha256": "f8c526dbc4ec512f88a067524865f59eb24db636858f37d601e848885b2d0751",
|
||||
"git_blob_sha1": "b0a6f279dfc0788a527fe2e83fb54e637ecf952f",
|
||||
"fetched_at": "2026-10-30T19:32:33.121021+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
44
|
||||
],
|
||||
"claim": "准确PreviewAny仅source输入/UI text返回,无三个保存null的后端schema"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "cr",
|
||||
"repo": "Suzie1/ComfyUI_Comfyroll_CustomNodes",
|
||||
"file": "nodes/nodes_core.py",
|
||||
"local_file": "../tts-reference/cr__nodes__nodes_core.py",
|
||||
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
|
||||
"tree": "12c141b4c99138cd6beb2d5197574b9fe264bc74",
|
||||
"url": "https://raw.githubusercontent.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes/nodes_core.py",
|
||||
"sha256": "cece30b4134527ee0b9e7b083de0d3cc389124c02d5f1785284c023ba6756ece",
|
||||
"git_blob_sha1": "02af795eace2b04226fcecd2df0c85db544caa37",
|
||||
"fetched_at": "2026-10-30T19:32:31.227674+00:00",
|
||||
"license_file": "原Git树无LICENSE,许可文本未知",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
204,
|
||||
224
|
||||
],
|
||||
"claim": "准确CR Prompt Text:一个prompt字符串原样返回及help;不执行提示文字"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "py/purge_vram.py",
|
||||
"local_file": "../tts-reference/layer__py__purge_vram.py",
|
||||
"commit": "d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935",
|
||||
"tree": "71e802f4590393aed7d1c49e0b95177dd1b1e7a9",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935/py/purge_vram.py",
|
||||
"sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215",
|
||||
"git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365",
|
||||
"fetched_at": "2026-10-30T19:32:33.614700+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
38
|
||||
],
|
||||
"claim": "准确d94bef1e PurgeVRAM:无数据出口,clear_memory无条件执行,purge_models控制卸载,purge_cache值未使用"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "py/imagefunc.py",
|
||||
"local_file": "../tts-reference/layer__py__imagefunc.py",
|
||||
"commit": "d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935",
|
||||
"tree": "71e802f4590393aed7d1c49e0b95177dd1b1e7a9",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935/py/imagefunc.py",
|
||||
"sha256": "8b86d33e06617cef208bdcb7fcd91585866d4b701eeede6033417463accddcdc",
|
||||
"git_blob_sha1": "9a4b2c46234a41d070b3a7fa8275b4b92279c24b",
|
||||
"fetched_at": "2026-10-30T19:32:34.439107+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
2151,
|
||||
2158
|
||||
],
|
||||
"claim": "准确clear_memory:GC,CUDA可用时empty_cache和ipc_collect;仅解释不调用"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "impact",
|
||||
"repo": "ltdrdata/ComfyUI-Impact-Pack",
|
||||
"file": "modules/impact/util_nodes.py",
|
||||
"local_file": "../tts-reference/impact__modules__impact__util_nodes.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.28.2/node.zip",
|
||||
"commit": "发布包SHA256:f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"package_sha256": "f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"git_commit_binding": "unknown",
|
||||
"sha256": "7ca6a382fd2d5e7c563a0c9ac15918a23b84c872ef7f64248bc485c26921c710",
|
||||
"fetched_at": "2026-10-30T19:32:43.830335+00:00",
|
||||
"license_file": "impact__LICENSE.txt",
|
||||
"tag": "8.28.2",
|
||||
"applicability": "准确发布8.28.2;Git提交及目标绑定未知",
|
||||
"lines": [
|
||||
15,
|
||||
91
|
||||
],
|
||||
"claim": "准确8.28.2 GeneralSwitch:select1默认/范围、sel_mode=false标签;按inputN返回、缺输入返回None,API警告"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "impact",
|
||||
"repo": "ltdrdata/ComfyUI-Impact-Pack",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../tts-reference/impact____init__.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.28.2/node.zip",
|
||||
"commit": "发布包SHA256:f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"package_sha256": "f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"git_commit_binding": "unknown",
|
||||
"sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0",
|
||||
"fetched_at": "2026-10-30T19:32:43.830335+00:00",
|
||||
"license_file": "impact__LICENSE.txt",
|
||||
"tag": "8.28.2",
|
||||
"applicability": "准确发布8.28.2;Git提交及目标绑定未知",
|
||||
"lines": [
|
||||
185,
|
||||
207
|
||||
],
|
||||
"claim": "准确8.28.2 ImpactSwitch注册GeneralSwitch;Git提交/目标安装绑定未知"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "loader",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../tts-reference/loader____init__.py",
|
||||
"commit": "90b117502f237dd008c541372b72935d93ae894c",
|
||||
"tree": "8fa976b4a50452d4313c63287548451ed8b0b668",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/90b117502f237dd008c541372b72935d93ae894c/__init__.py",
|
||||
"sha256": "7d1c52e999d89ba5cc77619c179d5917cedb8ba6f6445f5b27f765d2107a6f65",
|
||||
"git_blob_sha1": "3d998eae307a57377b852fc3fe321f91c8cd61d0",
|
||||
"fetched_at": "2026-10-30T19:32:30.118057+00:00",
|
||||
"license_file": "loader__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
3
|
||||
],
|
||||
"claim": "准确各自提交注册链;loader旧版无WEB_DIRECTORY,dialog新版有js;不把两版合成同一安装"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "loader",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../tts-reference/loader__nodes.py",
|
||||
"commit": "90b117502f237dd008c541372b72935d93ae894c",
|
||||
"tree": "8fa976b4a50452d4313c63287548451ed8b0b668",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/90b117502f237dd008c541372b72935d93ae894c/nodes.py",
|
||||
"sha256": "856bae79b336675bcaa027226e36375d9f948883c8971bfb4d4715dd56f95c2c",
|
||||
"git_blob_sha1": "05bee6030b166338d2a5de2dc87607bc2ccad003",
|
||||
"fetched_at": "2026-10-30T19:32:30.456569+00:00",
|
||||
"license_file": "loader__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
297,
|
||||
309
|
||||
],
|
||||
"claim": "各自版本节点注册字典;不执行导入"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../tts-reference/dialog____init__.py",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/__init__.py",
|
||||
"sha256": "a246ff77bc33dc055d04310ed11d69d72917462c57637eab055bae5d51b9747b",
|
||||
"git_blob_sha1": "6ad7029884eb7ff2c491ebd8d0ad10834f79bfe6",
|
||||
"fetched_at": "2026-10-30T19:32:31.655206+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
6
|
||||
],
|
||||
"claim": "准确各自提交注册链;loader旧版无WEB_DIRECTORY,dialog新版有js;不把两版合成同一安装"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../tts-reference/dialog__nodes.py",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/nodes.py",
|
||||
"sha256": "45b01b04a1237ec33a1d980b4b949967730d4535ce3362c058886a88a2867eff",
|
||||
"git_blob_sha1": "4861124c730b522857bc2b2eed08f8e1017911e2",
|
||||
"fetched_at": "2026-10-30T19:32:32.146196+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
683,
|
||||
695
|
||||
],
|
||||
"claim": "各自版本节点注册字典;不执行导入"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "cr",
|
||||
"repo": "Suzie1/ComfyUI_Comfyroll_CustomNodes",
|
||||
"file": "node_mappings.py",
|
||||
"local_file": "../tts-reference/cr__node_mappings.py",
|
||||
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
|
||||
"tree": "12c141b4c99138cd6beb2d5197574b9fe264bc74",
|
||||
"url": "https://raw.githubusercontent.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/node_mappings.py",
|
||||
"sha256": "9ae8fbedc4941f5bd1f58dd46898bb3dff20ef76ed65b27eb35d70df98b6e633",
|
||||
"git_blob_sha1": "a4a1bc4ff001961a64e24bcfa59de528fbc8a6ea",
|
||||
"fetched_at": "2026-10-30T19:32:30.790448+00:00",
|
||||
"license_file": "原Git树无LICENSE,许可文本未知",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
532
|
||||
],
|
||||
"claim": "CR准确注册链;原树缺LICENSE,许可文本未知"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../tts-reference/layer____init__.py",
|
||||
"commit": "d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935",
|
||||
"tree": "71e802f4590393aed7d1c49e0b95177dd1b1e7a9",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935/__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a",
|
||||
"fetched_at": "2026-10-30T19:32:33.263863+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
48
|
||||
],
|
||||
"claim": "LayerStyle准确动态注册链,原件只读"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_audio.py",
|
||||
"local_file": "../tts-reference/core__comfy_extras__nodes_audio.py",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tree": "7b8179ffb38c06974fcd9f5c127b3e943893c6f5",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/comfy_extras/nodes_audio.py",
|
||||
"sha256": "3b126494a63be63fb90707aea819d2f492dbdcb06e1dc4f964a3036aead394ed",
|
||||
"git_blob_sha1": "43df0512f290f47584fe91f718f0e6a4e4c8b9f7",
|
||||
"fetched_at": "2026-10-30T19:32:32.813149+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
766,
|
||||
792
|
||||
],
|
||||
"claim": "core准确audio扩展注册列表"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "loader",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../tts-reference/loader__LICENSE",
|
||||
"commit": "90b117502f237dd008c541372b72935d93ae894c",
|
||||
"tree": "8fa976b4a50452d4313c63287548451ed8b0b668",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/90b117502f237dd008c541372b72935d93ae894c/LICENSE",
|
||||
"sha256": "c4a2cd14eb3abe621891b235bbe2cfd65f1f71afcfcd5c9b691bb016387dfe88",
|
||||
"git_blob_sha1": "377b1cfa01684d2d02891c9f149d32b44bded68f",
|
||||
"fetched_at": "2026-10-30T19:32:30.760403+00:00",
|
||||
"license_file": "loader__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
176
|
||||
],
|
||||
"claim": "各自准确上游许可全文;不授权源音频声纹或保证模型许可"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../tts-reference/dialog__LICENSE",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/LICENSE",
|
||||
"sha256": "c4a2cd14eb3abe621891b235bbe2cfd65f1f71afcfcd5c9b691bb016387dfe88",
|
||||
"git_blob_sha1": "377b1cfa01684d2d02891c9f149d32b44bded68f",
|
||||
"fetched_at": "2026-10-30T19:32:32.456771+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
176
|
||||
],
|
||||
"claim": "各自准确上游许可全文;不授权源音频声纹或保证模型许可"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../tts-reference/layer__LICENSE",
|
||||
"commit": "d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935",
|
||||
"tree": "71e802f4590393aed7d1c49e0b95177dd1b1e7a9",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935/LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559",
|
||||
"fetched_at": "2026-10-30T19:32:34.683664+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
21
|
||||
],
|
||||
"claim": "各自准确上游许可全文;不授权源音频声纹或保证模型许可"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../tts-reference/core__LICENSE",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tree": "7b8179ffb38c06974fcd9f5c127b3e943893c6f5",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"fetched_at": "2026-10-30T19:32:33.531738+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "各自准确上游许可全文;不授权源音频声纹或保证模型许可"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "impact",
|
||||
"repo": "ltdrdata/ComfyUI-Impact-Pack",
|
||||
"file": "LICENSE.txt",
|
||||
"local_file": "../tts-reference/impact__LICENSE.txt",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.28.2/node.zip",
|
||||
"commit": "发布包SHA256:f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"package_sha256": "f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"git_commit_binding": "unknown",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"fetched_at": "2026-10-30T19:32:43.830635+00:00",
|
||||
"license_file": "impact__LICENSE.txt",
|
||||
"tag": "8.28.2",
|
||||
"applicability": "准确发布8.28.2;Git提交及目标绑定未知",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "8.28.2发布包许可全文;成员SHA与Git绑定分开"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "showtext",
|
||||
"repo": "pythongosssss/ComfyUI-Custom-Scripts",
|
||||
"file": "py/show_text.py",
|
||||
"local_file": "../llama-reference/showtext__py__show_text.py",
|
||||
"commit": "609f3afaa74b2f88ef9ce8d939626065e3247469",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/609f3afaa74b2f88ef9ce8d939626065e3247469/py/show_text.py",
|
||||
"sha256": "fb4182f541caed98621fd30cf4ad87d7a7deb2680cfafbcfbeb769355570cc8e",
|
||||
"git_blob_sha1": "5a013a5bc7a82e29f38f35ff85dab827ba42a254",
|
||||
"fetched_at": "2026-10-30T19:19:45.058549+00:00",
|
||||
"license_file": "showtext__LICENSE",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
1,
|
||||
49
|
||||
],
|
||||
"claim": "本图Show31明确609f3afa准确身份:list输入、UI/result与历史widgets写回;不是前图无身份假设"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "showtext",
|
||||
"repo": "pythongosssss/ComfyUI-Custom-Scripts",
|
||||
"file": "web/js/showText.js",
|
||||
"local_file": "../llama-reference/showtext__web__js__showText.js",
|
||||
"commit": "609f3afaa74b2f88ef9ce8d939626065e3247469",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/609f3afaa74b2f88ef9ce8d939626065e3247469/web/js/showText.js",
|
||||
"sha256": "faf44e1452d1f5965bcae9b69a5f6669597dbbe05ebedd85dad7256a14ef6975",
|
||||
"git_blob_sha1": "464fd404632397e26c2af1d2297970da6c726920",
|
||||
"fetched_at": "2026-10-30T19:19:45.769667+00:00",
|
||||
"license_file": "showtext__LICENSE",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
10,
|
||||
78
|
||||
],
|
||||
"claim": "本图Show31准确609f3afa历史展示/恢复;全图前端/UE组合未知"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "showtext",
|
||||
"repo": "pythongosssss/ComfyUI-Custom-Scripts",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../llama-reference/showtext____init__.py",
|
||||
"commit": "609f3afaa74b2f88ef9ce8d939626065e3247469",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/609f3afaa74b2f88ef9ce8d939626065e3247469/__init__.py",
|
||||
"sha256": "ced0aa0ea33f81d7d97b59b66ff0abc77b068bd17183f42480875e71708a0684",
|
||||
"git_blob_sha1": "ae43dd2090ce782074bf72f2b7f49ad28dff1a5c",
|
||||
"fetched_at": "2026-10-30T19:19:46.464543+00:00",
|
||||
"license_file": "showtext__LICENSE",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
1,
|
||||
25
|
||||
],
|
||||
"claim": "准确ShowText动态注册链"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "showtext",
|
||||
"repo": "pythongosssss/ComfyUI-Custom-Scripts",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../llama-reference/showtext__LICENSE",
|
||||
"commit": "609f3afaa74b2f88ef9ce8d939626065e3247469",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/pythongosssss/ComfyUI-Custom-Scripts/609f3afaa74b2f88ef9ce8d939626065e3247469/LICENSE",
|
||||
"sha256": "3aa50330818b6836308294d4999a185872f5eef857e1a883b04c63859efd1a2c",
|
||||
"git_blob_sha1": "acf31806a2507192169eca2137ea9ceb7685f51c",
|
||||
"fetched_at": "2026-10-30T19:19:47.163015+00:00",
|
||||
"license_file": "showtext__LICENSE",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
1,
|
||||
21
|
||||
],
|
||||
"claim": "Show31准确提交许可全文"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "llama",
|
||||
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../llama-reference/llama__nodes.py",
|
||||
"commit": "f2209cccb726647640271bd1cea071a570fc62f5",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/f2209cccb726647640271bd1cea071a570fc62f5/nodes.py",
|
||||
"sha256": "ba9d34a29632822e4bf68f0c816bfece47fdf9642257e384fd73a8f531848cd8",
|
||||
"git_blob_sha1": "f3d4f85e2a450efe161f24684ebc2bdf737c10fc",
|
||||
"fetched_at": "2026-10-30T19:19:42.269528+00:00",
|
||||
"license_file": "未提供,pyproject引用但原树缺失",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
497,
|
||||
544
|
||||
],
|
||||
"claim": "仅显式参考九控件构造/可选口/返回协议;不能按十位置对九口硬对位;仅本图45/46显式参考,源无版本"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "llama",
|
||||
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../llama-reference/llama__nodes.py",
|
||||
"commit": "f2209cccb726647640271bd1cea071a570fc62f5",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/f2209cccb726647640271bd1cea071a570fc62f5/nodes.py",
|
||||
"sha256": "ba9d34a29632822e4bf68f0c816bfece47fdf9642257e384fd73a8f531848cd8",
|
||||
"git_blob_sha1": "f3d4f85e2a450efe161f24684ebc2bdf737c10fc",
|
||||
"fetched_at": "2026-10-30T19:19:42.269528+00:00",
|
||||
"license_file": "未提供,pyproject引用但原树缺失",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
575,
|
||||
635
|
||||
],
|
||||
"claim": "仅显式参考:状态UID、系统提示变化清理、custom覆盖或星号模板分支;未构造prompt或读写状态;仅本图45/46显式参考,源无版本"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "llama",
|
||||
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../llama-reference/llama__nodes.py",
|
||||
"commit": "f2209cccb726647640271bd1cea071a570fc62f5",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/f2209cccb726647640271bd1cea071a570fc62f5/nodes.py",
|
||||
"sha256": "ba9d34a29632822e4bf68f0c816bfece47fdf9642257e384fd73a8f531848cd8",
|
||||
"git_blob_sha1": "f3d4f85e2a450efe161f24684ebc2bdf737c10fc",
|
||||
"fetched_at": "2026-10-30T19:19:42.269528+00:00",
|
||||
"license_file": "未提供,pyproject引用但原树缺失",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
638,
|
||||
718
|
||||
],
|
||||
"claim": "仅显式参考三模式实现:images合并全部图片,多图才缩放;video才按max_frames采样;仅本图45/46显式参考,源无版本"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "llama",
|
||||
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../llama-reference/llama__nodes.py",
|
||||
"commit": "f2209cccb726647640271bd1cea071a570fc62f5",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/f2209cccb726647640271bd1cea071a570fc62f5/nodes.py",
|
||||
"sha256": "ba9d34a29632822e4bf68f0c816bfece47fdf9642257e384fd73a8f531848cd8",
|
||||
"git_blob_sha1": "f3d4f85e2a450efe161f24684ebc2bdf737c10fc",
|
||||
"fetched_at": "2026-10-30T19:19:42.269528+00:00",
|
||||
"license_file": "未提供,pyproject引用但原树缺失",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
387,
|
||||
398
|
||||
],
|
||||
"claim": "仅显式参考缩放函数:最长边限制且不放大;单张images分支不调用;仅本图45/46显式参考,源无版本"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "llama",
|
||||
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../llama-reference/llama__nodes.py",
|
||||
"commit": "f2209cccb726647640271bd1cea071a570fc62f5",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/f2209cccb726647640271bd1cea071a570fc62f5/nodes.py",
|
||||
"sha256": "ba9d34a29632822e4bf68f0c816bfece47fdf9642257e384fd73a8f531848cd8",
|
||||
"git_blob_sha1": "f3d4f85e2a450efe161f24684ebc2bdf737c10fc",
|
||||
"fetched_at": "2026-10-30T19:19:42.269528+00:00",
|
||||
"license_file": "未提供,pyproject引用但原树缺失",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
739,
|
||||
760
|
||||
],
|
||||
"claim": "仅显式参考保存/清理会话、force_offload与Qwen混合缓存清理分支,false不承诺无副作用;仅本图45/46显式参考,源无版本"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "llama",
|
||||
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../llama-reference/llama__nodes.py",
|
||||
"commit": "f2209cccb726647640271bd1cea071a570fc62f5",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/f2209cccb726647640271bd1cea071a570fc62f5/nodes.py",
|
||||
"sha256": "ba9d34a29632822e4bf68f0c816bfece47fdf9642257e384fd73a8f531848cd8",
|
||||
"git_blob_sha1": "f3d4f85e2a450efe161f24684ebc2bdf737c10fc",
|
||||
"fetched_at": "2026-10-30T19:19:42.269528+00:00",
|
||||
"license_file": "未提供,pyproject引用但原树缺失",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
348,
|
||||
364
|
||||
],
|
||||
"claim": "仅显式参考模型目录及预设列表;源Detailed存在,schema默认为Normal - Describe;不运行模板;仅本图45/46显式参考,源无版本"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "frontend",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"file": "src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"local_file": "../llama-reference/frontend__useIntWidget.ts",
|
||||
"commit": "1a7a6b82514874545dc5e8203d0bd2188c2d9b18",
|
||||
"tag": "v1.52.7",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/1a7a6b82514874545dc5e8203d0bd2188c2d9b18/src/renderer/extensions/vueNodes/widgets/composables/useIntWidget.ts",
|
||||
"sha256": "8720d5a8194c9987eddbb42d0e925bcbb20e96e94f52c5f21750ba90b2113e02",
|
||||
"git_blob_sha1": "f307aa0e14b5440f505e3f488cc6c415f45f7879",
|
||||
"fetched_at": "2026-10-30T19:20:15.769858+00:00",
|
||||
"license_file": "../moge3-reference/frontend__LICENSE",
|
||||
"transport": "raw pinned full commit, git tree blob verified",
|
||||
"applicability": "仅显式1.52.7参考假设;本图未声明前端版本",
|
||||
"lines": [
|
||||
34,
|
||||
93
|
||||
],
|
||||
"claim": "仅显式frontend1.52.7假设:seed默认追加辅助值控件,支持第7位置randomize解释,源无前端版本不证明恢复;仅显式前端参考,本图无frontendVersion"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "frontend",
|
||||
"file": "src/scripts/widgets.ts",
|
||||
"local_file": "../moge3-reference/frontend__src__scripts__widgets.ts",
|
||||
"commit": "1a7a6b82514874545dc5e8203d0bd2188c2d9b18",
|
||||
"tag": "v1.52.7",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/1a7a6b82514874545dc5e8203d0bd2188c2d9b18/src/scripts/widgets.ts",
|
||||
"sha256": "07e91bf2d16056938f7ce50a1ac90c8f5be9faa27d6bec3d2060e529da139257",
|
||||
"git_blob_sha1": "0100f21b03e3aa0cb551ca48f4886ca1d66c3bc2",
|
||||
"fetched_at": "2026-10-30T19:05:04.506870+00:00",
|
||||
"license_file": "frontend__LICENSE",
|
||||
"transport": "git show exact tag; no checkout",
|
||||
"lines": [
|
||||
78,
|
||||
155
|
||||
],
|
||||
"claim": "仅显式frontend1.52.7假设:randomize辅助枚举且serialize=false;不生成种子、不借其规则断言源恢复时序;仅显式前端参考,本图无frontendVersion"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "frontend",
|
||||
"file": "src/lib/litegraph/src/LGraphNode.ts",
|
||||
"local_file": "../moge3-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
|
||||
"commit": "1a7a6b82514874545dc5e8203d0bd2188c2d9b18",
|
||||
"tag": "v1.52.7",
|
||||
"repo": "Comfy-Org/ComfyUI_frontend",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/1a7a6b82514874545dc5e8203d0bd2188c2d9b18/src/lib/litegraph/src/LGraphNode.ts",
|
||||
"sha256": "d6263d56f28a5e6c5a95a3a263fe0d6ffe4083a981c01a14ec4ebfca43487e50",
|
||||
"git_blob_sha1": "38723cce556962cb80456239df383d49469134d9",
|
||||
"fetched_at": "2026-10-30T19:05:04.497705+00:00",
|
||||
"license_file": "frontend__LICENSE",
|
||||
"transport": "git show exact tag; no checkout",
|
||||
"lines": [
|
||||
972,
|
||||
1043
|
||||
],
|
||||
"claim": "仅显式frontend1.52.7恢复参考;本图无frontendVersion/具名值,UE7.7与源恢复未知;仅显式前端参考,本图无frontendVersion"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "llama",
|
||||
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../llama-reference/llama__nodes.py",
|
||||
"commit": "f2209cccb726647640271bd1cea071a570fc62f5",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/f2209cccb726647640271bd1cea071a570fc62f5/nodes.py",
|
||||
"sha256": "ba9d34a29632822e4bf68f0c816bfece47fdf9642257e384fd73a8f531848cd8",
|
||||
"git_blob_sha1": "f3d4f85e2a450efe161f24684ebc2bdf737c10fc",
|
||||
"fetched_at": "2026-10-30T19:19:42.269528+00:00",
|
||||
"license_file": "未提供,pyproject引用但原树缺失",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
449,
|
||||
495
|
||||
],
|
||||
"claim": "仅显式参考加载器构造顺序:八字段,源七位置/七口,缺load_mtp;不证明源版本或安装身份;仅本图45/46显式参考,源无版本"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "llama",
|
||||
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../llama-reference/llama__nodes.py",
|
||||
"commit": "f2209cccb726647640271bd1cea071a570fc62f5",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/f2209cccb726647640271bd1cea071a570fc62f5/nodes.py",
|
||||
"sha256": "ba9d34a29632822e4bf68f0c816bfece47fdf9642257e384fd73a8f531848cd8",
|
||||
"git_blob_sha1": "f3d4f85e2a450efe161f24684ebc2bdf737c10fc",
|
||||
"fetched_at": "2026-10-30T19:19:42.269528+00:00",
|
||||
"license_file": "未提供,pyproject引用但原树缺失",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
259,
|
||||
341
|
||||
],
|
||||
"claim": "仅显式参考LLM目录、VRAM估算、handler条件和SDK参数;-1只是不设估算限制,不保证实际显存;仅本图45/46显式参考,源无版本"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"id": "llama",
|
||||
"repo": "lihaoyun6/ComfyUI-llama-cpp_vlm",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../llama-reference/llama__nodes.py",
|
||||
"commit": "f2209cccb726647640271bd1cea071a570fc62f5",
|
||||
"tag": null,
|
||||
"url": "https://raw.githubusercontent.com/lihaoyun6/ComfyUI-llama-cpp_vlm/f2209cccb726647640271bd1cea071a570fc62f5/nodes.py",
|
||||
"sha256": "ba9d34a29632822e4bf68f0c816bfece47fdf9642257e384fd73a8f531848cd8",
|
||||
"git_blob_sha1": "f3d4f85e2a450efe161f24684ebc2bdf737c10fc",
|
||||
"fetched_at": "2026-10-30T19:19:42.269528+00:00",
|
||||
"license_file": "未提供,pyproject引用但原树缺失",
|
||||
"transport": "git show full commit; no checkout; text only",
|
||||
"applicability": "显式参考假设,源未声明身份版本,发布包与目标绑定未知",
|
||||
"lines": [
|
||||
28,
|
||||
72
|
||||
],
|
||||
"claim": "仅显式参考handler列表由SDK导入成功与否决定,Qwen3.5不是安装或视觉兼容证明;仅本图45/46显式参考,源无版本"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,771 @@
|
||||
{
|
||||
"base": "21f0fd678add77a88a975793d1b0b9dbb72bb059",
|
||||
"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": "21f0fd678add77a88a975793d1b0b9dbb72bb059",
|
||||
"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": 70,
|
||||
"new_notes": 2,
|
||||
"old_saved": 1381,
|
||||
"old_notes": 41,
|
||||
"overviews": 40,
|
||||
"all_disabled": true,
|
||||
"doc_done": 0,
|
||||
"executed": 0
|
||||
}
|
||||
@@ -0,0 +1,663 @@
|
||||
{
|
||||
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
|
||||
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690",
|
||||
"fields": [
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 4,
|
||||
"pointer": "/nodes/0/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 4,
|
||||
"pointer": "/nodes/0/widgets_values/1",
|
||||
"json_type": "str",
|
||||
"value": "bf16"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 4,
|
||||
"pointer": "/nodes/0/widgets_values/2",
|
||||
"json_type": "str",
|
||||
"value": "cuda"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 4,
|
||||
"pointer": "/nodes/0/widgets_values/3",
|
||||
"json_type": "str",
|
||||
"value": "sdpa"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 4,
|
||||
"pointer": "/nodes/0/widgets_values/4",
|
||||
"json_type": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 4,
|
||||
"pointer": "/nodes/0/widgets_values/5",
|
||||
"json_type": "str",
|
||||
"value": "ModelScope"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 12,
|
||||
"pointer": "/nodes/1/widgets_values/0",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 12,
|
||||
"pointer": "/nodes/1/widgets_values/1",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 12,
|
||||
"pointer": "/nodes/1/widgets_values/2",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 15,
|
||||
"pointer": "/nodes/2/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "旁白:很久很久以前。\n国王:吾儿,看到你这样,真的很高兴。\n冰沙王子:我的父王,谢谢您。\n针眼画师:记住了,我的王。"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 19,
|
||||
"pointer": "/nodes/3/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "国王.mp4"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 19,
|
||||
"pointer": "/nodes/3/widgets_values/1",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 19,
|
||||
"pointer": "/nodes/3/widgets_values/2",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 21,
|
||||
"pointer": "/nodes/4/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "云希男.mp3"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 21,
|
||||
"pointer": "/nodes/4/widgets_values/1",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 21,
|
||||
"pointer": "/nodes/4/widgets_values/2",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 23,
|
||||
"pointer": "/nodes/5/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "懒洋洋.flac"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 23,
|
||||
"pointer": "/nodes/5/widgets_values/1",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 23,
|
||||
"pointer": "/nodes/5/widgets_values/2",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 25,
|
||||
"pointer": "/nodes/6/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "针眼画师2.mp4"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 25,
|
||||
"pointer": "/nodes/6/widgets_values/1",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 25,
|
||||
"pointer": "/nodes/6/widgets_values/2",
|
||||
"json_type": "NoneType",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 9,
|
||||
"pointer": "/nodes/7/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "[\n {\n \"name\": \"NewSpeaker\",\n \"instruct\": \"A clear voice\",\n \"text\": \"Hello world\"\n }\n]"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 9,
|
||||
"pointer": "/nodes/7/widgets_values/1",
|
||||
"json_type": "str",
|
||||
"value": "Edit"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 20,
|
||||
"pointer": "/nodes/8/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "旁白"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 22,
|
||||
"pointer": "/nodes/9/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "国王"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 24,
|
||||
"pointer": "/nodes/10/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "冰沙王子"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 26,
|
||||
"pointer": "/nodes/11/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "针眼画师"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 3,
|
||||
"pointer": "/nodes/12/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "Qwen/Qwen3-TTS-12Hz-1.7B-Base"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 3,
|
||||
"pointer": "/nodes/12/widgets_values/1",
|
||||
"json_type": "str",
|
||||
"value": "bf16"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 3,
|
||||
"pointer": "/nodes/12/widgets_values/2",
|
||||
"json_type": "str",
|
||||
"value": "cuda"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 3,
|
||||
"pointer": "/nodes/12/widgets_values/3",
|
||||
"json_type": "str",
|
||||
"value": "sdpa"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 3,
|
||||
"pointer": "/nodes/12/widgets_values/4",
|
||||
"json_type": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 3,
|
||||
"pointer": "/nodes/12/widgets_values/5",
|
||||
"json_type": "str",
|
||||
"value": "ModelScope"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 33,
|
||||
"pointer": "/nodes/13/widgets_values/0",
|
||||
"json_type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 33,
|
||||
"pointer": "/nodes/13/widgets_values/1",
|
||||
"json_type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 39,
|
||||
"pointer": "/nodes/14/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "自定义角色语音设计"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 37,
|
||||
"pointer": "/nodes/15/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "自动角色语音设计"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 14,
|
||||
"pointer": "/nodes/16/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "[\n {\n \"name\": \"旁白\",\n \"instruct\": \"一个30岁左右的男性声音,音色沉稳客观,带有明显的讲述感,语速中等偏慢,字正腔圆。\",\n \"text\": \"很久很久以前。\"\n },\n {\n \"name\": \"国王\",\n \"instruct\": \"一个60岁左右的男性声音,音色慈祥而威严,语气沉稳,语速缓慢,带有长者风范。\",\n \"text\": \"吾儿,看到你这样。\"\n },\n {\n \"name\": \"冰沙王子\",\n \"instruct\": \"一个25岁左右的青年男性声音,音色低沉且略带阴郁,语调平静中藏着一丝冷酷,语速中等。\",\n \"text\": \"我的父王。\"\n },\n {\n \"name\": \"针眼画师\",\n \"instruct\": \"一个15岁左右的少年男性声音,音色清瘦,语调谦卑恭顺,略带一丝紧张,语速偏快。\",\n \"text\": \"记住了,我的王。\"\n }\n]"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 32,
|
||||
"pointer": "/nodes/17/widgets_values/0",
|
||||
"json_type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 32,
|
||||
"pointer": "/nodes/17/widgets_values/1",
|
||||
"json_type": "bool",
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 38,
|
||||
"pointer": "/nodes/20/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "自动角色语音设计"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 40,
|
||||
"pointer": "/nodes/21/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "自定义角色语音设计"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 44,
|
||||
"pointer": "/nodes/23/widgets_values/0",
|
||||
"json_type": "int",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 44,
|
||||
"pointer": "/nodes/23/widgets_values/1",
|
||||
"json_type": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 31,
|
||||
"pointer": "/nodes/24/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "[\n{\"name\":\"旁白\",\"instruct\":\"一个 50 岁左右的男性声音,音色醇厚温暖,带有史诗般的叙事感,语速舒缓从容。\",\"text\":\"国王抚着王子的头,满眼欣慰。\"},\n{\"name\":\"国王\",\"instruct\":\"一位五十岁的威严长者,声音洪亮而慈祥,带着对往昔的眷恋,语速中等偏慢。\",\"text\":\"看到孩子这样,真是高兴极了。\"},\n{\"name\":\"大臣\",\"instruct\":\"一个四十岁的中年男性,声线圆润干练,充满建设性,语气恭敬中带着急切。\",\"text\":\"不如画幅巨作,将庆典永久留存。\"},\n{\"name\":\"旁白\",\"instruct\":\"一个 50 岁左右的男性声音,音色醇厚温暖,带有史诗般的叙事感,语速舒缓从容。\",\"text\":\"国王轻轻摇头,眼中闪过一丝遗憾。\"},\n{\"name\":\"国王\",\"instruct\":\"一位五十岁的威严长者,声音洪亮而慈祥,带着对往昔的眷恋,语速中等偏慢。\",\"text\":\"老画师眼昏手抖,哪绘得出幸福。\"},\n{\"name\":\"旁白\",\"instruct\":\"一个 50 岁左右的男性声音,音色醇厚温暖,带有史诗般的叙事感,语速舒缓从容。\",\"text\":\"正待开口,王子却深深行了个礼。\"},\n{\"name\":\"冰沙王子\",\"instruct\":\"一个二十岁的青年男性,声音清亮灵动,充满惊喜与活力,语速轻快上扬。\",\"text\":\"父王,孩儿刚为您寻到新画师。\"}\n]"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 45,
|
||||
"pointer": "/nodes/25/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "Normal - Describe"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 45,
|
||||
"pointer": "/nodes/25/widgets_values/1",
|
||||
"json_type": "str",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 45,
|
||||
"pointer": "/nodes/25/widgets_values/2",
|
||||
"json_type": "str",
|
||||
"value": "ole: 资深有声剧导演 & TTS脚本精修师\nBackground:\n\n用户将提供小说原文,或者人物信息介绍。你需要将其改编为适用于“多人对话”、“多人有声小说”的脚本,并严格按照指定的 JSON 格式输出,内容不要重复。\n\nCore Philosophy (核心理念):\n\n拒绝长难句:把原文当作“电影分镜”,每一个动作、心理活动、微小转场都要物理换行。\n\n呼吸感:单句旁白严禁超过25字(最佳10-15字)。\n\n纯净原则:内容必须是纯朗读干音,严禁出现 ()、【】 等括注。\n\nQwen-TTS适配:音色描述(instruct)必须使用自然语言长句,拒绝简单标签。\n\nWork Goals (字段定义):\n\nrole_list (角色配置)\n\n分析文中出现的每一个角色(含旁白),为每个角色生成一个对象:\n\nname: 角色名称(如:旁白、李明)。\n\ninstruct: [重点] 这里填入 Qwen-TTS 提示词。\n\n逻辑:[性别] + [具体年龄] + [声线质感] + [说话风格/情感] + [语速]。\n\n示例:\"一个30岁的男性声音,音色沉稳磁性,讲述感强,语速中等。\"\n\ntext: 从生成的脚本中提取该角色的一句代表性台词(5-10字左右)。\n\njuben (剧本正文)\n\n将改编后的脚本整合为一个字符串。\n\n每一句必须以 角色名:内容 开头。\n\n多行内容之间用换行符(\\n)连接。\n\n旁白切分:连贯动作必须拆分,不要在一个“旁白:”后写两句话,必须换行重写“旁白:”。\n\nOutput Format (输出格式):\n\n请严格按照以下 JSON 格式输出,不要输出任何 Markdown 标记或额外解释:\n\ncode\nJSON\ndownload\ncontent_copy\nexpand_less\n{\n[\n{\"name\":\"角色A\",\"instruct\":\"[Qwen-TTS音色提示词]\",\"text\":\"[说话样本]\"},\n{\"name\":\"角色B\",\"instruct\":\"[Qwen-TTS音色提示词]\",\"text\":\"[说话样本]\"}\n]\n}\nExample (演示案例):\n[\n {\n \"name\": \"旁白\",\n \"instruct\": \"一个30岁左右的男性声音,音色沉稳客观,带有明显的讲述感,语速中等偏慢,字正腔圆。\",\n \"text\": \"很久很久以前。\"\n },\n {\n \"name\": \"国王\",\n \"instruct\": \"一个60岁左右的男性声音,音色慈祥而威严,语气沉稳,语速缓慢,带有长者风范。\",\n \"text\": \"吾儿,看到你这样。\"\n }\n]\nUser Input:\n很久很久以前,有一个王国叫无故事王国,它一直没有故事。\n\nModel Output:\n[\n {\n \"name\": \"旁白\",\n \"instruct\": \"一个30岁左右的男性声音,音色沉稳客观,带有明显的讲述感,语速中等偏慢,字正腔圆。\",\n \"text\": \"很久很久以前。\"\n },\n {\n \"name\": \"国王\",\n \"instruct\": \"一个60岁左右的男性声音,音色慈祥而威严,语气沉稳,语速缓慢,带有长者风范。\",\n \"text\": \"吾儿,看到你这样。\"\n },\n {\n \"name\": \"冰沙王子\",\n \"instruct\": \"一个25岁左右的青年男性声音,音色低沉且略带阴郁,语调平静中藏着一丝冷酷,语速中等。\",\n \"text\": \"我的父王。\"\n },\n {\n \"name\": \"针眼画师\",\n \"instruct\": \"一个15岁左右的少年男性声音,音色清瘦,语调谦卑恭顺,略带一丝紧张,语速偏快。\",\n \"text\": \"记住了,我的王。\"\n }\n]"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 45,
|
||||
"pointer": "/nodes/25/widgets_values/3",
|
||||
"json_type": "str",
|
||||
"value": "one by one"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 45,
|
||||
"pointer": "/nodes/25/widgets_values/4",
|
||||
"json_type": "int",
|
||||
"value": 24
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 45,
|
||||
"pointer": "/nodes/25/widgets_values/5",
|
||||
"json_type": "int",
|
||||
"value": 256
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 45,
|
||||
"pointer": "/nodes/25/widgets_values/6",
|
||||
"json_type": "int",
|
||||
"value": 281648296193605
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 45,
|
||||
"pointer": "/nodes/25/widgets_values/7",
|
||||
"json_type": "str",
|
||||
"value": "randomize"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 45,
|
||||
"pointer": "/nodes/25/widgets_values/8",
|
||||
"json_type": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 45,
|
||||
"pointer": "/nodes/25/widgets_values/9",
|
||||
"json_type": "bool",
|
||||
"value": false
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 35,
|
||||
"pointer": "/nodes/26/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "Role: 资深有声剧导演 & TTS脚本精修师\nBackground:\n\n用户将提供小说原文。你需要将其改编为适用于“多人有声剧”的脚本,并严格按照指定的 JSON 格式输出。\n\nCore Philosophy (核心理念):\n\n拒绝长难句:把原文当作“电影分镜”,每一个动作、心理活动、微小转场都要物理换行。\n\n呼吸感:单句旁白严禁超过25字(最佳10-15字)。\n\n纯净原则:内容必须是纯朗读干音,严禁出现 ()、【】 等括注。\n\nQwen-TTS适配:音色描述(instruct)必须使用自然语言长句,拒绝简单标签。\n\nWork Goals (字段定义):\n\nrole_list (角色配置)\n\n分析文中出现的每一个角色(含旁白),为每个角色生成一个对象:\n\nname: 角色名称(如:旁白、李明)。\n\ninstruct: [重点] 这里填入 Qwen-TTS 提示词。\n\n逻辑:[性别] + [具体年龄] + [声线质感] + [说话风格/情感] + [语速]。\n\n示例:\"一个30岁的男性声音,音色沉稳磁性,讲述感强,语速中等。\"\n\ntext: 从生成的脚本中提取该角色的一句代表性台词(5-10字左右)。\n\n\nOutput Format (输出格式):\n\n请严格按照以下 JSON 格式输出,不要输出任何 Markdown 标记或额外解释:\n\ncode\nJSON\ndownload\ncontent_copy\nexpand_less\n[\n{\"name\":\"角色A\",\"instruct\":\"[Qwen-TTS音色提示词]\",\"text\":\"[说话样本]\"},\n{\"name\":\"角色B\",\"instruct\":\"[Qwen-TTS音色提示词]\",\"text\":\"[说话样本]\"}\n]\nExample (演示案例):\n\nUser Input:\n李明叹了口气,看着大雨,心想回不去了。他拨通电话但没人接。\n\nModel Output:\n[\n{\"name\":\"旁白\",\"instruct\":\"一个30岁左右的男性声音,音色沉稳客观,带有明显的讲述感,语速中等偏慢,字正腔圆。\",\"text\":\"李明深深叹了口气。\"},\n{\"name\":\"李明\",\"instruct\":\"一个25岁的青年男性,声音略带沙哑和疲惫感,语气焦虑急躁,说话节奏较快。\",\"text\":\"这下完蛋了,回不去了。\"}\n]\n\nInitialization:\n"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 29,
|
||||
"pointer": "/nodes/27/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "“吾儿,看到你这样我真是高兴。”国王抚着王子的头说,“真想永远留住这美好的时光。”\n于是有大臣建议,应该制作一幅巨型油画,把庆典的场景画下来,挂在宫殿中以资纪念。\n国王摇摇头,“我的画师老了,世界在他昏花的老眼中已蒙上了雾霭,他颤抖的老手已绘不出我们幸福的笑容。”\n“我正要说这个,”冰沙王子对国王深深鞠躬,“我的父王,我正要献给您一位新画师。”"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 46,
|
||||
"pointer": "/nodes/28/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "Qwen3.5-9b-heretic-v2-q8_0.gguf"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 46,
|
||||
"pointer": "/nodes/28/widgets_values/1",
|
||||
"json_type": "str",
|
||||
"value": "Qwen3.5-9b-mmproj-BF16.gguf"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 46,
|
||||
"pointer": "/nodes/28/widgets_values/2",
|
||||
"json_type": "str",
|
||||
"value": "Qwen3.5"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 46,
|
||||
"pointer": "/nodes/28/widgets_values/3",
|
||||
"json_type": "int",
|
||||
"value": 8192
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 46,
|
||||
"pointer": "/nodes/28/widgets_values/4",
|
||||
"json_type": "int",
|
||||
"value": -1
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 46,
|
||||
"pointer": "/nodes/28/widgets_values/5",
|
||||
"json_type": "int",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 46,
|
||||
"pointer": "/nodes/28/widgets_values/6",
|
||||
"json_type": "int",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 42,
|
||||
"pointer": "/nodes/30/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "audio/ComfyUI"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 18,
|
||||
"pointer": "/nodes/31/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "旁白:你好,今天天气真不错。\n国王:是啊,桃子你打算去哪里玩。\n冰沙王子:不知道啊,土豆你想去哪里。\n针眼画师:我们去肥西的家里吧。"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 18,
|
||||
"pointer": "/nodes/31/widgets_values/1",
|
||||
"json_type": "float",
|
||||
"value": 0.5
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 18,
|
||||
"pointer": "/nodes/31/widgets_values/2",
|
||||
"json_type": "int",
|
||||
"value": 62556003384494
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 18,
|
||||
"pointer": "/nodes/31/widgets_values/3",
|
||||
"json_type": "str",
|
||||
"value": "fixed"
|
||||
}
|
||||
],
|
||||
"notes": [
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 16,
|
||||
"pointer": "/nodes/18/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "输入的格式:\n\n[\n {\n \"name\": \"NewSpeaker\",\n \"instruct\": \"A clear voice\",\n \"text\": \"Hello world\"\n }\n]"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 43,
|
||||
"pointer": "/nodes/19/widgets_values/0",
|
||||
"json_type": "str",
|
||||
"value": "切换序号选择"
|
||||
}
|
||||
],
|
||||
"empty": [
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 27,
|
||||
"state": "missing"
|
||||
},
|
||||
{
|
||||
"scope": "root",
|
||||
"node": 8,
|
||||
"state": "list",
|
||||
"value": []
|
||||
}
|
||||
],
|
||||
"scopes": [
|
||||
{
|
||||
"scope": "root",
|
||||
"nodes": 32,
|
||||
"edges": 26,
|
||||
"canonical_sha256": "c0b697e1ac0bc269e341798a35549a63a30a10dd76d9640e6d6385762f7d0bba",
|
||||
"modes": [
|
||||
{
|
||||
"node": 4,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 12,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 15,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 19,
|
||||
"mode": 4
|
||||
},
|
||||
{
|
||||
"node": 21,
|
||||
"mode": 4
|
||||
},
|
||||
{
|
||||
"node": 23,
|
||||
"mode": 4
|
||||
},
|
||||
{
|
||||
"node": 25,
|
||||
"mode": 4
|
||||
},
|
||||
{
|
||||
"node": 9,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 20,
|
||||
"mode": 4
|
||||
},
|
||||
{
|
||||
"node": 22,
|
||||
"mode": 4
|
||||
},
|
||||
{
|
||||
"node": 24,
|
||||
"mode": 4
|
||||
},
|
||||
{
|
||||
"node": 26,
|
||||
"mode": 4
|
||||
},
|
||||
{
|
||||
"node": 3,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 33,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 39,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 37,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 14,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 32,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 16,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 43,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 38,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 40,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 27,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 44,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 31,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 45,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 35,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 29,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 46,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 8,
|
||||
"mode": 0
|
||||
},
|
||||
{
|
||||
"node": 42,
|
||||
"mode": 4
|
||||
},
|
||||
{
|
||||
"node": 18,
|
||||
"mode": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
"Offline batch evidence tooling; no upstream execution."
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def inventory():
|
||||
p = next((ROOT / "example_ComfyUI_workflows").rglob("Qwen3-TTS_多角色对话.json"))
|
||||
raw = p.read_bytes()
|
||||
g = json.loads(raw)
|
||||
fields = []
|
||||
notes = []
|
||||
empty = []
|
||||
scopes = [("root", "", g)]
|
||||
for scope, base, graph in scopes:
|
||||
for i, n in enumerate(graph["nodes"]):
|
||||
ptr = f"{base}/nodes/{i}/widgets_values"
|
||||
if "widgets_values" not in n:
|
||||
empty.append({"scope": scope, "node": n["id"], "state": "missing"})
|
||||
continue
|
||||
w = n["widgets_values"]
|
||||
if not w:
|
||||
empty.append(
|
||||
{"scope": scope, "node": n["id"], "state": type(w).__name__, "value": w}
|
||||
)
|
||||
for k in w if isinstance(w, dict) else range(len(w)):
|
||||
v = w[k]
|
||||
e = {
|
||||
"scope": scope,
|
||||
"node": n["id"],
|
||||
"pointer": ptr + "/" + str(k),
|
||||
"json_type": type(v).__name__,
|
||||
"value": v,
|
||||
}
|
||||
(notes if n["type"] in ["Note", "MarkdownNote"] else fields).append(e)
|
||||
return {
|
||||
"path": str(p.relative_to(ROOT)),
|
||||
"sha256": hashlib.sha256(raw).hexdigest(),
|
||||
"fields": fields,
|
||||
"notes": notes,
|
||||
"empty": empty,
|
||||
"scopes": [
|
||||
{
|
||||
"scope": s,
|
||||
"nodes": len(gr["nodes"]),
|
||||
"edges": len(gr["links"]),
|
||||
"canonical_sha256": hashlib.sha256(
|
||||
json.dumps(
|
||||
gr, ensure_ascii=False, sort_keys=True, separators=(",", ":")
|
||||
).encode()
|
||||
).hexdigest(),
|
||||
"modes": [{"node": n["id"], "mode": n["mode"]} for n in gr["nodes"]],
|
||||
}
|
||||
for s, _, gr in scopes
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
x = inventory()
|
||||
(OUT / "independent-inventory.json").write_text(
|
||||
json.dumps(x, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
print(len(x["fields"]), len(x["notes"]), x["scopes"])
|
||||
@@ -0,0 +1,3 @@
|
||||
All checks passed!
|
||||
12 files already formatted
|
||||
PASS 12 authored Python files and one JS syntax check
|
||||
@@ -0,0 +1,23 @@
|
||||
[
|
||||
{
|
||||
"file": "fixed_document.py",
|
||||
"sha256": "9a2ce69532d918265bb0f59fc1562763234b04aec31daded20d5474e454a79d3",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 40
|
||||
},
|
||||
{
|
||||
"file": "source_reviews.json",
|
||||
"sha256": "95fed306a9413e694167d3e722d4bc4db179246eed3946ae596721afe762f35f",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 40
|
||||
},
|
||||
{
|
||||
"file": "library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 40
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json": "5ab03e194bdc9336f90ba17c4d9b47789946d2f60e6680ec56245bf8ed9109b4"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"port": 8247,
|
||||
"connect_ex": 111,
|
||||
"connection_refused": true
|
||||
},
|
||||
{
|
||||
"port": 5173,
|
||||
"connect_ex": 111,
|
||||
"connection_refused": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"number": 25,
|
||||
"state": "open",
|
||||
"merged": false,
|
||||
"html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25",
|
||||
"head": {
|
||||
"ref": "agent/agent/a64a969a6a44",
|
||||
"sha": "21f0fd678add77a88a975793d1b0b9dbb72bb059"
|
||||
},
|
||||
"base": {
|
||||
"ref": "main",
|
||||
"sha": "1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
[
|
||||
"calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"calliope-backend/tests/test_tts_fixed_document.py",
|
||||
"e2e/run-tts-document.py",
|
||||
"docs/hel-892/tts-document-evidence/build_definition.py",
|
||||
"docs/hel-892/tts-document-evidence/check_code.py",
|
||||
"docs/hel-892/tts-document-evidence/fetch_sources.py",
|
||||
"docs/hel-892/tts-document-evidence/inventory.py",
|
||||
"docs/hel-892/tts-document-evidence/rebuild.py",
|
||||
"docs/hel-892/tts-document-evidence/recompute.py",
|
||||
"docs/hel-892/tts-document-evidence/render_report.py",
|
||||
"docs/hel-892/tts-document-evidence/repeat.py",
|
||||
"docs/hel-892/tts-document-evidence/verify_sources.py"
|
||||
]
|
||||
@@ -0,0 +1,70 @@
|
||||
"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 = "21f0fd678add77a88a975793d1b0b9dbb72bb059"
|
||||
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 definition; other 155" + " r")
|
||||
+ ("eviews and old 39 blocks uncha" + "ng")
|
||||
+ "ed"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1 @@
|
||||
PASS one definition; other 155 reviews and old 39 blocks unchanged
|
||||
@@ -0,0 +1,343 @@
|
||||
"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) == 39
|
||||
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()) == 1381
|
||||
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": 39,
|
||||
"old_saved": 1381,
|
||||
"old_notes": 41,
|
||||
"new_saved": 70,
|
||||
"new_notes": 2,
|
||||
"total_documents": 40,
|
||||
"total_saved": 1451,
|
||||
"total_notes": 43,
|
||||
},
|
||||
)
|
||||
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")
|
||||
replaced_steps = len(old_doc.get("fixed_version", {}).get("steps", [])) or 3
|
||||
assert without["steps"] == old_doc["steps"][:-replaced_steps] + fixed["steps"]
|
||||
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": 70,
|
||||
"new_notes": 2,
|
||||
"old_saved": 1381,
|
||||
"old_notes": 41,
|
||||
"overviews": 40,
|
||||
"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_thirty_nine_blocks_unchanged": True,
|
||||
"drawer_css_unchanged": True,
|
||||
"drawer_whole_file_unchanged": True,
|
||||
"drawer_sha256": hashlib.sha256(drawer_bytes).hexdigest(),
|
||||
"conversion_rerun": False,
|
||||
"profiles_28_candidates_9_diffs_6": "unchanged",
|
||||
},
|
||||
)
|
||||
tracked = (
|
||||
subprocess.check_output(["git", "ls-tree", "-rz", "--name-only", BASE], cwd=REPO)
|
||||
.decode()
|
||||
.rstrip("\0")
|
||||
.split("\0")
|
||||
)
|
||||
frozen = [
|
||||
p
|
||||
for p in tracked
|
||||
if p.startswith(("example_ComfyUI_workflows/", "docs/hel-892/supplied-api/"))
|
||||
or p.startswith((("calliope-backend/src/calliope/" + "co") + "mfyui/"))
|
||||
and p
|
||||
not in [RESOURCE, (("calliope-backend/src/calliope/" + "co") + "mfyui/fixed_document.py")]
|
||||
]
|
||||
for p in frozen:
|
||||
assert (REPO / p).read_bytes() == subprocess.check_output(
|
||||
["git", "show", f"{BASE}:{p}"], cwd=REPO
|
||||
)
|
||||
write(
|
||||
"frozen-resource-check.json",
|
||||
{
|
||||
"base": BASE,
|
||||
"files": [
|
||||
{"path": p, "sha256": hashlib.sha256((REPO / p).read_bytes()).hexdigest()}
|
||||
for p in frozen
|
||||
],
|
||||
"original_files": sum(p.startswith("example_ComfyUI_workflows/") for p in frozen),
|
||||
"all_unchanged": True,
|
||||
},
|
||||
)
|
||||
packages = []
|
||||
with zipfile.ZipFile(wheels) as w, tarfile.open(sdists) as s:
|
||||
for name in ["fixed_document.py", "source_reviews.json", "library.py"]:
|
||||
raw = (REPO / (("calliope-backend/src/calliope/" + "co") + "mfyui") / name).read_bytes()
|
||||
assert w.read("calliope/comfyui/" + name) == raw
|
||||
member = next(n for n in s.getnames() if n.endswith("/src/calliope/comfyui/" + name))
|
||||
assert s.extractfile(member).read() == raw
|
||||
packages.append(
|
||||
{
|
||||
"file": name,
|
||||
"sha256": hashlib.sha256(raw).hexdigest(),
|
||||
"wheel": True,
|
||||
"sdist": True,
|
||||
"definitions": 40,
|
||||
}
|
||||
)
|
||||
write("package-check.json", packages)
|
||||
print(
|
||||
f"PASS actual {BASE} upgrade1/skip154, repe"
|
||||
"at155, rollback1, edits1/29cols, fresh155,"
|
||||
" 1217/3660/294, 40 definitions, frozen bou"
|
||||
"ndaries, wheel/sdist"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,2 @@
|
||||
PASS pinned source bytes, trees/blobs/tag/package members, 70 positions, 2 complete notes and 26 physical edges
|
||||
PASS actual 21f0fd678add77a88a975793d1b0b9dbb72bb059 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 40 definitions, frozen boundaries, wheel/sdist
|
||||
@@ -0,0 +1,136 @@
|
||||
"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 = [
|
||||
"# Qwen3TTS多角色对话固定参考中文说明",
|
||||
"",
|
||||
(
|
||||
"新增70保存位置/2注释;旧39块1381位置+41注释逐对象不"
|
||||
+ "变,40图1451+43仅参考;155定稿0/实跑0/新增转换0"
|
||||
+ "。"
|
||||
),
|
||||
"",
|
||||
(
|
||||
"来源local_file以docs/hel-892/tts-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 / "Qwen3TTS多角色对话固定参考中文说明.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,48 @@
|
||||
"""Compare deterministic definitions and rendered artifacts."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
from build_definition import OUT, REPO, canonical
|
||||
from rebuild import RESOURCE, build_all
|
||||
from render_report import main as render
|
||||
|
||||
|
||||
def main():
|
||||
a, old = build_all()
|
||||
b, previous = build_all()
|
||||
assert a == b and old == previous
|
||||
assert a == json.loads((REPO / RESOURCE).read_bytes())
|
||||
render()
|
||||
paths = [
|
||||
OUT / "fixed-source-index.json",
|
||||
OUT.parent / "Qwen3TTS多角色对话固定参考中文说明.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": 40,
|
||||
"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": 40,
|
||||
"repeated_build_equal": true,
|
||||
"repeated_render_equal": true,
|
||||
"resource_sha256": "beebdd959ce48a960f47e768b43d7797bb5099c2b7bca9ac015de995d12c5081",
|
||||
"artifacts": {
|
||||
"fixed-source-index.json": "7cf9a91ebb044306970ede927f1659ff91c33536fc1369c57e21fd00b34a515b",
|
||||
"Qwen3TTS多角色对话固定参考中文说明.md": "7ff1e2219a81046134c9d5f2f9316424003e6b41d9ac510722139eb6b58aafdc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
PASS deterministic definitions and rendered artifacts: zero difference
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"base": "21f0fd678add77a88a975793d1b0b9dbb72bb059",
|
||||
"changed_paths": [
|
||||
"example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json"
|
||||
],
|
||||
"other_reviews_unchanged": 155,
|
||||
"old_blocks_unchanged": 39,
|
||||
"old_saved": 1381,
|
||||
"old_notes": 41,
|
||||
"new_saved": 70,
|
||||
"new_notes": 2,
|
||||
"total_documents": 40,
|
||||
"total_saved": 1451,
|
||||
"total_notes": 43
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
[
|
||||
{
|
||||
"file": "1440-37-31-history_text.png",
|
||||
"sha256": "a737337736f62c3c4381c256224bb44e8aad10df3074a347706adf9169755a2f"
|
||||
},
|
||||
{
|
||||
"file": "1440-37-45-system_prompt.png",
|
||||
"sha256": "2dae33a7dbc303343c4cf34f2d015904b55abd3882b26553e3f87ae9c5b1bf64"
|
||||
},
|
||||
{
|
||||
"file": "1440-37-branch-flow.png",
|
||||
"sha256": "fc4506adf2e7c42bb64c2520c84ea4a0ed8a6f9573619c328c8d6d396f4df0c6"
|
||||
},
|
||||
{
|
||||
"file": "1440-37-default.png",
|
||||
"sha256": "9afcfdadd7c4dc079ca2cf704e037dfdee0660b0fc8eed2e412e43088c94a69c"
|
||||
},
|
||||
{
|
||||
"file": "1440-37-fixed-sources-corrected.png",
|
||||
"sha256": "aef47129c02ce7bb75aa28d1d7e53471e95decf73deef5c4ccbd6c17caa65b03"
|
||||
},
|
||||
{
|
||||
"file": "390-37-16-note.png",
|
||||
"sha256": "2eb0b3bbd1cbd47f6f8a450a629c2f088fc33288e13ce167797e42d631b91d03"
|
||||
},
|
||||
{
|
||||
"file": "390-37-31-history_text.png",
|
||||
"sha256": "65559580e806cb2fc4376f802ee97657871d9882683ad3072e2bb8f1a46e469e"
|
||||
},
|
||||
{
|
||||
"file": "390-37-43-note.png",
|
||||
"sha256": "7f4858f012fff251ef996747c688781995e29fdce54bcb5bc5849c1cccfb09f3"
|
||||
},
|
||||
{
|
||||
"file": "390-37-45-system_prompt.png",
|
||||
"sha256": "22112ea8b58332d80d8b1b3102000138f55006f2a6426871fbb96c1bfb6456e4"
|
||||
},
|
||||
{
|
||||
"file": "390-37-default.png",
|
||||
"sha256": "bf8b0657aec9c351e1a5b217ce68ad72a28ada73149d5a43425d8e1dc0c8799c"
|
||||
},
|
||||
{
|
||||
"file": "390-37-fixed-sources-corrected.png",
|
||||
"sha256": "c647bae89b708f01e34f966c02c5be040d306de1ed5eb44b1fd7c98abf0d6d4d"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,150 @@
|
||||
INFO: Started server process [832152]
|
||||
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:47180 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47196 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47190 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47220 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:47210 - "GET /api/settings HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47234 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47244 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47246 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:39448 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:39456 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:39472 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39486 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39502 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39504 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39518 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39534 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39548 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39556 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39568 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39576 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39578 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39580 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39584 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39592 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39608 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39618 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:39632 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33796 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33804 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33808 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:33818 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33820 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33824 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:33840 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33842 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33852 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33854 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33862 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33872 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33886 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33896 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33906 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33908 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33910 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33914 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33928 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33940 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33956 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33968 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33980 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33996 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34002 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:34004 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:49932 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:49940 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:49950 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49954 - "GET /api/workflows/20 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49970 - "GET /api/workflows/30 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:49984 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:49990 - "GET /api/workflows/32 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52370 - "GET /api/workflows/34 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52376 - "GET /api/workflows/33 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52390 - "GET /api/workflows/31 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52392 - "GET /api/workflows/29 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52398 - "GET /api/workflows/28 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52406 - "GET /api/workflows/27 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52422 - "GET /api/workflows/26 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52438 - "GET /api/workflows/17 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52440 - "GET /api/workflows/4 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52442 - "GET /api/workflows/15 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52458 - "GET /api/workflows/11 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52462 - "GET /api/workflows/3 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52474 - "GET /api/workflows/9 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52482 - "GET /api/workflows/16 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52498 - "GET /api/workflows/10 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52512 - "GET /api/workflows/23 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52524 - "GET /api/workflows/8 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52536 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52552 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52564 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:52570 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52582 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52596 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52598 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:52606 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52612 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52620 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:52630 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46446 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46460 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46474 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46486 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46502 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46508 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46522 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46538 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46550 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46558 - "GET /api/workflows/156 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46570 - "GET /api/workflows/157 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46580 - "GET /api/workflows/18 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:46584 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:46588 - "GET /api/workflows/37 HTTP/1.1" 200 OK
|
||||
INFO: Shutting down
|
||||
INFO: Waiting for application shutdown.
|
||||
INFO: Application shutdown complete.
|
||||
INFO: Finished server process [832152]
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
VITE v6.4.3 ready in 300 ms
|
||||
|
||||
➜ Local: http://127.0.0.1:5173/
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"all_pass": true,
|
||||
"cited_texts": 29,
|
||||
"citations": 43,
|
||||
"counts": {
|
||||
"saved_fields": 70,
|
||||
"root_saved_fields": 70,
|
||||
"internal_saved_fields": 0,
|
||||
"linked_saved_fields": 4,
|
||||
"frontend_only": 3,
|
||||
"source_nodes": 32,
|
||||
"root_nodes": 32,
|
||||
"internal_nodes": 0,
|
||||
"physical_edges": 26,
|
||||
"internal_edge_records": 0,
|
||||
"source_notes": 2,
|
||||
"history_objects": 0,
|
||||
"history_strings": 1,
|
||||
"final_scalars": 0,
|
||||
"final_prompt_constructed": false
|
||||
},
|
||||
"local_file_base": "docs/hel-892/tts-document-evidence",
|
||||
"upstream_executed": false,
|
||||
"source_frontend": "undeclared",
|
||||
"qwen_commits_separate": true,
|
||||
"core_tag_verified": true,
|
||||
"impact_git_binding": "unknown",
|
||||
"cr_license": "absent in original tree"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
........................................................................ [ 20%]
|
||||
........................................................................ [ 40%]
|
||||
........................................................................ [ 60%]
|
||||
........................................................................ [ 80%]
|
||||
..................................................................... [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-824e9a6659bf/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
|
||||
357 passed, 1 warning in 5.17s
|
||||
@@ -0,0 +1,21 @@
|
||||
# 仓库根;原PR25/main基线21f0fd678add77a88a975793d1b0b9dbb72bb059。
|
||||
uv sync --project calliope-backend --offline --extra dev
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/tts-document-evidence/inventory.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/tts-document-evidence/verify_sources.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/tts-document-evidence/rebuild.py
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/tts-document-evidence/repeat.py
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_tts_fixed_document.py calliope-backend/tests/test_workflow_library.py -q
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/tts-document-evidence/check_code.py
|
||||
uv build --project calliope-backend --offline
|
||||
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/tts-document-evidence/recompute.py
|
||||
npm ci --offline --ignore-scripts --prefix calliope-web
|
||||
PYTHONDONTWRITEBYTECODE=1 LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-tts-document.py
|
||||
# 双屏1440/390;只有本地隔离数据库和真实GET路由,无worker,finally停止8247/5173。
|
||||
# 截图保存在.local-evidence/tts-document/browser;附任务卡,不入仓。
|
||||
# actual-Qwen3-TTS_多角色对话.json:真实导入doc;review-delta.json:唯一说明增量。
|
||||
# import-protection.json:真实旧代码导入/升级/回退/用户编辑冲突及29列整行保护。
|
||||
# boundaries.json/frozen-resource-check.json:163原件/191资源/28profiles/9候选/6差分/Drawer冻结。
|
||||
# 来源local_file以tts-document-evidence为基准;tts-reference/sources.json以tts-reference为基准。
|
||||
# 可选重取:python3 docs/hel-892/tts-document-evidence/fetch_sources.py
|
||||
# 只取准确提交文本/树与准确8.28.2发布包,绝不导入上游。重取会更新获取时间,不可未经审核重建受信摘要。
|
||||
# 旧llama/frontend/Show来源复用固定缓存,精确tag证据复用sdpose-reference/core0150-tag.json。
|
||||
@@ -0,0 +1,96 @@
|
||||
"""Verify pinned bytes/provenance and independent inventory without upstream execution."""
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import zipfile
|
||||
|
||||
from build_definition import OUT, REF, REPO, build, canonical
|
||||
from inventory import inventory
|
||||
|
||||
|
||||
def main():
|
||||
b = build()
|
||||
seen = set()
|
||||
for e in b["sources"]:
|
||||
p = (OUT / e["local_file"]).resolve()
|
||||
raw = p.read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||||
seen.add(str(p))
|
||||
if "git_blob_sha1" in e:
|
||||
assert (
|
||||
hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
|
||||
== e["git_blob_sha1"]
|
||||
)
|
||||
root = OUT.parent / "moge3-reference" if e["id"] == "frontend" else p.parent
|
||||
t = json.loads((root / (e["id"] + "-tree.json")).read_bytes())
|
||||
assert t["sha"] == e["commit"] and not t["truncated"]
|
||||
assert next(x["sha"] for x in t["tree"] if x["path"] == e["file"]) == e["git_blob_sha1"]
|
||||
else:
|
||||
assert e["id"] == "impact"
|
||||
archive = REF / "impact-source.zip"
|
||||
assert hashlib.sha256(archive.read_bytes()).hexdigest() == e["package_sha256"]
|
||||
with zipfile.ZipFile(archive) as z:
|
||||
assert z.read(e["file"]) == raw
|
||||
for key in ["loader", "dialog", "core", "cr", "layer"]:
|
||||
c = json.loads((REF / (key + "-commit.json")).read_bytes())
|
||||
t = json.loads((REF / (key + "-tree.json")).read_bytes())
|
||||
assert t["sha"] == c["sha"] and not t["truncated"]
|
||||
assert all(
|
||||
e["tree"] == c["tree"]["sha"]
|
||||
for e in json.loads((REF / "sources.json").read_bytes())["sources"]
|
||||
if e["id"] == key and "tree" in e
|
||||
)
|
||||
tag = json.loads((OUT.parent / "sdpose-reference/core0150-tag.json").read_bytes())
|
||||
assert tag["object"]["sha"] == "b874bd2b8c324d58cfc37bff0754dd16815a8f3c"
|
||||
registry = json.loads((REF / "impact-registry.json").read_bytes())
|
||||
assert registry["version"] == "8.28.2" and "/8.28.2/" in registry["downloadUrl"]
|
||||
inv = inventory()
|
||||
assert len(inv["fields"]) == 70 and len(inv["notes"]) == 2
|
||||
for a, f in zip(inv["fields"], b["fields"], strict=True):
|
||||
assert (a["pointer"], a["scope"], a["json_type"], canonical(a["value"])) == (
|
||||
f["pointer"],
|
||||
f["scope"],
|
||||
f["json_type"],
|
||||
canonical(f["value"]),
|
||||
)
|
||||
for a, n in zip(inv["notes"], b["comments"], strict=True):
|
||||
assert a["pointer"] == n["pointer"] and a["value"] == n["text"]
|
||||
g = json.loads((REPO / b["source_path"]).read_bytes())
|
||||
ns = {n["id"]: n for n in g["nodes"]}
|
||||
assert "frontendVersion" not in g["extra"] and not g.get("definitions")
|
||||
assert all("widgets_values_named" not in n for n in g["nodes"])
|
||||
assert sum(n["mode"] == 4 for n in g["nodes"]) == 9
|
||||
for eid, src, slot, dst, inp, _ in g["links"]:
|
||||
assert eid in ns[src]["outputs"][slot]["links"] and ns[dst]["inputs"][inp]["link"] == eid
|
||||
(OUT / "source-check.json").write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
all_pass=True,
|
||||
cited_texts=len(seen),
|
||||
citations=len(b["sources"]),
|
||||
counts=b["counts"],
|
||||
local_file_base=str(OUT.relative_to(REPO)),
|
||||
upstream_executed=False,
|
||||
source_frontend="undeclared",
|
||||
qwen_commits_separate=True,
|
||||
core_tag_verified=True,
|
||||
impact_git_binding="unknown",
|
||||
cr_license="absent in original tree",
|
||||
),
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print(
|
||||
(
|
||||
"PASS pinned source bytes, trees/blobs/tag/packag"
|
||||
"e members, 70 positions, 2 complete notes and 26"
|
||||
" physical edges"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"viewports": [
|
||||
1440,
|
||||
390
|
||||
],
|
||||
"inspected": [
|
||||
"1440-37-default.png",
|
||||
"390-37-default.png",
|
||||
"390-37-fixed-sources-corrected.png",
|
||||
"390-37-16-note.png",
|
||||
"390-37-45-system_prompt.png"
|
||||
],
|
||||
"observed": "用途默认可读;技术默认折叠;源值、引用和长文换行,无横向溢出;仅沿用已有Drawer/CSS",
|
||||
"screenshots_committed": false
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"sha":"b874bd2b8c324d58cfc37bff0754dd16815a8f3c","node_id":"C_kwDOIygeJtoAKGI4NzRiZDJiOGMzMjRkNThjZmMzN2JmZjA3NTRkZDE2ODE1YThmM2M","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/b874bd2b8c324d58cfc37bff0754dd16815a8f3c","html_url":"https://github.com/Comfy-Org/ComfyUI/commit/b874bd2b8c324d58cfc37bff0754dd16815a8f3c","author":{"name":"comfyanonymous","email":"comfyanonymous@protonmail.com","date":"2026-02-24T17:37:16Z"},"committer":{"name":"comfyanonymous","email":"comfyanonymous@protonmail.com","date":"2026-02-24T17:42:15Z"},"tree":{"sha":"7b8179ffb38c06974fcd9f5c127b3e943893c6f5","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/7b8179ffb38c06974fcd9f5c127b3e943893c6f5"},"message":"ComfyUI v0.15.0","parents":[{"sha":"0aa02453bbe7d2fac332e829ade1f13a1cf53820","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/0aa02453bbe7d2fac332e829ade1f13a1cf53820","html_url":"https://github.com/Comfy-Org/ComfyUI/commit/0aa02453bbe7d2fac332e829ade1f13a1cf53820"}],"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}}
|
||||
File diff suppressed because one or more lines are too long
@@ -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,475 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
import random
|
||||
import uuid
|
||||
from io import BytesIO
|
||||
|
||||
import av
|
||||
import numpy as np
|
||||
import torch
|
||||
try:
|
||||
import torchaudio
|
||||
TORCH_AUDIO_AVAILABLE = True
|
||||
except:
|
||||
TORCH_AUDIO_AVAILABLE = False
|
||||
from PIL import Image as PILImage
|
||||
from PIL.PngImagePlugin import PngInfo
|
||||
|
||||
import folder_paths
|
||||
|
||||
# used for image preview
|
||||
from comfy.cli_args import args
|
||||
from ._io import ComfyNode, FolderType, Image, _UIOutput
|
||||
|
||||
|
||||
class SavedResult(dict):
|
||||
def __init__(self, filename: str, subfolder: str, type: FolderType):
|
||||
super().__init__(filename=filename, subfolder=subfolder,type=type.value)
|
||||
|
||||
@property
|
||||
def filename(self) -> str:
|
||||
return self["filename"]
|
||||
|
||||
@property
|
||||
def subfolder(self) -> str:
|
||||
return self["subfolder"]
|
||||
|
||||
@property
|
||||
def type(self) -> FolderType:
|
||||
return FolderType(self["type"])
|
||||
|
||||
|
||||
class SavedImages(_UIOutput):
|
||||
"""A UI output class to represent one or more saved images, potentially animated."""
|
||||
def __init__(self, results: list[SavedResult], is_animated: bool = False):
|
||||
super().__init__()
|
||||
self.results = results
|
||||
self.is_animated = is_animated
|
||||
|
||||
def as_dict(self) -> dict:
|
||||
data = {"images": self.results}
|
||||
if self.is_animated:
|
||||
data["animated"] = (True,)
|
||||
return data
|
||||
|
||||
|
||||
class SavedAudios(_UIOutput):
|
||||
"""UI wrapper around one or more audio files on disk (FLAC / MP3 / Opus)."""
|
||||
def __init__(self, results: list[SavedResult]):
|
||||
super().__init__()
|
||||
self.results = results
|
||||
|
||||
def as_dict(self) -> dict:
|
||||
return {"audio": self.results}
|
||||
|
||||
|
||||
def _get_directory_by_folder_type(folder_type: FolderType) -> str:
|
||||
if folder_type == FolderType.input:
|
||||
return folder_paths.get_input_directory()
|
||||
if folder_type == FolderType.output:
|
||||
return folder_paths.get_output_directory()
|
||||
return folder_paths.get_temp_directory()
|
||||
|
||||
|
||||
class ImageSaveHelper:
|
||||
"""A helper class with static methods to handle image saving and metadata."""
|
||||
|
||||
@staticmethod
|
||||
def _convert_tensor_to_pil(image_tensor: torch.Tensor) -> PILImage.Image:
|
||||
"""Converts a single torch tensor to a PIL Image."""
|
||||
return PILImage.fromarray(np.clip(255.0 * image_tensor.cpu().numpy(), 0, 255).astype(np.uint8))
|
||||
|
||||
@staticmethod
|
||||
def _create_png_metadata(cls: type[ComfyNode] | None) -> PngInfo | None:
|
||||
"""Creates a PngInfo object with prompt and extra_pnginfo."""
|
||||
if args.disable_metadata or cls is None or not cls.hidden:
|
||||
return None
|
||||
metadata = PngInfo()
|
||||
if cls.hidden.prompt:
|
||||
metadata.add_text("prompt", json.dumps(cls.hidden.prompt))
|
||||
if cls.hidden.extra_pnginfo:
|
||||
for x in cls.hidden.extra_pnginfo:
|
||||
metadata.add_text(x, json.dumps(cls.hidden.extra_pnginfo[x]))
|
||||
return metadata
|
||||
|
||||
@staticmethod
|
||||
def _create_animated_png_metadata(cls: type[ComfyNode] | None) -> PngInfo | None:
|
||||
"""Creates a PngInfo object with prompt and extra_pnginfo for animated PNGs (APNG)."""
|
||||
if args.disable_metadata or cls is None or not cls.hidden:
|
||||
return None
|
||||
metadata = PngInfo()
|
||||
if cls.hidden.prompt:
|
||||
metadata.add(
|
||||
b"comf",
|
||||
"prompt".encode("latin-1", "strict")
|
||||
+ b"\0"
|
||||
+ json.dumps(cls.hidden.prompt).encode("latin-1", "strict"),
|
||||
after_idat=True,
|
||||
)
|
||||
if cls.hidden.extra_pnginfo:
|
||||
for x in cls.hidden.extra_pnginfo:
|
||||
metadata.add(
|
||||
b"comf",
|
||||
x.encode("latin-1", "strict")
|
||||
+ b"\0"
|
||||
+ json.dumps(cls.hidden.extra_pnginfo[x]).encode("latin-1", "strict"),
|
||||
after_idat=True,
|
||||
)
|
||||
return metadata
|
||||
|
||||
@staticmethod
|
||||
def _create_webp_metadata(pil_image: PILImage.Image, cls: type[ComfyNode] | None) -> PILImage.Exif:
|
||||
"""Creates EXIF metadata bytes for WebP images."""
|
||||
exif_data = pil_image.getexif()
|
||||
if args.disable_metadata or cls is None or cls.hidden is None:
|
||||
return exif_data
|
||||
if cls.hidden.prompt is not None:
|
||||
exif_data[0x0110] = "prompt:{}".format(json.dumps(cls.hidden.prompt)) # EXIF 0x0110 = Model
|
||||
if cls.hidden.extra_pnginfo is not None:
|
||||
inital_exif_tag = 0x010F # EXIF 0x010f = Make
|
||||
for key, value in cls.hidden.extra_pnginfo.items():
|
||||
exif_data[inital_exif_tag] = "{}:{}".format(key, json.dumps(value))
|
||||
inital_exif_tag -= 1
|
||||
return exif_data
|
||||
|
||||
@staticmethod
|
||||
def save_images(
|
||||
images, filename_prefix: str, folder_type: FolderType, cls: type[ComfyNode] | None, compress_level = 4,
|
||||
) -> list[SavedResult]:
|
||||
"""Saves a batch of images as individual PNG files."""
|
||||
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
|
||||
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
|
||||
)
|
||||
results = []
|
||||
metadata = ImageSaveHelper._create_png_metadata(cls)
|
||||
for batch_number, image_tensor in enumerate(images):
|
||||
img = ImageSaveHelper._convert_tensor_to_pil(image_tensor)
|
||||
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
|
||||
file = f"{filename_with_batch_num}_{counter:05}_.png"
|
||||
img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=compress_level)
|
||||
results.append(SavedResult(file, subfolder, folder_type))
|
||||
counter += 1
|
||||
return results
|
||||
|
||||
@staticmethod
|
||||
def get_save_images_ui(images, filename_prefix: str, cls: type[ComfyNode] | None, compress_level=4) -> SavedImages:
|
||||
"""Saves a batch of images and returns a UI object for the node output."""
|
||||
return SavedImages(
|
||||
ImageSaveHelper.save_images(
|
||||
images,
|
||||
filename_prefix=filename_prefix,
|
||||
folder_type=FolderType.output,
|
||||
cls=cls,
|
||||
compress_level=compress_level,
|
||||
)
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def save_animated_png(
|
||||
images, filename_prefix: str, folder_type: FolderType, cls: type[ComfyNode] | None, fps: float, compress_level: int
|
||||
) -> SavedResult:
|
||||
"""Saves a batch of images as a single animated PNG."""
|
||||
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
|
||||
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
|
||||
)
|
||||
pil_images = [ImageSaveHelper._convert_tensor_to_pil(img) for img in images]
|
||||
metadata = ImageSaveHelper._create_animated_png_metadata(cls)
|
||||
file = f"{filename}_{counter:05}_.png"
|
||||
save_path = os.path.join(full_output_folder, file)
|
||||
pil_images[0].save(
|
||||
save_path,
|
||||
pnginfo=metadata,
|
||||
compress_level=compress_level,
|
||||
save_all=True,
|
||||
duration=int(1000.0 / fps),
|
||||
append_images=pil_images[1:],
|
||||
)
|
||||
return SavedResult(file, subfolder, folder_type)
|
||||
|
||||
@staticmethod
|
||||
def get_save_animated_png_ui(
|
||||
images, filename_prefix: str, cls: type[ComfyNode] | None, fps: float, compress_level: int
|
||||
) -> SavedImages:
|
||||
"""Saves an animated PNG and returns a UI object for the node output."""
|
||||
result = ImageSaveHelper.save_animated_png(
|
||||
images,
|
||||
filename_prefix=filename_prefix,
|
||||
folder_type=FolderType.output,
|
||||
cls=cls,
|
||||
fps=fps,
|
||||
compress_level=compress_level,
|
||||
)
|
||||
return SavedImages([result], is_animated=len(images) > 1)
|
||||
|
||||
@staticmethod
|
||||
def save_animated_webp(
|
||||
images,
|
||||
filename_prefix: str,
|
||||
folder_type: FolderType,
|
||||
cls: type[ComfyNode] | None,
|
||||
fps: float,
|
||||
lossless: bool,
|
||||
quality: int,
|
||||
method: int,
|
||||
) -> SavedResult:
|
||||
"""Saves a batch of images as a single animated WebP."""
|
||||
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
|
||||
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
|
||||
)
|
||||
pil_images = [ImageSaveHelper._convert_tensor_to_pil(img) for img in images]
|
||||
pil_exif = ImageSaveHelper._create_webp_metadata(pil_images[0], cls)
|
||||
file = f"{filename}_{counter:05}_.webp"
|
||||
pil_images[0].save(
|
||||
os.path.join(full_output_folder, file),
|
||||
save_all=True,
|
||||
duration=int(1000.0 / fps),
|
||||
append_images=pil_images[1:],
|
||||
exif=pil_exif,
|
||||
lossless=lossless,
|
||||
quality=quality,
|
||||
method=method,
|
||||
)
|
||||
return SavedResult(file, subfolder, folder_type)
|
||||
|
||||
@staticmethod
|
||||
def get_save_animated_webp_ui(
|
||||
images,
|
||||
filename_prefix: str,
|
||||
cls: type[ComfyNode] | None,
|
||||
fps: float,
|
||||
lossless: bool,
|
||||
quality: int,
|
||||
method: int,
|
||||
) -> SavedImages:
|
||||
"""Saves an animated WebP and returns a UI object for the node output."""
|
||||
result = ImageSaveHelper.save_animated_webp(
|
||||
images,
|
||||
filename_prefix=filename_prefix,
|
||||
folder_type=FolderType.output,
|
||||
cls=cls,
|
||||
fps=fps,
|
||||
lossless=lossless,
|
||||
quality=quality,
|
||||
method=method,
|
||||
)
|
||||
return SavedImages([result], is_animated=len(images) > 1)
|
||||
|
||||
|
||||
class AudioSaveHelper:
|
||||
"""A helper class with static methods to handle audio saving and metadata."""
|
||||
_OPUS_RATES = [8000, 12000, 16000, 24000, 48000]
|
||||
|
||||
@staticmethod
|
||||
def save_audio(
|
||||
audio: dict,
|
||||
filename_prefix: str,
|
||||
folder_type: FolderType,
|
||||
cls: type[ComfyNode] | None,
|
||||
format: str = "flac",
|
||||
quality: str = "128k",
|
||||
) -> list[SavedResult]:
|
||||
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
|
||||
filename_prefix, _get_directory_by_folder_type(folder_type)
|
||||
)
|
||||
|
||||
metadata = {}
|
||||
if not args.disable_metadata and cls is not None:
|
||||
if cls.hidden.prompt is not None:
|
||||
metadata["prompt"] = json.dumps(cls.hidden.prompt)
|
||||
if cls.hidden.extra_pnginfo is not None:
|
||||
for x in cls.hidden.extra_pnginfo:
|
||||
metadata[x] = json.dumps(cls.hidden.extra_pnginfo[x])
|
||||
|
||||
results = []
|
||||
for batch_number, waveform in enumerate(audio["waveform"].cpu()):
|
||||
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
|
||||
file = f"{filename_with_batch_num}_{counter:05}_.{format}"
|
||||
output_path = os.path.join(full_output_folder, file)
|
||||
|
||||
# Use original sample rate initially
|
||||
sample_rate = audio["sample_rate"]
|
||||
|
||||
# Handle Opus sample rate requirements
|
||||
if format == "opus":
|
||||
if sample_rate > 48000:
|
||||
sample_rate = 48000
|
||||
elif sample_rate not in AudioSaveHelper._OPUS_RATES:
|
||||
# Find the next highest supported rate
|
||||
for rate in sorted(AudioSaveHelper._OPUS_RATES):
|
||||
if rate > sample_rate:
|
||||
sample_rate = rate
|
||||
break
|
||||
if sample_rate not in AudioSaveHelper._OPUS_RATES: # Fallback if still not supported
|
||||
sample_rate = 48000
|
||||
|
||||
# Resample if necessary
|
||||
if sample_rate != audio["sample_rate"]:
|
||||
if not TORCH_AUDIO_AVAILABLE:
|
||||
raise Exception("torchaudio is not available; cannot resample audio.")
|
||||
waveform = torchaudio.functional.resample(waveform, audio["sample_rate"], sample_rate)
|
||||
|
||||
# Create output with specified format
|
||||
output_buffer = BytesIO()
|
||||
output_container = av.open(output_buffer, mode="w", format=format)
|
||||
|
||||
# Set metadata on the container
|
||||
for key, value in metadata.items():
|
||||
output_container.metadata[key] = value
|
||||
|
||||
layout = "mono" if waveform.shape[0] == 1 else "stereo"
|
||||
# Set up the output stream with appropriate properties
|
||||
if format == "opus":
|
||||
out_stream = output_container.add_stream("libopus", rate=sample_rate, layout=layout)
|
||||
if quality == "64k":
|
||||
out_stream.bit_rate = 64000
|
||||
elif quality == "96k":
|
||||
out_stream.bit_rate = 96000
|
||||
elif quality == "128k":
|
||||
out_stream.bit_rate = 128000
|
||||
elif quality == "192k":
|
||||
out_stream.bit_rate = 192000
|
||||
elif quality == "320k":
|
||||
out_stream.bit_rate = 320000
|
||||
elif format == "mp3":
|
||||
out_stream = output_container.add_stream("libmp3lame", rate=sample_rate, layout=layout)
|
||||
if quality == "V0":
|
||||
# TODO i would really love to support V3 and V5 but there doesn't seem to be a way to set the qscale level, the property below is a bool
|
||||
out_stream.codec_context.qscale = 1
|
||||
elif quality == "128k":
|
||||
out_stream.bit_rate = 128000
|
||||
elif quality == "320k":
|
||||
out_stream.bit_rate = 320000
|
||||
else: # format == "flac":
|
||||
out_stream = output_container.add_stream("flac", rate=sample_rate, layout=layout)
|
||||
|
||||
frame = av.AudioFrame.from_ndarray(
|
||||
waveform.movedim(0, 1).reshape(1, -1).float().numpy(),
|
||||
format="flt",
|
||||
layout=layout,
|
||||
)
|
||||
frame.sample_rate = sample_rate
|
||||
frame.pts = 0
|
||||
output_container.mux(out_stream.encode(frame))
|
||||
|
||||
# Flush encoder
|
||||
output_container.mux(out_stream.encode(None))
|
||||
|
||||
# Close containers
|
||||
output_container.close()
|
||||
|
||||
# Write the output to file
|
||||
output_buffer.seek(0)
|
||||
with open(output_path, "wb") as f:
|
||||
f.write(output_buffer.getbuffer())
|
||||
|
||||
results.append(SavedResult(file, subfolder, folder_type))
|
||||
counter += 1
|
||||
|
||||
return results
|
||||
|
||||
@staticmethod
|
||||
def get_save_audio_ui(
|
||||
audio, filename_prefix: str, cls: type[ComfyNode] | None, format: str = "flac", quality: str = "128k",
|
||||
) -> SavedAudios:
|
||||
"""Save and instantly wrap for UI."""
|
||||
return SavedAudios(
|
||||
AudioSaveHelper.save_audio(
|
||||
audio,
|
||||
filename_prefix=filename_prefix,
|
||||
folder_type=FolderType.output,
|
||||
cls=cls,
|
||||
format=format,
|
||||
quality=quality,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class PreviewImage(_UIOutput):
|
||||
def __init__(self, image: Image.Type, animated: bool = False, cls: type[ComfyNode] = None, **kwargs):
|
||||
self.values = ImageSaveHelper.save_images(
|
||||
image,
|
||||
filename_prefix="ComfyUI_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for _ in range(5)),
|
||||
folder_type=FolderType.temp,
|
||||
cls=cls,
|
||||
compress_level=1,
|
||||
)
|
||||
self.animated = animated
|
||||
|
||||
def as_dict(self):
|
||||
return {
|
||||
"images": self.values,
|
||||
"animated": (self.animated,)
|
||||
}
|
||||
|
||||
|
||||
class PreviewMask(PreviewImage):
|
||||
def __init__(self, mask: PreviewMask.Type, animated: bool=False, cls: ComfyNode=None, **kwargs):
|
||||
preview = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3)
|
||||
super().__init__(preview, animated, cls, **kwargs)
|
||||
|
||||
|
||||
class PreviewAudio(_UIOutput):
|
||||
def __init__(self, audio: dict, cls: type[ComfyNode] = None, **kwargs):
|
||||
self.values = AudioSaveHelper.save_audio(
|
||||
audio,
|
||||
filename_prefix="ComfyUI_temp_" + "".join(random.choice("abcdefghijklmnopqrstuvwxyz") for _ in range(5)),
|
||||
folder_type=FolderType.temp,
|
||||
cls=cls,
|
||||
format="flac",
|
||||
quality="128k",
|
||||
)
|
||||
|
||||
def as_dict(self) -> dict:
|
||||
return {"audio": self.values}
|
||||
|
||||
|
||||
class PreviewVideo(_UIOutput):
|
||||
def __init__(self, values: list[SavedResult | dict], **kwargs):
|
||||
self.values = values
|
||||
|
||||
def as_dict(self):
|
||||
return {"images": self.values, "animated": (True,)}
|
||||
|
||||
|
||||
class PreviewUI3D(_UIOutput):
|
||||
def __init__(self, model_file, camera_info, **kwargs):
|
||||
self.model_file = model_file
|
||||
self.camera_info = camera_info
|
||||
self.bg_image_path = None
|
||||
bg_image = kwargs.get("bg_image", None)
|
||||
if bg_image is not None:
|
||||
img_array = (bg_image[0].cpu().numpy() * 255).astype(np.uint8)
|
||||
img = PILImage.fromarray(img_array)
|
||||
temp_dir = folder_paths.get_temp_directory()
|
||||
filename = f"bg_{uuid.uuid4().hex}.png"
|
||||
bg_image_path = os.path.join(temp_dir, filename)
|
||||
img.save(bg_image_path, compress_level=1)
|
||||
self.bg_image_path = f"temp/{filename}"
|
||||
|
||||
def as_dict(self):
|
||||
return {"result": [self.model_file, self.camera_info, self.bg_image_path]}
|
||||
|
||||
|
||||
class PreviewText(_UIOutput):
|
||||
def __init__(self, value: str, **kwargs):
|
||||
self.value = value
|
||||
|
||||
def as_dict(self):
|
||||
return {"text": (self.value,)}
|
||||
|
||||
|
||||
__all__ = [
|
||||
"SavedResult",
|
||||
"SavedImages",
|
||||
"SavedAudios",
|
||||
"ImageSaveHelper",
|
||||
"AudioSaveHelper",
|
||||
"PreviewImage",
|
||||
"PreviewMask",
|
||||
"PreviewAudio",
|
||||
"PreviewVideo",
|
||||
"PreviewUI3D",
|
||||
"PreviewText",
|
||||
]
|
||||
@@ -0,0 +1,792 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import av
|
||||
import torchaudio
|
||||
import torch
|
||||
import comfy.model_management
|
||||
import folder_paths
|
||||
import os
|
||||
import hashlib
|
||||
import node_helpers
|
||||
import logging
|
||||
from typing_extensions import override
|
||||
from comfy_api.latest import ComfyExtension, IO, UI
|
||||
|
||||
class EmptyLatentAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="EmptyLatentAudio",
|
||||
display_name="Empty Latent Audio",
|
||||
category="latent/audio",
|
||||
inputs=[
|
||||
IO.Float.Input("seconds", default=47.6, min=1.0, max=1000.0, step=0.1),
|
||||
IO.Int.Input(
|
||||
"batch_size", default=1, min=1, max=4096, tooltip="The number of latent images in the batch.",
|
||||
),
|
||||
],
|
||||
outputs=[IO.Latent.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, seconds, batch_size) -> IO.NodeOutput:
|
||||
length = round((seconds * 44100 / 2048) / 2) * 2
|
||||
latent = torch.zeros([batch_size, 64, length], device=comfy.model_management.intermediate_device())
|
||||
return IO.NodeOutput({"samples":latent, "type": "audio"})
|
||||
|
||||
generate = execute # TODO: remove
|
||||
|
||||
|
||||
class ConditioningStableAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ConditioningStableAudio",
|
||||
category="conditioning",
|
||||
inputs=[
|
||||
IO.Conditioning.Input("positive"),
|
||||
IO.Conditioning.Input("negative"),
|
||||
IO.Float.Input("seconds_start", default=0.0, min=0.0, max=1000.0, step=0.1),
|
||||
IO.Float.Input("seconds_total", default=47.0, min=0.0, max=1000.0, step=0.1),
|
||||
],
|
||||
outputs=[
|
||||
IO.Conditioning.Output(display_name="positive"),
|
||||
IO.Conditioning.Output(display_name="negative"),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, positive, negative, seconds_start, seconds_total) -> IO.NodeOutput:
|
||||
positive = node_helpers.conditioning_set_values(positive, {"seconds_start": seconds_start, "seconds_total": seconds_total})
|
||||
negative = node_helpers.conditioning_set_values(negative, {"seconds_start": seconds_start, "seconds_total": seconds_total})
|
||||
return IO.NodeOutput(positive, negative)
|
||||
|
||||
append = execute # TODO: remove
|
||||
|
||||
|
||||
class VAEEncodeAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="VAEEncodeAudio",
|
||||
search_aliases=["audio to latent"],
|
||||
display_name="VAE Encode Audio",
|
||||
category="latent/audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.Vae.Input("vae"),
|
||||
],
|
||||
outputs=[IO.Latent.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, vae, audio) -> IO.NodeOutput:
|
||||
sample_rate = audio["sample_rate"]
|
||||
vae_sample_rate = getattr(vae, "audio_sample_rate", 44100)
|
||||
if vae_sample_rate != sample_rate:
|
||||
waveform = torchaudio.functional.resample(audio["waveform"], sample_rate, vae_sample_rate)
|
||||
else:
|
||||
waveform = audio["waveform"]
|
||||
|
||||
t = vae.encode(waveform.movedim(1, -1))
|
||||
return IO.NodeOutput({"samples": t})
|
||||
|
||||
encode = execute # TODO: remove
|
||||
|
||||
|
||||
def vae_decode_audio(vae, samples, tile=None, overlap=None):
|
||||
if tile is not None:
|
||||
audio = vae.decode_tiled(samples["samples"], tile_y=tile, overlap=overlap).movedim(-1, 1)
|
||||
else:
|
||||
audio = vae.decode(samples["samples"]).movedim(-1, 1)
|
||||
|
||||
std = torch.std(audio, dim=[1, 2], keepdim=True) * 5.0
|
||||
std[std < 1.0] = 1.0
|
||||
audio /= std
|
||||
vae_sample_rate = getattr(vae, "audio_sample_rate", 44100)
|
||||
return {"waveform": audio, "sample_rate": vae_sample_rate if "sample_rate" not in samples else samples["sample_rate"]}
|
||||
|
||||
|
||||
class VAEDecodeAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="VAEDecodeAudio",
|
||||
search_aliases=["latent to audio"],
|
||||
display_name="VAE Decode Audio",
|
||||
category="latent/audio",
|
||||
inputs=[
|
||||
IO.Latent.Input("samples"),
|
||||
IO.Vae.Input("vae"),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, vae, samples) -> IO.NodeOutput:
|
||||
return IO.NodeOutput(vae_decode_audio(vae, samples))
|
||||
|
||||
decode = execute # TODO: remove
|
||||
|
||||
|
||||
class VAEDecodeAudioTiled(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="VAEDecodeAudioTiled",
|
||||
search_aliases=["latent to audio"],
|
||||
display_name="VAE Decode Audio (Tiled)",
|
||||
category="latent/audio",
|
||||
inputs=[
|
||||
IO.Latent.Input("samples"),
|
||||
IO.Vae.Input("vae"),
|
||||
IO.Int.Input("tile_size", default=512, min=32, max=8192, step=8),
|
||||
IO.Int.Input("overlap", default=64, min=0, max=1024, step=8),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, vae, samples, tile_size, overlap) -> IO.NodeOutput:
|
||||
return IO.NodeOutput(vae_decode_audio(vae, samples, tile_size, overlap))
|
||||
|
||||
|
||||
class SaveAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SaveAudio",
|
||||
search_aliases=["export flac"],
|
||||
display_name="Save Audio (FLAC)",
|
||||
category="audio",
|
||||
essentials_category="Audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.String.Input("filename_prefix", default="audio/ComfyUI"),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, filename_prefix="ComfyUI", format="flac") -> IO.NodeOutput:
|
||||
return IO.NodeOutput(
|
||||
ui=UI.AudioSaveHelper.get_save_audio_ui(audio, filename_prefix=filename_prefix, cls=cls, format=format)
|
||||
)
|
||||
|
||||
save_flac = execute # TODO: remove
|
||||
|
||||
|
||||
class SaveAudioMP3(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SaveAudioMP3",
|
||||
search_aliases=["export mp3"],
|
||||
display_name="Save Audio (MP3)",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.String.Input("filename_prefix", default="audio/ComfyUI"),
|
||||
IO.Combo.Input("quality", options=["V0", "128k", "320k"], default="V0"),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, filename_prefix="ComfyUI", format="mp3", quality="128k") -> IO.NodeOutput:
|
||||
return IO.NodeOutput(
|
||||
ui=UI.AudioSaveHelper.get_save_audio_ui(
|
||||
audio, filename_prefix=filename_prefix, cls=cls, format=format, quality=quality
|
||||
)
|
||||
)
|
||||
|
||||
save_mp3 = execute # TODO: remove
|
||||
|
||||
|
||||
class SaveAudioOpus(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SaveAudioOpus",
|
||||
search_aliases=["export opus"],
|
||||
display_name="Save Audio (Opus)",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.String.Input("filename_prefix", default="audio/ComfyUI"),
|
||||
IO.Combo.Input("quality", options=["64k", "96k", "128k", "192k", "320k"], default="128k"),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, filename_prefix="ComfyUI", format="opus", quality="V3") -> IO.NodeOutput:
|
||||
return IO.NodeOutput(
|
||||
ui=UI.AudioSaveHelper.get_save_audio_ui(
|
||||
audio, filename_prefix=filename_prefix, cls=cls, format=format, quality=quality
|
||||
)
|
||||
)
|
||||
|
||||
save_opus = execute # TODO: remove
|
||||
|
||||
|
||||
class PreviewAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="PreviewAudio",
|
||||
search_aliases=["play audio"],
|
||||
display_name="Preview Audio",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio) -> IO.NodeOutput:
|
||||
return IO.NodeOutput(ui=UI.PreviewAudio(audio, cls=cls))
|
||||
|
||||
save_flac = execute # TODO: remove
|
||||
|
||||
|
||||
def f32_pcm(wav: torch.Tensor) -> torch.Tensor:
|
||||
"""Convert audio to float 32 bits PCM format."""
|
||||
if wav.dtype.is_floating_point:
|
||||
return wav
|
||||
elif wav.dtype == torch.int16:
|
||||
return wav.float() / (2 ** 15)
|
||||
elif wav.dtype == torch.int32:
|
||||
return wav.float() / (2 ** 31)
|
||||
raise ValueError(f"Unsupported wav dtype: {wav.dtype}")
|
||||
|
||||
def load(filepath: str) -> tuple[torch.Tensor, int]:
|
||||
with av.open(filepath) as af:
|
||||
if not af.streams.audio:
|
||||
raise ValueError("No audio stream found in the file.")
|
||||
|
||||
stream = af.streams.audio[0]
|
||||
sr = stream.codec_context.sample_rate
|
||||
n_channels = stream.channels
|
||||
|
||||
frames = []
|
||||
length = 0
|
||||
for frame in af.decode(streams=stream.index):
|
||||
buf = torch.from_numpy(frame.to_ndarray())
|
||||
if buf.shape[0] != n_channels:
|
||||
buf = buf.view(-1, n_channels).t()
|
||||
|
||||
frames.append(buf)
|
||||
length += buf.shape[1]
|
||||
|
||||
if not frames:
|
||||
raise ValueError("No audio frames decoded.")
|
||||
|
||||
wav = torch.cat(frames, dim=1)
|
||||
wav = f32_pcm(wav)
|
||||
return wav, sr
|
||||
|
||||
class LoadAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
input_dir = folder_paths.get_input_directory()
|
||||
files = folder_paths.filter_files_content_types(os.listdir(input_dir), ["audio", "video"])
|
||||
return IO.Schema(
|
||||
node_id="LoadAudio",
|
||||
search_aliases=["import audio", "open audio", "audio file"],
|
||||
display_name="Load Audio",
|
||||
category="audio",
|
||||
essentials_category="Audio",
|
||||
inputs=[
|
||||
IO.Combo.Input("audio", upload=IO.UploadType.audio, options=sorted(files)),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio) -> IO.NodeOutput:
|
||||
audio_path = folder_paths.get_annotated_filepath(audio)
|
||||
waveform, sample_rate = load(audio_path)
|
||||
audio = {"waveform": waveform.unsqueeze(0), "sample_rate": sample_rate}
|
||||
return IO.NodeOutput(audio)
|
||||
|
||||
@classmethod
|
||||
def fingerprint_inputs(cls, audio):
|
||||
image_path = folder_paths.get_annotated_filepath(audio)
|
||||
m = hashlib.sha256()
|
||||
with open(image_path, 'rb') as f:
|
||||
m.update(f.read())
|
||||
return m.digest().hex()
|
||||
|
||||
@classmethod
|
||||
def validate_inputs(cls, audio):
|
||||
if not folder_paths.exists_annotated_filepath(audio):
|
||||
return "Invalid audio file: {}".format(audio)
|
||||
return True
|
||||
|
||||
load = execute # TODO: remove
|
||||
|
||||
|
||||
class RecordAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="RecordAudio",
|
||||
search_aliases=["microphone input", "audio capture", "voice input"],
|
||||
display_name="Record Audio",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Custom("AUDIO_RECORD").Input("audio"),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio) -> IO.NodeOutput:
|
||||
audio_path = folder_paths.get_annotated_filepath(audio)
|
||||
|
||||
waveform, sample_rate = load(audio_path)
|
||||
audio = {"waveform": waveform.unsqueeze(0), "sample_rate": sample_rate}
|
||||
return IO.NodeOutput(audio)
|
||||
|
||||
load = execute # TODO: remove
|
||||
|
||||
|
||||
class TrimAudioDuration(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="TrimAudioDuration",
|
||||
search_aliases=["cut audio", "audio clip", "shorten audio"],
|
||||
display_name="Trim Audio Duration",
|
||||
description="Trim audio tensor into chosen time range.",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.Float.Input(
|
||||
"start_index",
|
||||
default=0.0,
|
||||
min=-0xffffffffffffffff,
|
||||
max=0xffffffffffffffff,
|
||||
step=0.01,
|
||||
tooltip="Start time in seconds, can be negative to count from the end (supports sub-seconds).",
|
||||
),
|
||||
IO.Float.Input(
|
||||
"duration",
|
||||
default=60.0,
|
||||
min=0.0,
|
||||
step=0.01,
|
||||
tooltip="Duration in seconds",
|
||||
),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, start_index, duration) -> IO.NodeOutput:
|
||||
waveform = audio["waveform"]
|
||||
sample_rate = audio["sample_rate"]
|
||||
audio_length = waveform.shape[-1]
|
||||
|
||||
if start_index < 0:
|
||||
start_frame = audio_length + int(round(start_index * sample_rate))
|
||||
else:
|
||||
start_frame = int(round(start_index * sample_rate))
|
||||
start_frame = max(0, min(start_frame, audio_length - 1))
|
||||
|
||||
end_frame = start_frame + int(round(duration * sample_rate))
|
||||
end_frame = max(0, min(end_frame, audio_length))
|
||||
|
||||
if start_frame >= end_frame:
|
||||
raise ValueError("AudioTrim: Start time must be less than end time and be within the audio length.")
|
||||
|
||||
return IO.NodeOutput({"waveform": waveform[..., start_frame:end_frame], "sample_rate": sample_rate})
|
||||
|
||||
trim = execute # TODO: remove
|
||||
|
||||
|
||||
class SplitAudioChannels(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SplitAudioChannels",
|
||||
search_aliases=["stereo to mono"],
|
||||
display_name="Split Audio Channels",
|
||||
description="Separates the audio into left and right channels.",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
],
|
||||
outputs=[
|
||||
IO.Audio.Output(display_name="left"),
|
||||
IO.Audio.Output(display_name="right"),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio) -> IO.NodeOutput:
|
||||
waveform = audio["waveform"]
|
||||
sample_rate = audio["sample_rate"]
|
||||
|
||||
if waveform.shape[1] != 2:
|
||||
raise ValueError("AudioSplit: Input audio has only one channel.")
|
||||
|
||||
left_channel = waveform[..., 0:1, :]
|
||||
right_channel = waveform[..., 1:2, :]
|
||||
|
||||
return IO.NodeOutput({"waveform": left_channel, "sample_rate": sample_rate}, {"waveform": right_channel, "sample_rate": sample_rate})
|
||||
|
||||
separate = execute # TODO: remove
|
||||
|
||||
class JoinAudioChannels(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="JoinAudioChannels",
|
||||
display_name="Join Audio Channels",
|
||||
description="Joins left and right mono audio channels into a stereo audio.",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio_left"),
|
||||
IO.Audio.Input("audio_right"),
|
||||
],
|
||||
outputs=[
|
||||
IO.Audio.Output(display_name="audio"),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio_left, audio_right) -> IO.NodeOutput:
|
||||
waveform_left = audio_left["waveform"]
|
||||
sample_rate_left = audio_left["sample_rate"]
|
||||
waveform_right = audio_right["waveform"]
|
||||
sample_rate_right = audio_right["sample_rate"]
|
||||
|
||||
if waveform_left.shape[1] != 1 or waveform_right.shape[1] != 1:
|
||||
raise ValueError("AudioJoin: Both input audios must be mono.")
|
||||
|
||||
# Handle different sample rates by resampling to the higher rate
|
||||
waveform_left, waveform_right, output_sample_rate = match_audio_sample_rates(
|
||||
waveform_left, sample_rate_left, waveform_right, sample_rate_right
|
||||
)
|
||||
|
||||
# Handle different lengths by trimming to the shorter length
|
||||
length_left = waveform_left.shape[-1]
|
||||
length_right = waveform_right.shape[-1]
|
||||
|
||||
if length_left != length_right:
|
||||
min_length = min(length_left, length_right)
|
||||
if length_left > min_length:
|
||||
logging.info(f"JoinAudioChannels: Trimming left channel from {length_left} to {min_length} samples.")
|
||||
waveform_left = waveform_left[..., :min_length]
|
||||
if length_right > min_length:
|
||||
logging.info(f"JoinAudioChannels: Trimming right channel from {length_right} to {min_length} samples.")
|
||||
waveform_right = waveform_right[..., :min_length]
|
||||
|
||||
# Join the channels into stereo
|
||||
left_channel = waveform_left[..., 0:1, :]
|
||||
right_channel = waveform_right[..., 0:1, :]
|
||||
stereo_waveform = torch.cat([left_channel, right_channel], dim=1)
|
||||
|
||||
return IO.NodeOutput({"waveform": stereo_waveform, "sample_rate": output_sample_rate})
|
||||
|
||||
|
||||
def match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2):
|
||||
if sample_rate_1 != sample_rate_2:
|
||||
if sample_rate_1 > sample_rate_2:
|
||||
waveform_2 = torchaudio.functional.resample(waveform_2, sample_rate_2, sample_rate_1)
|
||||
output_sample_rate = sample_rate_1
|
||||
logging.info(f"Resampling audio2 from {sample_rate_2}Hz to {sample_rate_1}Hz for merging.")
|
||||
else:
|
||||
waveform_1 = torchaudio.functional.resample(waveform_1, sample_rate_1, sample_rate_2)
|
||||
output_sample_rate = sample_rate_2
|
||||
logging.info(f"Resampling audio1 from {sample_rate_1}Hz to {sample_rate_2}Hz for merging.")
|
||||
else:
|
||||
output_sample_rate = sample_rate_1
|
||||
return waveform_1, waveform_2, output_sample_rate
|
||||
|
||||
|
||||
class AudioConcat(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="AudioConcat",
|
||||
search_aliases=["join audio", "combine audio", "append audio"],
|
||||
display_name="Audio Concat",
|
||||
description="Concatenates the audio1 to audio2 in the specified direction.",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio1"),
|
||||
IO.Audio.Input("audio2"),
|
||||
IO.Combo.Input(
|
||||
"direction",
|
||||
options=['after', 'before'],
|
||||
default="after",
|
||||
tooltip="Whether to append audio2 after or before audio1.",
|
||||
)
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio1, audio2, direction) -> IO.NodeOutput:
|
||||
waveform_1 = audio1["waveform"]
|
||||
waveform_2 = audio2["waveform"]
|
||||
sample_rate_1 = audio1["sample_rate"]
|
||||
sample_rate_2 = audio2["sample_rate"]
|
||||
|
||||
if waveform_1.shape[1] == 1:
|
||||
waveform_1 = waveform_1.repeat(1, 2, 1)
|
||||
logging.info("AudioConcat: Converted mono audio1 to stereo by duplicating the channel.")
|
||||
if waveform_2.shape[1] == 1:
|
||||
waveform_2 = waveform_2.repeat(1, 2, 1)
|
||||
logging.info("AudioConcat: Converted mono audio2 to stereo by duplicating the channel.")
|
||||
|
||||
waveform_1, waveform_2, output_sample_rate = match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2)
|
||||
|
||||
if direction == 'after':
|
||||
concatenated_audio = torch.cat((waveform_1, waveform_2), dim=2)
|
||||
elif direction == 'before':
|
||||
concatenated_audio = torch.cat((waveform_2, waveform_1), dim=2)
|
||||
|
||||
return IO.NodeOutput({"waveform": concatenated_audio, "sample_rate": output_sample_rate})
|
||||
|
||||
concat = execute # TODO: remove
|
||||
|
||||
|
||||
class AudioMerge(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="AudioMerge",
|
||||
search_aliases=["mix audio", "overlay audio", "layer audio"],
|
||||
display_name="Audio Merge",
|
||||
description="Combine two audio tracks by overlaying their waveforms.",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio1"),
|
||||
IO.Audio.Input("audio2"),
|
||||
IO.Combo.Input(
|
||||
"merge_method",
|
||||
options=["add", "mean", "subtract", "multiply"],
|
||||
tooltip="The method used to combine the audio waveforms.",
|
||||
)
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio1, audio2, merge_method) -> IO.NodeOutput:
|
||||
waveform_1 = audio1["waveform"]
|
||||
waveform_2 = audio2["waveform"]
|
||||
sample_rate_1 = audio1["sample_rate"]
|
||||
sample_rate_2 = audio2["sample_rate"]
|
||||
|
||||
waveform_1, waveform_2, output_sample_rate = match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2)
|
||||
|
||||
length_1 = waveform_1.shape[-1]
|
||||
length_2 = waveform_2.shape[-1]
|
||||
|
||||
if length_2 > length_1:
|
||||
logging.info(f"AudioMerge: Trimming audio2 from {length_2} to {length_1} samples to match audio1 length.")
|
||||
waveform_2 = waveform_2[..., :length_1]
|
||||
elif length_2 < length_1:
|
||||
logging.info(f"AudioMerge: Padding audio2 from {length_2} to {length_1} samples to match audio1 length.")
|
||||
pad_shape = list(waveform_2.shape)
|
||||
pad_shape[-1] = length_1 - length_2
|
||||
pad_tensor = torch.zeros(pad_shape, dtype=waveform_2.dtype, device=waveform_2.device)
|
||||
waveform_2 = torch.cat((waveform_2, pad_tensor), dim=-1)
|
||||
|
||||
if merge_method == "add":
|
||||
waveform = waveform_1 + waveform_2
|
||||
elif merge_method == "subtract":
|
||||
waveform = waveform_1 - waveform_2
|
||||
elif merge_method == "multiply":
|
||||
waveform = waveform_1 * waveform_2
|
||||
elif merge_method == "mean":
|
||||
waveform = (waveform_1 + waveform_2) / 2
|
||||
|
||||
max_val = waveform.abs().max()
|
||||
if max_val > 1.0:
|
||||
waveform = waveform / max_val
|
||||
|
||||
return IO.NodeOutput({"waveform": waveform, "sample_rate": output_sample_rate})
|
||||
|
||||
merge = execute # TODO: remove
|
||||
|
||||
|
||||
class AudioAdjustVolume(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="AudioAdjustVolume",
|
||||
search_aliases=["audio gain", "loudness", "audio level"],
|
||||
display_name="Audio Adjust Volume",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.Int.Input(
|
||||
"volume",
|
||||
default=1,
|
||||
min=-100,
|
||||
max=100,
|
||||
tooltip="Volume adjustment in decibels (dB). 0 = no change, +6 = double, -6 = half, etc",
|
||||
)
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, volume) -> IO.NodeOutput:
|
||||
if volume == 0:
|
||||
return IO.NodeOutput(audio)
|
||||
waveform = audio["waveform"]
|
||||
sample_rate = audio["sample_rate"]
|
||||
|
||||
gain = 10 ** (volume / 20)
|
||||
waveform = waveform * gain
|
||||
|
||||
return IO.NodeOutput({"waveform": waveform, "sample_rate": sample_rate})
|
||||
|
||||
adjust_volume = execute # TODO: remove
|
||||
|
||||
|
||||
class EmptyAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="EmptyAudio",
|
||||
search_aliases=["blank audio"],
|
||||
display_name="Empty Audio",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Float.Input(
|
||||
"duration",
|
||||
default=60.0,
|
||||
min=0.0,
|
||||
max=0xffffffffffffffff,
|
||||
step=0.01,
|
||||
tooltip="Duration of the empty audio clip in seconds",
|
||||
),
|
||||
IO.Int.Input(
|
||||
"sample_rate",
|
||||
default=44100,
|
||||
tooltip="Sample rate of the empty audio clip.",
|
||||
min=1,
|
||||
max=192000,
|
||||
advanced=True,
|
||||
),
|
||||
IO.Int.Input(
|
||||
"channels",
|
||||
default=2,
|
||||
min=1,
|
||||
max=2,
|
||||
tooltip="Number of audio channels (1 for mono, 2 for stereo).",
|
||||
advanced=True,
|
||||
),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, duration, sample_rate, channels) -> IO.NodeOutput:
|
||||
num_samples = int(round(duration * sample_rate))
|
||||
waveform = torch.zeros((1, channels, num_samples), dtype=torch.float32)
|
||||
return IO.NodeOutput({"waveform": waveform, "sample_rate": sample_rate})
|
||||
|
||||
create_empty_audio = execute # TODO: remove
|
||||
|
||||
|
||||
class AudioEqualizer3Band(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="AudioEqualizer3Band",
|
||||
search_aliases=["eq", "bass boost", "treble boost", "equalizer"],
|
||||
display_name="Audio Equalizer (3-Band)",
|
||||
category="audio",
|
||||
is_experimental=True,
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.Float.Input("low_gain_dB", default=0.0, min=-24.0, max=24.0, step=0.1, tooltip="Gain for Low frequencies (Bass)"),
|
||||
IO.Int.Input("low_freq", default=100, min=20, max=500, tooltip="Cutoff frequency for Low shelf"),
|
||||
IO.Float.Input("mid_gain_dB", default=0.0, min=-24.0, max=24.0, step=0.1, tooltip="Gain for Mid frequencies"),
|
||||
IO.Int.Input("mid_freq", default=1000, min=200, max=4000, tooltip="Center frequency for Mids"),
|
||||
IO.Float.Input("mid_q", default=0.707, min=0.1, max=10.0, step=0.1, tooltip="Q factor (bandwidth) for Mids"),
|
||||
IO.Float.Input("high_gain_dB", default=0.0, min=-24.0, max=24.0, step=0.1, tooltip="Gain for High frequencies (Treble)"),
|
||||
IO.Int.Input("high_freq", default=5000, min=1000, max=15000, tooltip="Cutoff frequency for High shelf"),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, low_gain_dB, low_freq, mid_gain_dB, mid_freq, mid_q, high_gain_dB, high_freq) -> IO.NodeOutput:
|
||||
waveform = audio["waveform"]
|
||||
sample_rate = audio["sample_rate"]
|
||||
eq_waveform = waveform.clone()
|
||||
|
||||
# 1. Apply Low Shelf (Bass)
|
||||
if low_gain_dB != 0:
|
||||
eq_waveform = torchaudio.functional.bass_biquad(
|
||||
eq_waveform,
|
||||
sample_rate,
|
||||
gain=low_gain_dB,
|
||||
central_freq=float(low_freq),
|
||||
Q=0.707
|
||||
)
|
||||
|
||||
# 2. Apply Peaking EQ (Mids)
|
||||
if mid_gain_dB != 0:
|
||||
eq_waveform = torchaudio.functional.equalizer_biquad(
|
||||
eq_waveform,
|
||||
sample_rate,
|
||||
center_freq=float(mid_freq),
|
||||
gain=mid_gain_dB,
|
||||
Q=mid_q
|
||||
)
|
||||
|
||||
# 3. Apply High Shelf (Treble)
|
||||
if high_gain_dB != 0:
|
||||
eq_waveform = torchaudio.functional.treble_biquad(
|
||||
eq_waveform,
|
||||
sample_rate,
|
||||
gain=high_gain_dB,
|
||||
central_freq=float(high_freq),
|
||||
Q=0.707
|
||||
)
|
||||
|
||||
return IO.NodeOutput({"waveform": eq_waveform, "sample_rate": sample_rate})
|
||||
|
||||
|
||||
class AudioExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[IO.ComfyNode]]:
|
||||
return [
|
||||
EmptyLatentAudio,
|
||||
VAEEncodeAudio,
|
||||
VAEDecodeAudio,
|
||||
VAEDecodeAudioTiled,
|
||||
SaveAudio,
|
||||
SaveAudioMP3,
|
||||
SaveAudioOpus,
|
||||
LoadAudio,
|
||||
PreviewAudio,
|
||||
ConditioningStableAudio,
|
||||
RecordAudio,
|
||||
TrimAudioDuration,
|
||||
SplitAudioChannels,
|
||||
JoinAudioChannels,
|
||||
AudioConcat,
|
||||
AudioMerge,
|
||||
AudioAdjustVolume,
|
||||
EmptyAudio,
|
||||
AudioEqualizer3Band,
|
||||
]
|
||||
|
||||
async def comfy_entrypoint() -> AudioExtension:
|
||||
return AudioExtension()
|
||||
@@ -0,0 +1,44 @@
|
||||
import json
|
||||
from comfy.comfy_types.node_typing import IO
|
||||
|
||||
# Preview Any - original implement from
|
||||
# https://github.com/rgthree/rgthree-comfy/blob/main/py/display_any.py
|
||||
# upstream requested in https://github.com/Kosinkadink/rfcs/blob/main/rfcs/0000-corenodes.md#preview-nodes
|
||||
class PreviewAny():
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {"source": (IO.ANY, {})},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ()
|
||||
FUNCTION = "main"
|
||||
OUTPUT_NODE = True
|
||||
|
||||
CATEGORY = "utils"
|
||||
SEARCH_ALIASES = ["show output", "inspect", "debug", "print value", "show text"]
|
||||
|
||||
def main(self, source=None):
|
||||
value = 'None'
|
||||
if isinstance(source, str):
|
||||
value = source
|
||||
elif isinstance(source, (int, float, bool)):
|
||||
value = str(source)
|
||||
elif source is not None:
|
||||
try:
|
||||
value = json.dumps(source, indent=4)
|
||||
except Exception:
|
||||
try:
|
||||
value = str(source)
|
||||
except Exception:
|
||||
value = 'source exists, but could not be serialized.'
|
||||
|
||||
return {"ui": {"text": (value,)}}
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"PreviewAny": PreviewAny,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"PreviewAny": "Preview as Text",
|
||||
}
|
||||
@@ -0,0 +1,496 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import time
|
||||
import mimetypes
|
||||
import logging
|
||||
from typing import Literal, List
|
||||
from collections.abc import Collection
|
||||
|
||||
from comfy.cli_args import args
|
||||
|
||||
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.pt2', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
|
||||
|
||||
folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {}
|
||||
|
||||
# --base-directory - Resets all default paths configured in folder_paths with a new base path
|
||||
if args.base_directory:
|
||||
base_path = os.path.abspath(args.base_directory)
|
||||
else:
|
||||
base_path = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
models_dir = os.path.join(base_path, "models")
|
||||
folder_names_and_paths["checkpoints"] = ([os.path.join(models_dir, "checkpoints")], supported_pt_extensions)
|
||||
folder_names_and_paths["configs"] = ([os.path.join(models_dir, "configs")], [".yaml"])
|
||||
|
||||
folder_names_and_paths["loras"] = ([os.path.join(models_dir, "loras")], supported_pt_extensions)
|
||||
folder_names_and_paths["vae"] = ([os.path.join(models_dir, "vae")], supported_pt_extensions)
|
||||
folder_names_and_paths["text_encoders"] = ([os.path.join(models_dir, "text_encoders"), os.path.join(models_dir, "clip")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusion_models"] = ([os.path.join(models_dir, "unet"), os.path.join(models_dir, "diffusion_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["clip_vision"] = ([os.path.join(models_dir, "clip_vision")], supported_pt_extensions)
|
||||
folder_names_and_paths["style_models"] = ([os.path.join(models_dir, "style_models")], supported_pt_extensions)
|
||||
folder_names_and_paths["embeddings"] = ([os.path.join(models_dir, "embeddings")], supported_pt_extensions)
|
||||
folder_names_and_paths["diffusers"] = ([os.path.join(models_dir, "diffusers")], ["folder"])
|
||||
folder_names_and_paths["vae_approx"] = ([os.path.join(models_dir, "vae_approx")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["controlnet"] = ([os.path.join(models_dir, "controlnet"), os.path.join(models_dir, "t2i_adapter")], supported_pt_extensions)
|
||||
folder_names_and_paths["gligen"] = ([os.path.join(models_dir, "gligen")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["upscale_models"] = ([os.path.join(models_dir, "upscale_models")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["latent_upscale_models"] = ([os.path.join(models_dir, "latent_upscale_models")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["custom_nodes"] = ([os.path.join(base_path, "custom_nodes")], set())
|
||||
|
||||
folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetworks")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""})
|
||||
|
||||
folder_names_and_paths["model_patches"] = ([os.path.join(models_dir, "model_patches")], supported_pt_extensions)
|
||||
|
||||
folder_names_and_paths["audio_encoders"] = ([os.path.join(models_dir, "audio_encoders")], supported_pt_extensions)
|
||||
|
||||
output_directory = os.path.join(base_path, "output")
|
||||
temp_directory = os.path.join(base_path, "temp")
|
||||
input_directory = os.path.join(base_path, "input")
|
||||
user_directory = os.path.join(base_path, "user")
|
||||
|
||||
filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
|
||||
class CacheHelper:
|
||||
"""
|
||||
Helper class for managing file list cache data.
|
||||
"""
|
||||
def __init__(self):
|
||||
self.cache: dict[str, tuple[list[str], dict[str, float], float]] = {}
|
||||
self.active = False
|
||||
|
||||
def get(self, key: str, default=None) -> tuple[list[str], dict[str, float], float]:
|
||||
if not self.active:
|
||||
return default
|
||||
return self.cache.get(key, default)
|
||||
|
||||
def set(self, key: str, value: tuple[list[str], dict[str, float], float]) -> None:
|
||||
if self.active:
|
||||
self.cache[key] = value
|
||||
|
||||
def clear(self):
|
||||
self.cache.clear()
|
||||
|
||||
def __enter__(self):
|
||||
self.active = True
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.active = False
|
||||
self.clear()
|
||||
|
||||
cache_helper = CacheHelper()
|
||||
|
||||
extension_mimetypes_cache = {
|
||||
"webp" : "image",
|
||||
"fbx" : "model",
|
||||
}
|
||||
|
||||
def map_legacy(folder_name: str) -> str:
|
||||
legacy = {"unet": "diffusion_models",
|
||||
"clip": "text_encoders"}
|
||||
return legacy.get(folder_name, folder_name)
|
||||
|
||||
if not os.path.exists(input_directory):
|
||||
try:
|
||||
os.makedirs(input_directory)
|
||||
except:
|
||||
logging.error("Failed to create input directory")
|
||||
|
||||
def set_output_directory(output_dir: str) -> None:
|
||||
global output_directory
|
||||
output_directory = output_dir
|
||||
|
||||
def set_temp_directory(temp_dir: str) -> None:
|
||||
global temp_directory
|
||||
temp_directory = temp_dir
|
||||
|
||||
def set_input_directory(input_dir: str) -> None:
|
||||
global input_directory
|
||||
input_directory = input_dir
|
||||
|
||||
def get_output_directory() -> str:
|
||||
global output_directory
|
||||
return output_directory
|
||||
|
||||
def get_temp_directory() -> str:
|
||||
global temp_directory
|
||||
return temp_directory
|
||||
|
||||
def get_input_directory() -> str:
|
||||
global input_directory
|
||||
return input_directory
|
||||
|
||||
def get_user_directory() -> str:
|
||||
return user_directory
|
||||
|
||||
def set_user_directory(user_dir: str) -> None:
|
||||
global user_directory
|
||||
user_directory = user_dir
|
||||
|
||||
|
||||
# System User Protection - Protects system directories from HTTP endpoint access
|
||||
# System Users are internal-only users that cannot be accessed via HTTP endpoints.
|
||||
# They use the '__' prefix convention (similar to Python's private member convention).
|
||||
SYSTEM_USER_PREFIX = "__"
|
||||
|
||||
|
||||
def get_system_user_directory(name: str = "system") -> str:
|
||||
"""
|
||||
Get the path to a System User directory.
|
||||
|
||||
System User directories (prefixed with '__') are only accessible via internal API,
|
||||
not through HTTP endpoints. Use this for storing system-internal data that
|
||||
should not be exposed to users.
|
||||
|
||||
Args:
|
||||
name: System user name (e.g., "system", "cache"). Must be alphanumeric
|
||||
with underscores allowed, but cannot start with underscore.
|
||||
|
||||
Returns:
|
||||
Absolute path to the system user directory.
|
||||
|
||||
Raises:
|
||||
ValueError: If name is empty, invalid, or starts with underscore.
|
||||
|
||||
Example:
|
||||
>>> get_system_user_directory("cache")
|
||||
'/path/to/user/__cache'
|
||||
"""
|
||||
if not name or not isinstance(name, str):
|
||||
raise ValueError("System user name cannot be empty")
|
||||
if not name.replace("_", "").isalnum():
|
||||
raise ValueError(f"Invalid system user name: '{name}'")
|
||||
if name.startswith("_"):
|
||||
raise ValueError("System user name should not start with underscore")
|
||||
return os.path.join(get_user_directory(), f"{SYSTEM_USER_PREFIX}{name}")
|
||||
|
||||
|
||||
def get_public_user_directory(user_id: str) -> str | None:
|
||||
"""
|
||||
Get the path to a Public User directory for HTTP endpoint access.
|
||||
|
||||
This function provides structural security by returning None for any
|
||||
System User (prefixed with '__'). All HTTP endpoints should use this
|
||||
function instead of directly constructing user paths.
|
||||
|
||||
Args:
|
||||
user_id: User identifier from HTTP request.
|
||||
|
||||
Returns:
|
||||
Absolute path to the user directory, or None if user_id is invalid
|
||||
or refers to a System User.
|
||||
|
||||
Example:
|
||||
>>> get_public_user_directory("default")
|
||||
'/path/to/user/default'
|
||||
>>> get_public_user_directory("__system")
|
||||
None
|
||||
"""
|
||||
if not user_id or not isinstance(user_id, str):
|
||||
return None
|
||||
if user_id.startswith(SYSTEM_USER_PREFIX):
|
||||
return None
|
||||
return os.path.join(get_user_directory(), user_id)
|
||||
|
||||
|
||||
#NOTE: used in http server so don't put folders that should not be accessed remotely
|
||||
def get_directory_by_type(type_name: str) -> str | None:
|
||||
if type_name == "output":
|
||||
return get_output_directory()
|
||||
if type_name == "temp":
|
||||
return get_temp_directory()
|
||||
if type_name == "input":
|
||||
return get_input_directory()
|
||||
return None
|
||||
|
||||
def filter_files_content_types(files: list[str], content_types: List[Literal["image", "video", "audio", "model"]]) -> list[str]:
|
||||
"""
|
||||
Example:
|
||||
files = os.listdir(folder_paths.get_input_directory())
|
||||
videos = filter_files_content_types(files, ["video"])
|
||||
|
||||
Note:
|
||||
- 'model' in MIME context refers to 3D models, not files containing trained weights and parameters
|
||||
"""
|
||||
global extension_mimetypes_cache
|
||||
result = []
|
||||
for file in files:
|
||||
extension = file.split('.')[-1]
|
||||
if extension not in extension_mimetypes_cache:
|
||||
mime_type, _ = mimetypes.guess_type(file, strict=False)
|
||||
if not mime_type:
|
||||
continue
|
||||
content_type = mime_type.split('/')[0]
|
||||
extension_mimetypes_cache[extension] = content_type
|
||||
else:
|
||||
content_type = extension_mimetypes_cache[extension]
|
||||
|
||||
if content_type in content_types:
|
||||
result.append(file)
|
||||
return result
|
||||
|
||||
# determine base_dir rely on annotation if name is 'filename.ext [annotation]' format
|
||||
# otherwise use default_path as base_dir
|
||||
def annotated_filepath(name: str) -> tuple[str, str | None]:
|
||||
if name.endswith("[output]"):
|
||||
base_dir = get_output_directory()
|
||||
name = name[:-9]
|
||||
elif name.endswith("[input]"):
|
||||
base_dir = get_input_directory()
|
||||
name = name[:-8]
|
||||
elif name.endswith("[temp]"):
|
||||
base_dir = get_temp_directory()
|
||||
name = name[:-7]
|
||||
else:
|
||||
return name, None
|
||||
|
||||
return name, base_dir
|
||||
|
||||
|
||||
def get_annotated_filepath(name: str, default_dir: str | None=None) -> str:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
if default_dir is not None:
|
||||
base_dir = default_dir
|
||||
else:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
return os.path.join(base_dir, name)
|
||||
|
||||
|
||||
def exists_annotated_filepath(name) -> bool:
|
||||
name, base_dir = annotated_filepath(name)
|
||||
|
||||
if base_dir is None:
|
||||
base_dir = get_input_directory() # fallback path
|
||||
|
||||
filepath = os.path.join(base_dir, name)
|
||||
return os.path.exists(filepath)
|
||||
|
||||
|
||||
def add_model_folder_path(folder_name: str, full_folder_path: str, is_default: bool = False) -> None:
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name in folder_names_and_paths:
|
||||
paths, _exts = folder_names_and_paths[folder_name]
|
||||
if full_folder_path in paths:
|
||||
if is_default and paths[0] != full_folder_path:
|
||||
# If the path to the folder is not the first in the list, move it to the beginning.
|
||||
paths.remove(full_folder_path)
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
if is_default:
|
||||
paths.insert(0, full_folder_path)
|
||||
else:
|
||||
paths.append(full_folder_path)
|
||||
else:
|
||||
folder_names_and_paths[folder_name] = ([full_folder_path], set())
|
||||
|
||||
def get_folder_paths(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
return folder_names_and_paths[folder_name][0][:]
|
||||
|
||||
def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) -> tuple[list[str], dict[str, float]]:
|
||||
if not os.path.isdir(directory):
|
||||
return [], {}
|
||||
|
||||
if excluded_dir_names is None:
|
||||
excluded_dir_names = []
|
||||
|
||||
result = []
|
||||
dirs = {}
|
||||
|
||||
# Attempt to add the initial directory to dirs with error handling
|
||||
try:
|
||||
dirs[directory] = os.path.getmtime(directory)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
|
||||
|
||||
logging.debug("recursive file list on directory {}".format(directory))
|
||||
dirpath: str
|
||||
subdirs: list[str]
|
||||
filenames: list[str]
|
||||
|
||||
for dirpath, subdirs, filenames in os.walk(directory, followlinks=True, topdown=True):
|
||||
subdirs[:] = [d for d in subdirs if d not in excluded_dir_names]
|
||||
for file_name in filenames:
|
||||
try:
|
||||
relative_path = os.path.relpath(os.path.join(dirpath, file_name), directory)
|
||||
result.append(relative_path)
|
||||
except:
|
||||
logging.warning(f"Warning: Unable to access {file_name}. Skipping this file.")
|
||||
continue
|
||||
|
||||
for d in subdirs:
|
||||
path: str = os.path.join(dirpath, d)
|
||||
try:
|
||||
dirs[path] = os.path.getmtime(path)
|
||||
except FileNotFoundError:
|
||||
logging.warning(f"Warning: Unable to access {path}. Skipping this path.")
|
||||
continue
|
||||
logging.debug("found {} files".format(len(result)))
|
||||
return result, dirs
|
||||
|
||||
def filter_files_extensions(files: Collection[str], extensions: Collection[str]) -> list[str]:
|
||||
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
|
||||
|
||||
|
||||
|
||||
def get_full_path(folder_name: str, filename: str) -> str | None:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in folder_names_and_paths:
|
||||
return None
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
filename = os.path.relpath(os.path.join("/", filename), "/")
|
||||
for x in folders[0]:
|
||||
full_path = os.path.join(x, filename)
|
||||
if os.path.isfile(full_path):
|
||||
return full_path
|
||||
elif os.path.islink(full_path):
|
||||
logging.warning("WARNING path {} exists but doesn't link anywhere, skipping.".format(full_path))
|
||||
|
||||
return None
|
||||
|
||||
|
||||
def get_full_path_or_raise(folder_name: str, filename: str) -> str:
|
||||
"""
|
||||
Get the full path of a file in a folder, has to be a file
|
||||
"""
|
||||
full_path = get_full_path(folder_name, filename)
|
||||
if full_path is None:
|
||||
raise FileNotFoundError(f"Model in folder '{folder_name}' with filename '{filename}' not found.")
|
||||
return full_path
|
||||
|
||||
|
||||
def get_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
global folder_names_and_paths
|
||||
output_list = set()
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
output_folders = {}
|
||||
for x in folders[0]:
|
||||
files, folders_all = recursive_search(x, excluded_dir_names=[".git"])
|
||||
output_list.update(filter_files_extensions(files, folders[1]))
|
||||
output_folders = {**output_folders, **folders_all}
|
||||
|
||||
return sorted(list(output_list)), output_folders, time.perf_counter()
|
||||
|
||||
def cached_filename_list_(folder_name: str) -> tuple[list[str], dict[str, float], float] | None:
|
||||
strong_cache = cache_helper.get(folder_name)
|
||||
if strong_cache is not None:
|
||||
return strong_cache
|
||||
|
||||
global filename_list_cache
|
||||
global folder_names_and_paths
|
||||
folder_name = map_legacy(folder_name)
|
||||
if folder_name not in filename_list_cache:
|
||||
return None
|
||||
out = filename_list_cache[folder_name]
|
||||
|
||||
for x in out[1]:
|
||||
time_modified = out[1][x]
|
||||
folder = x
|
||||
if os.path.getmtime(folder) != time_modified:
|
||||
return None
|
||||
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
for x in folders[0]:
|
||||
if os.path.isdir(x):
|
||||
if x not in out[1]:
|
||||
return None
|
||||
|
||||
return out
|
||||
|
||||
def get_filename_list(folder_name: str) -> list[str]:
|
||||
folder_name = map_legacy(folder_name)
|
||||
out = cached_filename_list_(folder_name)
|
||||
if out is None:
|
||||
out = get_filename_list_(folder_name)
|
||||
global filename_list_cache
|
||||
filename_list_cache[folder_name] = out
|
||||
cache_helper.set(folder_name, out)
|
||||
return list(out[0])
|
||||
|
||||
def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, image_height=0) -> tuple[str, str, int, str, str]:
|
||||
def map_filename(filename: str) -> tuple[int, str]:
|
||||
prefix_len = len(os.path.basename(filename_prefix))
|
||||
prefix = filename[:prefix_len + 1]
|
||||
try:
|
||||
digits = int(filename[prefix_len + 1:].split('_')[0])
|
||||
except:
|
||||
digits = 0
|
||||
return digits, prefix
|
||||
|
||||
def compute_vars(input: str, image_width: int, image_height: int) -> str:
|
||||
input = input.replace("%width%", str(image_width))
|
||||
input = input.replace("%height%", str(image_height))
|
||||
now = time.localtime()
|
||||
input = input.replace("%year%", str(now.tm_year))
|
||||
input = input.replace("%month%", str(now.tm_mon).zfill(2))
|
||||
input = input.replace("%day%", str(now.tm_mday).zfill(2))
|
||||
input = input.replace("%hour%", str(now.tm_hour).zfill(2))
|
||||
input = input.replace("%minute%", str(now.tm_min).zfill(2))
|
||||
input = input.replace("%second%", str(now.tm_sec).zfill(2))
|
||||
return input
|
||||
|
||||
if "%" in filename_prefix:
|
||||
filename_prefix = compute_vars(filename_prefix, image_width, image_height)
|
||||
|
||||
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
|
||||
filename = os.path.basename(os.path.normpath(filename_prefix))
|
||||
|
||||
full_output_folder = os.path.join(output_dir, subfolder)
|
||||
|
||||
if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir:
|
||||
err = "**** ERROR: Saving image outside the output folder is not allowed." + \
|
||||
"\n full_output_folder: " + os.path.abspath(full_output_folder) + \
|
||||
"\n output_dir: " + output_dir + \
|
||||
"\n commonpath: " + os.path.commonpath((output_dir, os.path.abspath(full_output_folder)))
|
||||
logging.error(err)
|
||||
raise Exception(err)
|
||||
|
||||
try:
|
||||
counter = max(filter(lambda a: os.path.normcase(a[1][:-1]) == os.path.normcase(filename) and a[1][-1] == "_", map(map_filename, os.listdir(full_output_folder))))[0] + 1
|
||||
except ValueError:
|
||||
counter = 1
|
||||
except FileNotFoundError:
|
||||
os.makedirs(full_output_folder, exist_ok=True)
|
||||
counter = 1
|
||||
return full_output_folder, filename, counter, subfolder, filename_prefix
|
||||
|
||||
def get_input_subfolders() -> list[str]:
|
||||
"""Returns a list of all subfolder paths in the input directory, recursively.
|
||||
|
||||
Returns:
|
||||
List of folder paths relative to the input directory, excluding the root directory
|
||||
"""
|
||||
input_dir = get_input_directory()
|
||||
folders = []
|
||||
|
||||
try:
|
||||
if not os.path.exists(input_dir):
|
||||
return []
|
||||
|
||||
for root, dirs, _ in os.walk(input_dir):
|
||||
rel_path = os.path.relpath(root, input_dir)
|
||||
if rel_path != ".": # Only include non-root directories
|
||||
# Normalize path separators to forward slashes
|
||||
folders.append(rel_path.replace(os.sep, '/'))
|
||||
|
||||
return sorted(folders)
|
||||
except FileNotFoundError:
|
||||
return []
|
||||
@@ -0,0 +1 @@
|
||||
{"sha":"d78b780ae43fcf8c6b7c6505e6ffb4584281ceca","node_id":"C_kwDOJtwj39oAKGQ3OGI3ODBhZTQzZmNmOGM2YjdjNjUwNWU2ZmZiNDU4NDI4MWNlY2E","url":"https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/git/commits/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca","html_url":"https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/commit/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca","author":{"name":"Suzie1","email":"7.lyssa@gmail.com","date":"2024-01-24T22:44:09Z"},"committer":{"name":"Suzie1","email":"7.lyssa@gmail.com","date":"2024-01-24T22:44:09Z"},"tree":{"sha":"12c141b4c99138cd6beb2d5197574b9fe264bc74","url":"https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/git/trees/12c141b4c99138cd6beb2d5197574b9fe264bc74"},"message":"version 1.76","parents":[{"sha":"efcdf631d1be8a6cdf7246698ea13eefb7dff7ea","url":"https://api.github.com/repos/Suzie1/ComfyUI_Comfyroll_CustomNodes/git/commits/efcdf631d1be8a6cdf7246698ea13eefb7dff7ea","html_url":"https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/commit/efcdf631d1be8a6cdf7246698ea13eefb7dff7ea"}],"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,30 @@
|
||||
# By Suzie1 and RockOfFire
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to
|
||||
# deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
# and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
|
||||
"""
|
||||
@author: Suzie1
|
||||
@title: Comfyroll Studio
|
||||
@nickname: Comfyroll Studio
|
||||
@description: 175 custom nodes for artists, designers and animators.
|
||||
"""
|
||||
|
||||
from .node_mappings import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
print("------------------------------------------")
|
||||
print("\033[34mComfyroll Studio v1.76 : \033[92m 175 Nodes Loaded\033[0m")
|
||||
print("------------------------------------------")
|
||||
print("** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md")
|
||||
print("** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki")
|
||||
print("------------------------------------------")
|
||||
|
||||
|
||||
@@ -0,0 +1,532 @@
|
||||
try:
|
||||
from .nodes.nodes_core import *
|
||||
from .nodes.nodes_aspect_ratio import *
|
||||
from .nodes.nodes_list import *
|
||||
from .nodes.nodes_lora import *
|
||||
from .nodes.nodes_controlnet import *
|
||||
from .nodes.nodes_pipe import *
|
||||
from .nodes.nodes_sdxl import *
|
||||
from .nodes.nodes_model_merge import *
|
||||
from .nodes.nodes_upscale import *
|
||||
from .nodes.nodes_xygrid import *
|
||||
from .nodes.nodes_legacy import *
|
||||
except ImportError:
|
||||
print("\033[34mComfyroll Studio: \033[92mFailed to load Essential nodes\033[0m")
|
||||
|
||||
try:
|
||||
from .nodes.nodes_graphics_matplot import *
|
||||
from .nodes.nodes_graphics_text import *
|
||||
from .nodes.nodes_graphics_layout import *
|
||||
from .nodes.nodes_graphics_filter import *
|
||||
from .nodes.nodes_graphics_template import *
|
||||
from .nodes.nodes_graphics_pattern import *
|
||||
except ImportError:
|
||||
print("\033[34mComfyroll Studio: \033[92mFailed to load Graphics nodes\033[0m")
|
||||
|
||||
try:
|
||||
from .nodes.nodes_animation_interpolation import *
|
||||
from .nodes.nodes_animation_io import *
|
||||
from .nodes.nodes_animation_prompt import *
|
||||
from .nodes.nodes_animation_schedulers import *
|
||||
from .nodes.nodes_animation_schedules import *
|
||||
from .nodes.nodes_animation_lists import *
|
||||
from .nodes.nodes_animation_utils import *
|
||||
from .nodes.nodes_animation_cyclers import *
|
||||
except ImportError:
|
||||
print("\033[34mComfyroll Studio: \033[92mFailed to load Animation nodes\033[0m")
|
||||
|
||||
try:
|
||||
from .nodes.nodes_utils_logic import *
|
||||
from .nodes.nodes_utils_index import *
|
||||
from .nodes.nodes_utils_conversion import *
|
||||
from .nodes.nodes_utils_random import *
|
||||
from .nodes.nodes_utils_text import *
|
||||
from .nodes.nodes_utils_other import *
|
||||
except ImportError:
|
||||
print("\033[34mComfyroll Studio: \033[92mFailed to load Utility nodes\033[0m")
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
### Core Nodes
|
||||
"CR Image Output": CR_ImageOutput,
|
||||
"CR Latent Batch Size": CR_LatentBatchSize,
|
||||
"CR Conditioning Mixer": CR_ConditioningMixer,
|
||||
"CR Select Model": CR_SelectModel,
|
||||
"CR Seed": CR_Seed,
|
||||
"CR Prompt Text": CR_PromptText,
|
||||
"CR Combine Prompt": CR_CombinePrompt,
|
||||
"CR VAE Decode": CR_VAEDecode,
|
||||
### List Nodes
|
||||
"CR Text List": CR_TextList,
|
||||
"CR Prompt List": CR_PromptList,
|
||||
"CR Simple List": CR_SimpleList,
|
||||
"CR Float Range List": CR_FloatRangeList,
|
||||
"CR Integer Range List": CR_IntegerRangeList,
|
||||
"CR Load Text List": CR_LoadTextList,
|
||||
"CR Binary To Bit List": CR_BinaryToBitList,
|
||||
"CR Text Cycler": CR_TextCycler,
|
||||
"CR Value Cycler": CR_ValueCycler,
|
||||
### List IO
|
||||
"CR Load Image List": CR_LoadImageList,
|
||||
"CR Load Image List Plus": CR_LoadImageListPlus,
|
||||
"CR Load GIF As List": CR_LoadGIFAsList,
|
||||
"CR Font File List": CR_FontFileList,
|
||||
### List Utils
|
||||
"CR Batch Images From List": CR_MakeBatchFromImageList,
|
||||
"CR Intertwine Lists" : CR_IntertwineLists,
|
||||
"CR Repeater": CR_Repeater,
|
||||
"CR XY Product": CR_XYProduct,
|
||||
"CR Text List To String": CR_TextListToString,
|
||||
### Aspect Ratio Nodes
|
||||
"CR SD1.5 Aspect Ratio": CR_AspectRatioSD15,
|
||||
"CR SDXL Aspect Ratio": CR_SDXLAspectRatio,
|
||||
"CR Aspect Ratio": CR_AspectRatio,
|
||||
"CR Aspect Ratio Banners": CR_AspectRatioBanners,
|
||||
"CR Aspect Ratio Social Media": CR_AspectRatioSocialMedia,
|
||||
"CR_Aspect Ratio For Print": CR_AspectRatioForPrint,
|
||||
### Legacy Nodes
|
||||
"CR Image Size": CR_ImageSize,
|
||||
"CR Aspect Ratio SDXL": CR_AspectRatio_SDXL,
|
||||
"CR SDXL Prompt Mixer": CR_PromptMixer,
|
||||
"CR Seed to Int": CR_SeedToInt,
|
||||
### ControlNet Nodes
|
||||
"CR Apply ControlNet": CR_ApplyControlNet,
|
||||
"CR Multi-ControlNet Stack": CR_ControlNetStack,
|
||||
"CR Apply Multi-ControlNet": CR_ApplyControlNetStack,
|
||||
### LoRA Nodes
|
||||
"CR Load LoRA": CR_LoraLoader,
|
||||
"CR LoRA Stack": CR_LoRAStack,
|
||||
"CR Random LoRA Stack": CR_RandomLoRAStack,
|
||||
"CR Random Weight LoRA": CR_RandomWeightLoRA,
|
||||
"CR Apply LoRA Stack": CR_ApplyLoRAStack,
|
||||
### Model Merge Nodes
|
||||
"CR Apply Model Merge": CR_ApplyModelMerge,
|
||||
"CR Model Merge Stack": CR_ModelMergeStack,
|
||||
### Pipe Nodes
|
||||
"CR Data Bus In":CR_DataBusIn,
|
||||
"CR Data Bus Out":CR_DataBusOut,
|
||||
"CR 8 Channel In":CR_8ChannelIn,
|
||||
"CR 8 Channel Out":CR_8ChannelOut,
|
||||
"CR Module Pipe Loader": CR_ModulePipeLoader,
|
||||
"CR Module Input": CR_ModuleInput,
|
||||
"CR Module Output": CR_ModuleOutput,
|
||||
"CR Image Pipe In": CR_ImagePipeIn,
|
||||
"CR Image Pipe Edit": CR_ImagePipeEdit,
|
||||
"CR Image Pipe Out": CR_ImagePipeOut,
|
||||
"CR Pipe Switch": CR_InputSwitchPipe,
|
||||
### SDXL Nodes
|
||||
"CR SDXL Prompt Mix Presets": CR_PromptMixPresets,
|
||||
"CR SDXL Style Text": CR_SDXLStyleText,
|
||||
"CR SDXL Base Prompt Encoder": CR_SDXLBasePromptEncoder,
|
||||
### Upscale Nodes
|
||||
"CR Multi Upscale Stack": CR_MultiUpscaleStack,
|
||||
"CR Upscale Image": CR_UpscaleImage,
|
||||
"CR Apply Multi Upscale": CR_ApplyMultiUpscale,
|
||||
### XY Grid Nodes
|
||||
"CR XY List": CR_XYList,
|
||||
"CR XY Interpolate": CR_XYInterpolate,
|
||||
"CR XY From Folder": CR_XYFromFolder,
|
||||
"CR XY Save Grid Image": CR_XYSaveGridImage,
|
||||
"CR XY Index": CR_XYIndex,
|
||||
#"CR XYZ Index": CR_XYZIndex,
|
||||
### Graphics Pattern
|
||||
"CR Halftone Grid": CR_HalftoneGrid,
|
||||
"CR Color Bars": CR_ColorBars,
|
||||
"CR Style Bars": CR_StyleBars,
|
||||
"CR Checker Pattern": CR_CheckerPattern,
|
||||
"CR Polygons": CR_Polygons,
|
||||
"CR Color Gradient": CR_ColorGradient,
|
||||
"CR Radial Gradient": CR_RadialGradient,
|
||||
"CR Starburst Lines": CR_StarburstLines,
|
||||
"CR Starburst Colors": CR_StarburstColors,
|
||||
"CR Simple Binary Pattern": CR_BinaryPatternSimple,
|
||||
"CR Binary Pattern": CR_BinaryPattern,
|
||||
### Graphics Shape
|
||||
"CR Draw Shape": CR_DrawShape,
|
||||
"CR Draw Pie": CR_DrawPie,
|
||||
"CR Random Shape Pattern": CR_RandomShapePattern,
|
||||
### Graphics Text
|
||||
"CR Overlay Text": CR_OverlayText,
|
||||
"CR Draw Text": CR_DrawText,
|
||||
"CR Mask Text": CR_MaskText,
|
||||
"CR Composite Text": CR_CompositeText,
|
||||
#"CR Arabic Text RTL": CR_ArabicTextRTL,
|
||||
"CR Simple Text Watermark": CR_SimpleTextWatermark,
|
||||
"CR Select Font": CR_SelectFont,
|
||||
### Graphics Filter
|
||||
"CR Halftone Filter": CR_HalftoneFilter,
|
||||
"CR Color Tint": CR_ColorTint,
|
||||
"CR Vignette Filter": CR_VignetteFilter,
|
||||
### Graphics Layout
|
||||
"CR Page Layout": CR_PageLayout,
|
||||
"CR Image Panel": CR_ImagePanel,
|
||||
"CR Image Grid Panel": CR_ImageGridPanel,
|
||||
"CR Image Border": CR_ImageBorder,
|
||||
"CR Feathered Border": CR_FeatheredBorder,
|
||||
"CR Simple Text Panel": CR_SimpleTextPanel,
|
||||
"CR Color Panel": CR_ColorPanel,
|
||||
"CR Overlay Transparent Image": CR_OverlayTransparentImage,
|
||||
"CR Half Drop Panel": CR_HalfDropPanel,
|
||||
"CR Diamond Panel": CR_DiamondPanel,
|
||||
#"CR Simple Titles": CR_SimpleTitles,
|
||||
### Graphics Template
|
||||
"CR Simple Meme Template": CR_SimpleMemeTemplate,
|
||||
"CR Simple Banner": CR_SimpleBanner,
|
||||
"CR Comic Panel Templates": CR_ComicPanelTemplates,
|
||||
"CR Simple Image Compare": CR_SimpleImageCompare,
|
||||
"CR Thumbnail Preview": CR_ThumbnailPreview,
|
||||
"CR Seamless Checker": CR_SeamlessChecker,
|
||||
### Utils Logic
|
||||
"CR Image Input Switch": CR_ImageInputSwitch,
|
||||
"CR Image Input Switch (4 way)": CR_ImageInputSwitch4way,
|
||||
"CR Latent Input Switch": CR_LatentInputSwitch,
|
||||
"CR Conditioning Input Switch": CR_ConditioningInputSwitch,
|
||||
"CR Clip Input Switch": CR_ClipInputSwitch,
|
||||
"CR Model Input Switch": CR_ModelInputSwitch,
|
||||
"CR ControlNet Input Switch": CR_ControlNetInputSwitch,
|
||||
"CR VAE Input Switch": CR_VAEInputSwitch,
|
||||
"CR Text Input Switch": CR_TextInputSwitch,
|
||||
"CR Text Input Switch (4 way)": CR_TextInputSwitch4way,
|
||||
"CR Switch Model and CLIP": CR_ModelAndCLIPInputSwitch,
|
||||
### Utils Process
|
||||
"CR Batch Process Switch": CR_BatchProcessSwitch,
|
||||
"CR Img2Img Process Switch": CR_Img2ImgProcessSwitch,
|
||||
"CR Hires Fix Process Switch": CR_HiResFixProcessSwitch,
|
||||
### Utils Index
|
||||
"CR Index": CR_Index,
|
||||
"CR Index Increment": CR_IncrementIndex,
|
||||
"CR Index Multiply": CR_MultiplyIndex,
|
||||
"CR Index Reset": CR_IndexReset,
|
||||
"CR Trigger": CR_Trigger,
|
||||
### Utils Conversion
|
||||
"CR String To Number": CR_StringToNumber,
|
||||
"CR String To Combo": CR_StringToCombo,
|
||||
"CR Float To String": CR_FloatToString,
|
||||
"CR Float To Integer": CR_FloatToInteger,
|
||||
"CR Integer To String": CR_IntegerToString,
|
||||
"CR String To Boolean": CR_StringToBoolean,
|
||||
### Utils Random
|
||||
"CR Random Hex Color": CR_RandomHexColor,
|
||||
"CR Random RGB": CR_RandomRGB,
|
||||
"CR Random Multiline Values": CR_RandomMultilineValues,
|
||||
"CR Random Multiline Colors": CR_RandomMultilineColors,
|
||||
"CR Random RGB Gradient": CR_RandomRGBGradient,
|
||||
"CR Random Panel Codes": CR_RandomPanelCodes,
|
||||
### Utils Text
|
||||
"CR Text": CR_Text,
|
||||
"CR Multiline Text": CR_MultilineText,
|
||||
"CR Split String": CR_SplitString,
|
||||
"CR Text Concatenate": CR_TextConcatenate,
|
||||
"CR Text Replace": CR_TextReplace,
|
||||
"CR Text Length": CR_TextLength,
|
||||
"CR Text Operation": CR_TextOperation,
|
||||
"CR Text Blacklist": CR_TextBlacklist,
|
||||
"CR Save Text To File": CR_SaveTextToFile,
|
||||
### Utils Conditional
|
||||
"CR Set Value On Boolean": CR_SetValueOnBoolean,
|
||||
"CR Set Value On Binary": CR_SetValueOnBinary,
|
||||
"CR Set Value on String": CR_SetValueOnString,
|
||||
"CR Set Switch From String": CR_SetSwitchFromString,
|
||||
### Utils Other
|
||||
"CR Value": CR_Value,
|
||||
"CR Integer Multiple": CR_IntegerMultipleOf,
|
||||
"CR Clamp Value": CR_ClampValue,
|
||||
"CR Math Operation": CR_MathOperation,
|
||||
"CR Get Parameter From Prompt": CR_GetParameterFromPrompt,
|
||||
"CR Select Resize Method": CR_SelectResizeMethod,
|
||||
"CR Select ISO Size": CR_SelectISOSize,
|
||||
### Animation Nodes
|
||||
# Schedules
|
||||
"CR Simple Schedule": CR_SimpleSchedule,
|
||||
"CR Central Schedule": CR_CentralSchedule,
|
||||
"CR Combine Schedules": CR_CombineSchedules,
|
||||
"CR Output Schedule To File": CR_OutputScheduleToFile,
|
||||
"CR Load Schedule From File": CR_LoadScheduleFromFile,
|
||||
"CR Schedule Input Switch": Comfyroll_ScheduleInputSwitch,
|
||||
"CR Bit Schedule": CR_BitSchedule,
|
||||
# Schedulers
|
||||
"CR Simple Value Scheduler": CR_SimpleValueScheduler,
|
||||
"CR Simple Text Scheduler": CR_SimpleTextScheduler,
|
||||
"CR Value Scheduler": CR_ValueScheduler,
|
||||
"CR Text Scheduler": CR_TextScheduler,
|
||||
"CR Load Scheduled Models": CR_LoadScheduledModels,
|
||||
"CR Load Scheduled LoRAs": CR_LoadScheduledLoRAs,
|
||||
"CR Prompt Scheduler": CR_PromptScheduler,
|
||||
"CR Simple Prompt Scheduler": CR_SimplePromptScheduler,
|
||||
# Prompt
|
||||
"CR Keyframe List": CR_KeyframeList,
|
||||
#"CR Load Prompt Style": CR_LoadPromptStyle,
|
||||
"CR Encode Scheduled Prompts": CR_EncodeScheduledPrompts,
|
||||
# Interpolation
|
||||
"CR Gradient Float": CR_GradientFloat,
|
||||
"CR Gradient Integer": CR_GradientInteger,
|
||||
"CR Increment Float": CR_IncrementFloat,
|
||||
"CR Increment Integer": CR_IncrementInteger,
|
||||
"CR Interpolate Latents": CR_InterpolateLatents,
|
||||
# Utils
|
||||
"CR Debatch Frames": CR_DebatchFrames,
|
||||
"CR Current Frame": CR_CurrentFrame,
|
||||
#"CR Input Text List": CR_InputTextList,
|
||||
# IO
|
||||
"CR Load Animation Frames": CR_LoadAnimationFrames,
|
||||
"CR Load Flow Frames": CR_LoadFlowFrames,
|
||||
"CR Output Flow Frames": CR_OutputFlowFrames,
|
||||
### Legacy
|
||||
# Note: CR Prompt List and CR Text List names have been reused,
|
||||
# so the old versions of these nodes are no longer available
|
||||
"CR Prompt List Keyframes": CR_PromptListKeyframes,
|
||||
"CR Simple Prompt List": CR_SimplePromptList,
|
||||
"CR Simple Prompt List Keyframes": CR_SimplePromptListKeyframes,
|
||||
"CR Cycle Models": CR_CycleModels,
|
||||
"CR Cycle LoRAs": CR_CycleLoRAs,
|
||||
"CR Cycle Text": CR_CycleText,
|
||||
"CR Cycle Text Simple": CR_CycleTextSimple,
|
||||
"CR Cycle Images": CR_CycleImages,
|
||||
"CR Cycle Images Simple": CR_CycleImagesSimple,
|
||||
"CR Model List": CR_ModelList,
|
||||
"CR LoRA List": CR_LoRAList,
|
||||
"CR Text List Simple": CR_TextListSimple,
|
||||
"CR Image List": CR_ImageList,
|
||||
"CR Image List Simple": CR_ImageListSimple,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
### Core Nodes
|
||||
"CR Image Output": "💾 CR Image Output",
|
||||
"CR Integer Multiple": "⚙️ CR Integer Multiple",
|
||||
"CR Latent Batch Size": "⚙️ CR Latent Batch Size",
|
||||
"CR Seed": "🌱 CR Seed",
|
||||
"CR Value": "⚙️ CR Value",
|
||||
"CR Conditioning Mixer": "⚙️ CR Conditioning Mixer",
|
||||
"CR Select Model": "🔮 CR Select Model",
|
||||
"CR Prompt Text": "⚙️ CR Prompt Text",
|
||||
"CR Combine Prompt": "⚙️ CR Combine Prompt",
|
||||
"CR VAE Decode": "⚙️ CR VAE Decode",
|
||||
### List Nodes
|
||||
"CR Text List": "📜 CR Text List",
|
||||
"CR Prompt List": "📜 CR Prompt List",
|
||||
"CR Simple List": "📜 CR Simple List",
|
||||
"CR Float Range List": "📜 CR Float Range List",
|
||||
"CR Integer Range List": "📜 CR Integer Range List",
|
||||
"CR Load Value List": "📜 CR Load Value List",
|
||||
"CR Load Text List": "📜 CR Load Text List",
|
||||
"CR Binary To Bit List": "📜 CR Binary To Bit List",
|
||||
"CR Text Cycler": "📜 CR Text Cycler",
|
||||
"CR Value Cycler": "📜 CR Value Cycler",
|
||||
### List IO
|
||||
"CR Load Image List": "⌨️ CR Load Image List",
|
||||
"CR Load Image List Plus": "⌨️ CR Load Image List Plus",
|
||||
"CR Load GIF As List": "⌨️ CR Load GIF As List",
|
||||
"CR Font File List": "⌨️ CR Font File List",
|
||||
### List Utils
|
||||
"CR Batch Images From List": "🛠️ CR Batch Images From List",
|
||||
"CR Intertwine Lists" : "🛠️ CR Intertwine Lists",
|
||||
"CR Repeater": "🛠️ CR Repeater",
|
||||
"CR XY Product": "🛠️ CR XY Product",
|
||||
"CR Text List To String": "🛠️ CR Text List To String",
|
||||
### Aspect Ratio Nodes
|
||||
"CR SD1.5 Aspect Ratio": "🔳 CR SD1.5 Aspect Ratio",
|
||||
"CR SDXL Aspect Ratio": "🔳 CR SDXL Aspect Ratio",
|
||||
"CR Aspect Ratio": "🔳 CR Aspect Ratio",
|
||||
"CR Aspect Ratio Banners": "🔳 CR Aspect Ratio Banners",
|
||||
"CR Aspect Ratio Social Media": "🔳 CR Aspect Ratio Social Media",
|
||||
"CR_Aspect Ratio For Print": "🔳 CR_Aspect Ratio For Print",
|
||||
### Legacy Nodes
|
||||
"CR Image Size": "CR Image Size (Legacy)",
|
||||
"CR Aspect Ratio SDXL": "CR Aspect Ratio SDXL (Legacy)",
|
||||
"CR SDXL Prompt Mixer": "CR SDXL Prompt Mixer (Legacy)",
|
||||
"CR Seed to Int": "CR Seed to Int (Legacy)",
|
||||
### ControlNet Nodes
|
||||
"CR Apply ControlNet": "🕹️ CR Apply ControlNet",
|
||||
"CR Multi-ControlNet Stack": "🕹️ CR Multi-ControlNet Stack",
|
||||
"CR Apply Multi-ControlNet": "🕹️ CR Apply Multi-ControlNet",
|
||||
### LoRA Nodes
|
||||
"CR Load LoRA": "💊 CR Load LoRA",
|
||||
"CR LoRA Stack": "💊 CR LoRA Stack",
|
||||
"CR Random LoRA Stack": "💊 CR Random LoRA Stack",
|
||||
"CR Random Weight LoRA": "💊 CR Random Weight LoRA",
|
||||
"CR Apply LoRA Stack": "💊 CR Apply LoRA Stack",
|
||||
### Model Merge Nodes
|
||||
"CR Apply Model Merge": "⛏️ CR Apply Model Merge",
|
||||
"CR Model Merge Stack": "⛏️ CR Model Merge Stack",
|
||||
### Pipe Nodes
|
||||
"CR Data Bus In": "🚌 CR Data Bus In",
|
||||
"CR Data Bus Out": "🚌 CR Data Bus Out",
|
||||
"CR 8 Channel In": "🚌 CR 8 Channel In",
|
||||
"CR 8 Channel Out": "🚌 CR 8 Channel Out",
|
||||
"CR Module Pipe Loader": "✈️ CR Module Pipe Loader",
|
||||
"CR Module Input": "✈️ CR Module Input",
|
||||
"CR Module Output": "✈️ CR Module Output",
|
||||
"CR Image Pipe In": "🛩 CR Image Pipe In",
|
||||
"CR Image Pipe Edit": "🛩️ CR Image Pipe Edit",
|
||||
"CR Image Pipe Out": "🛩️ CR Image Pipe Out",
|
||||
"CR Pipe Switch": "🔀️ CR Pipe Switch",
|
||||
### SDXL Nodes
|
||||
"CR SDXL Prompt Mix Presets": "🌟 CR SDXL Prompt Mix Presets",
|
||||
"CR SDXL Style Text": "🌟 CR SDXL Style Text",
|
||||
"CR SDXL Base Prompt Encoder": "🌟 CR SDXL Base Prompt Encoder",
|
||||
### Upscale Nodes
|
||||
"CR Multi Upscale Stack": "🔍 CR Multi Upscale Stack",
|
||||
"CR Upscale Image": "🔍 CR Upscale Image",
|
||||
"CR Apply Multi Upscale": "🔍 CR Apply Multi Upscale",
|
||||
### XY Grid Nodes
|
||||
"CR XY List": "📉 CR XY List",
|
||||
"CR XY Interpolate": "📉 CR XY Interpolate",
|
||||
"CR XY Index": "📉 CR XY Index",
|
||||
"CR XY From Folder": "📉 CR XY From Folder",
|
||||
"CR XY Save Grid Image": "📉 CR XY Save Grid Image",
|
||||
### Graphics Pattern
|
||||
"CR Halftone Grid" : "🟫 CR Halftone Grid",
|
||||
"CR Color Bars" : "🟫 CR Color Bars",
|
||||
"CR Style Bars" : "🟪 CR Style Bars",
|
||||
"CR Checker Pattern": "🟦 CR Checker Pattern",
|
||||
"CR Polygons": "🟩 CR Polygons",
|
||||
"CR Color Gradient": "🟨 CR Color Gradient",
|
||||
"CR Radial Gradient": "🟨 CR Radial Gradient",
|
||||
"CR Starburst Lines": "🟧 CR Starburst Lines",
|
||||
"CR Starburst Colors": "🟧 CR Starburst Colors",
|
||||
"CR Simple Binary Pattern": "🟥 CR Simple Binary Pattern",
|
||||
"CR Binary Pattern": "🟥 CR Binary Pattern",
|
||||
### Graphics Shape
|
||||
"CR Draw Shape": "🟡 CR Draw Shape",
|
||||
"CR Draw Pie": "🟢 CR Draw Pie",
|
||||
"CR Random Shape Pattern": "🔵 CR Random Shape Pattern",
|
||||
### Graphics Text
|
||||
"CR Overlay Text": "🔤 CR Overlay Text",
|
||||
"CR Draw Text": "🔤️ CR Draw Text",
|
||||
"CR Mask Text": "🔤️ CR Mask Text",
|
||||
"CR Composite Text": "🔤️ CR Composite Text",
|
||||
"CR Simple Text Watermark": "🔤️ CR Simple Text Watermark",
|
||||
"CR Select Font": "🔤️ CR Select Font",
|
||||
### Graphics Filter
|
||||
"CR Halftone Filter": "🎨 Halftone Filter",
|
||||
"CR Color Tint": "🎨 CR Color Tint",
|
||||
"CR Vignette Filter": "🎨 CR Vignette Filter",
|
||||
### Graphics Layout
|
||||
"CR Image Panel": "🌁 CR Image Panel",
|
||||
"CR Image Grid Panel": "🌁 CR Image Grid Panel",
|
||||
"CR Simple Text Panel": "🌁 CR Simple Text Panel",
|
||||
"CR Color Panel": "🌁 CR Color Panel",
|
||||
"CR Half Drop Panel": "🌁 CR Half Drop Panel",
|
||||
"CR Diamond Panel": "🌁 CR Diamond Panel",
|
||||
"CR Page Layout": "🌁 CR Page Layout",
|
||||
"CR Image Border": "🌁 CR Image Border",
|
||||
"CR Feathered Border": "🌁 CR Feathered Border",
|
||||
"CR Overlay Transparent Image": "🌁 CR Overlay Transparent Image",
|
||||
### Graphics Template
|
||||
"CR Simple Meme Template": "📱 CR Simple Meme Template",
|
||||
"CR Simple Banner": "📱 CR Simple Banner",
|
||||
"CR Comic Panel Templates": "📱 CR Comic Panel Templates",
|
||||
"CR Simple Image Compare": "📱 CR Simple Image Compare",
|
||||
"CR Thumbnail Preview": "📱 CR Thumbnail Preview",
|
||||
"CR Seamless Checker": "📱 CR Seamless Checker",
|
||||
### Utils Logic
|
||||
"CR Image Input Switch": "🔀 CR Image Input Switch",
|
||||
"CR Image Input Switch (4 way)": "🔀 CR Image Input Switch (4 way)",
|
||||
"CR Latent Input Switch": "🔀 CR Latent Input Switch",
|
||||
"CR Conditioning Input Switch": "🔀 CR Conditioning Input Switch",
|
||||
"CR Clip Input Switch": "🔀 CR Clip Input Switch",
|
||||
"CR Model Input Switch": "🔀 CR Model Input Switch",
|
||||
"CR ControlNet Input Switch": "🔀 CR ControlNet Input Switch",
|
||||
"CR VAE Input Switch": "🔀 CR VAE Input Switch",
|
||||
"CR Text Input Switch": "🔀 CR Text Input Switch",
|
||||
"CR Text Input Switch (4 way)": "🔀 CR Text Input Switch (4 way)",
|
||||
"CR Switch Model and CLIP": "🔀 CR Switch Model and CLIP",
|
||||
### Utils Process
|
||||
"CR Batch Process Switch": "🔂 CR Batch Process Switch",
|
||||
"CR Img2Img Process Switch": "🔂 CR Img2Img Process Switch",
|
||||
"CR Hires Fix Process Switch": "🔂 CR Hires Fix Process Switch",
|
||||
### Utils Index
|
||||
"CR Index":"🔢 CR Index",
|
||||
"CR Index Increment": "🔢 CR Index Increment",
|
||||
"CR Index Multiply": "🔢 CR Index Multiply",
|
||||
"CR Index Reset": "🔢 CR Index Reset",
|
||||
"CR Trigger": "🔢 CR Trigger",
|
||||
### Utils Conversion
|
||||
"CR String To Number": "🔧 CR String To Number",
|
||||
"CR String To Combo": "🔧 CR String To Combo",
|
||||
"CR Float To String": "🔧 CR Float To String",
|
||||
"CR Float To Integer": "🔧 CR Float To Integer",
|
||||
"CR Integer To String": "🔧 CR Integer To String",
|
||||
"CR String To Boolean": "🔧 CR String To Boolean",
|
||||
### Utils Random
|
||||
"CR Random Hex Color": "🎲 CR Random Hex Color",
|
||||
"CR Random RGB": "🎲 CR Random RGB",
|
||||
"CR Random Multiline Values": "🎲 CR Random Multiline Values",
|
||||
"CR Random Multiline Colors": "🎲 CR Random Multiline Colors",
|
||||
"CR Random RGB Gradient": "🎲 CR Random RGB Gradient",
|
||||
"CR Random Panel Codes": "🎲 CR Random Panel Codes",
|
||||
### Utils Text
|
||||
"CR Text": "🔤 CR Text",
|
||||
"CR Multiline Text": "🔤 CR Multiline Text",
|
||||
"CR Split String": "🔤 CR Split String",
|
||||
"CR Text Concatenate": "🔤 CR Text Concatenate",
|
||||
"CR Text Replace": "🔤 CR Text Replace",
|
||||
"CR Text Blacklist": "🔤 Text Blacklist",
|
||||
"CR Text Length": "🔤 CR Text Length",
|
||||
"CR Text Operation": "🔤 CR Text Operation",
|
||||
"CR Save Text To File": "🔤 CR Save Text To File",
|
||||
### Utils Conditional
|
||||
"CR Set Value On Boolean": "⚙️ CR Set Value On Boolean",
|
||||
"CR Set Value On Binary": "⚙️ CR Set Value On Binary",
|
||||
"CR Set Value on String": "⚙️ CR Set Value on String",
|
||||
"CR Set Switch From String": "⚙️ CR Set Switch From String",
|
||||
### Utils Other
|
||||
"CR Integer Multiple": "⚙️ CR Integer Multiple",
|
||||
"CR Value": "⚙️ CR Value",
|
||||
"CR Clamp Value": "⚙️ CR Clamp Value",
|
||||
"CR Math Operation": "⚙️ CR Math Operation",
|
||||
"CR Get Parameter From Prompt": "⚙️ CR Get Parameter From Prompt",
|
||||
"CR Select Resize Method": "⚙️ CR Select Resize Method",
|
||||
"CR Select ISO Size": "⚙️ CR Select ISO Size",
|
||||
### Animation Nodes
|
||||
# Schedules
|
||||
"CR Simple Schedule": "📋 CR Simple Schedule",
|
||||
"CR Central Schedule": "📋 CR Central Schedule",
|
||||
"CR Combine Schedules": "📋 CR Combine Schedules",
|
||||
"CR Output Schedule To File": "📋 CR Output Schedule To File",
|
||||
"CR Load Schedule From File": "📋 CR Load Schedule From File",
|
||||
"CR Schedule Input Switch": "📋 CR Schedule Input Switch",
|
||||
"CR Bit Schedule": "📋 CR Bit Schedule",
|
||||
# Schedulers
|
||||
"CR Simple Value Scheduler": "📑 CR Simple Value Scheduler",
|
||||
"CR Simple Text Scheduler": "📑 CR Simple Text Scheduler",
|
||||
"CR Value Scheduler": "📑 CR Value Scheduler",
|
||||
"CR Text Scheduler": "📑 CR Text Scheduler",
|
||||
"CR Load Scheduled Models": "📑 CR Load Scheduled Models",
|
||||
"CR Load Scheduled LoRAs": "📑 CR Load Scheduled LoRAs",
|
||||
"CR Prompt Scheduler": "📑 CR Prompt Scheduler",
|
||||
"CR Simple Prompt Scheduler": "📑 CR Simple Prompt Scheduler",
|
||||
# Prompt
|
||||
"CR Keyframe List": "📝 CR Keyframe List",
|
||||
#"CR Load Prompt Style": "📝 CR Load Prompt Style",
|
||||
"CR Encode Scheduled Prompts": "📝 CR Encode Scheduled Prompts",
|
||||
# Interpolation
|
||||
"CR Gradient Float": "🔢 CR Gradient Float",
|
||||
"CR Gradient Integer": "🔢 CR Gradient Integer",
|
||||
"CR Increment Float": "🔢 CR Increment Float",
|
||||
"CR Increment Integer": "🔢 CR Increment Integer",
|
||||
"CR Interpolate Latents": "🔢 CR Interpolate Latents",
|
||||
# Utils
|
||||
"CR Debatch Frames": "🛠️ CR Debatch Frames",
|
||||
"CR Current Frame": "🛠️ CR Current Frame",
|
||||
# IO
|
||||
"CR Load Animation Frames": "⌨️ CR Load Animation Frames",
|
||||
"CR Load Flow Frames": "⌨️ CR Load Flow Frames",
|
||||
"CR Output Flow Frames": "⌨️ CR Output Flow Frames",
|
||||
### Legacy
|
||||
"CR Prompt List Keyframes": "CR Prompt List Keyframes (Legacy)",
|
||||
"CR Simple Prompt List": "CR Simple Prompt List (Legacy)",
|
||||
"CR Simple Prompt List Keyframes": "CR Simple Prompt List Keyframes (Legacy)",
|
||||
"CR Cycle Models": "CR Cycle Models (Legacy)",
|
||||
"CR Cycle LoRAs": "CR Cycle LoRAs (Legacy)",
|
||||
"CR Cycle Text": "CR Cycle Text (Legacy)",
|
||||
"CR Cycle Text Simple": "CR Cycle Text Simple (Legacy)",
|
||||
"CR Cycle Images": "CR Cycle Images (Legacy)",
|
||||
"CR Cycle Images Simple": "CR Cycle Images Simple (Legacy)",
|
||||
"CR Model List": "CR Model List (Legacy)",
|
||||
"CR LoRA List": "CR LoRA List (Legacy)",
|
||||
"CR Text List Simple": "CR Text List Simple (Legacy)",
|
||||
"CR Image List": "CR Image List (Legacy)",
|
||||
"CR Image List Simple": "CR Image List Simple (Legacy)",
|
||||
"CR Input Text List": "CR Input Text List (Legacy)",
|
||||
}
|
||||
@@ -0,0 +1,431 @@
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
# Comfyroll Studio custom nodes by RockOfFire and Akatsuzi https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes
|
||||
# for ComfyUI https://github.com/comfyanonymous/ComfyUI
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
|
||||
import torch
|
||||
import numpy as np
|
||||
import os
|
||||
import sys
|
||||
import csv
|
||||
import comfy.sd
|
||||
import json
|
||||
import folder_paths
|
||||
import typing as tg
|
||||
import datetime
|
||||
import io
|
||||
from server import PromptServer, BinaryEventTypes
|
||||
#from nodes import common_ksampler
|
||||
from PIL import Image
|
||||
from PIL.PngImagePlugin import PngInfo
|
||||
from pathlib import Path
|
||||
from ..categories import icons
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
# Core Nodes
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
class CR_ImageOutput:
|
||||
def __init__(self):
|
||||
self.output_dir = folder_paths.get_output_directory()
|
||||
self.type = "output"
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
|
||||
presets = ["None", "yyyyMMdd"]
|
||||
|
||||
return {"required":
|
||||
{"images": ("IMAGE", ),
|
||||
"output_type": (["Preview", "Save", "UI (no batch)"],),
|
||||
"filename_prefix": ("STRING", {"default": "CR"}),
|
||||
"prefix_presets": (presets, ),
|
||||
"file_format": (["png", "jpg", "webp", "tif"],),
|
||||
},
|
||||
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"},
|
||||
"optional":
|
||||
{"trigger": ("BOOLEAN", {"default": False},),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
RETURN_NAMES = ("trigger", )
|
||||
FUNCTION = "save_images"
|
||||
OUTPUT_NODE = True
|
||||
CATEGORY = icons.get("Comfyroll/Essential/Core")
|
||||
|
||||
def save_images(self, images, file_format, prefix_presets, filename_prefix="CR",
|
||||
trigger=False, output_type="Preview", prompt=None, extra_pnginfo=None):
|
||||
|
||||
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-image-output"
|
||||
|
||||
def map_filename(filename):
|
||||
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)
|
||||
|
||||
if output_type == "Save":
|
||||
self.output_dir = folder_paths.get_output_directory()
|
||||
self.type = "output"
|
||||
elif output_type == "Preview":
|
||||
self.output_dir = folder_paths.get_temp_directory()
|
||||
self.type = "temp"
|
||||
|
||||
date_formats = {
|
||||
'yyyyMMdd': lambda d: '{}{:02d}{:02d}'.format(str(d.year), d.month, d.day),
|
||||
}
|
||||
|
||||
current_datetime = datetime.datetime.now()
|
||||
|
||||
for format_key, format_lambda in date_formats.items():
|
||||
preset_prefix = f"{format_lambda(current_datetime)}"
|
||||
|
||||
if prefix_presets != "None":
|
||||
filename_prefix = filename_prefix + "_" + preset_prefix
|
||||
|
||||
if filename_prefix[0] == "_":
|
||||
filename_prefix = filename_prefix[1:]
|
||||
|
||||
subfolder = os.path.dirname(os.path.normpath(filename_prefix))
|
||||
filename = os.path.basename(os.path.normpath(filename_prefix))
|
||||
|
||||
full_output_folder = os.path.join(self.output_dir, subfolder)
|
||||
|
||||
if os.path.commonpath((self.output_dir, os.path.abspath(full_output_folder))) != self.output_dir:
|
||||
return {}
|
||||
|
||||
try:
|
||||
counter = max(filter(lambda a: a[1][:-1] == 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
|
||||
|
||||
if output_type == "UI (no batch)":
|
||||
# based on ETN_SendImageWebSocket
|
||||
results = []
|
||||
for tensor in images:
|
||||
array = 255.0 * tensor.cpu().numpy()
|
||||
image = Image.fromarray(np.clip(array, 0, 255).astype(np.uint8))
|
||||
|
||||
server = PromptServer.instance
|
||||
server.send_sync(
|
||||
BinaryEventTypes.UNENCODED_PREVIEW_IMAGE,
|
||||
["PNG", image, None],
|
||||
server.client_id,
|
||||
)
|
||||
results.append(
|
||||
{"source": "websocket", "content-type": "image/png", "type": "output"}
|
||||
)
|
||||
return {"ui": {"images": results}}
|
||||
else:
|
||||
results = list()
|
||||
for image in images:
|
||||
i = 255. * image.cpu().numpy()
|
||||
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
|
||||
metadata = PngInfo()
|
||||
if prompt is not None:
|
||||
metadata.add_text("prompt", json.dumps(prompt))
|
||||
if extra_pnginfo is not None:
|
||||
for x in extra_pnginfo:
|
||||
metadata.add_text(x, json.dumps(extra_pnginfo[x]))
|
||||
|
||||
file_name = f"{filename}_{counter:05}_.{file_format}"
|
||||
|
||||
img_params = {'png': {'compress_level': 4},
|
||||
'webp': {'method': 6, 'lossless': False, 'quality': 80},
|
||||
'jpg': {'format': 'JPEG'},
|
||||
'tif': {'format': 'TIFF'}
|
||||
}
|
||||
|
||||
resolved_image_path = os.path.join(full_output_folder, file_name)
|
||||
|
||||
img.save(resolved_image_path, **img_params[file_format], pnginfo=metadata)
|
||||
results.append({
|
||||
"filename": file_name,
|
||||
"subfolder": subfolder,
|
||||
"type": self.type
|
||||
})
|
||||
counter += 1
|
||||
|
||||
return { "ui": { "images": results }, "result": (trigger, show_help,) }
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
class CR_Seed:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {"seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff})}}
|
||||
|
||||
RETURN_TYPES = ("INT", "STRING", )
|
||||
RETURN_NAMES = ("seed", "show_help", )
|
||||
FUNCTION = "seedint"
|
||||
OUTPUT_NODE = True
|
||||
CATEGORY = icons.get("Comfyroll/Essential/Core")
|
||||
|
||||
@staticmethod
|
||||
def seedint(seed):
|
||||
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-seed"
|
||||
return (seed, show_help,)
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
class CR_LatentBatchSize:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {"latent": ("LATENT", ),
|
||||
"batch_size": ("INT", {"default": 2, "min": 1, "max": 999, "step": 1}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("LATENT", )
|
||||
FUNCTION = "batchsize"
|
||||
CATEGORY = icons.get("Comfyroll/Essential/Core")
|
||||
|
||||
def batchsize(self, latent: tg.Sequence[tg.Mapping[tg.Text, torch.Tensor]], batch_size: int):
|
||||
samples = latent['samples']
|
||||
shape = samples.shape
|
||||
|
||||
sample_list = [samples] + [
|
||||
torch.clone(samples) for _ in range(batch_size - 1)
|
||||
]
|
||||
|
||||
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-latent-batch-size"
|
||||
|
||||
return ({
|
||||
'samples': torch.cat(sample_list),
|
||||
}, )
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
class CR_PromptText:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"prompt": ("STRING", {"default": "prompt", "multiline": True})
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("STRING", "STRING", )
|
||||
RETURN_NAMES = ("prompt", "show_help", )
|
||||
FUNCTION = "get_value"
|
||||
CATEGORY = icons.get("Comfyroll/Essential/Core")
|
||||
|
||||
def get_value(self, prompt):
|
||||
|
||||
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-prompt-text"
|
||||
|
||||
return (prompt, show_help, )
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
class CR_CombinePrompt:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
},
|
||||
"optional": {
|
||||
"part1": ("STRING", {"default": "", "multiline": True}),
|
||||
"part2": ("STRING", {"default": "", "multiline": True}),
|
||||
"part3": ("STRING", {"default": "", "multiline": True}),
|
||||
"part4": ("STRING", {"default": "", "multiline": True}),
|
||||
"separator": ("STRING", {"default": ",", "multiline": False}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("STRING", "STRING", )
|
||||
RETURN_NAMES = ("prompt", "show_help", )
|
||||
FUNCTION = "get_value"
|
||||
CATEGORY = icons.get("Comfyroll/Essential/Core")
|
||||
|
||||
def get_value(self, part1="", part2="", part3="", part4="", separator=""):
|
||||
|
||||
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-prompt-parts"
|
||||
|
||||
prompt = part1 + separator + part2 + separator + part3 + separator + part4
|
||||
|
||||
return (prompt, show_help, )
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
class CR_ConditioningMixer:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
|
||||
mix_methods = ["Combine", "Average", "Concatenate"]
|
||||
|
||||
return {"required":
|
||||
{"conditioning_1": ("CONDITIONING", ),
|
||||
"conditioning_2": ("CONDITIONING", ),
|
||||
"mix_method": (mix_methods, ),
|
||||
"average_strength": ("FLOAT", {"default": 0.5, "min": 0.0, "max": 1.0, "step": 0.01}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("CONDITIONING", "STRING", )
|
||||
RETURN_NAMES = ("CONDITIONING", "show_help", )
|
||||
FUNCTION = "conditioning"
|
||||
CATEGORY = icons.get("Comfyroll/Essential/Core")
|
||||
|
||||
def conditioning(self, mix_method, conditioning_1, conditioning_2, average_strength):
|
||||
|
||||
conditioning_from = conditioning_1
|
||||
conditioning_to = conditioning_2
|
||||
conditioning_to_strength = average_strength
|
||||
|
||||
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-conditioning-mixer"
|
||||
|
||||
if mix_method == "Combine":
|
||||
return (conditioning_1 + conditioning_2, show_help, )
|
||||
|
||||
if mix_method == "Average":
|
||||
|
||||
out = []
|
||||
|
||||
if len(conditioning_from) > 1:
|
||||
print("Warning: ConditioningAverage conditioning_from contains more than 1 cond, only the first one will actually be applied to conditioning_to.")
|
||||
|
||||
cond_from = conditioning_from[0][0]
|
||||
pooled_output_from = conditioning_from[0][1].get("pooled_output", None)
|
||||
|
||||
for i in range(len(conditioning_to)):
|
||||
t1 = conditioning_to[i][0]
|
||||
pooled_output_to = conditioning_to[i][1].get("pooled_output", pooled_output_from)
|
||||
t0 = cond_from[:,:t1.shape[1]]
|
||||
if t0.shape[1] < t1.shape[1]:
|
||||
t0 = torch.cat([t0] + [torch.zeros((1, (t1.shape[1] - t0.shape[1]), t1.shape[2]))], dim=1)
|
||||
|
||||
tw = torch.mul(t1, conditioning_to_strength) + torch.mul(t0, (1.0 - conditioning_to_strength))
|
||||
t_to = conditioning_to[i][1].copy()
|
||||
if pooled_output_from is not None and pooled_output_to is not None:
|
||||
t_to["pooled_output"] = torch.mul(pooled_output_to, conditioning_to_strength) + torch.mul(pooled_output_from, (1.0 - conditioning_to_strength))
|
||||
elif pooled_output_from is not None:
|
||||
t_to["pooled_output"] = pooled_output_from
|
||||
|
||||
n = [tw, t_to]
|
||||
out.append(n)
|
||||
return (out, show_help, )
|
||||
|
||||
if mix_method == "Concatenate":
|
||||
|
||||
out = []
|
||||
|
||||
if len(conditioning_from) > 1:
|
||||
print("Warning: ConditioningConcat conditioning_from contains more than 1 cond, only the first one will actually be applied to conditioning_to.")
|
||||
|
||||
cond_from = conditioning_from[0][0]
|
||||
|
||||
for i in range(len(conditioning_to)):
|
||||
t1 = conditioning_to[i][0]
|
||||
tw = torch.cat((t1, cond_from),1)
|
||||
n = [tw, conditioning_to[i][1].copy()]
|
||||
out.append(n)
|
||||
return (out, show_help, )
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
class CR_SelectModel:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
|
||||
checkpoint_files = ["None"] + folder_paths.get_filename_list("checkpoints")
|
||||
|
||||
return {"required": {"ckpt_name1": (checkpoint_files,),
|
||||
"ckpt_name2": (checkpoint_files,),
|
||||
"ckpt_name3": (checkpoint_files,),
|
||||
"ckpt_name4": (checkpoint_files,),
|
||||
"ckpt_name5": (checkpoint_files,),
|
||||
"select_model": ("INT", {"default": 1, "min": 1, "max": 5}),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
RETURN_TYPES = ("MODEL", "CLIP", "VAE", "STRING", "STRING", )
|
||||
RETURN_NAMES = ("MODEL", "CLIP", "VAE", "ckpt_name", "show_help", )
|
||||
FUNCTION = "select_model"
|
||||
CATEGORY = icons.get("Comfyroll/Essential/Core")
|
||||
|
||||
def select_model(self, ckpt_name1, ckpt_name2, ckpt_name3, ckpt_name4, ckpt_name5, select_model):
|
||||
|
||||
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-select-model"
|
||||
|
||||
# Initialise the list
|
||||
model_list = list()
|
||||
|
||||
if select_model == 1:
|
||||
model_name = ckpt_name1
|
||||
elif select_model == 2:
|
||||
model_name = ckpt_name2
|
||||
elif select_model == 3:
|
||||
model_name = ckpt_name3
|
||||
elif select_model == 4:
|
||||
model_name = ckpt_name4
|
||||
elif select_model == 5:
|
||||
model_name = ckpt_name5
|
||||
|
||||
if model_name == "None":
|
||||
print(f"CR Select Model: No model selected")
|
||||
return()
|
||||
|
||||
ckpt_path = folder_paths.get_full_path("checkpoints", model_name)
|
||||
model, clip, vae, clipvision = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True,
|
||||
embedding_directory=folder_paths.get_folder_paths("embeddings"))
|
||||
|
||||
return (model, clip, vae, model_name, show_help, )
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
# based on Jags111 CircularVAEDecode
|
||||
class CR_VAEDecode:
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
|
||||
return {"required": {
|
||||
"samples": ("LATENT", ),
|
||||
"vae": ("VAE", ),
|
||||
"tiled": ("BOOLEAN", {"default": False}),
|
||||
"circular": ("BOOLEAN", {"default": False}),
|
||||
}
|
||||
}
|
||||
RETURN_TYPES = ("IMAGE", "STRING", )
|
||||
RETURN_NAMES = ("IMAGE", "show_help", )
|
||||
FUNCTION = "vae_decode"
|
||||
CATEGORY = icons.get("Comfyroll/Essential/Core")
|
||||
|
||||
def vae_decode(self, samples, vae, circular=False, tiled=False):
|
||||
|
||||
show_help = "https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki/Core-Nodes#cr-vae-decode"
|
||||
|
||||
if circular == True:
|
||||
for layer in [layer for layer in vae.first_stage_model.modules() if isinstance(layer, torch.nn.Conv2d)]:
|
||||
layer.padding_mode = "circular"
|
||||
|
||||
if tiled == True:
|
||||
c = vae.decode_tiled(samples["samples"], tile_x=512, tile_y=512, )
|
||||
else:
|
||||
c = vae.decode(samples["samples"])
|
||||
|
||||
return (c, show_help, )
|
||||
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
# MAPPINGS
|
||||
#---------------------------------------------------------------------------------------------------------------------#
|
||||
# For reference only, actual mappings are in __init__.py
|
||||
'''
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
### Other
|
||||
"CR Image Output": CR_ImageOutput,
|
||||
"CR Latent Batch Size": CR_LatentBatchSize,
|
||||
"CR Seed": CR_Seed,
|
||||
"CR Prompt Text": CR_PromptText,
|
||||
"CR Combine Prompt": CR_CombinePrompt,
|
||||
"CR Conditioning Mixer": CR_ConditioningMixer,
|
||||
"CR Select Model": CR_SelectModel,
|
||||
"CR VAE Decode": CR_VAEDecode,
|
||||
}
|
||||
'''
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"sha":"0c20c6b9ac22ecc4b5525de651fca0776a382dd3","node_id":"C_kwDOQ_fZq9oAKDBjMjBjNmI5YWMyMmVjYzRiNTUyNWRlNjUxZmNhMDc3NmEzODJkZDM","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/commits/0c20c6b9ac22ecc4b5525de651fca0776a382dd3","html_url":"https://github.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/commit/0c20c6b9ac22ecc4b5525de651fca0776a382dd3","author":{"name":"AICodeTudou","email":"411011819@qq.com","date":"2026-01-25T18:30:23Z"},"committer":{"name":"AICodeTudou","email":"411011819@qq.com","date":"2026-01-25T18:30:23Z"},"tree":{"sha":"6da1640966511fb020ea54c2f3f20a5027907b14","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/trees/6da1640966511fb020ea54c2f3f20a5027907b14"},"message":"update file","parents":[{"sha":"c513c371bd0cd3b95eb5313a29f9c3dacb84566d","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/commits/c513c371bd0cd3b95eb5313a29f9c3dacb84566d","html_url":"https://github.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/commit/c513c371bd0cd3b95eb5313a29f9c3dacb84566d"}],"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,176 @@
|
||||
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
|
||||
@@ -0,0 +1,6 @@
|
||||
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
# 声明前端资源目录,确保 js 文件被 ComfyUI 加载
|
||||
WEB_DIRECTORY = "./js"
|
||||
|
||||
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']
|
||||
@@ -0,0 +1,254 @@
|
||||
import { app } from "../../scripts/app.js";
|
||||
|
||||
app.registerExtension({
|
||||
name: "ComfyUI-TD-Qwen3TTS.BatchGenerateSpeaker",
|
||||
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
||||
if (nodeData.name === "TDQwen3TTSBatchGenerateSpeaker") {
|
||||
const onNodeCreated = nodeType.prototype.onNodeCreated;
|
||||
nodeType.prototype.onNodeCreated = function () {
|
||||
const r = onNodeCreated ? onNodeCreated.apply(this, arguments) : undefined;
|
||||
|
||||
// Find the speakers_config widget
|
||||
const configWidget = this.widgets.find(w => w.name === "speakers_config");
|
||||
|
||||
// Add "Manage Speakers" button
|
||||
this.addWidget("button", "Manage Speakers", "Edit", (w) => {
|
||||
showSpeakerDialog(this, configWidget);
|
||||
});
|
||||
|
||||
return r;
|
||||
};
|
||||
|
||||
// Handle execution results to get generated audio
|
||||
const onExecuted = nodeType.prototype.onExecuted;
|
||||
nodeType.prototype.onExecuted = function(message) {
|
||||
if (onExecuted) onExecuted.apply(this, arguments);
|
||||
|
||||
// message is the output object. message.batch_outputs comes from our python "ui" return
|
||||
if (message && message.batch_outputs) {
|
||||
this.batchOutputs = message.batch_outputs;
|
||||
// If the dialog is open, we could potentially refresh it,
|
||||
// but for now let's just let the user re-open or if we implement auto-refresh later.
|
||||
// A simple check:
|
||||
const dialog = document.getElementById('td-qwen3-speaker-dialog');
|
||||
if (dialog && dialog.dataset.nodeId == this.id) {
|
||||
// We can trigger a refresh if we exposed the render function
|
||||
// For now, we'll just leave it.
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function showSpeakerDialog(node, configWidget) {
|
||||
// Remove existing if any
|
||||
const existing = document.getElementById('td-qwen3-speaker-dialog');
|
||||
if (existing) document.body.removeChild(existing);
|
||||
|
||||
const dialog = document.createElement("div");
|
||||
dialog.id = 'td-qwen3-speaker-dialog';
|
||||
dialog.dataset.nodeId = node.id;
|
||||
dialog.style.cssText = `
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: #222;
|
||||
color: #ddd;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 0 20px rgba(0,0,0,0.5);
|
||||
z-index: 10000;
|
||||
width: 900px;
|
||||
max-height: 85vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 1px solid #444;
|
||||
font-family: sans-serif;
|
||||
`;
|
||||
|
||||
const title = document.createElement("h3");
|
||||
title.innerText = "Manage Speakers (Batch Generate)";
|
||||
title.style.marginTop = "0";
|
||||
dialog.appendChild(title);
|
||||
|
||||
const contentArea = document.createElement("div");
|
||||
contentArea.style.cssText = `
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid #333;
|
||||
padding: 10px;
|
||||
background: #111;
|
||||
`;
|
||||
dialog.appendChild(contentArea);
|
||||
|
||||
// Load existing config
|
||||
let speakers = [];
|
||||
try {
|
||||
if (configWidget && configWidget.value) {
|
||||
speakers = JSON.parse(configWidget.value);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error("Invalid JSON in speakers_config", e);
|
||||
}
|
||||
if (!Array.isArray(speakers)) speakers = [];
|
||||
|
||||
// Function to render list
|
||||
function renderList() {
|
||||
contentArea.innerHTML = "";
|
||||
if (speakers.length === 0) {
|
||||
contentArea.innerHTML = "<div style='padding:20px; text-align:center; color:#666;'>No speakers defined. Click 'Add Speaker' to start.</div>";
|
||||
return;
|
||||
}
|
||||
|
||||
speakers.forEach((spk, index) => {
|
||||
const row = document.createElement("div");
|
||||
row.style.cssText = `
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
margin-bottom: 10px;
|
||||
background: #2a2a2a;
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
`;
|
||||
|
||||
const topRow = document.createElement("div");
|
||||
topRow.style.cssText = "display: flex; gap: 10px; align-items: flex-start; width: 100%;";
|
||||
row.appendChild(topRow);
|
||||
|
||||
// Name
|
||||
const nameGroup = document.createElement("div");
|
||||
nameGroup.style.flex = "1";
|
||||
nameGroup.innerHTML = "<label style='display:block;font-size:12px;color:#aaa;margin-bottom:4px'>Name</label>";
|
||||
const nameInput = document.createElement("input");
|
||||
nameInput.value = spk.name || "";
|
||||
nameInput.style.cssText = "width:100%; background:#333; color:#fff; border:1px solid #555; padding:4px;";
|
||||
nameInput.onchange = (e) => { spk.name = e.target.value; };
|
||||
nameGroup.appendChild(nameInput);
|
||||
topRow.appendChild(nameGroup);
|
||||
|
||||
// Instruct
|
||||
const instructGroup = document.createElement("div");
|
||||
instructGroup.style.flex = "2";
|
||||
instructGroup.innerHTML = "<label style='display:block;font-size:12px;color:#aaa;margin-bottom:4px'>Voice Style (Instruct)</label>";
|
||||
const instructInput = document.createElement("textarea");
|
||||
instructInput.value = spk.instruct || "";
|
||||
instructInput.rows = 2;
|
||||
instructInput.style.cssText = "width:100%; background:#333; color:#fff; border:1px solid #555; padding:4px; resize:vertical;";
|
||||
instructInput.onchange = (e) => { spk.instruct = e.target.value; };
|
||||
instructGroup.appendChild(instructInput);
|
||||
topRow.appendChild(instructGroup);
|
||||
|
||||
// Text
|
||||
const textGroup = document.createElement("div");
|
||||
textGroup.style.flex = "2";
|
||||
textGroup.innerHTML = "<label style='display:block;font-size:12px;color:#aaa;margin-bottom:4px'>Sample Text</label>";
|
||||
const textInput = document.createElement("textarea");
|
||||
textInput.value = spk.text || "";
|
||||
textInput.rows = 2;
|
||||
textInput.style.cssText = "width:100%; background:#333; color:#fff; border:1px solid #555; padding:4px; resize:vertical;";
|
||||
textInput.onchange = (e) => { spk.text = e.target.value; };
|
||||
textGroup.appendChild(textInput);
|
||||
topRow.appendChild(textGroup);
|
||||
|
||||
// Delete
|
||||
const delBtn = document.createElement("button");
|
||||
delBtn.innerText = "X";
|
||||
delBtn.style.cssText = "background:#800; color:#fff; border:none; padding:5px 10px; cursor:pointer; margin-top:20px;";
|
||||
delBtn.onclick = () => {
|
||||
speakers.splice(index, 1);
|
||||
renderList();
|
||||
};
|
||||
topRow.appendChild(delBtn);
|
||||
|
||||
// Preview Area (if audio exists)
|
||||
// We look up audio from node.batchOutputs by name
|
||||
// Note: If names are duplicated, this might pick the first match.
|
||||
if (node.batchOutputs && spk.name) {
|
||||
// Find latest output for this name?
|
||||
// Or just find one.
|
||||
// Since batchOutputs might accumulate if we don't clear it?
|
||||
// Actually batchOutputs is replaced on each execution.
|
||||
const audioInfo = node.batchOutputs.find(o => o.name === spk.name);
|
||||
|
||||
if (audioInfo) {
|
||||
const audioRow = document.createElement("div");
|
||||
audioRow.style.cssText = "margin-top: 5px; background: #222; padding: 5px; border-radius: 4px; display: flex; align-items: center; gap: 10px;";
|
||||
|
||||
const label = document.createElement("span");
|
||||
label.innerText = "Last Generated Preview:";
|
||||
label.style.fontSize = "12px";
|
||||
label.style.color = "#aaa";
|
||||
audioRow.appendChild(label);
|
||||
|
||||
const audioPlayer = document.createElement("audio");
|
||||
audioPlayer.controls = true;
|
||||
audioPlayer.style.height = "30px";
|
||||
// Construct URL: /view?filename=...&type=...&subfolder=...
|
||||
const params = new URLSearchParams({
|
||||
filename: audioInfo.filename,
|
||||
type: audioInfo.type,
|
||||
subfolder: audioInfo.subfolder || ""
|
||||
});
|
||||
audioPlayer.src = "/view?" + params.toString();
|
||||
audioRow.appendChild(audioPlayer);
|
||||
|
||||
row.appendChild(audioRow);
|
||||
}
|
||||
}
|
||||
|
||||
contentArea.appendChild(row);
|
||||
});
|
||||
}
|
||||
|
||||
renderList();
|
||||
|
||||
// Buttons area
|
||||
const buttons = document.createElement("div");
|
||||
buttons.style.cssText = "display:flex; justify-content:space-between; align-items:center;";
|
||||
dialog.appendChild(buttons);
|
||||
|
||||
const leftBtns = document.createElement("div");
|
||||
buttons.appendChild(leftBtns);
|
||||
|
||||
const addBtn = document.createElement("button");
|
||||
addBtn.innerText = "+ Add Speaker";
|
||||
addBtn.style.cssText = "background:#444; color:#fff; border:none; padding:8px 16px; cursor:pointer; margin-right:10px;";
|
||||
addBtn.onclick = () => {
|
||||
speakers.push({ name: "NewSpeaker", instruct: "A clear voice", text: "Hello world" });
|
||||
renderList();
|
||||
// Scroll to bottom
|
||||
setTimeout(() => contentArea.scrollTop = contentArea.scrollHeight, 10);
|
||||
};
|
||||
leftBtns.appendChild(addBtn);
|
||||
|
||||
const rightBtns = document.createElement("div");
|
||||
buttons.appendChild(rightBtns);
|
||||
|
||||
const cancelBtn = document.createElement("button");
|
||||
cancelBtn.innerText = "Cancel";
|
||||
cancelBtn.style.cssText = "background:transparent; color:#aaa; border:1px solid #444; padding:8px 16px; cursor:pointer; margin-right:10px;";
|
||||
cancelBtn.onclick = () => {
|
||||
document.body.removeChild(dialog);
|
||||
};
|
||||
rightBtns.appendChild(cancelBtn);
|
||||
|
||||
const saveBtn = document.createElement("button");
|
||||
saveBtn.innerText = "Save";
|
||||
saveBtn.style.cssText = "background:#28a745; color:#fff; border:none; padding:8px 24px; cursor:pointer; font-weight:bold;";
|
||||
saveBtn.onclick = () => {
|
||||
if (configWidget) {
|
||||
configWidget.value = JSON.stringify(speakers, null, 2);
|
||||
// Trigger graph change
|
||||
if (node.onResize) node.onResize(node.size);
|
||||
app.graph.setDirtyCanvas(true, true);
|
||||
}
|
||||
document.body.removeChild(dialog);
|
||||
};
|
||||
rightBtns.appendChild(saveBtn);
|
||||
|
||||
document.body.appendChild(dialog);
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
import { app } from "../../scripts/app.js";
|
||||
|
||||
app.registerExtension({
|
||||
name: "ComfyUI-TD-Qwen3TTS.MultiDialog",
|
||||
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
||||
if (nodeData.name === "TDQwen3TTSMultiDialog") {
|
||||
const onConnectionsChange = nodeType.prototype.onConnectionsChange;
|
||||
nodeType.prototype.onConnectionsChange = function (type, index, connected, link_info, slot) {
|
||||
const r = onConnectionsChange ? onConnectionsChange.apply(this, arguments) : undefined;
|
||||
|
||||
// Ensure inputs exist
|
||||
// 确保输入存在
|
||||
if (!this.inputs) return r;
|
||||
|
||||
// 1. Identify all speaker inputs and their indices
|
||||
// 1. 识别所有 speaker 输入及其索引
|
||||
const speakerInputs = [];
|
||||
for(let i=0; i<this.inputs.length; i++) {
|
||||
if(this.inputs[i].name.startsWith("speaker_")) {
|
||||
speakerInputs.push({
|
||||
index: i,
|
||||
name: this.inputs[i].name,
|
||||
input: this.inputs[i],
|
||||
num: parseInt(this.inputs[i].name.split("_")[1])
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 2. Find the highest numbered speaker slot that is currently connected
|
||||
// 2. 找到当前已连接的最大编号 speaker 插槽
|
||||
let maxConnectedNum = 0;
|
||||
let maxExistingNum = 0;
|
||||
|
||||
for(const item of speakerInputs) {
|
||||
if(item.num > maxExistingNum) maxExistingNum = item.num;
|
||||
if(item.input.link !== undefined && item.input.link !== null) {
|
||||
if(item.num > maxConnectedNum) maxConnectedNum = item.num;
|
||||
|
||||
// NEW LOGIC: Rename input based on upstream node name
|
||||
// 新逻辑:根据上游节点名称重命名输入
|
||||
const linkId = item.input.link;
|
||||
const link = app.graph.links[linkId];
|
||||
if (link) {
|
||||
const originNode = app.graph.getNodeById(link.origin_id);
|
||||
if (originNode && originNode.widgets) {
|
||||
// Look for 'name' widget
|
||||
// 查找 'name' 控件
|
||||
const nameWidget = originNode.widgets.find(w => w.name === "name");
|
||||
if (nameWidget && nameWidget.value) {
|
||||
const newLabel = `${nameWidget.value}`;
|
||||
// Only update if changed to avoid loop/redraw issues
|
||||
// 仅在发生变化时更新,以避免循环/重绘问题
|
||||
if (item.input.label !== newLabel) {
|
||||
item.input.label = newLabel;
|
||||
// Force redraw of this node
|
||||
// 强制重绘此节点
|
||||
if (this.setDirtyCanvas) {
|
||||
this.setDirtyCanvas(true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Reset label if disconnected
|
||||
// 如果断开连接,重置标签
|
||||
if (item.input.label) {
|
||||
item.input.label = undefined; // Or null, to revert to name // 或者设为 null,以恢复为名称
|
||||
if (this.setDirtyCanvas) {
|
||||
this.setDirtyCanvas(true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 3. Determine target behavior
|
||||
// 3. 确定目标行为
|
||||
// We want to ensure that if speaker_N is connected, speaker_{N+1} exists.
|
||||
// 我们要确保如果 speaker_N 已连接,则 speaker_{N+1} 存在。
|
||||
// If nothing is connected, we want speaker_1 to exist.
|
||||
// 如果没有任何连接,我们要确保 speaker_1 存在。
|
||||
const targetNum = maxConnectedNum + 1;
|
||||
|
||||
// 4. Add if missing
|
||||
// 4. 如果缺失则添加
|
||||
if (maxExistingNum < targetNum) {
|
||||
// Add intermediate slots if for some reason we jumped (unlikely but safe)
|
||||
// 如果由于某种原因跳过了(不太可能但为了安全起见),添加中间插槽
|
||||
for (let i = maxExistingNum + 1; i <= targetNum; i++) {
|
||||
// console.log("Adding input", `speaker_${i}`);
|
||||
this.addInput(`speaker_${i}`, "SPEAKER");
|
||||
}
|
||||
}
|
||||
|
||||
// 5. Remove if too many (trailing unconnected slots)
|
||||
// 5. 如果过多则移除(末尾未连接的插槽)
|
||||
// We only want to keep up to targetNum.
|
||||
// 我们只想保留到 targetNum。
|
||||
// Any slot > targetNum should be removed IF it is unconnected.
|
||||
// 任何 > targetNum 的插槽如果未连接都应被移除。
|
||||
// We iterate backwards to safely remove by index.
|
||||
// 我们反向迭代以按索引安全移除。
|
||||
|
||||
// Refresh inputs list as we might have added some
|
||||
// 刷新输入列表,因为我们可能添加了一些
|
||||
// Actually, let's just use the current logic:
|
||||
// 实际上,我们就使用当前的逻辑:
|
||||
// Any input named speaker_X where X > targetNum is a candidate for removal.
|
||||
// 任何名为 speaker_X 且 X > targetNum 的输入都是移除的候选对象。
|
||||
|
||||
// Note: Removing inputs changes indices, so we must be careful.
|
||||
// 注意:移除输入会改变索引,所以我们必须小心。
|
||||
// It's best to grab the current list of inputs again.
|
||||
// 最好再次获取当前的输入列表。
|
||||
|
||||
let inputsModified = false;
|
||||
|
||||
// Loop backwards
|
||||
// 反向循环
|
||||
for (let i = this.inputs.length - 1; i >= 0; i--) {
|
||||
const inp = this.inputs[i];
|
||||
if (inp.name.startsWith("speaker_")) {
|
||||
const num = parseInt(inp.name.split("_")[1]);
|
||||
if (num > targetNum) {
|
||||
// Verify it's not connected (double check)
|
||||
// 验证它未连接(再次检查)
|
||||
if (inp.link === undefined || inp.link === null) {
|
||||
// console.log("Removing input", inp.name);
|
||||
this.removeInput(i);
|
||||
inputsModified = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If we modified inputs, we might need to notify graph update?
|
||||
// 如果我们修改了输入,可能需要通知图形更新?
|
||||
// Usually not strictly required for inputs but good practice if visual glitches occur.
|
||||
// 通常对于输入不是严格要求的,但如果出现视觉故障,这是一个好的做法。
|
||||
|
||||
return r;
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,701 @@
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import torch
|
||||
import torchaudio
|
||||
import random
|
||||
import string
|
||||
import numpy as np
|
||||
import folder_paths
|
||||
import zlib
|
||||
import ast
|
||||
|
||||
# 将父目录添加到路径以允许导入 qwen_tts
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
# 添加本地克隆的 cc 目录到 sys.path
|
||||
qwen_repo_path = os.path.join(current_dir, "Qwen3-TTS")
|
||||
if os.path.exists(qwen_repo_path) and qwen_repo_path not in sys.path:
|
||||
sys.path.append(qwen_repo_path)
|
||||
|
||||
parent_dir = os.path.dirname(current_dir)
|
||||
if parent_dir not in sys.path:
|
||||
sys.path.append(parent_dir)
|
||||
|
||||
try:
|
||||
from qwen_tts.inference.qwen3_tts_model import Qwen3TTSModel
|
||||
except ImportError as e:
|
||||
print("\n" + "!" * 50)
|
||||
print("Warning / 警告:")
|
||||
print("Failed to import Qwen3TTS dependencies. / 无法导入 Qwen3TTS 依赖项。")
|
||||
print(f"Error details / 错误详情: {e}")
|
||||
print("\nPlease try the following steps to fix this issue / 请尝试以下步骤解决此问题:")
|
||||
print("1. Open terminal in the node directory / 在节点目录下打开终端:")
|
||||
print(f" cd {os.path.dirname(os.path.abspath(__file__))}")
|
||||
print("2. Install dependencies / 安装依赖:")
|
||||
print(" pip install -r requirements.txt")
|
||||
print("3. If using portable ComfyUI / 如果使用便携版 ComfyUI:")
|
||||
print(" path/to/python_embeded/python.exe -m pip install -r requirements.txt")
|
||||
print("!" * 50 + "\n")
|
||||
pass
|
||||
|
||||
def get_all_speakers():
|
||||
speakers = set()
|
||||
qwen_models_dir = os.path.join(folder_paths.models_dir, "Qwen3-TTS-Models")
|
||||
if os.path.exists(qwen_models_dir):
|
||||
for d in os.listdir(qwen_models_dir):
|
||||
path = os.path.join(qwen_models_dir, d)
|
||||
if os.path.isdir(path):
|
||||
config_path = os.path.join(path, "config.json")
|
||||
if os.path.exists(config_path):
|
||||
try:
|
||||
with open(config_path, "r", encoding="utf-8") as f:
|
||||
config = json.load(f)
|
||||
if "talker_config" in config and "spk_id" in config["talker_config"]:
|
||||
# Capitalize keys for better UI display (e.g. "vivian" -> "Vivian")
|
||||
# This helps match default values like "Vivian" in workflows
|
||||
keys = [k.capitalize() for k in config["talker_config"]["spk_id"].keys()]
|
||||
speakers.update(keys)
|
||||
except Exception as e:
|
||||
print(f"Failed to read config for {d}: {e}")
|
||||
|
||||
if not speakers:
|
||||
return ["Vivian", "Serena", "Ryan"] # Fallback defaults
|
||||
|
||||
return sorted(list(speakers))
|
||||
|
||||
KNOWN_MODELS = [
|
||||
"Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice",
|
||||
"Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign",
|
||||
"Qwen/Qwen3-TTS-12Hz-1.7B-Base",
|
||||
"Qwen/Qwen3-TTS-12Hz-0.6B-CustomVoice",
|
||||
"Qwen/Qwen3-TTS-12Hz-0.6B-Base",
|
||||
]
|
||||
|
||||
class TDQwen3TTSModelLoader:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
qwen_models_dir = os.path.join(folder_paths.models_dir, "Qwen3-TTS-Models")
|
||||
if not os.path.exists(qwen_models_dir):
|
||||
try:
|
||||
os.makedirs(qwen_models_dir, exist_ok=True)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Get existing directories
|
||||
existing_models = []
|
||||
if os.path.exists(qwen_models_dir):
|
||||
existing_models = [d for d in os.listdir(qwen_models_dir) if os.path.isdir(os.path.join(qwen_models_dir, d))]
|
||||
|
||||
# Merge known models and existing models (deduplicate by checking if known model's basename exists)
|
||||
model_list = list(KNOWN_MODELS)
|
||||
for existing in existing_models:
|
||||
# Check if this existing folder is already covered by a known model (by basename)
|
||||
is_known = False
|
||||
for known in KNOWN_MODELS:
|
||||
if known.split("/")[-1] == existing:
|
||||
is_known = True
|
||||
break
|
||||
if not is_known:
|
||||
model_list.append(existing)
|
||||
|
||||
if not model_list:
|
||||
model_list = ["Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice"]
|
||||
|
||||
return {
|
||||
"required": {
|
||||
"model_path": (model_list, {"default": "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice"}),
|
||||
"precision": (["bf16", "fp16", "fp32"], {"default": "bf16"}),
|
||||
"device": (["cuda", "cpu"], {"default": "cuda"}),
|
||||
"attn_implementation": (["sdpa", "flash_attention_2", "eager"], {"default": "sdpa"}),
|
||||
"auto_download": ("BOOLEAN", {"default": False, "label_on": "Enable", "label_off": "Disable"}),
|
||||
"download_source": (["ModelScope", "HuggingFace"], {"default": "ModelScope"}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("QWEN3_TTS_MODEL",)
|
||||
RETURN_NAMES = ("model",)
|
||||
FUNCTION = "load_model"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def load_model(self, model_path, precision, device, attn_implementation, auto_download, download_source):
|
||||
dtype = torch.bfloat16 if precision == "bf16" else torch.float16 if precision == "fp16" else torch.float32
|
||||
|
||||
print(f"Loading Qwen3-TTS Model from {model_path} (Precision: {precision}, Device: {device}, Attn: {attn_implementation})...")
|
||||
|
||||
qwen_models_dir = os.path.join(folder_paths.models_dir, "Qwen3-TTS-Models")
|
||||
|
||||
# Determine local path
|
||||
if "/" in model_path:
|
||||
local_name = model_path.split("/")[-1]
|
||||
else:
|
||||
local_name = model_path
|
||||
|
||||
local_path = os.path.join(qwen_models_dir, local_name)
|
||||
|
||||
# Check if model exists
|
||||
if not os.path.exists(local_path):
|
||||
if auto_download:
|
||||
print(f"Model not found at {local_path}. Attempting to download from {download_source}...")
|
||||
try:
|
||||
self.download_model(model_path, local_path, download_source)
|
||||
except Exception as e:
|
||||
raise RuntimeError(f"Failed to download model {model_path}: {e}")
|
||||
else:
|
||||
raise FileNotFoundError(f"Model not found at {local_path} and auto_download is disabled. Please enable auto_download or manually place the model in {qwen_models_dir}.")
|
||||
|
||||
print(f"Loading model from {local_path}...")
|
||||
model = Qwen3TTSModel.from_pretrained(
|
||||
local_path,
|
||||
device_map=device,
|
||||
dtype=dtype,
|
||||
attn_implementation=attn_implementation,
|
||||
)
|
||||
return (model,)
|
||||
|
||||
def download_model(self, model_id, local_dir, source):
|
||||
# Handle cases where user selected a custom folder name that isn't a repo ID
|
||||
if "/" not in model_id:
|
||||
# If it's not a repo ID, we can't download it unless we know the mapping.
|
||||
# But our INPUT_TYPES puts Repo IDs in the list.
|
||||
# If user manually typed a folder name, we assume they know what they are doing or it exists.
|
||||
# If it doesn't exist and isn't a repo ID, we can't download.
|
||||
raise ValueError(f"Cannot download '{model_id}' because it does not look like a valid Repo ID (e.g. User/Model).")
|
||||
|
||||
if source == "ModelScope":
|
||||
try:
|
||||
from modelscope import snapshot_download
|
||||
except ImportError:
|
||||
raise ImportError("ModelScope is not installed. Please run: pip install -U modelscope")
|
||||
|
||||
print(f"Downloading {model_id} from ModelScope to {local_dir}...")
|
||||
snapshot_download(model_id, local_dir=local_dir)
|
||||
|
||||
elif source == "HuggingFace":
|
||||
try:
|
||||
from huggingface_hub import snapshot_download
|
||||
except ImportError:
|
||||
raise ImportError("HuggingFace Hub is not installed. Please run: pip install -U huggingface_hub")
|
||||
|
||||
print(f"Downloading {model_id} from HuggingFace to {local_dir}...")
|
||||
snapshot_download(repo_id=model_id, local_dir=local_dir)
|
||||
|
||||
class TDQwen3TTSCustomVoice:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
speakers = get_all_speakers()
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"text": ("STRING", {"multiline": True, "default": "你好,我是Qwen3-TTS。"}),
|
||||
"speaker": (speakers, {"default": speakers[0] if speakers else "Vivian"}),
|
||||
"language": (["Auto", "Chinese", "English", "Japanese", "Korean", "German", "French", "Russian", "Portuguese", "Spanish", "Italian"], {"default": "Auto"}),
|
||||
},
|
||||
"optional": {
|
||||
"instruct": ("STRING", {"multiline": True, "default": ""}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("AUDIO",)
|
||||
RETURN_NAMES = ("audio",)
|
||||
FUNCTION = "generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def generate(self, model, text, speaker, language, instruct=""):
|
||||
if language == "Auto":
|
||||
language = None
|
||||
|
||||
print(f"正在为说话人 {speaker} 生成自定义语音...")
|
||||
wavs, sr = model.generate_custom_voice(
|
||||
text=text,
|
||||
speaker=speaker,
|
||||
language=language,
|
||||
instruct=instruct if instruct else None
|
||||
)
|
||||
|
||||
# ComfyUI 音频格式: {'waveform': tensor [batch, channels, samples], 'sample_rate': int}
|
||||
# wavs[0] 是 [samples] (单声道)
|
||||
audio_tensor = torch.from_numpy(wavs[0]).unsqueeze(0).unsqueeze(0)
|
||||
return ({"waveform": audio_tensor, "sample_rate": sr},)
|
||||
|
||||
class TDQwen3TTSDefineSpeaker:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"audio": ("AUDIO",),
|
||||
"name": ("STRING", {"default": "MySpeaker"}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("SPEAKER",)
|
||||
RETURN_NAMES = ("speaker",)
|
||||
FUNCTION = "define_speaker"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def define_speaker(self, audio, name):
|
||||
# Remove existing with same name to avoid duplicates/allow override
|
||||
name_clean = name.strip()
|
||||
print(f"Defined speaker '{name_clean}'")
|
||||
return ({"name": name_clean, "audio": audio},)
|
||||
|
||||
class TDQwen3TTSBatchGenerateSpeaker:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"speakers_config": ("STRING", {"default": "[]", "multiline": True}), # JSON string (Widget or Input)
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("SPEAKER_LIST",)
|
||||
RETURN_NAMES = ("speakers",)
|
||||
FUNCTION = "batch_generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def batch_generate(self, model, speakers_config):
|
||||
config_list = []
|
||||
if isinstance(speakers_config, list):
|
||||
config_list = speakers_config
|
||||
elif isinstance(speakers_config, str):
|
||||
try:
|
||||
config_list = json.loads(speakers_config)
|
||||
except json.JSONDecodeError:
|
||||
# Try parsing as Python literal (single quotes)
|
||||
try:
|
||||
config_list = ast.literal_eval(speakers_config)
|
||||
if not isinstance(config_list, list):
|
||||
print("Error: speakers_config evaluated to non-list.")
|
||||
return ([],)
|
||||
except (ValueError, SyntaxError):
|
||||
print("Error parsing speakers config. Ensure it is valid JSON or Python List.")
|
||||
return ([],)
|
||||
else:
|
||||
print(f"Error: speakers_config must be a JSON string or a list, got {type(speakers_config)}")
|
||||
return ([],)
|
||||
|
||||
generated_speakers = []
|
||||
batch_outputs = [] # For UI preview
|
||||
|
||||
print(f"Batch generating {len(config_list)} speakers...")
|
||||
|
||||
output_dir = folder_paths.get_temp_directory()
|
||||
|
||||
for item in config_list:
|
||||
name = item.get("name", "").strip()
|
||||
instruct = item.get("instruct", "").strip()
|
||||
text = item.get("text", "").strip()
|
||||
|
||||
if not name or not instruct or not text:
|
||||
print(f"Skipping invalid speaker config: {item}")
|
||||
continue
|
||||
|
||||
print(f"Generating speaker '{name}' with instruct: '{instruct}'...")
|
||||
try:
|
||||
# Use Voice Design logic
|
||||
wavs, sr = model.generate_voice_design(
|
||||
text=text,
|
||||
instruct=instruct,
|
||||
language=None # Auto
|
||||
)
|
||||
|
||||
# Check if wavs is empty or None
|
||||
if not wavs or len(wavs) == 0:
|
||||
print(f"Warning: No audio generated for speaker '{name}'")
|
||||
continue
|
||||
|
||||
# Convert to ComfyUI AUDIO format:
|
||||
wav_data = wavs[0]
|
||||
|
||||
# Ensure it's a tensor
|
||||
if isinstance(wav_data, np.ndarray):
|
||||
wav_tensor = torch.from_numpy(wav_data)
|
||||
else:
|
||||
wav_tensor = wav_data
|
||||
|
||||
# Ensure dimensions: [batch, channels, samples]
|
||||
if wav_tensor.ndim == 1:
|
||||
wav_tensor = wav_tensor.unsqueeze(0).unsqueeze(0) # [1, 1, samples]
|
||||
elif wav_tensor.ndim == 2:
|
||||
wav_tensor = wav_tensor.unsqueeze(0) # [1, channels, samples]
|
||||
|
||||
audio_dict = {"waveform": wav_tensor, "sample_rate": sr}
|
||||
|
||||
generated_speakers.append({"name": name, "audio": audio_dict, "instruct": instruct})
|
||||
|
||||
# Save preview audio
|
||||
filename = f"Qwen3TTS_Batch_{name}_{''.join(random.choices(string.ascii_letters + string.digits, k=8))}.wav"
|
||||
filepath = os.path.join(output_dir, filename)
|
||||
|
||||
# Save using torchaudio
|
||||
# torchaudio.save expects [channels, samples]
|
||||
# wav_tensor is [1, 1, samples], so squeeze(0) -> [1, samples]
|
||||
torchaudio.save(filepath, wav_tensor.squeeze(0), sr)
|
||||
|
||||
batch_outputs.append({
|
||||
"name": name,
|
||||
"filename": filename,
|
||||
"subfolder": "",
|
||||
"type": "temp"
|
||||
})
|
||||
|
||||
print(f"Successfully generated speaker '{name}'")
|
||||
|
||||
except Exception as e:
|
||||
print(f"Failed to generate speaker '{name}': {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
return {"ui": {"batch_outputs": batch_outputs}, "result": (generated_speakers,)}
|
||||
|
||||
class TDQwen3TTSMultiDialog:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
speakers = get_all_speakers()
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"text": ("STRING", {"multiline": True, "default": "Vivian: 你好!\nRyan: 你好,今天天气真不错。\nRoleA: 我是自定义角色A。\nVivian: 欢迎你!"}),
|
||||
"interval": ("FLOAT", {"default": 0.5, "min": 0.0, "max": 5.0, "step": 0.1}),
|
||||
"seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
},
|
||||
"optional": {
|
||||
"speaker_list": ("SPEAKER_LIST",), # New input for batch speakers
|
||||
"speaker_1": ("SPEAKER",), # Add explicit initial slot to ensure visibility before JS loads
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("AUDIO",)
|
||||
RETURN_NAMES = ("audio",)
|
||||
FUNCTION = "generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def generate(self, model, text, interval=0.5, seed=0, speaker_list=None, **kwargs):
|
||||
|
||||
language = None # Auto identify from audio
|
||||
|
||||
# 构建自定义角色字典
|
||||
custom_roles = {}
|
||||
|
||||
# Add from speaker_list (batch input)
|
||||
if speaker_list:
|
||||
# Handle case where speaker_list might be a single dictionary (if connected incorrectly but passed)
|
||||
if isinstance(speaker_list, dict):
|
||||
if "name" in speaker_list:
|
||||
custom_roles[speaker_list["name"]] = speaker_list
|
||||
elif isinstance(speaker_list, list):
|
||||
for spk in speaker_list:
|
||||
if isinstance(spk, dict) and "name" in spk:
|
||||
# Store full speaker object (name, audio, instruct)
|
||||
custom_roles[spk["name"]] = spk
|
||||
|
||||
# Add from individual inputs (kwargs)
|
||||
for key, value in kwargs.items():
|
||||
if key.startswith("speaker_") and value is not None:
|
||||
custom_roles[value["name"]] = value
|
||||
|
||||
if custom_roles:
|
||||
print(f"Loaded {len(custom_roles)} custom speakers: {list(custom_roles.keys())}")
|
||||
else:
|
||||
print("No custom speakers loaded.")
|
||||
|
||||
# Create lowercase mapping for custom roles to support case-insensitive matching
|
||||
custom_roles_lower = {k.lower(): k for k in custom_roles.keys()}
|
||||
|
||||
# 1. 解析文本
|
||||
dialog_items = []
|
||||
lines = text.strip().split('\n')
|
||||
|
||||
# Default to the first custom speaker if available, otherwise "Vivian"
|
||||
if custom_roles:
|
||||
current_speaker = list(custom_roles.keys())[0]
|
||||
else:
|
||||
current_speaker = "Vivian"
|
||||
|
||||
available_speakers = get_all_speakers()
|
||||
# Create a lowercase mapping for case-insensitive lookup
|
||||
available_speakers_lower = {s.lower(): s for s in available_speakers}
|
||||
|
||||
for line in lines:
|
||||
line = line.strip()
|
||||
if not line:
|
||||
continue
|
||||
|
||||
# 尝试解析 "Speaker: Text" 或 "[Speaker]: Text"
|
||||
if ":" in line or ":" in line:
|
||||
# 统一冒号
|
||||
line_fixed = line.replace(":", ":")
|
||||
parts = line_fixed.split(":", 1)
|
||||
possible_speaker = parts[0].strip().replace("[", "").replace("]", "")
|
||||
content = parts[1].strip()
|
||||
|
||||
# 优先级:自定义角色 > 预设角色
|
||||
|
||||
# 1. Exact match custom
|
||||
if possible_speaker in custom_roles:
|
||||
current_speaker = possible_speaker
|
||||
dialog_items.append((current_speaker, content))
|
||||
# 2. Case-insensitive match custom
|
||||
elif possible_speaker.lower() in custom_roles_lower:
|
||||
current_speaker = custom_roles_lower[possible_speaker.lower()]
|
||||
dialog_items.append((current_speaker, content))
|
||||
# 3. Exact match preset
|
||||
elif possible_speaker in available_speakers:
|
||||
current_speaker = possible_speaker
|
||||
dialog_items.append((current_speaker, content))
|
||||
# 4. Case-insensitive match preset
|
||||
elif possible_speaker.lower() in available_speakers_lower:
|
||||
current_speaker = available_speakers_lower[possible_speaker.lower()]
|
||||
dialog_items.append((current_speaker, content))
|
||||
else:
|
||||
# 如果不是已知角色,归为当前 speaker 的延续
|
||||
print(f"Warning: Speaker '{possible_speaker}' not found in custom or preset speakers. Treating as text for '{current_speaker}'.")
|
||||
dialog_items.append((current_speaker, line))
|
||||
else:
|
||||
# 没有冒号,认为是当前角色的延续
|
||||
dialog_items.append((current_speaker, line))
|
||||
|
||||
# 2. 生成音频
|
||||
all_wavs = []
|
||||
sample_rate = None
|
||||
|
||||
print(f"开始生成多人对话,共 {len(dialog_items)} 个片段...")
|
||||
|
||||
# Detect model type
|
||||
model_type = getattr(model.model, "tts_model_type", "unknown")
|
||||
print(f"Detected model type: {model_type}")
|
||||
|
||||
for i, (speaker, content) in enumerate(dialog_items):
|
||||
if not content:
|
||||
continue
|
||||
|
||||
# Set deterministic seed based on global seed + speaker name hash
|
||||
# This ensures that the same speaker always gets the same random seed for generation
|
||||
# Use & 0xffffffff to ensure adler32 result is treated consistently
|
||||
speaker_seed = (seed + (zlib.adler32(speaker.encode('utf-8')) & 0xffffffff)) % 0xffffffffffffffff
|
||||
torch.manual_seed(speaker_seed)
|
||||
if torch.cuda.is_available():
|
||||
torch.cuda.manual_seed(speaker_seed)
|
||||
|
||||
print(f"[{i+1}/{len(dialog_items)}] 正在为 {speaker} 生成: {content[:20]}...")
|
||||
try:
|
||||
wav = None
|
||||
sr = None
|
||||
|
||||
# Check if it is a custom role
|
||||
if speaker in custom_roles:
|
||||
role_data = custom_roles[speaker]
|
||||
|
||||
if model_type == "voice_design":
|
||||
# For Voice Design model, we MUST use instruct
|
||||
instruct = role_data.get("instruct")
|
||||
if instruct:
|
||||
print(f" - 使用 Voice Design (Instruct: {instruct[:20]}...)...")
|
||||
wavs, sr = model.generate_voice_design(
|
||||
text=content,
|
||||
instruct=instruct,
|
||||
language=language
|
||||
)
|
||||
wav = wavs[0]
|
||||
else:
|
||||
print(f"Error: Speaker '{speaker}' has no 'instruct' and model is Voice Design. Skipping.")
|
||||
continue
|
||||
|
||||
elif model_type == "base":
|
||||
# For Base model, use Voice Clone (requires audio)
|
||||
if "audio" in role_data and role_data["audio"]:
|
||||
ref_audio = role_data["audio"]
|
||||
waveform = ref_audio["waveform"]
|
||||
ref_sr = ref_audio["sample_rate"]
|
||||
|
||||
# Prepare ref audio
|
||||
ref_wav_tensor = waveform[0]
|
||||
if ref_wav_tensor.shape[0] > 1:
|
||||
ref_wav_tensor = torch.mean(ref_wav_tensor, dim=0, keepdim=True)
|
||||
ref_wav_np = ref_wav_tensor.squeeze(0).numpy()
|
||||
|
||||
print(f" - 使用 Voice Clone (Base Model)...")
|
||||
wavs, sr = model.generate_voice_clone(
|
||||
text=content,
|
||||
language=language,
|
||||
ref_audio=(ref_wav_np, ref_sr),
|
||||
ref_text=None,
|
||||
x_vector_only_mode=True
|
||||
)
|
||||
wav = wavs[0]
|
||||
else:
|
||||
print(f"Error: Speaker '{speaker}' has no 'audio' and model is Base. Skipping.")
|
||||
continue
|
||||
|
||||
elif model_type == "custom_voice":
|
||||
# Try fallback to preset if name matches
|
||||
supported = model.get_supported_speakers()
|
||||
if supported and speaker.lower() in [s.lower() for s in supported]:
|
||||
print(f" - Fallback to Preset Speaker '{speaker}'...")
|
||||
wavs, sr = model.generate_custom_voice(
|
||||
text=content,
|
||||
speaker=speaker,
|
||||
language=language
|
||||
)
|
||||
wav = wavs[0]
|
||||
else:
|
||||
print(f"Error: CustomVoice model cannot generate custom speaker '{speaker}'.")
|
||||
continue
|
||||
else:
|
||||
print(f"Error: Unknown model type '{model_type}'. Cannot determine generation method.")
|
||||
continue
|
||||
|
||||
else:
|
||||
# Preset Speaker (not in custom_roles)
|
||||
if model_type == "custom_voice":
|
||||
print(f" - 使用 Custom Voice (Preset: {speaker})...")
|
||||
wavs, sr = model.generate_custom_voice(
|
||||
text=content,
|
||||
speaker=speaker,
|
||||
language=language,
|
||||
instruct=None
|
||||
)
|
||||
wav = wavs[0]
|
||||
else:
|
||||
print(f"Error: Model type '{model_type}' does not support preset speaker '{speaker}'. Please define '{speaker}' as a custom role with an 'instruct' (for Voice Design) or 'audio' (for Base).")
|
||||
continue
|
||||
|
||||
if sample_rate is None:
|
||||
sample_rate = sr
|
||||
elif sample_rate != sr:
|
||||
print(f"Warning: Sample rate mismatch {sr} vs {sample_rate}, skipping resampling for now (assuming compatible).")
|
||||
|
||||
all_wavs.append(wav)
|
||||
|
||||
# 添加间隔
|
||||
if interval > 0 and i < len(dialog_items) - 1:
|
||||
silence_samples = int(interval * sr)
|
||||
silence = np.zeros(silence_samples, dtype=np.float32)
|
||||
all_wavs.append(silence)
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error generating segment for {speaker}: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
continue
|
||||
|
||||
if not all_wavs:
|
||||
# 返回静音或报错
|
||||
print("Warning: No audio generated.")
|
||||
# 返回 1秒静音
|
||||
sr = sample_rate if sample_rate else 24000
|
||||
silence = np.zeros(sr, dtype=np.float32)
|
||||
audio_tensor = torch.from_numpy(silence).unsqueeze(0).unsqueeze(0)
|
||||
return ({"waveform": audio_tensor, "sample_rate": sr},)
|
||||
|
||||
# 3. 拼接
|
||||
final_wav = np.concatenate(all_wavs)
|
||||
|
||||
# 转换为 tensor [1, 1, samples]
|
||||
audio_tensor = torch.from_numpy(final_wav).unsqueeze(0).unsqueeze(0)
|
||||
|
||||
return ({"waveform": audio_tensor, "sample_rate": sample_rate},)
|
||||
|
||||
class TDQwen3TTSVoiceDesign:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"text": ("STRING", {"multiline": True, "default": "这是一个语音设计测试。"}),
|
||||
"instruct": ("STRING", {"multiline": True, "default": "一个年轻女性的声音,语气愉快。"}),
|
||||
"language": (["Auto", "Chinese", "English", "Japanese", "Korean", "German", "French", "Russian", "Portuguese", "Spanish", "Italian"], {"default": "Auto"}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("AUDIO",)
|
||||
RETURN_NAMES = ("audio",)
|
||||
FUNCTION = "generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def generate(self, model, text, instruct, language):
|
||||
if language == "Auto":
|
||||
language = None
|
||||
|
||||
print(f"正在使用指令生成语音设计: {instruct}...")
|
||||
wavs, sr = model.generate_voice_design(
|
||||
text=text,
|
||||
instruct=instruct,
|
||||
language=language
|
||||
)
|
||||
|
||||
audio_tensor = torch.from_numpy(wavs[0]).unsqueeze(0).unsqueeze(0)
|
||||
return ({"waveform": audio_tensor, "sample_rate": sr},)
|
||||
|
||||
class TDQwen3TTSVoiceClone:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"text": ("STRING", {"multiline": True, "default": "这是一个语音克隆测试。"}),
|
||||
"ref_audio": ("AUDIO",),
|
||||
"language": (["Auto", "Chinese", "English", "Japanese", "Korean", "German", "French", "Russian", "Portuguese", "Spanish", "Italian"], {"default": "Auto"}),
|
||||
},
|
||||
"optional": {
|
||||
"ref_text": ("STRING", {"multiline": True, "default": ""}),
|
||||
"x_vector_only_mode": ("BOOLEAN", {"default": False, "label_on": "Enable", "label_off": "Disable"}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("AUDIO",)
|
||||
RETURN_NAMES = ("audio",)
|
||||
FUNCTION = "generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def generate(self, model, text, ref_audio, language, ref_text="", x_vector_only_mode=False):
|
||||
if language == "Auto":
|
||||
language = None
|
||||
|
||||
waveform = ref_audio["waveform"] # [batch, channels, samples]
|
||||
sr = ref_audio["sample_rate"]
|
||||
|
||||
# 处理参考音频:取第一个批次,如果多声道则混合为单声道,最后转为 numpy
|
||||
ref_wav_tensor = waveform[0] # [channels, samples]
|
||||
if ref_wav_tensor.shape[0] > 1:
|
||||
print(f"检测到多声道音频,正在混合为单声道...")
|
||||
ref_wav_tensor = torch.mean(ref_wav_tensor, dim=0, keepdim=True)
|
||||
|
||||
ref_wav_np = ref_wav_tensor.squeeze(0).numpy() # [samples]
|
||||
|
||||
# 参考 test_model_12hz_base.py 的实现
|
||||
# 如果未启用 x_vector_only_mode,则必须提供 ref_text
|
||||
if not x_vector_only_mode and not ref_text.strip():
|
||||
raise ValueError("必须填写参考文本(ref_text),内容为参考音频的实际说话内容。如果无法提供文本,请开启 'x_vector_only_mode'。")
|
||||
|
||||
print(f"正在生成语音克隆 (x_vector_only_mode={x_vector_only_mode})...")
|
||||
wavs, out_sr = model.generate_voice_clone(
|
||||
text=text,
|
||||
language=language,
|
||||
ref_audio=(ref_wav_np, sr),
|
||||
ref_text=ref_text if ref_text else None,
|
||||
x_vector_only_mode=x_vector_only_mode
|
||||
)
|
||||
|
||||
audio_tensor = torch.from_numpy(wavs[0]).unsqueeze(0).unsqueeze(0)
|
||||
return ({"waveform": audio_tensor, "sample_rate": out_sr},)
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"TDQwen3TTSModelLoader": TDQwen3TTSModelLoader,
|
||||
"TDQwen3TTSCustomVoice": TDQwen3TTSCustomVoice,
|
||||
"TDQwen3TTSMultiDialog": TDQwen3TTSMultiDialog,
|
||||
"TDQwen3TTSDefineSpeaker": TDQwen3TTSDefineSpeaker,
|
||||
"TDQwen3TTSBatchGenerateSpeaker": TDQwen3TTSBatchGenerateSpeaker,
|
||||
"TDQwen3TTSVoiceDesign": TDQwen3TTSVoiceDesign,
|
||||
"TDQwen3TTSVoiceClone": TDQwen3TTSVoiceClone,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"TDQwen3TTSModelLoader": "TD Qwen3 TTS Model Loader",
|
||||
"TDQwen3TTSCustomVoice": "TD Qwen3 TTS Custom Voice",
|
||||
"TDQwen3TTSMultiDialog": "TD Qwen3 TTS Multi Dialog",
|
||||
"TDQwen3TTSDefineSpeaker": "TD Qwen3 TTS Define Speaker",
|
||||
"TDQwen3TTSBatchGenerateSpeaker": "TD Qwen3 TTS Batch Generate Speaker",
|
||||
"TDQwen3TTSVoiceDesign": "TD Qwen3 TTS Voice Design",
|
||||
"TDQwen3TTSVoiceClone": "TD Qwen3 TTS Voice Clone",
|
||||
}
|
||||
@@ -0,0 +1,517 @@
|
||||
[
|
||||
{
|
||||
"path": ".github/workflows/publish.yml",
|
||||
"size": 647,
|
||||
"sha256": "0232916cbe1a18f885df5514f4b3480fd29fb8fac7c53a8a2bc92a862d61154e"
|
||||
},
|
||||
{
|
||||
"path": ".gitignore",
|
||||
"size": 122,
|
||||
"sha256": "1748bd83608a34dccd2d16c2b45ebd066e7172f1d5135b87cdd2f300e6b27697"
|
||||
},
|
||||
{
|
||||
"path": ".gitmodules",
|
||||
"size": 96,
|
||||
"sha256": "ead3e9a3279ccd0b9310f0d520ba3ca88a8e962e1451608180aa740c9c835153"
|
||||
},
|
||||
{
|
||||
"path": "LICENSE.txt",
|
||||
"size": 35149,
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"path": "README.md",
|
||||
"size": 51528,
|
||||
"sha256": "052ed88a4183dcc2450f9f9275264de97520c44f0e966c032278586e295c5632"
|
||||
},
|
||||
{
|
||||
"path": "__init__.py",
|
||||
"size": 21951,
|
||||
"sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0"
|
||||
},
|
||||
{
|
||||
"path": "custom_wildcards/put_wildcards_here",
|
||||
"size": 0,
|
||||
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
},
|
||||
{
|
||||
"path": "docs/wildcards/README.md",
|
||||
"size": 1225,
|
||||
"sha256": "771e9555b7fae14b2019e8daad0a5411d59178747c115448282cfeb28095e87d"
|
||||
},
|
||||
{
|
||||
"path": "docs/wildcards/SUMMARY.md",
|
||||
"size": 4425,
|
||||
"sha256": "b3e5fc6343c6236a02efac5ba6e7404d74388bb13a2e01df14f63329628e4c25"
|
||||
},
|
||||
{
|
||||
"path": "docs/wildcards/WILDCARD_SYSTEM_DESIGN.md",
|
||||
"size": 24923,
|
||||
"sha256": "1642e920a75f9f14b25a121f25b64914344b2fb54c22b43c936efb3cbeedf853"
|
||||
},
|
||||
{
|
||||
"path": "docs/wildcards/WILDCARD_SYSTEM_PRD.md",
|
||||
"size": 15080,
|
||||
"sha256": "1033516c3677998bc0f76d0c0fa0faeb2d36bc13c708bac219cde77ced59077b"
|
||||
},
|
||||
{
|
||||
"path": "docs/wildcards/WILDCARD_TESTING_GUIDE.md",
|
||||
"size": 9907,
|
||||
"sha256": "fb03db6478a77a2419acf302f5b97b4c51c9f32f072a9166279081c325675980"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/1-FaceDetailer.jpg",
|
||||
"size": 64932,
|
||||
"sha256": "c1a4ed7a9079d45a01a52043d9672d2646fdd28b88eac958e51dc2b38aa438c0"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/1-FaceDetailer.json",
|
||||
"size": 21147,
|
||||
"sha256": "bce9cc29c07ba8995bf921f919392066cd4bfaba4dd33a17b035168deb7c947c"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/2-MaskDetailer.jpg",
|
||||
"size": 114261,
|
||||
"sha256": "1abd1823bed26d5e8c92707c0369d41b4f7c6a0629e70c3fa92fcc914585dc8a"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/2-MaskDetailer.json",
|
||||
"size": 11958,
|
||||
"sha256": "13c151c9f0bb7779020fee73a903819c24ca783e355e37b176e6977bddedbb3f"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/3-SEGSDetailer.jpg",
|
||||
"size": 42824,
|
||||
"sha256": "9f4aed9e96b46408fba0ed644ce1a86ffa7ca3cfd373c2849a2cc1fc5f243175"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/3-SEGSDetailer.json",
|
||||
"size": 19373,
|
||||
"sha256": "905062125d64bce059d9554e5adeb13e3ca3654109ef07a7a31ad6178c5b7b6d"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/4-MakeTileSEGS-Upscale.jpg",
|
||||
"size": 108834,
|
||||
"sha256": "b1d3d9a3563821ba82a6277610e83ec2fe20473679ebb25c70c811a252e06ecd"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/4-MakeTileSEGS-Upscale.json",
|
||||
"size": 31936,
|
||||
"sha256": "a63092b1dd1ae7d508b9818e57b141894fdd017bc15d8b94fd731bfea6fdebab"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/5-PreviewDetailerHookProvider.jpg",
|
||||
"size": 68539,
|
||||
"sha256": "f37a67d0b42e4d94950a4d27de403b022d684824571021c702196a2989bf8349"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/5-PreviewDetailerHookProvider.json",
|
||||
"size": 29902,
|
||||
"sha256": "b20ee55ffae8fb564f6d3806b6b062ff81e54a3bd1c8ebd80421b21613694163"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/5-prompt-per-tile.jpg",
|
||||
"size": 130918,
|
||||
"sha256": "232bde22503e087e47c391bb91bbcc830c9882889ac715c1ec139667ea3d2c03"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/5-prompt-per-tile.json",
|
||||
"size": 21444,
|
||||
"sha256": "501fc470c82e93c5e619e54ca16bc45e9e5c8aed4823d9c7b4884ad70f14ee6b"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/6-DetailerWildcard.jpg",
|
||||
"size": 538538,
|
||||
"sha256": "f80a2add23387329e86abfb00382d1efd818df33a8fa19c93cdf75a478a491df"
|
||||
},
|
||||
{
|
||||
"path": "example_workflows/6-DetailerWildcard.json",
|
||||
"size": 21235,
|
||||
"sha256": "1e7c57991611bd1277e9367b278a55efcc82a1e9e737ca510947fb480650757c"
|
||||
},
|
||||
{
|
||||
"path": "install.py",
|
||||
"size": 3971,
|
||||
"sha256": "9520f8f0c099b78d78e47316323e47b31597cb10de3f4017565fc986eabd1e8e"
|
||||
},
|
||||
{
|
||||
"path": "js/common.js",
|
||||
"size": 7809,
|
||||
"sha256": "0b52de41ef5d5e51add0dd1051ac708ea882aa5b8ce0a10779ae1d2cbbe7d795"
|
||||
},
|
||||
{
|
||||
"path": "js/impact-image-util.js",
|
||||
"size": 5699,
|
||||
"sha256": "6a2063c647ac7bcd1db150b9bdc4b1883721bf33990be5c1773a760d0a71fd38"
|
||||
},
|
||||
{
|
||||
"path": "js/impact-pack.js",
|
||||
"size": 28835,
|
||||
"sha256": "03d2ea39e66bd669166b8dbb5e3eb7b25ac23e6a761bce5cacde6ca979a42a71"
|
||||
},
|
||||
{
|
||||
"path": "js/impact-sam-editor.js",
|
||||
"size": 19863,
|
||||
"sha256": "fdc061010d8c00505af3a3fc95db12ae01f2ffa0bc8a2162dc05f6c17a64a7fd"
|
||||
},
|
||||
{
|
||||
"path": "js/impact-segs-picker.js",
|
||||
"size": 5725,
|
||||
"sha256": "ed1b8f380befcd21651af11ac46ac2fd9348d57ea8ef3d752634da498f6ce0c5"
|
||||
},
|
||||
{
|
||||
"path": "js/mask-rect-area-advanced.js",
|
||||
"size": 16638,
|
||||
"sha256": "19138d8e1d2c0dcc2066adc3541977837b115843e139a25b5d099d5649444f81"
|
||||
},
|
||||
{
|
||||
"path": "js/mask-rect-area.js",
|
||||
"size": 17842,
|
||||
"sha256": "279136cb6e3912f0f280cda23ad6fb8bfb8beb19e94ac288753eeb772214a5cf"
|
||||
},
|
||||
{
|
||||
"path": "latent.png",
|
||||
"size": 2814,
|
||||
"sha256": "1faf0cc926b0d65c8ab93e7485aea816283eb22fdeefe9682c206948c1de2043"
|
||||
},
|
||||
{
|
||||
"path": "locales/ko/nodeDefs.json",
|
||||
"size": 70753,
|
||||
"sha256": "40e46597d8772a53a3d5c93295aa290899bd83372fe82d37bd2d9c6eec5386fd"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/additional_dependencies.py",
|
||||
"size": 424,
|
||||
"sha256": "9aaaf0bd584f6006bd39ae04eaf240a3a76688a2a2f8f6dba4d6b2013438052e"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/animatediff_nodes.py",
|
||||
"size": 11434,
|
||||
"sha256": "d89c2c095c3ae2dc89a1aa9014d75c0b035c484a442cf3c1343638e61db31e15"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/bridge_nodes.py",
|
||||
"size": 22509,
|
||||
"sha256": "60ff69d1a707dce3d9bb52c3d3dd69b00e8855bde7795e736634577cd18234cc"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/config.py",
|
||||
"size": 3364,
|
||||
"sha256": "5d733ecc85bdf0cde27e5a25dc936736582767812486a566f412e53e691a20f5"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/core.py",
|
||||
"size": 99603,
|
||||
"sha256": "6dc6cfc3048ae222779841eb28c61c594106293e68730003c13d72dc73f01545"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/defs.py",
|
||||
"size": 1302,
|
||||
"sha256": "3245470dd01c49582ee9a4a626518c316c57d6ef236ed098f8d42b9554fd1757"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/detectors.py",
|
||||
"size": 29207,
|
||||
"sha256": "d9a8cfce4f4a4ca54025f6b35bd92fe22ff9732bfe5cf9f470140fde389a546c"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/hf_nodes.py",
|
||||
"size": 5431,
|
||||
"sha256": "51c56b535d0181f515b077f6b150b0ce778605461ce3fea988a9e59571535c9c"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/hook_nodes.py",
|
||||
"size": 4182,
|
||||
"sha256": "581769ce60b53fa017ac7e33eb6b6f2579efaf8b18d2e17947b5a06475e52204"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/hooks.py",
|
||||
"size": 21012,
|
||||
"sha256": "0fc1b9efbee36e5e8509dbc76300e4d6760bb8e95d637660a0f5051088dc2da6"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/impact_onnx.py",
|
||||
"size": 1399,
|
||||
"sha256": "8b838d1bdd173284d906dcb261d100c16edd13e0ea55566fa5856a59defd23d7"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/impact_pack.py",
|
||||
"size": 129693,
|
||||
"sha256": "16c91003f6508c33858193b763ad2a72a78dd8e9a83274a56897cbbd0fe80b5a"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/impact_sampling.py",
|
||||
"size": 16526,
|
||||
"sha256": "66ae5415e256004ed45376cc25172cd77e48d15d310b20c7e3f051b8dc842536"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/impact_server.py",
|
||||
"size": 23765,
|
||||
"sha256": "2e0bac8e1bc1596e63b1b51f9c0f4183aa72b48753fbe1dbd97413a82d14496d"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/logics.py",
|
||||
"size": 22496,
|
||||
"sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/pipe.py",
|
||||
"size": 17229,
|
||||
"sha256": "7462c32b156a17d41ce3ffaca6b12a6e4e347223a90f255a6f4c0e5743aa4c9b"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/segs_nodes.py",
|
||||
"size": 77516,
|
||||
"sha256": "c1d9fb7962a3a46da3e6ec94a88384a1b22ee9f9845a0aa722501f408bef65d1"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/segs_upscaler.py",
|
||||
"size": 5765,
|
||||
"sha256": "cb4d0adecb1a80db92a46af83569bb911e68b84264b626146e041f803073954b"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/special_samplers.py",
|
||||
"size": 39309,
|
||||
"sha256": "32647b60dd169f953b04ebdacf9e2a59c3870ecf442f01f3f76d96906283989c"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/util_nodes.py",
|
||||
"size": 24486,
|
||||
"sha256": "7ca6a382fd2d5e7c563a0c9ac15918a23b84c872ef7f64248bc485c26921c710"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/utils.py",
|
||||
"size": 21262,
|
||||
"sha256": "92853e548bbc77860bc6f6e1b582a93a7d7d0ecea278138c475f1cdc2f62cce7"
|
||||
},
|
||||
{
|
||||
"path": "modules/impact/wildcards.py",
|
||||
"size": 47830,
|
||||
"sha256": "8a0e2f2b4cafd05bfc431d22d0f563d0427f55cab51cd641369451217251161c"
|
||||
},
|
||||
{
|
||||
"path": "modules/thirdparty/noise_nodes.py",
|
||||
"size": 3428,
|
||||
"sha256": "f6266cf6f4a812324ab3058c6d9c04ae2153d02785f7d1cac21a32efec5f8904"
|
||||
},
|
||||
{
|
||||
"path": "node_list.json",
|
||||
"size": 147,
|
||||
"sha256": "c6476f5df53446e8801ec089740c293228cd0ac23b3a8c7134165e45e525b4f8"
|
||||
},
|
||||
{
|
||||
"path": "notebook/comfyui_colab_impact_pack.ipynb",
|
||||
"size": 5435,
|
||||
"sha256": "92c17ec345f68bc588bfe69285ff6b17af661bfa17a48f5842dc3994cf317636"
|
||||
},
|
||||
{
|
||||
"path": "pyproject.toml",
|
||||
"size": 745,
|
||||
"sha256": "3d6fa2cbd4b687d3d514ac41f601aae9e8a2f73c71f93adb548ccb09458a9094"
|
||||
},
|
||||
{
|
||||
"path": "requirements.txt",
|
||||
"size": 146,
|
||||
"sha256": "a8220b5c17eabc1edb99739679b65907cc17d8d4dd0980f73fe638989b4365a8"
|
||||
},
|
||||
{
|
||||
"path": "ruff.toml",
|
||||
"size": 68,
|
||||
"sha256": "e75bd15977c61ec29aa2b9966950fd64a95987424427618c3b6552da3b7b45e3"
|
||||
},
|
||||
{
|
||||
"path": "tests/README.md",
|
||||
"size": 4253,
|
||||
"sha256": "cce7304b4f820a624950402863a14be57540f441d7ebbdc8dbde5d118265b98c"
|
||||
},
|
||||
{
|
||||
"path": "tests/RUN_ALL_TESTS.md",
|
||||
"size": 1537,
|
||||
"sha256": "4a9752d276247d78c4bb2fd13c002e2be08c308df4ff70dffb35429d040f4905"
|
||||
},
|
||||
{
|
||||
"path": "tests/restart_test_server.sh",
|
||||
"size": 1882,
|
||||
"sha256": "92207b469c2030a83ab5e7b49c4b4458e70d09d9042014a67d50cee55ed0ef6d"
|
||||
},
|
||||
{
|
||||
"path": "tests/test_config_quotes.sh",
|
||||
"size": 4328,
|
||||
"sha256": "f9c6ad1cb862ce499fff4851d24d359ffaee2ab2ee7f7ab14342b83e0c878db2"
|
||||
},
|
||||
{
|
||||
"path": "tests/test_deep_nesting.sh",
|
||||
"size": 8167,
|
||||
"sha256": "e76f19b01ab0d3badee36f533dd46a9ac1fdedf7f2d0911d619370e1a6066fac"
|
||||
},
|
||||
{
|
||||
"path": "tests/test_dynamic_prompts_full.sh",
|
||||
"size": 7988,
|
||||
"sha256": "23a51b552fdf13daa55c789ce49530ed07817df736908178c6405d8b5ade1303"
|
||||
},
|
||||
{
|
||||
"path": "tests/test_edge_cases.sh",
|
||||
"size": 5949,
|
||||
"sha256": "2bb56022e3b95b6d45ffc0df87a7c2f4d922aa7cd85b491b2b80c707ad8d715c"
|
||||
},
|
||||
{
|
||||
"path": "tests/test_encoding.sh",
|
||||
"size": 5508,
|
||||
"sha256": "ea49b64fc533d6156beab2218f69b0330819080d6f0d67505d57d4bc7cd6edfd"
|
||||
},
|
||||
{
|
||||
"path": "tests/test_error_handling.sh",
|
||||
"size": 5526,
|
||||
"sha256": "a5623230828d03d1fda3047b437f4b5db8addf43e106de603324e2ad24383304"
|
||||
},
|
||||
{
|
||||
"path": "tests/test_ondemand_loading.sh",
|
||||
"size": 6950,
|
||||
"sha256": "273a2691a1f2b56802cd2e49cc2b38e7763399d2e594ef89a130904b7c1295c8"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/README.md",
|
||||
"size": 21263,
|
||||
"sha256": "be3939debb78c731aa9a8a86f9366317a04b377f336dbfa0460bb4b89737ab73"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/find_deep_transitive.py",
|
||||
"size": 5863,
|
||||
"sha256": "c518baa0b863cfc8f4b052755410e88d28b6de345783772c6f02aee728a58fb9"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/find_transitive_wildcards.sh",
|
||||
"size": 3781,
|
||||
"sha256": "d8ea0e9f2b29258d4ba40db523159c8640677707339cec86568ccd1ae6afa211"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/run_quick_test.sh",
|
||||
"size": 2956,
|
||||
"sha256": "e55b5743358444c332601bdd64b4f4aa68f32eb6f318afeb213bb280fbc59c52"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/samples/README.md",
|
||||
"size": 6409,
|
||||
"sha256": "74a0fd21a65ab7482425b4b481d2eea97f7f9c40c91472fa97829c04ec6e809f"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/test_lazy_load_api.sh",
|
||||
"size": 7153,
|
||||
"sha256": "b7c5b2ca8f343b864bd5b433dce1932b75d2fa033e544f4dfc3b7fda3db8077e"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/test_lazy_load_verification.py",
|
||||
"size": 7687,
|
||||
"sha256": "9d7bd05162aa52e74fd1b586ef5f869012398cdf2cd361b1eda3b3d0b4a5716b"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/test_progressive_loading.py",
|
||||
"size": 9361,
|
||||
"sha256": "3a2ac369b40fe77a52dbd04720a84bc1727977cbd2f77d3e0ef3c75210bfcf83"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/test_progressive_ondemand.sh",
|
||||
"size": 9519,
|
||||
"sha256": "2e79224bc201981765c260d8924bcaf80fc4a25e685cd4ec24a92e7ad00054f1"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/test_sequential_loading.sh",
|
||||
"size": 8785,
|
||||
"sha256": "91a8c26d307e303b22ca641629a451e21c9a956fa51b3a9afe7157746d21806b"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/test_versatile_prompts.sh",
|
||||
"size": 7713,
|
||||
"sha256": "1f9cf7048e1e1fb2b70e736771f88a468fb296b907ffc8c45df688bdbcf6eea6"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/test_wildcard_consistency.sh",
|
||||
"size": 6870,
|
||||
"sha256": "9a2cef04ebc35890f09fc8dc47eab6d388ebaf4078391acbfa0afb19469c0810"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/test_wildcard_final.py",
|
||||
"size": 4746,
|
||||
"sha256": "42798e3d7202ff683c28b2e812fc3788764e0d7998c6f060922bf1d860954a3c"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/test_wildcard_lazy_loading.py",
|
||||
"size": 6149,
|
||||
"sha256": "7d795cacf73aa8ef6b60b4a8e0b20fcb72746a6fbca6d4517551c810cec79e85"
|
||||
},
|
||||
{
|
||||
"path": "tests/wildcards/verify_ondemand_mode.sh",
|
||||
"size": 2777,
|
||||
"sha256": "4864c64ea8372aefd6a7885d7d5982b2cf87f5af13fb0f286dcf4ff15aec0ed9"
|
||||
},
|
||||
{
|
||||
"path": "tests/workflows/advanced-sampler.json",
|
||||
"size": 16207,
|
||||
"sha256": "26c6be819f803b2bb169b1a4062050aae772e91b3f3e05654a16c7b24f54cfb2"
|
||||
},
|
||||
{
|
||||
"path": "tests/workflows/detailer-pipe-test-sdxl.json",
|
||||
"size": 33006,
|
||||
"sha256": "a8119d665e35c29d63290b8c107587b490c8ba48b2f1d4cf3fe59ea4c49e3fe2"
|
||||
},
|
||||
{
|
||||
"path": "tests/workflows/detailer-pipe-test.json",
|
||||
"size": 60406,
|
||||
"sha256": "ac986ae1e8df0c2b64710800f90c429cadd77de32d591f3b92b2bede40a8aeca"
|
||||
},
|
||||
{
|
||||
"path": "tests/workflows/impactwildcardprocessor_separate_tests.json",
|
||||
"size": 23061,
|
||||
"sha256": "9ed458ba00674b02d0e479f88672b55294e3e79492b9306c8eaaf3c265ba700f"
|
||||
},
|
||||
{
|
||||
"path": "tests/workflows/impactwildcardprocessor_yaml_tests.json",
|
||||
"size": 41914,
|
||||
"sha256": "30741ef5abb771694c884f842cf2f9dfa33fa73cca828d94651ba54444c4ae8a"
|
||||
},
|
||||
{
|
||||
"path": "tests/workflows/loop-test.json",
|
||||
"size": 17958,
|
||||
"sha256": "9e487c1934798ee23e7f7dd0976797f1c488039db0f38098bb86a999d9a118da"
|
||||
},
|
||||
{
|
||||
"path": "tests/workflows/masks.json",
|
||||
"size": 9985,
|
||||
"sha256": "51a43424f8d57c7617dc6285df69d80fa7899966485e86b693f9e0ed49f9dfeb"
|
||||
},
|
||||
{
|
||||
"path": "tests/workflows/regional_prompt.json",
|
||||
"size": 28215,
|
||||
"sha256": "21af512d8f5fda65955ad821a64e066941f112f741900780038b16fe484b1330"
|
||||
},
|
||||
{
|
||||
"path": "troubleshooting/TROUBLESHOOTING.md",
|
||||
"size": 2856,
|
||||
"sha256": "2c852099dc7eb1de573708bd5f291a17c8e8d8a0a9ae7d06ad04d69a7dfb6d42"
|
||||
},
|
||||
{
|
||||
"path": "troubleshooting/black1.png",
|
||||
"size": 752880,
|
||||
"sha256": "6e32fe1606d35a26ddf08d2a3ff24c8fcd62831b9ed11eeaa76468e27a2b5f0f"
|
||||
},
|
||||
{
|
||||
"path": "troubleshooting/black2.png",
|
||||
"size": 709592,
|
||||
"sha256": "829d72c3cc1034f72bbd0945e1a2aed69e1f38060126159c0b911c4c102e2fcc"
|
||||
},
|
||||
{
|
||||
"path": "wildcards/put_wildcards_here",
|
||||
"size": 0,
|
||||
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
},
|
||||
{
|
||||
"path": "wildcards/samples/flower.txt",
|
||||
"size": 67,
|
||||
"sha256": "63ad428a02551243d1835c324236c785cca6fe64cd6cf646fe22a9a88c36350f"
|
||||
},
|
||||
{
|
||||
"path": "wildcards/samples/jewel.txt",
|
||||
"size": 70,
|
||||
"sha256": "e1c6436c087de80f9a08f49b0c815d7d7a9b500df2c4d5e26bfd6e877d18bcb5"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
{"changelog":"","createdAt":"2026-01-02T12:06:31.501557Z","dependencies":["segment-anything","scikit-image","piexif","transformers","opencv-python-headless","scipy","numpy","dill","matplotlib","sam2 @ git+https://github.com/facebookresearch/sam2"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.28.2/node.zip","id":"b3f817b8-e820-464e-82be-7ea3bf2c1517","node_id":"comfyui-impact-pack","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"8.28.2"}
|
||||
Binary file not shown.
@@ -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,456 @@
|
||||
"""
|
||||
@author: Dr.Lt.Data
|
||||
@title: Impact Pack
|
||||
@nickname: Impact Pack
|
||||
@description: This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler.
|
||||
"""
|
||||
|
||||
import folder_paths
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
|
||||
comfy_path = os.path.dirname(folder_paths.__file__)
|
||||
impact_path = os.path.join(os.path.dirname(__file__))
|
||||
modules_path = os.path.join(os.path.dirname(__file__), "modules")
|
||||
|
||||
sys.path.append(modules_path)
|
||||
|
||||
import impact.config
|
||||
logging.info(f"### Loading: ComfyUI-Impact-Pack ({impact.config.version})")
|
||||
|
||||
# Core
|
||||
# recheck dependencies for colab
|
||||
try:
|
||||
import folder_paths
|
||||
import torch # noqa: F401
|
||||
import cv2 # noqa: F401
|
||||
from cv2 import setNumThreads # noqa: F401
|
||||
import numpy as np # noqa: F401
|
||||
import comfy.samplers
|
||||
import comfy.sd # noqa: F401
|
||||
from PIL import Image, ImageFilter # noqa: F401
|
||||
from skimage.measure import label, regionprops # noqa: F401
|
||||
from collections import namedtuple # noqa: F401
|
||||
import piexif # noqa: F401
|
||||
import nodes
|
||||
except Exception as e:
|
||||
import logging
|
||||
logging.error("[Impact Pack] Failed to import due to several dependencies are missing!!!!")
|
||||
raise e
|
||||
|
||||
|
||||
import impact.impact_server # to load server api
|
||||
|
||||
from .modules.impact.impact_pack import * # noqa: F403
|
||||
from .modules.impact.detectors import * # noqa: F403
|
||||
from .modules.impact.pipe import * # noqa: F403
|
||||
from .modules.impact.logics import * # noqa: F403
|
||||
from .modules.impact.util_nodes import * # noqa: F403
|
||||
from .modules.impact.segs_nodes import * # noqa: F403
|
||||
from .modules.impact.special_samplers import * # noqa: F403
|
||||
from .modules.impact.hf_nodes import * # noqa: F403
|
||||
from .modules.impact.bridge_nodes import * # noqa: F403
|
||||
from .modules.impact.hook_nodes import * # noqa: F403
|
||||
from .modules.impact.animatediff_nodes import * # noqa: F403
|
||||
from .modules.impact.segs_upscaler import * # noqa: F403
|
||||
|
||||
import threading
|
||||
|
||||
|
||||
threading.Thread(target=impact.wildcards.wildcard_load).start()
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"SAMLoader": SAMLoader, # noqa: F405
|
||||
"CLIPSegDetectorProvider": CLIPSegDetectorProvider, # noqa: F405
|
||||
"ONNXDetectorProvider": ONNXDetectorProvider, # noqa: F405
|
||||
|
||||
"BitwiseAndMaskForEach": BitwiseAndMaskForEach, # noqa: F405
|
||||
"SubtractMaskForEach": SubtractMaskForEach, # noqa: F405
|
||||
|
||||
"DetailerForEach": DetailerForEach, # noqa: F405
|
||||
"DetailerForEachAutoRetry": DetailerForEachAutoRetry, # noqa: F405
|
||||
"DetailerForEachDebug": DetailerForEachTest, # noqa: F405
|
||||
"DetailerForEachPipe": DetailerForEachPipe, # noqa: F405
|
||||
"DetailerForEachDebugPipe": DetailerForEachTestPipe, # noqa: F405
|
||||
"DetailerForEachPipeForAnimateDiff": DetailerForEachPipeForAnimateDiff, # noqa: F405
|
||||
|
||||
"SAMDetectorCombined": SAMDetectorCombined, # noqa: F405
|
||||
"SAMDetectorSegmented": SAMDetectorSegmented, # noqa: F405
|
||||
|
||||
"FaceDetailer": FaceDetailer, # noqa: F405
|
||||
"FaceDetailerPipe": FaceDetailerPipe, # noqa: F405
|
||||
"MaskDetailerPipe": MaskDetailerPipe, # noqa: F405
|
||||
|
||||
"ToDetailerPipe": ToDetailerPipe, # noqa: F405
|
||||
"ToDetailerPipeSDXL": ToDetailerPipeSDXL, # noqa: F405
|
||||
"FromDetailerPipe": FromDetailerPipe, # noqa: F405
|
||||
"FromDetailerPipe_v2": FromDetailerPipe_v2, # noqa: F405
|
||||
"FromDetailerPipeSDXL": FromDetailerPipe_SDXL, # noqa: F405
|
||||
"AnyPipeToBasic": AnyPipeToBasic, # noqa: F405
|
||||
"ToBasicPipe": ToBasicPipe, # noqa: F405
|
||||
"FromBasicPipe": FromBasicPipe, # noqa: F405
|
||||
"FromBasicPipe_v2": FromBasicPipe_v2, # noqa: F405
|
||||
"BasicPipeToDetailerPipe": BasicPipeToDetailerPipe, # noqa: F405
|
||||
"BasicPipeToDetailerPipeSDXL": BasicPipeToDetailerPipeSDXL, # noqa: F405
|
||||
"DetailerPipeToBasicPipe": DetailerPipeToBasicPipe, # noqa: F405
|
||||
"EditBasicPipe": EditBasicPipe, # noqa: F405
|
||||
"EditDetailerPipe": EditDetailerPipe, # noqa: F405
|
||||
"EditDetailerPipeSDXL": EditDetailerPipeSDXL, # noqa: F405
|
||||
|
||||
"LatentPixelScale": LatentPixelScale, # noqa: F405
|
||||
"PixelKSampleUpscalerProvider": PixelKSampleUpscalerProvider, # noqa: F405
|
||||
"PixelKSampleUpscalerProviderPipe": PixelKSampleUpscalerProviderPipe, # noqa: F405
|
||||
"IterativeLatentUpscale": IterativeLatentUpscale, # noqa: F405
|
||||
"IterativeImageUpscale": IterativeImageUpscale, # noqa: F405
|
||||
"PixelTiledKSampleUpscalerProvider": PixelTiledKSampleUpscalerProvider, # noqa: F405
|
||||
"PixelTiledKSampleUpscalerProviderPipe": PixelTiledKSampleUpscalerProviderPipe, # noqa: F405
|
||||
"TwoSamplersForMaskUpscalerProvider": TwoSamplersForMaskUpscalerProvider, # noqa: F405
|
||||
"TwoSamplersForMaskUpscalerProviderPipe": TwoSamplersForMaskUpscalerProviderPipe, # noqa: F405
|
||||
|
||||
"PixelKSampleHookCombine": PixelKSampleHookCombine, # noqa: F405
|
||||
"DenoiseScheduleHookProvider": DenoiseScheduleHookProvider, # noqa: F405
|
||||
"StepsScheduleHookProvider": StepsScheduleHookProvider, # noqa: F405
|
||||
"CfgScheduleHookProvider": CfgScheduleHookProvider, # noqa: F405
|
||||
"NoiseInjectionHookProvider": NoiseInjectionHookProvider, # noqa: F405
|
||||
"UnsamplerHookProvider": UnsamplerHookProvider, # noqa: F405
|
||||
"CoreMLDetailerHookProvider": CoreMLDetailerHookProvider, # noqa: F405
|
||||
"PreviewDetailerHookProvider": PreviewDetailerHookProvider, # noqa: F405
|
||||
"BlackPatchRetryHookProvider": BlackPatchRetryHookProvider, # noqa: F405
|
||||
"CustomSamplerDetailerHookProvider": CustomSamplerDetailerHookProvider, # noqa: F405
|
||||
"LamaRemoverDetailerHookProvider": LamaRemoverDetailerHookProvider, # noqa: F405
|
||||
|
||||
"DetailerHookCombine": DetailerHookCombine, # noqa: F405
|
||||
"NoiseInjectionDetailerHookProvider": NoiseInjectionDetailerHookProvider, # noqa: F405
|
||||
"UnsamplerDetailerHookProvider": UnsamplerDetailerHookProvider, # noqa: F405
|
||||
"DenoiseSchedulerDetailerHookProvider": DenoiseSchedulerDetailerHookProvider, # noqa: F405
|
||||
"SEGSOrderedFilterDetailerHookProvider": SEGSOrderedFilterDetailerHookProvider, # noqa: F405
|
||||
"SEGSRangeFilterDetailerHookProvider": SEGSRangeFilterDetailerHookProvider, # noqa: F405
|
||||
"SEGSLabelFilterDetailerHookProvider": SEGSLabelFilterDetailerHookProvider, # noqa: F405
|
||||
"VariationNoiseDetailerHookProvider": VariationNoiseDetailerHookProvider, # noqa: F405
|
||||
# "CustomNoiseDetailerHookProvider": CustomNoiseDetailerHookProvider,
|
||||
|
||||
"BitwiseAndMask": BitwiseAndMask, # noqa: F405
|
||||
"SubtractMask": SubtractMask, # noqa: F405
|
||||
"AddMask": AddMask, # noqa: F405
|
||||
"MaskRectArea": MaskRectArea, # noqa: F405
|
||||
"MaskRectAreaAdvanced": MaskRectAreaAdvanced, # noqa: F405
|
||||
"ImpactSegsAndMask": SegsBitwiseAndMask, # noqa: F405
|
||||
"ImpactSegsAndMaskForEach": SegsBitwiseAndMaskForEach, # noqa: F405
|
||||
"EmptySegs": EmptySEGS, # noqa: F405
|
||||
"ImpactFlattenMask": FlattenMask, # noqa: F405
|
||||
|
||||
"MediaPipeFaceMeshToSEGS": MediaPipeFaceMeshToSEGS, # noqa: F405
|
||||
"MaskToSEGS": MaskToSEGS, # noqa: F405
|
||||
"MaskToSEGS_for_AnimateDiff": MaskToSEGS_for_AnimateDiff, # noqa: F405
|
||||
"ToBinaryMask": ToBinaryMask, # noqa: F405
|
||||
"MasksToMaskList": MasksToMaskList, # noqa: F405
|
||||
"MaskListToMaskBatch": MaskListToMaskBatch, # noqa: F405
|
||||
"ImageListToImageBatch": ImageListToImageBatch, # noqa: F405
|
||||
"SetDefaultImageForSEGS": DefaultImageForSEGS, # noqa: F405
|
||||
"RemoveImageFromSEGS": RemoveImageFromSEGS, # noqa: F405
|
||||
|
||||
"BboxDetectorSEGS": BboxDetectorForEach, # noqa: F405
|
||||
"SegmDetectorSEGS": SegmDetectorForEach, # noqa: F405
|
||||
"ONNXDetectorSEGS": BboxDetectorForEach, # noqa: F405
|
||||
"ImpactSimpleDetectorSEGS_for_AD": SimpleDetectorForAnimateDiff, # noqa: F405
|
||||
"ImpactSAM2VideoDetectorSEGS": SAM2VideoDetectorSEGS, # noqa: F405
|
||||
"ImpactSimpleDetectorSEGS": SimpleDetectorForEach, # noqa: F405
|
||||
"ImpactSimpleDetectorSEGSPipe": SimpleDetectorForEachPipe, # noqa: F405
|
||||
"ImpactControlNetApplySEGS": ControlNetApplySEGS, # noqa: F405
|
||||
"ImpactControlNetApplyAdvancedSEGS": ControlNetApplyAdvancedSEGS, # noqa: F405
|
||||
"ImpactControlNetClearSEGS": ControlNetClearSEGS, # noqa: F405
|
||||
"ImpactIPAdapterApplySEGS": IPAdapterApplySEGS, # noqa: F405
|
||||
|
||||
"ImpactDecomposeSEGS": DecomposeSEGS, # noqa: F405
|
||||
"ImpactAssembleSEGS": AssembleSEGS, # noqa: F405
|
||||
"ImpactFrom_SEG_ELT": From_SEG_ELT, # noqa: F405
|
||||
"ImpactEdit_SEG_ELT": Edit_SEG_ELT, # noqa: F405
|
||||
"ImpactDilate_Mask_SEG_ELT": Dilate_SEG_ELT, # noqa: F405
|
||||
"ImpactDilateMask": DilateMask, # noqa: F405
|
||||
"ImpactGaussianBlurMask": GaussianBlurMask, # noqa: F405
|
||||
"ImpactDilateMaskInSEGS": DilateMaskInSEGS, # noqa: F405
|
||||
"ImpactGaussianBlurMaskInSEGS": GaussianBlurMaskInSEGS, # noqa: F405
|
||||
"ImpactScaleBy_BBOX_SEG_ELT": SEG_ELT_BBOX_ScaleBy, # noqa: F405
|
||||
"ImpactFrom_SEG_ELT_bbox": From_SEG_ELT_bbox, # noqa: F405
|
||||
"ImpactFrom_SEG_ELT_crop_region": From_SEG_ELT_crop_region, # noqa: F405
|
||||
"ImpactCount_Elts_in_SEGS": Count_Elts_in_SEGS, # noqa: F405
|
||||
|
||||
"BboxDetectorCombined_v2": BboxDetectorCombined, # noqa: F405
|
||||
"SegmDetectorCombined_v2": SegmDetectorCombined, # noqa: F405
|
||||
"SegsToCombinedMask": SegsToCombinedMask, # noqa: F405
|
||||
|
||||
"KSamplerProvider": KSamplerProvider, # noqa: F405
|
||||
"TwoSamplersForMask": TwoSamplersForMask, # noqa: F405
|
||||
"TiledKSamplerProvider": TiledKSamplerProvider, # noqa: F405
|
||||
|
||||
"KSamplerAdvancedProvider": KSamplerAdvancedProvider, # noqa: F405
|
||||
"TwoAdvancedSamplersForMask": TwoAdvancedSamplersForMask, # noqa: F405
|
||||
|
||||
"ImpactNegativeConditioningPlaceholder": NegativeConditioningPlaceholder, # noqa: F405
|
||||
|
||||
"PreviewBridge": PreviewBridge, # noqa: F405
|
||||
"PreviewBridgeLatent": PreviewBridgeLatent, # noqa: F405
|
||||
"ImageSender": ImageSender, # noqa: F405
|
||||
"ImageReceiver": ImageReceiver, # noqa: F405
|
||||
"LatentSender": LatentSender, # noqa: F405
|
||||
"LatentReceiver": LatentReceiver, # noqa: F405
|
||||
"ImageMaskSwitch": ImageMaskSwitch, # noqa: F405
|
||||
"LatentSwitch": GeneralSwitch, # noqa: F405
|
||||
"SEGSSwitch": GeneralSwitch, # noqa: F405
|
||||
"ImpactSwitch": GeneralSwitch, # noqa: F405
|
||||
"ImpactInversedSwitch": GeneralInversedSwitch, # noqa: F405
|
||||
|
||||
"ImpactWildcardProcessor": ImpactWildcardProcessor, # noqa: F405
|
||||
"ImpactWildcardEncode": ImpactWildcardEncode, # noqa: F405
|
||||
|
||||
"SEGSUpscaler": SEGSUpscaler, # noqa: F405
|
||||
"SEGSUpscalerPipe": SEGSUpscalerPipe, # noqa: F405
|
||||
"SEGSDetailer": SEGSDetailer, # noqa: F405
|
||||
"SEGSPaste": SEGSPaste, # noqa: F405
|
||||
"SEGSPreview": SEGSPreview, # noqa: F405
|
||||
"SEGSPreviewCNet": SEGSPreviewCNet, # noqa: F405
|
||||
"SEGSToImageList": SEGSToImageList, # noqa: F405
|
||||
"ImpactSEGSToMaskList": SEGSToMaskList, # noqa: F405
|
||||
"ImpactSEGSToMaskBatch": SEGSToMaskBatch, # noqa: F405
|
||||
"ImpactSEGSConcat": SEGSConcat, # noqa: F405
|
||||
"ImpactSEGSPicker": SEGSPicker, # noqa: F405
|
||||
"ImpactMakeTileSEGS": MakeTileSEGS, # noqa: F405
|
||||
"ImpactSEGSMerge": SEGSMerge, # noqa: F405
|
||||
|
||||
"SEGSDetailerForAnimateDiff": SEGSDetailerForAnimateDiff, # noqa: F405
|
||||
|
||||
"ImpactKSamplerBasicPipe": KSamplerBasicPipe, # noqa: F405
|
||||
"ImpactKSamplerAdvancedBasicPipe": KSamplerAdvancedBasicPipe, # noqa: F405
|
||||
|
||||
"ReencodeLatent": ReencodeLatent, # noqa: F405
|
||||
"ReencodeLatentPipe": ReencodeLatentPipe, # noqa: F405
|
||||
|
||||
"ImpactImageBatchToImageList": ImageBatchToImageList, # noqa: F405
|
||||
"ImpactMakeImageList": MakeImageList, # noqa: F405
|
||||
"ImpactMakeImageBatch": MakeImageBatch, # noqa: F405
|
||||
"ImpactMakeAnyList": MakeAnyList, # noqa: F405
|
||||
"ImpactMakeMaskList": MakeMaskList, # noqa: F405
|
||||
"ImpactMakeMaskBatch": MakeMaskBatch, # noqa: F405
|
||||
"ImpactSelectNthItemOfAnyList": NthItemOfAnyList, # noqa: F405
|
||||
|
||||
"RegionalSampler": RegionalSampler, # noqa: F405
|
||||
"RegionalSamplerAdvanced": RegionalSamplerAdvanced, # noqa: F405
|
||||
"CombineRegionalPrompts": CombineRegionalPrompts, # noqa: F405
|
||||
"RegionalPrompt": RegionalPrompt, # noqa: F405
|
||||
|
||||
"ImpactCombineConditionings": CombineConditionings, # noqa: F405
|
||||
"ImpactConcatConditionings": ConcatConditionings, # noqa: F405
|
||||
|
||||
"ImpactSEGSLabelAssign": SEGSLabelAssign, # noqa: F405
|
||||
"ImpactSEGSLabelFilter": SEGSLabelFilter, # noqa: F405
|
||||
"ImpactSEGSRangeFilter": SEGSRangeFilter, # noqa: F405
|
||||
"ImpactSEGSOrderedFilter": SEGSOrderedFilter, # noqa: F405
|
||||
"ImpactSEGSIntersectionFilter": SEGSIntersectionFilter, # noqa: F405
|
||||
"ImpactSEGSNMSFilter": SEGSNMSFilter, # noqa: F405
|
||||
|
||||
"ImpactCompare": ImpactCompare, # noqa: F405
|
||||
"ImpactConditionalBranch": ImpactConditionalBranch, # noqa: F405
|
||||
"ImpactConditionalBranchSelMode": ImpactConditionalBranchSelMode, # noqa: F405
|
||||
"ImpactIfNone": ImpactIfNone, # noqa: F405
|
||||
"ImpactConvertDataType": ImpactConvertDataType, # noqa: F405
|
||||
"ImpactLogicalOperators": ImpactLogicalOperators, # noqa: F405
|
||||
"ImpactInt": ImpactInt, # noqa: F405
|
||||
"ImpactFloat": ImpactFloat, # noqa: F405
|
||||
"ImpactBoolean": ImpactBoolean, # noqa: F405
|
||||
"ImpactValueSender": ImpactValueSender, # noqa: F405
|
||||
"ImpactValueReceiver": ImpactValueReceiver, # noqa: F405
|
||||
"ImpactImageInfo": ImpactImageInfo, # noqa: F405
|
||||
"ImpactLatentInfo": ImpactLatentInfo, # noqa: F405
|
||||
"ImpactMinMax": ImpactMinMax, # noqa: F405
|
||||
"ImpactNeg": ImpactNeg, # noqa: F405
|
||||
"ImpactConditionalStopIteration": ImpactConditionalStopIteration, # noqa: F405
|
||||
"ImpactStringSelector": StringSelector, # noqa: F405
|
||||
"StringListToString": StringListToString, # noqa: F405
|
||||
"WildcardPromptFromString": WildcardPromptFromString, # noqa: F405
|
||||
"ImpactExecutionOrderController": ImpactExecutionOrderController, # noqa: F405
|
||||
"ImpactListBridge": ImpactListBridge, # noqa: F405
|
||||
|
||||
"RemoveNoiseMask": RemoveNoiseMask, # noqa: F405
|
||||
|
||||
"ImpactLogger": ImpactLogger, # noqa: F405
|
||||
"ImpactDummyInput": ImpactDummyInput, # noqa: F405
|
||||
|
||||
"ImpactQueueTrigger": ImpactQueueTrigger, # noqa: F405
|
||||
"ImpactQueueTriggerCountdown": ImpactQueueTriggerCountdown, # noqa: F405
|
||||
"ImpactSetWidgetValue": ImpactSetWidgetValue, # noqa: F405
|
||||
"ImpactNodeSetMuteState": ImpactNodeSetMuteState, # noqa: F405
|
||||
"ImpactControlBridge": ImpactControlBridge, # noqa: F405
|
||||
"ImpactIsNotEmptySEGS": ImpactNotEmptySEGS, # noqa: F405
|
||||
"ImpactSleep": ImpactSleep, # noqa: F405
|
||||
"ImpactRemoteBoolean": ImpactRemoteBoolean, # noqa: F405
|
||||
"ImpactRemoteInt": ImpactRemoteInt, # noqa: F405
|
||||
|
||||
"ImpactHFTransformersClassifierProvider": HF_TransformersClassifierProvider, # noqa: F405
|
||||
"ImpactSEGSClassify": SEGS_Classify, # noqa: F405
|
||||
|
||||
"ImpactSchedulerAdapter": ImpactSchedulerAdapter, # noqa: F405
|
||||
"GITSSchedulerFuncProvider": GITSSchedulerFuncProvider # noqa: F405
|
||||
}
|
||||
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"SAMLoader": "SAMLoader (Impact)",
|
||||
|
||||
"BboxDetectorSEGS": "BBOX Detector (SEGS)",
|
||||
"SegmDetectorSEGS": "SEGM Detector (SEGS)",
|
||||
"ONNXDetectorSEGS": "ONNX Detector (SEGS/legacy) - use BBOXDetector",
|
||||
"ImpactSimpleDetectorSEGS_for_AD": "Simple Detector for Video (SEGS)",
|
||||
"ImpactSAM2VideoDetectorSEGS": "SAM2 Video Detector (SEGS)",
|
||||
"ImpactSimpleDetectorSEGS": "Simple Detector (SEGS)",
|
||||
"ImpactSimpleDetectorSEGSPipe": "Simple Detector (SEGS/pipe)",
|
||||
"ImpactControlNetApplySEGS": "ControlNetApply (SEGS) - DEPRECATED",
|
||||
"ImpactControlNetApplyAdvancedSEGS": "ControlNetApply (SEGS)",
|
||||
"ImpactIPAdapterApplySEGS": "IPAdapterApply (SEGS)",
|
||||
|
||||
"BboxDetectorCombined_v2": "BBOX Detector (combined)",
|
||||
"SegmDetectorCombined_v2": "SEGM Detector (combined)",
|
||||
"SegsToCombinedMask": "SEGS to MASK (combined)",
|
||||
"MediaPipeFaceMeshToSEGS": "MediaPipe FaceMesh to SEGS",
|
||||
"MaskToSEGS": "MASK to SEGS",
|
||||
"MaskToSEGS_for_AnimateDiff": "MASK to SEGS for Video",
|
||||
"BitwiseAndMaskForEach": "Pixelwise(SEGS & SEGS)",
|
||||
"SubtractMaskForEach": "Pixelwise(SEGS - SEGS)",
|
||||
"ImpactSegsAndMask": "Pixelwise(SEGS & MASK)",
|
||||
"ImpactSegsAndMaskForEach": "Pixelwise(SEGS & MASKS ForEach)",
|
||||
"BitwiseAndMask": "Pixelwise(MASK & MASK)",
|
||||
"SubtractMask": "Pixelwise(MASK - MASK)",
|
||||
"AddMask": "Pixelwise(MASK + MASK)",
|
||||
"MaskRectArea": "Mask Rect Area",
|
||||
"MaskRectAreaAdvanced": "Mask Rect Area (Advanced)",
|
||||
"ImpactFlattenMask": "Flatten Mask Batch",
|
||||
"DetailerForEach": "Detailer (SEGS)",
|
||||
"DetailerForEachAutoRetry": "Detailer (SEGS) with auto retry",
|
||||
"DetailerForEachPipe": "Detailer (SEGS/pipe)",
|
||||
"DetailerForEachDebug": "DetailerDebug (SEGS)",
|
||||
"DetailerForEachDebugPipe": "DetailerDebug (SEGS/pipe)",
|
||||
"SEGSDetailerForAnimateDiff": "SEGSDetailer For Video (SEGS/pipe)",
|
||||
"DetailerForEachPipeForAnimateDiff": "Detailer For Video (SEGS/pipe)",
|
||||
"SEGSUpscaler": "Upscaler (SEGS)",
|
||||
"SEGSUpscalerPipe": "Upscaler (SEGS/pipe)",
|
||||
|
||||
"SAMDetectorCombined": "SAMDetector (combined)",
|
||||
"SAMDetectorSegmented": "SAMDetector (segmented)",
|
||||
"FaceDetailerPipe": "FaceDetailer (pipe)",
|
||||
"MaskDetailerPipe": "MaskDetailer (pipe)",
|
||||
|
||||
"FromDetailerPipeSDXL": "FromDetailer (SDXL/pipe)",
|
||||
"BasicPipeToDetailerPipeSDXL": "BasicPipe -> DetailerPipe (SDXL)",
|
||||
"EditDetailerPipeSDXL": "Edit DetailerPipe (SDXL)",
|
||||
|
||||
"BasicPipeToDetailerPipe": "BasicPipe -> DetailerPipe",
|
||||
"DetailerPipeToBasicPipe": "DetailerPipe -> BasicPipe",
|
||||
"EditBasicPipe": "Edit BasicPipe",
|
||||
"EditDetailerPipe": "Edit DetailerPipe",
|
||||
"AnyPipeToBasic": "Any PIPE -> BasicPipe",
|
||||
|
||||
"LatentPixelScale": "Latent Scale (on Pixel Space)",
|
||||
"IterativeLatentUpscale": "Iterative Upscale (Latent/on Pixel Space)",
|
||||
"IterativeImageUpscale": "Iterative Upscale (Image)",
|
||||
|
||||
"TwoSamplersForMaskUpscalerProvider": "TwoSamplersForMask Upscaler Provider",
|
||||
"TwoSamplersForMaskUpscalerProviderPipe": "TwoSamplersForMask Upscaler Provider (pipe)",
|
||||
|
||||
"ReencodeLatent": "Reencode Latent",
|
||||
"ReencodeLatentPipe": "Reencode Latent (pipe)",
|
||||
|
||||
"ImpactKSamplerBasicPipe": "KSampler (pipe)",
|
||||
"ImpactKSamplerAdvancedBasicPipe": "KSampler (Advanced/pipe)",
|
||||
"ImpactSEGSLabelAssign": "SEGS Assign (label)",
|
||||
"ImpactSEGSLabelFilter": "SEGS Filter (label)",
|
||||
"ImpactSEGSRangeFilter": "SEGS Filter (range)",
|
||||
"ImpactSEGSOrderedFilter": "SEGS Filter (ordered)",
|
||||
"ImpactSEGSIntersectionFilter": "SEGS Filter (intersection)",
|
||||
"ImpactSEGSNMSFilter": "SEGS Filter (non max suppression)",
|
||||
"ImpactSEGSConcat": "SEGS Concat",
|
||||
"ImpactSEGSToMaskList": "SEGS to Mask List",
|
||||
"ImpactSEGSToMaskBatch": "SEGS to Mask Batch",
|
||||
"ImpactSEGSPicker": "Picker (SEGS)",
|
||||
"ImpactMakeTileSEGS": "Make Tile SEGS",
|
||||
"ImpactSEGSMerge": "SEGS Merge",
|
||||
|
||||
"ImpactDecomposeSEGS": "Decompose (SEGS)",
|
||||
"ImpactAssembleSEGS": "Assemble (SEGS)",
|
||||
"ImpactFrom_SEG_ELT": "From SEG_ELT",
|
||||
"ImpactEdit_SEG_ELT": "Edit SEG_ELT",
|
||||
"ImpactFrom_SEG_ELT_bbox": "From SEG_ELT bbox",
|
||||
"ImpactFrom_SEG_ELT_crop_region": "From SEG_ELT crop_region",
|
||||
"ImpactDilate_Mask_SEG_ELT": "Dilate Mask (SEG_ELT)",
|
||||
"ImpactScaleBy_BBOX_SEG_ELT": "ScaleBy BBOX (SEG_ELT)",
|
||||
"ImpactCount_Elts_in_SEGS": "Count Elts in SEGS",
|
||||
"ImpactDilateMask": "Dilate Mask",
|
||||
"ImpactGaussianBlurMask": "Gaussian Blur Mask",
|
||||
"ImpactDilateMaskInSEGS": "Dilate Mask (SEGS)",
|
||||
"ImpactGaussianBlurMaskInSEGS": "Gaussian Blur Mask (SEGS)",
|
||||
|
||||
"PreviewBridge": "Preview Bridge (Image)",
|
||||
"PreviewBridgeLatent": "Preview Bridge (Latent)",
|
||||
"ImageSender": "Image Sender",
|
||||
"ImageReceiver": "Image Receiver",
|
||||
"ImageMaskSwitch": "Switch (images, mask)",
|
||||
"ImpactSwitch": "Switch (Any)",
|
||||
"ImpactInversedSwitch": "Inversed Switch (Any)",
|
||||
"ImpactExecutionOrderController": "Execution Order Controller",
|
||||
"ImpactListBridge": "List Bridge",
|
||||
|
||||
"MasksToMaskList": "Mask Batch to Mask List",
|
||||
"MaskListToMaskBatch": "Mask List to Mask Batch",
|
||||
"ImpactImageBatchToImageList": "Image Batch to Image List",
|
||||
"ImageListToImageBatch": "Image List to Image Batch",
|
||||
|
||||
"ImpactMakeImageList": "Make Image List",
|
||||
"ImpactMakeImageBatch": "Make Image Batch",
|
||||
"ImpactMakeMaskList": "Make Mask List",
|
||||
"ImpactMakeMaskBatch": "Make Mask Batch",
|
||||
"ImpactMakeAnyList": "Make List (Any)",
|
||||
"ImpactSelectNthItemOfAnyList": "Select Nth Item (Any list)",
|
||||
|
||||
"ImpactStringSelector": "String Selector",
|
||||
"StringListToString": "String List to String",
|
||||
"WildcardPromptFromString": "Wildcard Prompt from String",
|
||||
"ImpactIsNotEmptySEGS": "SEGS isn't Empty",
|
||||
"SetDefaultImageForSEGS": "Set Default Image for SEGS",
|
||||
"RemoveImageFromSEGS": "Remove Image from SEGS",
|
||||
|
||||
"RemoveNoiseMask": "Remove Noise Mask",
|
||||
|
||||
"ImpactCombineConditionings": "Combine Conditionings",
|
||||
"ImpactConcatConditionings": "Concat Conditionings",
|
||||
|
||||
"ImpactQueueTrigger": "Queue Trigger",
|
||||
"ImpactQueueTriggerCountdown": "Queue Trigger (Countdown)",
|
||||
"ImpactSetWidgetValue": "Set Widget Value",
|
||||
"ImpactNodeSetMuteState": "Set Mute State",
|
||||
"ImpactControlBridge": "Control Bridge",
|
||||
"ImpactSleep": "Sleep",
|
||||
"ImpactRemoteBoolean": "Remote Boolean (on prompt)",
|
||||
"ImpactRemoteInt": "Remote Int (on prompt)",
|
||||
|
||||
"ImpactHFTransformersClassifierProvider": "HF Transformers Classifier Provider",
|
||||
"ImpactSEGSClassify": "SEGS Classify",
|
||||
|
||||
"LatentSwitch": "Switch (latent/legacy)",
|
||||
"SEGSSwitch": "Switch (SEGS/legacy)",
|
||||
|
||||
"SEGSPreviewCNet": "SEGSPreview (CNET Image)",
|
||||
|
||||
"ImpactSchedulerAdapter": "Impact Scheduler Adapter",
|
||||
"GITSSchedulerFuncProvider": "GITSScheduler Func Provider",
|
||||
"ImpactNegativeConditioningPlaceholder": "Negative Cond Placeholder"
|
||||
}
|
||||
|
||||
|
||||
# NOTE: Inject directly into EXTENSION_WEB_DIRS instead of WEB_DIRECTORY
|
||||
# Provide the js path fixed as ComfyUI-Impact-Pack instead of the path name, making it available for external use
|
||||
|
||||
# WEB_DIRECTORY = "js" -- deprecated method
|
||||
nodes.EXTENSION_WEB_DIRS["ComfyUI-Impact-Pack"] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'js')
|
||||
|
||||
|
||||
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,779 @@
|
||||
import sys
|
||||
import time
|
||||
|
||||
import execution
|
||||
import impact.impact_server
|
||||
from server import PromptServer
|
||||
from impact.utils import any_typ
|
||||
import impact.core as core
|
||||
import re
|
||||
import nodes
|
||||
import logging
|
||||
|
||||
|
||||
class ImpactCompare:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"cmp": (['a = b', 'a <> b', 'a > b', 'a < b', 'a >= b', 'a <= b', 'tt', 'ff'],),
|
||||
"a": (any_typ, ),
|
||||
"b": (any_typ, ),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
|
||||
def doit(self, cmp, a, b):
|
||||
if cmp == "a = b":
|
||||
return (a == b, )
|
||||
elif cmp == "a <> b":
|
||||
return (a != b, )
|
||||
elif cmp == "a > b":
|
||||
return (a > b, )
|
||||
elif cmp == "a < b":
|
||||
return (a < b, )
|
||||
elif cmp == "a >= b":
|
||||
return (a >= b, )
|
||||
elif cmp == "a <= b":
|
||||
return (a <= b, )
|
||||
elif cmp == 'tt':
|
||||
return (True, )
|
||||
else:
|
||||
return (False, )
|
||||
|
||||
|
||||
class ImpactNotEmptySEGS:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {"segs": ("SEGS",)}}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
|
||||
def doit(self, segs):
|
||||
return (segs[1] != [], )
|
||||
|
||||
|
||||
class ImpactConditionalBranch:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"cond": ("BOOLEAN",),
|
||||
"tt_value": (any_typ,{"lazy": True}),
|
||||
"ff_value": (any_typ,{"lazy": True}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = (any_typ, )
|
||||
|
||||
def check_lazy_status(self, cond, tt_value=None, ff_value=None):
|
||||
if cond and tt_value is None:
|
||||
return ["tt_value"]
|
||||
if not cond and ff_value is None:
|
||||
return ["ff_value"]
|
||||
|
||||
def doit(self, cond, tt_value=None, ff_value=None):
|
||||
if cond:
|
||||
return (tt_value,)
|
||||
else:
|
||||
return (ff_value,)
|
||||
|
||||
|
||||
class ImpactConditionalBranchSelMode:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
if not core.is_execution_model_version_supported():
|
||||
required_inputs = {
|
||||
"cond": ("BOOLEAN",),
|
||||
"sel_mode": ("BOOLEAN", {"default": True, "label_on": "select_on_prompt", "label_off": "select_on_execution"}),
|
||||
}
|
||||
else:
|
||||
required_inputs = {
|
||||
"cond": ("BOOLEAN",),
|
||||
}
|
||||
|
||||
return {
|
||||
"required": required_inputs,
|
||||
"optional": {
|
||||
"tt_value": (any_typ,),
|
||||
"ff_value": (any_typ,),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = (any_typ, )
|
||||
|
||||
def doit(self, cond, tt_value=None, ff_value=None, **kwargs):
|
||||
if cond:
|
||||
return (tt_value,)
|
||||
else:
|
||||
return (ff_value,)
|
||||
|
||||
|
||||
class ImpactConvertDataType:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {"value": (any_typ,)}}
|
||||
|
||||
RETURN_TYPES = ("STRING", "FLOAT", "INT", "BOOLEAN")
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
@staticmethod
|
||||
def is_number(string):
|
||||
pattern = re.compile(r'^[-+]?[0-9]*\.?[0-9]+$')
|
||||
return bool(pattern.match(string))
|
||||
|
||||
def doit(self, value):
|
||||
if self.is_number(str(value)):
|
||||
num = value
|
||||
else:
|
||||
if str.lower(str(value)) != "false":
|
||||
num = 1
|
||||
else:
|
||||
num = 0
|
||||
return (str(value), float(num), int(float(num)), bool(float(num)), )
|
||||
|
||||
|
||||
class ImpactIfNone:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {},
|
||||
"optional": {"signal": (any_typ,), "any_input": (any_typ,), }
|
||||
}
|
||||
|
||||
RETURN_TYPES = (any_typ, "BOOLEAN")
|
||||
RETURN_NAMES = ("signal_opt", "bool")
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
def doit(self, signal=None, any_input=None):
|
||||
if any_input is None:
|
||||
return (signal, False, )
|
||||
else:
|
||||
return (signal, True, )
|
||||
|
||||
|
||||
class ImpactLogicalOperators:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"operator": (['and', 'or', 'xor'],),
|
||||
"bool_a": ("BOOLEAN", {"forceInput": True}),
|
||||
"bool_b": ("BOOLEAN", {"forceInput": True}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
|
||||
def doit(self, operator, bool_a, bool_b):
|
||||
if operator == "and":
|
||||
return (bool_a and bool_b, )
|
||||
elif operator == "or":
|
||||
return (bool_a or bool_b, )
|
||||
else:
|
||||
return (bool_a != bool_b, )
|
||||
|
||||
|
||||
class ImpactConditionalStopIteration:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": { "cond": ("BOOLEAN", {"forceInput": True}), },
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ()
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, cond):
|
||||
if cond:
|
||||
PromptServer.instance.send_sync("stop-iteration", {})
|
||||
return {}
|
||||
|
||||
|
||||
class ImpactNeg:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": { "value": ("BOOLEAN", {"forceInput": True}), },
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
|
||||
def doit(self, value):
|
||||
return (not value, )
|
||||
|
||||
|
||||
class ImpactInt:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"value": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("INT", )
|
||||
|
||||
def doit(self, value):
|
||||
return (value, )
|
||||
|
||||
|
||||
class ImpactFloat:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"value": ("FLOAT", {"default": 1.0, "min": -3.402823466e+38, "max": 3.402823466e+38}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("FLOAT", )
|
||||
|
||||
def doit(self, value):
|
||||
return (value, )
|
||||
|
||||
|
||||
class ImpactBoolean:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"value": ("BOOLEAN", {"default": False}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ("BOOLEAN", )
|
||||
|
||||
def doit(self, value):
|
||||
return (value, )
|
||||
|
||||
|
||||
class ImpactValueSender:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"value": (any_typ, ),
|
||||
"link_id": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
|
||||
},
|
||||
"optional": {
|
||||
"signal_opt": (any_typ,),
|
||||
}
|
||||
}
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = (any_typ, )
|
||||
RETURN_NAMES = ("signal", )
|
||||
|
||||
def doit(self, value, link_id=0, signal_opt=None):
|
||||
PromptServer.instance.send_sync("value-send", {"link_id": link_id, "value": value})
|
||||
return (signal_opt, )
|
||||
|
||||
|
||||
class ImpactIntConstSender:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ, ),
|
||||
"value": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
|
||||
"link_id": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
|
||||
},
|
||||
}
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = ()
|
||||
|
||||
def doit(self, signal, value, link_id=0):
|
||||
PromptServer.instance.send_sync("value-send", {"link_id": link_id, "value": value})
|
||||
return {}
|
||||
|
||||
|
||||
class ImpactValueReceiver:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"typ": (["STRING", "INT", "FLOAT", "BOOLEAN"], ),
|
||||
"value": ("STRING", {"default": ""}),
|
||||
"link_id": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
|
||||
RETURN_TYPES = (any_typ, )
|
||||
|
||||
def doit(self, typ, value, link_id=0):
|
||||
if typ == "INT":
|
||||
return (int(value), )
|
||||
elif typ == "FLOAT":
|
||||
return (float(value), )
|
||||
elif typ == "BOOLEAN":
|
||||
return (value.lower() == "true", )
|
||||
else:
|
||||
return (value, )
|
||||
|
||||
|
||||
class ImpactImageInfo:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"value": ("IMAGE", ),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
|
||||
RETURN_TYPES = ("INT", "INT", "INT", "INT")
|
||||
RETURN_NAMES = ("batch", "height", "width", "channel")
|
||||
|
||||
def doit(self, value):
|
||||
return (value.shape[0], value.shape[1], value.shape[2], value.shape[3])
|
||||
|
||||
|
||||
class ImpactLatentInfo:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"value": ("LATENT", ),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
|
||||
RETURN_TYPES = ("INT", "INT", "INT", "INT")
|
||||
RETURN_NAMES = ("batch", "height", "width", "channel")
|
||||
|
||||
def doit(self, value):
|
||||
shape = value['samples'].shape
|
||||
return (shape[0], shape[2] * 8, shape[3] * 8, shape[1])
|
||||
|
||||
|
||||
class ImpactMinMax:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"mode": ("BOOLEAN", {"default": True, "label_on": "max", "label_off": "min"}),
|
||||
"a": (any_typ,),
|
||||
"b": (any_typ,),
|
||||
},
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
|
||||
RETURN_TYPES = ("INT", )
|
||||
|
||||
def doit(self, mode, a, b):
|
||||
if mode:
|
||||
return (max(a, b), )
|
||||
else:
|
||||
return (min(a, b),)
|
||||
|
||||
|
||||
class ImpactQueueTrigger:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ,),
|
||||
"mode": ("BOOLEAN", {"default": True, "label_on": "Trigger", "label_off": "Don't trigger"}),
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = (any_typ,)
|
||||
RETURN_NAMES = ("signal_opt",)
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, signal, mode):
|
||||
if(mode):
|
||||
PromptServer.instance.send_sync("impact-add-queue", {})
|
||||
|
||||
return (signal,)
|
||||
|
||||
|
||||
class ImpactQueueTriggerCountdown:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"count": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"total": ("INT", {"default": 10, "min": 1, "max": 0xffffffffffffffff}),
|
||||
"mode": ("BOOLEAN", {"default": True, "label_on": "Trigger", "label_off": "Don't trigger"}),
|
||||
},
|
||||
"optional": {"signal": (any_typ,),},
|
||||
"hidden": {"unique_id": "UNIQUE_ID"}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = (any_typ, "INT", "INT")
|
||||
RETURN_NAMES = ("signal_opt", "count", "total")
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, count, total, mode, unique_id, signal=None):
|
||||
if (mode):
|
||||
if count < total - 1:
|
||||
PromptServer.instance.send_sync("impact-node-feedback",
|
||||
{"node_id": unique_id, "widget_name": "count", "type": "int", "value": count+1})
|
||||
PromptServer.instance.send_sync("impact-add-queue", {})
|
||||
if count >= total - 1:
|
||||
PromptServer.instance.send_sync("impact-node-feedback",
|
||||
{"node_id": unique_id, "widget_name": "count", "type": "int", "value": 0})
|
||||
|
||||
return (signal, count, total)
|
||||
|
||||
|
||||
|
||||
class ImpactSetWidgetValue:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ,),
|
||||
"node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"widget_name": ("STRING", {"multiline": False}),
|
||||
},
|
||||
"optional": {
|
||||
"boolean_value": ("BOOLEAN", {"forceInput": True}),
|
||||
"int_value": ("INT", {"forceInput": True}),
|
||||
"float_value": ("FLOAT", {"forceInput": True}),
|
||||
"string_value": ("STRING", {"forceInput": True}),
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = (any_typ,)
|
||||
RETURN_NAMES = ("signal_opt",)
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, signal, node_id, widget_name, boolean_value=None, int_value=None, float_value=None, string_value=None, ):
|
||||
kind = None
|
||||
if boolean_value is not None:
|
||||
value = boolean_value
|
||||
kind = "BOOLEAN"
|
||||
elif int_value is not None:
|
||||
value = int_value
|
||||
kind = "INT"
|
||||
elif float_value is not None:
|
||||
value = float_value
|
||||
kind = "FLOAT"
|
||||
elif string_value is not None:
|
||||
value = string_value
|
||||
kind = "STRING"
|
||||
else:
|
||||
value = None
|
||||
|
||||
if value is not None:
|
||||
PromptServer.instance.send_sync("impact-node-feedback",
|
||||
{"node_id": node_id, "widget_name": widget_name, "type": kind, "value": value})
|
||||
|
||||
return (signal,)
|
||||
|
||||
|
||||
class ImpactNodeSetMuteState:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ,),
|
||||
"node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"set_state": ("BOOLEAN", {"default": True, "label_on": "active", "label_off": "mute"}),
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = (any_typ,)
|
||||
RETURN_NAMES = ("signal_opt",)
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, signal, node_id, set_state):
|
||||
PromptServer.instance.send_sync("impact-node-mute-state", {"node_id": node_id, "is_active": set_state})
|
||||
return (signal,)
|
||||
|
||||
|
||||
class ImpactSleep:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ,),
|
||||
"seconds": ("FLOAT", {"default": 0.5, "min": 0, "max": 3600}),
|
||||
}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = (any_typ,)
|
||||
RETURN_NAMES = ("signal_opt",)
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, signal, seconds):
|
||||
time.sleep(seconds)
|
||||
return (signal,)
|
||||
|
||||
|
||||
def workflow_to_map(workflow):
|
||||
nodes = {}
|
||||
links = {}
|
||||
for link in workflow['links']:
|
||||
links[link[0]] = link[1:]
|
||||
for node in workflow['nodes']:
|
||||
nodes[str(node['id'])] = node
|
||||
|
||||
return nodes, links
|
||||
|
||||
|
||||
class ImpactRemoteBoolean:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"widget_name": ("STRING", {"multiline": False}),
|
||||
"value": ("BOOLEAN", {"default": True, "label_on": "True", "label_off": "False"}),
|
||||
}}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = ()
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, **kwargs):
|
||||
return {}
|
||||
|
||||
|
||||
class ImpactRemoteInt:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"node_id": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
|
||||
"widget_name": ("STRING", {"multiline": False}),
|
||||
"value": ("INT", {"default": 0, "min": -0xffffffffffffffff, "max": 0xffffffffffffffff}),
|
||||
}}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic/_for_test"
|
||||
RETURN_TYPES = ()
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def doit(self, **kwargs):
|
||||
return {}
|
||||
|
||||
class ImpactControlBridge:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"value": (any_typ,),
|
||||
"mode": ("BOOLEAN", {"default": True, "label_on": "Active", "label_off": "Stop/Mute/Bypass"}),
|
||||
"behavior": (["Stop", "Mute", "Bypass"], ),
|
||||
},
|
||||
"hidden": {"unique_id": "UNIQUE_ID", "prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO"}
|
||||
}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Logic"
|
||||
RETURN_TYPES = (any_typ,)
|
||||
RETURN_NAMES = ("value",)
|
||||
OUTPUT_NODE = True
|
||||
|
||||
DESCRIPTION = ("When behavior is Stop and mode is active, the input value is passed directly to the output.\n"
|
||||
"When behavior is Mute/Bypass and mode is active, the node connected to the output is changed to active state.\n"
|
||||
"When behavior is Stop and mode is Stop/Mute/Bypass, the workflow execution of the current node is halted.\n"
|
||||
"When behavior is Mute/Bypass and mode is Stop/Mute/Bypass, the node connected to the output is changed to Mute/Bypass state.")
|
||||
|
||||
@classmethod
|
||||
def IS_CHANGED(self, value, mode, behavior="Stop", unique_id=None, prompt=None, extra_pnginfo=None):
|
||||
if behavior == "Stop":
|
||||
return value, mode, behavior
|
||||
else:
|
||||
# NOTE: extra_pnginfo is not populated for IS_CHANGED.
|
||||
# so extra_pnginfo is useless in here
|
||||
try:
|
||||
workflow = core.current_prompt['extra_data']['extra_pnginfo']['workflow']
|
||||
except Exception:
|
||||
logging.info("[Impact Pack] core.current_prompt['extra_data']['extra_pnginfo']['workflow']")
|
||||
return 0
|
||||
|
||||
nodes, links = workflow_to_map(workflow)
|
||||
next_nodes = []
|
||||
|
||||
for link in nodes[unique_id]['outputs'][0]['links']:
|
||||
node_id = str(links[link][2])
|
||||
impact.utils.collect_non_reroute_nodes(nodes, links, next_nodes, node_id)
|
||||
|
||||
return next_nodes
|
||||
|
||||
def doit(self, value, mode, behavior="Stop", unique_id=None, prompt=None, extra_pnginfo=None):
|
||||
global error_skip_flag
|
||||
|
||||
if core.is_execution_model_version_supported():
|
||||
from comfy_execution.graph import ExecutionBlocker
|
||||
else:
|
||||
logging.info("[Impact Pack] ImpactControlBridge: ComfyUI is outdated. The 'Stop' behavior cannot function properly.")
|
||||
|
||||
if behavior == "Stop":
|
||||
if mode:
|
||||
return (value, )
|
||||
else:
|
||||
return (ExecutionBlocker(None), )
|
||||
elif extra_pnginfo is None:
|
||||
logging.warning(f"[Impact Pack] limitation: '{behavior}' behavior cannot be used in API execution.")
|
||||
return (value,)
|
||||
else:
|
||||
workflow_nodes, links = workflow_to_map(extra_pnginfo['workflow'])
|
||||
|
||||
active_nodes = []
|
||||
mute_nodes = []
|
||||
bypass_nodes = []
|
||||
|
||||
for link in workflow_nodes[unique_id]['outputs'][0]['links']:
|
||||
node_id = str(links[link][2])
|
||||
|
||||
next_nodes = []
|
||||
impact.utils.collect_non_reroute_nodes(workflow_nodes, links, next_nodes, node_id)
|
||||
|
||||
for next_node_id in next_nodes:
|
||||
node_mode = workflow_nodes[next_node_id]['mode']
|
||||
|
||||
if node_mode == 0:
|
||||
active_nodes.append(next_node_id)
|
||||
elif node_mode == 2:
|
||||
mute_nodes.append(next_node_id)
|
||||
elif node_mode == 4:
|
||||
bypass_nodes.append(next_node_id)
|
||||
|
||||
if mode:
|
||||
# active
|
||||
should_be_active_nodes = mute_nodes + bypass_nodes
|
||||
if len(should_be_active_nodes) > 0:
|
||||
PromptServer.instance.send_sync("impact-bridge-continue", {"node_id": unique_id, 'actives': list(should_be_active_nodes)})
|
||||
nodes.interrupt_processing()
|
||||
|
||||
elif behavior == "Mute" or behavior == True: # noqa: E712
|
||||
# mute
|
||||
should_be_mute_nodes = active_nodes + bypass_nodes
|
||||
if len(should_be_mute_nodes) > 0:
|
||||
PromptServer.instance.send_sync("impact-bridge-continue", {"node_id": unique_id, 'mutes': list(should_be_mute_nodes)})
|
||||
nodes.interrupt_processing()
|
||||
|
||||
else:
|
||||
# bypass
|
||||
should_be_bypass_nodes = active_nodes + mute_nodes
|
||||
if len(should_be_bypass_nodes) > 0:
|
||||
PromptServer.instance.send_sync("impact-bridge-continue", {"node_id": unique_id, 'bypasses': list(should_be_bypass_nodes)})
|
||||
nodes.interrupt_processing()
|
||||
|
||||
return (value, )
|
||||
|
||||
|
||||
class ImpactExecutionOrderController:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"signal": (any_typ,),
|
||||
"value": (any_typ,),
|
||||
}}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
RETURN_TYPES = (any_typ, any_typ)
|
||||
RETURN_NAMES = ("signal", "value")
|
||||
|
||||
def doit(self, signal, value):
|
||||
return signal, value
|
||||
|
||||
|
||||
class ImpactListBridge:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {"required": {
|
||||
"list_input": (any_typ,),
|
||||
}}
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
DESCRIPTION = "When passing the list output through this node, it collects and organizes the data before forwarding it, which ensures that the previous stage's sub-workflow has been completed."
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
RETURN_TYPES = (any_typ, )
|
||||
RETURN_NAMES = ("list_output", )
|
||||
|
||||
INPUT_IS_LIST = True
|
||||
OUTPUT_IS_LIST = (True, )
|
||||
|
||||
@staticmethod
|
||||
def doit(list_input):
|
||||
return (list_input,)
|
||||
|
||||
|
||||
original_handle_execution = execution.PromptExecutor.handle_execution_error
|
||||
|
||||
|
||||
def handle_execution_error(**kwargs):
|
||||
execution.PromptExecutor.handle_execution_error(**kwargs)
|
||||
|
||||
@@ -0,0 +1,775 @@
|
||||
from impact.utils import any_typ, ByPassTypeTuple, make_3d_mask
|
||||
import comfy_extras.nodes_mask
|
||||
from nodes import MAX_RESOLUTION
|
||||
import torch
|
||||
import comfy
|
||||
import sys
|
||||
import nodes
|
||||
import re
|
||||
import impact.core as core
|
||||
from server import PromptServer
|
||||
import inspect
|
||||
import logging
|
||||
|
||||
|
||||
class GeneralSwitch:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
dyn_inputs = {"input1": (any_typ, {"lazy": True, "tooltip": "Any input. When connected, one more input slot is added."}), }
|
||||
if core.is_execution_model_version_supported():
|
||||
stack = inspect.stack()
|
||||
if stack[2].function == 'get_input_info':
|
||||
# bypass validation
|
||||
class AllContainer:
|
||||
def __contains__(self, item):
|
||||
return True
|
||||
|
||||
def __getitem__(self, key):
|
||||
return any_typ, {"lazy": True}
|
||||
|
||||
dyn_inputs = AllContainer()
|
||||
|
||||
inputs = {"required": {
|
||||
"select": ("INT", {"default": 1, "min": 1, "max": 999999, "step": 1, "tooltip": "The input number you want to output among the inputs"}),
|
||||
"sel_mode": ("BOOLEAN", {"default": False, "label_on": "select_on_prompt", "label_off": "select_on_execution", "forceInput": False,
|
||||
"tooltip": "In the case of 'select_on_execution', the selection is dynamically determined at the time of workflow execution. 'select_on_prompt' is an option that exists for older versions of ComfyUI, and it makes the decision before the workflow execution."}),
|
||||
},
|
||||
"optional": dyn_inputs,
|
||||
"hidden": {"unique_id": "UNIQUE_ID", "extra_pnginfo": "EXTRA_PNGINFO"}
|
||||
}
|
||||
|
||||
return inputs
|
||||
|
||||
RETURN_TYPES = (any_typ, "STRING", "INT")
|
||||
RETURN_NAMES = ("selected_value", "selected_label", "selected_index")
|
||||
OUTPUT_TOOLTIPS = ("Output is generated only from the input chosen by the 'select' value.", "Slot label of the selected input slot", "Outputs the select value as is")
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def check_lazy_status(self, *args, **kwargs):
|
||||
selected_index = int(kwargs['select'])
|
||||
input_name = f"input{selected_index}"
|
||||
|
||||
logging.info(f"SELECTED: {input_name}")
|
||||
|
||||
if input_name in kwargs:
|
||||
return [input_name]
|
||||
else:
|
||||
return []
|
||||
|
||||
@staticmethod
|
||||
def doit(*args, **kwargs):
|
||||
selected_index = int(kwargs['select'])
|
||||
input_name = f"input{selected_index}"
|
||||
|
||||
selected_label = input_name
|
||||
node_id = kwargs['unique_id']
|
||||
|
||||
if 'extra_pnginfo' in kwargs and kwargs['extra_pnginfo'] is not None:
|
||||
nodelist = kwargs['extra_pnginfo']['workflow']['nodes']
|
||||
for node in nodelist:
|
||||
if str(node['id']) == node_id:
|
||||
inputs = node['inputs']
|
||||
|
||||
for slot in inputs:
|
||||
if slot['name'] == input_name and 'label' in slot:
|
||||
selected_label = slot['label']
|
||||
|
||||
break
|
||||
else:
|
||||
logging.info("[Impact-Pack] The switch node does not guarantee proper functioning in API mode.")
|
||||
|
||||
if input_name in kwargs:
|
||||
return kwargs[input_name], selected_label, selected_index
|
||||
else:
|
||||
logging.info("ImpactSwitch: invalid select index (ignored)")
|
||||
return None, "", selected_index
|
||||
|
||||
class LatentSwitch:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"select": ("INT", {"default": 1, "min": 1, "max": 99999, "step": 1}),
|
||||
"latent1": ("LATENT",),
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("LATENT", )
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, *args, **kwargs):
|
||||
input_name = f"latent{int(kwargs['select'])}"
|
||||
|
||||
if input_name in kwargs:
|
||||
return (kwargs[input_name],)
|
||||
else:
|
||||
logging.info("LatentSwitch: invalid select index ('latent1' is selected)")
|
||||
return (kwargs['latent1'],)
|
||||
|
||||
|
||||
class ImageMaskSwitch:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"select": ("INT", {"default": 1, "min": 1, "max": 4, "step": 1}),
|
||||
"images1": ("IMAGE",),
|
||||
},
|
||||
|
||||
"optional": {
|
||||
"mask1_opt": ("MASK",),
|
||||
"images2_opt": ("IMAGE",),
|
||||
"mask2_opt": ("MASK",),
|
||||
"images3_opt": ("IMAGE",),
|
||||
"mask3_opt": ("MASK",),
|
||||
"images4_opt": ("IMAGE",),
|
||||
"mask4_opt": ("MASK",),
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("IMAGE", "MASK",)
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, select, images1, mask1_opt=None, images2_opt=None, mask2_opt=None, images3_opt=None, mask3_opt=None,
|
||||
images4_opt=None, mask4_opt=None):
|
||||
if select == 1:
|
||||
return images1, mask1_opt,
|
||||
elif select == 2:
|
||||
return images2_opt, mask2_opt,
|
||||
elif select == 3:
|
||||
return images3_opt, mask3_opt,
|
||||
else:
|
||||
return images4_opt, mask4_opt,
|
||||
|
||||
|
||||
class GeneralInversedSwitch:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"select": ("INT", {"default": 1, "min": 1, "max": 999999, "step": 1, "tooltip": "The output number you want to send from the input"}),
|
||||
"input": (any_typ, {"tooltip": "Any input. When connected, one more input slot is added."}),
|
||||
|
||||
},
|
||||
"optional": {
|
||||
"sel_mode": ("BOOLEAN", {"default": False, "label_on": "select_on_prompt", "label_off": "select_on_execution", "forceInput": False,
|
||||
"tooltip": "In the case of 'select_on_execution', the selection is dynamically determined at the time of workflow execution. 'select_on_prompt' is an option that exists for older versions of ComfyUI, and it makes the decision before the workflow execution."}),
|
||||
},
|
||||
"hidden": {"prompt": "PROMPT", "unique_id": "UNIQUE_ID"},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ByPassTypeTuple((any_typ, ))
|
||||
OUTPUT_TOOLTIPS = ("Output occurs only from the output selected by the 'select' value.\nWhen slots are connected, additional slots are created.", )
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, select, prompt, unique_id, input, **kwargs):
|
||||
if core.is_execution_model_version_supported():
|
||||
from comfy_execution.graph import ExecutionBlocker
|
||||
else:
|
||||
logging.warning("[Impact Pack] InversedSwitch: ComfyUI is outdated. The 'select_on_execution' mode cannot function properly.")
|
||||
|
||||
res = []
|
||||
|
||||
# search max output count in prompt
|
||||
cnt = 0
|
||||
for x in prompt.values():
|
||||
for y in x.get('inputs', {}).values():
|
||||
if isinstance(y, list) and len(y) == 2:
|
||||
if y[0] == unique_id:
|
||||
cnt = max(cnt, y[1])
|
||||
|
||||
for i in range(0, cnt + 1):
|
||||
if select == i+1:
|
||||
res.append(input)
|
||||
elif core.is_execution_model_version_supported():
|
||||
res.append(ExecutionBlocker(None))
|
||||
else:
|
||||
res.append(None)
|
||||
|
||||
return res
|
||||
|
||||
|
||||
class RemoveNoiseMask:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {"samples": ("LATENT",)}}
|
||||
|
||||
RETURN_TYPES = ("LATENT",)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, samples):
|
||||
res = {key: value for key, value in samples.items() if key != 'noise_mask'}
|
||||
return (res, )
|
||||
|
||||
|
||||
class ImagePasteMasked:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"destination": ("IMAGE",),
|
||||
"source": ("IMAGE",),
|
||||
"x": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}),
|
||||
"y": ("INT", {"default": 0, "min": 0, "max": MAX_RESOLUTION, "step": 1}),
|
||||
"resize_source": ("BOOLEAN", {"default": False}),
|
||||
},
|
||||
"optional": {
|
||||
"mask": ("MASK",),
|
||||
}
|
||||
}
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "composite"
|
||||
|
||||
CATEGORY = "image"
|
||||
|
||||
def composite(self, destination, source, x, y, resize_source, mask = None):
|
||||
destination = destination.clone().movedim(-1, 1)
|
||||
output = comfy_extras.nodes_mask.composite(destination, source.movedim(-1, 1), x, y, mask, 1, resize_source).movedim(1, -1)
|
||||
return (output,)
|
||||
|
||||
|
||||
from impact.utils import any_typ
|
||||
|
||||
class ImpactLogger:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"data": (any_typ,),
|
||||
"text": ("STRING", {"multiline": True}),
|
||||
},
|
||||
"hidden": {"prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO", "unique_id": "UNIQUE_ID"},
|
||||
}
|
||||
|
||||
CATEGORY = "ImpactPack/Debug"
|
||||
|
||||
OUTPUT_NODE = True
|
||||
|
||||
RETURN_TYPES = ()
|
||||
FUNCTION = "doit"
|
||||
|
||||
def doit(self, data, text, prompt, extra_pnginfo, unique_id):
|
||||
shape = ""
|
||||
if hasattr(data, "shape"):
|
||||
shape = f"{data.shape} / "
|
||||
|
||||
logging.info(f"[IMPACT LOGGER]: {shape}{data}")
|
||||
|
||||
logging.info(f" PROMPT: {prompt}")
|
||||
|
||||
# for x in prompt:
|
||||
# if 'inputs' in x and 'populated_text' in x['inputs']:
|
||||
# print(f"PROMPT: {x['10']['inputs']['populated_text']}")
|
||||
#
|
||||
# for x in extra_pnginfo['workflow']['nodes']:
|
||||
# if x['type'] == 'ImpactWildcardProcessor':
|
||||
# print(f" WV : {x['widgets_values'][1]}\n")
|
||||
|
||||
PromptServer.instance.send_sync("impact-node-feedback", {"node_id": unique_id, "widget_name": "text", "type": "TEXT", "value": f"{data}"})
|
||||
return {}
|
||||
|
||||
|
||||
class ImpactDummyInput:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {}}
|
||||
|
||||
CATEGORY = "ImpactPack/Debug"
|
||||
|
||||
RETURN_TYPES = (any_typ,)
|
||||
FUNCTION = "doit"
|
||||
|
||||
def doit(self):
|
||||
return ("DUMMY",)
|
||||
|
||||
|
||||
class MasksToMaskList:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"optional": {
|
||||
"masks": ("MASK", ),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("MASK", )
|
||||
OUTPUT_IS_LIST = (True, )
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Operation"
|
||||
|
||||
def doit(self, masks):
|
||||
if masks is None:
|
||||
empty_mask = torch.zeros((64, 64), dtype=torch.float32, device="cpu")
|
||||
return ([empty_mask], )
|
||||
|
||||
res = []
|
||||
|
||||
for mask in masks:
|
||||
res.append(mask)
|
||||
|
||||
res = [make_3d_mask(x) for x in res]
|
||||
|
||||
return (res, )
|
||||
|
||||
|
||||
class MaskListToMaskBatch:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"mask": ("MASK", ),
|
||||
}
|
||||
}
|
||||
|
||||
INPUT_IS_LIST = True
|
||||
|
||||
RETURN_TYPES = ("MASK", )
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Operation"
|
||||
|
||||
def doit(self, mask):
|
||||
if len(mask) == 0:
|
||||
empty_mask = torch.zeros((1, 64, 64), dtype=torch.float32, device="cpu").unsqueeze(0)
|
||||
return (empty_mask,)
|
||||
|
||||
masks_3d = [make_3d_mask(m) for m in mask]
|
||||
target_shape = masks_3d[0].shape[1:]
|
||||
upscaled_masks = []
|
||||
for m in masks_3d:
|
||||
if m.shape[1:] != target_shape:
|
||||
m = m.unsqueeze(1).repeat(1, 3, 1, 1)
|
||||
m = comfy.utils.common_upscale(m, target_shape[1], target_shape[0], "lanczos", "center")
|
||||
m = m[:, 0, :, :]
|
||||
|
||||
upscaled_masks.append(m)
|
||||
# Concatenate all at once
|
||||
result = torch.cat(upscaled_masks, dim=0)
|
||||
return (result,)
|
||||
|
||||
|
||||
class ImageListToImageBatch:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"images": ("IMAGE", ),
|
||||
}
|
||||
}
|
||||
|
||||
INPUT_IS_LIST = True
|
||||
|
||||
RETURN_TYPES = ("IMAGE", )
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Operation"
|
||||
|
||||
def doit(self, images):
|
||||
if len(images) == 0:
|
||||
return ()
|
||||
if len(images) == 1:
|
||||
img = images[0]
|
||||
if img.ndim == 3: # add batch dim if missing
|
||||
img = img.unsqueeze(0)
|
||||
return (img,)
|
||||
|
||||
# Start with the first image
|
||||
image1 = images[0]
|
||||
if image1.ndim == 3:
|
||||
image1 = image1.unsqueeze(0)
|
||||
|
||||
for image2 in images[1:]:
|
||||
# Ensure batch dim
|
||||
if image2.ndim == 3:
|
||||
image2 = image2.unsqueeze(0)
|
||||
|
||||
# Ensure same device
|
||||
if image2.device != image1.device:
|
||||
image2 = image2.to(image1.device)
|
||||
|
||||
# Ensure HxW match exactly
|
||||
H, W = image1.shape[1], image1.shape[2]
|
||||
if image2.shape[1] != H or image2.shape[2] != W:
|
||||
image2 = comfy.utils.common_upscale(
|
||||
image2.movedim(-1, 1), # move channels first
|
||||
W, # width
|
||||
H, # height
|
||||
"lanczos",
|
||||
"center"
|
||||
).movedim(1, -1) # move channels back last
|
||||
|
||||
# Ensure channels match
|
||||
if image2.shape[3] != image1.shape[3]:
|
||||
# simple fix: truncate or pad channels
|
||||
min_C = min(image1.shape[3], image2.shape[3])
|
||||
image1 = image1[:, :, :, :min_C]
|
||||
image2 = image2[:, :, :, :min_C]
|
||||
|
||||
# Concatenate along batch dimension
|
||||
image1 = torch.cat((image1, image2), dim=0)
|
||||
|
||||
return (image1,)
|
||||
|
||||
|
||||
class ImageBatchToImageList:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {"image": ("IMAGE",), }}
|
||||
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
OUTPUT_IS_LIST = (True,)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, image):
|
||||
images = [image[i:i + 1, ...] for i in range(image.shape[0])]
|
||||
return (images, )
|
||||
|
||||
|
||||
class MakeAnyList:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {},
|
||||
"optional": {"value1": (any_typ,), }
|
||||
}
|
||||
|
||||
RETURN_TYPES = (any_typ,)
|
||||
OUTPUT_IS_LIST = (True,)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, **kwargs):
|
||||
values = []
|
||||
|
||||
for k, v in kwargs.items():
|
||||
if v is not None:
|
||||
values.append(v)
|
||||
|
||||
return (values, )
|
||||
|
||||
|
||||
class MakeMaskList:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {"mask1": ("MASK",), }}
|
||||
|
||||
RETURN_TYPES = ("MASK",)
|
||||
OUTPUT_IS_LIST = (True,)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, **kwargs):
|
||||
masks = []
|
||||
|
||||
for k, v in kwargs.items():
|
||||
masks.append(v)
|
||||
|
||||
return (masks, )
|
||||
|
||||
|
||||
class NthItemOfAnyList:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"any_list": (any_typ,),
|
||||
"index": ("INT", {"default": 0, "min": -sys.maxsize, "max": sys.maxsize, "step": 1, "tooltip": "The index of the item you want to select from the list. Use negative values to select from the end (e.g., -1 for last item, -2 for second to last)."}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = (any_typ,)
|
||||
INPUT_IS_LIST = True
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
DESCRIPTION = "Selects the Nth item from a list. If the index is out of range, it returns the last item in the list."
|
||||
|
||||
def doit(self, any_list, index):
|
||||
i = index[0]
|
||||
list_len = len(any_list)
|
||||
if i >= list_len or i < -list_len:
|
||||
return (any_list[-1],)
|
||||
else:
|
||||
return (any_list[i],)
|
||||
|
||||
|
||||
class MakeImageList:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"optional": {"image1": ("IMAGE",), }}
|
||||
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
OUTPUT_IS_LIST = (True,)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, **kwargs):
|
||||
images = []
|
||||
|
||||
for k, v in kwargs.items():
|
||||
images.append(v)
|
||||
|
||||
return (images, )
|
||||
|
||||
|
||||
class MakeImageBatch:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"optional": {"image1": ("IMAGE",), }}
|
||||
|
||||
RETURN_TYPES = ("IMAGE",)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, **kwargs):
|
||||
images = [value for value in kwargs.values()]
|
||||
|
||||
if len(images) == 1:
|
||||
return (images[0],)
|
||||
else:
|
||||
image1 = images[0]
|
||||
for image2 in images[1:]:
|
||||
if image1.shape[1:] != image2.shape[1:]:
|
||||
image2 = comfy.utils.common_upscale(image2.movedim(-1, 1), image1.shape[2], image1.shape[1], "lanczos", "center").movedim(1, -1)
|
||||
image1 = torch.cat((image1, image2), dim=0)
|
||||
return (image1,)
|
||||
|
||||
|
||||
class MakeMaskBatch:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"optional": {"mask1": ("MASK",), }}
|
||||
|
||||
RETURN_TYPES = ("MASK",)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, **kwargs):
|
||||
masks = [make_3d_mask(value) for value in kwargs.values()]
|
||||
|
||||
if len(masks) == 1:
|
||||
return (masks[0],)
|
||||
else:
|
||||
mask1 = masks[0]
|
||||
for mask2 in masks[1:]:
|
||||
if mask1.shape[1:] != mask2.shape[1:]:
|
||||
mask2 = comfy.utils.common_upscale(mask2.movedim(-1, 1), mask1.shape[2], mask1.shape[1], "lanczos", "center").movedim(1, -1)
|
||||
mask1 = torch.cat((mask1, mask2), dim=0)
|
||||
return (mask1,)
|
||||
|
||||
|
||||
class ReencodeLatent:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"samples": ("LATENT", ),
|
||||
"tile_mode": (["None", "Both", "Decode(input) only", "Encode(output) only"],),
|
||||
"input_vae": ("VAE", ),
|
||||
"output_vae": ("VAE", ),
|
||||
"tile_size": ("INT", {"default": 512, "min": 320, "max": 4096, "step": 64}),
|
||||
},
|
||||
"optional": {
|
||||
"overlap": ("INT", {"default": 64, "min": 0, "max": 4096, "step": 32, "tooltip": "This setting applies when 'tile_mode' is enabled."}),
|
||||
}
|
||||
}
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
RETURN_TYPES = ("LATENT", )
|
||||
FUNCTION = "doit"
|
||||
|
||||
def doit(self, samples, tile_mode, input_vae, output_vae, tile_size=512, overlap=64):
|
||||
if tile_mode in ["Both", "Decode(input) only"]:
|
||||
decoder = nodes.VAEDecodeTiled()
|
||||
if 'overlap' in inspect.signature(decoder.decode).parameters:
|
||||
pixels = decoder.decode(input_vae, samples, tile_size, overlap=overlap)[0]
|
||||
else:
|
||||
pixels = decoder.decode(input_vae, samples, tile_size, overlap=overlap)[0]
|
||||
else:
|
||||
pixels = nodes.VAEDecode().decode(input_vae, samples)[0]
|
||||
|
||||
if tile_mode in ["Both", "Encode(output) only"]:
|
||||
encoder = nodes.VAEEncodeTiled()
|
||||
if 'overlap' in inspect.signature(encoder.encode).parameters:
|
||||
return encoder.encode(output_vae, pixels, tile_size, overlap=overlap)
|
||||
else:
|
||||
return encoder.encode(output_vae, pixels, tile_size)
|
||||
else:
|
||||
return nodes.VAEEncode().encode(output_vae, pixels)
|
||||
|
||||
|
||||
class ReencodeLatentPipe:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"samples": ("LATENT", ),
|
||||
"tile_mode": (["None", "Both", "Decode(input) only", "Encode(output) only"],),
|
||||
"input_basic_pipe": ("BASIC_PIPE", ),
|
||||
"output_basic_pipe": ("BASIC_PIPE", ),
|
||||
},
|
||||
}
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
RETURN_TYPES = ("LATENT", )
|
||||
FUNCTION = "doit"
|
||||
|
||||
def doit(self, samples, tile_mode, input_basic_pipe, output_basic_pipe):
|
||||
_, _, input_vae, _, _ = input_basic_pipe
|
||||
_, _, output_vae, _, _ = output_basic_pipe
|
||||
return ReencodeLatent().doit(samples, tile_mode, input_vae, output_vae)
|
||||
|
||||
|
||||
class StringSelector:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {"required": {
|
||||
"strings": ("STRING", {"multiline": True}),
|
||||
"multiline": ("BOOLEAN", {"default": False, "label_on": "enabled", "label_off": "disabled"}),
|
||||
"select": ("INT", {"min": 0, "max": sys.maxsize, "step": 1, "default": 0}),
|
||||
}}
|
||||
|
||||
RETURN_TYPES = ("STRING",)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, strings, multiline, select):
|
||||
lines = strings.split('\n')
|
||||
|
||||
if multiline:
|
||||
result = []
|
||||
current_string = ""
|
||||
|
||||
for line in lines:
|
||||
if line.startswith("#"):
|
||||
if current_string:
|
||||
result.append(current_string.strip())
|
||||
current_string = ""
|
||||
current_string += line + "\n"
|
||||
|
||||
if current_string:
|
||||
result.append(current_string.strip())
|
||||
|
||||
if len(result) == 0:
|
||||
selected = strings
|
||||
else:
|
||||
selected = result[select % len(result)]
|
||||
|
||||
if selected.startswith('#'):
|
||||
selected = selected[1:]
|
||||
else:
|
||||
if len(lines) == 0:
|
||||
selected = strings
|
||||
else:
|
||||
selected = lines[select % len(lines)]
|
||||
|
||||
return (selected, )
|
||||
|
||||
|
||||
class StringListToString:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"join_with": ("STRING", {"default": "\\n"}),
|
||||
"string_list": ("STRING", {"forceInput": True}),
|
||||
}
|
||||
}
|
||||
|
||||
INPUT_IS_LIST = True
|
||||
RETURN_TYPES = ("STRING",)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, join_with, string_list):
|
||||
# convert \\n to newline character
|
||||
if join_with[0] == "\\n":
|
||||
join_with[0] = "\n"
|
||||
|
||||
joined_text = join_with[0].join(string_list)
|
||||
|
||||
return (joined_text,)
|
||||
|
||||
|
||||
class WildcardPromptFromString:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"string": ("STRING", {"forceInput": True}),
|
||||
"delimiter": ("STRING", {"multiline": False, "default": "\\n" }),
|
||||
"prefix_all": ("STRING", {"multiline": False}),
|
||||
"postfix_all": ("STRING", {"multiline": False}),
|
||||
"restrict_to_tags": ("STRING", {"multiline": False}),
|
||||
"exclude_tags": ("STRING", {"multiline": False})
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("STRING", "STRING",)
|
||||
RETURN_NAMES = ("wildcard", "segs_labels",)
|
||||
FUNCTION = "doit"
|
||||
|
||||
CATEGORY = "ImpactPack/Util"
|
||||
|
||||
def doit(self, string, delimiter, prefix_all, postfix_all, restrict_to_tags, exclude_tags):
|
||||
# convert \\n to newline character
|
||||
if delimiter == "\\n":
|
||||
delimiter = "\n"
|
||||
|
||||
# some sanity checks and normalization for later processing
|
||||
if prefix_all is None:
|
||||
prefix_all = ""
|
||||
if postfix_all is None:
|
||||
postfix_all = ""
|
||||
if restrict_to_tags is None:
|
||||
restrict_to_tags = ""
|
||||
if exclude_tags is None:
|
||||
exclude_tags = ""
|
||||
|
||||
restrict_to_tags = restrict_to_tags.split(", ")
|
||||
exclude_tags = exclude_tags.split(", ")
|
||||
|
||||
# build the wildcard prompt per list entry
|
||||
output = ["[LAB]"]
|
||||
labels = []
|
||||
for x in string.split(delimiter):
|
||||
label = str(len(labels) + 1)
|
||||
labels.append(label)
|
||||
x = x.split(", ")
|
||||
# restrict to tags
|
||||
if restrict_to_tags != [""]:
|
||||
x = list(set(x) & set(restrict_to_tags))
|
||||
# remove tags
|
||||
if exclude_tags != [""]:
|
||||
x = list(set(x) - set(exclude_tags))
|
||||
# next row: <LABEL> <PREFIX> <TAGS> <POSTFIX>
|
||||
prompt_for_seg = f'[{label}] {prefix_all} {", ".join(x)} {postfix_all}'.strip()
|
||||
output.append(prompt_for_seg)
|
||||
output = "\n".join(output)
|
||||
|
||||
# clean string: fixup double spaces, commas etc.
|
||||
output = re.sub(r' ,', ',', output)
|
||||
output = re.sub(r' +', ' ', output)
|
||||
output = re.sub(r',,+', ',', output)
|
||||
output = re.sub(r'\n, ', '\n', output)
|
||||
|
||||
return output, ", ".join(labels)
|
||||
@@ -0,0 +1,26 @@
|
||||
[project]
|
||||
name = "comfyui-impact-pack"
|
||||
description = "This node pack offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler."
|
||||
version = "8.28.2"
|
||||
license = { file = "LICENSE.txt" }
|
||||
dependencies = [
|
||||
"segment-anything",
|
||||
"scikit-image",
|
||||
"piexif",
|
||||
"transformers",
|
||||
"opencv-python-headless",
|
||||
"scipy",
|
||||
"numpy",
|
||||
"dill",
|
||||
"matplotlib",
|
||||
"sam2 @ git+https://github.com/facebookresearch/sam2"
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/ltdrdata/ComfyUI-Impact-Pack"
|
||||
# Used by Comfy Registry https://comfyregistry.org
|
||||
|
||||
[tool.comfy]
|
||||
PublisherId = "drltdata"
|
||||
DisplayName = "ComfyUI Impact Pack"
|
||||
Icon = ""
|
||||
@@ -0,0 +1 @@
|
||||
{"sha":"d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935","node_id":"C_kwDOLGBTQ9oAKGQ5NGJlZjFlZTVlZDM2NTZmNWZmMWJiMjgzMGE0ZmZkOTRmNDA5MzU","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/commits/d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935","html_url":"https://github.com/chflame163/ComfyUI_LayerStyle/commit/d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935","author":{"name":"chflame163","email":"chflame@163.com","date":"2026-01-30T06:31:45Z"},"committer":{"name":"chflame163","email":"chflame@163.com","date":"2026-01-30T06:31:45Z"},"tree":{"sha":"71e802f4590393aed7d1c49e0b95177dd1b1e7a9","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/71e802f4590393aed7d1c49e0b95177dd1b1e7a9"},"message":"Ultra nodes support vitmatte-base-composition-1k","parents":[{"sha":"3d53de09d8c1fb904d5cb0a137b9bc75e9d77108","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/commits/3d53de09d8c1fb904d5cb0a137b9bc75e9d77108","html_url":"https://github.com/chflame163/ComfyUI_LayerStyle/commit/3d53de09d8c1fb904d5cb0a137b9bc75e9d77108"}],"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}}
|
||||
File diff suppressed because one or more lines are too long
@@ -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"]
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,80 @@
|
||||
import torch.cuda
|
||||
import gc
|
||||
import comfy.model_management
|
||||
from .imagefunc import AnyType, clear_memory
|
||||
|
||||
any = AnyType("*")
|
||||
|
||||
class PurgeVRAM:
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"anything": (any, {}),
|
||||
"purge_cache": ("BOOLEAN", {"default": True}),
|
||||
"purge_models": ("BOOLEAN", {"default": True}),
|
||||
},
|
||||
"optional": {
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ()
|
||||
FUNCTION = "purge_vram"
|
||||
CATEGORY = '😺dzNodes/LayerUtility/SystemIO'
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def purge_vram(self, anything, purge_cache, purge_models):
|
||||
import torch.cuda
|
||||
import gc
|
||||
import comfy.model_management
|
||||
clear_memory()
|
||||
if purge_models:
|
||||
comfy.model_management.unload_all_models()
|
||||
comfy.model_management.soft_empty_cache()
|
||||
return (None,)
|
||||
|
||||
class PurgeVRAM_V2:
|
||||
|
||||
def __init__(self):
|
||||
self.NODE_NAME = 'PurgeVRAM V2'
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"anything": (any, {}),
|
||||
"purge_cache": ("BOOLEAN", {"default": True}),
|
||||
"purge_models": ("BOOLEAN", {"default": True}),
|
||||
},
|
||||
"optional": {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
RETURN_TYPES = (any,)
|
||||
RETURN_NAMES = ("any",)
|
||||
FUNCTION = "purge_vram_v2"
|
||||
CATEGORY = '😺dzNodes/LayerUtility/SystemIO'
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def purge_vram_v2(self, anything, purge_cache, purge_models):
|
||||
clear_memory()
|
||||
if purge_models:
|
||||
comfy.model_management.unload_all_models()
|
||||
comfy.model_management.soft_empty_cache()
|
||||
return (anything,)
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"LayerUtility: PurgeVRAM": PurgeVRAM,
|
||||
"LayerUtility: PurgeVRAM V2": PurgeVRAM_V2,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"LayerUtility: PurgeVRAM": "LayerUtility: Purge VRAM",
|
||||
"LayerUtility: PurgeVRAM V2": "LayerUtility: Purge VRAM V2",
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"sha":"90b117502f237dd008c541372b72935d93ae894c","node_id":"C_kwDOQ_fZq9oAKDkwYjExNzUwMmYyMzdkZDAwOGM1NDEzNzJiNzI5MzVkOTNhZTg5NGM","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/commits/90b117502f237dd008c541372b72935d93ae894c","html_url":"https://github.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/commit/90b117502f237dd008c541372b72935d93ae894c","author":{"name":"AICodeTudou","email":"411011819@qq.com","date":"2026-01-24T04:58:38Z"},"committer":{"name":"AICodeTudou","email":"411011819@qq.com","date":"2026-01-24T04:58:38Z"},"tree":{"sha":"8fa976b4a50452d4313c63287548451ed8b0b668","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/trees/8fa976b4a50452d4313c63287548451ed8b0b668"},"message":"增加try catch为安装qwen3ttsmodel警告信息","parents":[{"sha":"887fc88f03d2d9ff387709b4e0aad93cd459d3b4","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/commits/887fc88f03d2d9ff387709b4e0aad93cd459d3b4","html_url":"https://github.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/commit/887fc88f03d2d9ff387709b4e0aad93cd459d3b4"}],"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,176 @@
|
||||
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
|
||||
@@ -0,0 +1,3 @@
|
||||
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
|
||||
@@ -0,0 +1,309 @@
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import torch
|
||||
import numpy as np
|
||||
import folder_paths
|
||||
|
||||
# 将父目录添加到路径以允许导入 qwen_tts
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
# 添加本地克隆的 cc 目录到 sys.path
|
||||
qwen_repo_path = os.path.join(current_dir, "Qwen3-TTS")
|
||||
if os.path.exists(qwen_repo_path) and qwen_repo_path not in sys.path:
|
||||
sys.path.append(qwen_repo_path)
|
||||
|
||||
parent_dir = os.path.dirname(current_dir)
|
||||
if parent_dir not in sys.path:
|
||||
sys.path.append(parent_dir)
|
||||
|
||||
try:
|
||||
from qwen_tts.inference.qwen3_tts_model import Qwen3TTSModel
|
||||
except ImportError as e:
|
||||
print("\n" + "!" * 50)
|
||||
print("Warning / 警告:")
|
||||
print("Failed to import Qwen3TTS dependencies. / 无法导入 Qwen3TTS 依赖项。")
|
||||
print(f"Error details / 错误详情: {e}")
|
||||
print("\nPlease try the following steps to fix this issue / 请尝试以下步骤解决此问题:")
|
||||
print("1. Open terminal in the node directory / 在节点目录下打开终端:")
|
||||
print(f" cd {os.path.dirname(os.path.abspath(__file__))}")
|
||||
print("2. Install dependencies / 安装依赖:")
|
||||
print(" pip install -r requirements.txt")
|
||||
print("3. If using portable ComfyUI / 如果使用便携版 ComfyUI:")
|
||||
print(" path/to/python_embeded/python.exe -m pip install -r requirements.txt")
|
||||
print("!" * 50 + "\n")
|
||||
pass
|
||||
|
||||
def get_all_speakers():
|
||||
speakers = set()
|
||||
qwen_models_dir = os.path.join(folder_paths.models_dir, "Qwen3-TTS-Models")
|
||||
if os.path.exists(qwen_models_dir):
|
||||
for d in os.listdir(qwen_models_dir):
|
||||
path = os.path.join(qwen_models_dir, d)
|
||||
if os.path.isdir(path):
|
||||
config_path = os.path.join(path, "config.json")
|
||||
if os.path.exists(config_path):
|
||||
try:
|
||||
with open(config_path, "r", encoding="utf-8") as f:
|
||||
config = json.load(f)
|
||||
if "talker_config" in config and "spk_id" in config["talker_config"]:
|
||||
speakers.update(config["talker_config"]["spk_id"].keys())
|
||||
except Exception as e:
|
||||
print(f"Failed to read config for {d}: {e}")
|
||||
|
||||
if not speakers:
|
||||
return ["Vivian", "Serena", "Ryan"] # Fallback defaults
|
||||
|
||||
return sorted(list(speakers))
|
||||
|
||||
KNOWN_MODELS = [
|
||||
"Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice",
|
||||
"Qwen/Qwen3-TTS-12Hz-1.7B-VoiceDesign",
|
||||
"Qwen/Qwen3-TTS-12Hz-1.7B-Base",
|
||||
"Qwen/Qwen3-TTS-12Hz-0.6B-CustomVoice",
|
||||
"Qwen/Qwen3-TTS-12Hz-0.6B-Base",
|
||||
]
|
||||
|
||||
class TDQwen3TTSModelLoader:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
qwen_models_dir = os.path.join(folder_paths.models_dir, "Qwen3-TTS-Models")
|
||||
if not os.path.exists(qwen_models_dir):
|
||||
try:
|
||||
os.makedirs(qwen_models_dir, exist_ok=True)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Get existing directories
|
||||
existing_models = []
|
||||
if os.path.exists(qwen_models_dir):
|
||||
existing_models = [d for d in os.listdir(qwen_models_dir) if os.path.isdir(os.path.join(qwen_models_dir, d))]
|
||||
|
||||
# Merge known models and existing models (deduplicate by checking if known model's basename exists)
|
||||
model_list = list(KNOWN_MODELS)
|
||||
for existing in existing_models:
|
||||
# Check if this existing folder is already covered by a known model (by basename)
|
||||
is_known = False
|
||||
for known in KNOWN_MODELS:
|
||||
if known.split("/")[-1] == existing:
|
||||
is_known = True
|
||||
break
|
||||
if not is_known:
|
||||
model_list.append(existing)
|
||||
|
||||
if not model_list:
|
||||
model_list = ["Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice"]
|
||||
|
||||
return {
|
||||
"required": {
|
||||
"model_path": (model_list, {"default": "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice"}),
|
||||
"precision": (["bf16", "fp16", "fp32"], {"default": "bf16"}),
|
||||
"device": (["cuda", "cpu"], {"default": "cuda"}),
|
||||
"attn_implementation": (["sdpa", "flash_attention_2", "eager"], {"default": "sdpa"}),
|
||||
"auto_download": ("BOOLEAN", {"default": False, "label_on": "Enable", "label_off": "Disable"}),
|
||||
"download_source": (["ModelScope", "HuggingFace"], {"default": "ModelScope"}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("QWEN3_TTS_MODEL",)
|
||||
RETURN_NAMES = ("model",)
|
||||
FUNCTION = "load_model"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def load_model(self, model_path, precision, device, attn_implementation, auto_download, download_source):
|
||||
dtype = torch.bfloat16 if precision == "bf16" else torch.float16 if precision == "fp16" else torch.float32
|
||||
|
||||
print(f"Loading Qwen3-TTS Model from {model_path} (Precision: {precision}, Device: {device}, Attn: {attn_implementation})...")
|
||||
|
||||
qwen_models_dir = os.path.join(folder_paths.models_dir, "Qwen3-TTS-Models")
|
||||
|
||||
# Determine local path
|
||||
if "/" in model_path:
|
||||
local_name = model_path.split("/")[-1]
|
||||
else:
|
||||
local_name = model_path
|
||||
|
||||
local_path = os.path.join(qwen_models_dir, local_name)
|
||||
|
||||
# Check if model exists
|
||||
if not os.path.exists(local_path):
|
||||
if auto_download:
|
||||
print(f"Model not found at {local_path}. Attempting to download from {download_source}...")
|
||||
try:
|
||||
self.download_model(model_path, local_path, download_source)
|
||||
except Exception as e:
|
||||
raise RuntimeError(f"Failed to download model {model_path}: {e}")
|
||||
else:
|
||||
raise FileNotFoundError(f"Model not found at {local_path} and auto_download is disabled. Please enable auto_download or manually place the model in {qwen_models_dir}.")
|
||||
|
||||
print(f"Loading model from {local_path}...")
|
||||
model = Qwen3TTSModel.from_pretrained(
|
||||
local_path,
|
||||
device_map=device,
|
||||
dtype=dtype,
|
||||
attn_implementation=attn_implementation,
|
||||
)
|
||||
return (model,)
|
||||
|
||||
def download_model(self, model_id, local_dir, source):
|
||||
# Handle cases where user selected a custom folder name that isn't a repo ID
|
||||
if "/" not in model_id:
|
||||
# If it's not a repo ID, we can't download it unless we know the mapping.
|
||||
# But our INPUT_TYPES puts Repo IDs in the list.
|
||||
# If user manually typed a folder name, we assume they know what they are doing or it exists.
|
||||
# If it doesn't exist and isn't a repo ID, we can't download.
|
||||
raise ValueError(f"Cannot download '{model_id}' because it does not look like a valid Repo ID (e.g. User/Model).")
|
||||
|
||||
if source == "ModelScope":
|
||||
try:
|
||||
from modelscope import snapshot_download
|
||||
except ImportError:
|
||||
raise ImportError("ModelScope is not installed. Please run: pip install -U modelscope")
|
||||
|
||||
print(f"Downloading {model_id} from ModelScope to {local_dir}...")
|
||||
snapshot_download(model_id, local_dir=local_dir)
|
||||
|
||||
elif source == "HuggingFace":
|
||||
try:
|
||||
from huggingface_hub import snapshot_download
|
||||
except ImportError:
|
||||
raise ImportError("HuggingFace Hub is not installed. Please run: pip install -U huggingface_hub")
|
||||
|
||||
print(f"Downloading {model_id} from HuggingFace to {local_dir}...")
|
||||
snapshot_download(repo_id=model_id, local_dir=local_dir)
|
||||
|
||||
class TDQwen3TTSCustomVoice:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
speakers = get_all_speakers()
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"text": ("STRING", {"multiline": True, "default": "你好,我是Qwen3-TTS。"}),
|
||||
"speaker": (speakers, {"default": speakers[0] if speakers else "Vivian"}),
|
||||
"language": (["Auto", "Chinese", "English", "Japanese", "Korean", "German", "French", "Russian", "Portuguese", "Spanish", "Italian"], {"default": "Auto"}),
|
||||
},
|
||||
"optional": {
|
||||
"instruct": ("STRING", {"multiline": True, "default": ""}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("AUDIO",)
|
||||
RETURN_NAMES = ("audio",)
|
||||
FUNCTION = "generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def generate(self, model, text, speaker, language, instruct=""):
|
||||
if language == "Auto":
|
||||
language = None
|
||||
|
||||
print(f"正在为说话人 {speaker} 生成自定义语音...")
|
||||
wavs, sr = model.generate_custom_voice(
|
||||
text=text,
|
||||
speaker=speaker,
|
||||
language=language,
|
||||
instruct=instruct if instruct else None
|
||||
)
|
||||
|
||||
# ComfyUI 音频格式: {'waveform': tensor [batch, channels, samples], 'sample_rate': int}
|
||||
# wavs[0] 是 [samples] (单声道)
|
||||
audio_tensor = torch.from_numpy(wavs[0]).unsqueeze(0).unsqueeze(0) # [1, 1, samples]
|
||||
|
||||
return ({"waveform": audio_tensor, "sample_rate": sr},)
|
||||
|
||||
class TDQwen3TTSVoiceDesign:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"text": ("STRING", {"multiline": True, "default": "这是一个语音设计测试。"}),
|
||||
"instruct": ("STRING", {"multiline": True, "default": "一个年轻女性的声音,语气愉快。"}),
|
||||
"language": (["Auto", "Chinese", "English", "Japanese", "Korean", "German", "French", "Russian", "Portuguese", "Spanish", "Italian"], {"default": "Auto"}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("AUDIO",)
|
||||
RETURN_NAMES = ("audio",)
|
||||
FUNCTION = "generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def generate(self, model, text, instruct, language):
|
||||
if language == "Auto":
|
||||
language = None
|
||||
|
||||
print(f"正在使用指令生成语音设计: {instruct}...")
|
||||
wavs, sr = model.generate_voice_design(
|
||||
text=text,
|
||||
instruct=instruct,
|
||||
language=language
|
||||
)
|
||||
|
||||
audio_tensor = torch.from_numpy(wavs[0]).unsqueeze(0).unsqueeze(0)
|
||||
return ({"waveform": audio_tensor, "sample_rate": sr},)
|
||||
|
||||
class TDQwen3TTSVoiceClone:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"text": ("STRING", {"multiline": True, "default": "这是一个语音克隆测试。"}),
|
||||
"ref_audio": ("AUDIO",),
|
||||
"language": (["Auto", "Chinese", "English", "Japanese", "Korean", "German", "French", "Russian", "Portuguese", "Spanish", "Italian"], {"default": "Auto"}),
|
||||
},
|
||||
"optional": {
|
||||
"ref_text": ("STRING", {"multiline": True, "default": ""}),
|
||||
"x_vector_only_mode": ("BOOLEAN", {"default": False, "label_on": "Enable", "label_off": "Disable"}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("AUDIO",)
|
||||
RETURN_NAMES = ("audio",)
|
||||
FUNCTION = "generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def generate(self, model, text, ref_audio, language, ref_text="", x_vector_only_mode=False):
|
||||
if language == "Auto":
|
||||
language = None
|
||||
|
||||
waveform = ref_audio["waveform"] # [batch, channels, samples]
|
||||
sr = ref_audio["sample_rate"]
|
||||
|
||||
# 处理参考音频:取第一个批次,如果多声道则混合为单声道,最后转为 numpy
|
||||
ref_wav_tensor = waveform[0] # [channels, samples]
|
||||
if ref_wav_tensor.shape[0] > 1:
|
||||
print(f"检测到多声道音频,正在混合为单声道...")
|
||||
ref_wav_tensor = torch.mean(ref_wav_tensor, dim=0, keepdim=True)
|
||||
|
||||
ref_wav_np = ref_wav_tensor.squeeze(0).numpy() # [samples]
|
||||
|
||||
# 参考 test_model_12hz_base.py 的实现
|
||||
# 如果未启用 x_vector_only_mode,则必须提供 ref_text
|
||||
if not x_vector_only_mode and not ref_text.strip():
|
||||
raise ValueError("必须填写参考文本(ref_text),内容为参考音频的实际说话内容。如果无法提供文本,请开启 'x_vector_only_mode'。")
|
||||
|
||||
print(f"正在生成语音克隆 (x_vector_only_mode={x_vector_only_mode})...")
|
||||
wavs, out_sr = model.generate_voice_clone(
|
||||
text=text,
|
||||
language=language,
|
||||
ref_audio=(ref_wav_np, sr),
|
||||
ref_text=ref_text if ref_text else None,
|
||||
x_vector_only_mode=x_vector_only_mode
|
||||
)
|
||||
|
||||
audio_tensor = torch.from_numpy(wavs[0]).unsqueeze(0).unsqueeze(0)
|
||||
return ({"waveform": audio_tensor, "sample_rate": out_sr},)
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"TDQwen3TTSModelLoader": TDQwen3TTSModelLoader,
|
||||
"TDQwen3TTSCustomVoice": TDQwen3TTSCustomVoice,
|
||||
"TDQwen3TTSVoiceDesign": TDQwen3TTSVoiceDesign,
|
||||
"TDQwen3TTSVoiceClone": TDQwen3TTSVoiceClone,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"TDQwen3TTSModelLoader": "TD Qwen3 TTS Model Loader",
|
||||
"TDQwen3TTSCustomVoice": "TD Qwen3 TTS Custom Voice",
|
||||
"TDQwen3TTSVoiceDesign": "TD Qwen3 TTS Voice Design",
|
||||
"TDQwen3TTSVoiceClone": "TD Qwen3 TTS Voice Clone",
|
||||
}
|
||||
@@ -0,0 +1,393 @@
|
||||
{
|
||||
"sources": [
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_audio.py",
|
||||
"local_file": "core__comfy_extras__nodes_audio.py",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tree": "7b8179ffb38c06974fcd9f5c127b3e943893c6f5",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/comfy_extras/nodes_audio.py",
|
||||
"sha256": "3b126494a63be63fb90707aea819d2f492dbdcb06e1dc4f964a3036aead394ed",
|
||||
"git_blob_sha1": "43df0512f290f47584fe91f718f0e6a4e4c8b9f7",
|
||||
"fetched_at": "2026-10-30T19:32:32.813149+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_preview_any.py",
|
||||
"local_file": "core__comfy_extras__nodes_preview_any.py",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tree": "7b8179ffb38c06974fcd9f5c127b3e943893c6f5",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/comfy_extras/nodes_preview_any.py",
|
||||
"sha256": "f8c526dbc4ec512f88a067524865f59eb24db636858f37d601e848885b2d0751",
|
||||
"git_blob_sha1": "b0a6f279dfc0788a527fe2e83fb54e637ecf952f",
|
||||
"fetched_at": "2026-10-30T19:32:33.121021+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "core__LICENSE",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tree": "7b8179ffb38c06974fcd9f5c127b3e943893c6f5",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"fetched_at": "2026-10-30T19:32:33.531738+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "folder_paths.py",
|
||||
"local_file": "core__folder_paths.py",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tree": "7b8179ffb38c06974fcd9f5c127b3e943893c6f5",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"git_blob_sha1": "9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8",
|
||||
"fetched_at": "2026-10-30T19:32:33.883076+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "cr",
|
||||
"repo": "Suzie1/ComfyUI_Comfyroll_CustomNodes",
|
||||
"file": "__init__.py",
|
||||
"local_file": "cr____init__.py",
|
||||
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
|
||||
"tree": "12c141b4c99138cd6beb2d5197574b9fe264bc74",
|
||||
"url": "https://raw.githubusercontent.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/__init__.py",
|
||||
"sha256": "f5648f54dad6044763ac2f5f75bb26ec7f24bb43a8c4a6f6be62e523efee2ff6",
|
||||
"git_blob_sha1": "e5af18356e8765423954ea7c7d22b4f32fcdd9c0",
|
||||
"fetched_at": "2026-10-30T19:32:30.321658+00:00",
|
||||
"license_file": "原Git树无LICENSE,许可文本未知",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "cr",
|
||||
"repo": "Suzie1/ComfyUI_Comfyroll_CustomNodes",
|
||||
"file": "node_mappings.py",
|
||||
"local_file": "cr__node_mappings.py",
|
||||
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
|
||||
"tree": "12c141b4c99138cd6beb2d5197574b9fe264bc74",
|
||||
"url": "https://raw.githubusercontent.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/node_mappings.py",
|
||||
"sha256": "9ae8fbedc4941f5bd1f58dd46898bb3dff20ef76ed65b27eb35d70df98b6e633",
|
||||
"git_blob_sha1": "a4a1bc4ff001961a64e24bcfa59de528fbc8a6ea",
|
||||
"fetched_at": "2026-10-30T19:32:30.790448+00:00",
|
||||
"license_file": "原Git树无LICENSE,许可文本未知",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "cr",
|
||||
"repo": "Suzie1/ComfyUI_Comfyroll_CustomNodes",
|
||||
"file": "nodes/nodes_core.py",
|
||||
"local_file": "cr__nodes__nodes_core.py",
|
||||
"commit": "d78b780ae43fcf8c6b7c6505e6ffb4584281ceca",
|
||||
"tree": "12c141b4c99138cd6beb2d5197574b9fe264bc74",
|
||||
"url": "https://raw.githubusercontent.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/d78b780ae43fcf8c6b7c6505e6ffb4584281ceca/nodes/nodes_core.py",
|
||||
"sha256": "cece30b4134527ee0b9e7b083de0d3cc389124c02d5f1785284c023ba6756ece",
|
||||
"git_blob_sha1": "02af795eace2b04226fcecd2df0c85db544caa37",
|
||||
"fetched_at": "2026-10-30T19:32:31.227674+00:00",
|
||||
"license_file": "原Git树无LICENSE,许可文本未知",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "loader",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "__init__.py",
|
||||
"local_file": "loader____init__.py",
|
||||
"commit": "90b117502f237dd008c541372b72935d93ae894c",
|
||||
"tree": "8fa976b4a50452d4313c63287548451ed8b0b668",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/90b117502f237dd008c541372b72935d93ae894c/__init__.py",
|
||||
"sha256": "7d1c52e999d89ba5cc77619c179d5917cedb8ba6f6445f5b27f765d2107a6f65",
|
||||
"git_blob_sha1": "3d998eae307a57377b852fc3fe321f91c8cd61d0",
|
||||
"fetched_at": "2026-10-30T19:32:30.118057+00:00",
|
||||
"license_file": "loader__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "loader",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "nodes.py",
|
||||
"local_file": "loader__nodes.py",
|
||||
"commit": "90b117502f237dd008c541372b72935d93ae894c",
|
||||
"tree": "8fa976b4a50452d4313c63287548451ed8b0b668",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/90b117502f237dd008c541372b72935d93ae894c/nodes.py",
|
||||
"sha256": "856bae79b336675bcaa027226e36375d9f948883c8971bfb4d4715dd56f95c2c",
|
||||
"git_blob_sha1": "05bee6030b166338d2a5de2dc87607bc2ccad003",
|
||||
"fetched_at": "2026-10-30T19:32:30.456569+00:00",
|
||||
"license_file": "loader__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "loader",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "LICENSE",
|
||||
"local_file": "loader__LICENSE",
|
||||
"commit": "90b117502f237dd008c541372b72935d93ae894c",
|
||||
"tree": "8fa976b4a50452d4313c63287548451ed8b0b668",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/90b117502f237dd008c541372b72935d93ae894c/LICENSE",
|
||||
"sha256": "c4a2cd14eb3abe621891b235bbe2cfd65f1f71afcfcd5c9b691bb016387dfe88",
|
||||
"git_blob_sha1": "377b1cfa01684d2d02891c9f149d32b44bded68f",
|
||||
"fetched_at": "2026-10-30T19:32:30.760403+00:00",
|
||||
"license_file": "loader__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "__init__.py",
|
||||
"local_file": "dialog____init__.py",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/__init__.py",
|
||||
"sha256": "a246ff77bc33dc055d04310ed11d69d72917462c57637eab055bae5d51b9747b",
|
||||
"git_blob_sha1": "6ad7029884eb7ff2c491ebd8d0ad10834f79bfe6",
|
||||
"fetched_at": "2026-10-30T19:32:31.655206+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "nodes.py",
|
||||
"local_file": "dialog__nodes.py",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/nodes.py",
|
||||
"sha256": "45b01b04a1237ec33a1d980b4b949967730d4535ce3362c058886a88a2867eff",
|
||||
"git_blob_sha1": "4861124c730b522857bc2b2eed08f8e1017911e2",
|
||||
"fetched_at": "2026-10-30T19:32:32.146196+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "LICENSE",
|
||||
"local_file": "dialog__LICENSE",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/LICENSE",
|
||||
"sha256": "c4a2cd14eb3abe621891b235bbe2cfd65f1f71afcfcd5c9b691bb016387dfe88",
|
||||
"git_blob_sha1": "377b1cfa01684d2d02891c9f149d32b44bded68f",
|
||||
"fetched_at": "2026-10-30T19:32:32.456771+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "js/batch_speaker.js",
|
||||
"local_file": "dialog__js__batch_speaker.js",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/js/batch_speaker.js",
|
||||
"sha256": "2011f9f3666a8e70c3ff3701f1abdbc3275eacfce4ed8c959a6fe1aafe1800ae",
|
||||
"git_blob_sha1": "71e5f8da1047f0e606b4a0a458f76661329d9939",
|
||||
"fetched_at": "2026-10-30T19:32:32.781149+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "dialog",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "js/multi_dialog.js",
|
||||
"local_file": "dialog__js__multi_dialog.js",
|
||||
"commit": "0c20c6b9ac22ecc4b5525de651fca0776a382dd3",
|
||||
"tree": "6da1640966511fb020ea54c2f3f20a5027907b14",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/0c20c6b9ac22ecc4b5525de651fca0776a382dd3/js/multi_dialog.js",
|
||||
"sha256": "05fbf6e01d4733870b6711f1cb9015156fcdbcd648b0349c45ed989f04c39e3a",
|
||||
"git_blob_sha1": "c60324a1faa88c5bd3b182197c73e8bdd34664fa",
|
||||
"fetched_at": "2026-10-30T19:32:33.376338+00:00",
|
||||
"license_file": "dialog__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "__init__.py",
|
||||
"local_file": "layer____init__.py",
|
||||
"commit": "d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935",
|
||||
"tree": "71e802f4590393aed7d1c49e0b95177dd1b1e7a9",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935/__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a",
|
||||
"fetched_at": "2026-10-30T19:32:33.263863+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "py/purge_vram.py",
|
||||
"local_file": "layer__py__purge_vram.py",
|
||||
"commit": "d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935",
|
||||
"tree": "71e802f4590393aed7d1c49e0b95177dd1b1e7a9",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935/py/purge_vram.py",
|
||||
"sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215",
|
||||
"git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365",
|
||||
"fetched_at": "2026-10-30T19:32:33.614700+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "py/imagefunc.py",
|
||||
"local_file": "layer__py__imagefunc.py",
|
||||
"commit": "d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935",
|
||||
"tree": "71e802f4590393aed7d1c49e0b95177dd1b1e7a9",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935/py/imagefunc.py",
|
||||
"sha256": "8b86d33e06617cef208bdcb7fcd91585866d4b701eeede6033417463accddcdc",
|
||||
"git_blob_sha1": "9a4b2c46234a41d070b3a7fa8275b4b92279c24b",
|
||||
"fetched_at": "2026-10-30T19:32:34.439107+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "LICENSE",
|
||||
"local_file": "layer__LICENSE",
|
||||
"commit": "d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935",
|
||||
"tree": "71e802f4590393aed7d1c49e0b95177dd1b1e7a9",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/d94bef1ee5ed3656f5ff1bb2830a4ffd94f40935/LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559",
|
||||
"fetched_at": "2026-10-30T19:32:34.683664+00:00",
|
||||
"license_file": "layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified"
|
||||
},
|
||||
{
|
||||
"id": "impact",
|
||||
"repo": "ltdrdata/ComfyUI-Impact-Pack",
|
||||
"file": "__init__.py",
|
||||
"local_file": "impact____init__.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.28.2/node.zip",
|
||||
"commit": "发布包SHA256:f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"package_sha256": "f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"git_commit_binding": "unknown",
|
||||
"sha256": "c28bb39a58fff73b476f3304e26ef5d57e3d5bec7069f86b0b0f69a9528195c0",
|
||||
"fetched_at": "2026-10-30T19:32:43.830335+00:00",
|
||||
"license_file": "impact__LICENSE.txt",
|
||||
"tag": "8.28.2",
|
||||
"applicability": "准确发布8.28.2;Git提交及目标绑定未知"
|
||||
},
|
||||
{
|
||||
"id": "impact",
|
||||
"repo": "ltdrdata/ComfyUI-Impact-Pack",
|
||||
"file": "modules/impact/logics.py",
|
||||
"local_file": "impact__modules__impact__logics.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.28.2/node.zip",
|
||||
"commit": "发布包SHA256:f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"package_sha256": "f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"git_commit_binding": "unknown",
|
||||
"sha256": "354daeec00a5f18aeba1277c2366ae55f32bee433c469e44853d36ed6ccb37cb",
|
||||
"fetched_at": "2026-10-30T19:32:43.830453+00:00",
|
||||
"license_file": "impact__LICENSE.txt",
|
||||
"tag": "8.28.2",
|
||||
"applicability": "准确发布8.28.2;Git提交及目标绑定未知"
|
||||
},
|
||||
{
|
||||
"id": "impact",
|
||||
"repo": "ltdrdata/ComfyUI-Impact-Pack",
|
||||
"file": "LICENSE.txt",
|
||||
"local_file": "impact__LICENSE.txt",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.28.2/node.zip",
|
||||
"commit": "发布包SHA256:f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"package_sha256": "f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"git_commit_binding": "unknown",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"fetched_at": "2026-10-30T19:32:43.830635+00:00",
|
||||
"license_file": "impact__LICENSE.txt",
|
||||
"tag": "8.28.2",
|
||||
"applicability": "准确发布8.28.2;Git提交及目标绑定未知"
|
||||
},
|
||||
{
|
||||
"id": "impact",
|
||||
"repo": "ltdrdata/ComfyUI-Impact-Pack",
|
||||
"file": "pyproject.toml",
|
||||
"local_file": "impact__pyproject.toml",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.28.2/node.zip",
|
||||
"commit": "发布包SHA256:f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"package_sha256": "f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"git_commit_binding": "unknown",
|
||||
"sha256": "3d6fa2cbd4b687d3d514ac41f601aae9e8a2f73c71f93adb548ccb09458a9094",
|
||||
"fetched_at": "2026-10-30T19:32:43.830671+00:00",
|
||||
"license_file": "impact__LICENSE.txt",
|
||||
"tag": "8.28.2",
|
||||
"applicability": "准确发布8.28.2;Git提交及目标绑定未知"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"local_file": "core__comfy_api__latest___ui.py",
|
||||
"commit": "b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
|
||||
"tag": "v0.15.0",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/b874bd2b8c324d58cfc37bff0754dd16815a8f3c/comfy_api/latest/_ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa",
|
||||
"fetched_at": "2026-10-30T19:32:56.399023+00:00",
|
||||
"license_file": "core__LICENSE",
|
||||
"applicability": "源准确core0.15.0;目标安装未知"
|
||||
},
|
||||
{
|
||||
"id": "impact",
|
||||
"repo": "ltdrdata/ComfyUI-Impact-Pack",
|
||||
"file": "modules/impact/util_nodes.py",
|
||||
"local_file": "impact__modules__impact__util_nodes.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.28.2/node.zip",
|
||||
"commit": "发布包SHA256:f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"package_sha256": "f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"git_commit_binding": "unknown",
|
||||
"sha256": "7ca6a382fd2d5e7c563a0c9ac15918a23b84c872ef7f64248bc485c26921c710",
|
||||
"fetched_at": "2026-10-30T19:32:43.830335+00:00",
|
||||
"license_file": "impact__LICENSE.txt",
|
||||
"tag": "8.28.2",
|
||||
"applicability": "准确发布8.28.2;Git提交及目标绑定未知"
|
||||
},
|
||||
{
|
||||
"id": "impact",
|
||||
"repo": "ltdrdata/ComfyUI-Impact-Pack",
|
||||
"file": "modules/impact/core.py",
|
||||
"local_file": "impact__modules__impact__core.py",
|
||||
"url": "https://cdn.comfy.org/drltdata/comfyui-impact-pack/8.28.2/node.zip",
|
||||
"commit": "发布包SHA256:f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"package_sha256": "f907b19880b3847d3ada2f86949cc5b4bc72f9e7b0ba5fea8beaa6dad718d28e",
|
||||
"git_commit_binding": "unknown",
|
||||
"sha256": "6dc6cfc3048ae222779841eb28c61c594106293e68730003c13d72dc73f01545",
|
||||
"fetched_at": "2026-10-30T19:32:43.830335+00:00",
|
||||
"license_file": "impact__LICENSE.txt",
|
||||
"tag": "8.28.2",
|
||||
"applicability": "准确发布8.28.2;Git提交及目标绑定未知"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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/tts-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 = ["tts"]
|
||||
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,103 @@
|
||||
// Local GET-only: 33 saved positions including full history, 38 frozen summaries.
|
||||
import fs from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright');
|
||||
const out='.local-evidence/tts-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=['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===40&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===1451,'40图1451保存位置');
|
||||
check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===43,'40图43源注释');
|
||||
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_tts':'old_thirty_nine';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('被连线覆盖 4 项')&&flowText.includes('仅前端控制 3 项'),`${width}准确覆盖与前端位置计数`);
|
||||
for(const line of b.flow)check(flowText.includes(line),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`);
|
||||
if(width===1440){await fixedCard.getByText(b.flow[2],{exact:true}).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();check(text.includes(f.effect)&&text.includes(f.limits)&&text.includes(f.schema_default)&&text.includes(f.execution_note)&&text.includes(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 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==='18'&&f.field==='interval')await page.screenshot({path:`${out}/${width}-${d.id}-fixed-sources-corrected.png`});
|
||||
if(f.field==='history_text'||(f.node_id==='45'&&f.field==='system_prompt'))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,'迟到TTS响应不覆盖旧Llama摘要/33字段');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