HEL-892: add source-bound reverse-video Chinese reference document
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -15,6 +15,10 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
|
||||
|
||||
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
|
||||
DEFINITIONS = {
|
||||
(
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
|
||||
"分离-视频截取合并-图像视频放大/视频倒放.json"
|
||||
): "4d88f1a0eaae7510344402e81e837bf0df28db8dc3f808ad2af56ca47c3ed937",
|
||||
(
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
|
||||
"分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取"
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -204,10 +204,11 @@ def test_ten_documents_only_gain_overview_and_new_block_is_independent():
|
||||
"sdpose_视频人物姿势骨架提取.json",
|
||||
"openpose-video-姿态检测.json",
|
||||
"NLF_视频人物动作骨架获取.json",
|
||||
"/视频倒放.json",
|
||||
)
|
||||
)
|
||||
]
|
||||
assert len(additions) == 6
|
||||
assert len(additions) == 7
|
||||
for p in additions:
|
||||
now[p].pop("fixed_version_document")
|
||||
historical = [p for p in DEFINITIONS if p not in additions]
|
||||
|
||||
@@ -203,7 +203,7 @@ def test_graph_specific_semantics_and_companion():
|
||||
|
||||
|
||||
def test_other_documents_and_block_swaps():
|
||||
assert len(DEFINITIONS) == 17
|
||||
assert len(DEFINITIONS) == 18
|
||||
for path in DEFINITIONS:
|
||||
if path == PATH:
|
||||
continue
|
||||
|
||||
@@ -153,6 +153,8 @@ def test_real_document_and_frozen_old_thirteen_blocks():
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
old = json.loads(subprocess.check_output(["git", "show", "9dac1b4:" + resource], cwd=REPO))
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
|
||||
now[reverse].pop("fixed_version_document")
|
||||
nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json"))
|
||||
now[nlf].pop("fixed_version_document")
|
||||
openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json"))
|
||||
@@ -160,7 +162,7 @@ def test_real_document_and_frozen_old_thirteen_blocks():
|
||||
# SDPose is independently frozen against 7291887 in its own suite.
|
||||
sdpose = next(p for p in now if p.endswith("sdpose_视频人物姿势骨架提取.json"))
|
||||
now[sdpose].pop("fixed_version_document")
|
||||
assert len(now) == 156 and len(DEFINITIONS) == 17
|
||||
assert len(now) == 156 and len(DEFINITIONS) == 18
|
||||
assert len([r for r in old.values() if "fixed_version_document" in r]) == 13
|
||||
assert (
|
||||
sum(
|
||||
|
||||
@@ -171,6 +171,8 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved():
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
old = json.loads(subprocess.check_output(["git", "show", "27e6d56:" + resource], cwd=REPO))
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
|
||||
now[reverse].pop("fixed_version_document")
|
||||
nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json"))
|
||||
now[nlf].pop("fixed_version_document")
|
||||
openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json"))
|
||||
@@ -181,7 +183,7 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved():
|
||||
# Gemma addition is independently protected against 9dac1b4 in its own suite.
|
||||
gemma = next(p for p in now if p.endswith("gemma4_提示词反推(图像视频音频).json"))
|
||||
now[gemma].pop("fixed_version_document")
|
||||
assert len(DEFINITIONS) == 17
|
||||
assert len(DEFINITIONS) == 18
|
||||
assert (
|
||||
sum(
|
||||
len(r["fixed_version_document"]["fields"])
|
||||
|
||||
@@ -260,8 +260,10 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects():
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
old = json.loads(subprocess.check_output(["git", "show", "7e76510:" + resource], cwd=REPO))
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
|
||||
now[reverse].pop("fixed_version_document")
|
||||
assert now[PATH].pop("fixed_version_document") == BLOCK
|
||||
assert now == old and len(DEFINITIONS) == 17
|
||||
assert now == old and len(DEFINITIONS) == 18
|
||||
old_blocks = [
|
||||
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
|
||||
]
|
||||
@@ -272,7 +274,7 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects():
|
||||
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
for p in DEFINITIONS:
|
||||
if p == PATH:
|
||||
if p == PATH or p.endswith("/视频倒放.json"):
|
||||
continue
|
||||
r = copy.deepcopy(REVIEW)
|
||||
r["fixed_version_document"] = old[p]["fixed_version_document"]
|
||||
|
||||
@@ -202,10 +202,12 @@ def test_exact_document_topology_and_preservation():
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO))
|
||||
current = json.loads((REPO / resource).read_bytes())
|
||||
reverse = next(p for p in current if p.endswith("/视频倒放.json"))
|
||||
current[reverse].pop("fixed_version_document")
|
||||
nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json"))
|
||||
current[nlf].pop("fixed_version_document")
|
||||
assert current[PATH].pop("fixed_version_document") == BLOCK
|
||||
assert current == previous and len(DEFINITIONS) == 17
|
||||
assert current == previous and len(DEFINITIONS) == 18
|
||||
old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r]
|
||||
assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394
|
||||
assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note
|
||||
@@ -213,7 +215,7 @@ def test_exact_document_topology_and_preservation():
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
assert not doc(path="untrusted.json").get("fixed_version")
|
||||
for p in DEFINITIONS:
|
||||
if p in [PATH, nlf]:
|
||||
if p in [PATH, nlf, reverse]:
|
||||
continue
|
||||
r = copy.deepcopy(REVIEW)
|
||||
r["fixed_version_document"] = previous[p]["fixed_version_document"]
|
||||
|
||||
@@ -247,10 +247,11 @@ def test_old_nine_blocks_and_other_editorial_content_preserved():
|
||||
"sdpose_视频人物姿势骨架提取.json",
|
||||
"openpose-video-姿态检测.json",
|
||||
"NLF_视频人物动作骨架获取.json",
|
||||
"/视频倒放.json",
|
||||
)
|
||||
)
|
||||
]
|
||||
assert len(additions) == 6
|
||||
assert len(additions) == 7
|
||||
for p in additions:
|
||||
now[p].pop("fixed_version_document")
|
||||
for entry in now.values():
|
||||
|
||||
@@ -0,0 +1,271 @@
|
||||
"""Reverse source binding, all saved positions, nested history and old-seventeen preservation."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import copy
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS, canonical
|
||||
from calliope.comfyui.library import build_document
|
||||
from calliope.comfyui.source_reviews import review_for
|
||||
|
||||
REPO = Path(__file__).resolve().parents[2]
|
||||
OUT = REPO / "docs/hel-892/reverse-document-evidence"
|
||||
PATH = next(p for p in DEFINITIONS if p.endswith("/视频倒放.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("/"):
|
||||
part = part.replace("~1", "/").replace("~0", "~")
|
||||
obj = obj[int(part)] if isinstance(obj, list) else obj[part]
|
||||
return obj
|
||||
|
||||
|
||||
def set_value(obj, path, value):
|
||||
parent, _, key = path.rpartition("/")
|
||||
target = pointer(obj, parent)
|
||||
target[int(key) if isinstance(target, list) else key] = value
|
||||
|
||||
|
||||
def doc(source=None, review=None, path=PATH):
|
||||
return build_document(
|
||||
path,
|
||||
SOURCE if source is None else source,
|
||||
None,
|
||||
None,
|
||||
[],
|
||||
REVIEW if review is None else review,
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("field", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
|
||||
def test_value_pointer_json_type_and_citations(field):
|
||||
value = pointer(SOURCE, field["pointer"])
|
||||
assert canonical(value) == canonical(field["value"])
|
||||
assert type(value).__name__ == field["json_type"]
|
||||
n = pointer(SOURCE, field["pointer"].split("/widgets_values/")[0])
|
||||
assert str(n["id"]) == field["node_id"] and n["type"] == field["class_type"]
|
||||
for k in ["label", "schema_default", "unit", "limits", "effect", "execution_note", "role"]:
|
||||
assert field[k]
|
||||
for k in field["evidence"]:
|
||||
e = BLOCK["sources"][k]
|
||||
raw = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert (len(e["commit"]) == 40 and e["commit"] in e["url"]) or (
|
||||
e["commit"].startswith("发布包SHA256:") and e["git_commit_binding"] == "unknown"
|
||||
)
|
||||
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||||
|
||||
|
||||
@pytest.mark.parametrize("index", range(21))
|
||||
@pytest.mark.parametrize("kind", ["value", "type", "pointer", "citation", "role", "default"])
|
||||
def test_forged_field_even_with_recalculated_digest_rejected(index, kind):
|
||||
source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
b = review["fixed_version_document"]
|
||||
f = b["fields"][index]
|
||||
if kind in ["value", "type"]:
|
||||
set_value(source, f["pointer"], {"forged": True} if kind == "value" else "forged-type")
|
||||
f["value"] = pointer(source, f["pointer"])
|
||||
f["json_type"] = type(f["value"]).__name__
|
||||
elif kind == "citation":
|
||||
b["sources"][f["evidence"][0]]["sha256"] = "0" * 64
|
||||
else:
|
||||
f[{"default": "schema_default"}.get(kind, kind)] = "forged"
|
||||
b["canonical_sha256"] = hashlib.sha256(canonical(source)).hexdigest()
|
||||
review["caller_digest"] = hashlib.sha256(canonical(b)).hexdigest()
|
||||
d = doc(source, review)["fixed_version"]
|
||||
assert not d["matched"] and "fields" not in d
|
||||
|
||||
|
||||
def leaves(obj, path):
|
||||
if isinstance(obj, dict):
|
||||
for k, v in obj.items():
|
||||
yield from leaves(v, path + "/" + k)
|
||||
elif isinstance(obj, list):
|
||||
for i, v in enumerate(obj):
|
||||
yield from leaves(v, path + "/" + str(i))
|
||||
else:
|
||||
yield path
|
||||
|
||||
|
||||
# Includes every physical edge endpoint, source version/UE/mode, nested previews,
|
||||
# and named input/output slot properties. No plugin is imported or evaluated.
|
||||
MUTATIONS = (
|
||||
[f"/links/{i}/{j}" for i in range(4) for j in range(6)]
|
||||
+ [p for p in leaves(SOURCE["extra"], "/extra")]
|
||||
+ [f"/nodes/{i}/{key}" for i in range(4) for key in ["mode", "type"]]
|
||||
+ [
|
||||
p
|
||||
for i, n in enumerate(SOURCE["nodes"])
|
||||
for key in ["properties", "inputs", "outputs"]
|
||||
for p in leaves(n.get(key), f"/nodes/{i}/{key}")
|
||||
]
|
||||
+ [
|
||||
p
|
||||
for f in BLOCK["fields"]
|
||||
if isinstance(f["value"], dict)
|
||||
for p in leaves(f["value"], f["pointer"])
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("path", MUTATIONS)
|
||||
def test_graph_mode_version_nested_preview_slot_mutation_fails_closed(path):
|
||||
source, review = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
|
||||
set_value(source, path, "forged")
|
||||
review["fixed_version_document"]["canonical_sha256"] = hashlib.sha256(
|
||||
canonical(source)
|
||||
).hexdigest()
|
||||
review["caller_digest"] = hashlib.sha256(
|
||||
canonical(review["fixed_version_document"])
|
||||
).hexdigest()
|
||||
assert not doc(source, review)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("nid", [20, 15])
|
||||
@pytest.mark.parametrize("value", [None, {}, "missing"])
|
||||
def test_zero_lists_distinguished_from_missing_null_empty_object(nid, value):
|
||||
source = copy.deepcopy(SOURCE)
|
||||
n = next(n for n in source["nodes"] if n["id"] == nid)
|
||||
if value == "missing":
|
||||
del n["widgets_values"]
|
||||
else:
|
||||
n["widgets_values"] = value
|
||||
assert not doc(source)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"key",
|
||||
[
|
||||
"source_path",
|
||||
"source_sha1",
|
||||
"source_sha256",
|
||||
"notice",
|
||||
"user_overview",
|
||||
"versions",
|
||||
"comments",
|
||||
"flow",
|
||||
"sources",
|
||||
"counts",
|
||||
"zero_saved_nodes",
|
||||
],
|
||||
)
|
||||
def test_editorial_forgery_rejected(key):
|
||||
review = copy.deepcopy(REVIEW)
|
||||
review["fixed_version_document"][key] = "forged"
|
||||
review["caller_digest"] = hashlib.sha256(
|
||||
canonical(review["fixed_version_document"])
|
||||
).hexdigest()
|
||||
assert not doc(review=review)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
def test_exact_graph_and_original_seventeen_unchanged():
|
||||
d = doc()
|
||||
assert d["fixed_version"]["matched"]
|
||||
assert len(BLOCK["fields"]) == 21 and BLOCK["comments"] == []
|
||||
assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2
|
||||
nodes = {n["id"]: n for n in SOURCE["nodes"]}
|
||||
assert {k: len(n["widgets_values"]) for k, n in nodes.items()} == {20: 0, 21: 11, 1: 10, 15: 0}
|
||||
assert all(n["mode"] == 0 for n in nodes.values())
|
||||
assert "frontendVersion" not in SOURCE["extra"] and "definitions" not in SOURCE
|
||||
assert SOURCE["links"] == [
|
||||
[15, 1, 0, 20, 0, "IMAGE"],
|
||||
[16, 20, 0, 15, 0, "IMAGE"],
|
||||
[17, 20, 0, 21, 0, "IMAGE"],
|
||||
[18, 1, 2, 21, 1, "AUDIO"],
|
||||
]
|
||||
for eid, origin, slot, target, inp, typ in SOURCE["links"]:
|
||||
assert eid in nodes[origin]["outputs"][slot]["links"]
|
||||
assert nodes[origin]["outputs"][slot]["type"] == typ
|
||||
assert nodes[target]["inputs"][inp]["link"] == eid
|
||||
assert nodes[target]["inputs"][inp]["type"] == typ
|
||||
fields = {(f["node_id"], f["field"]): f for f in BLOCK["fields"]}
|
||||
assert fields["1", "force_rate"]["value"] == fields["21", "frame_rate"]["value"] == 16
|
||||
assert fields["1", "force_rate"]["json_type"] == "int"
|
||||
assert fields["1", "choose video to upload"]["role"] == "frontend_control"
|
||||
assert all(
|
||||
f["role"] == "frontend_history" for f in BLOCK["fields"] if f["field"] == "videopreview"
|
||||
)
|
||||
text = "".join(BLOCK["flow"])
|
||||
for token in [
|
||||
"音频link18",
|
||||
"绕过Reverse20",
|
||||
"torch.flip(images,[0])",
|
||||
"没有frontendVersion",
|
||||
"-shortest",
|
||||
"RETURN_TYPES",
|
||||
"未接",
|
||||
"历史",
|
||||
"未知",
|
||||
"内存",
|
||||
"VHS1.7.7",
|
||||
]:
|
||||
assert token in text
|
||||
assert not BLOCK["counts"]["final_prompt_constructed"]
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO))
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
assert now[PATH].pop("fixed_version_document") == BLOCK
|
||||
assert now == old and len(DEFINITIONS) == 18
|
||||
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
|
||||
assert len(blocks) == 17 and sum(len(b["fields"]) for b in blocks) == 495
|
||||
assert (
|
||||
sum(len(b.get("comments", [])) for b in blocks) == 14
|
||||
) # ASR historical note counted separately
|
||||
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
for p in DEFINITIONS:
|
||||
if p == PATH:
|
||||
continue
|
||||
r = copy.deepcopy(REVIEW)
|
||||
r["fixed_version_document"] = old[p]["fixed_version_document"]
|
||||
assert not doc(review=r)["fixed_version"]["matched"]
|
||||
assert not doc(path="untrusted.json").get("fixed_version")
|
||||
|
||||
|
||||
def test_raw_source_sha_and_missing_packages(tmp_path):
|
||||
assert review_for(PATH, "0" * 40) is None
|
||||
review = copy.deepcopy(REVIEW)
|
||||
review["source_sha"] = "0" * 40
|
||||
assert not doc(review=review)["fixed_version"]["matched"]
|
||||
import sys
|
||||
|
||||
code = (
|
||||
"import runpy,sys; from pathlib import Path; ns=r"
|
||||
"unpy.run_path('recompute.py'); ns['require_packa"
|
||||
"ges'].__globals__['REPO']=Path(sys.argv[1]); ns["
|
||||
"'require_packages']()"
|
||||
)
|
||||
r = subprocess.run(
|
||||
[sys.executable, "-c", code, str(tmp_path)], cwd=OUT, capture_output=True, text=True
|
||||
)
|
||||
assert r.returncode != 0 and "缺少wheel/sdist包产物" in r.stderr
|
||||
assert "uv build --project calliope-backend --offline" in r.stderr
|
||||
|
||||
|
||||
@pytest.mark.parametrize("nid", [1, 21])
|
||||
@pytest.mark.parametrize("value", [None, {}, [], "missing"])
|
||||
def test_history_shape_is_source_bound(nid, value):
|
||||
source = copy.deepcopy(SOURCE)
|
||||
node = next(n for n in source["nodes"] if n["id"] == nid)
|
||||
if value == "missing":
|
||||
del node["widgets_values"]["videopreview"]
|
||||
else:
|
||||
node["widgets_values"]["videopreview"] = value
|
||||
assert not doc(source)["fixed_version"]["matched"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("nid,field", [(1, "force_rate"), (21, "frame_rate")])
|
||||
def test_json_integer_rate_is_not_float(nid, field):
|
||||
source = copy.deepcopy(SOURCE)
|
||||
node = next(n for n in source["nodes"] if n["id"] == nid)
|
||||
node["widgets_values"][field] = 16.0
|
||||
assert not doc(source)["fixed_version"]["matched"]
|
||||
@@ -151,10 +151,14 @@ def test_real_document_and_frozen_old_fourteen_blocks():
|
||||
assert "fixed_version" not in doc(path="untrusted.json")
|
||||
review = copy.deepcopy(REVIEW)
|
||||
other = next(
|
||||
p for p in DEFINITIONS if p != PATH and not p.endswith("NLF_视频人物动作骨架获取.json")
|
||||
p
|
||||
for p in DEFINITIONS
|
||||
if p != PATH and not p.endswith(("NLF_视频人物动作骨架获取.json", "/视频倒放.json"))
|
||||
)
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
|
||||
now[reverse].pop("fixed_version_document")
|
||||
nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json"))
|
||||
now[nlf].pop("fixed_version_document")
|
||||
openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json"))
|
||||
@@ -162,7 +166,7 @@ def test_real_document_and_frozen_old_fourteen_blocks():
|
||||
assert not doc(review=review)["fixed_version"]["matched"]
|
||||
now[openpose].pop("fixed_version_document")
|
||||
old = json.loads(subprocess.check_output(["git", "show", "7291887:" + resource], cwd=REPO))
|
||||
assert len(now) == 156 and len(DEFINITIONS) == 17
|
||||
assert len(now) == 156 and len(DEFINITIONS) == 18
|
||||
old_blocks = [
|
||||
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
|
||||
]
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,728 @@
|
||||
{
|
||||
"base": "ab18cd31a370785b104ec5c65d1b3303215e93a5",
|
||||
"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_seventeen_blocks_unchanged": true,
|
||||
"drawer_css_unchanged": true,
|
||||
"drawer_whole_file_unchanged": true,
|
||||
"drawer_sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1",
|
||||
"conversion_rerun": false,
|
||||
"profiles_28_candidates_9_diffs_6": "unchanged"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,4 @@
|
||||
Building source distribution...
|
||||
Building wheel from source distribution...
|
||||
Successfully built calliope-backend/dist/calliope-1.5.8.tar.gz
|
||||
Successfully built calliope-backend/dist/calliope-1.5.8-py3-none-any.whl
|
||||
@@ -0,0 +1,574 @@
|
||||
"""Static Chinese editorial document; no upstream imports or media access."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
REPO = Path(__file__).resolve().parents[3]
|
||||
OUT = Path(__file__).resolve().parent
|
||||
PATHS = [
|
||||
(
|
||||
"example_ComfyUI_workflows/0-"
|
||||
"基础处理:图像合并-音频分离-视频截取合并-图像视频放大"
|
||||
"/视频倒放.json"
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
def canonical(value):
|
||||
return json.dumps(value, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
|
||||
|
||||
|
||||
def build(index=0):
|
||||
path = PATHS[index]
|
||||
raw = (REPO / path).read_bytes()
|
||||
graph = json.loads(raw)
|
||||
base = OUT.parent / "reverse-reference"
|
||||
entries = json.loads((base / "sources.json").read_bytes())["sources"]
|
||||
refs = []
|
||||
|
||||
def ref(key, file, first, last, claim):
|
||||
e = next(e for e in entries if e["id"] == key and e["file"] == file)
|
||||
data = (base / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(data).hexdigest() == e["sha256"]
|
||||
assert 1 <= first <= last <= len(data.decode().splitlines())
|
||||
refs.append(
|
||||
{
|
||||
**e,
|
||||
"local_file": "../reverse-reference/" + e["local_file"],
|
||||
"lines": [first, last],
|
||||
"claim": claim,
|
||||
}
|
||||
)
|
||||
return len(refs) - 1
|
||||
|
||||
kj = ref(
|
||||
"kj",
|
||||
"nodes/image_nodes.py",
|
||||
2205,
|
||||
2224,
|
||||
"仅torch.flip图像批次第0维;无音频输入,无保存控件",
|
||||
)
|
||||
kjreg = ref("kj", "__init__.py", 1, 110, "image_nodes导入与ReverseImageBatch注册")
|
||||
core = ref(
|
||||
"core", "nodes.py", 1561, 1630, "PreviewImage继承SaveImage、空RETURN_TYPES、临时PNG写入"
|
||||
)
|
||||
corereg = ref("core", "nodes.py", 1966, 1966, "PreviewImage真实注册")
|
||||
load = ref(
|
||||
"vhs",
|
||||
"videohelpersuite/load_video_nodes.py",
|
||||
423,
|
||||
473,
|
||||
"上传目录枚举、schema/输出槽/路径验证",
|
||||
)
|
||||
sampling = ref(
|
||||
"vhs",
|
||||
"videohelpersuite/load_video_nodes.py",
|
||||
24,
|
||||
168,
|
||||
"格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限",
|
||||
)
|
||||
loadrun = ref(
|
||||
"vhs",
|
||||
"videohelpersuite/load_video_nodes.py",
|
||||
293,
|
||||
420,
|
||||
"内存限制、VAE/格式条件、懒音频裁切及返回",
|
||||
)
|
||||
audio = ref(
|
||||
"vhs", "videohelpersuite/utils.py", 207, 252, "懒音频首次访问时ffmpeg提取;未访问不加载"
|
||||
)
|
||||
utils = ref("vhs", "videohelpersuite/utils.py", 20, 56, "BIGMAX/DIMMAX与floatOrInt类型")
|
||||
combine = ref(
|
||||
"vhs", "videohelpersuite/nodes.py", 234, 340, "合成schema、可选输入、输出目录选择"
|
||||
)
|
||||
formats = ref("vhs", "videohelpersuite/nodes.py", 45, 135, "格式动态枚举/额外控件默认/模板替换")
|
||||
combinewrite = ref(
|
||||
"vhs", "videohelpersuite/nodes.py", 340, 394, "首帧workflow PNG写入与保存目录条件"
|
||||
)
|
||||
combineloop = ref("vhs", "videohelpersuite/nodes.py", 441, 494, "pingpong/循环/FFmpeg帧率参数")
|
||||
mux = ref(
|
||||
"vhs",
|
||||
"videohelpersuite/nodes.py",
|
||||
558,
|
||||
625,
|
||||
"可用音频才混流;trim控制apad、shortest、返回历史预览",
|
||||
)
|
||||
metadata = ref(
|
||||
"vhs", "videohelpersuite/nodes.py", 140, 163, "save_metadata条件写临时元数据并交FFmpeg"
|
||||
)
|
||||
vhsreg = ref(
|
||||
"vhs", "videohelpersuite/nodes.py", 1023, 1030, "VHS_LoadVideo和VHS_VideoCombine真实注册"
|
||||
)
|
||||
vhsinit = ref("vhs", "__init__.py", 1, 9, "包注册入口与WEB_DIRECTORY")
|
||||
fmt = ref(
|
||||
"vhs", "video_formats/h264-mp4.json", 1, 15, "h264-mp4编码器/像素格式/CRF/元数据/裁切默认"
|
||||
)
|
||||
restore = ref(
|
||||
"vhs", "web/js/VHS.core.js", 41, 168, "按键恢复/回调,序列化全部控件值;不等于实际运行输入"
|
||||
)
|
||||
loadformat = ref(
|
||||
"vhs", "web/js/VHS.core.js", 648, 720, "加载format动态回调、reset条件及控件选项调整"
|
||||
)
|
||||
upload = ref(
|
||||
"vhs", "web/js/VHS.core.js", 721, 824, "上传按钮值/回调与video引用分离,不当服务端参数"
|
||||
)
|
||||
fmtjs = ref("vhs", "web/js/VHS.core.js", 1222, 1282, "合成格式回调动态重建编码控件")
|
||||
previewjs = ref(
|
||||
"vhs", "web/js/VHS.core.js", 915, 970, "历史videopreview控件状态;本轮仅纯文本,不请求媒体"
|
||||
)
|
||||
for key, file in [("kj", "LICENSE"), ("core", "LICENSE"), ("vhs", "LICENSE")]:
|
||||
e = next(e for e in entries if e["id"] == key and e["file"] == file)
|
||||
ref(
|
||||
key,
|
||||
file,
|
||||
1,
|
||||
len((base / e["local_file"]).read_text().splitlines()),
|
||||
"该准确版本许可原文,未安装或执行上游",
|
||||
)
|
||||
specs = {}
|
||||
|
||||
def spec(cls, name, label, typ, default, unit, limits, effect, evidence, role="scalar"):
|
||||
specs[cls, name] = dict(
|
||||
field=name,
|
||||
label=label,
|
||||
type=typ,
|
||||
schema_default=default,
|
||||
unit=unit,
|
||||
limits=limits,
|
||||
effect=effect,
|
||||
evidence=evidence,
|
||||
role=role,
|
||||
)
|
||||
|
||||
load_specs = [
|
||||
(
|
||||
"video",
|
||||
"输入视频文件引用",
|
||||
"COMBO",
|
||||
"input目录视频动态枚举,无固定默认",
|
||||
"文件名",
|
||||
"webm/mp4/mkv/gif/mov;实际目录列表未知",
|
||||
("保存WanVideo_InfiniteTalk_00004-audio.mp4,仅引用名;未读文件,-audio不证明有音轨。"),
|
||||
),
|
||||
(
|
||||
"force_rate",
|
||||
"强制加载采样帧率",
|
||||
"FLOAT/INT(floatOrInt)",
|
||||
"0",
|
||||
"帧/秒",
|
||||
"0~60,step1,0不强制",
|
||||
(
|
||||
"源JSON int=16;加载采样时间设为1/16,并非原片真实帧率。"
|
||||
"合成也保存16,仍不证明音画同步。"
|
||||
),
|
||||
),
|
||||
(
|
||||
"custom_width",
|
||||
"自定义加载宽度",
|
||||
"INT",
|
||||
"0",
|
||||
"像素",
|
||||
"0~8192;0不指定,受格式dim影响",
|
||||
"源0;两宽高均0先取素材尺寸,但AnimateDiff按8倍数近似对齐,不保证原尺寸或输出宽度。",
|
||||
),
|
||||
(
|
||||
"custom_height",
|
||||
"自定义加载高度",
|
||||
"INT",
|
||||
"0",
|
||||
"像素",
|
||||
"0~8192;0不指定,单边指定则按比例算另一边",
|
||||
"源0;与宽度/格式共同计算并按dim对齐;实际素材尺寸未读取。",
|
||||
),
|
||||
(
|
||||
"frame_load_cap",
|
||||
"加载帧数上限",
|
||||
"INT",
|
||||
"0",
|
||||
"帧",
|
||||
"0~2**53-1,step1;0不设此上限",
|
||||
"源0不设控件帧数上限,仍受素材、可用内存及格式约束,不是零帧或保证全片成功。",
|
||||
),
|
||||
(
|
||||
"skip_first_frames",
|
||||
"跳过起始采样帧",
|
||||
"INT",
|
||||
"0",
|
||||
"采样帧",
|
||||
"0~2**53-1,step1",
|
||||
"源0不跳过;源码按采样后的计数判定,懒音频起点为skip乘target_frame_time,不当原始帧索引。",
|
||||
),
|
||||
(
|
||||
"select_every_nth",
|
||||
"间隔抽取采样帧",
|
||||
"INT",
|
||||
"1",
|
||||
"采样间隔",
|
||||
"1~2**53-1,step1",
|
||||
"源1保留每个采样位置;大于1才间隔取帧,音频裁切时长和loaded_fps有对应计算,不反转声音。",
|
||||
),
|
||||
(
|
||||
"format",
|
||||
"加载格式约束",
|
||||
"COMBO",
|
||||
"AnimateDiff",
|
||||
"格式名",
|
||||
("内置None/AnimateDiff/Mochi/LTXV/Hunyuan/Cosmos/Wan及外部扩展;目标动态列表未知"),
|
||||
(
|
||||
"保存AnimateDiff,固定内置target_rate8、dim=(8,"
|
||||
"0,512,512),无frames约束。Python使用dim,不直接将f"
|
||||
"orce_rate改8;JS回调有条件reset,不能据此重写保存16/0/"
|
||||
"0。"
|
||||
),
|
||||
),
|
||||
]
|
||||
for name, label, typ, default, unit, limits, effect in load_specs:
|
||||
spec(
|
||||
"VHS_LoadVideo",
|
||||
name,
|
||||
label,
|
||||
typ,
|
||||
default,
|
||||
unit,
|
||||
limits,
|
||||
effect,
|
||||
[load, sampling, loadrun, audio, utils, restore, loadformat, vhsreg, vhsinit],
|
||||
)
|
||||
spec(
|
||||
"VHS_LoadVideo",
|
||||
"choose video to upload",
|
||||
"前端上传选择保存状态",
|
||||
"前端按钮状态",
|
||||
"按钮初值image",
|
||||
"前端状态",
|
||||
"不在服务端INPUT_TYPES;不等于已上传文件",
|
||||
(
|
||||
"原值image是按钮初值,options.serialize=false但包"
|
||||
"内useKVState仍遍历所有w.value保存;恢复按键时跳过butto"
|
||||
"n。与video文件名分开,不当运行输入,未点击上传或读取媒体。"
|
||||
),
|
||||
[upload, restore, load],
|
||||
"frontend_control",
|
||||
)
|
||||
combine_specs = [
|
||||
(
|
||||
"frame_rate",
|
||||
"合成播放帧率",
|
||||
"FLOAT/INT(floatOrInt)",
|
||||
"8",
|
||||
"帧/秒",
|
||||
"min1,step1,schema无max",
|
||||
(
|
||||
"源JSON int=16,无FPS外线。FFmpeg原始画面输入以此-r编码;"
|
||||
"不证明原片FPS或与直连声音同步。"
|
||||
),
|
||||
),
|
||||
(
|
||||
"loop_count",
|
||||
"合成画面循环次数",
|
||||
"INT",
|
||||
"0",
|
||||
"次数",
|
||||
"0~100,step1",
|
||||
"源0,视频分支不追加loop滤镜;不套GIF的循环语义,实际时长未知。",
|
||||
),
|
||||
(
|
||||
"filename_prefix",
|
||||
"输出文件名前缀",
|
||||
"STRING",
|
||||
"AnimateDiff",
|
||||
"相对前缀",
|
||||
"由folder_paths路径规则及计数决定;实际目录权限未知",
|
||||
"源video/ComfyUI,save_output=true时在输出目录下分配名称,非历史E盘路径绑定。",
|
||||
),
|
||||
(
|
||||
"format",
|
||||
"合成编码格式",
|
||||
"COMBO",
|
||||
"schema首项image/gif;函数缺省image/gif",
|
||||
"格式名",
|
||||
"image/gif、image/webp和动态video格式列表",
|
||||
(
|
||||
"源video/h264-mp4采用包内libx264/A"
|
||||
"AC mp4规则;动态回调产生pix_fmt/crf等额"
|
||||
"外项,不证明目标编码器存在。"
|
||||
),
|
||||
),
|
||||
(
|
||||
"pix_fmt",
|
||||
"编码像素格式",
|
||||
"COMBO",
|
||||
"首项yuv420p",
|
||||
"编码格式",
|
||||
"yuv420p/yuv420p10le",
|
||||
"源yuv420p,传给libx264的-pix_fmt,颜色变换按包内bt709滤镜,实际画质未知。",
|
||||
),
|
||||
(
|
||||
"crf",
|
||||
"H264质量控制数值",
|
||||
"INT",
|
||||
"19",
|
||||
"CRF数值",
|
||||
"schema 0~100,step1;编码器接受范围/效果仍需环境验证",
|
||||
"源19传-crf;通常调节质量/体积,但不把schema上限当目标libx264有效范围或效果承诺。",
|
||||
),
|
||||
(
|
||||
"save_metadata",
|
||||
"保存编码元数据",
|
||||
"BOOLEAN",
|
||||
"true",
|
||||
"布尔",
|
||||
"true/false;格式模板与FFmpeg分支条件",
|
||||
(
|
||||
"源true,格式模板转字符串True启用临时metadata.txt及编码元"
|
||||
"数据。首帧workflow PNG另受VHS_MetadataImage控制"
|
||||
",不能把两个开关混同。"
|
||||
),
|
||||
),
|
||||
(
|
||||
"trim_to_audio",
|
||||
"合成时按音频裁切开关",
|
||||
"BOOLEAN",
|
||||
"false",
|
||||
"布尔",
|
||||
"仅有可取waveform且走视频音频混流分支时生效",
|
||||
(
|
||||
"源false不是关闭音频;固定实现保留apad=whole_dur(画面时长"
|
||||
"+1)并用-shortest。true移除apad。音轨不存在/提取失败可能"
|
||||
"跳过混流,未验证实际同步。"
|
||||
),
|
||||
),
|
||||
(
|
||||
"pingpong",
|
||||
"合成往返帧序开关",
|
||||
"BOOLEAN",
|
||||
"false",
|
||||
"布尔",
|
||||
"true/false;视频meta_batch旁路条件另有限制",
|
||||
"源false不在合成器追加往返帧,但上游Reverse20已经倒序,不能称画面没有反向。",
|
||||
),
|
||||
(
|
||||
"save_output",
|
||||
"合成保存目录选择",
|
||||
"BOOLEAN",
|
||||
"true",
|
||||
"布尔",
|
||||
"true输出目录,false临时目录;均可能写文件",
|
||||
(
|
||||
"源true选择output目录;会产生视频并可能写首帧workflow PN"
|
||||
"G、临时元数据,有音频可另写-audio文件。当前仅GET浏览,没有图执行文"
|
||||
"件副作用。"
|
||||
),
|
||||
),
|
||||
]
|
||||
for name, label, typ, default, unit, limits, effect in combine_specs:
|
||||
spec(
|
||||
"VHS_VideoCombine",
|
||||
name,
|
||||
label,
|
||||
typ,
|
||||
default,
|
||||
unit,
|
||||
limits,
|
||||
effect,
|
||||
[combine, formats, fmt, combinewrite, combineloop, mux, metadata, fmtjs, restore],
|
||||
)
|
||||
for cls in ["VHS_LoadVideo", "VHS_VideoCombine"]:
|
||||
spec(
|
||||
cls,
|
||||
"videopreview",
|
||||
"历史视频预览完整对象",
|
||||
"前端历史状态",
|
||||
"无服务端默认",
|
||||
"结构对象",
|
||||
"嵌套值和JSON类型原样;不递归计入保存位置",
|
||||
(
|
||||
"原hidden/paused/params完整保留,仅历史缓存。DOM控件s"
|
||||
"erialize=false但包内useKVState仍保存w.value;"
|
||||
"合成缓存的E盘fullpath、16fps、workflow PNG和-au"
|
||||
"dio文件名不是当前产物/音轨证明;加载缓存同样不是实际参数执行证据。不读盘"
|
||||
"、不请求api/view或媒体。"
|
||||
),
|
||||
[previewjs, restore, mux],
|
||||
"frontend_history",
|
||||
)
|
||||
fields = []
|
||||
for i, n in enumerate(graph["nodes"]):
|
||||
values = n["widgets_values"]
|
||||
assert isinstance(values, dict) or values == []
|
||||
for name, value in values.items() if isinstance(values, dict) else []:
|
||||
fields.append(
|
||||
{
|
||||
**specs[n["type"], name],
|
||||
"node_id": str(n["id"]),
|
||||
"definition_node_id": str(n["id"]),
|
||||
"class_type": n["type"],
|
||||
"scope": "root",
|
||||
"pointer": f"/nodes/{i}/widgets_values/{name}",
|
||||
"value": value,
|
||||
"json_type": type(value).__name__,
|
||||
"execution_note": (
|
||||
"源mode0;UE7.5.1空映射不证明无改写,目标安装"
|
||||
"/钩子次序/动态选项未知;保存类型与schema类型分列"
|
||||
",未构造prompt/实跑。"
|
||||
),
|
||||
}
|
||||
)
|
||||
assert len(fields) == 21
|
||||
overview = (
|
||||
"这张图用于把视频画面倒序:加载画面经过倒序节点后分到预览和视频合成,音频则从"
|
||||
"加载器直接进入合成器,没有声音倒序节点。两处保存16fps不保证原片帧率或音"
|
||||
"画同步;两份预览只是历史缓存。准确版本仅作参考,前端版本未声明、UE与目标环"
|
||||
"境未知,未实跑、转换仍关闭。"
|
||||
)
|
||||
flow = [
|
||||
(
|
||||
"4节点/4物理边/全部mode0,无子图和源注释。21顶层保存位置=19标量"
|
||||
"(含上传状态)+2完整videopreview历史对象;Reverse20与"
|
||||
"Preview15均widgets_values=[]零位置,不是缺键/nu"
|
||||
"ll/{}。旧17图495+15保持,本图0新注释。"
|
||||
),
|
||||
(
|
||||
"画面主链link15:Load1槽0 IMAGE→Reverse20.ima"
|
||||
"ges;link16:Reverse20槽0 IMAGE→Preview15"
|
||||
".images;link17:Reverse20槽0 IMAGE→Combi"
|
||||
"ne21.images。固定KJ仅torch.flip(images,[0]"
|
||||
")反转批次第0维,不倒转像素左右,也没有音频处理。"
|
||||
),
|
||||
(
|
||||
"音频link18:Load1槽2 AUDIO→Combine21.audio"
|
||||
",绕过Reverse20。声音直连而非倒放;只有懒waveform取值成功才"
|
||||
"进入混流。加载器按skip/采样时间和cap裁切音频,源cap0时durat"
|
||||
"ion0不加-t;-audio文件名不保证真实音轨存在。"
|
||||
),
|
||||
(
|
||||
"Load.force_rate与Combine.frame_rate源均in"
|
||||
"t16,无FPS外线;前者采样、后者合成播放率,不能证明原片帧率、同步、节奏"
|
||||
"或成功输出。加载宽高0仍可能按AnimateDiff dim8对齐,cap0"
|
||||
"仍受内存和素材限制;nth1/skip0按固定实现解释。"
|
||||
),
|
||||
(
|
||||
"两节点meta_batch/vae均未接;Load.frame_count."
|
||||
"links=[]、video_info.links=null不当有线。Com"
|
||||
"bine的VHS_FILENAMES.links=null未接;Previe"
|
||||
"wImage继承空RETURN_TYPES,仅ui.images临时PNG预"
|
||||
"览,无服务端图像出口。"
|
||||
),
|
||||
(
|
||||
"准确VHS1.7.7包的Python格式表与JS恢复分开:useKVStat"
|
||||
"e按键赋值并调用回调,format回调可能重建编码控件;加载format的r"
|
||||
"eset条件也可能改值。本图没有frontendVersion,不写按源声明"
|
||||
";不借目标未知UE钩子次序断言最终prompt值。"
|
||||
),
|
||||
(
|
||||
"Combine保存h264-mp4/yuv420p/crf19、loop0、"
|
||||
"元数据true、trimfalse、pingpongfalse、save_o"
|
||||
"utput=true。false裁切保留apad并-shortest,不关闭"
|
||||
"音频;false往返也不否定上游已倒序。"
|
||||
),
|
||||
(
|
||||
"本图无模型节点,不编模型依赖。实际执行可读媒体/调用ffmpeg/libx2"
|
||||
"64/AAC、写正式视频、首帧PNG/临时元数据及PreviewImage临"
|
||||
"时PNG。只读详情浏览不执行这些操作。目标媒体/依赖/编码器/目录权限/安装"
|
||||
"与效果未知。"
|
||||
),
|
||||
(
|
||||
"两个历史预览对象仅纯文本:E盘旧fullpath、缓存16fps、workf"
|
||||
"low PNG/-audio文件名与隐藏/暂停状态不证明当前文件、音轨或产物"
|
||||
",不读取源媒体、文件、不请求api/view;嵌套逐项列于下方但不重复计位置"
|
||||
"。"
|
||||
),
|
||||
]
|
||||
flow += ["源物理边:" + json.dumps(e, ensure_ascii=False) for e in graph["links"]]
|
||||
flow += [
|
||||
f"节点{n['id']} {n['type']} mode={n['mode']};"
|
||||
f"保存位置={len(n['widgets_values'])};原properties="
|
||||
+ json.dumps(n["properties"], ensure_ascii=False)
|
||||
for n in graph["nodes"]
|
||||
]
|
||||
|
||||
def leaves(obj, pointer):
|
||||
if isinstance(obj, dict):
|
||||
for key, value in obj.items():
|
||||
yield from leaves(value, pointer + "/" + key)
|
||||
else:
|
||||
yield pointer, obj
|
||||
|
||||
for f in fields:
|
||||
if f["role"] == "frontend_history":
|
||||
flow += [
|
||||
f"历史嵌套(不另计){p} [{type(v).__name__}]=" + json.dumps(v, ensure_ascii=False)
|
||||
for p, v in leaves(f["value"], f["pointer"])
|
||||
]
|
||||
identity = json.loads((base / "identity.json").read_bytes())
|
||||
versions = [
|
||||
f"{e['id']}准确来源:"
|
||||
+ e.get("commit", "registry1.7.7包SHA256:" + e.get("package_sha256", ""))
|
||||
+ ";不是目标安装证明"
|
||||
for e in identity
|
||||
]
|
||||
versions += [
|
||||
(
|
||||
"VHS发布包Git提交绑定未知,不用1.7.9或其他commit补证;本图无"
|
||||
"frontendVersion,前端恢复只引用包自带JS,不假设目标前端版本"
|
||||
"。"
|
||||
),
|
||||
"四节点UE7.5.1且空映射;身份/钩子次序/动态选项未知,不等于无改写。",
|
||||
]
|
||||
return dict(
|
||||
source_path=path,
|
||||
source_sha1=hashlib.sha1(raw).hexdigest(),
|
||||
source_sha256=hashlib.sha256(raw).hexdigest(),
|
||||
canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),
|
||||
notice="固定版本参考;画面倒序、音频直连,历史预览非实跑;前端版本未声明,目标环境与UE未知,转换保持关闭。",
|
||||
user_overview=overview,
|
||||
versions=versions,
|
||||
counts=dict(
|
||||
saved_fields=21,
|
||||
scalar_saved_positions=19,
|
||||
history_objects=2,
|
||||
source_nodes=4,
|
||||
physical_edges=4,
|
||||
source_notes=0,
|
||||
linked_saved_fields=0,
|
||||
frontend_only=3,
|
||||
final_scalars=0,
|
||||
final_prompt_constructed=False,
|
||||
),
|
||||
fields=fields,
|
||||
sources=refs,
|
||||
comments=[],
|
||||
flow=flow,
|
||||
flow_evidence=list(range(len(refs))),
|
||||
zero_saved_nodes=[
|
||||
dict(
|
||||
node_id="20",
|
||||
class_type="ReverseImageBatch",
|
||||
evidence=[kj, kjreg],
|
||||
effect="widgets_values=[];仅images输入,torch.flip第0维倒序;无音频输入或控件。",
|
||||
),
|
||||
dict(
|
||||
node_id="15",
|
||||
class_type="PreviewImage",
|
||||
evidence=[core, corereg],
|
||||
effect=(
|
||||
"widgets_values=[];只images和hi"
|
||||
"dden输入,继承空RETURN_TYPES及临时PNG"
|
||||
"预览,未运行写图。"
|
||||
),
|
||||
),
|
||||
],
|
||||
steps=[
|
||||
overview,
|
||||
"先核视频可用性和四节点精确安装;本轮只看文本,不上传、不读素材,不调用执行入口。",
|
||||
"核采样与合成帧率、音频直连、裁切/往返/保存目录条件;真实同步与输出必须另行实跑。",
|
||||
"保持停用、未检查、未定稿/未实跑,编码器、UE、媒体和目标目录未知。",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(json.dumps(build(), ensure_ascii=False, indent=2))
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,139 @@
|
||||
"""Fetch fixed source text and registry archive; never import upstream code."""
|
||||
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
import subprocess
|
||||
import urllib.request
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parent.parent / "reverse-reference"
|
||||
FILES = {
|
||||
"kj": (
|
||||
"kijai/ComfyUI-KJNodes",
|
||||
"c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
["LICENSE", "__init__.py", "nodes/image_nodes.py", "pyproject.toml"],
|
||||
),
|
||||
"core": ("Comfy-Org/ComfyUI", "v0.3.75", ["LICENSE", "nodes.py"]),
|
||||
}
|
||||
|
||||
VHS = [
|
||||
"LICENSE",
|
||||
"__init__.py",
|
||||
"pyproject.toml",
|
||||
"videohelpersuite/nodes.py",
|
||||
"videohelpersuite/load_video_nodes.py",
|
||||
"videohelpersuite/utils.py",
|
||||
"video_formats/h264-mp4.json",
|
||||
"web/js/VHS.core.js",
|
||||
"web/js/videoinfo.js",
|
||||
]
|
||||
|
||||
|
||||
def get(url):
|
||||
return urllib.request.urlopen(
|
||||
urllib.request.Request(url, headers={"User-Agent": "static-reference"}), timeout=30
|
||||
).read()
|
||||
|
||||
|
||||
def main():
|
||||
OUT.mkdir(exist_ok=True)
|
||||
sources, identities = [], []
|
||||
for key, (repo, revision, files) in FILES.items():
|
||||
if revision.startswith("v"):
|
||||
raw = subprocess.check_output(
|
||||
[
|
||||
"git",
|
||||
"ls-remote",
|
||||
"https://github.com/" + repo + ".git",
|
||||
"refs/tags/" + revision,
|
||||
],
|
||||
timeout=45,
|
||||
)
|
||||
commit = raw.decode().split()[0]
|
||||
(OUT / (key + "-tag.txt")).write_bytes(raw)
|
||||
else:
|
||||
commit = revision
|
||||
url = f"https://github.com/{repo}/commit/{commit}.patch"
|
||||
raw = get(url)
|
||||
assert b"diff --git" in raw
|
||||
(OUT / (key + "-commit.patch")).write_bytes(raw)
|
||||
identities.append(
|
||||
dict(repo=repo, id=key, revision=revision, commit=commit, installed=False)
|
||||
)
|
||||
for file in files:
|
||||
url = f"https://raw.githubusercontent.com/{repo}/{commit}/{file}"
|
||||
raw = get(url)
|
||||
local = key + "__" + file.replace("/", "__")
|
||||
(OUT / local).write_bytes(raw)
|
||||
sources.append(
|
||||
dict(
|
||||
id=key,
|
||||
file=file,
|
||||
local_file=local,
|
||||
url=url,
|
||||
commit=commit,
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
)
|
||||
)
|
||||
url = "https://api.comfy.org/nodes/comfyui-videohelpersuite/versions/1.7.7"
|
||||
raw = get(url)
|
||||
(OUT / "vhs-registry.json").write_bytes(raw)
|
||||
release = json.loads(raw)
|
||||
raw = get(release["downloadUrl"])
|
||||
(OUT / "vhs-1.7.7.zip").write_bytes(raw)
|
||||
sha = hashlib.sha256(raw).hexdigest()
|
||||
with zipfile.ZipFile(io.BytesIO(raw)) as z:
|
||||
members = [
|
||||
dict(file=n, sha256=hashlib.sha256(z.read(n)).hexdigest())
|
||||
for n in z.namelist()
|
||||
if not n.endswith("/")
|
||||
]
|
||||
for file in VHS:
|
||||
raw = z.read(file)
|
||||
local = "vhs__" + file.replace("/", "__")
|
||||
(OUT / local).write_bytes(raw)
|
||||
sources.append(
|
||||
dict(
|
||||
id="vhs",
|
||||
file=file,
|
||||
local_file=local,
|
||||
url=release["downloadUrl"],
|
||||
commit="发布包SHA256:" + sha,
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
git_commit_binding="unknown",
|
||||
)
|
||||
)
|
||||
(OUT / "vhs-package-index.json").write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
url=release["downloadUrl"],
|
||||
sha256=sha,
|
||||
members=members,
|
||||
git_commit_binding="unknown",
|
||||
note="发布包同字节不等于提交绑定",
|
||||
),
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
identities.append(
|
||||
dict(
|
||||
id="vhs",
|
||||
version="1.7.7",
|
||||
package_sha256=sha,
|
||||
git_commit_binding="unknown",
|
||||
installed=False,
|
||||
)
|
||||
)
|
||||
(OUT / "sources.json").write_text(
|
||||
json.dumps(dict(sources=sources), ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
(OUT / "identity.json").write_text(json.dumps(identities, ensure_ascii=False, indent=2) + "\n")
|
||||
print("Fixed KJ, core0.3.75 and VHS1.7.7 package source text only")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,386 @@
|
||||
[
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "kj",
|
||||
"file": "nodes/image_nodes.py",
|
||||
"local_file": "../reverse-reference/kj__nodes__image_nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/c661baadd9683c0033cd2a6ad90157c6d099a6c2/nodes/image_nodes.py",
|
||||
"commit": "c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
"sha256": "1b8f83356f515e0efef20daa2c82c095503133ef84f1931782b43d176ec92609",
|
||||
"lines": [
|
||||
2205,
|
||||
2224
|
||||
],
|
||||
"claim": "仅torch.flip图像批次第0维;无音频输入,无保存控件"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "kj",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../reverse-reference/kj____init__.py",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/c661baadd9683c0033cd2a6ad90157c6d099a6c2/__init__.py",
|
||||
"commit": "c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
"sha256": "43852013e532d868d7e3b5ca5ba5bb2e6697d7333f2ade4a4cbab517b976adc6",
|
||||
"lines": [
|
||||
1,
|
||||
110
|
||||
],
|
||||
"claim": "image_nodes导入与ReverseImageBatch注册"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../reverse-reference/core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a/nodes.py",
|
||||
"commit": "8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a",
|
||||
"sha256": "c922eb57ed906a6fad7832c2fcb259b4f06533fc6dce7927b3e1d87e078f34cc",
|
||||
"lines": [
|
||||
1561,
|
||||
1630
|
||||
],
|
||||
"claim": "PreviewImage继承SaveImage、空RETURN_TYPES、临时PNG写入"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "../reverse-reference/core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a/nodes.py",
|
||||
"commit": "8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a",
|
||||
"sha256": "c922eb57ed906a6fad7832c2fcb259b4f06533fc6dce7927b3e1d87e078f34cc",
|
||||
"lines": [
|
||||
1966,
|
||||
1966
|
||||
],
|
||||
"claim": "PreviewImage真实注册"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/load_video_nodes.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
423,
|
||||
473
|
||||
],
|
||||
"claim": "上传目录枚举、schema/输出槽/路径验证"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/load_video_nodes.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
24,
|
||||
168
|
||||
],
|
||||
"claim": "格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/load_video_nodes.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
293,
|
||||
420
|
||||
],
|
||||
"claim": "内存限制、VAE/格式条件、懒音频裁切及返回"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/utils.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__utils.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
207,
|
||||
252
|
||||
],
|
||||
"claim": "懒音频首次访问时ffmpeg提取;未访问不加载"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/utils.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__utils.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
20,
|
||||
56
|
||||
],
|
||||
"claim": "BIGMAX/DIMMAX与floatOrInt类型"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/nodes.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
234,
|
||||
340
|
||||
],
|
||||
"claim": "合成schema、可选输入、输出目录选择"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/nodes.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
45,
|
||||
135
|
||||
],
|
||||
"claim": "格式动态枚举/额外控件默认/模板替换"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/nodes.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
340,
|
||||
394
|
||||
],
|
||||
"claim": "首帧workflow PNG写入与保存目录条件"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/nodes.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
441,
|
||||
494
|
||||
],
|
||||
"claim": "pingpong/循环/FFmpeg帧率参数"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/nodes.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
558,
|
||||
625
|
||||
],
|
||||
"claim": "可用音频才混流;trim控制apad、shortest、返回历史预览"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/nodes.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
140,
|
||||
163
|
||||
],
|
||||
"claim": "save_metadata条件写临时元数据并交FFmpeg"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/nodes.py",
|
||||
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
1023,
|
||||
1030
|
||||
],
|
||||
"claim": "VHS_LoadVideo和VHS_VideoCombine真实注册"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../reverse-reference/vhs____init__.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
1,
|
||||
9
|
||||
],
|
||||
"claim": "包注册入口与WEB_DIRECTORY"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "video_formats/h264-mp4.json",
|
||||
"local_file": "../reverse-reference/vhs__video_formats__h264-mp4.json",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
1,
|
||||
15
|
||||
],
|
||||
"claim": "h264-mp4编码器/像素格式/CRF/元数据/裁切默认"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "web/js/VHS.core.js",
|
||||
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
41,
|
||||
168
|
||||
],
|
||||
"claim": "按键恢复/回调,序列化全部控件值;不等于实际运行输入"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "web/js/VHS.core.js",
|
||||
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
648,
|
||||
720
|
||||
],
|
||||
"claim": "加载format动态回调、reset条件及控件选项调整"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "web/js/VHS.core.js",
|
||||
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
721,
|
||||
824
|
||||
],
|
||||
"claim": "上传按钮值/回调与video引用分离,不当服务端参数"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "web/js/VHS.core.js",
|
||||
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
1222,
|
||||
1282
|
||||
],
|
||||
"claim": "合成格式回调动态重建编码控件"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "web/js/VHS.core.js",
|
||||
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
915,
|
||||
970
|
||||
],
|
||||
"claim": "历史videopreview控件状态;本轮仅纯文本,不请求媒体"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "kj",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../reverse-reference/kj__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/c661baadd9683c0033cd2a6ad90157c6d099a6c2/LICENSE",
|
||||
"commit": "c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "该准确版本许可原文,未安装或执行上游"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "core",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../reverse-reference/core__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a/LICENSE",
|
||||
"commit": "8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "该准确版本许可原文,未安装或执行上游"
|
||||
},
|
||||
{
|
||||
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"id": "vhs",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../reverse-reference/vhs__LICENSE",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_commit_binding": "unknown",
|
||||
"lines": [
|
||||
1,
|
||||
674
|
||||
],
|
||||
"claim": "该准确版本许可原文,未安装或执行上游"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
1 file reformatted, 20 files left unchanged
|
||||
@@ -0,0 +1 @@
|
||||
18 files already formatted
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"base": "ab18cd31a370785b104ec5c65d1b3303215e93a5",
|
||||
"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": 21,
|
||||
"new_notes": 0,
|
||||
"old_saved": 495,
|
||||
"old_notes": 15,
|
||||
"overviews": 18,
|
||||
"all_disabled": true,
|
||||
"doc_done": 0,
|
||||
"executed": 0
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
All checks passed!
|
||||
@@ -0,0 +1,23 @@
|
||||
[
|
||||
{
|
||||
"file": "fixed_document.py",
|
||||
"sha256": "41b383532b9407f644ebdd93fd538f2950d9580395f0bc554a1c9f281facab87",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 18
|
||||
},
|
||||
{
|
||||
"file": "source_reviews.json",
|
||||
"sha256": "ade5946074540c0f46d28e6ab559380cf5d1d896c7eac583ded89cbe7aa03e42",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 18
|
||||
},
|
||||
{
|
||||
"file": "library.py",
|
||||
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
|
||||
"wheel": true,
|
||||
"sdist": true,
|
||||
"definitions": 18
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json": "4d88f1a0eaae7510344402e81e837bf0df28db8dc3f808ad2af56ca47c3ed937"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"number": 25,
|
||||
"title": "WIP: HEL-892 离线全量工作流库与后台兼容框架",
|
||||
"state": "open",
|
||||
"merged": false,
|
||||
"head_ref": "agent/agent/a64a969a6a44",
|
||||
"head_sha": "ab18cd31a370785b104ec5c65d1b3303215e93a5",
|
||||
"base_ref": "main",
|
||||
"base_sha": "1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532"
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
"""Add one reviewed definition; preserve every other review object exactly."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
|
||||
from build_definition import OUT, PATHS, REPO, build, canonical
|
||||
|
||||
BASE = "ab18cd31a370785b104ec5c65d1b3303215e93a5"
|
||||
RESOURCE = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
|
||||
|
||||
def build_all():
|
||||
previous = json.loads(subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO))
|
||||
reviews = json.loads(json.dumps(previous, ensure_ascii=False))
|
||||
for i, path in enumerate(PATHS):
|
||||
block = build(i)
|
||||
assert reviews[path]["source_sha"] == block["source_sha1"]
|
||||
assert "fixed_version_document" not in previous[path]
|
||||
reviews[path]["fixed_version_document"] = block
|
||||
return reviews, previous
|
||||
|
||||
|
||||
def main():
|
||||
current = json.loads((REPO / RESOURCE).read_bytes())
|
||||
reviews, previous = build_all()
|
||||
(REPO / RESOURCE).write_text(json.dumps(reviews, ensure_ascii=False, indent=2) + "\n")
|
||||
pins = {}
|
||||
for i, path in enumerate(PATHS):
|
||||
block = reviews[path]["fixed_version_document"]
|
||||
pins[path] = hashlib.sha256(canonical(block)).hexdigest()
|
||||
(OUT / f"definition-{i}.json").write_text(
|
||||
json.dumps(block, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
# Explicit maintenance of the code-owned allowlist, never trust runtime caller digests.
|
||||
module = REPO / "calliope-backend/src/calliope/comfyui/fixed_document.py"
|
||||
text = module.read_text()
|
||||
for path, digest in pins.items():
|
||||
old_block = current[path].get("fixed_version_document")
|
||||
old_digest = hashlib.sha256(canonical(old_block)).hexdigest() if old_block else None
|
||||
if old_digest and old_digest in text:
|
||||
text = text.replace(old_digest, digest)
|
||||
elif digest in text:
|
||||
pass
|
||||
else:
|
||||
text = text.replace(
|
||||
"DEFINITIONS = {",
|
||||
"DEFINITIONS = {\n (\n"
|
||||
+ "".join(
|
||||
" " + repr(path[i : i + 40]) + "\n" for i in range(0, len(path), 40)
|
||||
)
|
||||
+ " ): "
|
||||
+ repr(digest)
|
||||
+ ",",
|
||||
)
|
||||
module.write_text(text)
|
||||
(OUT / "pins.json").write_text(json.dumps(pins, ensure_ascii=False, indent=2) + "\n")
|
||||
print("PASS one definition; other 155 reviews and old 17 blocks unchanged")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,369 @@
|
||||
"""Actual ab18cd3 database upgrade, one-row protection/rollback, frozen boundaries and packages."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import sqlite3
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import tempfile
|
||||
import zipfile
|
||||
from pathlib import Path
|
||||
|
||||
from build_definition import OUT, PATHS, REPO, canonical
|
||||
from rebuild import BASE, RESOURCE, build_all
|
||||
|
||||
sys.path.insert(0, str(REPO / "calliope-backend"))
|
||||
|
||||
|
||||
def write(name, value):
|
||||
(OUT / name).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n")
|
||||
|
||||
|
||||
def require_packages():
|
||||
dist = REPO / "calliope-backend/dist"
|
||||
w = sorted(dist.glob("*.whl"))
|
||||
s = sorted(dist.glob("*.tar.gz"))
|
||||
if not w or not s:
|
||||
raise SystemExit(
|
||||
(
|
||||
"缺少wheel/sdist包产物,请先在仓库根执行:"
|
||||
"uv build --project calliop"
|
||||
"e-backend --offline"
|
||||
)
|
||||
)
|
||||
return w[-1], s[-1]
|
||||
|
||||
|
||||
def main():
|
||||
from calliope.comfyui.fixed_document import DEFINITIONS
|
||||
from calliope.comfyui.library import rollback_batch
|
||||
from scripts.audit_library_documents import audit
|
||||
|
||||
wheels, sdists = require_packages()
|
||||
reference = OUT.parent / "reverse-reference"
|
||||
source_records = json.loads((reference / "sources.json").read_bytes())["sources"]
|
||||
for e in source_records:
|
||||
raw = (reference / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||||
assert len(e["commit"]) == 40 or e["commit"].startswith("发布包SHA256:")
|
||||
package = json.loads((reference / "vhs-package-index.json").read_bytes())
|
||||
archive = (reference / "vhs-1.7.7.zip").read_bytes()
|
||||
assert hashlib.sha256(archive).hexdigest() == package["sha256"]
|
||||
with zipfile.ZipFile(io.BytesIO(archive)) as z:
|
||||
for e in package["members"]:
|
||||
assert hashlib.sha256(z.read(e["file"])).hexdigest() == e["sha256"]
|
||||
for e in source_records:
|
||||
if e["id"] == "vhs":
|
||||
assert z.read(e["file"]) == (reference / e["local_file"]).read_bytes()
|
||||
assert (reference / "core-tag.txt").read_text().split() == [
|
||||
"8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a",
|
||||
"refs/tags/v0.3.75",
|
||||
]
|
||||
write(
|
||||
"source-check.json",
|
||||
dict(
|
||||
fixed_originals=len(source_records),
|
||||
checked_sha256=True,
|
||||
package_sha256=package["sha256"],
|
||||
package_members=len(package["members"]),
|
||||
git_commit_binding="unknown",
|
||||
frontend_not_declared=True,
|
||||
imported_upstream=False,
|
||||
target_installation=False,
|
||||
local_file_base="docs/hel-892/reverse-reference",
|
||||
),
|
||||
)
|
||||
graph_raw = (REPO / PATHS[0]).read_bytes()
|
||||
graph = json.loads(graph_raw)
|
||||
nodes = graph["nodes"]
|
||||
assert len(nodes) == 4 and len(graph["links"]) == 4
|
||||
assert "definitions" not in graph and "frontendVersion" not in graph["extra"]
|
||||
assert sum(len(n["widgets_values"]) for n in nodes) == 21
|
||||
by_id = {n["id"]: n for n in nodes}
|
||||
assert all(n["mode"] == 0 for n in nodes)
|
||||
assert by_id[20]["widgets_values"] == by_id[15]["widgets_values"] == []
|
||||
assert graph["links"] == [
|
||||
[15, 1, 0, 20, 0, "IMAGE"],
|
||||
[16, 20, 0, 15, 0, "IMAGE"],
|
||||
[17, 20, 0, 21, 0, "IMAGE"],
|
||||
[18, 1, 2, 21, 1, "AUDIO"],
|
||||
]
|
||||
for eid, origin, slot, target, inp, typ in graph["links"]:
|
||||
assert eid in by_id[origin]["outputs"][slot]["links"]
|
||||
assert by_id[origin]["outputs"][slot]["type"] == typ
|
||||
assert by_id[target]["inputs"][inp]["link"] == eid
|
||||
assert by_id[target]["inputs"][inp]["type"] == typ
|
||||
write(
|
||||
"source-graph.json",
|
||||
dict(
|
||||
source_path=PATHS[0],
|
||||
raw_sha256=hashlib.sha256(graph_raw).hexdigest(),
|
||||
canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),
|
||||
nodes=nodes,
|
||||
links=graph["links"],
|
||||
no_subgraphs=True,
|
||||
saved_fields=21,
|
||||
scalar_positions=19,
|
||||
history_objects=2,
|
||||
notes=0,
|
||||
extra_sha256=hashlib.sha256(canonical(graph["extra"])).hexdigest(),
|
||||
),
|
||||
)
|
||||
|
||||
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) == 17
|
||||
assert all(rebuilt[p]["fixed_version_document"] == b for p, b in old_blocks.items())
|
||||
write(
|
||||
"review-delta.json",
|
||||
dict(
|
||||
base=BASE,
|
||||
changed_paths=PATHS,
|
||||
other_reviews_unchanged=len(previous) - 1,
|
||||
old_blocks_unchanged=17,
|
||||
old_saved=495,
|
||||
old_notes=15,
|
||||
new_saved=21,
|
||||
new_notes=0,
|
||||
total_documents=18,
|
||||
total_saved=516,
|
||||
total_notes=15,
|
||||
),
|
||||
)
|
||||
for p, d in DEFINITIONS.items():
|
||||
assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
work = Path(directory)
|
||||
old = work / "old"
|
||||
old.mkdir()
|
||||
data = subprocess.check_output(["git", "archive", BASE, "calliope-backend/src"], cwd=REPO)
|
||||
with tarfile.open(fileobj=io.BytesIO(data)) as a:
|
||||
a.extractall(old, filter="data")
|
||||
db = work / "library.db"
|
||||
|
||||
def run(name, historical=False):
|
||||
out = work / name
|
||||
env = {
|
||||
**os.environ,
|
||||
"PYTHONPATH": str((old if historical else REPO) / "calliope-backend/src"),
|
||||
}
|
||||
subprocess.run(
|
||||
[
|
||||
sys.executable,
|
||||
"-m",
|
||||
"calliope.comfyui.library_cli",
|
||||
"import",
|
||||
"--root",
|
||||
str(REPO / "example_ComfyUI_workflows"),
|
||||
"--db",
|
||||
str(db),
|
||||
"--source-commit",
|
||||
BASE,
|
||||
"--companions",
|
||||
str(REPO / "docs/hel-892/supplied-api/manifest.json"),
|
||||
"--output-dir",
|
||||
str(out),
|
||||
],
|
||||
cwd=REPO,
|
||||
env=env,
|
||||
check=True,
|
||||
stdout=subprocess.DEVNULL,
|
||||
)
|
||||
return json.loads((out / "import_report.json").read_bytes()), out
|
||||
|
||||
def rows():
|
||||
with sqlite3.connect(db) as c:
|
||||
c.row_factory = sqlite3.Row
|
||||
return {
|
||||
r["source_repo_path"]: dict(r) for r in c.execute("SELECT * FROM workflows")
|
||||
}
|
||||
|
||||
first, _ = run("historical", True)
|
||||
before = rows()
|
||||
assert first["counts"] == {"imported": 155, "user_excluded": 1}
|
||||
assert all("fixed_version" not in json.loads(before[p]["doc_json"]) for p in PATHS)
|
||||
assert all(
|
||||
json.loads(before[p]["doc_json"])["fixed_version"]["matched"]
|
||||
for p in DEFINITIONS
|
||||
if p not in PATHS
|
||||
)
|
||||
original = db
|
||||
protected = []
|
||||
|
||||
def protect(name):
|
||||
nonlocal db
|
||||
db = work / (name + ".db")
|
||||
with sqlite3.connect(original) as src, sqlite3.connect(db) as dst:
|
||||
src.backup(dst)
|
||||
for p in PATHS:
|
||||
dst.execute(
|
||||
"UPDATE workflows SET description=? WHERE source_repo_path=?",
|
||||
(name, p),
|
||||
)
|
||||
snapshot = rows()
|
||||
r, _ = run(name)
|
||||
assert r["counts"] == {"conflict": 1, "skipped": 154, "user_excluded": 1}
|
||||
assert rows() == snapshot and all(len(snapshot[p]) == 29 for p in PATHS)
|
||||
protected.append(dict(phase=name, counts=r["counts"], whole_rows=1, columns=29))
|
||||
db = original
|
||||
|
||||
protect("user-before")
|
||||
upgrade, exported = run("upgrade")
|
||||
after = rows()
|
||||
assert upgrade["counts"] == {"updated": 1, "skipped": 154, "user_excluded": 1}
|
||||
for p, row in after.items():
|
||||
if p not in PATHS:
|
||||
assert row == before[p]
|
||||
continue
|
||||
assert len(row) == 29
|
||||
assert all(
|
||||
row[k] == before[p][k]
|
||||
for k in row.keys() - {"doc_json", "batch_id", "imported_at", "library_fingerprint"}
|
||||
)
|
||||
d = json.loads(row["doc_json"])
|
||||
assert d["fixed_version"]["matched"]
|
||||
old_doc = json.loads(before[p]["doc_json"])
|
||||
without = dict(d)
|
||||
fixed = without.pop("fixed_version")
|
||||
assert without["steps"] == old_doc["steps"][:-3] + fixed["steps"]
|
||||
without["steps"] = old_doc["steps"]
|
||||
assert without.pop("source_review_sha") != old_doc.pop("source_review_sha")
|
||||
assert without == old_doc
|
||||
write("actual-" + Path(p).stem + ".json", d)
|
||||
repeat, _ = run("repeat")
|
||||
assert repeat["counts"] == {"skipped": 155, "user_excluded": 1}
|
||||
with sqlite3.connect(db) as c:
|
||||
c.row_factory = sqlite3.Row
|
||||
r = rollback_batch(c, upgrade["batch_id"])
|
||||
assert len(r["files"]) == 1 and all(f["result"] == "restored" for f in r["files"])
|
||||
assert rows() == before
|
||||
redo, _ = run("redo")
|
||||
assert redo["counts"] == upgrade["counts"]
|
||||
protect("user-after")
|
||||
db = work / "fresh.db"
|
||||
fresh, exported = run("fresh")
|
||||
fresh_repeat, _ = run("fresh-repeat")
|
||||
assert fresh["counts"] == first["counts"] and fresh_repeat["counts"] == repeat["counts"]
|
||||
assert fresh["states"] == {"pending_check": 16, "needs_conversion": 139}
|
||||
companion = 0
|
||||
for row in rows().values():
|
||||
d = json.loads(row["doc_json"])
|
||||
companion += sum(p.get("value_origin") == "supplied_api_companion" for p in d["params"])
|
||||
assert (
|
||||
not row["is_enabled"]
|
||||
and row["doc_completed_at"] is None
|
||||
and row["exec_verified_at"] is None
|
||||
)
|
||||
assert not d["status"]["doc_done"] and not d["status"]["exec_verified"]
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
report = audit(REPO, exported)
|
||||
assert (
|
||||
report["named_values_preserved"] == 1217
|
||||
and report["unnamed_widget_nodes"] == 3660
|
||||
and companion == 294
|
||||
)
|
||||
assert report["full_documents_completed"] == report["real_executions"] == 0
|
||||
write("audit-summary.json", {k: v for k, v in report.items() if k != "files"})
|
||||
write(
|
||||
"import-protection.json",
|
||||
dict(
|
||||
base=BASE,
|
||||
first=first["counts"],
|
||||
upgrade=upgrade["counts"],
|
||||
repeat=repeat["counts"],
|
||||
restored_rows=1,
|
||||
untouched_whole_rows=154,
|
||||
eligibility_unchanged=True,
|
||||
redo=redo["counts"],
|
||||
user_protection=protected,
|
||||
fresh=fresh["counts"],
|
||||
fresh_repeat=fresh_repeat["counts"],
|
||||
states=fresh["states"],
|
||||
source_named_fields=1217,
|
||||
positional_widgets=3660,
|
||||
companion_values=companion,
|
||||
new_saved=21,
|
||||
new_notes=0,
|
||||
old_saved=495,
|
||||
old_notes=15,
|
||||
overviews=18,
|
||||
all_disabled=True,
|
||||
doc_done=0,
|
||||
executed=0,
|
||||
),
|
||||
)
|
||||
old_reviews = json.loads(
|
||||
subprocess.check_output(["git", "show", f"{BASE}:{RESOURCE}"], cwd=REPO)
|
||||
)
|
||||
current = json.loads((REPO / RESOURCE).read_bytes())
|
||||
for p in PATHS:
|
||||
current[p].pop("fixed_version_document")
|
||||
assert current == old_reviews
|
||||
boundaries = json.loads(
|
||||
(REPO / "docs/hel-892/h3-document-evidence/unchanged-boundaries.json").read_bytes()
|
||||
)
|
||||
paths = (
|
||||
[f["path"] for f in boundaries["files"]]
|
||||
+ boundaries["frozen_conversion_and_audits"]
|
||||
+ ["calliope-backend/src/calliope/comfyui/library.py"]
|
||||
)
|
||||
kept = []
|
||||
for p in paths:
|
||||
raw = (REPO / p).read_bytes()
|
||||
assert raw == subprocess.check_output(["git", "show", f"{BASE}:{p}"], cwd=REPO)
|
||||
kept.append(dict(path=p, sha256=hashlib.sha256(raw).hexdigest()))
|
||||
ui = "calliope-web/src/lib/components/WorkflowDocumentDrawer.svelte"
|
||||
drawer_bytes = (REPO / ui).read_bytes()
|
||||
assert drawer_bytes == subprocess.check_output(["git", "show", f"{BASE}:{ui}"], cwd=REPO)
|
||||
|
||||
write(
|
||||
"boundaries.json",
|
||||
dict(
|
||||
base=BASE,
|
||||
files=kept,
|
||||
originals=163,
|
||||
old_seventeen_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",
|
||||
),
|
||||
)
|
||||
packages = []
|
||||
with zipfile.ZipFile(wheels) as w, tarfile.open(sdists) as s:
|
||||
for name in ["fixed_document.py", "source_reviews.json", "library.py"]:
|
||||
raw = (REPO / "calliope-backend/src/calliope/comfyui" / name).read_bytes()
|
||||
assert w.read("calliope/comfyui/" + name) == raw
|
||||
member = next(n for n in s.getnames() if n.endswith("/src/calliope/comfyui/" + name))
|
||||
assert s.extractfile(member).read() == raw
|
||||
packages.append(
|
||||
dict(
|
||||
file=name,
|
||||
sha256=hashlib.sha256(raw).hexdigest(),
|
||||
wheel=True,
|
||||
sdist=True,
|
||||
definitions=18,
|
||||
)
|
||||
)
|
||||
write("package-check.json", packages)
|
||||
print(
|
||||
(
|
||||
"PASS actual ab18cd3 upgrade1/skip154, "
|
||||
"repeat155, rollback1, edits1/29cols, f"
|
||||
"resh155, 1217/3660/294, 18 definitions"
|
||||
", frozen boundaries, wheel/sdist"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,109 @@
|
||||
"""Readable complete Chinese definitions and fixed source index from delivered data."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def main():
|
||||
lines = [
|
||||
"# 视频倒放图固定参考中文说明",
|
||||
"",
|
||||
"21新顶层保存位置(19标量含上传状态+2历史对象)+0新注释;旧17图495保存位置+15注释逐对象不变。18图516位置+15注释展示,155定稿0、实跑0、新增转换0。",
|
||||
"",
|
||||
"复用SQLite来源库→正常GET详情→现有说明抽屉;仅新增source_reviews说明块和显式受信摘要,不改变转换/执行链。来源索引local_file以docs/hel-892/reverse-document-evidence为解析基准。",
|
||||
"",
|
||||
]
|
||||
index = []
|
||||
for i in range(1):
|
||||
b = json.loads((OUT / f"definition-{i}.json").read_bytes())
|
||||
lines += [
|
||||
"## " + Path(b["source_path"]).stem,
|
||||
"",
|
||||
b["user_overview"],
|
||||
"",
|
||||
b["notice"],
|
||||
"",
|
||||
"源路径:`" + b["source_path"] + "`",
|
||||
"",
|
||||
"SHA1:" + b["source_sha1"],
|
||||
"",
|
||||
"原字节SHA256:" + b["source_sha256"],
|
||||
"",
|
||||
"规范全图SHA256:" + b["canonical_sha256"],
|
||||
"",
|
||||
*[v + "\n" for v in b["versions"]],
|
||||
"### 具体连线与处理条件",
|
||||
"",
|
||||
*[v + "\n" for v in b["flow"]],
|
||||
"### 使用与核对",
|
||||
"",
|
||||
*[v + "\n" for v in b["steps"]],
|
||||
"### 逐保存位置说明",
|
||||
"",
|
||||
]
|
||||
for j, f in enumerate(b["fields"], 1):
|
||||
lines += [
|
||||
f"#### {j}. 节点{f['node_id']} · {f['label']}({f['field']})",
|
||||
"",
|
||||
f["effect"],
|
||||
"",
|
||||
"```json",
|
||||
json.dumps(f["value"], ensure_ascii=False, indent=2),
|
||||
"```",
|
||||
"",
|
||||
f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。",
|
||||
"",
|
||||
"源位置:`" + f["pointer"] + "`",
|
||||
"",
|
||||
"定义默认:" + f["schema_default"] + ";单位:" + f["unit"],
|
||||
"",
|
||||
"范围/条件:" + f["limits"],
|
||||
"",
|
||||
f["execution_note"],
|
||||
"",
|
||||
"依据:",
|
||||
]
|
||||
for k in f["evidence"]:
|
||||
e = b["sources"][k]
|
||||
lines += [
|
||||
f"- [{k}] {e['claim']};{e['file']} {e['lines'][0]}~{e['lines'][1]}行;"
|
||||
f"commit {e['commit']};SHA256 {e['sha256']};{e['url']}"
|
||||
]
|
||||
lines += [""]
|
||||
lines += ["### 零保存节点与源注释", ""]
|
||||
for z in b["zero_saved_nodes"]:
|
||||
lines += [z["node_id"] + " " + z["class_type"] + ":" + z["effect"], ""]
|
||||
for n in b["comments"]:
|
||||
lines += [
|
||||
"节点" + n["node_id"] + ",位置`" + n["pointer"] + "`",
|
||||
"",
|
||||
n["meaning"],
|
||||
"",
|
||||
"```text",
|
||||
n["text"],
|
||||
"```",
|
||||
"",
|
||||
]
|
||||
lines += ["### 固定原件索引", ""]
|
||||
for k, e in enumerate(b["sources"]):
|
||||
data = (OUT / e["local_file"]).read_bytes()
|
||||
assert hashlib.sha256(data).hexdigest() == e["sha256"]
|
||||
lines += [
|
||||
f"{k}. {e['claim']};{e['file']} 第{e['lines'][0]}~{e['lines'][1]}行;"
|
||||
f"提交{e['commit']};SHA256 {e['sha256']};{e['url']}",
|
||||
"",
|
||||
]
|
||||
index.append(dict(document=b["source_path"], **e))
|
||||
(OUT.parent / "视频倒放图固定参考中文说明.md").write_text("\n".join(lines).rstrip() + "\n")
|
||||
(OUT / "fixed-source-index.json").write_text(
|
||||
json.dumps(index, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,50 @@
|
||||
"""Repeat every deterministic audit and compare reviewed resource/package byte identities."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import hashlib
|
||||
import json
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from build_definition import OUT, REPO, canonical
|
||||
from rebuild import RESOURCE, build_all
|
||||
|
||||
|
||||
def main():
|
||||
a, overview = build_all()
|
||||
b, again = build_all()
|
||||
assert a == b and overview == again
|
||||
assert a == json.loads((REPO / RESOURCE).read_bytes())
|
||||
names = [
|
||||
"audit-summary.json",
|
||||
"review-delta.json",
|
||||
"import-protection.json",
|
||||
"boundaries.json",
|
||||
"package-check.json",
|
||||
"source-check.json",
|
||||
"source-graph.json",
|
||||
]
|
||||
subprocess.run([sys.executable, str(OUT / "recompute.py")], cwd=REPO, check=True)
|
||||
before = {p: hashlib.sha256((OUT / p).read_bytes()).hexdigest() for p in names}
|
||||
subprocess.run([sys.executable, str(OUT / "recompute.py")], cwd=REPO, check=True)
|
||||
assert before == {p: hashlib.sha256((OUT / p).read_bytes()).hexdigest() for p in names}
|
||||
(OUT / "repeatability.json").write_text(
|
||||
json.dumps(
|
||||
dict(
|
||||
definitions=18,
|
||||
repeated_build_equal=True,
|
||||
repeated_audits_equal=True,
|
||||
resource_sha256=hashlib.sha256(canonical(a)).hexdigest(),
|
||||
artifacts=before,
|
||||
),
|
||||
ensure_ascii=False,
|
||||
indent=2,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
print("PASS repeated 18 definitions and upgrade/audit/package recomputation: zero difference")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,3 @@
|
||||
PASS actual ab18cd3 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 18 definitions, frozen boundaries, wheel/sdist
|
||||
PASS actual ab18cd3 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 18 definitions, frozen boundaries, wheel/sdist
|
||||
PASS repeated 18 definitions and upgrade/audit/package recomputation: zero difference
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"definitions": 18,
|
||||
"repeated_build_equal": true,
|
||||
"repeated_audits_equal": true,
|
||||
"resource_sha256": "6d29e9df18f6aae526ea3aa7f8c3325a23ad133aaf47592805b75c8180f87ead",
|
||||
"artifacts": {
|
||||
"audit-summary.json": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a",
|
||||
"review-delta.json": "abeeed329480ddd1502125f30bf278c2767934e1cfcf4f64500a6b4d77ce5c1c",
|
||||
"import-protection.json": "644caad441f76e04c69f7ef499812140843c94381a9db2a4fb24419d93681763",
|
||||
"boundaries.json": "0c1bf79006dd996da737cc21579598a713d42283ce96482f2095db828c7a25d8",
|
||||
"package-check.json": "e3a943748d2a24f3d0277d47f062bbb88fe64e8469e5c4f65867a8b33930d8da",
|
||||
"source-check.json": "98b7023653cf99ae646c4dfcc26bddbc6bd6f2064b2a2e95cb67aff0cb451c01",
|
||||
"source-graph.json": "36c0171293fe86eb48966210923878786482e5662b997a17cadee8cd8c340027"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"total": 70, "fixed_count": 62, "polling_count": 8, "paths": {"/api/workflows": 3, "/api/workflows/22": 4, "/api/workflows/5": 4, "/api/workflows/6": 3, "/api/workflows/7": 3, "/api/workflows/19": 3, "/api/workflows/13": 3, "/api/workflows/12": 3, "/api/workflows/64": 3, "/api/workflows/62": 3, "/api/workflows/70": 3, "/api/workflows/1": 3, "/api/workflows/36": 3, "/api/workflows/35": 3, "/api/workflows/2": 3, "/api/workflows/25": 3, "/api/workflows/24": 3, "/api/workflows/21": 3, "/api/workflows/14": 3, "/api/jobs": 8, "/api/settings": 1, "/api/workflows/156": 1, "/api/workflows/157": 1}, "readiness_included": 1, "reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。"}
|
||||
@@ -0,0 +1,39 @@
|
||||
"""Count actual local server GETs separately from browser intercepted requests."""
|
||||
|
||||
import collections
|
||||
import json
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
OUT = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def main():
|
||||
text = (OUT / "service-0.txt").read_text()
|
||||
gets = re.findall(r'"GET ([^ ]+) HTTP/', text)
|
||||
polling = [p for p in gets if p in ["/api/jobs", "/api/events"]]
|
||||
result = dict(
|
||||
total=len(gets),
|
||||
fixed_count=len(gets) - len(polling),
|
||||
polling_count=len(polling),
|
||||
paths=dict(collections.Counter(gets)),
|
||||
readiness_included=1,
|
||||
reason=(
|
||||
"就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,"
|
||||
"服务日志只含真正到后端者,不机械等同。"
|
||||
"轮询可随计时边界±1,禁止请求始终零容忍。"
|
||||
),
|
||||
)
|
||||
browser = json.loads((OUT / "browser-results.json").read_bytes())
|
||||
assert browser["errors"] == []
|
||||
assert all(r["method"] == "GET" for r in browser["requests"])
|
||||
assert all(not p.startswith("/api/view") for p in gets)
|
||||
assert abs(result["polling_count"] - browser["request_accounting"]["polling_count"]) <= 1
|
||||
(OUT / "server-request-accounting.json").write_text(
|
||||
json.dumps(result, ensure_ascii=False, indent=2) + "\n"
|
||||
)
|
||||
print(json.dumps(result, ensure_ascii=False))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"base": "ab18cd31a370785b104ec5c65d1b3303215e93a5",
|
||||
"changed_paths": [
|
||||
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json"
|
||||
],
|
||||
"other_reviews_unchanged": 155,
|
||||
"old_blocks_unchanged": 17,
|
||||
"old_saved": 495,
|
||||
"old_notes": 15,
|
||||
"new_saved": 21,
|
||||
"new_notes": 0,
|
||||
"total_documents": 18,
|
||||
"total_saved": 516,
|
||||
"total_notes": 15
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"total": 70,
|
||||
"fixed_count": 62,
|
||||
"polling_count": 8,
|
||||
"paths": {
|
||||
"/api/workflows": 3,
|
||||
"/api/workflows/22": 4,
|
||||
"/api/workflows/5": 4,
|
||||
"/api/workflows/6": 3,
|
||||
"/api/workflows/7": 3,
|
||||
"/api/workflows/19": 3,
|
||||
"/api/workflows/13": 3,
|
||||
"/api/workflows/12": 3,
|
||||
"/api/workflows/64": 3,
|
||||
"/api/workflows/62": 3,
|
||||
"/api/workflows/70": 3,
|
||||
"/api/workflows/1": 3,
|
||||
"/api/workflows/36": 3,
|
||||
"/api/workflows/35": 3,
|
||||
"/api/workflows/2": 3,
|
||||
"/api/workflows/25": 3,
|
||||
"/api/workflows/24": 3,
|
||||
"/api/workflows/21": 3,
|
||||
"/api/workflows/14": 3,
|
||||
"/api/jobs": 8,
|
||||
"/api/settings": 1,
|
||||
"/api/workflows/156": 1,
|
||||
"/api/workflows/157": 1
|
||||
},
|
||||
"readiness_included": 1,
|
||||
"reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。"
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
INFO: Started server process [575126]
|
||||
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': 155, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
|
||||
INFO: 127.0.0.1:51582 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51590 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51592 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51590 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51592 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51590 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51592 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51590 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51592 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51590 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51592 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51590 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51592 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51590 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51592 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51590 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51592 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51590 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51592 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51590 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51610 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:51606 - "GET /api/settings HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51612 - "GET /api/workflows HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51614 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:51618 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:33724 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33738 - "GET /api/workflows/6 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33740 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33754 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33756 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33764 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33778 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33792 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33794 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33798 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:33806 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33810 - "GET /api/workflows/36 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:33826 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33834 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33842 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33844 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33858 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:33866 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47184 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47192 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47208 - "GET /api/workflows/6 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:47226 - "GET /api/workflows/7 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47230 - "GET /api/workflows/19 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47240 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:47254 - "GET /api/workflows/13 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47256 - "GET /api/workflows/12 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47272 - "GET /api/workflows/64 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47276 - "GET /api/workflows/62 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47286 - "GET /api/workflows/70 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47298 - "GET /api/workflows/1 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:47314 - "GET /api/workflows/36 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58330 - "GET /api/workflows/35 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58342 - "GET /api/workflows/2 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58348 - "GET /api/workflows/25 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58352 - "GET /api/workflows/24 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58364 - "GET /api/workflows/21 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58370 - "GET /api/workflows/14 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58376 - "GET /api/workflows/156 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58380 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:58384 - "GET /api/workflows/157 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58400 - "GET /api/jobs HTTP/1.1" 404 Not Found
|
||||
INFO: 127.0.0.1:58410 - "GET /api/workflows/5 HTTP/1.1" 200 OK
|
||||
INFO: 127.0.0.1:58422 - "GET /api/workflows/22 HTTP/1.1" 200 OK
|
||||
INFO: Shutting down
|
||||
INFO: Waiting for application shutdown.
|
||||
INFO: Application shutdown complete.
|
||||
INFO: Finished server process [575126]
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
VITE v6.4.3 ready in 298 ms
|
||||
|
||||
➜ Local: http://127.0.0.1:5173/
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"fixed_originals": 15,
|
||||
"checked_sha256": true,
|
||||
"package_sha256": "f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"package_members": 45,
|
||||
"git_commit_binding": "unknown",
|
||||
"frontend_not_declared": true,
|
||||
"imported_upstream": false,
|
||||
"target_installation": false,
|
||||
"local_file_base": "docs/hel-892/reverse-reference"
|
||||
}
|
||||
@@ -0,0 +1,488 @@
|
||||
{
|
||||
"source_path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
|
||||
"raw_sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24",
|
||||
"canonical_sha256": "e960a56eaec1c0c9b133a1d4dd7f6a6e6b3fa998a50a90379324910fe7c0684b",
|
||||
"nodes": [
|
||||
{
|
||||
"id": 20,
|
||||
"type": "ReverseImageBatch",
|
||||
"pos": [
|
||||
-620.9775234615648,
|
||||
1056.768479983669
|
||||
],
|
||||
"size": [
|
||||
231.32826576258094,
|
||||
27.255371350688392
|
||||
],
|
||||
"flags": {},
|
||||
"order": 1,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"label": "图像",
|
||||
"localized_name": "images",
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 15
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"label": "图像",
|
||||
"localized_name": "图像",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
16,
|
||||
17
|
||||
]
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"cnr_id": "comfyui-kjnodes",
|
||||
"ver": "c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
"Node name for S&R": "ReverseImageBatch",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.5.1"
|
||||
}
|
||||
},
|
||||
"widgets_values": []
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"type": "VHS_VideoCombine",
|
||||
"pos": [
|
||||
-687.3796266794396,
|
||||
1205.259933171069
|
||||
],
|
||||
"size": [
|
||||
367.1672509556887,
|
||||
547.621169299521
|
||||
],
|
||||
"flags": {},
|
||||
"order": 3,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"label": "图像",
|
||||
"localized_name": "images",
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 17
|
||||
},
|
||||
{
|
||||
"label": "音频",
|
||||
"localized_name": "audio",
|
||||
"name": "audio",
|
||||
"shape": 7,
|
||||
"type": "AUDIO",
|
||||
"link": 18
|
||||
},
|
||||
{
|
||||
"label": "批次管理",
|
||||
"localized_name": "meta_batch",
|
||||
"name": "meta_batch",
|
||||
"shape": 7,
|
||||
"type": "VHS_BatchManager",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "vae",
|
||||
"name": "vae",
|
||||
"shape": 7,
|
||||
"type": "VAE",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "帧率",
|
||||
"name": "frame_rate",
|
||||
"type": "FLOAT",
|
||||
"widget": {
|
||||
"name": "frame_rate"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "循环次数",
|
||||
"name": "loop_count",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "loop_count"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "文件名前缀",
|
||||
"name": "filename_prefix",
|
||||
"type": "STRING",
|
||||
"widget": {
|
||||
"name": "filename_prefix"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "格式",
|
||||
"name": "format",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "format"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "Ping-Pong",
|
||||
"name": "pingpong",
|
||||
"type": "BOOLEAN",
|
||||
"widget": {
|
||||
"name": "pingpong"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "保存到输出文件夹",
|
||||
"name": "save_output",
|
||||
"type": "BOOLEAN",
|
||||
"widget": {
|
||||
"name": "save_output"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "pix_fmt",
|
||||
"type": [
|
||||
"yuv420p",
|
||||
"yuv420p10le"
|
||||
],
|
||||
"widget": {
|
||||
"name": "pix_fmt"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"name": "crf",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "crf"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"label": "保存元数据",
|
||||
"localized_name": "保存元数据",
|
||||
"name": "save_metadata",
|
||||
"type": "BOOLEAN",
|
||||
"widget": {
|
||||
"name": "save_metadata"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"label": "修剪音频",
|
||||
"localized_name": "修剪音频",
|
||||
"name": "trim_to_audio",
|
||||
"type": "BOOLEAN",
|
||||
"widget": {
|
||||
"name": "trim_to_audio"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"label": "文件名",
|
||||
"localized_name": "Filenames",
|
||||
"name": "Filenames",
|
||||
"type": "VHS_FILENAMES",
|
||||
"links": null
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"cnr_id": "comfyui-videohelpersuite",
|
||||
"ver": "1.7.7",
|
||||
"Node name for S&R": "VHS_VideoCombine",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.5.1"
|
||||
}
|
||||
},
|
||||
"widgets_values": {
|
||||
"frame_rate": 16,
|
||||
"loop_count": 0,
|
||||
"filename_prefix": "video/ComfyUI",
|
||||
"format": "video/h264-mp4",
|
||||
"pix_fmt": "yuv420p",
|
||||
"crf": 19,
|
||||
"save_metadata": true,
|
||||
"trim_to_audio": false,
|
||||
"pingpong": false,
|
||||
"save_output": true,
|
||||
"videopreview": {
|
||||
"hidden": false,
|
||||
"paused": false,
|
||||
"params": {
|
||||
"filename": "ComfyUI_00238-audio.mp4",
|
||||
"subfolder": "video",
|
||||
"type": "output",
|
||||
"format": "video/h264-mp4",
|
||||
"frame_rate": 16,
|
||||
"workflow": "ComfyUI_00238.png",
|
||||
"fullpath": "E:\\ComfyUI-Data\\output\\video\\ComfyUI_00238-audio.mp4"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"type": "VHS_LoadVideo",
|
||||
"pos": [
|
||||
-1145.3755907196448,
|
||||
1208.911328363667
|
||||
],
|
||||
"size": [
|
||||
422.47719061893906,
|
||||
555.4243846058899
|
||||
],
|
||||
"flags": {},
|
||||
"order": 0,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"label": "批次管理",
|
||||
"localized_name": "meta_batch",
|
||||
"name": "meta_batch",
|
||||
"shape": 7,
|
||||
"type": "VHS_BatchManager",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "vae",
|
||||
"name": "vae",
|
||||
"shape": 7,
|
||||
"type": "VAE",
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "视频",
|
||||
"name": "video",
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "video"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "强制帧率",
|
||||
"name": "force_rate",
|
||||
"type": "FLOAT",
|
||||
"widget": {
|
||||
"name": "force_rate"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "自定义宽度",
|
||||
"name": "custom_width",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "custom_width"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "自定义高度",
|
||||
"name": "custom_height",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "custom_height"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "帧数读取上限",
|
||||
"name": "frame_load_cap",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "frame_load_cap"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "跳过前X帧",
|
||||
"name": "skip_first_frames",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "skip_first_frames"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "间隔",
|
||||
"name": "select_every_nth",
|
||||
"type": "INT",
|
||||
"widget": {
|
||||
"name": "select_every_nth"
|
||||
},
|
||||
"link": null
|
||||
},
|
||||
{
|
||||
"localized_name": "格式",
|
||||
"name": "format",
|
||||
"shape": 7,
|
||||
"type": "COMBO",
|
||||
"widget": {
|
||||
"name": "format"
|
||||
},
|
||||
"link": null
|
||||
}
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"label": "图像",
|
||||
"localized_name": "图像",
|
||||
"name": "IMAGE",
|
||||
"type": "IMAGE",
|
||||
"links": [
|
||||
15
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "帧计数",
|
||||
"localized_name": "frame_count",
|
||||
"name": "frame_count",
|
||||
"type": "INT",
|
||||
"links": []
|
||||
},
|
||||
{
|
||||
"label": "音频",
|
||||
"localized_name": "audio",
|
||||
"name": "audio",
|
||||
"type": "AUDIO",
|
||||
"links": [
|
||||
18
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "视频信息",
|
||||
"localized_name": "video_info",
|
||||
"name": "video_info",
|
||||
"type": "VHS_VIDEOINFO",
|
||||
"links": null
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"cnr_id": "comfyui-videohelpersuite",
|
||||
"ver": "1.7.7",
|
||||
"Node name for S&R": "VHS_LoadVideo",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.5.1"
|
||||
}
|
||||
},
|
||||
"widgets_values": {
|
||||
"video": "WanVideo_InfiniteTalk_00004-audio.mp4",
|
||||
"force_rate": 16,
|
||||
"custom_width": 0,
|
||||
"custom_height": 0,
|
||||
"frame_load_cap": 0,
|
||||
"skip_first_frames": 0,
|
||||
"select_every_nth": 1,
|
||||
"format": "AnimateDiff",
|
||||
"choose video to upload": "image",
|
||||
"videopreview": {
|
||||
"hidden": false,
|
||||
"paused": false,
|
||||
"params": {
|
||||
"filename": "WanVideo_InfiniteTalk_00004-audio.mp4",
|
||||
"type": "input",
|
||||
"format": "video/mp4",
|
||||
"force_rate": 16,
|
||||
"custom_width": 0,
|
||||
"custom_height": 0,
|
||||
"frame_load_cap": 0,
|
||||
"skip_first_frames": 0,
|
||||
"select_every_nth": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"type": "PreviewImage",
|
||||
"pos": [
|
||||
-257.7732163729658,
|
||||
1206.7330004579348
|
||||
],
|
||||
"size": [
|
||||
488.0115541286282,
|
||||
618.9281956909451
|
||||
],
|
||||
"flags": {},
|
||||
"order": 2,
|
||||
"mode": 0,
|
||||
"inputs": [
|
||||
{
|
||||
"localized_name": "图像",
|
||||
"name": "images",
|
||||
"type": "IMAGE",
|
||||
"link": 16
|
||||
}
|
||||
],
|
||||
"outputs": [],
|
||||
"properties": {
|
||||
"cnr_id": "comfy-core",
|
||||
"ver": "0.3.75",
|
||||
"Node name for S&R": "PreviewImage",
|
||||
"ue_properties": {
|
||||
"widget_ue_connectable": {},
|
||||
"input_ue_unconnectable": {},
|
||||
"version": "7.5.1"
|
||||
}
|
||||
},
|
||||
"widgets_values": []
|
||||
}
|
||||
],
|
||||
"links": [
|
||||
[
|
||||
15,
|
||||
1,
|
||||
0,
|
||||
20,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
16,
|
||||
20,
|
||||
0,
|
||||
15,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
17,
|
||||
20,
|
||||
0,
|
||||
21,
|
||||
0,
|
||||
"IMAGE"
|
||||
],
|
||||
[
|
||||
18,
|
||||
1,
|
||||
2,
|
||||
21,
|
||||
1,
|
||||
"AUDIO"
|
||||
]
|
||||
],
|
||||
"no_subgraphs": true,
|
||||
"saved_fields": 21,
|
||||
"scalar_positions": 19,
|
||||
"history_objects": 2,
|
||||
"notes": 0,
|
||||
"extra_sha256": "80ddbce4ee0dbd7a245a143d585ce2a4f134be8194c4a9d597879f2de102afff"
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
[
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
|
||||
"sha256": "41b383532b9407f644ebdd93fd538f2950d9580395f0bc554a1c9f281facab87"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
|
||||
"sha256": "ade5946074540c0f46d28e6ab559380cf5d1d896c7eac583ded89cbe7aa03e42"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_background_fixed_document.py",
|
||||
"sha256": "7dad72d3585bc8c68ae597f7ebe1f2478c0dc36f85173c9c3c3cbf42b9370a8e"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_controlnet_fixed_document.py",
|
||||
"sha256": "7a31ee1301f64ed6448bf1d55d36d19ce4949879b0d522202559b226fc4f7c52"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_gemma_fixed_document.py",
|
||||
"sha256": "37ea70c172c17383f6729dc68e08bdcaca2d1126672e27b9795c6662f9ddf680"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_grid_fixed_document.py",
|
||||
"sha256": "793a35cac41482eb12af0e7c892af2cf3463ebe2be722a6607ffb91ecc5c27ab"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_nlf_fixed_document.py",
|
||||
"sha256": "51fc66af5f7ecd60dafa7e38c1815ebee5cffc316b0529c3bb8f5822fd06c8a5"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_openpose_fixed_document.py",
|
||||
"sha256": "e19873a7f52ab3ccefe1c9db94676125415e56885cd642c69fe0189fc38de24a"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_qwen_edit_fixed_document.py",
|
||||
"sha256": "16f850da65cbf7c80b02fb7676b68a942dfb85803b5648f0050f4273a05e7c9d"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_reverse_fixed_document.py",
|
||||
"sha256": "484756a7a31da068d67dad9f3dc3ebebc426e4bcf4cff87c0d464c3a6ab9fdc9"
|
||||
},
|
||||
{
|
||||
"path": "calliope-backend/tests/test_sdpose_fixed_document.py",
|
||||
"sha256": "672957e0638818599a1146b3908a2d9734b1589f6db36da00018f1bfc1d1c270"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/reverse-document-evidence/build_definition.py",
|
||||
"sha256": "ef16223dd65188fd056bb1c02c96e7b4f4115829e9c99a6e4c98bbf8c831d69b"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/reverse-document-evidence/fetch_sources.py",
|
||||
"sha256": "946c52ebc12ae71705115ba2cefb57a2eb9b89e597634d63e1f5b7682b73c12c"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/reverse-document-evidence/rebuild.py",
|
||||
"sha256": "55a1301648d4a020e3dfb0e8b97ca7f783572025056abf4302b4b843ee130666"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/reverse-document-evidence/recompute.py",
|
||||
"sha256": "dc6220bec144b9ebc6fb225f4c20d54cbb2d5cc46684c2eb413507e907e5b47c"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/reverse-document-evidence/render_report.py",
|
||||
"sha256": "c28ce7d8cbab856316b930eb95c2a69d4c5b0c4e6c528691a044cd0deb67cc7c"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/reverse-document-evidence/repeat.py",
|
||||
"sha256": "1a42416cb2f62751b58ad9ae8e627374a77f5eccf0220e5dae74fdf36d36b4d6"
|
||||
},
|
||||
{
|
||||
"path": "docs/hel-892/reverse-document-evidence/request_counts.py",
|
||||
"sha256": "16fb2ba598a5b58f0704cc4535bfdd1d6ba8ade927db81f7f48875b23b83b020"
|
||||
},
|
||||
{
|
||||
"path": "e2e/reverse-document.mjs",
|
||||
"sha256": "3028a2963c0cd0bd0f454fcb2febd46d4b820bd26517b025adbe2b5f0703670b"
|
||||
},
|
||||
{
|
||||
"path": "e2e/run-reverse-document.py",
|
||||
"sha256": "89a6a6f844c5fcfb4bd7171ebf3fd681f9e436124a4cea5514d31e68f7d96f0c"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,66 @@
|
||||
........................................................................ [ 1%]
|
||||
........................................................................ [ 3%]
|
||||
........................................................................ [ 4%]
|
||||
........................................................................ [ 6%]
|
||||
........................................................................ [ 7%]
|
||||
........................................................................ [ 9%]
|
||||
........................................................................ [ 10%]
|
||||
........................................................................ [ 12%]
|
||||
........................................................................ [ 13%]
|
||||
........................................................................ [ 15%]
|
||||
........................................................................ [ 17%]
|
||||
........................................................................ [ 18%]
|
||||
........................................................................ [ 20%]
|
||||
........................................................................ [ 21%]
|
||||
........................................................................ [ 23%]
|
||||
........................................................................ [ 24%]
|
||||
........................................................................ [ 26%]
|
||||
........................................................................ [ 27%]
|
||||
........................................................................ [ 29%]
|
||||
........................................................................ [ 30%]
|
||||
........................................................................ [ 32%]
|
||||
........................................................................ [ 34%]
|
||||
........................................................................ [ 35%]
|
||||
........................................................................ [ 37%]
|
||||
........................................................................ [ 38%]
|
||||
........................................................................ [ 40%]
|
||||
........................................................................ [ 41%]
|
||||
........................................................................ [ 43%]
|
||||
........................................................................ [ 44%]
|
||||
........................................................................ [ 46%]
|
||||
........................................................................ [ 48%]
|
||||
........................................................................ [ 49%]
|
||||
........................................................................ [ 51%]
|
||||
........................................................................ [ 52%]
|
||||
........................................................................ [ 54%]
|
||||
........................................................................ [ 55%]
|
||||
........................................................................ [ 57%]
|
||||
........................................................................ [ 58%]
|
||||
........................................................................ [ 60%]
|
||||
........................................................................ [ 61%]
|
||||
........................................................................ [ 63%]
|
||||
........................................................................ [ 65%]
|
||||
........................................................................ [ 66%]
|
||||
........................................................................ [ 68%]
|
||||
........................................................................ [ 69%]
|
||||
........................................................................ [ 71%]
|
||||
........................................................................ [ 72%]
|
||||
........................................................................ [ 74%]
|
||||
........................................................................ [ 75%]
|
||||
........................................................................ [ 77%]
|
||||
........................................................................ [ 79%]
|
||||
........................................................................ [ 80%]
|
||||
........................................................................ [ 82%]
|
||||
........................................................................ [ 83%]
|
||||
........................................................................ [ 85%]
|
||||
........................................................................ [ 86%]
|
||||
........................................................................ [ 88%]
|
||||
........................................................................ [ 89%]
|
||||
........................................................................ [ 91%]
|
||||
........................................................................ [ 92%]
|
||||
........................................................................ [ 94%]
|
||||
........................................................................ [ 96%]
|
||||
........................................................................ [ 97%]
|
||||
........................................................................ [ 99%]
|
||||
...................................... [100%]
|
||||
4646 passed, 1 warning in 21.26s
|
||||
@@ -0,0 +1,238 @@
|
||||
........................................................................ [ 1%]
|
||||
........................................................................ [ 3%]
|
||||
........................................................................ [ 4%]
|
||||
........................................................................ [ 6%]
|
||||
........................................................................ [ 7%]
|
||||
........................................................................ [ 9%]
|
||||
........................................................................ [ 10%]
|
||||
........................................................................ [ 12%]
|
||||
........................................................................ [ 13%]
|
||||
........................................................................ [ 15%]
|
||||
........................................................................ [ 17%]
|
||||
........................................................................ [ 18%]
|
||||
........................................................................ [ 20%]
|
||||
........................................................................ [ 21%]
|
||||
........................................................................ [ 23%]
|
||||
........................................................................ [ 24%]
|
||||
........................................................................ [ 26%]
|
||||
........................................................................ [ 27%]
|
||||
........................................................................ [ 29%]
|
||||
........................................................................ [ 31%]
|
||||
........................................................................ [ 32%]
|
||||
........................................................................ [ 34%]
|
||||
........................................................................ [ 35%]
|
||||
........................................................................ [ 37%]
|
||||
........................................................................ [ 38%]
|
||||
........................................................................ [ 40%]
|
||||
...........................................F............................ [ 41%]
|
||||
........................................................................ [ 43%]
|
||||
........................................................................ [ 45%]
|
||||
........................................................................ [ 46%]
|
||||
.....................................F.................................. [ 48%]
|
||||
........................................................................ [ 49%]
|
||||
........................................................................ [ 51%]
|
||||
........................................................................ [ 52%]
|
||||
........................................................................ [ 54%]
|
||||
........................................................................ [ 55%]
|
||||
........................................................................ [ 57%]
|
||||
........................................................................ [ 59%]
|
||||
........................................................................ [ 60%]
|
||||
........................................................................ [ 62%]
|
||||
........................................................................ [ 63%]
|
||||
........................................................................ [ 65%]
|
||||
........................................................................ [ 66%]
|
||||
........................................................................ [ 68%]
|
||||
........................................................................ [ 69%]
|
||||
........................................................................ [ 71%]
|
||||
........................................................................ [ 73%]
|
||||
........................................................................ [ 74%]
|
||||
........................................................................ [ 76%]
|
||||
........................................................................ [ 77%]
|
||||
........................................................................ [ 79%]
|
||||
........................................................................ [ 80%]
|
||||
........................................................................ [ 82%]
|
||||
........................................................................ [ 83%]
|
||||
........................................................................ [ 85%]
|
||||
........................................................................ [ 86%]
|
||||
........................................................................ [ 88%]
|
||||
........................................................................ [ 90%]
|
||||
........................................................................ [ 91%]
|
||||
........................................................................ [ 93%]
|
||||
........................................................................ [ 94%]
|
||||
........................................................................ [ 96%]
|
||||
........................................................................ [ 97%]
|
||||
........................................................................ [ 99%]
|
||||
........................... [100%]
|
||||
=================================== FAILURES ===================================
|
||||
__________ test_exact_topology_counts_modes_unknowns_and_old_objects ___________
|
||||
|
||||
def test_exact_topology_counts_modes_unknowns_and_old_objects():
|
||||
d = doc()
|
||||
assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
|
||||
assert len(BLOCK["fields"]) == 74 and len(BLOCK["comments"]) == 0
|
||||
assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 3
|
||||
assert sum(f["value"] is None for f in BLOCK["fields"]) == 1
|
||||
assert sum(f["role"] == "unknown_saved" for f in BLOCK["fields"]) == 7
|
||||
expected = {
|
||||
203: 1,
|
||||
334: 1,
|
||||
340: 1,
|
||||
137: 11,
|
||||
339: 1,
|
||||
373: 11,
|
||||
364: 3,
|
||||
362: 7,
|
||||
363: 0,
|
||||
106: 2,
|
||||
374: 9,
|
||||
370: 1,
|
||||
130: 9,
|
||||
208: 1,
|
||||
376: 1,
|
||||
375: 9,
|
||||
365: 0,
|
||||
335: 2,
|
||||
372: 4,
|
||||
}
|
||||
nodes = {n["id"]: n for n in SOURCE["nodes"]}
|
||||
assert {nid: len(n["widgets_values"]) for nid, n in nodes.items()} == expected
|
||||
assert {nid for nid, n in nodes.items() if n["mode"] == 4} == {106, 375, 365}
|
||||
assert len(SOURCE["links"]) == 22 and "definitions" not in SOURCE
|
||||
assert [e[0] for e in SOURCE["links"]] == [
|
||||
570,
|
||||
621,
|
||||
623,
|
||||
624,
|
||||
625,
|
||||
627,
|
||||
629,
|
||||
648,
|
||||
650,
|
||||
651,
|
||||
653,
|
||||
654,
|
||||
655,
|
||||
656,
|
||||
657,
|
||||
658,
|
||||
659,
|
||||
660,
|
||||
661,
|
||||
662,
|
||||
663,
|
||||
665,
|
||||
]
|
||||
for eid, origin, slot, target, inp, typ in SOURCE["links"]:
|
||||
assert eid in nodes[origin]["outputs"][slot]["links"]
|
||||
assert nodes[target]["inputs"][inp]["link"] == eid
|
||||
assert nodes[target]["inputs"][inp]["type"] == (
|
||||
{648: "INT", 661: "INT,FLOAT", 662: "INT,FLOAT"}.get(eid, typ)
|
||||
)
|
||||
text = "".join(BLOCK["flow"])
|
||||
assert all(
|
||||
t in text
|
||||
for t in [
|
||||
"没有warmup",
|
||||
"没有per_batch",
|
||||
"round(result)",
|
||||
"两Combine.audio都未接",
|
||||
"临时目录",
|
||||
"UE",
|
||||
"mode4",
|
||||
"0新源注释",
|
||||
"冲突不抹平",
|
||||
"taichi",
|
||||
"提供方",
|
||||
"未实跑",
|
||||
]
|
||||
)
|
||||
assert not BLOCK["counts"]["final_prompt_constructed"]
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
old = json.loads(subprocess.check_output(["git", "show", "7e76510:" + resource], cwd=REPO))
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
|
||||
now[reverse].pop("fixed_version_document")
|
||||
assert now[PATH].pop("fixed_version_document") == BLOCK
|
||||
assert now == old and len(DEFINITIONS) == 18
|
||||
old_blocks = [
|
||||
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
|
||||
]
|
||||
assert len(old_blocks) == 16 and sum(len(b["fields"]) for b in old_blocks) == 421
|
||||
assert (
|
||||
sum(len(b.get("comments", [])) for b in old_blocks) == 14
|
||||
) # separate historical ASR flow note
|
||||
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
for p in DEFINITIONS:
|
||||
if p == PATH:
|
||||
continue
|
||||
r = copy.deepcopy(REVIEW)
|
||||
> r["fixed_version_document"] = old[p]["fixed_version_document"]
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
E KeyError: 'fixed_version_document'
|
||||
|
||||
calliope-backend/tests/test_nlf_fixed_document.py:280: KeyError
|
||||
________________ test_exact_document_topology_and_preservation _________________
|
||||
|
||||
def test_exact_document_topology_and_preservation():
|
||||
d = doc()
|
||||
assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
|
||||
assert len(BLOCK["fields"]) == 27 and len(BLOCK["comments"]) == 1
|
||||
assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2
|
||||
assert len(SOURCE["nodes"]) == 5 and len(SOURCE["links"]) == 4
|
||||
assert SOURCE["links"] == [
|
||||
[4, 1, 0, 4, 0, "IMAGE"],
|
||||
[10, 2, 0, 1, 0, "IMAGE"],
|
||||
[11, 2, 3, 9, 0, "VHS_VIDEOINFO"],
|
||||
[12, 9, 0, 4, 4, "FLOAT"],
|
||||
]
|
||||
nodes = {n["id"]: n for n in SOURCE["nodes"]}
|
||||
for edge, origin, slot, target, inp, typ in SOURCE["links"]:
|
||||
assert edge in nodes[origin]["outputs"][slot]["links"]
|
||||
assert nodes[target]["inputs"][inp]["link"] == edge
|
||||
assert nodes[target]["inputs"][inp]["type"] == typ
|
||||
assert nodes[9]["widgets_values"] == {} and type(nodes[9]["widgets_values"]) is dict
|
||||
assert all(n["mode"] == 0 for n in SOURCE["nodes"])
|
||||
assert pointer(SOURCE, BLOCK["comments"][0]["pointer"]) == BLOCK["comments"][0]["text"]
|
||||
assert not BLOCK["counts"]["final_prompt_constructed"]
|
||||
assert all(
|
||||
s in "".join(BLOCK["flow"])
|
||||
for s in [
|
||||
"未实跑",
|
||||
"包同字节不等于提交绑定",
|
||||
"loaded_fps",
|
||||
"外线覆盖",
|
||||
"音频",
|
||||
"UE7.5.2",
|
||||
"空对象",
|
||||
"不是缺键/null/[]",
|
||||
]
|
||||
)
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO))
|
||||
current = json.loads((REPO / resource).read_bytes())
|
||||
reverse = next(p for p in current if p.endswith("/视频倒放.json"))
|
||||
current[reverse].pop("fixed_version_document")
|
||||
nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json"))
|
||||
current[nlf].pop("fixed_version_document")
|
||||
assert current[PATH].pop("fixed_version_document") == BLOCK
|
||||
assert current == previous and len(DEFINITIONS) == 18
|
||||
old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r]
|
||||
assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394
|
||||
assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note
|
||||
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
assert not doc(path="untrusted.json").get("fixed_version")
|
||||
for p in DEFINITIONS:
|
||||
if p in [PATH, nlf]:
|
||||
continue
|
||||
r = copy.deepcopy(REVIEW)
|
||||
> r["fixed_version_document"] = previous[p]["fixed_version_document"]
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
E KeyError: 'fixed_version_document'
|
||||
|
||||
calliope-backend/tests/test_openpose_fixed_document.py:221: KeyError
|
||||
=========================== short test summary info ============================
|
||||
FAILED calliope-backend/tests/test_nlf_fixed_document.py::test_exact_topology_counts_modes_unknowns_and_old_objects
|
||||
FAILED calliope-backend/tests/test_openpose_fixed_document.py::test_exact_document_topology_and_preservation
|
||||
2 failed, 4633 passed, 1 warning in 22.05s
|
||||
@@ -0,0 +1,13 @@
|
||||
........................................................................ [ 18%]
|
||||
........................................................................ [ 36%]
|
||||
........................................................................ [ 54%]
|
||||
........................................................................ [ 72%]
|
||||
........................................................................ [ 90%]
|
||||
........................................ [100%]
|
||||
=============================== warnings summary ===============================
|
||||
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
|
||||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-036299438fa5/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
||||
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
||||
|
||||
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
||||
400 passed, 1 warning in 0.61s
|
||||
@@ -0,0 +1,66 @@
|
||||
........................................................................ [ 1%]
|
||||
........................................................................ [ 3%]
|
||||
........................................................................ [ 4%]
|
||||
........................................................................ [ 6%]
|
||||
........................................................................ [ 7%]
|
||||
........................................................................ [ 9%]
|
||||
........................................................................ [ 10%]
|
||||
........................................................................ [ 12%]
|
||||
........................................................................ [ 13%]
|
||||
........................................................................ [ 15%]
|
||||
........................................................................ [ 17%]
|
||||
........................................................................ [ 18%]
|
||||
........................................................................ [ 20%]
|
||||
........................................................................ [ 21%]
|
||||
........................................................................ [ 23%]
|
||||
........................................................................ [ 24%]
|
||||
........................................................................ [ 26%]
|
||||
........................................................................ [ 27%]
|
||||
........................................................................ [ 29%]
|
||||
........................................................................ [ 31%]
|
||||
........................................................................ [ 32%]
|
||||
........................................................................ [ 34%]
|
||||
........................................................................ [ 35%]
|
||||
........................................................................ [ 37%]
|
||||
........................................................................ [ 38%]
|
||||
........................................................................ [ 40%]
|
||||
........................................................................ [ 41%]
|
||||
........................................................................ [ 43%]
|
||||
........................................................................ [ 45%]
|
||||
........................................................................ [ 46%]
|
||||
........................................................................ [ 48%]
|
||||
........................................................................ [ 49%]
|
||||
........................................................................ [ 51%]
|
||||
........................................................................ [ 52%]
|
||||
........................................................................ [ 54%]
|
||||
........................................................................ [ 55%]
|
||||
........................................................................ [ 57%]
|
||||
........................................................................ [ 59%]
|
||||
........................................................................ [ 60%]
|
||||
........................................................................ [ 62%]
|
||||
........................................................................ [ 63%]
|
||||
........................................................................ [ 65%]
|
||||
........................................................................ [ 66%]
|
||||
........................................................................ [ 68%]
|
||||
........................................................................ [ 69%]
|
||||
........................................................................ [ 71%]
|
||||
........................................................................ [ 72%]
|
||||
........................................................................ [ 74%]
|
||||
........................................................................ [ 76%]
|
||||
........................................................................ [ 77%]
|
||||
........................................................................ [ 79%]
|
||||
........................................................................ [ 80%]
|
||||
........................................................................ [ 82%]
|
||||
........................................................................ [ 83%]
|
||||
........................................................................ [ 85%]
|
||||
........................................................................ [ 86%]
|
||||
........................................................................ [ 88%]
|
||||
........................................................................ [ 90%]
|
||||
........................................................................ [ 91%]
|
||||
........................................................................ [ 93%]
|
||||
........................................................................ [ 94%]
|
||||
........................................................................ [ 96%]
|
||||
........................................................................ [ 97%]
|
||||
........................................................................ [ 99%]
|
||||
............................ [100%]
|
||||
4636 passed, 1 warning in 21.82s
|
||||
@@ -0,0 +1,18 @@
|
||||
# 仓库根;Python3.11及既有锁定依赖。fetch_sources/fetch_identity仅按需在线重取静态原件;以下离线。
|
||||
uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline
|
||||
npm ci --prefix calliope-web --ignore-scripts --offline
|
||||
python3 docs/hel-892/reverse-document-evidence/rebuild.py
|
||||
uv build --project calliope-backend --offline
|
||||
uv run --project calliope-backend --offline python docs/hel-892/reverse-document-evidence/recompute.py
|
||||
uv run --project calliope-backend --offline python docs/hel-892/reverse-document-evidence/repeat.py
|
||||
python3 docs/hel-892/reverse-document-evidence/render_report.py
|
||||
uv run --project calliope-backend --offline pytest calliope-backend/tests/test_reverse_fixed_document.py calliope-backend/tests/test_nlf_fixed_document.py calliope-backend/tests/test_openpose_fixed_document.py calliope-backend/tests/test_sdpose_fixed_document.py calliope-backend/tests/test_gemma_fixed_document.py calliope-backend/tests/test_grid_fixed_document.py calliope-backend/tests/test_background_fixed_document.py calliope-backend/tests/test_qwen_edit_fixed_document.py calliope-backend/tests/test_qwen_fixed_document.py calliope-backend/tests/test_controlnet_fixed_document.py calliope-backend/tests/test_asr_fixed_document.py calliope-backend/tests/test_media_fixed_document.py calliope-backend/tests/test_audio_fixed_document.py calliope-backend/tests/test_fixed_document.py calliope-backend/tests/test_workflow_library.py calliope-backend/tests/test_supplied_companions.py calliope-backend/tests/test_delivery_scope.py calliope-backend/tests/test_case04_saved_reference.py -q --disable-warnings
|
||||
uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/reverse-document-evidence e2e/run-reverse-document.py calliope-backend/src/calliope/comfyui/fixed_document.py calliope-backend/tests/test_reverse_fixed_document.py calliope-backend/tests/test_nlf_fixed_document.py calliope-backend/tests/test_background_fixed_document.py calliope-backend/tests/test_controlnet_fixed_document.py calliope-backend/tests/test_gemma_fixed_document.py calliope-backend/tests/test_grid_fixed_document.py calliope-backend/tests/test_openpose_fixed_document.py calliope-backend/tests/test_qwen_edit_fixed_document.py calliope-backend/tests/test_sdpose_fixed_document.py
|
||||
uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/reverse-document-evidence e2e/run-reverse-document.py calliope-backend/src/calliope/comfyui/fixed_document.py calliope-backend/tests/test_reverse_fixed_document.py calliope-backend/tests/test_nlf_fixed_document.py calliope-backend/tests/test_background_fixed_document.py calliope-backend/tests/test_controlnet_fixed_document.py calliope-backend/tests/test_gemma_fixed_document.py calliope-backend/tests/test_grid_fixed_document.py calliope-backend/tests/test_openpose_fixed_document.py calliope-backend/tests/test_qwen_edit_fixed_document.py calliope-backend/tests/test_sdpose_fixed_document.py
|
||||
node --check e2e/reverse-document.mjs
|
||||
LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-reverse-document.py
|
||||
# 两本地服务在runner finally停止;无模型、媒体、写API、生成、目标机请求。
|
||||
# 最终浏览产物/服务日志复制到本目录后,分别复算固定GET与定时轮询:
|
||||
python3 docs/hel-892/reverse-document-evidence/request_counts.py
|
||||
# 完整中文与逐源索引(local_file以reverse-document-evidence为解析基准):
|
||||
python3 docs/hel-892/reverse-document-evidence/render_report.py
|
||||
@@ -0,0 +1,31 @@
|
||||
From 8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a Mon Sep 17 00:00:00 2001
|
||||
From: comfyanonymous <comfyanonymous@protonmail.com>
|
||||
Date: Wed, 26 Nov 2025 02:41:13 -0500
|
||||
Subject: [PATCH] ComfyUI version v0.3.75
|
||||
|
||||
---
|
||||
comfyui_version.py | 2 +-
|
||||
pyproject.toml | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/comfyui_version.py b/comfyui_version.py
|
||||
index b565c736732..fa4b4f4b0b4 100644
|
||||
--- a/comfyui_version.py
|
||||
+++ b/comfyui_version.py
|
||||
@@ -1,3 +1,3 @@
|
||||
# This file is automatically generated by the build process when version is
|
||||
# updated in pyproject.toml.
|
||||
-__version__ = "0.3.74"
|
||||
+__version__ = "0.3.75"
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index ccf0fcdb96b..9009e65fecd 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "ComfyUI"
|
||||
-version = "0.3.74"
|
||||
+version = "0.3.75"
|
||||
readme = "README.md"
|
||||
license = { file = "LICENSE" }
|
||||
requires-python = ">=3.9"
|
||||
@@ -0,0 +1 @@
|
||||
8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a refs/tags/v0.3.75
|
||||
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,23 @@
|
||||
[
|
||||
{
|
||||
"repo": "kijai/ComfyUI-KJNodes",
|
||||
"id": "kj",
|
||||
"revision": "c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
"commit": "c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
"installed": false
|
||||
},
|
||||
{
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"id": "core",
|
||||
"revision": "v0.3.75",
|
||||
"commit": "8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a",
|
||||
"installed": false
|
||||
},
|
||||
{
|
||||
"id": "vhs",
|
||||
"version": "1.7.7",
|
||||
"package_sha256": "f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"git_commit_binding": "unknown",
|
||||
"installed": false
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,42 @@
|
||||
From c661baadd9683c0033cd2a6ad90157c6d099a6c2 Mon Sep 17 00:00:00 2001
|
||||
From: kijai <40791699+kijai@users.noreply.github.com>
|
||||
Date: Wed, 5 Nov 2025 18:19:07 +0200
|
||||
Subject: [PATCH] Fix context too eager preventdefault for Points/Spline
|
||||
editors
|
||||
|
||||
This was blocking context menu for some other elements.
|
||||
---
|
||||
web/js/point_editor.js | 3 +++
|
||||
web/js/spline_editor.js | 3 +++
|
||||
2 files changed, 6 insertions(+)
|
||||
|
||||
diff --git a/web/js/point_editor.js b/web/js/point_editor.js
|
||||
index b06ed75e..dc236829 100644
|
||||
--- a/web/js/point_editor.js
|
||||
+++ b/web/js/point_editor.js
|
||||
@@ -661,7 +661,10 @@ class PointsEditor {
|
||||
createContextMenu = () => {
|
||||
self = this;
|
||||
document.addEventListener('contextmenu', function (e) {
|
||||
+ if (e.target.closest(`#points-editor-${self.node.uuid}`) ||
|
||||
+ e.target.closest('#context-menu')) {
|
||||
e.preventDefault();
|
||||
+ }
|
||||
});
|
||||
|
||||
document.addEventListener('click', function (e) {
|
||||
diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js
|
||||
index 3d358a2c..0b9163e7 100644
|
||||
--- a/web/js/spline_editor.js
|
||||
+++ b/web/js/spline_editor.js
|
||||
@@ -1024,7 +1024,10 @@ this.lastMousePosition = { x: this.width/2, y: this.height/2 };
|
||||
this.node.contextMenu = newMenu;
|
||||
|
||||
document.addEventListener('contextmenu', function (e) {
|
||||
+ if (e.target.closest(`#points-editor-${self.node.uuid}`) ||
|
||||
+ e.target.closest('#context-menu')) {
|
||||
e.preventDefault();
|
||||
+ }
|
||||
});
|
||||
|
||||
document.addEventListener('click', function (e) {
|
||||
@@ -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,251 @@
|
||||
from .nodes.nodes import *
|
||||
from .nodes.curve_nodes import *
|
||||
from .nodes.batchcrop_nodes import *
|
||||
from .nodes.audioscheduler_nodes import *
|
||||
from .nodes.image_nodes import *
|
||||
from .nodes.intrinsic_lora_nodes import *
|
||||
from .nodes.mask_nodes import *
|
||||
from .nodes.model_optimization_nodes import *
|
||||
from .nodes.lora_nodes import *
|
||||
NODE_CONFIG = {
|
||||
#constants
|
||||
"BOOLConstant": {"class": BOOLConstant, "name": "BOOL Constant"},
|
||||
"INTConstant": {"class": INTConstant, "name": "INT Constant"},
|
||||
"FloatConstant": {"class": FloatConstant, "name": "Float Constant"},
|
||||
"StringConstant": {"class": StringConstant, "name": "String Constant"},
|
||||
"StringConstantMultiline": {"class": StringConstantMultiline, "name": "String Constant Multiline"},
|
||||
#conditioning
|
||||
"ConditioningMultiCombine": {"class": ConditioningMultiCombine, "name": "Conditioning Multi Combine"},
|
||||
"ConditioningSetMaskAndCombine": {"class": ConditioningSetMaskAndCombine, "name": "ConditioningSetMaskAndCombine"},
|
||||
"ConditioningSetMaskAndCombine3": {"class": ConditioningSetMaskAndCombine3, "name": "ConditioningSetMaskAndCombine3"},
|
||||
"ConditioningSetMaskAndCombine4": {"class": ConditioningSetMaskAndCombine4, "name": "ConditioningSetMaskAndCombine4"},
|
||||
"ConditioningSetMaskAndCombine5": {"class": ConditioningSetMaskAndCombine5, "name": "ConditioningSetMaskAndCombine5"},
|
||||
"CondPassThrough": {"class": CondPassThrough},
|
||||
#masking
|
||||
"DrawMaskOnImage": {"class": DrawMaskOnImage, "name": "Draw Mask On Image"},
|
||||
"DownloadAndLoadCLIPSeg": {"class": DownloadAndLoadCLIPSeg, "name": "(Down)load CLIPSeg"},
|
||||
"BatchCLIPSeg": {"class": BatchCLIPSeg, "name": "Batch CLIPSeg"},
|
||||
"BlockifyMask": {"class": BlockifyMask, "name": "Blockify Mask"},
|
||||
"ColorToMask": {"class": ColorToMask, "name": "Color To Mask"},
|
||||
"CreateGradientMask": {"class": CreateGradientMask, "name": "Create Gradient Mask"},
|
||||
"CreateTextMask": {"class": CreateTextMask, "name": "Create Text Mask"},
|
||||
"CreateAudioMask": {"class": CreateAudioMask, "name": "Create Audio Mask"},
|
||||
"CreateFadeMask": {"class": CreateFadeMask, "name": "Create Fade Mask"},
|
||||
"CreateFadeMaskAdvanced": {"class": CreateFadeMaskAdvanced, "name": "Create Fade Mask Advanced"},
|
||||
"CreateFluidMask": {"class": CreateFluidMask, "name": "Create Fluid Mask"},
|
||||
"CreateShapeMask": {"class": CreateShapeMask, "name": "Create Shape Mask"},
|
||||
"CreateVoronoiMask": {"class": CreateVoronoiMask, "name": "Create Voronoi Mask"},
|
||||
"CreateMagicMask": {"class": CreateMagicMask, "name": "Create Magic Mask"},
|
||||
"GetMaskSizeAndCount": {"class": GetMaskSizeAndCount, "name": "Get Mask Size & Count"},
|
||||
"GrowMaskWithBlur": {"class": GrowMaskWithBlur, "name": "Grow Mask With Blur"},
|
||||
"MaskBatchMulti": {"class": MaskBatchMulti, "name": "Mask Batch Multi"},
|
||||
"OffsetMask": {"class": OffsetMask, "name": "Offset Mask"},
|
||||
"RemapMaskRange": {"class": RemapMaskRange, "name": "Remap Mask Range"},
|
||||
"ResizeMask": {"class": ResizeMask, "name": "Resize Mask"},
|
||||
"RoundMask": {"class": RoundMask, "name": "Round Mask"},
|
||||
"SeparateMasks": {"class": SeparateMasks, "name": "Separate Masks"},
|
||||
"ConsolidateMasksKJ": {"class": ConsolidateMasksKJ, "name": "Consolidate Masks"},
|
||||
#images
|
||||
"AddLabel": {"class": AddLabel, "name": "Add Label"},
|
||||
"ColorMatch": {"class": ColorMatch, "name": "Color Match"},
|
||||
"ImageTensorList": {"class": ImageTensorList, "name": "Image Tensor List"},
|
||||
"CrossFadeImages": {"class": CrossFadeImages, "name": "Cross Fade Images"},
|
||||
"CrossFadeImagesMulti": {"class": CrossFadeImagesMulti, "name": "Cross Fade Images Multi"},
|
||||
"GetImagesFromBatchIndexed": {"class": GetImagesFromBatchIndexed, "name": "Get Images From Batch Indexed"},
|
||||
"GetImageRangeFromBatch": {"class": GetImageRangeFromBatch, "name": "Get Image or Mask Range From Batch"},
|
||||
"GetLatentRangeFromBatch": {"class": GetLatentRangeFromBatch, "name": "Get Latent Range From Batch"},
|
||||
"GetLatentSizeAndCount": {"class": GetLatentSizeAndCount, "name": "Get Latent Size & Count"},
|
||||
"GetImageSizeAndCount": {"class": GetImageSizeAndCount, "name": "Get Image Size & Count"},
|
||||
"FastPreview": {"class": FastPreview, "name": "Fast Preview"},
|
||||
"ImageBatchFilter": {"class": ImageBatchFilter, "name": "Image Batch Filter"},
|
||||
"ImageAndMaskPreview": {"class": ImageAndMaskPreview},
|
||||
"ImageAddMulti": {"class": ImageAddMulti, "name": "Image Add Multi"},
|
||||
"ImageBatchJoinWithTransition": {"class": ImageBatchJoinWithTransition, "name": "Image Batch Join With Transition"},
|
||||
"ImageBatchMulti": {"class": ImageBatchMulti, "name": "Image Batch Multi"},
|
||||
"ImageBatchRepeatInterleaving": {"class": ImageBatchRepeatInterleaving},
|
||||
"ImageBatchTestPattern": {"class": ImageBatchTestPattern, "name": "Image Batch Test Pattern"},
|
||||
"ImageConcanate": {"class": ImageConcanate, "name": "Image Concatenate"},
|
||||
"ImageConcatFromBatch": {"class": ImageConcatFromBatch, "name": "Image Concatenate From Batch"},
|
||||
"ImageConcatMulti": {"class": ImageConcatMulti, "name": "Image Concatenate Multi"},
|
||||
"ImageCropByMask": {"class": ImageCropByMask, "name": "Image Crop By Mask"},
|
||||
"ImageCropByMaskAndResize": {"class": ImageCropByMaskAndResize, "name": "Image Crop By Mask And Resize"},
|
||||
"ImageCropByMaskBatch": {"class": ImageCropByMaskBatch, "name": "Image Crop By Mask Batch"},
|
||||
"ImageUncropByMask": {"class": ImageUncropByMask, "name": "Image Uncrop By Mask"},
|
||||
"ImageBatchExtendWithOverlap": {"class": ImageBatchExtendWithOverlap, "name": "Image Batch Extend With Overlap"},
|
||||
"ImageGrabPIL": {"class": ImageGrabPIL, "name": "Image Grab PIL"},
|
||||
"ImageGridComposite2x2": {"class": ImageGridComposite2x2, "name": "Image Grid Composite 2x2"},
|
||||
"ImageGridComposite3x3": {"class": ImageGridComposite3x3, "name": "Image Grid Composite 3x3"},
|
||||
"ImageGridtoBatch": {"class": ImageGridtoBatch, "name": "Image Grid To Batch"},
|
||||
"ImageNoiseAugmentation": {"class": ImageNoiseAugmentation, "name": "Image Noise Augmentation"},
|
||||
"ImageNormalize_Neg1_To_1": {"class": ImageNormalize_Neg1_To_1, "name": "Image Normalize -1 to 1"},
|
||||
"ImagePass": {"class": ImagePass},
|
||||
"ImagePadKJ": {"class": ImagePadKJ, "name": "ImagePad KJ"},
|
||||
"ImagePadForOutpaintMasked": {"class": ImagePadForOutpaintMasked, "name": "Image Pad For Outpaint Masked"},
|
||||
"ImagePadForOutpaintTargetSize": {"class": ImagePadForOutpaintTargetSize, "name": "Image Pad For Outpaint Target Size"},
|
||||
"ImagePrepForICLora": {"class": ImagePrepForICLora, "name": "Image Prep For ICLora"},
|
||||
"ImageResizeKJ": {"class": ImageResizeKJ, "name": "Resize Image (deprecated)"},
|
||||
"ImageResizeKJv2": {"class": ImageResizeKJv2, "name": "Resize Image v2"},
|
||||
"ImageUpscaleWithModelBatched": {"class": ImageUpscaleWithModelBatched, "name": "Image Upscale With Model Batched"},
|
||||
"InsertImagesToBatchIndexed": {"class": InsertImagesToBatchIndexed, "name": "Insert Images To Batch Indexed"},
|
||||
"InsertLatentToIndexed": {"class": InsertLatentToIndex, "name": "Insert Latent To Index"},
|
||||
"LoadAndResizeImage": {"class": LoadAndResizeImage, "name": "Load & Resize Image"},
|
||||
"LoadImagesFromFolderKJ": {"class": LoadImagesFromFolderKJ, "name": "Load Images From Folder (KJ)"},
|
||||
"LoadVideosFromFolder": {"class": LoadVideosFromFolder, "name": "Load Videos From Folder"},
|
||||
"MergeImageChannels": {"class": MergeImageChannels, "name": "Merge Image Channels"},
|
||||
"PadImageBatchInterleaved": {"class": PadImageBatchInterleaved, "name": "Pad Image Batch Interleaved"},
|
||||
"PreviewAnimation": {"class": PreviewAnimation, "name": "Preview Animation"},
|
||||
"RemapImageRange": {"class": RemapImageRange, "name": "Remap Image Range"},
|
||||
"ReverseImageBatch": {"class": ReverseImageBatch, "name": "Reverse Image Batch"},
|
||||
"ReplaceImagesInBatch": {"class": ReplaceImagesInBatch, "name": "Replace Images In Batch"},
|
||||
"SaveImageWithAlpha": {"class": SaveImageWithAlpha, "name": "Save Image With Alpha"},
|
||||
"SaveImageKJ": {"class": SaveImageKJ, "name": "Save Image KJ"},
|
||||
"ShuffleImageBatch": {"class": ShuffleImageBatch, "name": "Shuffle Image Batch"},
|
||||
"SplitImageChannels": {"class": SplitImageChannels, "name": "Split Image Channels"},
|
||||
"TransitionImagesMulti": {"class": TransitionImagesMulti, "name": "Transition Images Multi"},
|
||||
"TransitionImagesInBatch": {"class": TransitionImagesInBatch, "name": "Transition Images In Batch"},
|
||||
#batch cropping
|
||||
"BatchCropFromMask": {"class": BatchCropFromMask, "name": "Batch Crop From Mask"},
|
||||
"BatchCropFromMaskAdvanced": {"class": BatchCropFromMaskAdvanced, "name": "Batch Crop From Mask Advanced"},
|
||||
"FilterZeroMasksAndCorrespondingImages": {"class": FilterZeroMasksAndCorrespondingImages},
|
||||
"InsertImageBatchByIndexes": {"class": InsertImageBatchByIndexes, "name": "Insert Image Batch By Indexes"},
|
||||
"BatchUncrop": {"class": BatchUncrop, "name": "Batch Uncrop"},
|
||||
"BatchUncropAdvanced": {"class": BatchUncropAdvanced, "name": "Batch Uncrop Advanced"},
|
||||
"SplitBboxes": {"class": SplitBboxes, "name": "Split Bboxes"},
|
||||
"BboxToInt": {"class": BboxToInt, "name": "Bbox To Int"},
|
||||
"BboxVisualize": {"class": BboxVisualize, "name": "Bbox Visualize"},
|
||||
#noise
|
||||
"GenerateNoise": {"class": GenerateNoise, "name": "Generate Noise"},
|
||||
"FlipSigmasAdjusted": {"class": FlipSigmasAdjusted, "name": "Flip Sigmas Adjusted"},
|
||||
"InjectNoiseToLatent": {"class": InjectNoiseToLatent, "name": "Inject Noise To Latent"},
|
||||
"CustomSigmas": {"class": CustomSigmas, "name": "Custom Sigmas"},
|
||||
#utility
|
||||
"StringToFloatList": {"class": StringToFloatList, "name": "String to Float List"},
|
||||
"WidgetToString": {"class": WidgetToString, "name": "Widget To String"},
|
||||
"SaveStringKJ": {"class": SaveStringKJ, "name": "Save String KJ"},
|
||||
"DummyOut": {"class": DummyOut, "name": "Dummy Out"},
|
||||
"GetLatentsFromBatchIndexed": {"class": GetLatentsFromBatchIndexed, "name": "Get Latents From Batch Indexed"},
|
||||
"ScaleBatchPromptSchedule": {"class": ScaleBatchPromptSchedule, "name": "Scale Batch Prompt Schedule"},
|
||||
"CameraPoseVisualizer": {"class": CameraPoseVisualizer, "name": "Camera Pose Visualizer"},
|
||||
"AppendStringsToList": {"class": AppendStringsToList, "name": "Append Strings To List"},
|
||||
"JoinStrings": {"class": JoinStrings, "name": "Join Strings"},
|
||||
"JoinStringMulti": {"class": JoinStringMulti, "name": "Join String Multi"},
|
||||
"SomethingToString": {"class": SomethingToString, "name": "Something To String"},
|
||||
"Sleep": {"class": Sleep, "name": "Sleep"},
|
||||
"VRAM_Debug": {"class": VRAM_Debug, "name": "VRAM Debug"},
|
||||
"SomethingToString": {"class": SomethingToString, "name": "Something To String"},
|
||||
"EmptyLatentImagePresets": {"class": EmptyLatentImagePresets, "name": "Empty Latent Image Presets"},
|
||||
"EmptyLatentImageCustomPresets": {"class": EmptyLatentImageCustomPresets, "name": "Empty Latent Image Custom Presets"},
|
||||
"ModelPassThrough": {"class": ModelPassThrough, "name": "ModelPass"},
|
||||
"ModelSaveKJ": {"class": ModelSaveKJ, "name": "Model Save KJ"},
|
||||
"SetShakkerLabsUnionControlNetType": {"class": SetShakkerLabsUnionControlNetType, "name": "Set Shakker Labs Union ControlNet Type"},
|
||||
"StyleModelApplyAdvanced": {"class": StyleModelApplyAdvanced, "name": "Style Model Apply Advanced"},
|
||||
"DiffusionModelSelector": {"class": DiffusionModelSelector, "name": "Diffusion Model Selector"},
|
||||
"LazySwitchKJ": {"class": LazySwitchKJ, "name": "Lazy Switch KJ"},
|
||||
#audioscheduler stuff
|
||||
"NormalizedAmplitudeToMask": {"class": NormalizedAmplitudeToMask},
|
||||
"NormalizedAmplitudeToFloatList": {"class": NormalizedAmplitudeToFloatList},
|
||||
"OffsetMaskByNormalizedAmplitude": {"class": OffsetMaskByNormalizedAmplitude},
|
||||
"ImageTransformByNormalizedAmplitude": {"class": ImageTransformByNormalizedAmplitude},
|
||||
"AudioConcatenate": {"class": AudioConcatenate},
|
||||
#curve nodes
|
||||
"SplineEditor": {"class": SplineEditor, "name": "Spline Editor"},
|
||||
"CreateShapeImageOnPath": {"class": CreateShapeImageOnPath, "name": "Create Shape Image On Path"},
|
||||
"CreateShapeMaskOnPath": {"class": CreateShapeMaskOnPath, "name": "Create Shape Mask On Path"},
|
||||
"CreateTextOnPath": {"class": CreateTextOnPath, "name": "Create Text On Path"},
|
||||
"CreateGradientFromCoords": {"class": CreateGradientFromCoords, "name": "Create Gradient From Coords"},
|
||||
"CutAndDragOnPath": {"class": CutAndDragOnPath, "name": "Cut And Drag On Path"},
|
||||
"GradientToFloat": {"class": GradientToFloat, "name": "Gradient To Float"},
|
||||
"WeightScheduleExtend": {"class": WeightScheduleExtend, "name": "Weight Schedule Extend"},
|
||||
"MaskOrImageToWeight": {"class": MaskOrImageToWeight, "name": "Mask Or Image To Weight"},
|
||||
"WeightScheduleConvert": {"class": WeightScheduleConvert, "name": "Weight Schedule Convert"},
|
||||
"FloatToMask": {"class": FloatToMask, "name": "Float To Mask"},
|
||||
"FloatToSigmas": {"class": FloatToSigmas, "name": "Float To Sigmas"},
|
||||
"SigmasToFloat": {"class": SigmasToFloat, "name": "Sigmas To Float"},
|
||||
"PlotCoordinates": {"class": PlotCoordinates, "name": "Plot Coordinates"},
|
||||
"InterpolateCoords": {"class": InterpolateCoords, "name": "Interpolate Coords"},
|
||||
"PointsEditor": {"class": PointsEditor, "name": "Points Editor"},
|
||||
#experimental
|
||||
"SoundReactive": {"class": SoundReactive, "name": "Sound Reactive"},
|
||||
"StableZero123_BatchSchedule": {"class": StableZero123_BatchSchedule, "name": "Stable Zero123 Batch Schedule"},
|
||||
"SV3D_BatchSchedule": {"class": SV3D_BatchSchedule, "name": "SV3D Batch Schedule"},
|
||||
"LoadResAdapterNormalization": {"class": LoadResAdapterNormalization},
|
||||
"Superprompt": {"class": Superprompt, "name": "Superprompt"},
|
||||
"GLIGENTextBoxApplyBatchCoords": {"class": GLIGENTextBoxApplyBatchCoords},
|
||||
"Intrinsic_lora_sampling": {"class": Intrinsic_lora_sampling, "name": "Intrinsic Lora Sampling"},
|
||||
"CheckpointPerturbWeights": {"class": CheckpointPerturbWeights, "name": "CheckpointPerturbWeights"},
|
||||
"Screencap_mss": {"class": Screencap_mss, "name": "Screencap mss"},
|
||||
"WebcamCaptureCV2": {"class": WebcamCaptureCV2, "name": "Webcam Capture CV2"},
|
||||
"DifferentialDiffusionAdvanced": {"class": DifferentialDiffusionAdvanced, "name": "Differential Diffusion Advanced"},
|
||||
"DiTBlockLoraLoader": {"class": DiTBlockLoraLoader, "name": "DiT Block Lora Loader"},
|
||||
"FluxBlockLoraSelect": {"class": FluxBlockLoraSelect, "name": "Flux Block Lora Select"},
|
||||
"HunyuanVideoBlockLoraSelect": {"class": HunyuanVideoBlockLoraSelect, "name": "Hunyuan Video Block Lora Select"},
|
||||
"Wan21BlockLoraSelect": {"class": Wan21BlockLoraSelect, "name": "Wan21 Block Lora Select"},
|
||||
"CustomControlNetWeightsFluxFromList": {"class": CustomControlNetWeightsFluxFromList, "name": "Custom ControlNet Weights Flux From List"},
|
||||
"CheckpointLoaderKJ": {"class": CheckpointLoaderKJ, "name": "CheckpointLoaderKJ"},
|
||||
"DiffusionModelLoaderKJ": {"class": DiffusionModelLoaderKJ, "name": "Diffusion Model Loader KJ"},
|
||||
"TorchCompileModelFluxAdvanced": {"class": TorchCompileModelFluxAdvanced, "name": "TorchCompileModelFluxAdvanced"},
|
||||
"TorchCompileModelFluxAdvancedV2": {"class": TorchCompileModelFluxAdvancedV2, "name": "TorchCompileModelFluxAdvancedV2"},
|
||||
"TorchCompileModelHyVideo": {"class": TorchCompileModelHyVideo, "name": "TorchCompileModelHyVideo"},
|
||||
"TorchCompileVAE": {"class": TorchCompileVAE, "name": "TorchCompileVAE"},
|
||||
"TorchCompileControlNet": {"class": TorchCompileControlNet, "name": "TorchCompileControlNet"},
|
||||
"PatchModelPatcherOrder": {"class": PatchModelPatcherOrder, "name": "Patch Model Patcher Order"},
|
||||
"TorchCompileLTXModel": {"class": TorchCompileLTXModel, "name": "TorchCompileLTXModel"},
|
||||
"TorchCompileCosmosModel": {"class": TorchCompileCosmosModel, "name": "TorchCompileCosmosModel"},
|
||||
"TorchCompileModelQwenImage": {"class": TorchCompileModelQwenImage, "name": "TorchCompileModelQwenImage"},
|
||||
"TorchCompileModelWanVideo": {"class": TorchCompileModelWanVideo, "name": "TorchCompileModelWanVideo"},
|
||||
"TorchCompileModelWanVideoV2": {"class": TorchCompileModelWanVideoV2, "name": "TorchCompileModelWanVideoV2"},
|
||||
"PathchSageAttentionKJ": {"class": PathchSageAttentionKJ, "name": "Patch Sage Attention KJ"},
|
||||
"LeapfusionHunyuanI2VPatcher": {"class": LeapfusionHunyuanI2V, "name": "Leapfusion Hunyuan I2V Patcher"},
|
||||
"VAELoaderKJ": {"class": VAELoaderKJ, "name": "VAELoader KJ"},
|
||||
"ScheduledCFGGuidance": {"class": ScheduledCFGGuidance, "name": "Scheduled CFG Guidance"},
|
||||
"ApplyRifleXRoPE_HunuyanVideo": {"class": ApplyRifleXRoPE_HunuyanVideo, "name": "Apply RifleXRoPE HunuyanVideo"},
|
||||
"ApplyRifleXRoPE_WanVideo": {"class": ApplyRifleXRoPE_WanVideo, "name": "Apply RifleXRoPE WanVideo"},
|
||||
"WanVideoTeaCacheKJ": {"class": WanVideoTeaCacheKJ, "name": "WanVideo Tea Cache (native)"},
|
||||
"WanVideoEnhanceAVideoKJ": {"class": WanVideoEnhanceAVideoKJ, "name": "WanVideo Enhance A Video (native)"},
|
||||
"SkipLayerGuidanceWanVideo": {"class": SkipLayerGuidanceWanVideo, "name": "Skip Layer Guidance WanVideo"},
|
||||
"TimerNodeKJ": {"class": TimerNodeKJ, "name": "Timer Node KJ"},
|
||||
"HunyuanVideoEncodeKeyframesToCond": {"class": HunyuanVideoEncodeKeyframesToCond, "name": "HunyuanVideo Encode Keyframes To Cond"},
|
||||
"CFGZeroStarAndInit": {"class": CFGZeroStarAndInit, "name": "CFG Zero Star/Init"},
|
||||
"ModelPatchTorchSettings": {"class": ModelPatchTorchSettings, "name": "Model Patch Torch Settings"},
|
||||
"WanVideoNAG": {"class": WanVideoNAG, "name": "WanVideoNAG"},
|
||||
"GGUFLoaderKJ": {"class": GGUFLoaderKJ, "name": "GGUF Loader KJ"},
|
||||
|
||||
#instance diffusion
|
||||
"CreateInstanceDiffusionTracking": {"class": CreateInstanceDiffusionTracking},
|
||||
"AppendInstanceDiffusionTracking": {"class": AppendInstanceDiffusionTracking},
|
||||
"DrawInstanceDiffusionTracking": {"class": DrawInstanceDiffusionTracking},
|
||||
|
||||
#lora
|
||||
"LoraExtractKJ": {"class": LoraExtractKJ, "name": "LoraExtractKJ"},
|
||||
"LoraReduceRankKJ": {"class": LoraReduceRank, "name": "LoraReduceRank"}
|
||||
}
|
||||
|
||||
def generate_node_mappings(node_config):
|
||||
node_class_mappings = {}
|
||||
node_display_name_mappings = {}
|
||||
|
||||
for node_name, node_info in node_config.items():
|
||||
node_class_mappings[node_name] = node_info["class"]
|
||||
node_display_name_mappings[node_name] = node_info.get("name", node_info["class"].__name__)
|
||||
|
||||
return node_class_mappings, node_display_name_mappings
|
||||
|
||||
NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS = generate_node_mappings(NODE_CONFIG)
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
||||
|
||||
WEB_DIRECTORY = "./web"
|
||||
|
||||
from aiohttp import web
|
||||
from server import PromptServer
|
||||
from pathlib import Path
|
||||
|
||||
if hasattr(PromptServer, "instance"):
|
||||
try:
|
||||
# NOTE: we add an extra static path to avoid comfy mechanism
|
||||
# that loads every script in web.
|
||||
PromptServer.instance.app.add_routes(
|
||||
[web.static("/kjweb_async", (Path(__file__).parent.absolute() / "kjweb_async").as_posix())]
|
||||
)
|
||||
except:
|
||||
pass
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
[project]
|
||||
name = "comfyui-kjnodes"
|
||||
description = "Various quality of life -nodes for ComfyUI, mostly just visual stuff to improve usability."
|
||||
version = "1.1.9"
|
||||
license = {file = "LICENSE"}
|
||||
dependencies = ["librosa", "numpy", "pillow>=10.3.0", "scipy", "color-matcher", "matplotlib", "huggingface_hub"]
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/kijai/ComfyUI-KJNodes"
|
||||
# Used by Comfy Registry https://comfyregistry.org
|
||||
|
||||
[tool.comfy]
|
||||
PublisherId = "kijai"
|
||||
DisplayName = "ComfyUI-KJNodes"
|
||||
Icon = "https://avatars.githubusercontent.com/u/40791699"
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"sources": [
|
||||
{
|
||||
"id": "kj",
|
||||
"file": "LICENSE",
|
||||
"local_file": "kj__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/c661baadd9683c0033cd2a6ad90157c6d099a6c2/LICENSE",
|
||||
"commit": "c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "kj",
|
||||
"file": "__init__.py",
|
||||
"local_file": "kj____init__.py",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/c661baadd9683c0033cd2a6ad90157c6d099a6c2/__init__.py",
|
||||
"commit": "c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
"sha256": "43852013e532d868d7e3b5ca5ba5bb2e6697d7333f2ade4a4cbab517b976adc6"
|
||||
},
|
||||
{
|
||||
"id": "kj",
|
||||
"file": "nodes/image_nodes.py",
|
||||
"local_file": "kj__nodes__image_nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/c661baadd9683c0033cd2a6ad90157c6d099a6c2/nodes/image_nodes.py",
|
||||
"commit": "c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
"sha256": "1b8f83356f515e0efef20daa2c82c095503133ef84f1931782b43d176ec92609"
|
||||
},
|
||||
{
|
||||
"id": "kj",
|
||||
"file": "pyproject.toml",
|
||||
"local_file": "kj__pyproject.toml",
|
||||
"url": "https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/c661baadd9683c0033cd2a6ad90157c6d099a6c2/pyproject.toml",
|
||||
"commit": "c661baadd9683c0033cd2a6ad90157c6d099a6c2",
|
||||
"sha256": "7470f4f0517453e5244095ced2f8f94c1c836f10b4b34c056358b6cbd69af7f9"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "LICENSE",
|
||||
"local_file": "core__LICENSE",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a/LICENSE",
|
||||
"commit": "8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"file": "nodes.py",
|
||||
"local_file": "core__nodes.py",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a/nodes.py",
|
||||
"commit": "8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a",
|
||||
"sha256": "c922eb57ed906a6fad7832c2fcb259b4f06533fc6dce7927b3e1d87e078f34cc"
|
||||
},
|
||||
{
|
||||
"id": "vhs",
|
||||
"file": "LICENSE",
|
||||
"local_file": "vhs__LICENSE",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_commit_binding": "unknown"
|
||||
},
|
||||
{
|
||||
"id": "vhs",
|
||||
"file": "__init__.py",
|
||||
"local_file": "vhs____init__.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f",
|
||||
"git_commit_binding": "unknown"
|
||||
},
|
||||
{
|
||||
"id": "vhs",
|
||||
"file": "pyproject.toml",
|
||||
"local_file": "vhs__pyproject.toml",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "10c69eeae93c21cdfc22cb63f39ba4ce83bcd459725fcf6beb0298276541a1c2",
|
||||
"git_commit_binding": "unknown"
|
||||
},
|
||||
{
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/nodes.py",
|
||||
"local_file": "vhs__videohelpersuite__nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
|
||||
"git_commit_binding": "unknown"
|
||||
},
|
||||
{
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/load_video_nodes.py",
|
||||
"local_file": "vhs__videohelpersuite__load_video_nodes.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26",
|
||||
"git_commit_binding": "unknown"
|
||||
},
|
||||
{
|
||||
"id": "vhs",
|
||||
"file": "videohelpersuite/utils.py",
|
||||
"local_file": "vhs__videohelpersuite__utils.py",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504",
|
||||
"git_commit_binding": "unknown"
|
||||
},
|
||||
{
|
||||
"id": "vhs",
|
||||
"file": "video_formats/h264-mp4.json",
|
||||
"local_file": "vhs__video_formats__h264-mp4.json",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8",
|
||||
"git_commit_binding": "unknown"
|
||||
},
|
||||
{
|
||||
"id": "vhs",
|
||||
"file": "web/js/VHS.core.js",
|
||||
"local_file": "vhs__web__js__VHS.core.js",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
|
||||
"git_commit_binding": "unknown"
|
||||
},
|
||||
{
|
||||
"id": "vhs",
|
||||
"file": "web/js/videoinfo.js",
|
||||
"local_file": "vhs__web__js__videoinfo.js",
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"sha256": "29db4800fe2b86303619bd1768b97aabdad0fe300db93da7135bdffa43f07970",
|
||||
"git_commit_binding": "unknown"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
|
||||
"sha256": "f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
|
||||
"members": [
|
||||
{
|
||||
"file": ".github/workflows/publish.yml",
|
||||
"sha256": "1faa29b17a3bac2e2d6b6e001bfdfc03d9950d186e4ecf1c26d0a0d5948de73b"
|
||||
},
|
||||
{
|
||||
"file": ".gitignore",
|
||||
"sha256": "9a2d340506c5bfc8a9272424e3d502c0093d7b48a1146459c4b9442a9f4474f7"
|
||||
},
|
||||
{
|
||||
"file": "LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
|
||||
},
|
||||
{
|
||||
"file": "README.md",
|
||||
"sha256": "3bc23811a88c62bf188e584b2f6b75b9d88e5ceeb1a24f66684555ef07bef6bc"
|
||||
},
|
||||
{
|
||||
"file": "__init__.py",
|
||||
"sha256": "d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f"
|
||||
},
|
||||
{
|
||||
"file": "pyproject.toml",
|
||||
"sha256": "10c69eeae93c21cdfc22cb63f39ba4ce83bcd459725fcf6beb0298276541a1c2"
|
||||
},
|
||||
{
|
||||
"file": "requirements.txt",
|
||||
"sha256": "dbf7158d81418ace41097db503440bb70f41b6250d5d0b3ab3b3c86271b7b2a3"
|
||||
},
|
||||
{
|
||||
"file": "testframework/README.md",
|
||||
"sha256": "0591f3ea7557f7893618016d9c10824e2c67ea61b14d20946a081ed204f3e083"
|
||||
},
|
||||
{
|
||||
"file": "testframework/__init__.py",
|
||||
"sha256": "62512d3505004d4d264fd10ab02634b69dc8074a87f87896cce33802d1fc878c"
|
||||
},
|
||||
{
|
||||
"file": "testframework/server.py",
|
||||
"sha256": "bc24382424b1409edf25b637beb4a698ce1476b68189d2cac3a019a4a76e8045"
|
||||
},
|
||||
{
|
||||
"file": "testframework/web/js/testRunner.js",
|
||||
"sha256": "1f8aa0a3411204363ed86f6df27f8620a8630227986cd73bfe7b7d70d8a5514f"
|
||||
},
|
||||
{
|
||||
"file": "tests/README.md",
|
||||
"sha256": "f067ce90b2c1bcd04f19db3cd38b24757040ec0d07945ac493f318f5e45a32af"
|
||||
},
|
||||
{
|
||||
"file": "tests/audio.json",
|
||||
"sha256": "acb0c5d03c19b0d7d930a4fc2e5eed310c0eeac2e53523c877178d14b846f48e"
|
||||
},
|
||||
{
|
||||
"file": "tests/batch4x4.json",
|
||||
"sha256": "c9a9896b34b644c95849a4fc993c837b3cd3aab49fcf1589c89d225e4d931383"
|
||||
},
|
||||
{
|
||||
"file": "tests/converted-format-input.json",
|
||||
"sha256": "0c1e2879da768fcbd9b95b0bee4259e38bd6ec1f7866115d3cc956d48f97b729"
|
||||
},
|
||||
{
|
||||
"file": "tests/converted-input.json",
|
||||
"sha256": "9d1c38b3c6db83a0cac1f728d6a8394e369706c3cf77a4f61dc344398ccb9158"
|
||||
},
|
||||
{
|
||||
"file": "tests/loop.json",
|
||||
"sha256": "32e3b1317dcfa0127a667377f77a9bd0d06f1004668bc7dbeaa6d2a32018a3bd"
|
||||
},
|
||||
{
|
||||
"file": "tests/old-prores.json",
|
||||
"sha256": "0bba95e48d0c649f96ab100cc84f0f27f5644c7d617a57fb6184eb6e2adc30a1"
|
||||
},
|
||||
{
|
||||
"file": "tests/old-vae-conversion.json",
|
||||
"sha256": "58f369cedc6ccff64e08ce675f1599b6d4f0e47eb4c36a8e3c88db85fe137884"
|
||||
},
|
||||
{
|
||||
"file": "tests/simple.json",
|
||||
"sha256": "3f4f0efd1db24db2b47ba81d279c6e0d0bc07ed3ac043095ac0e9475ad9dc4f4"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/16bit-png.json",
|
||||
"sha256": "a6be0eb5d81375b4d5b02b36610aef14e1738aa212ccfb22f8353ca2e2c4ad86"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/8bit-png.json",
|
||||
"sha256": "a7a133243e6c6de1b7016909ee78d61ac1ea26dc0bf064d6fb1a243a731a1c82"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/ProRes.json",
|
||||
"sha256": "781d0128a79edf0474de19c48ab5ebc128f2e022533c68435266150eb82ee2c0"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/av1-webm.json",
|
||||
"sha256": "3d94f848cada030ff738715997fb7503f39f69cdb9850452581c8896b951087e"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/ffmpeg-gif.json",
|
||||
"sha256": "ff56425b7520b106310fa12022ff7fc26becbc202cc822c899e159351033abb7"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/ffv1-mkv.json",
|
||||
"sha256": "dfcb43344bb7d8546f5cc7089444c9947cb1ff21bd6372e2e110b79ab173b078"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/gifski.json",
|
||||
"sha256": "1e939f3df9a1ba029cd20db86da9bf998ba835ff828f7d7428ea990e7ad1439e"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/h264-mp4.json",
|
||||
"sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/h265-mp4.json",
|
||||
"sha256": "e2a72bdcfcbf07e73e146716e89e0182ea4bb249530758d586e91ed45da6393c"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/nvenc_av1-mp4.json",
|
||||
"sha256": "dffe86c90af9ca37729b510f824f36791356f5acf5747a323da619d9cb2f2d11"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/nvenc_h264-mp4.json",
|
||||
"sha256": "c93c8a0f2549e20f9f2d746052d633eeaa00187734571a4e327e0672112069dd"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/nvenc_hevc-mp4.json",
|
||||
"sha256": "3a6ad85bc69bd35f7888ee44d3d9e5076138443a7b8dfae6a4267f2236676e31"
|
||||
},
|
||||
{
|
||||
"file": "video_formats/webm.json",
|
||||
"sha256": "04a0c5ac4a14d73baae933e230b37257857214c31492adc2b990f8009892379d"
|
||||
},
|
||||
{
|
||||
"file": "videohelpersuite/batched_nodes.py",
|
||||
"sha256": "c822651e28c775a35da1441e2b1b2d7cd664fcc6649ba9d2c9b87faa8ac00edb"
|
||||
},
|
||||
{
|
||||
"file": "videohelpersuite/documentation.py",
|
||||
"sha256": "0d648daf98831545ee33f50a53ead7f12779d6630b1a001f7d9ea8418b4d90e0"
|
||||
},
|
||||
{
|
||||
"file": "videohelpersuite/image_latent_nodes.py",
|
||||
"sha256": "da2abefefef8d44d1a927417866205149cb85dc6a41cab7f542bd332e96d5390"
|
||||
},
|
||||
{
|
||||
"file": "videohelpersuite/latent_preview.py",
|
||||
"sha256": "92536a154893c176a81917ae271d60399409caa65d30b81aa737f4cfe9cfecf7"
|
||||
},
|
||||
{
|
||||
"file": "videohelpersuite/load_images_nodes.py",
|
||||
"sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4"
|
||||
},
|
||||
{
|
||||
"file": "videohelpersuite/load_video_nodes.py",
|
||||
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26"
|
||||
},
|
||||
{
|
||||
"file": "videohelpersuite/logger.py",
|
||||
"sha256": "2e2e9ed679410a170346c572a867d9a654327388ba6ea6a242215c590772e668"
|
||||
},
|
||||
{
|
||||
"file": "videohelpersuite/nodes.py",
|
||||
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365"
|
||||
},
|
||||
{
|
||||
"file": "videohelpersuite/server.py",
|
||||
"sha256": "7f6831f3095c09a0c8076b8676c2bdf966cbb3ed2884b58da6e571e989b806fc"
|
||||
},
|
||||
{
|
||||
"file": "videohelpersuite/utils.py",
|
||||
"sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504"
|
||||
},
|
||||
{
|
||||
"file": "web/js/VHS.core.js",
|
||||
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb"
|
||||
},
|
||||
{
|
||||
"file": "web/js/videoinfo.js",
|
||||
"sha256": "29db4800fe2b86303619bd1768b97aabdad0fe300db93da7135bdffa43f07970"
|
||||
}
|
||||
],
|
||||
"git_commit_binding": "unknown",
|
||||
"note": "发布包同字节不等于提交绑定"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"changelog":"","createdAt":"2025-09-18T01:19:24.314272Z","dependencies":["opencv-python","imageio-ffmpeg"],"deprecated":false,"downloadUrl":"https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip","id":"63d6d713-b45b-4e4e-8c25-18f9d9d37ade","node_id":"comfyui-videohelpersuite","status":"NodeVersionStatusActive","supported_accelerators":[],"supported_comfyui_frontend_version":"","supported_comfyui_version":"","supported_os":[],"tags":[],"version":"1.7.7"}
|
||||
@@ -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,9 @@
|
||||
from .videohelpersuite.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
||||
import folder_paths
|
||||
from .videohelpersuite.server import server
|
||||
from .videohelpersuite import documentation
|
||||
from .videohelpersuite import latent_preview
|
||||
|
||||
WEB_DIRECTORY = "./web"
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|
||||
documentation.format_descriptions(NODE_CLASS_MAPPINGS)
|
||||
@@ -0,0 +1,15 @@
|
||||
[project]
|
||||
name = "comfyui-videohelpersuite"
|
||||
description = "Nodes related to video workflows"
|
||||
version = "1.7.7"
|
||||
license = { file = "LICENSE" }
|
||||
dependencies = ["opencv-python", "imageio-ffmpeg"]
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"
|
||||
|
||||
# Used by Comfy Registry https://comfyregistry.org
|
||||
[tool.comfy]
|
||||
PublisherId = "kosinkadink"
|
||||
DisplayName = "ComfyUI-VideoHelperSuite"
|
||||
Icon = ""
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"main_pass":
|
||||
[
|
||||
"-n", "-c:v", "libx264",
|
||||
"-pix_fmt", ["pix_fmt", ["yuv420p", "yuv420p10le"]],
|
||||
"-crf", ["crf","INT", {"default": 19, "min": 0, "max": 100, "step": 1}],
|
||||
"-vf", "scale=out_color_matrix=bt709",
|
||||
"-color_range", "tv", "-colorspace", "bt709", "-color_primaries", "bt709", "-color_trc", "bt709"
|
||||
],
|
||||
"fake_trc": "bt709",
|
||||
"audio_pass": ["-c:a", "aac"],
|
||||
"save_metadata": ["save_metadata", "BOOLEAN", {"default": true}],
|
||||
"trim_to_audio": ["trim_to_audio", "BOOLEAN", {"default": false}],
|
||||
"extension": "mp4"
|
||||
}
|
||||
@@ -0,0 +1,671 @@
|
||||
import os
|
||||
import itertools
|
||||
import numpy as np
|
||||
import torch
|
||||
from PIL import Image, ImageOps
|
||||
import cv2
|
||||
import psutil
|
||||
import subprocess
|
||||
import re
|
||||
import time
|
||||
|
||||
import folder_paths
|
||||
from comfy.utils import common_upscale, ProgressBar
|
||||
import nodes
|
||||
from comfy.k_diffusion.utils import FolderOfImages
|
||||
from .logger import logger
|
||||
from .utils import BIGMAX, DIMMAX, calculate_file_hash, get_sorted_dir_files_from_directory,\
|
||||
lazy_get_audio, hash_path, validate_path, strip_path, try_download_video, \
|
||||
is_url, imageOrLatent, ffmpeg_path, ENCODE_ARGS, floatOrInt
|
||||
|
||||
|
||||
video_extensions = ['webm', 'mp4', 'mkv', 'gif', 'mov']
|
||||
|
||||
VHSLoadFormats = {
|
||||
'None': {},
|
||||
'AnimateDiff': {'target_rate': 8, 'dim': (8,0,512,512)},
|
||||
'Mochi': {'target_rate': 24, 'dim': (16,0,848,480), 'frames':(6,1)},
|
||||
'LTXV': {'target_rate': 24, 'dim': (32,0,768,512), 'frames':(8,1)},
|
||||
'Hunyuan': {'target_rate': 24, 'dim': (16,0,848,480), 'frames':(4,1)},
|
||||
'Cosmos': {'target_rate': 24, 'dim': (16,0,1280,704), 'frames':(8,1)},
|
||||
'Wan': {'target_rate': 16, 'dim': (8,0,832,480), 'frames':(4,1)},
|
||||
}
|
||||
"""
|
||||
External plugins may add additional formats to nodes.VHSLoadFormats
|
||||
In addition to shorthand options, direct widget names will map a given dict to options.
|
||||
Adding a third arguement to a frames tuple can enable strict checks on number
|
||||
of loaded frames, i.e (8,1,True)
|
||||
"""
|
||||
if not hasattr(nodes, 'VHSLoadFormats'):
|
||||
nodes.VHSLoadFormats = {}
|
||||
|
||||
def get_load_formats():
|
||||
#TODO: check if {**extra_config.VHSLoafFormats, **VHSLoadFormats} has minimum version
|
||||
formats = {}
|
||||
formats.update(nodes.VHSLoadFormats)
|
||||
formats.update(VHSLoadFormats)
|
||||
return (list(formats.keys()),
|
||||
{'default': 'AnimateDiff', 'formats': formats})
|
||||
def get_format(format):
|
||||
if format in VHSLoadFormats:
|
||||
return VHSLoadFormats[format]
|
||||
return nodes.VHSLoadFormats.get(format, {})
|
||||
|
||||
def is_gif(filename) -> bool:
|
||||
file_parts = filename.split('.')
|
||||
return len(file_parts) > 1 and file_parts[-1] == "gif"
|
||||
|
||||
|
||||
def target_size(width, height, custom_width, custom_height, downscale_ratio=8) -> tuple[int, int]:
|
||||
if downscale_ratio is None:
|
||||
downscale_ratio = 8
|
||||
if custom_width == 0 and custom_height == 0:
|
||||
pass
|
||||
elif custom_height == 0:
|
||||
height *= custom_width/width
|
||||
width = custom_width
|
||||
elif custom_width == 0:
|
||||
width *= custom_height/height
|
||||
height = custom_height
|
||||
else:
|
||||
width = custom_width
|
||||
height = custom_height
|
||||
width = int(width/downscale_ratio + 0.5) * downscale_ratio
|
||||
height = int(height/downscale_ratio + 0.5) * downscale_ratio
|
||||
return (width, height)
|
||||
|
||||
def cv_frame_generator(video, force_rate, frame_load_cap, skip_first_frames,
|
||||
select_every_nth, meta_batch=None, unique_id=None):
|
||||
video_cap = cv2.VideoCapture(video)
|
||||
if not video_cap.isOpened() or not video_cap.grab():
|
||||
raise ValueError(f"{video} could not be loaded with cv.")
|
||||
|
||||
# extract video metadata
|
||||
fps = video_cap.get(cv2.CAP_PROP_FPS)
|
||||
width = int(video_cap.get(cv2.CAP_PROP_FRAME_WIDTH))
|
||||
height = int(video_cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
||||
total_frames = int(video_cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
||||
duration = total_frames / fps
|
||||
|
||||
width = 0
|
||||
|
||||
if width <=0 or height <=0:
|
||||
_, frame = video_cap.retrieve()
|
||||
height, width, _ = frame.shape
|
||||
|
||||
# set video_cap to look at start_index frame
|
||||
total_frame_count = 0
|
||||
total_frames_evaluated = -1
|
||||
frames_added = 0
|
||||
base_frame_time = 1 / fps
|
||||
prev_frame = None
|
||||
|
||||
if force_rate == 0:
|
||||
target_frame_time = base_frame_time
|
||||
else:
|
||||
target_frame_time = 1/force_rate
|
||||
|
||||
if total_frames > 0:
|
||||
if force_rate != 0:
|
||||
yieldable_frames = int(total_frames / fps * force_rate)
|
||||
else:
|
||||
yieldable_frames = total_frames
|
||||
if select_every_nth:
|
||||
yieldable_frames //= select_every_nth
|
||||
if frame_load_cap != 0:
|
||||
yieldable_frames = min(frame_load_cap, yieldable_frames)
|
||||
else:
|
||||
yieldable_frames = 0
|
||||
yield (width, height, fps, duration, total_frames, target_frame_time, yieldable_frames)
|
||||
pbar = ProgressBar(yieldable_frames)
|
||||
time_offset=target_frame_time
|
||||
while video_cap.isOpened():
|
||||
if time_offset < target_frame_time:
|
||||
is_returned = video_cap.grab()
|
||||
# if didn't return frame, video has ended
|
||||
if not is_returned:
|
||||
break
|
||||
time_offset += base_frame_time
|
||||
if time_offset < target_frame_time:
|
||||
continue
|
||||
time_offset -= target_frame_time
|
||||
# if not at start_index, skip doing anything with frame
|
||||
total_frame_count += 1
|
||||
if total_frame_count <= skip_first_frames:
|
||||
continue
|
||||
else:
|
||||
total_frames_evaluated += 1
|
||||
|
||||
# if should not be selected, skip doing anything with frame
|
||||
if total_frames_evaluated%select_every_nth != 0:
|
||||
continue
|
||||
|
||||
# opencv loads images in BGR format (yuck), so need to convert to RGB for ComfyUI use
|
||||
# follow up: can videos ever have an alpha channel?
|
||||
# To my testing: No. opencv has no support for alpha
|
||||
unused, frame = video_cap.retrieve()
|
||||
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
|
||||
# convert frame to comfyui's expected format
|
||||
# TODO: frame contains no exif information. Check if opencv2 has already applied
|
||||
frame = np.array(frame, dtype=np.float32)
|
||||
torch.from_numpy(frame).div_(255)
|
||||
if prev_frame is not None:
|
||||
inp = yield prev_frame
|
||||
if inp is not None:
|
||||
#ensure the finally block is called
|
||||
return
|
||||
prev_frame = frame
|
||||
frames_added += 1
|
||||
if pbar is not None:
|
||||
pbar.update_absolute(frames_added, yieldable_frames)
|
||||
# if cap exists and we've reached it, stop processing frames
|
||||
if frame_load_cap > 0 and frames_added >= frame_load_cap:
|
||||
break
|
||||
if meta_batch is not None:
|
||||
meta_batch.inputs.pop(unique_id)
|
||||
meta_batch.has_closed_inputs = True
|
||||
if prev_frame is not None:
|
||||
yield prev_frame
|
||||
|
||||
def ffmpeg_frame_generator(video, force_rate, frame_load_cap, start_time,
|
||||
custom_width, custom_height, downscale_ratio=8,
|
||||
meta_batch=None, unique_id=None):
|
||||
args_input = ["-i", video]
|
||||
args_dummy = [ffmpeg_path] + args_input +['-c', 'copy', '-frames:v', '1', "-f", "null", "-"]
|
||||
size_base = None
|
||||
fps_base = None
|
||||
try:
|
||||
dummy_res = subprocess.run(args_dummy, stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.PIPE, check=True)
|
||||
except subprocess.CalledProcessError as e:
|
||||
raise Exception("An error occurred in the ffmpeg subprocess:\n" \
|
||||
+ e.stderr.decode(*ENCODE_ARGS))
|
||||
lines = dummy_res.stderr.decode(*ENCODE_ARGS)
|
||||
if "Video: vp9 " in lines:
|
||||
args_input = ["-c:v", "libvpx-vp9"] + args_input
|
||||
args_dummy = [ffmpeg_path] + args_input +['-c', 'copy', '-frames:v', '1', "-f", "null", "-"]
|
||||
try:
|
||||
dummy_res = subprocess.run(args_dummy, stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.PIPE, check=True)
|
||||
except subprocess.CalledProcessError as e:
|
||||
raise Exception("An error occurred in the ffmpeg subprocess:\n" \
|
||||
+ e.stderr.decode(*ENCODE_ARGS))
|
||||
lines = dummy_res.stderr.decode(*ENCODE_ARGS)
|
||||
|
||||
for line in lines.split('\n'):
|
||||
match = re.search("^ *Stream .* Video.*, ([1-9]|\\d{2,})x(\\d+)", line)
|
||||
if match is not None:
|
||||
size_base = [int(match.group(1)), int(match.group(2))]
|
||||
fps_match = re.search(", ([\\d\\.]+) fps", line)
|
||||
if fps_match:
|
||||
fps_base = float(fps_match.group(1))
|
||||
else:
|
||||
fps_base = 1
|
||||
alpha = re.search("(yuva|rgba|bgra)", line) is not None
|
||||
break
|
||||
else:
|
||||
raise Exception("Failed to parse video/image information. FFMPEG output:\n" + lines)
|
||||
|
||||
durs_match = re.search("Duration: (\\d+:\\d+:\\d+\\.\\d+),", lines)
|
||||
if durs_match:
|
||||
durs = durs_match.group(1).split(':')
|
||||
duration = int(durs[0])*360 + int(durs[1])*60 + float(durs[2])
|
||||
else:
|
||||
duration = 0
|
||||
|
||||
if start_time > 0:
|
||||
if start_time > 4:
|
||||
post_seek = ['-ss', '4']
|
||||
args_input = ['-ss', str(start_time - 4)] + args_input
|
||||
else:
|
||||
post_seek = ['-ss', str(start_time)]
|
||||
else:
|
||||
post_seek = []
|
||||
args_all_frames = [ffmpeg_path, "-v", "error", "-an"] + \
|
||||
args_input + ["-pix_fmt", "rgba64le"] + post_seek
|
||||
|
||||
vfilters = []
|
||||
if force_rate != 0:
|
||||
vfilters.append("fps=fps="+str(force_rate))
|
||||
if custom_width != 0 or custom_height != 0:
|
||||
size = target_size(size_base[0], size_base[1], custom_width,
|
||||
custom_height, downscale_ratio=downscale_ratio)
|
||||
ar = float(size[0])/float(size[1])
|
||||
if abs(size_base[0]*ar-size_base[1]) >= 1:
|
||||
#Aspect ratio is changed. Crop to new aspect ratio before scale
|
||||
vfilters.append(f"crop=if(gt({ar}\\,a)\\,iw\\,ih*{ar}):if(gt({ar}\\,a)\\,iw/{ar}\\,ih)")
|
||||
size_arg = ':'.join(map(str,size))
|
||||
vfilters.append(f"scale={size_arg}")
|
||||
else:
|
||||
size = size_base
|
||||
if len(vfilters) > 0:
|
||||
args_all_frames += ["-vf", ",".join(vfilters)]
|
||||
yieldable_frames = (force_rate or fps_base)*duration
|
||||
if frame_load_cap > 0:
|
||||
args_all_frames += ["-frames:v", str(frame_load_cap)]
|
||||
yieldable_frames = min(yieldable_frames, frame_load_cap)
|
||||
yield (size_base[0], size_base[1], fps_base, duration, fps_base * duration,
|
||||
1/(force_rate or fps_base), yieldable_frames, size[0], size[1], alpha)
|
||||
|
||||
args_all_frames += ["-f", "rawvideo", "-"]
|
||||
pbar = ProgressBar(yieldable_frames)
|
||||
try:
|
||||
with subprocess.Popen(args_all_frames, stdout=subprocess.PIPE) as proc:
|
||||
#Manually buffer enough bytes for an image
|
||||
bpi = size[0] * size[1] * 8
|
||||
current_bytes = bytearray(bpi)
|
||||
current_offset=0
|
||||
prev_frame = None
|
||||
while True:
|
||||
bytes_read = proc.stdout.read(bpi - current_offset)
|
||||
if bytes_read is None:#sleep to wait for more data
|
||||
time.sleep(.1)
|
||||
continue
|
||||
if len(bytes_read) == 0:#EOF
|
||||
break
|
||||
current_bytes[current_offset:len(bytes_read)] = bytes_read
|
||||
current_offset+=len(bytes_read)
|
||||
if current_offset == bpi:
|
||||
if prev_frame is not None:
|
||||
yield prev_frame
|
||||
pbar.update(1)
|
||||
prev_frame = np.frombuffer(current_bytes, dtype=np.dtype(np.uint16).newbyteorder("<")).reshape(size[1], size[0], 4) / (2**16-1)
|
||||
if not alpha:
|
||||
prev_frame = prev_frame[:, :, :-1]
|
||||
current_offset = 0
|
||||
except BrokenPipeError as e:
|
||||
raise Exception("An error occured in the ffmpeg subprocess:\n" \
|
||||
+ proc.stderr.read().decode(*ENCODE_ARGS))
|
||||
if meta_batch is not None:
|
||||
meta_batch.inputs.pop(unique_id)
|
||||
meta_batch.has_closed_inputs = True
|
||||
if prev_frame is not None:
|
||||
yield prev_frame
|
||||
|
||||
#Python 3.12 adds an itertools.batched, but it's easily replicated for legacy support
|
||||
def batched(it, n):
|
||||
while batch := tuple(itertools.islice(it, n)):
|
||||
yield batch
|
||||
def batched_vae_encode(images, vae, frames_per_batch):
|
||||
for batch in batched(images, frames_per_batch):
|
||||
image_batch = torch.from_numpy(np.array(batch))
|
||||
yield from vae.encode(image_batch).numpy()
|
||||
def resized_cv_frame_gen(custom_width, custom_height, downscale_ratio, **kwargs):
|
||||
gen = cv_frame_generator(**kwargs)
|
||||
info = next(gen)
|
||||
width, height = info[0], info[1]
|
||||
frames_per_batch = (1920 * 1080 * 16) // (width * height) or 1
|
||||
if kwargs.get('meta_batch', None) is not None:
|
||||
frames_per_batch = min(frames_per_batch, kwargs['meta_batch'].frames_per_batch)
|
||||
if custom_width != 0 or custom_height != 0 or downscale_ratio is not None:
|
||||
new_size = target_size(width, height, custom_width, custom_height, downscale_ratio)
|
||||
yield (*info, new_size[0], new_size[1], False)
|
||||
if new_size[0] != width or new_size[1] != height:
|
||||
def rescale(frame):
|
||||
s = torch.from_numpy(np.fromiter(frame, np.dtype((np.float32, (height, width, 3)))))
|
||||
s = s.movedim(-1,1)
|
||||
s = common_upscale(s, new_size[0], new_size[1], "lanczos", "center")
|
||||
return s.movedim(1,-1).numpy()
|
||||
yield from itertools.chain.from_iterable(map(rescale, batched(gen, frames_per_batch)))
|
||||
return
|
||||
else:
|
||||
yield (*info, info[0], info[1], False)
|
||||
yield from gen
|
||||
|
||||
def load_video(meta_batch=None, unique_id=None, memory_limit_mb=None, vae=None,
|
||||
generator=resized_cv_frame_gen, format='None', **kwargs):
|
||||
if 'force_size' in kwargs:
|
||||
kwargs.pop('force_size')
|
||||
logger.warn("force_size has been removed. Did you reload the webpage after updating?")
|
||||
format = get_format(format)
|
||||
kwargs['video'] = strip_path(kwargs['video'])
|
||||
if vae is not None:
|
||||
downscale_ratio = getattr(vae, "downscale_ratio", 8)
|
||||
else:
|
||||
downscale_ratio = format.get('dim', (1,))[0]
|
||||
if meta_batch is None or unique_id not in meta_batch.inputs:
|
||||
gen = generator(meta_batch=meta_batch, unique_id=unique_id, downscale_ratio=downscale_ratio, **kwargs)
|
||||
(width, height, fps, duration, total_frames, target_frame_time, yieldable_frames, new_width, new_height, alpha) = next(gen)
|
||||
|
||||
if meta_batch is not None:
|
||||
meta_batch.inputs[unique_id] = (gen, width, height, fps, duration, total_frames, target_frame_time, yieldable_frames, new_width, new_height, alpha)
|
||||
if yieldable_frames:
|
||||
meta_batch.total_frames = min(meta_batch.total_frames, yieldable_frames)
|
||||
|
||||
else:
|
||||
(gen, width, height, fps, duration, total_frames, target_frame_time, yieldable_frames, new_width, new_height, alpha) = meta_batch.inputs[unique_id]
|
||||
|
||||
memory_limit = None
|
||||
if memory_limit_mb is not None:
|
||||
memory_limit *= 2 ** 20
|
||||
else:
|
||||
#TODO: verify if garbage collection should be performed here.
|
||||
#leaves ~128 MB unreserved for safety
|
||||
try:
|
||||
memory_limit = (psutil.virtual_memory().available + psutil.swap_memory().free) - 2 ** 27
|
||||
except:
|
||||
logger.warn("Failed to calculate available memory. Memory load limit has been disabled")
|
||||
memory_limit = BIGMAX
|
||||
if vae is not None:
|
||||
#space required to load as f32, exist as latent with wiggle room, decode to f32
|
||||
max_loadable_frames = int(memory_limit//(width*height*3*(4+4+1/10)))
|
||||
else:
|
||||
#TODO: use better estimate for when vae is not None
|
||||
#Consider completely ignoring for load_latent case?
|
||||
max_loadable_frames = int(memory_limit//(width*height*3*(.1)))
|
||||
if meta_batch is not None:
|
||||
if 'frames' in format:
|
||||
if meta_batch.frames_per_batch % format['frames'][0] != format['frames'][1]:
|
||||
error = (meta_batch.frames_per_batch - format['frames'][1]) % format['frames'][0]
|
||||
suggested = meta_batch.frames_per_batch - error
|
||||
if error > format['frames'][0] / 2:
|
||||
suggested += format['frames'][0]
|
||||
raise RuntimeError(f"The chosen frames per batch is incompatible with the selected format. Try {suggested}")
|
||||
if meta_batch.frames_per_batch > max_loadable_frames:
|
||||
raise RuntimeError(f"Meta Batch set to {meta_batch.frames_per_batch} frames but only {max_loadable_frames} can fit in memory")
|
||||
gen = itertools.islice(gen, meta_batch.frames_per_batch)
|
||||
else:
|
||||
original_gen = gen
|
||||
gen = itertools.islice(gen, max_loadable_frames)
|
||||
frames_per_batch = (1920 * 1080 * 16) // (width * height) or 1
|
||||
if vae is not None:
|
||||
gen = batched_vae_encode(gen, vae, frames_per_batch)
|
||||
vw,vh = new_width//downscale_ratio, new_height//downscale_ratio
|
||||
channels = getattr(vae, 'latent_channels', 4)
|
||||
images = torch.from_numpy(np.fromiter(gen, np.dtype((np.float32, (channels,vh,vw)))))
|
||||
else:
|
||||
#Some minor wizardry to eliminate a copy and reduce max memory by a factor of ~2
|
||||
images = torch.from_numpy(np.fromiter(gen, np.dtype((np.float32, (new_height, new_width, 4 if alpha else 3)))))
|
||||
if meta_batch is None and memory_limit is not None:
|
||||
try:
|
||||
next(original_gen)
|
||||
raise RuntimeError(f"Memory limit hit after loading {len(images)} frames. Stopping execution.")
|
||||
except StopIteration:
|
||||
pass
|
||||
if len(images) == 0:
|
||||
raise RuntimeError("No frames generated")
|
||||
if 'frames' in format and len(images) % format['frames'][0] != format['frames'][1]:
|
||||
err_msg = f"The number of frames loaded {len(images)}, does not match the requirements of the currently selected format."
|
||||
if len(format['frames']) > 2 and format['frames'][2]:
|
||||
raise RuntimeError(err_msg)
|
||||
div, mod = format['frames'][:2]
|
||||
frames = (len(images) - mod) // div * div + mod
|
||||
images = images[:frames]
|
||||
#Commenting out log message since it's displayed in UI. consider further
|
||||
#logger.warn(err_msg + f" Output has been truncated to {len(images)} frames.")
|
||||
if 'start_time' in kwargs:
|
||||
start_time = kwargs['start_time']
|
||||
else:
|
||||
start_time = kwargs['skip_first_frames'] * target_frame_time
|
||||
target_frame_time *= kwargs.get('select_every_nth', 1)
|
||||
#Setup lambda for lazy audio capture
|
||||
audio = lazy_get_audio(kwargs['video'], start_time, kwargs['frame_load_cap']*target_frame_time)
|
||||
#Adjust target_frame_time for select_every_nth
|
||||
video_info = {
|
||||
"source_fps": fps,
|
||||
"source_frame_count": total_frames,
|
||||
"source_duration": duration,
|
||||
"source_width": width,
|
||||
"source_height": height,
|
||||
"loaded_fps": 1/target_frame_time,
|
||||
"loaded_frame_count": len(images),
|
||||
"loaded_duration": len(images) * target_frame_time,
|
||||
"loaded_width": new_width,
|
||||
"loaded_height": new_height,
|
||||
}
|
||||
if vae is None:
|
||||
return (images, len(images), audio, video_info)
|
||||
else:
|
||||
return ({"samples": images}, len(images), audio, video_info)
|
||||
|
||||
|
||||
|
||||
class LoadVideoUpload:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
input_dir = folder_paths.get_input_directory()
|
||||
files = []
|
||||
for f in os.listdir(input_dir):
|
||||
if os.path.isfile(os.path.join(input_dir, f)):
|
||||
file_parts = f.split('.')
|
||||
if len(file_parts) > 1 and (file_parts[-1].lower() in video_extensions):
|
||||
files.append(f)
|
||||
return {"required": {
|
||||
"video": (sorted(files),),
|
||||
"force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}),
|
||||
"custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}),
|
||||
"custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}),
|
||||
"frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}),
|
||||
"skip_first_frames": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}),
|
||||
"select_every_nth": ("INT", {"default": 1, "min": 1, "max": BIGMAX, "step": 1}),
|
||||
},
|
||||
"optional": {
|
||||
"meta_batch": ("VHS_BatchManager",),
|
||||
"vae": ("VAE",),
|
||||
"format": get_load_formats(),
|
||||
},
|
||||
"hidden": {
|
||||
"force_size": "STRING",
|
||||
"unique_id": "UNIQUE_ID"
|
||||
},
|
||||
}
|
||||
|
||||
CATEGORY = "Video Helper Suite 🎥🅥🅗🅢"
|
||||
|
||||
RETURN_TYPES = (imageOrLatent, "INT", "AUDIO", "VHS_VIDEOINFO")
|
||||
RETURN_NAMES = ("IMAGE", "frame_count", "audio", "video_info")
|
||||
|
||||
FUNCTION = "load_video"
|
||||
|
||||
def load_video(self, **kwargs):
|
||||
kwargs['video'] = folder_paths.get_annotated_filepath(strip_path(kwargs['video']))
|
||||
return load_video(**kwargs)
|
||||
|
||||
@classmethod
|
||||
def IS_CHANGED(s, video, **kwargs):
|
||||
image_path = folder_paths.get_annotated_filepath(video)
|
||||
return calculate_file_hash(image_path)
|
||||
|
||||
@classmethod
|
||||
def VALIDATE_INPUTS(s, video):
|
||||
if not folder_paths.exists_annotated_filepath(video):
|
||||
return "Invalid video file: {}".format(video)
|
||||
return True
|
||||
|
||||
|
||||
class LoadVideoPath:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"video": ("STRING", {"placeholder": "X://insert/path/here.mp4", "vhs_path_extensions": video_extensions}),
|
||||
"force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}),
|
||||
"custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}),
|
||||
"custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}),
|
||||
"frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}),
|
||||
"skip_first_frames": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}),
|
||||
"select_every_nth": ("INT", {"default": 1, "min": 1, "max": BIGMAX, "step": 1}),
|
||||
},
|
||||
"optional": {
|
||||
"meta_batch": ("VHS_BatchManager",),
|
||||
"vae": ("VAE",),
|
||||
"format": get_load_formats(),
|
||||
},
|
||||
"hidden": {
|
||||
"force_size": "STRING",
|
||||
"unique_id": "UNIQUE_ID"
|
||||
},
|
||||
}
|
||||
|
||||
CATEGORY = "Video Helper Suite 🎥🅥🅗🅢"
|
||||
|
||||
RETURN_TYPES = (imageOrLatent, "INT", "AUDIO", "VHS_VIDEOINFO")
|
||||
RETURN_NAMES = ("IMAGE", "frame_count", "audio", "video_info")
|
||||
|
||||
FUNCTION = "load_video"
|
||||
|
||||
def load_video(self, **kwargs):
|
||||
if kwargs['video'] is None or validate_path(kwargs['video']) != True:
|
||||
raise Exception("video is not a valid path: " + kwargs['video'])
|
||||
if is_url(kwargs['video']):
|
||||
kwargs['video'] = try_download_video(kwargs['video']) or kwargs['video']
|
||||
return load_video(**kwargs)
|
||||
|
||||
@classmethod
|
||||
def IS_CHANGED(s, video, **kwargs):
|
||||
return hash_path(video)
|
||||
|
||||
@classmethod
|
||||
def VALIDATE_INPUTS(s, video):
|
||||
return validate_path(video, allow_none=True)
|
||||
|
||||
class LoadVideoFFmpegUpload:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
input_dir = folder_paths.get_input_directory()
|
||||
files = []
|
||||
for f in os.listdir(input_dir):
|
||||
if os.path.isfile(os.path.join(input_dir, f)):
|
||||
file_parts = f.split('.')
|
||||
if len(file_parts) > 1 and (file_parts[-1].lower() in video_extensions):
|
||||
files.append(f)
|
||||
return {"required": {
|
||||
"video": (sorted(files),),
|
||||
"force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}),
|
||||
"custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}),
|
||||
"custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}),
|
||||
"frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}),
|
||||
"start_time": ("FLOAT", {"default": 0, "min": 0, "max": BIGMAX, "step": .001, "widgetType": "VHSTIMESTAMP"}),
|
||||
},
|
||||
"optional": {
|
||||
"meta_batch": ("VHS_BatchManager",),
|
||||
"vae": ("VAE",),
|
||||
"format": get_load_formats(),
|
||||
},
|
||||
"hidden": {
|
||||
"force_size": "STRING",
|
||||
"unique_id": "UNIQUE_ID"
|
||||
|
||||
},
|
||||
}
|
||||
|
||||
CATEGORY = "Video Helper Suite 🎥🅥🅗🅢"
|
||||
|
||||
RETURN_TYPES = (imageOrLatent, "MASK", "AUDIO", "VHS_VIDEOINFO")
|
||||
RETURN_NAMES = ("IMAGE", "mask", "audio", "video_info")
|
||||
|
||||
FUNCTION = "load_video"
|
||||
|
||||
def load_video(self, **kwargs):
|
||||
kwargs['video'] = folder_paths.get_annotated_filepath(strip_path(kwargs['video']))
|
||||
image, _, audio, video_info = load_video(**kwargs, generator=ffmpeg_frame_generator)
|
||||
if image.size(3) == 4:
|
||||
return (image[:,:,:,:3], 1-image[:,:,:,3], audio, video_info)
|
||||
return (image, torch.zeros(image.size(0), 64, 64, device="cpu"), audio, video_info)
|
||||
|
||||
@classmethod
|
||||
def IS_CHANGED(s, video, **kwargs):
|
||||
image_path = folder_paths.get_annotated_filepath(video)
|
||||
return calculate_file_hash(image_path)
|
||||
|
||||
@classmethod
|
||||
def VALIDATE_INPUTS(s, video):
|
||||
if not folder_paths.exists_annotated_filepath(video):
|
||||
return "Invalid video file: {}".format(video)
|
||||
return True
|
||||
|
||||
|
||||
class LoadVideoFFmpegPath:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"video": ("STRING", {"placeholder": "X://insert/path/here.mp4", "vhs_path_extensions": video_extensions}),
|
||||
"force_rate": (floatOrInt, {"default": 0, "min": 0, "max": 60, "step": 1, "disable": 0}),
|
||||
"custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}),
|
||||
"custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, 'disable': 0}),
|
||||
"frame_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1, "disable": 0}),
|
||||
"start_time": ("FLOAT", {"default": 0, "min": 0, "max": BIGMAX, "step": .001, "widgetType": "VHSTIMESTAMP"}),
|
||||
},
|
||||
"optional": {
|
||||
"meta_batch": ("VHS_BatchManager",),
|
||||
"vae": ("VAE",),
|
||||
"format": get_load_formats(),
|
||||
},
|
||||
"hidden": {
|
||||
"force_size": "STRING",
|
||||
"unique_id": "UNIQUE_ID"
|
||||
},
|
||||
}
|
||||
|
||||
CATEGORY = "Video Helper Suite 🎥🅥🅗🅢"
|
||||
|
||||
RETURN_TYPES = (imageOrLatent, "MASK", "AUDIO", "VHS_VIDEOINFO")
|
||||
RETURN_NAMES = ("IMAGE", "mask", "audio", "video_info")
|
||||
|
||||
FUNCTION = "load_video"
|
||||
|
||||
def load_video(self, **kwargs):
|
||||
if kwargs['video'] is None or validate_path(kwargs['video']) != True:
|
||||
raise Exception("video is not a valid path: " + kwargs['video'])
|
||||
if is_url(kwargs['video']):
|
||||
kwargs['video'] = try_download_video(kwargs['video']) or kwargs['video']
|
||||
image, _, audio, video_info = load_video(**kwargs, generator=ffmpeg_frame_generator)
|
||||
if isinstance(image, dict):
|
||||
return (image, None, audio, video_info)
|
||||
if image.size(3) == 4:
|
||||
return (image[:,:,:,:3], 1-image[:,:,:,3], audio, video_info)
|
||||
return (image, torch.zeros(image.size(0), 64, 64, device="cpu"), audio, video_info)
|
||||
|
||||
@classmethod
|
||||
def IS_CHANGED(s, video, **kwargs):
|
||||
return hash_path(video)
|
||||
|
||||
@classmethod
|
||||
def VALIDATE_INPUTS(s, video):
|
||||
return validate_path(video, allow_none=True)
|
||||
|
||||
class LoadImagePath:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"image": ("STRING", {"placeholder": "X://insert/path/here.png", "vhs_path_extensions": list(FolderOfImages.IMG_EXTENSIONS)}),
|
||||
"custom_width": ("INT", {"default": 0, "min": 0, "max": DIMMAX, "step": 8, 'disable': 0}),
|
||||
"custom_height": ("INT", {"default": 0, "min": 0, "max": DIMMAX, "step": 8, 'disable': 0}),
|
||||
},
|
||||
"optional": {
|
||||
"vae": ("VAE",),
|
||||
},
|
||||
"hidden": {
|
||||
"force_size": "STRING",
|
||||
},
|
||||
}
|
||||
|
||||
CATEGORY = "Video Helper Suite 🎥🅥🅗🅢"
|
||||
|
||||
RETURN_TYPES = (imageOrLatent, "MASK")
|
||||
RETURN_NAMES = ("IMAGE", "mask")
|
||||
|
||||
FUNCTION = "load_image"
|
||||
|
||||
def load_image(self, **kwargs):
|
||||
if kwargs['image'] is None or validate_path(kwargs['image']) != True:
|
||||
raise Exception("image is not a valid path: " + kwargs['image'])
|
||||
kwargs.update({'video': kwargs['image'], 'force_rate': 0, 'frame_load_cap': 0,
|
||||
'start_time': 0})
|
||||
kwargs.pop('image')
|
||||
image, _, _, _ = load_video(**kwargs, generator=ffmpeg_frame_generator)
|
||||
if isinstance(image, dict):
|
||||
return (image, None)
|
||||
if image.size(3) == 4:
|
||||
return (image[:,:,:,:3], 1-image[:,:,:,3])
|
||||
return (image, torch.zeros(image.size(0), 64, 64, device="cpu"))
|
||||
|
||||
@classmethod
|
||||
def IS_CHANGED(s, image, **kwargs):
|
||||
return hash_path(image)
|
||||
|
||||
@classmethod
|
||||
def VALIDATE_INPUTS(s, image):
|
||||
return validate_path(image, allow_none=True)
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,426 @@
|
||||
import hashlib
|
||||
import os
|
||||
from typing import Iterable
|
||||
import shutil
|
||||
import subprocess
|
||||
import re
|
||||
import time
|
||||
from collections.abc import Mapping
|
||||
from typing import Union
|
||||
import functools
|
||||
import torch
|
||||
from torch import Tensor
|
||||
|
||||
import server
|
||||
from .logger import logger
|
||||
import folder_paths
|
||||
|
||||
BIGMIN = -(2**53-1)
|
||||
BIGMAX = (2**53-1)
|
||||
|
||||
DIMMAX = 8192
|
||||
|
||||
ENCODE_ARGS = ("utf-8", 'backslashreplace')
|
||||
|
||||
def ffmpeg_suitability(path):
|
||||
try:
|
||||
version = subprocess.run([path, "-version"], check=True,
|
||||
capture_output=True).stdout.decode(*ENCODE_ARGS)
|
||||
except:
|
||||
return 0
|
||||
score = 0
|
||||
#rough layout of the importance of various features
|
||||
simple_criterion = [("libvpx", 20),("264",10), ("265",3),
|
||||
("svtav1",5),("libopus", 1)]
|
||||
for criterion in simple_criterion:
|
||||
if version.find(criterion[0]) >= 0:
|
||||
score += criterion[1]
|
||||
#obtain rough compile year from copyright information
|
||||
copyright_index = version.find('2000-2')
|
||||
if copyright_index >= 0:
|
||||
copyright_year = version[copyright_index+6:copyright_index+9]
|
||||
if copyright_year.isnumeric():
|
||||
score += int(copyright_year)
|
||||
return score
|
||||
|
||||
class MultiInput(str):
|
||||
def __new__(cls, string, allowed_types="*"):
|
||||
res = super().__new__(cls, string)
|
||||
res.allowed_types=allowed_types
|
||||
return res
|
||||
def __ne__(self, other):
|
||||
if self.allowed_types == "*" or other == "*":
|
||||
return False
|
||||
return other not in self.allowed_types
|
||||
imageOrLatent = MultiInput("IMAGE", ["IMAGE", "LATENT"])
|
||||
floatOrInt = MultiInput("FLOAT", ["FLOAT", "INT"])
|
||||
|
||||
class ContainsAll(dict):
|
||||
def __contains__(self, other):
|
||||
return True
|
||||
def __getitem__(self, key):
|
||||
return super().get(key, (None, {}))
|
||||
|
||||
if "VHS_FORCE_FFMPEG_PATH" in os.environ:
|
||||
ffmpeg_path = os.environ.get("VHS_FORCE_FFMPEG_PATH")
|
||||
else:
|
||||
ffmpeg_paths = []
|
||||
try:
|
||||
from imageio_ffmpeg import get_ffmpeg_exe
|
||||
imageio_ffmpeg_path = get_ffmpeg_exe()
|
||||
ffmpeg_paths.append(imageio_ffmpeg_path)
|
||||
except:
|
||||
if "VHS_USE_IMAGEIO_FFMPEG" in os.environ:
|
||||
raise
|
||||
logger.warn("Failed to import imageio_ffmpeg")
|
||||
if "VHS_USE_IMAGEIO_FFMPEG" in os.environ:
|
||||
ffmpeg_path = imageio_ffmpeg_path
|
||||
else:
|
||||
system_ffmpeg = shutil.which("ffmpeg")
|
||||
if system_ffmpeg is not None:
|
||||
ffmpeg_paths.append(system_ffmpeg)
|
||||
if os.path.isfile("ffmpeg"):
|
||||
ffmpeg_paths.append(os.path.abspath("ffmpeg"))
|
||||
if os.path.isfile("ffmpeg.exe"):
|
||||
ffmpeg_paths.append(os.path.abspath("ffmpeg.exe"))
|
||||
if len(ffmpeg_paths) == 0:
|
||||
logger.error("No valid ffmpeg found.")
|
||||
ffmpeg_path = None
|
||||
elif len(ffmpeg_paths) == 1:
|
||||
#Evaluation of suitability isn't required, can take sole option
|
||||
#to reduce startup time
|
||||
ffmpeg_path = ffmpeg_paths[0]
|
||||
else:
|
||||
ffmpeg_path = max(ffmpeg_paths, key=ffmpeg_suitability)
|
||||
gifski_path = os.environ.get("VHS_GIFSKI", None)
|
||||
if gifski_path is None:
|
||||
gifski_path = os.environ.get("JOV_GIFSKI", None)
|
||||
if gifski_path is None:
|
||||
gifski_path = shutil.which("gifski")
|
||||
ytdl_path = os.environ.get("VHS_YTDL", None) or shutil.which('yt-dlp') \
|
||||
or shutil.which('youtube-dl')
|
||||
download_history = {}
|
||||
def try_download_video(url):
|
||||
if ytdl_path is None:
|
||||
return None
|
||||
if url in download_history:
|
||||
return download_history[url]
|
||||
os.makedirs(folder_paths.get_temp_directory(), exist_ok=True)
|
||||
#Format information could be added to only download audio for Load Audio,
|
||||
#but this gets hairy if same url is also used for video.
|
||||
#Best to just always keep defaults
|
||||
#dl_format = ['-f', 'ba'] if is_audio else []
|
||||
try:
|
||||
res = subprocess.run([ytdl_path, "--print", "after_move:filepath",
|
||||
"-P", folder_paths.get_temp_directory(), url],
|
||||
capture_output=True, check=True)
|
||||
#strip newline
|
||||
file = res.stdout.decode(*ENCODE_ARGS)[:-1]
|
||||
except subprocess.CalledProcessError as e:
|
||||
raise Exception("An error occurred in the yt-dl process:\n" \
|
||||
+ e.stderr.decode(*ENCODE_ARGS))
|
||||
file = None
|
||||
download_history[url] = file
|
||||
return file
|
||||
|
||||
def is_safe_path(path, strict=False):
|
||||
if "VHS_STRICT_PATHS" not in os.environ and not strict:
|
||||
return True
|
||||
basedir = os.path.abspath('.')
|
||||
try:
|
||||
common_path = os.path.commonpath([basedir, path])
|
||||
except:
|
||||
#Different drive on windows
|
||||
return False
|
||||
return common_path == basedir
|
||||
|
||||
def get_sorted_dir_files_from_directory(directory: str, skip_first_images: int=0, select_every_nth: int=1, extensions: Iterable=None):
|
||||
directory = strip_path(directory)
|
||||
dir_files = os.listdir(directory)
|
||||
dir_files = sorted(dir_files)
|
||||
dir_files = [os.path.join(directory, x) for x in dir_files]
|
||||
dir_files = list(filter(lambda filepath: os.path.isfile(filepath), dir_files))
|
||||
# filter by extension, if needed
|
||||
if extensions is not None:
|
||||
extensions = list(extensions)
|
||||
new_dir_files = []
|
||||
for filepath in dir_files:
|
||||
ext = "." + filepath.split(".")[-1]
|
||||
if ext.lower() in extensions:
|
||||
new_dir_files.append(filepath)
|
||||
dir_files = new_dir_files
|
||||
# start at skip_first_images
|
||||
dir_files = dir_files[skip_first_images:]
|
||||
dir_files = dir_files[0::select_every_nth]
|
||||
return dir_files
|
||||
|
||||
|
||||
# modified from https://stackoverflow.com/questions/22058048/hashing-a-file-in-python
|
||||
def calculate_file_hash(filename: str, hash_every_n: int = 1):
|
||||
#Larger video files were taking >.5 seconds to hash even when cached,
|
||||
#so instead the modified time from the filesystem is used as a hash
|
||||
h = hashlib.sha256()
|
||||
h.update(filename.encode())
|
||||
h.update(str(os.path.getmtime(filename)).encode())
|
||||
return h.hexdigest()
|
||||
|
||||
prompt_queue = server.PromptServer.instance.prompt_queue
|
||||
def requeue_workflow_unchecked():
|
||||
"""Requeues the current workflow without checking for multiple requeues"""
|
||||
currently_running = prompt_queue.currently_running
|
||||
(_, _, prompt, extra_data, outputs_to_execute) = next(iter(currently_running.values()))
|
||||
|
||||
#Ensure batch_managers are marked stale
|
||||
prompt = prompt.copy()
|
||||
for uid in prompt:
|
||||
if prompt[uid]['class_type'] == 'VHS_BatchManager':
|
||||
prompt[uid]['inputs']['requeue'] = prompt[uid]['inputs'].get('requeue',0)+1
|
||||
|
||||
#execution.py has guards for concurrency, but server doesn't.
|
||||
#TODO: Check that this won't be an issue
|
||||
number = -server.PromptServer.instance.number
|
||||
server.PromptServer.instance.number += 1
|
||||
prompt_id = str(server.uuid.uuid4())
|
||||
prompt_queue.put((number, prompt_id, prompt, extra_data, outputs_to_execute))
|
||||
|
||||
requeue_guard = [None, 0, 0, {}]
|
||||
def requeue_workflow(requeue_required=(-1,True)):
|
||||
assert(len(prompt_queue.currently_running) == 1)
|
||||
global requeue_guard
|
||||
(run_number, _, prompt, _, _) = next(iter(prompt_queue.currently_running.values()))
|
||||
if requeue_guard[0] != run_number:
|
||||
#Calculate a count of how many outputs are managed by a batch manager
|
||||
managed_outputs=0
|
||||
for bm_uid in prompt:
|
||||
if prompt[bm_uid]['class_type'] == 'VHS_BatchManager':
|
||||
for output_uid in prompt:
|
||||
if prompt[output_uid]['class_type'] in ["VHS_VideoCombine"]:
|
||||
for inp in prompt[output_uid]['inputs'].values():
|
||||
if inp == [bm_uid, 0]:
|
||||
managed_outputs+=1
|
||||
requeue_guard = [run_number, 0, managed_outputs, {}]
|
||||
requeue_guard[1] = requeue_guard[1]+1
|
||||
requeue_guard[3][requeue_required[0]] = requeue_required[1]
|
||||
if requeue_guard[1] == requeue_guard[2] and max(requeue_guard[3].values()):
|
||||
requeue_workflow_unchecked()
|
||||
|
||||
def get_audio(file, start_time=0, duration=0):
|
||||
args = [ffmpeg_path, "-i", file]
|
||||
if start_time > 0:
|
||||
args += ["-ss", str(start_time)]
|
||||
if duration > 0:
|
||||
args += ["-t", str(duration)]
|
||||
try:
|
||||
#TODO: scan for sample rate and maintain
|
||||
res = subprocess.run(args + ["-f", "f32le", "-"],
|
||||
capture_output=True, check=True)
|
||||
audio = torch.frombuffer(bytearray(res.stdout), dtype=torch.float32)
|
||||
match = re.search(', (\\d+) Hz, (\\w+), ',res.stderr.decode(*ENCODE_ARGS))
|
||||
except subprocess.CalledProcessError as e:
|
||||
raise Exception(f"VHS failed to extract audio from {file}:\n" \
|
||||
+ e.stderr.decode(*ENCODE_ARGS))
|
||||
if match:
|
||||
ar = int(match.group(1))
|
||||
#NOTE: Just throwing an error for other channel types right now
|
||||
#Will deal with issues if they come
|
||||
ac = {"mono": 1, "stereo": 2}[match.group(2)]
|
||||
else:
|
||||
ar = 44100
|
||||
ac = 2
|
||||
audio = audio.reshape((-1,ac)).transpose(0,1).unsqueeze(0)
|
||||
return {'waveform': audio, 'sample_rate': ar}
|
||||
|
||||
class LazyAudioMap(Mapping):
|
||||
def __init__(self, file, start_time, duration):
|
||||
self.file = file
|
||||
self.start_time=start_time
|
||||
self.duration=duration
|
||||
self._dict=None
|
||||
def __getitem__(self, key):
|
||||
if self._dict is None:
|
||||
self._dict = get_audio(self.file, self.start_time, self.duration)
|
||||
return self._dict[key]
|
||||
def __iter__(self):
|
||||
if self._dict is None:
|
||||
self._dict = get_audio(self.file, self.start_time, self.duration)
|
||||
return iter(self._dict)
|
||||
def __len__(self):
|
||||
if self._dict is None:
|
||||
self._dict = get_audio(self.file, self.start_time, self.duration)
|
||||
return len(self._dict)
|
||||
def lazy_get_audio(file, start_time=0, duration=0, **kwargs):
|
||||
return LazyAudioMap(file, start_time, duration)
|
||||
|
||||
def is_url(url):
|
||||
return url.split("://")[0] in ["http", "https"]
|
||||
|
||||
def validate_sequence(path):
|
||||
#Check if path is a valid ffmpeg sequence that points to at least one file
|
||||
(path, file) = os.path.split(path)
|
||||
if not os.path.isdir(path):
|
||||
return False
|
||||
match = re.search('%0?\\d+d', file)
|
||||
if not match:
|
||||
return False
|
||||
seq = match.group()
|
||||
if seq == '%d':
|
||||
seq = '\\\\d+'
|
||||
else:
|
||||
seq = '\\\\d{%s}' % seq[1:-1]
|
||||
file_matcher = re.compile(re.sub('%0?\\d+d', seq, file))
|
||||
for file in os.listdir(path):
|
||||
if file_matcher.fullmatch(file):
|
||||
return True
|
||||
return False
|
||||
|
||||
def strip_path(path):
|
||||
#This leaves whitespace inside quotes and only a single "
|
||||
#thus ' ""test"' -> '"test'
|
||||
#consider path.strip(string.whitespace+"\"")
|
||||
#or weightier re.fullmatch("[\\s\"]*(.+?)[\\s\"]*", path).group(1)
|
||||
path = path.strip()
|
||||
if path.startswith("\""):
|
||||
path = path[1:]
|
||||
if path.endswith("\""):
|
||||
path = path[:-1]
|
||||
return path
|
||||
def hash_path(path):
|
||||
if path is None:
|
||||
return "input"
|
||||
if is_url(path):
|
||||
return "url"
|
||||
if not os.path.isfile(path):
|
||||
return "DNE"
|
||||
return calculate_file_hash(strip_path(path))
|
||||
|
||||
|
||||
def validate_path(path, allow_none=False, allow_url=True):
|
||||
if path is None:
|
||||
return allow_none
|
||||
if is_url(path):
|
||||
#Probably not feasible to check if url resolves here
|
||||
if not allow_url:
|
||||
return "URLs are unsupported for this path"
|
||||
return is_safe_path(path)
|
||||
if not os.path.isfile(strip_path(path)):
|
||||
return "Invalid file path: {}".format(path)
|
||||
return is_safe_path(path)
|
||||
|
||||
|
||||
def validate_index(index: int, length: int=0, is_range: bool=False, allow_negative=False, allow_missing=False) -> int:
|
||||
# if part of range, do nothing
|
||||
if is_range:
|
||||
return index
|
||||
# otherwise, validate index
|
||||
# validate not out of range - only when latent_count is passed in
|
||||
if length > 0 and index > length-1 and not allow_missing:
|
||||
raise IndexError(f"Index '{index}' out of range for {length} item(s).")
|
||||
# if negative, validate not out of range
|
||||
if index < 0:
|
||||
if not allow_negative:
|
||||
raise IndexError(f"Negative indeces not allowed, but was '{index}'.")
|
||||
conv_index = length+index
|
||||
if conv_index < 0 and not allow_missing:
|
||||
raise IndexError(f"Index '{index}', converted to '{conv_index}' out of range for {length} item(s).")
|
||||
index = conv_index
|
||||
return index
|
||||
|
||||
|
||||
def convert_to_index_int(raw_index: str, length: int=0, is_range: bool=False, allow_negative=False, allow_missing=False) -> int:
|
||||
try:
|
||||
return validate_index(int(raw_index), length=length, is_range=is_range, allow_negative=allow_negative, allow_missing=allow_missing)
|
||||
except ValueError as e:
|
||||
raise ValueError(f"Index '{raw_index}' must be an integer.", e)
|
||||
|
||||
|
||||
def convert_str_to_indexes(indexes_str: str, length: int=0, allow_missing=False) -> list[int]:
|
||||
if not indexes_str:
|
||||
return []
|
||||
int_indexes = list(range(0, length))
|
||||
allow_negative = length > 0
|
||||
chosen_indexes = []
|
||||
# parse string - allow positive ints, negative ints, and ranges separated by ':'
|
||||
groups = indexes_str.split(",")
|
||||
groups = [g.strip() for g in groups]
|
||||
for g in groups:
|
||||
# parse range of indeces (e.g. 2:16)
|
||||
if ':' in g:
|
||||
index_range = g.split(":", 2)
|
||||
index_range = [r.strip() for r in index_range]
|
||||
|
||||
start_index = index_range[0]
|
||||
if len(start_index) > 0:
|
||||
start_index = convert_to_index_int(start_index, length=length, is_range=True, allow_negative=allow_negative, allow_missing=allow_missing)
|
||||
else:
|
||||
start_index = 0
|
||||
end_index = index_range[1]
|
||||
if len(end_index) > 0:
|
||||
end_index = convert_to_index_int(end_index, length=length, is_range=True, allow_negative=allow_negative, allow_missing=allow_missing)
|
||||
else:
|
||||
end_index = length
|
||||
# support step as well, to allow things like reversing, every-other, etc.
|
||||
step = 1
|
||||
if len(index_range) > 2:
|
||||
step = index_range[2]
|
||||
if len(step) > 0:
|
||||
step = convert_to_index_int(step, length=length, is_range=True, allow_negative=True, allow_missing=True)
|
||||
else:
|
||||
step = 1
|
||||
# if latents were passed in, base indeces on known latent count
|
||||
if len(int_indexes) > 0:
|
||||
chosen_indexes.extend(int_indexes[start_index:end_index][::step])
|
||||
# otherwise, assume indeces are valid
|
||||
else:
|
||||
chosen_indexes.extend(list(range(start_index, end_index, step)))
|
||||
# parse individual indeces
|
||||
else:
|
||||
chosen_indexes.append(convert_to_index_int(g, length=length, allow_negative=allow_negative, allow_missing=allow_missing))
|
||||
return chosen_indexes
|
||||
|
||||
|
||||
def select_indexes(input_obj: Union[Tensor, list], idxs: list):
|
||||
if type(input_obj) == Tensor:
|
||||
return input_obj[idxs]
|
||||
else:
|
||||
return [input_obj[i] for i in idxs]
|
||||
|
||||
def merge_filter_args(args, ftype="-vf"):
|
||||
#TODO This doesn't account for filter_complex
|
||||
#Will likely need to convert all filters to filter complex in the future
|
||||
#But that requires source/output deduplication
|
||||
try:
|
||||
start_index = args.index(ftype)+1
|
||||
index = start_index
|
||||
while True:
|
||||
index = args.index(ftype, index)
|
||||
args[start_index] += ',' + args[index+1]
|
||||
args.pop(index)
|
||||
args.pop(index)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
def select_indexes_from_str(input_obj: Union[Tensor, list], indexes: str, err_if_missing=True, err_if_empty=True):
|
||||
real_idxs = convert_str_to_indexes(indexes, len(input_obj), allow_missing=not err_if_missing)
|
||||
if err_if_empty and len(real_idxs) == 0:
|
||||
raise Exception(f"Nothing was selected based on indexes found in '{indexes}'.")
|
||||
return select_indexes(input_obj, real_idxs)
|
||||
|
||||
def hook(obj, attr):
|
||||
def dec(f):
|
||||
f = functools.update_wrapper(f, getattr(obj,attr))
|
||||
setattr(obj,attr,f)
|
||||
return f
|
||||
return dec
|
||||
|
||||
def cached(duration):
|
||||
def dec(f):
|
||||
cached_ret = None
|
||||
cache_time = 0
|
||||
def cached_func():
|
||||
nonlocal cache_time, cached_ret
|
||||
if time.time() > cache_time + duration or cached_ret is None:
|
||||
cache_time = time.time()
|
||||
cached_ret = f()
|
||||
return cached_ret
|
||||
return cached_func
|
||||
return dec
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,101 @@
|
||||
import { app } from '../../../scripts/app.js'
|
||||
|
||||
|
||||
function getVideoMetadata(file) {
|
||||
return new Promise((r) => {
|
||||
const reader = new FileReader();
|
||||
reader.onload = (event) => {
|
||||
const videoData = new Uint8Array(event.target.result);
|
||||
const dataView = new DataView(videoData.buffer);
|
||||
|
||||
let decoder = new TextDecoder();
|
||||
// Check for known valid magic strings
|
||||
if (dataView.getUint32(0) == 0x1A45DFA3) {
|
||||
//webm/mkv (both use EBML/Matroska format)
|
||||
//see http://wiki.webmproject.org/webm-metadata/global-metadata
|
||||
//and https://www.matroska.org/technical/elements.html
|
||||
//contrary to specs, tag seems consistently at start
|
||||
//COMMENT + 0x4487 + packed length?
|
||||
//length 0x8d8 becomes 0x48d8
|
||||
//
|
||||
//description for variable length ints https://github.com/ietf-wg-cellar/ebml-specification/blob/master/specification.markdown
|
||||
let offset = 4 + 8; //COMMENT is 7 chars + 1 to realign
|
||||
while(offset < videoData.length-16) {
|
||||
//Check for text tags
|
||||
if (dataView.getUint16(offset) == 0x4487) {
|
||||
//check that name of tag is COMMENT
|
||||
const name = String.fromCharCode(...videoData.slice(offset-7,offset));
|
||||
if (name === "COMMENT") {
|
||||
let vint = dataView.getUint32(offset+2);
|
||||
let n_octets = Math.clz32(vint)+1;
|
||||
if (n_octets < 4) {//250MB sanity cutoff
|
||||
let length = (vint >> (8*(4-n_octets))) & ~(1 << (7*n_octets));
|
||||
const content = decoder.decode(videoData.slice(offset+2+n_octets, offset+2+n_octets+length));
|
||||
let json = JSON.parse(content);
|
||||
r(json);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
offset+=1;
|
||||
}
|
||||
} else if (dataView.getUint32(4) == 0x66747970 && dataView.getUint32(8) == 0x69736F6D) {
|
||||
//mp4
|
||||
//see https://developer.apple.com/documentation/quicktime-file-format
|
||||
//Seems to make no guarantee for alignment
|
||||
let offset = videoData.length-4;
|
||||
while (offset > 16) {//rough safe guess
|
||||
if (dataView.getUint32(offset) == 0x64617461) {//any data tag
|
||||
if (dataView.getUint32(offset - 8) == 0xa9636d74) {//cmt data tag
|
||||
let type = dataView.getUint32(offset+4); //seemingly 1
|
||||
let locale = dataView.getUint32(offset+8); //seemingly 0
|
||||
let size = dataView.getUint32(offset-4) - 4*4;
|
||||
const content = decoder.decode(videoData.slice(offset+12, offset+12+size));
|
||||
const json = JSON.parse(content);
|
||||
r(json);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
offset-=1;
|
||||
}
|
||||
} else {
|
||||
console.error("Unknown magic: " + dataView.getUint32(0))
|
||||
}
|
||||
r();
|
||||
return;
|
||||
};
|
||||
|
||||
reader.readAsArrayBuffer(file);
|
||||
});
|
||||
}
|
||||
function isVideoFile(file) {
|
||||
if (file?.name?.endsWith(".webm")) {
|
||||
return true;
|
||||
}
|
||||
if (file?.name?.endsWith(".mp4")) {
|
||||
return true;
|
||||
}
|
||||
if (file?.name?.endsWith(".mkv")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
let originalHandleFile = app.handleFile;
|
||||
app.handleFile = handleFile;
|
||||
let fileInput = document.getElementById("comfy-file-input")
|
||||
//hijack comfy-file-input to allow webm/mp4/mkv
|
||||
fileInput.accept += ",video/webm,video/mp4,video/x-matroska";
|
||||
|
||||
async function handleFile(file) {
|
||||
if (file?.type?.startsWith("video/") || isVideoFile(file)) {
|
||||
const videoInfo = await getVideoMetadata(file);
|
||||
if (videoInfo?.workflow) {
|
||||
await app.loadGraphData(videoInfo.workflow);
|
||||
return
|
||||
}
|
||||
}
|
||||
return await originalHandleFile.apply(this, arguments);
|
||||
}
|
||||
@@ -0,0 +1,794 @@
|
||||
# 视频倒放图固定参考中文说明
|
||||
|
||||
21新顶层保存位置(19标量含上传状态+2历史对象)+0新注释;旧17图495保存位置+15注释逐对象不变。18图516位置+15注释展示,155定稿0、实跑0、新增转换0。
|
||||
|
||||
复用SQLite来源库→正常GET详情→现有说明抽屉;仅新增source_reviews说明块和显式受信摘要,不改变转换/执行链。来源索引local_file以docs/hel-892/reverse-document-evidence为解析基准。
|
||||
|
||||
## 视频倒放
|
||||
|
||||
这张图用于把视频画面倒序:加载画面经过倒序节点后分到预览和视频合成,音频则从加载器直接进入合成器,没有声音倒序节点。两处保存16fps不保证原片帧率或音画同步;两份预览只是历史缓存。准确版本仅作参考,前端版本未声明、UE与目标环境未知,未实跑、转换仍关闭。
|
||||
|
||||
固定版本参考;画面倒序、音频直连,历史预览非实跑;前端版本未声明,目标环境与UE未知,转换保持关闭。
|
||||
|
||||
源路径:`example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json`
|
||||
|
||||
SHA1:10f475a3c71c91e79ad21701c4b5700808451b66
|
||||
|
||||
原字节SHA256:8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24
|
||||
|
||||
规范全图SHA256:e960a56eaec1c0c9b133a1d4dd7f6a6e6b3fa998a50a90379324910fe7c0684b
|
||||
|
||||
kj准确来源:c661baadd9683c0033cd2a6ad90157c6d099a6c2;不是目标安装证明
|
||||
|
||||
core准确来源:8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a;不是目标安装证明
|
||||
|
||||
vhs准确来源:registry1.7.7包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;不是目标安装证明
|
||||
|
||||
VHS发布包Git提交绑定未知,不用1.7.9或其他commit补证;本图无frontendVersion,前端恢复只引用包自带JS,不假设目标前端版本。
|
||||
|
||||
四节点UE7.5.1且空映射;身份/钩子次序/动态选项未知,不等于无改写。
|
||||
|
||||
### 具体连线与处理条件
|
||||
|
||||
4节点/4物理边/全部mode0,无子图和源注释。21顶层保存位置=19标量(含上传状态)+2完整videopreview历史对象;Reverse20与Preview15均widgets_values=[]零位置,不是缺键/null/{}。旧17图495+15保持,本图0新注释。
|
||||
|
||||
画面主链link15:Load1槽0 IMAGE→Reverse20.images;link16:Reverse20槽0 IMAGE→Preview15.images;link17:Reverse20槽0 IMAGE→Combine21.images。固定KJ仅torch.flip(images,[0])反转批次第0维,不倒转像素左右,也没有音频处理。
|
||||
|
||||
音频link18:Load1槽2 AUDIO→Combine21.audio,绕过Reverse20。声音直连而非倒放;只有懒waveform取值成功才进入混流。加载器按skip/采样时间和cap裁切音频,源cap0时duration0不加-t;-audio文件名不保证真实音轨存在。
|
||||
|
||||
Load.force_rate与Combine.frame_rate源均int16,无FPS外线;前者采样、后者合成播放率,不能证明原片帧率、同步、节奏或成功输出。加载宽高0仍可能按AnimateDiff dim8对齐,cap0仍受内存和素材限制;nth1/skip0按固定实现解释。
|
||||
|
||||
两节点meta_batch/vae均未接;Load.frame_count.links=[]、video_info.links=null不当有线。Combine的VHS_FILENAMES.links=null未接;PreviewImage继承空RETURN_TYPES,仅ui.images临时PNG预览,无服务端图像出口。
|
||||
|
||||
准确VHS1.7.7包的Python格式表与JS恢复分开:useKVState按键赋值并调用回调,format回调可能重建编码控件;加载format的reset条件也可能改值。本图没有frontendVersion,不写按源声明;不借目标未知UE钩子次序断言最终prompt值。
|
||||
|
||||
Combine保存h264-mp4/yuv420p/crf19、loop0、元数据true、trimfalse、pingpongfalse、save_output=true。false裁切保留apad并-shortest,不关闭音频;false往返也不否定上游已倒序。
|
||||
|
||||
本图无模型节点,不编模型依赖。实际执行可读媒体/调用ffmpeg/libx264/AAC、写正式视频、首帧PNG/临时元数据及PreviewImage临时PNG。只读详情浏览不执行这些操作。目标媒体/依赖/编码器/目录权限/安装与效果未知。
|
||||
|
||||
两个历史预览对象仅纯文本:E盘旧fullpath、缓存16fps、workflow PNG/-audio文件名与隐藏/暂停状态不证明当前文件、音轨或产物,不读取源媒体、文件、不请求api/view;嵌套逐项列于下方但不重复计位置。
|
||||
|
||||
源物理边:[15, 1, 0, 20, 0, "IMAGE"]
|
||||
|
||||
源物理边:[16, 20, 0, 15, 0, "IMAGE"]
|
||||
|
||||
源物理边:[17, 20, 0, 21, 0, "IMAGE"]
|
||||
|
||||
源物理边:[18, 1, 2, 21, 1, "AUDIO"]
|
||||
|
||||
节点20 ReverseImageBatch mode=0;保存位置=0;原properties={"cnr_id": "comfyui-kjnodes", "ver": "c661baadd9683c0033cd2a6ad90157c6d099a6c2", "Node name for S&R": "ReverseImageBatch", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.1"}}
|
||||
|
||||
节点21 VHS_VideoCombine mode=0;保存位置=11;原properties={"cnr_id": "comfyui-videohelpersuite", "ver": "1.7.7", "Node name for S&R": "VHS_VideoCombine", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.1"}}
|
||||
|
||||
节点1 VHS_LoadVideo mode=0;保存位置=10;原properties={"cnr_id": "comfyui-videohelpersuite", "ver": "1.7.7", "Node name for S&R": "VHS_LoadVideo", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.1"}}
|
||||
|
||||
节点15 PreviewImage mode=0;保存位置=0;原properties={"cnr_id": "comfy-core", "ver": "0.3.75", "Node name for S&R": "PreviewImage", "ue_properties": {"widget_ue_connectable": {}, "input_ue_unconnectable": {}, "version": "7.5.1"}}
|
||||
|
||||
历史嵌套(不另计)/nodes/1/widgets_values/videopreview/hidden [bool]=false
|
||||
|
||||
历史嵌套(不另计)/nodes/1/widgets_values/videopreview/paused [bool]=false
|
||||
|
||||
历史嵌套(不另计)/nodes/1/widgets_values/videopreview/params/filename [str]="ComfyUI_00238-audio.mp4"
|
||||
|
||||
历史嵌套(不另计)/nodes/1/widgets_values/videopreview/params/subfolder [str]="video"
|
||||
|
||||
历史嵌套(不另计)/nodes/1/widgets_values/videopreview/params/type [str]="output"
|
||||
|
||||
历史嵌套(不另计)/nodes/1/widgets_values/videopreview/params/format [str]="video/h264-mp4"
|
||||
|
||||
历史嵌套(不另计)/nodes/1/widgets_values/videopreview/params/frame_rate [int]=16
|
||||
|
||||
历史嵌套(不另计)/nodes/1/widgets_values/videopreview/params/workflow [str]="ComfyUI_00238.png"
|
||||
|
||||
历史嵌套(不另计)/nodes/1/widgets_values/videopreview/params/fullpath [str]="E:\\ComfyUI-Data\\output\\video\\ComfyUI_00238-audio.mp4"
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/hidden [bool]=false
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/paused [bool]=false
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/params/filename [str]="WanVideo_InfiniteTalk_00004-audio.mp4"
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/params/type [str]="input"
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/params/format [str]="video/mp4"
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/params/force_rate [int]=16
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/params/custom_width [int]=0
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/params/custom_height [int]=0
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/params/frame_load_cap [int]=0
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/params/skip_first_frames [int]=0
|
||||
|
||||
历史嵌套(不另计)/nodes/2/widgets_values/videopreview/params/select_every_nth [int]=1
|
||||
|
||||
### 使用与核对
|
||||
|
||||
这张图用于把视频画面倒序:加载画面经过倒序节点后分到预览和视频合成,音频则从加载器直接进入合成器,没有声音倒序节点。两处保存16fps不保证原片帧率或音画同步;两份预览只是历史缓存。准确版本仅作参考,前端版本未声明、UE与目标环境未知,未实跑、转换仍关闭。
|
||||
|
||||
先核视频可用性和四节点精确安装;本轮只看文本,不上传、不读素材,不调用执行入口。
|
||||
|
||||
核采样与合成帧率、音频直连、裁切/往返/保存目录条件;真实同步与输出必须另行实跑。
|
||||
|
||||
保持停用、未检查、未定稿/未实跑,编码器、UE、媒体和目标目录未知。
|
||||
|
||||
### 逐保存位置说明
|
||||
|
||||
#### 1. 节点21 · 合成播放帧率(frame_rate)
|
||||
|
||||
源JSON int=16,无FPS外线。FFmpeg原始画面输入以此-r编码;不证明原片FPS或与直连声音同步。
|
||||
|
||||
```json
|
||||
16
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:int;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/frame_rate`
|
||||
|
||||
定义默认:8;单位:帧/秒
|
||||
|
||||
范围/条件:min1,step1,schema无max
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [9] 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 234~340行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [10] 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 45~135行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [17] h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [11] 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 340~394行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [12] pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 441~494行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [14] save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 140~163行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [21] 合成格式回调动态重建编码控件;web/js/VHS.core.js 1222~1282行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 2. 节点21 · 合成画面循环次数(loop_count)
|
||||
|
||||
源0,视频分支不追加loop滤镜;不套GIF的循环语义,实际时长未知。
|
||||
|
||||
```json
|
||||
0
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:int;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/loop_count`
|
||||
|
||||
定义默认:0;单位:次数
|
||||
|
||||
范围/条件:0~100,step1
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [9] 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 234~340行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [10] 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 45~135行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [17] h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [11] 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 340~394行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [12] pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 441~494行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [14] save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 140~163行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [21] 合成格式回调动态重建编码控件;web/js/VHS.core.js 1222~1282行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 3. 节点21 · 输出文件名前缀(filename_prefix)
|
||||
|
||||
源video/ComfyUI,save_output=true时在输出目录下分配名称,非历史E盘路径绑定。
|
||||
|
||||
```json
|
||||
"video/ComfyUI"
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:str;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/filename_prefix`
|
||||
|
||||
定义默认:AnimateDiff;单位:相对前缀
|
||||
|
||||
范围/条件:由folder_paths路径规则及计数决定;实际目录权限未知
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [9] 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 234~340行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [10] 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 45~135行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [17] h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [11] 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 340~394行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [12] pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 441~494行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [14] save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 140~163行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [21] 合成格式回调动态重建编码控件;web/js/VHS.core.js 1222~1282行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 4. 节点21 · 合成编码格式(format)
|
||||
|
||||
源video/h264-mp4采用包内libx264/AAC mp4规则;动态回调产生pix_fmt/crf等额外项,不证明目标编码器存在。
|
||||
|
||||
```json
|
||||
"video/h264-mp4"
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:str;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/format`
|
||||
|
||||
定义默认:schema首项image/gif;函数缺省image/gif;单位:格式名
|
||||
|
||||
范围/条件:image/gif、image/webp和动态video格式列表
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [9] 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 234~340行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [10] 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 45~135行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [17] h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [11] 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 340~394行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [12] pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 441~494行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [14] save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 140~163行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [21] 合成格式回调动态重建编码控件;web/js/VHS.core.js 1222~1282行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 5. 节点21 · 编码像素格式(pix_fmt)
|
||||
|
||||
源yuv420p,传给libx264的-pix_fmt,颜色变换按包内bt709滤镜,实际画质未知。
|
||||
|
||||
```json
|
||||
"yuv420p"
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:str;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/pix_fmt`
|
||||
|
||||
定义默认:首项yuv420p;单位:编码格式
|
||||
|
||||
范围/条件:yuv420p/yuv420p10le
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [9] 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 234~340行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [10] 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 45~135行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [17] h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [11] 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 340~394行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [12] pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 441~494行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [14] save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 140~163行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [21] 合成格式回调动态重建编码控件;web/js/VHS.core.js 1222~1282行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 6. 节点21 · H264质量控制数值(crf)
|
||||
|
||||
源19传-crf;通常调节质量/体积,但不把schema上限当目标libx264有效范围或效果承诺。
|
||||
|
||||
```json
|
||||
19
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:int;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/crf`
|
||||
|
||||
定义默认:19;单位:CRF数值
|
||||
|
||||
范围/条件:schema 0~100,step1;编码器接受范围/效果仍需环境验证
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [9] 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 234~340行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [10] 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 45~135行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [17] h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [11] 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 340~394行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [12] pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 441~494行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [14] save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 140~163行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [21] 合成格式回调动态重建编码控件;web/js/VHS.core.js 1222~1282行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 7. 节点21 · 保存编码元数据(save_metadata)
|
||||
|
||||
源true,格式模板转字符串True启用临时metadata.txt及编码元数据。首帧workflow PNG另受VHS_MetadataImage控制,不能把两个开关混同。
|
||||
|
||||
```json
|
||||
true
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:bool;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/save_metadata`
|
||||
|
||||
定义默认:true;单位:布尔
|
||||
|
||||
范围/条件:true/false;格式模板与FFmpeg分支条件
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [9] 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 234~340行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [10] 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 45~135行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [17] h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [11] 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 340~394行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [12] pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 441~494行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [14] save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 140~163行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [21] 合成格式回调动态重建编码控件;web/js/VHS.core.js 1222~1282行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 8. 节点21 · 合成时按音频裁切开关(trim_to_audio)
|
||||
|
||||
源false不是关闭音频;固定实现保留apad=whole_dur(画面时长+1)并用-shortest。true移除apad。音轨不存在/提取失败可能跳过混流,未验证实际同步。
|
||||
|
||||
```json
|
||||
false
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:bool;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/trim_to_audio`
|
||||
|
||||
定义默认:false;单位:布尔
|
||||
|
||||
范围/条件:仅有可取waveform且走视频音频混流分支时生效
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [9] 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 234~340行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [10] 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 45~135行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [17] h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [11] 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 340~394行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [12] pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 441~494行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [14] save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 140~163行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [21] 合成格式回调动态重建编码控件;web/js/VHS.core.js 1222~1282行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 9. 节点21 · 合成往返帧序开关(pingpong)
|
||||
|
||||
源false不在合成器追加往返帧,但上游Reverse20已经倒序,不能称画面没有反向。
|
||||
|
||||
```json
|
||||
false
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:bool;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/pingpong`
|
||||
|
||||
定义默认:false;单位:布尔
|
||||
|
||||
范围/条件:true/false;视频meta_batch旁路条件另有限制
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [9] 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 234~340行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [10] 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 45~135行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [17] h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [11] 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 340~394行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [12] pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 441~494行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [14] save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 140~163行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [21] 合成格式回调动态重建编码控件;web/js/VHS.core.js 1222~1282行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 10. 节点21 · 合成保存目录选择(save_output)
|
||||
|
||||
源true选择output目录;会产生视频并可能写首帧workflow PNG、临时元数据,有音频可另写-audio文件。当前仅GET浏览,没有图执行文件副作用。
|
||||
|
||||
```json
|
||||
true
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:bool;角色:scalar。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/save_output`
|
||||
|
||||
定义默认:true;单位:布尔
|
||||
|
||||
范围/条件:true输出目录,false临时目录;均可能写文件
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [9] 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 234~340行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [10] 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 45~135行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [17] h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 1~15行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [11] 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 340~394行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [12] pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 441~494行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [14] save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 140~163行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [21] 合成格式回调动态重建编码控件;web/js/VHS.core.js 1222~1282行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 11. 节点21 · 历史视频预览完整对象(videopreview)
|
||||
|
||||
原hidden/paused/params完整保留,仅历史缓存。DOM控件serialize=false但包内useKVState仍保存w.value;合成缓存的E盘fullpath、16fps、workflow PNG和-audio文件名不是当前产物/音轨证明;加载缓存同样不是实际参数执行证据。不读盘、不请求api/view或媒体。
|
||||
|
||||
```json
|
||||
{
|
||||
"hidden": false,
|
||||
"paused": false,
|
||||
"params": {
|
||||
"filename": "ComfyUI_00238-audio.mp4",
|
||||
"subfolder": "video",
|
||||
"type": "output",
|
||||
"format": "video/h264-mp4",
|
||||
"frame_rate": 16,
|
||||
"workflow": "ComfyUI_00238.png",
|
||||
"fullpath": "E:\\ComfyUI-Data\\output\\video\\ComfyUI_00238-audio.mp4"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
类:VHS_VideoCombine;JSON类型:dict;角色:frontend_history。
|
||||
|
||||
源位置:`/nodes/1/widgets_values/videopreview`
|
||||
|
||||
定义默认:无服务端默认;单位:结构对象
|
||||
|
||||
范围/条件:嵌套值和JSON类型原样;不递归计入保存位置
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [22] 历史videopreview控件状态;本轮仅纯文本,不请求媒体;web/js/VHS.core.js 915~970行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 12. 节点1 · 输入视频文件引用(video)
|
||||
|
||||
保存WanVideo_InfiniteTalk_00004-audio.mp4,仅引用名;未读文件,-audio不证明有音轨。
|
||||
|
||||
```json
|
||||
"WanVideo_InfiniteTalk_00004-audio.mp4"
|
||||
```
|
||||
|
||||
类:VHS_LoadVideo;JSON类型:str;角色:scalar。
|
||||
|
||||
源位置:`/nodes/2/widgets_values/video`
|
||||
|
||||
定义默认:input目录视频动态枚举,无固定默认;单位:文件名
|
||||
|
||||
范围/条件:webm/mp4/mkv/gif/mov;实际目录列表未知
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [4] 上传目录枚举、schema/输出槽/路径验证;videohelpersuite/load_video_nodes.py 423~473行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [5] 格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限;videohelpersuite/load_video_nodes.py 24~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [6] 内存限制、VAE/格式条件、懒音频裁切及返回;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [7] 懒音频首次访问时ffmpeg提取;未访问不加载;videohelpersuite/utils.py 207~252行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [8] BIGMAX/DIMMAX与floatOrInt类型;videohelpersuite/utils.py 20~56行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [19] 加载format动态回调、reset条件及控件选项调整;web/js/VHS.core.js 648~720行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [15] VHS_LoadVideo和VHS_VideoCombine真实注册;videohelpersuite/nodes.py 1023~1030行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [16] 包注册入口与WEB_DIRECTORY;__init__.py 1~9行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 13. 节点1 · 强制加载采样帧率(force_rate)
|
||||
|
||||
源JSON int=16;加载采样时间设为1/16,并非原片真实帧率。合成也保存16,仍不证明音画同步。
|
||||
|
||||
```json
|
||||
16
|
||||
```
|
||||
|
||||
类:VHS_LoadVideo;JSON类型:int;角色:scalar。
|
||||
|
||||
源位置:`/nodes/2/widgets_values/force_rate`
|
||||
|
||||
定义默认:0;单位:帧/秒
|
||||
|
||||
范围/条件:0~60,step1,0不强制
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [4] 上传目录枚举、schema/输出槽/路径验证;videohelpersuite/load_video_nodes.py 423~473行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [5] 格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限;videohelpersuite/load_video_nodes.py 24~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [6] 内存限制、VAE/格式条件、懒音频裁切及返回;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [7] 懒音频首次访问时ffmpeg提取;未访问不加载;videohelpersuite/utils.py 207~252行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [8] BIGMAX/DIMMAX与floatOrInt类型;videohelpersuite/utils.py 20~56行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [19] 加载format动态回调、reset条件及控件选项调整;web/js/VHS.core.js 648~720行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [15] VHS_LoadVideo和VHS_VideoCombine真实注册;videohelpersuite/nodes.py 1023~1030行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [16] 包注册入口与WEB_DIRECTORY;__init__.py 1~9行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 14. 节点1 · 自定义加载宽度(custom_width)
|
||||
|
||||
源0;两宽高均0先取素材尺寸,但AnimateDiff按8倍数近似对齐,不保证原尺寸或输出宽度。
|
||||
|
||||
```json
|
||||
0
|
||||
```
|
||||
|
||||
类:VHS_LoadVideo;JSON类型:int;角色:scalar。
|
||||
|
||||
源位置:`/nodes/2/widgets_values/custom_width`
|
||||
|
||||
定义默认:0;单位:像素
|
||||
|
||||
范围/条件:0~8192;0不指定,受格式dim影响
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [4] 上传目录枚举、schema/输出槽/路径验证;videohelpersuite/load_video_nodes.py 423~473行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [5] 格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限;videohelpersuite/load_video_nodes.py 24~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [6] 内存限制、VAE/格式条件、懒音频裁切及返回;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [7] 懒音频首次访问时ffmpeg提取;未访问不加载;videohelpersuite/utils.py 207~252行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [8] BIGMAX/DIMMAX与floatOrInt类型;videohelpersuite/utils.py 20~56行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [19] 加载format动态回调、reset条件及控件选项调整;web/js/VHS.core.js 648~720行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [15] VHS_LoadVideo和VHS_VideoCombine真实注册;videohelpersuite/nodes.py 1023~1030行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [16] 包注册入口与WEB_DIRECTORY;__init__.py 1~9行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 15. 节点1 · 自定义加载高度(custom_height)
|
||||
|
||||
源0;与宽度/格式共同计算并按dim对齐;实际素材尺寸未读取。
|
||||
|
||||
```json
|
||||
0
|
||||
```
|
||||
|
||||
类:VHS_LoadVideo;JSON类型:int;角色:scalar。
|
||||
|
||||
源位置:`/nodes/2/widgets_values/custom_height`
|
||||
|
||||
定义默认:0;单位:像素
|
||||
|
||||
范围/条件:0~8192;0不指定,单边指定则按比例算另一边
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [4] 上传目录枚举、schema/输出槽/路径验证;videohelpersuite/load_video_nodes.py 423~473行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [5] 格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限;videohelpersuite/load_video_nodes.py 24~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [6] 内存限制、VAE/格式条件、懒音频裁切及返回;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [7] 懒音频首次访问时ffmpeg提取;未访问不加载;videohelpersuite/utils.py 207~252行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [8] BIGMAX/DIMMAX与floatOrInt类型;videohelpersuite/utils.py 20~56行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [19] 加载format动态回调、reset条件及控件选项调整;web/js/VHS.core.js 648~720行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [15] VHS_LoadVideo和VHS_VideoCombine真实注册;videohelpersuite/nodes.py 1023~1030行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [16] 包注册入口与WEB_DIRECTORY;__init__.py 1~9行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 16. 节点1 · 加载帧数上限(frame_load_cap)
|
||||
|
||||
源0不设控件帧数上限,仍受素材、可用内存及格式约束,不是零帧或保证全片成功。
|
||||
|
||||
```json
|
||||
0
|
||||
```
|
||||
|
||||
类:VHS_LoadVideo;JSON类型:int;角色:scalar。
|
||||
|
||||
源位置:`/nodes/2/widgets_values/frame_load_cap`
|
||||
|
||||
定义默认:0;单位:帧
|
||||
|
||||
范围/条件:0~2**53-1,step1;0不设此上限
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [4] 上传目录枚举、schema/输出槽/路径验证;videohelpersuite/load_video_nodes.py 423~473行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [5] 格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限;videohelpersuite/load_video_nodes.py 24~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [6] 内存限制、VAE/格式条件、懒音频裁切及返回;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [7] 懒音频首次访问时ffmpeg提取;未访问不加载;videohelpersuite/utils.py 207~252行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [8] BIGMAX/DIMMAX与floatOrInt类型;videohelpersuite/utils.py 20~56行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [19] 加载format动态回调、reset条件及控件选项调整;web/js/VHS.core.js 648~720行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [15] VHS_LoadVideo和VHS_VideoCombine真实注册;videohelpersuite/nodes.py 1023~1030行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [16] 包注册入口与WEB_DIRECTORY;__init__.py 1~9行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 17. 节点1 · 跳过起始采样帧(skip_first_frames)
|
||||
|
||||
源0不跳过;源码按采样后的计数判定,懒音频起点为skip乘target_frame_time,不当原始帧索引。
|
||||
|
||||
```json
|
||||
0
|
||||
```
|
||||
|
||||
类:VHS_LoadVideo;JSON类型:int;角色:scalar。
|
||||
|
||||
源位置:`/nodes/2/widgets_values/skip_first_frames`
|
||||
|
||||
定义默认:0;单位:采样帧
|
||||
|
||||
范围/条件:0~2**53-1,step1
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [4] 上传目录枚举、schema/输出槽/路径验证;videohelpersuite/load_video_nodes.py 423~473行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [5] 格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限;videohelpersuite/load_video_nodes.py 24~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [6] 内存限制、VAE/格式条件、懒音频裁切及返回;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [7] 懒音频首次访问时ffmpeg提取;未访问不加载;videohelpersuite/utils.py 207~252行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [8] BIGMAX/DIMMAX与floatOrInt类型;videohelpersuite/utils.py 20~56行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [19] 加载format动态回调、reset条件及控件选项调整;web/js/VHS.core.js 648~720行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [15] VHS_LoadVideo和VHS_VideoCombine真实注册;videohelpersuite/nodes.py 1023~1030行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [16] 包注册入口与WEB_DIRECTORY;__init__.py 1~9行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 18. 节点1 · 间隔抽取采样帧(select_every_nth)
|
||||
|
||||
源1保留每个采样位置;大于1才间隔取帧,音频裁切时长和loaded_fps有对应计算,不反转声音。
|
||||
|
||||
```json
|
||||
1
|
||||
```
|
||||
|
||||
类:VHS_LoadVideo;JSON类型:int;角色:scalar。
|
||||
|
||||
源位置:`/nodes/2/widgets_values/select_every_nth`
|
||||
|
||||
定义默认:1;单位:采样间隔
|
||||
|
||||
范围/条件:1~2**53-1,step1
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [4] 上传目录枚举、schema/输出槽/路径验证;videohelpersuite/load_video_nodes.py 423~473行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [5] 格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限;videohelpersuite/load_video_nodes.py 24~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [6] 内存限制、VAE/格式条件、懒音频裁切及返回;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [7] 懒音频首次访问时ffmpeg提取;未访问不加载;videohelpersuite/utils.py 207~252行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [8] BIGMAX/DIMMAX与floatOrInt类型;videohelpersuite/utils.py 20~56行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [19] 加载format动态回调、reset条件及控件选项调整;web/js/VHS.core.js 648~720行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [15] VHS_LoadVideo和VHS_VideoCombine真实注册;videohelpersuite/nodes.py 1023~1030行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [16] 包注册入口与WEB_DIRECTORY;__init__.py 1~9行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 19. 节点1 · 加载格式约束(format)
|
||||
|
||||
保存AnimateDiff,固定内置target_rate8、dim=(8,0,512,512),无frames约束。Python使用dim,不直接将force_rate改8;JS回调有条件reset,不能据此重写保存16/0/0。
|
||||
|
||||
```json
|
||||
"AnimateDiff"
|
||||
```
|
||||
|
||||
类:VHS_LoadVideo;JSON类型:str;角色:scalar。
|
||||
|
||||
源位置:`/nodes/2/widgets_values/format`
|
||||
|
||||
定义默认:AnimateDiff;单位:格式名
|
||||
|
||||
范围/条件:内置None/AnimateDiff/Mochi/LTXV/Hunyuan/Cosmos/Wan及外部扩展;目标动态列表未知
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [4] 上传目录枚举、schema/输出槽/路径验证;videohelpersuite/load_video_nodes.py 423~473行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [5] 格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限;videohelpersuite/load_video_nodes.py 24~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [6] 内存限制、VAE/格式条件、懒音频裁切及返回;videohelpersuite/load_video_nodes.py 293~420行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [7] 懒音频首次访问时ffmpeg提取;未访问不加载;videohelpersuite/utils.py 207~252行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [8] BIGMAX/DIMMAX与floatOrInt类型;videohelpersuite/utils.py 20~56行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [19] 加载format动态回调、reset条件及控件选项调整;web/js/VHS.core.js 648~720行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [15] VHS_LoadVideo和VHS_VideoCombine真实注册;videohelpersuite/nodes.py 1023~1030行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [16] 包注册入口与WEB_DIRECTORY;__init__.py 1~9行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 20. 节点1 · 前端上传选择保存状态(choose video to upload)
|
||||
|
||||
原值image是按钮初值,options.serialize=false但包内useKVState仍遍历所有w.value保存;恢复按键时跳过button。与video文件名分开,不当运行输入,未点击上传或读取媒体。
|
||||
|
||||
```json
|
||||
"image"
|
||||
```
|
||||
|
||||
类:VHS_LoadVideo;JSON类型:str;角色:frontend_control。
|
||||
|
||||
源位置:`/nodes/2/widgets_values/choose video to upload`
|
||||
|
||||
定义默认:按钮初值image;单位:前端状态
|
||||
|
||||
范围/条件:不在服务端INPUT_TYPES;不等于已上传文件
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [20] 上传按钮值/回调与video引用分离,不当服务端参数;web/js/VHS.core.js 721~824行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [4] 上传目录枚举、schema/输出槽/路径验证;videohelpersuite/load_video_nodes.py 423~473行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
#### 21. 节点1 · 历史视频预览完整对象(videopreview)
|
||||
|
||||
原hidden/paused/params完整保留,仅历史缓存。DOM控件serialize=false但包内useKVState仍保存w.value;合成缓存的E盘fullpath、16fps、workflow PNG和-audio文件名不是当前产物/音轨证明;加载缓存同样不是实际参数执行证据。不读盘、不请求api/view或媒体。
|
||||
|
||||
```json
|
||||
{
|
||||
"hidden": false,
|
||||
"paused": false,
|
||||
"params": {
|
||||
"filename": "WanVideo_InfiniteTalk_00004-audio.mp4",
|
||||
"type": "input",
|
||||
"format": "video/mp4",
|
||||
"force_rate": 16,
|
||||
"custom_width": 0,
|
||||
"custom_height": 0,
|
||||
"frame_load_cap": 0,
|
||||
"skip_first_frames": 0,
|
||||
"select_every_nth": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
类:VHS_LoadVideo;JSON类型:dict;角色:frontend_history。
|
||||
|
||||
源位置:`/nodes/2/widgets_values/videopreview`
|
||||
|
||||
定义默认:无服务端默认;单位:结构对象
|
||||
|
||||
范围/条件:嵌套值和JSON类型原样;不递归计入保存位置
|
||||
|
||||
源mode0;UE7.5.1空映射不证明无改写,目标安装/钩子次序/动态选项未知;保存类型与schema类型分列,未构造prompt/实跑。
|
||||
|
||||
依据:
|
||||
- [22] 历史videopreview控件状态;本轮仅纯文本,不请求媒体;web/js/VHS.core.js 915~970行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [18] 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 41~168行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
- [13] 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 558~625行;commit 发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
### 零保存节点与源注释
|
||||
|
||||
20 ReverseImageBatch:widgets_values=[];仅images输入,torch.flip第0维倒序;无音频输入或控件。
|
||||
|
||||
15 PreviewImage:widgets_values=[];只images和hidden输入,继承空RETURN_TYPES及临时PNG预览,未运行写图。
|
||||
|
||||
### 固定原件索引
|
||||
|
||||
0. 仅torch.flip图像批次第0维;无音频输入,无保存控件;nodes/image_nodes.py 第2205~2224行;提交c661baadd9683c0033cd2a6ad90157c6d099a6c2;SHA256 1b8f83356f515e0efef20daa2c82c095503133ef84f1931782b43d176ec92609;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/c661baadd9683c0033cd2a6ad90157c6d099a6c2/nodes/image_nodes.py
|
||||
|
||||
1. image_nodes导入与ReverseImageBatch注册;__init__.py 第1~110行;提交c661baadd9683c0033cd2a6ad90157c6d099a6c2;SHA256 43852013e532d868d7e3b5ca5ba5bb2e6697d7333f2ade4a4cbab517b976adc6;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/c661baadd9683c0033cd2a6ad90157c6d099a6c2/__init__.py
|
||||
|
||||
2. PreviewImage继承SaveImage、空RETURN_TYPES、临时PNG写入;nodes.py 第1561~1630行;提交8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a;SHA256 c922eb57ed906a6fad7832c2fcb259b4f06533fc6dce7927b3e1d87e078f34cc;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a/nodes.py
|
||||
|
||||
3. PreviewImage真实注册;nodes.py 第1966~1966行;提交8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a;SHA256 c922eb57ed906a6fad7832c2fcb259b4f06533fc6dce7927b3e1d87e078f34cc;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a/nodes.py
|
||||
|
||||
4. 上传目录枚举、schema/输出槽/路径验证;videohelpersuite/load_video_nodes.py 第423~473行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
5. 格式表、尺寸对齐、重采样/跳帧/抽帧/帧数上限;videohelpersuite/load_video_nodes.py 第24~168行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
6. 内存限制、VAE/格式条件、懒音频裁切及返回;videohelpersuite/load_video_nodes.py 第293~420行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
7. 懒音频首次访问时ffmpeg提取;未访问不加载;videohelpersuite/utils.py 第207~252行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
8. BIGMAX/DIMMAX与floatOrInt类型;videohelpersuite/utils.py 第20~56行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
9. 合成schema、可选输入、输出目录选择;videohelpersuite/nodes.py 第234~340行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
10. 格式动态枚举/额外控件默认/模板替换;videohelpersuite/nodes.py 第45~135行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
11. 首帧workflow PNG写入与保存目录条件;videohelpersuite/nodes.py 第340~394行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
12. pingpong/循环/FFmpeg帧率参数;videohelpersuite/nodes.py 第441~494行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
13. 可用音频才混流;trim控制apad、shortest、返回历史预览;videohelpersuite/nodes.py 第558~625行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
14. save_metadata条件写临时元数据并交FFmpeg;videohelpersuite/nodes.py 第140~163行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
15. VHS_LoadVideo和VHS_VideoCombine真实注册;videohelpersuite/nodes.py 第1023~1030行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
16. 包注册入口与WEB_DIRECTORY;__init__.py 第1~9行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 d3e74626bfdd628d0e96b190b2c07e25fa1e5ee9f1f402c7c650446f86b0838f;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
17. h264-mp4编码器/像素格式/CRF/元数据/裁切默认;video_formats/h264-mp4.json 第1~15行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
18. 按键恢复/回调,序列化全部控件值;不等于实际运行输入;web/js/VHS.core.js 第41~168行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
19. 加载format动态回调、reset条件及控件选项调整;web/js/VHS.core.js 第648~720行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
20. 上传按钮值/回调与video引用分离,不当服务端参数;web/js/VHS.core.js 第721~824行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
21. 合成格式回调动态重建编码控件;web/js/VHS.core.js 第1222~1282行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
22. 历史videopreview控件状态;本轮仅纯文本,不请求媒体;web/js/VHS.core.js 第915~970行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
|
||||
23. 该准确版本许可原文,未安装或执行上游;LICENSE 第1~674行;提交c661baadd9683c0033cd2a6ad90157c6d099a6c2;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/kijai/ComfyUI-KJNodes/c661baadd9683c0033cd2a6ad90157c6d099a6c2/LICENSE
|
||||
|
||||
24. 该准确版本许可原文,未安装或执行上游;LICENSE 第1~674行;提交8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://raw.githubusercontent.com/Comfy-Org/ComfyUI/8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a/LICENSE
|
||||
|
||||
25. 该准确版本许可原文,未安装或执行上游;LICENSE 第1~674行;提交发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986;https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip
|
||||
@@ -0,0 +1,100 @@
|
||||
// Local GET-only reverse 21 positions and seventeen 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/reverse-document/browser';fs.mkdirSync(out,{recursive:true});
|
||||
const checks=[],requests=[],errors=[],blockedFonts=[],assertionGroups={};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=['视频倒放','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===18&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===516,'18图516保存位置');
|
||||
check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===15,'18图15源注释');
|
||||
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=d===details[0]?'new_reverse':'old_seventeen';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);
|
||||
await page.screenshot({path:`${out}/${width}-${d.id}-default.png`});
|
||||
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();
|
||||
for(const line of b.flow)check(flowText.includes(line),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`);
|
||||
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.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(['frame_rate','force_rate','per_batch','warmup','width','height','render_backend','videopreview','format','scale_to_length','update_inputs'].includes(f.field))await page.screenshot({path:`${out}/${width}-${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}无溢出`);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=>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=>{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()===74,'迟到倒放响应不覆盖NLF图摘要/74字段');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${details[0].id}`);
|
||||
await page.route(`**/api/workflows/${details[0].id}`,route=>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,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2));
|
||||
} finally {await browser.close();}
|
||||
@@ -0,0 +1,78 @@
|
||||
"""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/reverse-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 = ["reverse"]
|
||||
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()
|
||||
print("All owned browser services stopped.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user