HEL-892: add source-bound SeedVR2 video reference documentation

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-31 00:40:23 +08:00
co-authored by multica-agent
parent 291ff48e6f
commit 282c0e88d0
68 changed files with 28852 additions and 1 deletions
@@ -15,6 +15,11 @@ DEFINITION_SHA256 = "c4c7f04fde29dc7485a341207397fcf6191e3fcbe89ecc2d238f4a4f5bc
# Explicit path allowlist; a recomputed caller-supplied digest cannot extend trust.
DEFINITIONS = {
(
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
"分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频"
"放大.json"
): "4916d82960ae4c6e6046a7fdaf21573abde2acceb952193380b08c8ed1d3d66d",
(
"example_ComfyUI_workflows/0-基础处理:图像合并-音频"
"分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像"
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,280 @@
"""SeedVR2 scope/boundary, dual storage, exact source and editorial trust checks."""
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/seedvr2-video-document-evidence"
PATH = next(p for p in DEFINITIONS if p.endswith("/Seedvr2_3b_int8_视频放大.json"))
SOURCE = json.loads((REPO / PATH).read_bytes())
REVIEW = review_for(PATH, hashlib.sha1((REPO / PATH).read_bytes()).hexdigest())
BLOCK = REVIEW["fixed_version_document"]
SUB = SOURCE["definitions"]["subgraphs"][0]
SCOPES = [("", SOURCE), ("/definitions/subgraphs/0", SUB)]
NODES = [(f"{prefix}/nodes/{i}", n) for prefix, g in SCOPES for i, n in enumerate(g["nodes"])]
EDGES = [(f"{prefix}/links/{i}", e) for prefix, g in SCOPES for i, e in enumerate(g["links"])]
def pointer(obj, path):
for k in path.strip("/").split("/"):
obj = obj[int(k)] if isinstance(obj, list) else obj[k.replace("~1", "/").replace("~0", "~")]
return obj
def doc(source=SOURCE, review=REVIEW):
return build_document(PATH, source, None, None, [], review)
def refuse(source, review):
b = review["fixed_version_document"]
b["canonical_sha256"] = hashlib.sha256(canonical(source)).hexdigest()
review["caller_digest"] = hashlib.sha256(canonical(b)).hexdigest()
assert not doc(source, review)["fixed_version"]["matched"]
@pytest.mark.parametrize(
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
)
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
v = pointer(SOURCE, f["pointer"])
named = pointer(SOURCE, f["named_pointer"])
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
for k in [
"effect",
"limits",
"schema_default",
"unit",
"execution_note",
"role",
"label",
"type",
]:
assert f[k]
assert f["named_pointer"] in f["execution_note"]
for k in f["evidence"]:
e = BLOCK["sources"][k]
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
assert (
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
and len(e["commit"]) == 40
)
@pytest.mark.parametrize("f", BLOCK["fields"])
@pytest.mark.parametrize("variant", ["saved", "named", "text"])
def test_every_field_forgery_rejected_even_recomputed_caller_digest(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["limits"] = "forged"
else:
p = f["pointer"] if variant == "saved" else f["named_pointer"]
base, _, k = p.rpartition("/")
parent = pointer(s, base)
parent[int(k) if isinstance(parent, list) else k] = None
refuse(s, r)
@pytest.mark.parametrize("pair", NODES, ids=lambda pair: pair[0])
@pytest.mark.parametrize("variant", ["mode", "identity"])
def test_all_root_and_definition_nodes_bound(pair, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
n = pointer(s, pair[0])
if variant == "mode":
n["mode"] = 4
else:
n["properties"]["ver"] = "forged"
refuse(s, r)
@pytest.mark.parametrize("pair", EDGES, ids=lambda pair: pair[0])
def test_every_physical_and_boundary_edge_record_bound(pair):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
e = pointer(s, pair[0])
if isinstance(e, list):
e[3] = 99999
else:
e["target_id"] = 99999
refuse(s, r)
@pytest.mark.parametrize("b", BLOCK["boundaries"])
@pytest.mark.parametrize("variant", ["host", "definition", "target"])
def test_all_host_child_boundary_endpoints_bound(b, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
p = b[variant + "_pointer"]
port = pointer(s, p)
if variant == "definition":
port["linkIds"] = []
elif variant == "host":
port["name"] = "forged"
else:
port["link"] = 99999
refuse(s, r)
@pytest.mark.parametrize(
"variant",
[
"dangling",
"extra_missing",
"extra_empty",
"schema_port",
"format_codec",
"bit_depth",
"note0",
"note1",
"missing_widgets",
"preview",
"ue",
"sub_id",
"review_digest",
],
)
def test_anomaly_metadata_and_notes_cannot_be_rebound(variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
sub = s["definitions"]["subgraphs"][0]
ns = {n["id"]: n for n in sub["nodes"]}
if variant == "dangling":
ns[79]["outputs"][0]["links"] = [77]
elif variant == "extra_missing":
s["extra"]["links_added_by_ue"] = []
elif variant == "extra_empty":
sub["extra"]["ue_links"] = None
elif variant == "schema_port":
ns[75]["inputs"][3]["type"] = "INT"
elif variant == "format_codec":
s["nodes"][3]["widgets_values_named"].pop("format.codec")
elif variant == "bit_depth":
ns[75]["widgets_values"][1] = 10
elif variant.startswith("note"):
s["nodes"][int(variant[-1])]["widgets_values"][0] = "forged"
elif variant == "missing_widgets":
ns[74]["widgets_values"] = []
elif variant == "preview":
s["nodes"][4]["properties"]["previewExposures"] = []
elif variant == "ue":
s["nodes"][4]["properties"]["ue_properties"]["version"] = "other"
elif variant == "sub_id":
sub["id"] = "different"
else:
r["fixed_version_document"]["sources"][0]["sha256"] = "0" * 64
refuse(s, r)
def test_independent_inventory_boundaries_anomaly_and_semantics():
assert (len(SOURCE["nodes"]), len(SOURCE["links"]), len(SUB["nodes"]), len(SUB["links"])) == (
5,
2,
13,
34,
)
assert all(n["mode"] == 0 for _, n in NODES)
saved = {
f"{prefix}/nodes/{i}/widgets_values/{k}"
for prefix, g in SCOPES
for i, n in enumerate(g["nodes"])
if n["type"] != "MarkdownNote"
for k in range(len(n.get("widgets_values", [])))
}
assert saved == {f["pointer"] for f in BLOCK["fields"]} and len(saved) == 47
assert sum(f["scope"] == "root" for f in BLOCK["fields"]) == 17
assert all(not isinstance(f["value"], (dict, list)) for f in BLOCK["fields"])
assert [n["id"] for _, n in NODES if "widgets_values" not in n] == [58, 61, 74]
assert len(SUB["inputs"]) == 12 and len(BLOCK["boundaries"]) == 13 and SUB["widgets"] == []
ns = {n["id"]: n for n in SUB["nodes"]}
assert ns[79]["outputs"][0]["links"] == [76, 77] and 76 not in {e["id"] for e in SUB["links"]}
assert "links_added_by_ue" not in SOURCE["extra"]
for pre, g in SCOPES:
nodes = {n["id"]: n for n in g["nodes"]}
for e in g["links"]:
eid, src, slot, dst, inp, kind = (
e
if isinstance(e, list)
else [
e[k]
for k in ["id", "origin_id", "origin_slot", "target_id", "target_slot", "type"]
]
)
assert eid in (
nodes[src]["outputs"][slot]["links"] if src >= 0 else g["inputs"][slot]["linkIds"]
)
if dst >= 0:
assert nodes[dst]["inputs"][inp]["link"] == eid
else:
assert eid in g["outputs"][inp]["linkIds"]
for n in BLOCK["comments"]:
assert pointer(SOURCE, n["pointer"]) == pointer(SOURCE, n["named_pointer"]) == n["text"]
assert doc()["fixed_version"]["matched"] and len(doc()["source_notes"]) == 2
assert doc()["dependencies"]["check_state"] == "unchecked"
assert doc()["status"] == dict(imported=True, doc_done=False, exec_verified=False)
text = " ".join(BLOCK["flow"])
for phrase in [
"true选择on_true",
"[76,77]",
"format.codec",
"无color_space/codec",
"INT",
"无steps/cfg/temporal宿主边",
"941",
"988",
"未实跑",
]:
assert phrase in text
assert review_for(PATH, "0" * 40) is None
def test_exact_video_schema_conflicts_are_supported_by_static_originals():
import ast
ref = OUT.parent / "seedvr2-video-reference"
video = (ref / "video__comfy_extras__nodes_video.py").read_text()
tree = ast.parse(video)
def source(name):
return ast.get_source_segment(
video, next(n for n in tree.body if isinstance(n, ast.ClassDef) and n.name == name)
)
save = source("SaveVideo")
create = source("CreateVideo")
split = source("GetVideoComponents")
assert "format.codec" not in save and 'io.Combo.Input("format"' in save
assert '"color_space"' not in create and '"codec"' not in create
assert "io.Int.Input(" in create and '"bit_depth"' in create
assert 'io.Int.Output(display_name="bit_depth")' in split and '"color_space"' not in split
switch = (ref / "video__comfy_extras__nodes_logic.py").read_text()
assert "io.NodeOutput(on_true if switch else on_false)" in switch
assert 'return ["on_true"]' in switch and 'return ["on_false"]' in switch
def test_old_thirty_one_objects_and_entire_other_reviews_unchanged():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "291ff48:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
now[PATH].pop("fixed_version_document")
assert now == old and len(DEFINITIONS) == 32
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
assert (
len(blocks) == 31
and sum(len(b["fields"]) for b in blocks) == 941
and sum(
len(
build_document(p, json.loads((REPO / p).read_bytes()), None, None, [], r)[
"source_notes"
]
)
for p, r in old.items()
if "fixed_version_document" in r
)
== 22
)
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,12 @@
........................................................................ [ 21%]
........................................................................ [ 43%]
........................................................................ [ 65%]
........................................................................ [ 87%]
........................................ [100%]
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-0bda4b003ea3/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
328 passed, 1 warning in 5.03s
@@ -0,0 +1,358 @@
..FFFF.................................FFFF............................. [ 21%]
........................................................................ [ 43%]
........................................................................ [ 65%]
........................................................................ [ 87%]
..........................F............. [100%]
=================================== FAILURES ===================================
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.filename_prefix] _
f = {'label': '视频保存文件名前缀', 'schema_default': 'video/ComfyUI', 'unit': '文本', 'limits': '准确实现用output目录及计数命名', ...}
@pytest.mark.parametrize(
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
)
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
v = pointer(SOURCE, f["pointer"])
named = pointer(SOURCE, f["named_pointer"])
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
for k in [
"effect",
"limits",
"schema_default",
"unit",
"execution_note",
"role",
"label",
"type",
]:
assert f[k]
assert f["named_pointer"] in f["execution_note"]
for k in f["evidence"]:
e = BLOCK["sources"][k]
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
> assert (
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
and len(e["commit"]) == 40
)
E AssertionError: assert (51 <= 50)
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3ad8c90>()
E + where <built-in method splitlines of str object at 0x560aa3ad8c90> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa38cdd80>()
E + where <built-in method decode of bytes object at 0x560aa38cdd80> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.format] _
f = {'label': '保存容器选择', 'schema_default': 'auto', 'unit': '枚举', 'limits': '准确0.28.1为平面Combo,选项见固定VideoContainer', ...}
@pytest.mark.parametrize(
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
)
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
v = pointer(SOURCE, f["pointer"])
named = pointer(SOURCE, f["named_pointer"])
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
for k in [
"effect",
"limits",
"schema_default",
"unit",
"execution_note",
"role",
"label",
"type",
]:
assert f[k]
assert f["named_pointer"] in f["execution_note"]
for k in f["evidence"]:
e = BLOCK["sources"][k]
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
> assert (
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
and len(e["commit"]) == 40
)
E AssertionError: assert (51 <= 50)
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3b31b40>()
E + where <built-in method splitlines of str object at 0x560aa3b31b40> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3ba0fd0>()
E + where <built-in method decode of bytes object at 0x560aa3ba0fd0> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.format.codec] _
f = {'label': '源保存的嵌套编码选择', 'schema_default': '未知:准确schema无此项', 'unit': '源动态分支保存文本', 'limits': '准确SaveVideo无format.codec字段', ...}
@pytest.mark.parametrize(
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
)
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
v = pointer(SOURCE, f["pointer"])
named = pointer(SOURCE, f["named_pointer"])
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
for k in [
"effect",
"limits",
"schema_default",
"unit",
"execution_note",
"role",
"label",
"type",
]:
assert f[k]
assert f["named_pointer"] in f["execution_note"]
for k in f["evidence"]:
e = BLOCK["sources"][k]
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
> assert (
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
and len(e["commit"]) == 40
)
E AssertionError: assert (51 <= 50)
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3b2e8f0>()
E + where <built-in method splitlines of str object at 0x560aa3b2e8f0> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3b2dcb0>()
E + where <built-in method decode of bytes object at 0x560aa3b2dcb0> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.codec] _
f = {'label': '保存编码器选择', 'schema_default': 'auto', 'unit': '枚举', 'limits': '准确0.28.1平面codec Combo;与format.codec位置分开', ...}
@pytest.mark.parametrize(
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
)
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
v = pointer(SOURCE, f["pointer"])
named = pointer(SOURCE, f["named_pointer"])
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
for k in [
"effect",
"limits",
"schema_default",
"unit",
"execution_note",
"role",
"label",
"type",
]:
assert f[k]
assert f["named_pointer"] in f["execution_note"]
for k in f["evidence"]:
e = BLOCK["sources"][k]
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
> assert (
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
and len(e["commit"]) == 40
)
E AssertionError: assert (51 <= 50)
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3b31b40>()
E + where <built-in method splitlines of str object at 0x560aa3b31b40> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3ba0fd0>()
E + where <built-in method decode of bytes object at 0x560aa3ba0fd0> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.fps] _
f = {'label': '视频重组帧率缓存', 'schema_default': '30.0', 'unit': '帧/秒', 'limits': '1.0~120.0,step1.0', ...}
@pytest.mark.parametrize(
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
)
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
v = pointer(SOURCE, f["pointer"])
named = pointer(SOURCE, f["named_pointer"])
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
for k in [
"effect",
"limits",
"schema_default",
"unit",
"execution_note",
"role",
"label",
"type",
]:
assert f[k]
assert f["named_pointer"] in f["execution_note"]
for k in f["evidence"]:
e = BLOCK["sources"][k]
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
> assert (
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
and len(e["commit"]) == 40
)
E AssertionError: assert (51 <= 50)
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa2c2ea00>()
E + where <built-in method splitlines of str object at 0x560aa2c2ea00> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3b99c30>()
E + where <built-in method decode of bytes object at 0x560aa3b99c30> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.bit_depth] _
f = {'label': '视频重组位深缓存', 'schema_default': '8', 'unit': '位', 'limits': 'INT 8~10,step2;源输入COMBO与准确INT不一致', ...}
@pytest.mark.parametrize(
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
)
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
v = pointer(SOURCE, f["pointer"])
named = pointer(SOURCE, f["named_pointer"])
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
for k in [
"effect",
"limits",
"schema_default",
"unit",
"execution_note",
"role",
"label",
"type",
]:
assert f[k]
assert f["named_pointer"] in f["execution_note"]
for k in f["evidence"]:
e = BLOCK["sources"][k]
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
> assert (
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
and len(e["commit"]) == 40
)
E AssertionError: assert (51 <= 50)
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3ba0fd0>()
E + where <built-in method splitlines of str object at 0x560aa3ba0fd0> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3b31b40>()
E + where <built-in method decode of bytes object at 0x560aa3b31b40> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.color_space] _
f = {'label': '源保存的重组色彩空间', 'schema_default': '未知:准确schema无此项', 'unit': '源枚举标签', 'limits': '准确CreateVideo没有color_space输入,GetVideoComponents也无该出口', ...}
@pytest.mark.parametrize(
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
)
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
v = pointer(SOURCE, f["pointer"])
named = pointer(SOURCE, f["named_pointer"])
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
for k in [
"effect",
"limits",
"schema_default",
"unit",
"execution_note",
"role",
"label",
"type",
]:
assert f[k]
assert f["named_pointer"] in f["execution_note"]
for k in f["evidence"]:
e = BLOCK["sources"][k]
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
> assert (
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
and len(e["commit"]) == 40
)
E AssertionError: assert (51 <= 50)
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3b342e0>()
E + where <built-in method splitlines of str object at 0x560aa3b342e0> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3ab1130>()
E + where <built-in method decode of bytes object at 0x560aa3ab1130> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.codec] _
f = {'label': '源保存的重组编码标签', 'schema_default': '未知:准确schema无此项', 'unit': '源枚举标签', 'limits': '准确CreateVideo没有codec参数', ...}
@pytest.mark.parametrize(
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
)
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
v = pointer(SOURCE, f["pointer"])
named = pointer(SOURCE, f["named_pointer"])
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
for k in [
"effect",
"limits",
"schema_default",
"unit",
"execution_note",
"role",
"label",
"type",
]:
assert f[k]
assert f["named_pointer"] in f["execution_note"]
for k in f["evidence"]:
e = BLOCK["sources"][k]
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
> assert (
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
and len(e["commit"]) == 40
)
E AssertionError: assert (51 <= 50)
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3b31b40>()
E + where <built-in method splitlines of str object at 0x560aa3b31b40> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3ba0fd0>()
E + where <built-in method decode of bytes object at 0x560aa3ba0fd0> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
________ test_old_thirty_one_objects_and_entire_other_reviews_unchanged ________
def test_old_thirty_one_objects_and_entire_other_reviews_unchanged():
resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
old=json.loads(subprocess.check_output(['git','show','291ff48:'+resource],cwd=REPO))
now=json.loads((REPO/resource).read_bytes());now[PATH].pop('fixed_version_document')
assert now==old and len(DEFINITIONS)==32
blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
> assert len(blocks)==31 and sum(len(b['fields']) for b in blocks)==941 and sum(len(b.get('comments',[])) for b in blocks)==22
E AssertionError: assert (31 == 31 and 941 == 941 and 21 == 22)
E + where 31 = len([{'notice': '固定版本参考说明:节点按源声明分别核对固定提交;前端未声明,1.37.11仅显式假设;aux发布包与提交绑定、UE与目标环境未知', 'source_path': 'example_ComfyUI_workfl...ef7118e4950b37a608', 'canonical_sha256': '8881dcd31b226e95d9ce141e5f06067f4d5cb4bd11af88104d779422478d6201', ...}, ...])
E + and 941 = sum(<generator object test_old_thirty_one_objects_and_entire_other_reviews_unchanged.<locals>.<genexpr> at 0x7f22a1b7fa00>)
E + and 21 = sum(<generator object test_old_thirty_one_objects_and_entire_other_reviews_unchanged.<locals>.<genexpr> at 0x7f22a1cdb010>)
calliope-backend/tests/test_seedvr2_video_fixed_document.py:198: AssertionError
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-0bda4b003ea3/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
=========================== short test summary info ============================
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.filename_prefix]
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.format]
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.format.codec]
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.codec]
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.fps]
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.bit_depth]
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.color_space]
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.codec]
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_old_thirty_one_objects_and_entire_other_reviews_unchanged
9 failed, 319 passed, 1 warning in 5.20s
@@ -0,0 +1,728 @@
{
"base": "291ff48e6f232637dc87806bb1431424686b819e",
"files": [
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed"
},
{
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49"
},
{
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c"
},
{
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a"
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071"
},
{
"path": "docs/hel-892/supplied-api/02.api.json",
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b"
},
{
"path": "docs/hel-892/supplied-api/01.api.json",
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e"
},
{
"path": "docs/hel-892/supplied-api/07.api.json",
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d"
},
{
"path": "docs/hel-892/supplied-api/06.api.json",
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b"
},
{
"path": "docs/hel-892/supplied-api/04.api.json",
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e"
},
{
"path": "docs/hel-892/supplied-api/03.api.json",
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce"
},
{
"path": "docs/hel-892/supplied-api/05.api.json",
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8"
},
{
"path": "calliope-backend/src/calliope/comfyui/registry.py",
"sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d"
},
{
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
},
{
"path": "calliope-backend/src/calliope/comfyui/client.py",
"sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72"
},
{
"path": "calliope-backend/src/calliope/comfyui/output_map.py",
"sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.py",
"sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4"
},
{
"path": "calliope-backend/src/calliope/routers/workflows.py",
"sha256": "3f1d5fdacc841080973dcafb9cd87a42433ec19080a3ff14a29561f13d512c97"
},
{
"path": "calliope-backend/src/calliope/queue/worker.py",
"sha256": "54f5505ae78802f77fedf23690579444c9ccfbb0949b32f9e96980e8d55c2d3b"
},
{
"path": "docs/hel-892/h3-chain-evidence/library.json",
"sha256": "667c09ebd5ba14c281366a1b9f7647d74f74e055a863b121d9324ac75a423cd4"
},
{
"path": "docs/hel-892/media-evidence/protected-six-cases.json",
"sha256": "c2b9dffd7f1a9c5f0de51c26c9dd81beedd3ad7f6b67a54aa3eb5cead55c8c5f"
},
{
"path": "calliope-backend/src/calliope/comfyui/structure_reference.py",
"sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb"
},
{
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
"sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1"
},
{
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
"sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py",
"sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py",
"sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741"
},
{
"path": "calliope-backend/src/calliope/comfyui/library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
}
],
"originals": 163,
"old_thirty_one_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,704 @@
"""47 exact saved positions for the SeedVR2 video graph; editorial only."""
from __future__ import annotations
import copy
import hashlib
import importlib.util
import json
from pathlib import Path
REPO = Path(__file__).resolve().parents[3]
OUT = Path(__file__).resolve().parent
REF = OUT.parent / "seedvr2-video-reference"
PATHS = [
(
"example_ComfyUI_workflows/0-基础处理"
":图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Se"
"edvr2_3b_int8_视频放大.json"
)
]
def canonical(v):
return json.dumps(v, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
def build(index=0):
spec = importlib.util.spec_from_file_location(
"image_reference_builder", OUT.parent / ("seedvr2-document-evidence/build_definition.py")
)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
image = module.build()
raw = (REPO / PATHS[index]).read_bytes()
graph = json.loads(raw)
sub = graph["definitions"]["subgraphs"][0]
entries = json.loads((REF / "sources.json").read_bytes())["sources"]
refs = copy.deepcopy(image["sources"])
def ref(file, first, last, claim):
e = next(e for e in entries if e["file"] == file)
refs.append(
{
**e,
"local_file": "../seedvr2-video-reference/" + e["local_file"],
"lines": [first, last],
"claim": claim,
}
)
return len(refs) - 1
load = ref(
"comfy_extras/nodes_video.py",
193,
231,
"准确core0.28.1 LoadVideo动态视频枚举、video上传、路径验证与VideoFromFile;未读取素材",
)
save = ref(
"comfy_extras/nodes_video.py",
78,
130,
(
"准确SaveVideo是平面format/codec Combo"
"及VIDEO返回;不含format.codec或动态嵌套sche"
"ma,保存/UI描述符与产物分开"
),
)
create = ref(
"comfy_extras/nodes_video.py",
133,
173,
(
"准确CreateVideo只有images/fps/audio/"
"bit_depth,bit_depth是INT而非源COMBO,"
"无color_space/codec"
),
)
components = ref(
"comfy_extras/nodes_video.py",
175,
191,
"准确GetVideoComponents四出口,bit_depth为INT,不含源图额外color_space出口",
)
trim = ref(
"comfy_extras/nodes_video.py",
233,
277,
"准确Video Slice默认/单位/范围及as_trimmed失败抛错;非保证获得10秒",
)
switch = ref(
"comfy_extras/nodes_logic.py",
86,
115,
"准确ComfySwitchNode布尔真选on_true、假选on_false;lazy请求只选分支",
)
ref("comfy_extras/nodes_video.py", 280, 293, "准确视频扩展注册入口")
ref("comfy_extras/nodes_logic.py", 334, 353, "准确逻辑扩展注册入口")
ref(
"comfy_api/latest/_io.py",
248,
267,
"Boolean schema默认None;节点未显式default时不称true默认",
)
ref(
"comfy_api/latest/_io.py", 350, 407, "Combo输入类型/枚举schema;不能将普通Combo改称动态分支"
)
enums = ref(
"comfy_api/latest/_util/video_types.py",
7,
50,
(
"准确VideoCodec auto/h264、Container"
" auto/mp4与auto扩展mp4;VideoCompone"
"nts含Fraction/audio,可选字段非源实况"
),
)
filetrim = ref(
"comfy_api/latest/_input_impl/video_types.py",
84,
127,
"VideoFromFile负起点从末尾归一、duration取可用时长最小值;非实际片长",
)
ref(
"comfy_api/latest/_input_impl/video_types.py",
488,
498,
"VideoFromFile.as_trimmed仅严格且不足时返回None,其余构造裁剪引用;不执行解码",
)
encoding = ref(
"comfy_api/latest/_input_impl/video_types.py",
501,
604,
(
"准确VideoFromComponents保存仅MP4/H264"
"、8/10位、帧率取千分精度、有音频则AAC并按图像长度截取;非"
"同步保证;as_trimmed另有不足拒绝"
),
)
ref(
"comfy_api/latest/_input/video_types.py",
71,
106,
"VideoInput基类时间窗口/默认位深/时长接口;具体子类分开",
)
ref(
"comfy_api/latest/_ui.py",
27,
43,
"SavedResult filename/subfolder/type描述符,无产物存在保证",
)
ref("comfy_api/latest/_ui.py", 428, 433, "PreviewVideo序列化images和animated元组,非已输出证明")
ref(
"LICENSE",
1,
len((REF / "video__LICENSE").read_text().splitlines()),
"准确core0.28.1许可原文",
)
ref(
"comfy_api/latest/_io.py",
661,
667,
"准确Video类型VIDEO标记及VideoInput类型绑定,非源扩展口兼容保证",
)
# All implementation/type/enum/UI text cited at precise relevant spans below.
dynamic = next(i for i, e in enumerate(refs) if e["file"].endswith("dynamicWidgets.ts"))
templates = {f["field"]: f for f in image["fields"]}
specials = {
"file": (
"输入视频文件引用",
"动态input视频枚举,无固定文件默认",
"文件引用",
"按video内容类型过滤;实际素材未知",
(
"保存ComfyUI_00002.mp4,经根边72进入6"
"6.video;只是源文件引用,不读取素材、不保证存在或"
"可解码。"
),
[load],
),
"upload": (
"上传控件保存状态",
"前端注入;无独立后端参数默认",
"前端状态",
"保存image字符串;准确schema upload=video",
(
"源保存image占位而准确LoadVideo声明vide"
"o上传;不当作第二个视频参数、已上传状态或素材路径。"
),
[load],
),
"filename_prefix": (
"视频保存文件名前缀",
"video/ComfyUI",
"文本",
"准确实现用output目录及计数命名",
(
"保存video/Upscaled_seedVR2,条件调用vid"
"eo.save_to并返回VIDEO和UI文件描述符;未保存任何"
"视频,准确枚举auto/mp4的扩展规则为mp4,VideoFr"
"omComponents条件仅MP4/H264,有音频则AAC;"
"这不是实际扩展名/编码器/元数据结果。"
),
[save],
),
"format": (
"保存容器选择",
"auto",
"枚举",
"准确0.28.1为平面Combo,选项见固定VideoContainer",
(
"源口声明动态类型而准确schema是普通Combo。保存"
"auto仅请求自动容器,不保证实际格式;不把format"
".codec并入该值。"
),
[save],
),
"format.codec": (
"源保存的嵌套编码选择",
"未知:准确schema无此项",
"源动态分支保存文本",
"准确SaveVideo无format.codec字段",
(
"原位置独立保存auto;准确0.28.1仅平面forma"
"t和codec,源额外动态层次无法按此版本确认,不合并、"
"不删值、不补分支。"
),
[save, dynamic],
),
"fps": (
"视频重组帧率缓存",
"30.0",
"帧/秒",
"1.0~120.0,step1.0",
(
"内部75保存JSON int30,外线69由74.fps"
"覆盖;拆分端准确float(frame_rate),不能"
"用缓存保证实际30FPS或音画同步。"
),
[create, components],
),
"bit_depth": (
"视频重组位深缓存",
"8",
"位",
"INT 8~10,step2;源输入COMBO与准确INT不一致",
(
"保存JSON int8,外线70由74.bit_depth覆盖;"
"边记录type INT而源两端口COMBO。准确0.28.1两端"
"均INT,保留差异,不据缓存证明实际8位。"
),
[create, components],
),
"color_space": (
"源保存的重组色彩空间",
"未知:准确schema无此项",
"源枚举标签",
"准确CreateVideo没有color_space输入,GetVideoComponents也无该出口",
"保存sRGB且未接线;准确0.28.1无该字段,不等于已应用sRGB,不推断色彩管理或保真。",
[create, components],
),
"switch": (
"是否选择修剪视频",
"未显式指定;Boolean默认None",
"布尔值",
"true选择on_true,false选择on_false;lazy只请求所选分支",
(
"宿主66保存true经边80覆盖内部81缓存true;81.on"
"_true经77来自79切片,on_false经78来自原vid"
"eo。准确实现真选切片,不凭类名推测、不执行开关。"
),
[switch],
),
"start_time": (
"修剪起点",
"0.0",
"秒",
"-100000~100000,step0.001;负值实际解释见视频类型实现",
(
"宿主保存JSON int0,经边81覆盖内部79缓存0;"
"由准确as_trimmed处理。未读取素材,起点有效性未"
"知。"
),
[trim],
),
"duration": (
"修剪目标时长",
"0.0",
"秒",
"最小0、step0.001;0表示不限时长;未声明max",
(
"宿主保存JSON int10经边82覆盖内部79缓存10;str"
"ict_duration=false并不保证输出10秒,短片/负"
"起点等条件另见准确视频实现。"
),
[trim],
),
"strict_duration": (
"严格要求修剪时长",
"False",
"布尔值",
"true请求严格时长;false仍可能失败",
(
"内部79独立保存false,无宿主覆盖。准确节点调用as"
"_trimmed,返回None即抛ValueError;"
"不把false当无条件成功。"
),
[trim],
),
}
effects = {
"seed": (
"宿主seed_1保存959948902156062,经边87覆盖"
"内部54.seed缓存;内部fixed另为生成后前端控制,不求随"
"机值或补宿主控制。"
),
"control_after_generate": (
"仅内部54保存fixed;宿主没有独立保存该控制,和seed_1分开。不构造随机值或prompt。"
),
"steps": "仅内部54保存1,没有宿主steps边界或覆盖;单步不是实际画质、速度或成功保证。",
"cfg": (
"仅内部54保存JSON int1,对应FLOAT sch"
"ema,没有宿主cfg边界;条件来自61,模型适配和效果"
"未知。"
),
"sampler_name": (
"保存euler,宿主边90覆盖内部54缓存;准确采样器枚举包含euler,不证明SeedVR2适配。"
),
"scheduler": "保存simple,宿主边91覆盖内部54缓存;准确调度器枚举包含simple,不是实跑证明。",
"denoise": "保存JSON int1,宿主边92覆盖内部54缓存;1不证明注释所称full restore或保真效果。",
"unet_name": (
"宿主及内部52均保存Seedvr2\\seedvr2_3b_int"
"8_convrot.safetensors(大小写逐字保留),宿"
"主边94覆盖内部缓存;Note推荐路径另列,不验证磁盘/模型/精"
"度。"
),
"vae_name": (
"宿主seedvr2_ema_vae_fp16.safetenso"
"rs经边95覆盖内部51缓存ema_vae_fp16.safet"
"ensors;与Note推荐并列,不替换、不证明安装。"
),
"resize_type.multiplier": (
"保存JSON int2;宿主resize_type.multip"
"lier_1经边86覆盖内部57缓存。准确resize按roun"
"d计算宽高再插值;倍率插值与模型效果分开,实际尺寸未知。"
),
"color_correction_method": (
"宿主none经边93覆盖内部59缓存none;三类SeedVR2"
"准确实现仍未证,不能保证无颜色变化或可用选项。"
),
"temporal_size": (
"内部48编码与55解码分别保存4096;本图无宿主tempora"
"l_size输入或外线。仅视频VAE使用时间窗口,不保证帧数、内"
"存或成功。"
),
"tile_size": (
"内部48编码与55解码分别保存512;无宿主覆盖。准确实"
"现按VAE压缩换算,分块不保证显存足够或无接缝。"
),
"overlap": (
"内部48编码与55解码分别保存128;无宿主覆盖。准确解"
"码按tile_size限幅和压缩换算,保留源值,不保证无"
"接缝。"
),
"temporal_overlap": (
"内部48/55分别保存8;仅视频VAE时间分块适用,按压缩换算/限幅,不保证同步或资源容量。"
),
"weight_dtype": (
"内部52独立保存default,无宿主覆盖;文件名int"
"8不证明实际加载/计算dtype、设备支持或速度。"
),
"resize_type": "内部57保存scale by multiplier;只列此动态分支,不补宽高或其它未保存分支。",
"scale_method": (
"内部57保存lanczos;准确schema默认area"
"另列。只是倍率插值算法,不是SeedVR2超分模型或清晰"
"度保证。"
),
}
fields = []
missing = []
comments = []
for scope, g, prefix in [
("root", graph, ""),
("subgraph:" + sub["id"], sub, "/definitions/subgraphs/0"),
]:
for i, n in enumerate(g["nodes"]):
base = f"{prefix}/nodes/{i}"
if "widgets_values" not in n:
missing.append(
dict(
node_id=str(n["id"]),
class_type=n["type"],
pointer=base,
value_state="missing",
effect=(
"源未保存widgets_values,非[]或null,零保存位"
"置,不补值;SeedVR2准确实现/素材内容仍未知。"
),
)
)
continue
if n["type"] == "MarkdownNote":
assert n["widgets_values"][0] == n["widgets_values_named"]["text"]
comments.append(
dict(
node_id=str(n["id"]),
pointer=base + "/widgets_values/0",
named_pointer=base + "/widgets_values_named/text",
text=n["widgets_values"][0],
meaning=(
"注释78:子图指南、VAE/UNET模型引用及SEEDVR2与diffusion_models目录建议,"
"另列更新及后端/前端/模板报错入口。推荐VAE名与宿主保存名不同;"
"目录不是已安装证明,链接仅原文,不更新软件、下载或执行。"
if n["id"] == 78
else "注释82:自述3B Int8单步视频恢复,列项目及原生支持PR链接;"
"trim_video/trim_start_time/scale_multiplier只是Note用语,"
"实际源保存名为switch/start_time/resize_type.multiplier_1,不生成别名参数。"
"Note称倍率默认2、颜色默认none及denoise=1 full restore;"
"这些是原文陈述,准确schema默认及未知项分别见逐位置说明。"
"短段处理再合并是建议,本图无合并节点,未证明防OOM、耗时或画质;链接不执行。"
),
)
)
continue
names = list(n["widgets_values_named"])
assert len(names) == len(n["widgets_values"])
for k, (name, value) in enumerate(zip(names, n["widgets_values"])):
assert canonical(value) == canonical(n["widgets_values_named"][name])
normalized = {
"seed_1": "seed",
"resize_type.multiplier_1": "resize_type.multiplier",
}.get(name, name)
if normalized == "codec":
if n["id"] == 76:
data = (
"保存编码器选择",
"auto",
"枚举",
"准确0.28.1平面codec Combo;与format.codec位置分开",
(
"根76独立codec保存auto;准确schema支持此平面字段"
"但不支持额外嵌套项,不归并多个auto,也不保证实际编解码器可用"
"。"
),
[save],
)
else:
data = (
"源保存的重组编码标签",
"未知:准确schema无此项",
"源枚举标签",
"准确CreateVideo没有codec参数",
(
"内部75保存none且未接线;准确0.28.1无此字段,"
"不解释为已无损/未编码/禁用编码。"
),
[create],
)
else:
data = specials.get(normalized)
if data:
label, default, unit, limits, effect, ev = data
f = dict(
label=label,
schema_default=default,
unit=unit,
limits=limits,
effect=effect,
evidence=ev,
)
else:
f = copy.deepcopy(templates[normalized])
f["effect"] = effects[normalized]
inp_idx = next(
(j for j, p in enumerate(n.get("inputs", [])) if p["name"] == name), None
)
named = base + "/widgets_values_named/" + name.replace("~", "~0").replace("/", "~1")
inp = f"{base}/inputs/{inp_idx}" if inp_idx is not None else named
linked = inp_idx is not None and n["inputs"][inp_idx].get("link") is not None
role = (
"linked_saved"
if linked
else "frontend_control"
if normalized in ["upload", "control_after_generate"]
else "scalar"
)
f.update(
node_id=str(n["id"]),
scope=scope,
class_type=n["type"],
field=name,
pointer=f"{base}/widgets_values/{k}",
named_pointer=named,
input_pointer=inp,
value=value,
json_type=type(value).__name__,
type=next(
(p["type"] for p in n.get("inputs", []) if p["name"] == name), "前端状态"
),
role=role,
execution_note="仅原保存态,mode0非实跑;具名双指针:"
+ named
+ ";源口/前端状态:"
+ inp,
)
f["evidence"] = list(
dict.fromkeys(
f["evidence"]
+ [19, 20, 21, 22]
+ (
[enums, encoding]
if n["id"] in [75, 76]
else [filetrim]
if normalized in ["start_time", "duration", "strict_duration"]
else []
)
+ ([23] if normalized == "upload" else [])
)
) # exact host/subgraph/callback source references
fields.append(f)
assert len(fields) == 47 and len(comments) == 2
boundaries = []
ns = {n["id"]: n for n in sub["nodes"]}
for j, port in enumerate(sub["inputs"]):
edges = [e for e in sub["links"] if e["origin_id"] == -10 and e["origin_slot"] == j]
assert {e["id"] for e in edges} == set(port["linkIds"])
for e in edges:
target = ns[e["target_id"]]
ti = sub["nodes"].index(target)
assert target["inputs"][e["target_slot"]]["link"] == e["id"]
boundaries.append(
dict(
host_slot=j,
name=port["name"],
host_pointer=f"/nodes/4/inputs/{j}",
definition_pointer=f"/definitions/subgraphs/0/inputs/{j}",
edge=e,
target_pointer=f"/definitions/subgraphs/0/nodes/{ti}/inputs/{e['target_slot']}",
)
)
overview = (
"这张图读取视频,按已保存的开关选择原片或修剪片段,再把画面放大、"
"经过SeedVR2链处理,与音频和帧率重组后保存。当前开关为真,"
"修剪请求从0秒起10秒,倍率2;都只是保存设置,不能保证实际时长"
"、画质或显存足够。视频节点的源保存项与准确版本有不匹配,还有一条"
"悬空历史端点;仅供参考,保持转换关闭、未实跑。"
)
flow = [
overview,
(
"根5节点/2边、内部13节点/34含边界记录,全mode0。73"
".LoadVideo经72→66.video;66.VIDEO经"
"73→76.SaveVideo。同UUID1970dcb4…不等"
"于上一图片图同一定义。"
),
(
"宿主video分别经74→79.Video Slice.vide"
"o、78→81.on_false;79切片经77→81.on_t"
"rue。准确core0.28.1 switch=true选择on"
"_true且lazy只请求该支;false选择原片。宿主true"
"经80覆盖81保存true;0/10经81/82覆盖79缓存;s"
"trict_duration=false独立。未执行切片,不保证"
"10秒或规避OOM。"
),
(
"异常:79输出links原保存[76,77],定义links清单"
"没有id76;只记录悬空/历史端点,不删线、不模拟修复、不把它计"
"入34条真实记录。定义输出71由75→-20,不能把悬空76猜成"
"输出。"
),
(
"81经79→74.GetVideoComponents;74.i"
"mages经66→57.Resize→58.Preprocess"
"→48.Encode;48→61.Conditioning及54"
".KSampler,52.UNET→61及54,61正负→54,"
"54→55.Decode→59.PostProcessing→7"
"5.images。51.VAE→48/55,57另→59.ori"
"ginal_resized_images。三类SeedVR2实现"
"仅沿用core0.27.0有界未证结论,不借新版或同名插件。"
),
(
"准确VideoFromFile负起点从片尾归一、时长取可用最小值"
",strict=false不保证片长;VideoFromComp"
"onents另一实现不足时返回None,不混同。74.audio"
"/fps/bit_depth分别经68/69/70→75;fps"
"缓存JSON int30、bit_depth缓存JSON int"
"8均被外线覆盖。源bit_depth两端口COMBO而边type"
" INT;准确0.28.1两端INT。74源还保存color_s"
"pace出口但未接,准确版本仅四出口;75源保存sRGB/non"
"e未接而准确schema无color_space/codec。准"
"确重组保存按千分精度取帧率、8/10位选择YUV格式、音频按帧数"
"截取并条件AAC;这些静态条件不能保证实际音轨、FPS、色彩或同"
"步。"
),
(
"根76保存四位置[video/Upscaled_seedVR2,"
"auto,auto,auto];format、format.co"
"dec、codec独立保留。准确0.28.1 SaveVideo"
"只有平面format和codec普通Combo,无嵌套forma"
"t.codec,源动态口不匹配;不归并、不补控件、不凭保存顺序构"
"造prompt。准确VIDEO返回及UI文件描述符不证明已产出。"
),
(
"12宿主输入=video+11控件,video分叉形成13条输入"
"边界记录;不是13个输入。边86倍率→57;87seed_1→5"
"4;90/91/92算法/调度/denoise→54;93non"
"e→59;94/95模型→52/51;无steps/cfg/te"
"mporal宿主边。内部steps1/cfg1/fixed与51"
"2/128/4096/8分别保存,不当外线值。"
),
(
"倍率2/lanczos是插值条件,不保证模型效果;宿主/内部UN"
"ET均Seedvr2\\seedvr2_3b_int8_convr"
"ot.safetensors,逐字保持。VAE宿主seedvr2"
"_ema_vae_fp16与内部ema_vae_fp16不同;两"
"Note模型推荐/目录/项目/PR链接只原文,不执行下载或替换。"
"one-step/full restore/防OOM建议非实测。"
),
(
"源声明视频/切片/开关core0.28.1,其余模型/采样/re"
"size/core宿主0.27.0,frontend1.45.2"
"0分别绑定。准确核心文本/schema/注册/视频实现/许可静态"
"核对,不安装执行上游/GPU/媒体/随机种子。三SeedVR2类"
"默认/范围/效果/真实提供方未知。"
),
(
"全节点UE7.8与宿主可连接表、previewExposures"
"指54只是保存属性;恢复次序未知分层。准确frontend先属性"
"/保存值再onConfigure,子图重建槽后恢复代理,不能推U"
"E最终值。根extra缺links_added_by_ue键,内"
"部extra只有ue_links空;缺键不补[]。58/61/7"
"4缺widgets_values,非空[]或null。"
),
(
"47保存位置=根17+内部30,均标量;另2完整Markdown"
"Note。旧31块941位置+22注释逐对象冻结,现32图988"
"位置+24注释仅参考。155完整定稿0/必要实跑0/新增转换0;"
"145UI仍9参考候选136关闭。"
),
]
flow.extend("注释中文说明:" + note["meaning"] for note in comments)
for scope, g in [("root", graph), ("subgraph:" + sub["id"], sub)]:
flow.extend("原边 " + scope + " " + json.dumps(e, ensure_ascii=False) for e in g["links"])
flow.extend("边界 " + json.dumps(e, ensure_ascii=False) for e in boundaries)
# Compact exact inherited references to those actually relevant; no image comparer attribution.
inherited = [
i
for i, e in enumerate(refs[: len(image["sources"])])
if e["id"] != "rgthree" and i not in [0, 1, 2, 15, 23]
]
used = sorted(
set(
inherited
+ list(range(len(image["sources"]), len(refs)))
+ [i for f in fields for i in f["evidence"]]
)
)
remap = {old: new for new, old in enumerate(used)}
for f in fields:
f["evidence"] = [remap[i] for i in f["evidence"]]
sources = [refs[i] for i in used]
versions = [
"core0.27.0→" + next(e["commit"] for e in sources if e["id"] == "core"),
"core0.28.1→" + entries[0]["commit"],
"frontend1.45.20→" + next(e["commit"] for e in sources if e["id"] == "frontend"),
]
return dict(
source_path=PATHS[index],
source_sha1=hashlib.sha1(raw).hexdigest(),
source_sha256=hashlib.sha256(raw).hexdigest(),
canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),
notice=(
"仅准确来源参考;视频schema差异、悬空端点、Seed"
"VR2实现、模型素材及扩展恢复未知;转换关闭、未实跑。"
),
user_overview=overview,
versions=versions,
counts=dict(
saved_fields=47,
source_nodes=18,
physical_edges=36,
source_notes=2,
history_objects=0,
linked_saved_fields=sum(f["role"] == "linked_saved" for f in fields),
frontend_only=2,
final_scalars=0,
final_prompt_constructed=False,
),
fields=fields,
sources=sources,
comments=comments,
flow=flow,
flow_evidence=list(range(len(sources))),
zero_saved_nodes=missing,
boundaries=boundaries,
steps=[
overview,
"操作1:分别核对原片/切片两支、悬空76与宿主边界,保持停用;不上传或处理素材。",
(
"操作2:逐位置核对模型路径、固定种子、内部缓存与覆盖;准"
"确版本差异未确认前不构造prompt。"
),
"操作3:实际音轨/FPS/同步/编解码器/设备/画质未知;后续全量审查通过前不作为生成入口。",
],
)
@@ -0,0 +1,40 @@
"Check changed authored Python only; upstream originals remain byte-for-byte."
import json
import subprocess
from pathlib import Path
ROOT = Path(__file__).resolve().parents[3]
OUT = Path(__file__).resolve().parent
FILES = [
"calliope-backend/src/calliope/comfyui/fixed_document.py",
"calliope-backend/tests/test_seedvr2_video_fixed_document.py",
"e2e/run-seedvr2-video-document.py",
] + [str(p.relative_to(ROOT)) for p in sorted(OUT.glob("*.py"))]
def main():
for command in [["check"], ["format", "--check"]]:
subprocess.run(
[
"uv",
"run",
"--project",
"calliope-backend",
"--offline",
"ruff",
*command,
"--config",
"calliope-backend/pyproject.toml",
*FILES,
],
cwd=ROOT,
check=True,
)
subprocess.run(["node", "--check", "e2e/seedvr2-video-document.mjs"], cwd=ROOT, check=True)
(OUT / "python-check-files.json").write_text(json.dumps(FILES, indent=2) + "\n")
print("PASS", len(FILES), "authored Python files and one JS syntax check")
if __name__ == "__main__":
main()
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,15 @@
第51批只新增Seedvr2_3b_int8_视频放大的参考说明,基线291ff48e6f232637dc87806bb1431424686b819e,继续PR25原分支agent/agent/a64a969a6a44、base main;不合并部署。155完整定稿0、必要实跑0、新增转换0,全量未完成。
- 独立原件盘点:根5节点2边、定义13节点34含边界记录,全mode0。47标量位置=根17+内部30,另2完整Note;12宿主输入形成13输入边界记录。58/61/74缺widgets_values,不当[]或null。旧31块941位置+22源注释逐对象不变,现32图988+24仅参考。
- 0.28.1准确Switch真选切片、假选原片,lazy仅请求选中分支;79输出[76,77]中76不在links清单,原样保留异常。缓存30FPS/8bit被69/70外线覆盖。准确0.28.1拆分位深为INT,无color_space出口;重组只有images/fps/audio/bit_depth,无源保存sRGB/none对应的color_space/codec参数。SaveVideo准确为平面format/codec普通Combo,无源嵌套format.codec;四个保存位置独立,不删除、归并或造prompt。
- 模型/采样/resize仍绑定准确0.27.0及frontend1.45.20;三类SeedVR2实现沿用上一批有界未证结论,不新增全仓调查。新增准确core0.28.1 tag→87a003e0c975b8f13e2d4067dd0710e56edd7ba5及完整tree,11必要Git文本/许可原件(含3兼容导出薄层),共20份实际引用文本、40精确行号引用。索引local_file基准:docs/hel-892/seedvr2-video-document-evidence。源字节、规范全图与定义摘要信任绑定,调用方重算摘要不能绕过。
- 宿主与内部VAE文件名差异、UNET路径大小写逐字保留;fixed/steps1/cfg1/512/128/4096/8均与宿主覆盖分开。2倍lanczos仅插值,0/10仅切片请求,Note的one-step/full restore/防OOM建议非效果或资源保证。两Note全文及各自中文解释进入实际doc/GET/现有技术折叠;默认先用途与限制。UE7.8/宿主连接表/previewExposures与恢复未知分层;根extra缺links_added_by_ue不补[]。
- 本批315专项+13库回归=328通过;12自写Python Ruff check/format及JS语法通过。离线wheel/sdist三项资源逐字核对、双次重建/渲染确定性通过。真实基线旧代码隔离库:1update/154skip,154整行不变;再导155skip,精确回退1、再升级1;升级前后用户修改均1conflict且29列整行保留。155停用未检查/时间戳空,16/139与1217/3660/294不变,case06排除。
- 本批浏览1496断言=736新图+744旧31概要+2汇总+14共享;1440/390逐位置、两Note全文、中文flow、准确来源、默认折叠、错绑定/空旧doc/迟到重试、焦点及无横溢通过。浏览固定GET109/轮询10;后端固定104含就绪1/轮询10,6个本地详情拦截逐次单列(3回退/1迟到/2次500),字体CSS拦截1,禁止请求0。最终finally停止两服务并确认8247/5173释放。六张代表图逐张目验;少量注释装饰字符字体缺字,原码点保留、不下载字体或改Drawer。
- 163原件边界与191冻结资源、28profiles/9候选hash/六差分、执行资格、Drawer整文件不改;145UI仍9参考候选136关闭。未机械跑无关全后台/全前端/冻结转换。历史5个业务失败与旧I001仅沿用上批记录,不称全仓全绿。首次引用越界/注释计数断言和格式修正详见development-corrections.md,保留初始失败日志。
实现入口:calliope-backend/src/calliope/comfyui/source_reviews.json的新固定块及fixed_document.py摘要钉定;新test_seedvr2_video_fixed_document.py;e2e/seedvr2-video-document.mjs及前台生命周期宿主;本目录构建/审核脚本与中文说明、seedvr2-video-reference原件。没有新依赖、样式覆盖或调试残留。
复现入口validation-commands.txt;实际doc在actual-Seedvr2_3b_int8_视频放大.json;逐位置与双指针在definition-0.json/完整中文;源码/许可证索引fixed-source-index.json/source-check.json;旧库保护import-protection.json,冻结边界boundaries.json/frozen-resource-check.json;包package-check.json,58受测输入tested-files.json。完整逐文件差集、补丁和最终head核对随交付附件。
仍未知:三类SeedVR2真实实现及模型适配、UE/宿主动态恢复、版本与源保存schema差异、悬空端点实际历史、目标素材/音轨/FPS/同步/编解码器/设备/显存/效果。当前批无需用户材料或窗口;未连接目标、不停TTS、不启ComfyUI、不提交/prompt、不执行上游/GPU/媒体/随机种子、不下载模型素材字体运行库、不调用付费、不写在线库。155全量目标保留,全部完成并审核通过后才发布。
@@ -0,0 +1,5 @@
本批首次后台验证:319通过/9失败。8处失败同源:VideoComponents引用止行51超过原文50行;已改为7~50并重新核对全部引用。另1处把定义comments数当成实际source_notes数,遗漏旧图既有源注释;已改按真实build_document的source_notes统计,旧31图仍22完整源注释。最终结果见backend-final.txt,未修改原件或旧说明来迎合断言。
自写脚本初次Ruff发现导入顺序、多语句及中文显示宽度超长;已格式化、拆分相邻字符串,重复重建结果相等。保存lint-initial.txt/lint-after-format.txt/lint-fix.txt,最终见lint-final.txt。旧仓库I001与5个业务测试失败仅沿用历史记录,本批未跑全仓,不称全仓全绿。
逐项说明及Note中文解释均在新固定块;两Note解释另进入flow,复用现有技术折叠呈现,Drawer整文件不改。注释78与82原文逐字保留,无链接执行。Note少量文件夹/树线装饰字符受已有本地字体覆盖影响,屏幕显示方框,原Unicode码点未变;没有下载字体或修改产品样式。
@@ -0,0 +1,75 @@
"""Fetch bounded exact 0.28.1 video/switch text only; never execute upstream."""
import hashlib
import json
import urllib.request
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
REF = Path(__file__).resolve().parent.parent / "seedvr2-video-reference"
REPO = "Comfy-Org/ComfyUI"
FILES = [
"comfy_extras/nodes_video.py",
"comfy_extras/nodes_logic.py",
"comfy_api/input_impl/video_types.py",
"comfy_api/input/video_types.py",
"comfy_api/latest/_io.py",
"comfy_api/latest/_ui.py",
"nodes.py",
"LICENSE",
"comfy_api/latest/_input_impl/video_types.py",
"comfy_api/latest/_input/video_types.py",
"comfy_api/latest/_util/video_types.py",
]
def get(url):
with urllib.request.urlopen(url, timeout=45) as r:
b = r.read(3000001)
assert len(b) < 3000000
return b
def main():
raw = get(f"https://api.github.com/repos/{REPO}/git/ref/tags/v0.28.1")
(REF / "video-tag.json").write_bytes(raw)
tag = json.loads(raw)["object"]
assert tag["type"] == "commit"
commit = tag["sha"]
assert commit == "87a003e0c975b8f13e2d4067dd0710e56edd7ba5", "Tag binding changed"
print("exact core 0.28.1", commit, flush=True)
raw = get(f"https://api.github.com/repos/{REPO}/git/trees/{commit}?recursive=1")
(REF / "video-tree.json").write_bytes(raw)
tree = json.loads(raw)
assert not tree["truncated"] and tree["sha"] == commit
paths = {e["path"]: e for e in tree["tree"] if e["type"] == "blob"}
print(
"relevant paths",
[p for p in paths if any(s in p for s in ["video_types", "nodes_logic", "nodes_video"])],
flush=True,
)
def fetch(p):
url = f"https://raw.githubusercontent.com/{REPO}/{commit}/{p}"
b = get(url)
blob = hashlib.sha1(b"blob " + str(len(b)).encode() + b"\0" + b).hexdigest()
assert blob == paths[p]["sha"]
name = "video__" + p.replace("/", "__")
(REF / name).write_bytes(b)
return dict(
id="video",
file=p,
local_file=name,
url=url,
commit=commit,
sha256=hashlib.sha256(b).hexdigest(),
git_blob_sha1=blob,
)
with ThreadPoolExecutor(max_workers=4) as pool:
entries = list(pool.map(fetch, [p for p in FILES if p in paths]))
(REF / "sources.json").write_text(json.dumps(dict(sources=entries), indent=2) + "\n")
if __name__ == "__main__":
main()
@@ -0,0 +1,602 @@
[
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "comfy/samplers.py",
"local_file": "../seedvr2-reference/core__comfy__samplers.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/comfy/samplers.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "d882256ae9baa1d23f1367ab2ec3b021fdc15fe39ce4cb49ea2c1ee10026a649",
"git_blob_sha1": "25c5a855fd0435d5d2fd98b2eb016bc54273b07f",
"lines": [
970,
975
],
"claim": "准确KSAMPLER_NAMES含euler;完整别名链另引"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "nodes.py",
"local_file": "../seedvr2-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/nodes.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "b8dfdde1de8975be762b085048143cc2dda8fc9202695e460ecc2c8dfe44bc4b",
"git_blob_sha1": "9043a8d0a422b2870e7ef2cf25a1ec6be21a05f1",
"lines": [
754,
849
],
"claim": "VAELoader动态vae/vae_approx枚举、装载路径与特殊分支;不加载权重"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "nodes.py",
"local_file": "../seedvr2-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/nodes.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "b8dfdde1de8975be762b085048143cc2dda8fc9202695e460ecc2c8dfe44bc4b",
"git_blob_sha1": "9043a8d0a422b2870e7ef2cf25a1ec6be21a05f1",
"lines": [
966,
990
],
"claim": "UNETLoader动态diffusion_models及weight_dtype选项;不证明实际精度"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "nodes.py",
"local_file": "../seedvr2-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/nodes.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "b8dfdde1de8975be762b085048143cc2dda8fc9202695e460ecc2c8dfe44bc4b",
"git_blob_sha1": "9043a8d0a422b2870e7ef2cf25a1ec6be21a05f1",
"lines": [
1555,
1607
],
"claim": "KSampler默认/范围/调用;control_after_generate标记与后端seed分开"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "nodes.py",
"local_file": "../seedvr2-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/nodes.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "b8dfdde1de8975be762b085048143cc2dda8fc9202695e460ecc2c8dfe44bc4b",
"git_blob_sha1": "9043a8d0a422b2870e7ef2cf25a1ec6be21a05f1",
"lines": [
387,
405
],
"claim": "VAEEncodeTiled schema与encode_tiled参数;仅视频VAE时间窗口"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "nodes.py",
"local_file": "../seedvr2-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/nodes.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "b8dfdde1de8975be762b085048143cc2dda8fc9202695e460ecc2c8dfe44bc4b",
"git_blob_sha1": "9043a8d0a422b2870e7ef2cf25a1ec6be21a05f1",
"lines": [
343,
372
],
"claim": "VAEDecodeTiled schema、重叠限幅和压缩换算;非显存保证"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "comfy_extras/nodes_post_processing.py",
"local_file": "../seedvr2-reference/core__comfy_extras__nodes_post_processing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/comfy_extras/nodes_post_processing.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "96ec39e8d0e9fe9a70b332f97f994d507e1fa223a26699a3c9c9fbeedacf6575",
"git_blob_sha1": "763b8a52fa84fbee9432ee116000f131c0002400",
"lines": [
412,
513
],
"claim": "ResizeImageMaskNode动态倍率/算法schema与分支;不是模型超分效果"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "comfy_extras/nodes_post_processing.py",
"local_file": "../seedvr2-reference/core__comfy_extras__nodes_post_processing.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/comfy_extras/nodes_post_processing.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "96ec39e8d0e9fe9a70b332f97f994d507e1fa223a26699a3c9c9fbeedacf6575",
"git_blob_sha1": "763b8a52fa84fbee9432ee116000f131c0002400",
"lines": [
256,
308
],
"claim": "倍率按round计算宽高再common_upscale;无输入尺寸实测"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "nodes.py",
"local_file": "../seedvr2-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/nodes.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "b8dfdde1de8975be762b085048143cc2dda8fc9202695e460ecc2c8dfe44bc4b",
"git_blob_sha1": "9043a8d0a422b2870e7ef2cf25a1ec6be21a05f1",
"lines": [
2048,
2140
],
"claim": "准确核心静态注册表,含SaveImage和采样/编解码/加载器"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "nodes.py",
"local_file": "../seedvr2-reference/core__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/nodes.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "b8dfdde1de8975be762b085048143cc2dda8fc9202695e460ecc2c8dfe44bc4b",
"git_blob_sha1": "9043a8d0a422b2870e7ef2cf25a1ec6be21a05f1",
"lines": [
2372,
2513
],
"claim": "准确核心内置extras模块调查集合,nodes_seed.py为必要候选"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "comfy_extras/nodes_seed.py",
"local_file": "../seedvr2-reference/core__comfy_extras__nodes_seed.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/comfy_extras/nodes_seed.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "f1566b448ca9e4b4a1cbd15767301635905cf36a44a17f586c18b848e23e5932",
"git_blob_sha1": "e64f1d7e3cbcb1f882b4370a5b2413af8b7cc228",
"lines": [
1,
33
],
"claim": "准确nodes_seed.py全文调查;只对该集合下结论,不借新版或插件同名实现"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "comfy/samplers.py",
"local_file": "../seedvr2-reference/core__comfy__samplers.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/comfy/samplers.py",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "d882256ae9baa1d23f1367ab2ec3b021fdc15fe39ce4cb49ea2c1ee10026a649",
"git_blob_sha1": "25c5a855fd0435d5d2fd98b2eb016bc54273b07f",
"lines": [
1337,
1410
],
"claim": "准确采样器/调度器枚举与继承,不执行采样或求随机数"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "frontend",
"file": "src/scripts/widgets.ts",
"local_file": "../seedvr2-reference/frontend__src__scripts__widgets.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/widgets.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"sha256": "2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c",
"git_blob_sha1": "f1259180cac03fca9a8e4809b5a47c23c3ef625c",
"lines": [
70,
270
],
"claim": "准确前端seed附加生成后控制与控件schema,fixed不当宿主第二个seed"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "frontend",
"file": "src/core/graph/widgets/dynamicWidgets.ts",
"local_file": "../seedvr2-reference/frontend__src__core__graph__widgets__dynamicWidgets.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/core/graph/widgets/dynamicWidgets.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"sha256": "cbc7d1a9eccb1c64f90cf2f87db9ad3ba9a301d81ec3f8daea2af48e2ccb8e32",
"git_blob_sha1": "0a304c07f15c06d3d8aaa96725be2c7b5a04f018",
"lines": [
1,
615
],
"claim": "准确动态分支序列化/恢复;不制造未保存分支"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "frontend",
"file": "src/lib/litegraph/src/LGraphNode.ts",
"local_file": "../seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/LGraphNode.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588",
"git_blob_sha1": "934239cc7dc9f7af3bcedec4649d95034d987815",
"lines": [
870,
940
],
"claim": "宿主属性、widgets_values恢复再onConfigure;扩展次序不能据此确认"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "frontend",
"file": "src/lib/litegraph/src/subgraph/SubgraphNode.ts",
"local_file": "../seedvr2-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/subgraph/SubgraphNode.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"sha256": "bc0436dc3e21ccfa6f1dccf40935c0d0b97b607932f7025b975a4138efe1e24e",
"git_blob_sha1": "f31f5a05280a3788b6b9ca02ff7a4d0fc99ac30c",
"lines": [
990,
1090
],
"claim": "准确子图按定义重建槽后super.configure并恢复代理;没有保存的promoted条目不臆造"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "frontend",
"file": "src/lib/litegraph/src/subgraph/SubgraphNode.ts",
"local_file": "../seedvr2-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/lib/litegraph/src/subgraph/SubgraphNode.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"sha256": "bc0436dc3e21ccfa6f1dccf40935c0d0b97b607932f7025b975a4138efe1e24e",
"git_blob_sha1": "f31f5a05280a3788b6b9ca02ff7a4d0fc99ac30c",
"lines": [
648,
733
],
"claim": "子图无原生widgets,合成视图与内部目标;不据数组猜可执行prompt"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "frontend",
"file": "src/scripts/app.ts",
"local_file": "../seedvr2-reference/frontend__src__scripts__app.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/scripts/app.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"sha256": "6a0fd5cc4da6aad850ac05d312a22fd2f545fd296735ed7b927b62d7a564c08e",
"git_blob_sha1": "e326db4703c6fdf1098910dab81d3eefad91b009",
"lines": [
815,
835
],
"claim": "图级扩展configure回调与宿主次序;UE7.8实现/加载未知"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "frontend",
"file": "src/extensions/core/uploadImage.ts",
"local_file": "../seedvr2-reference/frontend__src__extensions__core__uploadImage.ts",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/src/extensions/core/uploadImage.ts",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06",
"git_blob_sha1": "58e43bb218171534c4713bdced29171ecb96d903",
"lines": [
1,
40
],
"claim": "LoadImage上传占位扩展,不是第二后端图片参数"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "core",
"file": "LICENSE",
"local_file": "../seedvr2-reference/core__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/bb131be9e83d2f773c90f1d6f1e4b248a498c8c5/LICENSE",
"commit": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
"lines": [
1,
674
],
"claim": "准确提交许可原文;未推目标安装或许可适用性"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "frontend",
"file": "LICENSE",
"local_file": "../seedvr2-reference/frontend__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI_frontend/7bd9f8b0d0b854ccb5a947623468f36a392ea0ff/LICENSE",
"commit": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
"lines": [
1,
674
],
"claim": "准确提交许可原文;未推目标安装或许可适用性"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_extras/nodes_video.py",
"local_file": "../seedvr2-video-reference/video__comfy_extras__nodes_video.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_extras/nodes_video.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "421dcb63c0159c14c68d4cfbfd7403f43871e2e84d6336803467bd806f8a2aa1",
"git_blob_sha1": "3bfd00be4f5119e901d6e75a0cff35ec7ccde13c",
"lines": [
193,
231
],
"claim": "准确core0.28.1 LoadVideo动态视频枚举、video上传、路径验证与VideoFromFile;未读取素材"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_extras/nodes_video.py",
"local_file": "../seedvr2-video-reference/video__comfy_extras__nodes_video.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_extras/nodes_video.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "421dcb63c0159c14c68d4cfbfd7403f43871e2e84d6336803467bd806f8a2aa1",
"git_blob_sha1": "3bfd00be4f5119e901d6e75a0cff35ec7ccde13c",
"lines": [
78,
130
],
"claim": "准确SaveVideo是平面format/codec Combo及VIDEO返回;不含format.codec或动态嵌套schema,保存/UI描述符与产物分开"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_extras/nodes_video.py",
"local_file": "../seedvr2-video-reference/video__comfy_extras__nodes_video.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_extras/nodes_video.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "421dcb63c0159c14c68d4cfbfd7403f43871e2e84d6336803467bd806f8a2aa1",
"git_blob_sha1": "3bfd00be4f5119e901d6e75a0cff35ec7ccde13c",
"lines": [
133,
173
],
"claim": "准确CreateVideo只有images/fps/audio/bit_depth,bit_depth是INT而非源COMBO,无color_space/codec"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_extras/nodes_video.py",
"local_file": "../seedvr2-video-reference/video__comfy_extras__nodes_video.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_extras/nodes_video.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "421dcb63c0159c14c68d4cfbfd7403f43871e2e84d6336803467bd806f8a2aa1",
"git_blob_sha1": "3bfd00be4f5119e901d6e75a0cff35ec7ccde13c",
"lines": [
175,
191
],
"claim": "准确GetVideoComponents四出口,bit_depth为INT,不含源图额外color_space出口"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_extras/nodes_video.py",
"local_file": "../seedvr2-video-reference/video__comfy_extras__nodes_video.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_extras/nodes_video.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "421dcb63c0159c14c68d4cfbfd7403f43871e2e84d6336803467bd806f8a2aa1",
"git_blob_sha1": "3bfd00be4f5119e901d6e75a0cff35ec7ccde13c",
"lines": [
233,
277
],
"claim": "准确Video Slice默认/单位/范围及as_trimmed失败抛错;非保证获得10秒"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_extras/nodes_logic.py",
"local_file": "../seedvr2-video-reference/video__comfy_extras__nodes_logic.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_extras/nodes_logic.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "2cb1ce149ce616c0b12a67962ed7b799eb398fbcdeb20dcec4c5210eb6af6df1",
"git_blob_sha1": "13c1685f7d8ba95d9d5ab640f8249e0f895889d5",
"lines": [
86,
115
],
"claim": "准确ComfySwitchNode布尔真选on_true、假选on_false;lazy请求只选分支"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_extras/nodes_video.py",
"local_file": "../seedvr2-video-reference/video__comfy_extras__nodes_video.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_extras/nodes_video.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "421dcb63c0159c14c68d4cfbfd7403f43871e2e84d6336803467bd806f8a2aa1",
"git_blob_sha1": "3bfd00be4f5119e901d6e75a0cff35ec7ccde13c",
"lines": [
280,
293
],
"claim": "准确视频扩展注册入口"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_extras/nodes_logic.py",
"local_file": "../seedvr2-video-reference/video__comfy_extras__nodes_logic.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_extras/nodes_logic.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "2cb1ce149ce616c0b12a67962ed7b799eb398fbcdeb20dcec4c5210eb6af6df1",
"git_blob_sha1": "13c1685f7d8ba95d9d5ab640f8249e0f895889d5",
"lines": [
334,
353
],
"claim": "准确逻辑扩展注册入口"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_api/latest/_io.py",
"local_file": "../seedvr2-video-reference/video__comfy_api__latest___io.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_io.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "ac986092cace7600461b8547e21f770126958d8c15eef59d79d6709cca4b7717",
"git_blob_sha1": "58e49d8e2d29b1c07489576263ea84ac0fd67895",
"lines": [
248,
267
],
"claim": "Boolean schema默认None;节点未显式default时不称true默认"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_api/latest/_io.py",
"local_file": "../seedvr2-video-reference/video__comfy_api__latest___io.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_io.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "ac986092cace7600461b8547e21f770126958d8c15eef59d79d6709cca4b7717",
"git_blob_sha1": "58e49d8e2d29b1c07489576263ea84ac0fd67895",
"lines": [
350,
407
],
"claim": "Combo输入类型/枚举schema;不能将普通Combo改称动态分支"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_api/latest/_util/video_types.py",
"local_file": "../seedvr2-video-reference/video__comfy_api__latest___util__video_types.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_util/video_types.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "5d2f7dd2b82aecec3c05f8f5bd9519530736825d33590207ea0aa32b8cc8627f",
"git_blob_sha1": "6c9d6a526251bf1040ef41bc3bb8a60f8be2c7b1",
"lines": [
7,
50
],
"claim": "准确VideoCodec auto/h264、Container auto/mp4与auto扩展mp4;VideoComponents含Fraction/audio,可选字段非源实况"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_api/latest/_input_impl/video_types.py",
"local_file": "../seedvr2-video-reference/video__comfy_api__latest___input_impl__video_types.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_input_impl/video_types.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "b74216bc76178e9a21769e60cf4fd910183a19236cfa7fb352e74f2b13e482e2",
"git_blob_sha1": "bc95a5b9933fb0730bcac0d619181ebe74f4e4d6",
"lines": [
84,
127
],
"claim": "VideoFromFile负起点从末尾归一、duration取可用时长最小值;非实际片长"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_api/latest/_input_impl/video_types.py",
"local_file": "../seedvr2-video-reference/video__comfy_api__latest___input_impl__video_types.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_input_impl/video_types.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "b74216bc76178e9a21769e60cf4fd910183a19236cfa7fb352e74f2b13e482e2",
"git_blob_sha1": "bc95a5b9933fb0730bcac0d619181ebe74f4e4d6",
"lines": [
488,
498
],
"claim": "VideoFromFile.as_trimmed仅严格且不足时返回None,其余构造裁剪引用;不执行解码"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_api/latest/_input_impl/video_types.py",
"local_file": "../seedvr2-video-reference/video__comfy_api__latest___input_impl__video_types.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_input_impl/video_types.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "b74216bc76178e9a21769e60cf4fd910183a19236cfa7fb352e74f2b13e482e2",
"git_blob_sha1": "bc95a5b9933fb0730bcac0d619181ebe74f4e4d6",
"lines": [
501,
604
],
"claim": "准确VideoFromComponents保存仅MP4/H264、8/10位、帧率取千分精度、有音频则AAC并按图像长度截取;非同步保证;as_trimmed另有不足拒绝"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_api/latest/_input/video_types.py",
"local_file": "../seedvr2-video-reference/video__comfy_api__latest___input__video_types.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_input/video_types.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "6cba96f1f254094436de6c3e64c0a7b469e7cbaf3578c234c18eea88cf93926d",
"git_blob_sha1": "e2e99521fa4f2dc70e1a4d1299176dcbc78ba77b",
"lines": [
71,
106
],
"claim": "VideoInput基类时间窗口/默认位深/时长接口;具体子类分开"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_api/latest/_ui.py",
"local_file": "../seedvr2-video-reference/video__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_ui.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "842ac7eeb8484fbd1746436daf4368b002e2268ff4aafd4d4682a5b24c6ba794",
"git_blob_sha1": "b48713d4108634b6a6887694844fbcb248cb26a1",
"lines": [
27,
43
],
"claim": "SavedResult filename/subfolder/type描述符,无产物存在保证"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_api/latest/_ui.py",
"local_file": "../seedvr2-video-reference/video__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_ui.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "842ac7eeb8484fbd1746436daf4368b002e2268ff4aafd4d4682a5b24c6ba794",
"git_blob_sha1": "b48713d4108634b6a6887694844fbcb248cb26a1",
"lines": [
428,
433
],
"claim": "PreviewVideo序列化images和animated元组,非已输出证明"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "LICENSE",
"local_file": "../seedvr2-video-reference/video__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/LICENSE",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
"lines": [
1,
674
],
"claim": "准确core0.28.1许可原文"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"id": "video",
"file": "comfy_api/latest/_io.py",
"local_file": "../seedvr2-video-reference/video__comfy_api__latest___io.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_io.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "ac986092cace7600461b8547e21f770126958d8c15eef59d79d6709cca4b7717",
"git_blob_sha1": "58e49d8e2d29b1c07489576263ea84ac0fd67895",
"lines": [
661,
667
],
"claim": "准确Video类型VIDEO标记及VideoInput类型绑定,非源扩展口兼容保证"
}
]
@@ -0,0 +1 @@
4 files reformatted, 6 files left unchanged
@@ -0,0 +1 @@
5 files reformatted, 7 files left unchanged
@@ -0,0 +1,771 @@
{
"base": "291ff48e6f232637dc87806bb1431424686b819e",
"files": [
{
"path": "calliope-backend/src/calliope/comfyui/__init__.py",
"sha256": "1d3488bcc2eadcd8a8f2e84ab4f6e9bdf52096b8af637c4da399db041d5a0543"
},
{
"path": "calliope-backend/src/calliope/comfyui/client.py",
"sha256": "ce30b3b3587d8f0dac86d534b99f31b95f1f4d0acb361babb45fd2be9513fe72"
},
{
"path": "calliope-backend/src/calliope/comfyui/companions.py",
"sha256": "7dde205059bf489e3d39539a8b42333b3947c3989d890441f70a45cf67d9ab04"
},
{
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.json",
"sha256": "3a85718f877a63be54c843e2610b24dcc3013a6011f705d6348c91e2c7f78fd6"
},
{
"path": "calliope-backend/src/calliope/comfyui/delivery_scope.py",
"sha256": "0b849256dbb06f709c1ba856c34b3df04d2fccf09984a6e1fe1284b792eaf867"
},
{
"path": "calliope-backend/src/calliope/comfyui/dry_run.py",
"sha256": "f8bf4d1b91d959044de1dbc4aeb11bf0bb521f51f1928d36a46c670381a08ed7"
},
{
"path": "calliope-backend/src/calliope/comfyui/endpoints.py",
"sha256": "fc99a623850b581ae38843bbc3baf1b71ca9fd633e6103a34cb809a345e5a647"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_chain_reference.py",
"sha256": "a5c0ab92d99757c168648ddbc0418b23d2b871f674b153e9a240b75409cf5741"
},
{
"path": "calliope-backend/src/calliope/comfyui/h3_core_reference.py",
"sha256": "2913654b6ec3dabac1d36b1894064b8e077dd1d743d546e81667b317339f8a5f"
},
{
"path": "calliope-backend/src/calliope/comfyui/library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
},
{
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
},
{
"path": "calliope-backend/src/calliope/comfyui/lint.py",
"sha256": "9b79bf162e13fb68321727fb17f96d6fc0c217d60db85de38235c4270bf9b4e3"
},
{
"path": "calliope-backend/src/calliope/comfyui/output_map.py",
"sha256": "36ed4ced825e4f7e1d389602085451b5cb9336b319d220f423f59f83fed6a70e"
},
{
"path": "calliope-backend/src/calliope/comfyui/parser.py",
"sha256": "a02d583c6a1cf7f85e77341a20308823771c233fb95241118a264e202a5230a0"
},
{
"path": "calliope-backend/src/calliope/comfyui/patcher.py",
"sha256": "8ac1417f0f78d952cdb219b10811a6ed7d4ce3bb0d561708858c4a8f5d15b45d"
},
{
"path": "calliope-backend/src/calliope/comfyui/preflight.py",
"sha256": "6629961d33204cbe5b3fc3d8a5a0a4de0c86d235e73f542d191429cf7f4bd2ec"
},
{
"path": "calliope-backend/src/calliope/comfyui/profiles.py",
"sha256": "4ca33343fc3f20e0fb82558cb428548f6415af04fb90213a694fb759515732f2"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.json",
"sha256": "a10aaf98db9bb3b5ac6d1fc30b18c40cf315b34eee57ebb19470a6664e9221a4"
},
{
"path": "calliope-backend/src/calliope/comfyui/protocol_references.py",
"sha256": "ab9d948dd1bbf83dfce27186d6e48d9c3d5dff129305afd760fb3e77570b2916"
},
{
"path": "calliope-backend/src/calliope/comfyui/registry.py",
"sha256": "0382eda52a31f23c1c29dd7a62d0ffc93e10fcbb88872a5893b8fc93a2b2734d"
},
{
"path": "calliope-backend/src/calliope/comfyui/roles.py",
"sha256": "cc0b45eac2d881a6f7cc5ea88ceadb03f71715240a45257fef3a76bfc53d56c4"
},
{
"path": "calliope-backend/src/calliope/comfyui/serialization_reference.py",
"sha256": "67724fac65acbd397198271e1ed17b91f592f52da7ce8299e575d4c597d57fa1"
},
{
"path": "calliope-backend/src/calliope/comfyui/smart_fill.py",
"sha256": "adc34e80cca7a2b38cc834a713c9e64001caac84413af288389e5554e304bab6"
},
{
"path": "calliope-backend/src/calliope/comfyui/source_reviews.py",
"sha256": "b85e26f1e4fce77f75429b7bc0653401065b2cd28151bdf5d9edc87c096e9419"
},
{
"path": "calliope-backend/src/calliope/comfyui/structure_reference.py",
"sha256": "a9f3a8ed314a0c0a424c6781db4e83af3a85cb8b66b16b01380b5fecc3e1f0bb"
},
{
"path": "calliope-backend/src/calliope/comfyui/ui2api.py",
"sha256": "86a9c98ad72afa15aaf706bab8b39589a1cbca2e93da40d0aed9f963c14c0d1f"
},
{
"path": "calliope-backend/src/calliope/comfyui/validate.py",
"sha256": "c27fca69a604705b06809fdd692975ca0e7a08d05d558172962f8910a6a0491d"
},
{
"path": "docs/hel-892/supplied-api/01.api.json",
"sha256": "0ed76e088a23af43d6fecbf273fc0a983d7112e2b046d347f715afffac56d57e"
},
{
"path": "docs/hel-892/supplied-api/02.api.json",
"sha256": "daa40971b730076691721afe95e165932df94e3423f1fc44dcb7707026e7125b"
},
{
"path": "docs/hel-892/supplied-api/03.api.json",
"sha256": "91e6c2cea3747a03bbb71f661dbd016b28040781482b956365ff76a7a8b647ce"
},
{
"path": "docs/hel-892/supplied-api/04.api.json",
"sha256": "2066b07b2ca5390ba3e795df6b43934dab83865b12870b6ff26d8c0ef24f091e"
},
{
"path": "docs/hel-892/supplied-api/05.api.json",
"sha256": "95a01c1ea27a8279a6dc202820505099a94161d91e0789189b61208b09007af8"
},
{
"path": "docs/hel-892/supplied-api/06.api.json",
"sha256": "3e9176a5346ce8b8122b6da10f377fbeb894dc7c2c82a415f85ffc0dbfefc90b"
},
{
"path": "docs/hel-892/supplied-api/07.api.json",
"sha256": "b1b4f6a6c02d8d21701943c67b62805b1210fed17e7e26b618c58e112ea1d70d"
},
{
"path": "docs/hel-892/supplied-api/manifest.json",
"sha256": "f1367b4fa7a8377fb57512d17c80bc697d4d3abd0adb77adc3c06c6dedab69ea"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/ControlNet_aux_常用样例.json",
"sha256": "8898689d777330c4749a079cd762f573bb12a278c47a2fefbd066ffbdc122b6b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/Minimax-H3提示词增强.json",
"sha256": "ffea53b27d52c63aa9ec9c60144489cc4f9e5a44d9478bcc297be9d9008f1a4c"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/birefnet_图像移除背景.json",
"sha256": "a6799c5022c13e46d2b1cf27809cd3c1e1d140a605fa226c19359682751fd036"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/sam3_图像视频-提示词遮罩分割.json",
"sha256": "5dbe1a7ab608ba6e9158369ff6498e9bb3f926d151a0ed31cf711c31b167c488"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/NLF_视频人物动作骨架获取.json",
"sha256": "1edc7ae5cca8e059577a9572d296c84e1683695e4f13a72388ff70473795ce97"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/openpose-video-姿态检测.json",
"sha256": "43f76f599f15058b6e62ae0dfb105518a37532008eed23ef7118e4950b37a608"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/人物骨骼姿势提取/sdpose_视频人物姿势骨架提取.json",
"sha256": "4586c72d8a906d4a956fb7d62307b81e57e4e345324c7e73f63103e56bfffd14"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"sha256": "f5245d225f77cd64aefe6d0b8bb9342ec48a8a6293a533d65ea7304ce1b03f93"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载本地latent解码.json",
"sha256": "1fd83bd3f2d7950440189932b4c17718190af88daa4a93ac86474081dea9005b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/双图像或视频合并显示.json",
"sha256": "61a0b1a2aa17a7d8c4f09f4f57e276eaf37227f69b5fc5789193005e593548c9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像4种添加水印节点.json",
"sha256": "2eecd407d667d2ef6249061181edfdcfc417a2151627622f280d74aaac1794d8"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像分割-多宫格分割.json",
"sha256": "aeceb3fd00eb0966eebf8d8c89d90e2ad29d0aa8d02589aa05d52a6c145a4bcc"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像合并成四宫格.json",
"sha256": "fb5e5b346d51a79c19e611b76d39cf4b9491493723684bbb85ab3c49923467bb"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/图像嵌入文字描述.json",
"sha256": "938ad9ad0eed2253e9a5a9a9dc16dc6b0a22bf976a80af90aa1d0b56e42ba7d3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/多视频合成分屏展示.json",
"sha256": "3c2f6558c199a7689546dc881df2b26dc31c02715fbc7b32f51caaa4601c13d7"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/截取视频每一帧.json",
"sha256": "43858b9121439a92e7ab35c2fb62b78e56fa93bcd0ad62679f2387f71fdec1fa"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/手动按分镜视频截取.json",
"sha256": "381bb5f3a6e2788d0dd3ee9594a97eaedb153611194d4f8fdde420cf47814132"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/Llama-cpp+Qwen3.5-提示词.json",
"sha256": "9071928ce74d5133401942583603a6bc98873263fbe4c32a438fe73cee81ce90"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/提示词生成与反推/gemma4_提示词反推(图像视频音频).json",
"sha256": "1a94bdd5987955a29e403d128c2ea5ca0b6bc8a8d5ece145e1baba07146588b0"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/深度图/moge3_深度图_几何图_线稿图.json",
"sha256": "a50e8b9961fbdd83fa42ca121ff77b3c1b058c7e454ad374b0de7c60e7b8c4a9"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频-音频分离.json",
"sha256": "4861e3e33291ed962d2215b1d8cc976a4706d19719e3541e9cbb2c636683afc3"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频倒放.json",
"sha256": "8c760ea58d7ff664323f92a1174fe88300cd931c00201ccf437df1ad0067cb24"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"sha256": "39f7ddf60bf5958882215bd4227a85707f1f9003f2c5aaefc709a28b1ef16827"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频人声分离.json",
"sha256": "3c4bc0f7b1891e298a5d4e00072c6243a61b98d5fc0d86d82a476ecead43a1a2"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/音频转MP3格式.json",
"sha256": "c46e83b4fe8fc291e9de45b4af6cc50b566ab9377a51b50767315917dd13861b"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_image_upscale.json",
"sha256": "35bf9b7731e6199b5ccc113e31c248573f9ae74d1bb9302071a3a97524fea8c4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/RTX_video_upscale.json",
"sha256": "ce189e5efdb1d608eaf7f7905f0dbf3776be2c199e143193c226ab497f2eb9ec"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_图像放大.json",
"sha256": "2be6b137efaaf25a54aaedc841a14ff3089afdc8a01a04af6353634b8457393f"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_视频放大FOR循环长视频.json",
"sha256": "576a9516292ed3e63b50c2a03fbfc1a99f9d643f526dc7fa3b98f6cb9832c893"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_图像超分放大.json",
"sha256": "87484f700a9a18d1bffbc61834af2b489a58171dcb4a225e210e695a30c85dd5"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/VOSR2_视频放大_分批循环长视频.json",
"sha256": "0f55316d2961a293a7d9f77b7993fd6f01bd5a41a4dca58f69f4d0b35c0aa6ea"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/图像放大比较.json",
"sha256": "1ca5938a963921b16c96649a97d3b1a9f75d810d3aabcd7ce472a30e5805f3e4"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/视频模型放大插帧(简单快速版).json",
"sha256": "bf47ba2462a3f683fe4f1d742b7dcde81a7a3f95e7e63c021e942a6c4f9ef071"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json",
"sha256": "47f9afa955a6a5dce37000cb6a15bac7516d26ff50b6398bda334c825552cfd8"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-语音转文字.json",
"sha256": "958a3b7cb7070f4207901c79f13863b44ffcd0ed5c2c7fb4cd779e7964da0d65"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_多角色对话.json",
"sha256": "549a6502b3e0d4386323e6e67d6a9b4943b7a01eb59bdbe7adc7a920cfe5b690"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/Qwen3-TTS_语音设计+语音克隆.json",
"sha256": "9c75272e418064f46da96f6167448216a9390566e4b5d5e168d8cc5955447ab1"
},
{
"path": "example_ComfyUI_workflows/1-语音生成/index-TTS2-情绪控制-音频参考-文本控制-克隆-多人对话.json",
"sha256": "d2c469a8a17c6d1fcffb9a96700c38290895873d99c40d13d669bd45f6ea79de"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step1_5_xl_turbo_8Step极速音乐生成.json",
"sha256": "668fae23de5f84cc530fa4cab7381299cbc787b30c4597345b47e7f5c17415ef"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/ace_step_1.5+Qwen3.5_自动歌词音乐生成.json",
"sha256": "518085b1e8d12257e68427dcc0f01e6cda5018ec353fd90fdf366afb4fc89b85"
},
{
"path": "example_ComfyUI_workflows/2-音乐生成/minimax_music_文生音乐.json",
"sha256": "0a655ead5a0da406159dceb46451439df0c02050becaaa25b3018abb41840284"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Anima/Anima_Klein放大_超强动漫模型.json",
"sha256": "000843bc0e46844e556b04fc820ae1b2f7fa9bba1dd0ec21805c0c7ab27a647c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/10_flux2_klein_文生图-角色三视图.json",
"sha256": "e04e5bd04f03ce32b5221d37c5f7cffb0405b1471cb7be90b47b407d900a49b7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/1_flux2_klein_文生图.json",
"sha256": "523905ac41323c626d7a156c88d02156cfa4758a70175cd7a3fba2a8c4fd449b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/2_flux2_klein_图生图.json",
"sha256": "c0472959097f4e785205f41109c941dab26d12a874311834a7dc02c4616bbe9b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(大雄lora).json",
"sha256": "c6af28d5bd72df5577f1e4d336974397494dd500fff23efd4afe81037514be71"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/3_flux2_klein_图生图一致性增强(小志lora).json",
"sha256": "43995837f89e5112afa74a57180dc356f7b4d4ef9e3a325984a2fc5ca1b7c651"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/4_flux2_klein_图生图_局部重绘.json",
"sha256": "d1d57bd401959975cbe6fd70f97706cec21bbed0a5ec3747447b9f192631f414"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/5_flux2_klein_图生图_扩图.json",
"sha256": "ad8c09e81b07aa7809a7d42f633d0b9069f704187e7a983bc2ac12bc3cbb8507"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/6_flux2-klein+Qwen3.5_转线稿洗图.json",
"sha256": "40a9fee073066914ac610f74dc7f7a49022bda63f5b89560d4bd635094a5c757"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/7_flux2_klein_图生图-动漫转真人.json",
"sha256": "8cab62c6b7b2401bb6b51ff4426aaad2a644fc6cfe49d974769fadf19c16a0a1"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/8_flux2_klein_双图编辑.json",
"sha256": "9d00eb7af7e8d49c54396e6dc2afe7770f99cf75ae765dc1b906c8c9e6b69d83"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein-图生图_人物动作迁移.json",
"sha256": "fc6daf483ac05fdc904ca402271223d14cc217ea4c81a17ba2ef4cae993aefe7"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_人物迁移.json",
"sha256": "81409bdcd546102a7a6d5b7e32578912bf7ad4f89b35718de0401ceed624225e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_印花提取.json",
"sha256": "8768dec340e35dbd70f928d8bbc34813b2bd45f5c270c405d4495b92da478337"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_图生图_老照片修复.json",
"sha256": "922c534d70b85beacc2cd51354552ed1d850dbb611b20f2d6981c4e524ce06c5"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Flux/flux2_klein_服装迁移.json",
"sha256": "e3f01ba44f3628297e714b4307ed959758f04e0415093dc5ec690857384a8386"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_Image2.1_图像编辑_VNCCS任意角度-任意姿势.json",
"sha256": "a5a675500a473214eaeb1d25dc1eda83b57bba3a17d18f1f0042bee62b474314"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_一键16张姿势图.json",
"sha256": "248b6c5ae28d5a44035c5ad91bcdfa458360a67598eaa4d195c3fb6853b18a49"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_动漫转真人.json",
"sha256": "1aa1d3641f82533f99d99567c2708919438b9efbfc6623d684a9a88b876b75cd"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_提示词增强.json",
"sha256": "ebf173eb9d871717534a379d451d4a08ca06c3b677b552de12a5d51dbe8febf2"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_深度-姿势-线稿-硬边缘-控图洗图.json",
"sha256": "b6e232082089dd9c4046e0dc5bd1d046907525b8cb01758fb804b5f4aa11275e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json",
"sha256": "d225102993ad5aa08e619bd7f1e5abbfd54e2d5ac8d8be1eacf09722107c4c9e"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色BFS头部迁移.json",
"sha256": "6a9da127ee2bccafeff7499ab3d62f349aec1eff4265cb211bdec578dba1fe7b"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
"sha256": "0036c02e1ab22f44c94bd9f311d5254d7b3b0cea25211bc4ff1e92cd90e0acdf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_8步lora加速.json",
"sha256": "172b8fff0b531fbea367e79aa6b5ed1e6b59cab2ce6cb23d324092d5b55a3f97"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_提示词增强(N版).json",
"sha256": "ae6521e5f42bef0b887f754c2fec5961d612afc464fbd98940a976a9795662c6"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生_多图编辑_透明背景.json",
"sha256": "5853f21657d56e97a6b625c4487e23473b846fa8c96dc292f3700b3075245a39"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_提示词增强.json",
"sha256": "dfe10917d101bf1a8a8c20750f4360690ecd478e9eb33d16a59ea0c6f12c086c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_文生图_角色表四视图.json",
"sha256": "6fd307b02b7ba29858723e283580c1cf4ab1fce8804a3ced1f4fc37934965392"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/10_Z_Image双采样+Fluax2-klein修复-高清直出.json",
"sha256": "043cd2abe731996b80637d87b9a799e412e08b9a15e4b7c2f4440fbcff2487b9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/11_Z_Image_Turbo+模型放大_图像4K高清放大.json",
"sha256": "baaa0cd969a28abe5e6ab19b3d7f6e161468cd15c970fe4bd9922afbe09ab4da"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/12_Z_Image_Tubro_文生图_SeedVR2高清放大8K.json",
"sha256": "8d79bcd44a7843ac5df9fbcd372a6327ba72274260ef463c46ec85709da7846a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/1_Z-Image-Tubro_文生图.json",
"sha256": "36713b1a3f5c4f2992c7edef2e1e8c3246d44d28ecc750b87f4353a08c3b5ab0"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/2_Z-Image+Base+Turbo+双重采样工作流.json",
"sha256": "27108ae85715b147f63d8640ee032484c70a21633e2c6234eed346079b9aba2c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/3_Z-Image_文生图(摇光梦幻).app.json",
"sha256": "58e88cacc6e1375cad39023e39eb1728eb36e63acce3c46fca40898d706b1d42"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/4_Z-Image+Qwen3.5-文生图.json",
"sha256": "56bd28b5253fe734e851abd81c7851d00c62e4dbf37a22d97781d93ec367a35d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/5_Z-Image+Qwen3.5提示词反推_文生图.json",
"sha256": "910317a123e658f26e48ad5cd144d28b7f31e0d43cbdb3ed567048c7917b5c73"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/6_Z-image_局部重绘.json",
"sha256": "f60e734b6ed9e678571ad7666411d6282065c38abe3e9c29ea4c5cc1c3455505"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/7_Z-image+Controlnet_图像扩展.json",
"sha256": "82cda5dca2e224a5b042daecba4c3c1405a825648a9e9ced29fe21e58f7e55f8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/8_Z-image+Controlnet_姿势控制-洗图.json",
"sha256": "babc1dbeb3bb4981e338d8317ff9fb6fd8c28913bf47a2e2e3eb5409439447bf"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/9_Z-Image+Flux2-Klein_风格重新编辑.json",
"sha256": "3734f261691c3ad13d29b30d88e91f671d9c548f723e77d78651c7155b06c408"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_插图漫画.json",
"sha256": "02ea31b959de72f9b5c00a92f21b4e17bbc2bf5a54495093a204957771a88039"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_照片摄影.json",
"sha256": "740d7d41b3248978dca2046d9a2ea99d3a66ef081d45609782d2847f04f7e0c8"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用a_.json",
"sha256": "e58341a99587077a69baf3cec62d9ae7bb0ce02a87cb3973ce3134c04a119b23"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/Z-Image/Z_Image_turbo_十八种风格_通用b.json",
"sha256": "8d9e66744e0266c5f53a6396e030c38bb90053f2525ac9c3c6cc1b321006a976"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_4_6_8宫格故事板.json",
"sha256": "776b2f92f8906232c2ffe1b25c8b9cfe3398bfe45a9f80715f6ce5acc03e96b4"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_极致写实双采样2k版(N版).json",
"sha256": "50433cee0d5bab60a2cce44d73adbe5fe9b486c039bc89e1caef640fe6e0b28d"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/Krea2_turbo_文生图_角色三视图双采样2k版.json",
"sha256": "64bb5eb4e5399d307c12553717b8a1f0046f48b625b16e62d40e962b6bec1847"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2-Edit-Anything2Real_动漫转真人v3.json",
"sha256": "0d482e6c6fac70af6dd5549e8a464ee080a0ec135350d72d32a4ce4a8fd05bbe"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_identity_edit_图像编辑.json",
"sha256": "c208883f17eb873063a4febaef636f0fa065131fc82bc4b0b26eff41f442719a"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图 (N版).json",
"sha256": "935fc592ead1a89614470d41c512e2d7b4a41a6887f71a0a8d8f4c071a60e3c9"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图.json",
"sha256": "6b317af2bda225d9441074ef330669b4537e95c705987223efafd2705dbbc344"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_2万提示词随机模板+4千种风格选择.json",
"sha256": "599bb58d48d68de929e7ec476f77e9f7c736c00235b68570416d214d3b4e391c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_Qwen3.5自动提示词生成.json",
"sha256": "afafb0e0ebdc445a7534041589b7f6a580e0b15b8293c2fd26907474892f5957"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格2.5D半写实.json",
"sha256": "3faf9b1f0a20c7d21367af1721583a7402f048e18991025f9afff192ff8fe077"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格Image2风格.json",
"sha256": "bf65d0080ab80a5934855a0dbc7a5e167300bb54e24a18e05e4321a70ec838ea"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_动漫风格线条动漫.json",
"sha256": "9bab028943604b4b167a56dcc51475f67bac897c9eae3c7bf9d311b2c5cb7d91"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_图像风格参考.json",
"sha256": "8c248ccc44df79b475c81e0bb260596ece066d65f2a21c0b2a72dc6b2441b170"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_奇幻现实风格.json",
"sha256": "7a2af26c48114c7f1a7741a5cded07c0cceb68c4e69410de8af6429eb6b5041c"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_极致写实(N版).json",
"sha256": "ec98804940c28956af1719096751bba2d274eef8a251b97207ac655a05779384"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_细节增强.json",
"sha256": "faa28f85fbd80ec9c3aba76749d6447c1d3b4a8489c88853ebde665a4f78ef10"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_美学质量增强.json",
"sha256": "fbca5f24abf71f10ed5e2b90012aab1c25c6632a18541fbf0412b8845f603b85"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/krea2/krea2_turbo_文生图_赛博朋克现实风格.json",
"sha256": "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60"
},
{
"path": "example_ComfyUI_workflows/3-图像生成/肖像大师_美女提示词生成.json",
"sha256": "4ff20f7350813ec74fc054971b4532200d61661951c103c89f7729f89f7be2ff"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_i2v_图生视频8步极速.json",
"sha256": "c5eff277eeeeefacb39c4af2e5ac41251785cc18ca90c1678a653367f4dd5942"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_FastH3_t2v_文生图8步极速.json",
"sha256": "ed4a30da03245f35ff9006ac64cd045c1b9c64eb8b585520dbbb418f6793fc78"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_多参考_双采样潜空间放大.json",
"sha256": "8b97388e142ddb67c84f2cbe0bb68c10f519e7615d75f1ea0005580fe4537ab2"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_孤海智能一体化(多合一简化版).json",
"sha256": "827f43d5d9bdb6f2d6f4d8b69e86708e6d08642ed0df04bee15087d10b9a0e35"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台MiniMaxH3_多合一多分段拼接.json",
"sha256": "34fde3a91f9ef932adc2837cc9d4254bf75a3251ad5c6474d90e4085690cbafc"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样多段循环-PV动画尾帧衔接.json",
"sha256": "c8a442bd8cae8dcd75a6a01847ca99b75dcc37ef8ff0a855c82213ed25e943e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_双采样潜空间放大.json",
"sha256": "2434bd48e3c29abf9e6ed0931f3c8825481772a134a065f6cfdd3c0b89ba81b7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文-图-参考-分段循环-双采放大_多合一.json",
"sha256": "698430e2b234a107b15f1bebf7704833afeea819bd21a3af56f7121daa1383e0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_文_图_首尾_参考多合一(单采样).json",
"sha256": "526986a02875bbefebeb8a81cce9b58a8e764ab0c0092b2d8e858ecfac771638"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-多宫格分镜参考.json",
"sha256": "d2850f5fb3e5b54e3e4ec9e17f34bdb11bf7009728b5e585c769fb2f11f80275"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_短剧创作-音频参考.json",
"sha256": "c188a7383a6c7a0dbd5d4d0717527b096ec73c1232373ee50c731bceefcfe7fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频人物替换.json",
"sha256": "dce57cfc239c9f90cda2107fff5614b2cb0944e0441d9d8137b3f1c325f41a7a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图-SelfLift双采样潜放大.json",
"sha256": "97ec7f73f32126aa24798fc65736734dfa839b74d25c4b2a94021abe063f06d7"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台_视频参考+多参图.json",
"sha256": "40f92a22aa66c9d87b876784e33b02471339d64504e22e1672155608fbcbf079"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_导演台时间线素材_双采样潜空间放大_多分段拼接.json",
"sha256": "172eb8af3aca70082941427520fdcca06568957bab3d39101c5e9d6641b45e4a"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频MV_多参长视频分段_Selflift双采潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "bdc93d36fb8a4728dfa8031d1f00782d68e8e6aedd718b166f57e54216f2882f"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/MiniMax_H3_音频数字人_SelfLift双采样潜放大分块_Qwen3.8官方Skills自动提示词.json",
"sha256": "903e32248fc0c53df36c5841f4f4ccdb5fb8190a39c6c9015d3e55a451aaf7eb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_参考生视频-8步高质量极速版.json",
"sha256": "fae96106a128342a6903bd32680463d1be98c0d5ad738d2fff40fc0f52a35389"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_图生视频-8步高质量极速版.json",
"sha256": "97f188c9295af0dbe6358a4b23117ca1612e812d2fa3df67dd7b10ee68e96fb5"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双时钟采样_文生音视频-8步高质量极速版.json",
"sha256": "5b45b49ebe4402c207e7d894e03a1bb53482b24a0c09ce50d549be4a01f9c6d0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_T8双采样_潜空间放大_参考生视频.json",
"sha256": "fab48be409cf423aaed7be268c6655ae39ecd1733218413c51874c5ba2ad0bdf"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_r2v_参考生视频_双采样潜空间放大+Qwen3.8官方Skills自动提示词.json",
"sha256": "4c1305fdfe6d5643e64a7b6c99cc92e331ffc9475f30fef5e0119c887367aab0"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_视频动作参考_SelfLift双采样潜放大_Qwen3.8官方Skills自动提示词.json",
"sha256": "2be3981360fff849a53a928a6a2040c97bcf1944dce2df82d716a805c0ef2594"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/Minimax_H3_音频数字人_单采样.json",
"sha256": "77b665bf6bcd11195f424d42d88f5142b43b0c608af776eef5744aca896f4b56"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_i2v_图生视频.json",
"sha256": "a071e6070ee933396f225b4447c363bbf6b0df059b3cd43da567e81bc7937e84"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_r2v_多参生视频.json",
"sha256": "89166eb9cce4c9177a0f9a0a3a058e140429413e7beb3692e7ee5c30b76bc4fb"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/Minimax-h3/minimax_h3_t2v_文生视频.json",
"sha256": "039d46a5bbb809b84fab3b42c777118f91d0c06835555d54410631742584f1be"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3多参生视频无审核版.json",
"sha256": "e501089f36c4c7f76a9e926e09ab9c467316d0778e62dff4c9e9faa6b155cb83"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3文生视频无审核版.json",
"sha256": "07baed6dd4a259701f7e5563fa1f19799fbbb558668d09a74876db3729fff3a2"
},
{
"path": "example_ComfyUI_workflows/4-视频生成/uncensored/minimax-h3首尾帧生视频无审核版.json",
"sha256": "d47d3e995858a9c581863a593d89d4f6a24ea04014a1df3faeffa7e07cb19537"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_rCM_数字人对口型多动态(KJ版).json",
"sha256": "90fb512939d5bbaebfd3462d8edd019ad388611951748e6df09993ddd7f3a36f"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_I2V_InfiniteTalk_提示词调度动作控制图生视频数字人(KJ版).json",
"sha256": "98b4c399948f99aeac9326b4de9638d9a7bc3d718edd2561ab745f6bec12478c"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-单人for循环长视频(官流).json",
"sha256": "ebd0c2823b70e5121f9642f781f2d0fa32cda6abe7d4a68fb0eecacc30e92d06"
},
{
"path": "example_ComfyUI_workflows/5-数字人/Wan2.1_infinitetalk_音频驱动视频配音-双人for循环长视频(官流).json",
"sha256": "87412366e6bedd2a2f4490d1a945d0fc005251bb49a20e4ba1157cd6c4ddfbcd"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_SCAIL2_角色迁移_动作迁移_FOR循环长视频.json",
"sha256": "60d7a6c9b1b567d726ffd0981de3d8afb3675f88b320733d8442081d849b0ba8"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_动作迁移_WanAnimatePlus_v4.2.json",
"sha256": "f0da1e6c1eab5706d29d8d12897db0cea0d9d5f7a73b4882cf07ef2a626dda45"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.1_Scail-2_角色迁移_WanAnimatePlus_v4.2.json",
"sha256": "395dc48ad21d9da6a3a815654922193a9893696015154f53be0cc6f484882637"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_SAM3-人物迁移-动作迁移-长视频循环(KJ流).json",
"sha256": "3ea95e56f193c046937ad246087292865a809d2cc26571357c22fff415295f41"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan2.2_Animate_人物遮罩替换(官流整理).json",
"sha256": "394c3c31ad05255d3eb130f309d8445764f4d3772b40fa07fbf19708bfcc1002"
},
{
"path": "example_ComfyUI_workflows/6-动作迁移/Wan_Animate2_动作迁移_for循环长视频.json",
"sha256": "22b7853e22629822dd354b0b768e2961a53b4c2f480cfaceeaea9dc51c0f0d0b"
},
{
"path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
"sha256": "dcf5fad9b464e4154d8ec7ba7af1c21987cb0153c7df747266a02de9f24e1313"
},
{
"path": "example_ComfyUI_workflows/MiniMax-H3-Turbo-R2V-Extend-2Refs1Vid_API.json",
"sha256": "080a17d7ae079f278518de1af15b880a4404105ec89edbac4fd82cf16097b757"
},
{
"path": "example_ComfyUI_workflows/krea2_T2I_CharSheetV1_API.json",
"sha256": "6a991229721d0a501846bf0bc55f793d1ab5225be28b2c9eea485fed56ed5b40"
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Image2Video_20260813_API.json",
"sha256": "3d895b01e72c10008c036a9c65fa281b3dfe0d0808417089960fd8f4b56c48ce"
},
{
"path": "example_ComfyUI_workflows/minimax_h3-Turbo_Text2Video_20260813_API.json",
"sha256": "55c6d0e7fb323e05c3d9373606607e0e8fefb3127cac356b03e29f19b7aaa4ed"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_2ref_API.json",
"sha256": "56ab7cbf2402f94000eb1df2b5415f90f36a2821e68f1c35af17a2d9498e7c49"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_3ref_API.json",
"sha256": "2a687133f175180584ebfc3b4318f29cfcac3a24a0f422e1b9c77e6b16c9862a"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_4ref_API.json",
"sha256": "0b00bfc29ad48f8af3c7b6ebc1dcaa03b809b33c24bc31dadc628289480b154a"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_5ref_API.json",
"sha256": "0b6c1bee6507c2485aa115d3b6c038c6c3dabf1ce8569205f8ece50e58f4e909"
},
{
"path": "example_ComfyUI_workflows/video_minimax_h3_r2v_API.json",
"sha256": "29f440f7123b9ce64e0fda01ee3cdafb7f87408c47c1fe46c2b73f88682eae0c"
}
],
"original_files": 156,
"all_unchanged": true
}
@@ -0,0 +1,69 @@
{
"base": "291ff48e6f232637dc87806bb1431424686b819e",
"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": 47,
"new_notes": 2,
"old_saved": 941,
"old_notes": 22,
"overviews": 32,
"all_disabled": true,
"doc_done": 0,
"executed": 0
}
@@ -0,0 +1,368 @@
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:3:1
|
1 | """47 exact saved positions for the SeedVR2 video graph; editorial only."""
2 |
3 | / from __future__ import annotations
4 | | import copy
5 | | import hashlib
6 | | import importlib.util
7 | | import json
8 | | from pathlib import Path
| |________________________^
9 |
10 | REPO = Path(__file__).resolve().parents[3]
|
help: Organize imports
|
3 | from __future__ import annotations
4 +
5 | import copy
|
E501 Line too long (118 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:57:82
|
55 | 78,
56 | 130,
57 | "准确SaveVideo是平面format/codec Combo及VIDEO返回;不含format.codec或动态嵌套schema,保存/UI描述符与产物分开",
| ^^^^^^^^^^^^^^^^^^
58 | )
59 | create = ref(
|
E501 Line too long (119 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:98:93
|
96 | 7,
97 | 50,
98 | "准确VideoCodec auto/h264、Container auto/mp4与auto扩展mp4;VideoComponents含Fraction/audio,可选字段非源实况",
| ^^^^^^^^^^^^^^^^^^
99 | )
100 | filetrim = ref(
|
E501 Line too long (121 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:186:76
|
184 | "帧/秒",
185 | "1.0~120.0,step1.0",
186 | "内部75保存JSON int30,外线69由74.fps覆盖;拆分端准确float(frame_rate),不能用缓存保证实际30FPS或音画同步。",
| ^^^^^^^^^^^^^^^^^^^^^
187 | [create, components],
188 | ),
|
E501 Line too long (139 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:194:79
|
192 | …
193 | … 致",
194 | … 记录type INT而源两端口COMBO。准确0.28.1两端均INT,保留差异,不据缓存证明实际8位。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
195 | …
196 | …
|
E501 Line too long (107 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:218:70
|
216 | "秒",
217 | "-100000~100000,step0.001;负值实际解释见视频类型实现",
218 | "宿主保存JSON int0,经边81覆盖内部79缓存0;由准确as_trimmed处理。未读取素材,起点有效性未知。",
| ^^^^^^
219 | [trim],
220 | ),
|
E501 Line too long (131 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:226:78
|
224 | "秒",
225 | "最小0、step0.001;0表示不限时长;未声明max",
226 | "宿主保存JSON int10经边82覆盖内部79缓存10;strict_duration=false并不保证输出10秒,短片/负起点等条件另见准确视频实现。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
227 | [trim],
228 | ),
|
E501 Line too long (130 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:239:77
|
237 | }
238 | effects = {
239 | "seed": "宿主seed_1保存959948902156062,经边87覆盖内部54.seed缓存;内部fixed另为生成后前端控制,不求随机值或补宿主控制。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
240 | "control_after_generate": "仅内部54保存fixed;宿主没有独立保存该控制,和seed_1分开。不构造随机值或prompt。",
241 | "steps": "仅内部54保存1,没有宿主steps边界或覆盖;单步不是实际画质、速度或成功保证。",
|
E501 Line too long (116 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:240:75
|
238 | effects = {
239 | "seed": "宿主seed_1保存959948902156062,经边87覆盖内部54.seed缓存;内部fixed另为生成后前端控制,不求随机值或补宿主控制。",
240 | "control_after_generate": "仅内部54保存fixed;宿主没有独立保存该控制,和seed_1分开。不构造随机值或prompt。",
| ^^^^^^^^^^^^^^^^
241 | "steps": "仅内部54保存1,没有宿主steps边界或覆盖;单步不是实际画质、速度或成功保证。",
242 | "cfg": "仅内部54保存JSON int1,对应FLOAT schema,没有宿主cfg边界;条件来自61,模型适配和效果未知。",
|
E501 Line too long (108 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:242:73
|
240 | "control_after_generate": "仅内部54保存fixed;宿主没有独立保存该控制,和seed_1分开。不构造随机值或prompt。",
241 | "steps": "仅内部54保存1,没有宿主steps边界或覆盖;单步不是实际画质、速度或成功保证。",
242 | "cfg": "仅内部54保存JSON int1,对应FLOAT schema,没有宿主cfg边界;条件来自61,模型适配和效果未知。",
| ^^^^^^^^
243 | "sampler_name": "保存euler,宿主边90覆盖内部54缓存;准确采样器枚举包含euler,不证明SeedVR2适配。",
244 | "scheduler": "保存simple,宿主边91覆盖内部54缓存;准确调度器枚举包含simple,不是实跑证明。",
|
E501 Line too long (106 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:243:74
|
241 | "steps": "仅内部54保存1,没有宿主steps边界或覆盖;单步不是实际画质、速度或成功保证。",
242 | "cfg": "仅内部54保存JSON int1,对应FLOAT schema,没有宿主cfg边界;条件来自61,模型适配和效果未知。",
243 | "sampler_name": "保存euler,宿主边90覆盖内部54缓存;准确采样器枚举包含euler,不证明SeedVR2适配。",
| ^^^^^^
244 | "scheduler": "保存simple,宿主边91覆盖内部54缓存;准确调度器枚举包含simple,不是实跑证明。",
245 | "denoise": "保存JSON int1,宿主边92覆盖内部54缓存;1不证明注释所称full restore或保真效果。",
|
E501 Line too long (168 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:246:85
|
244 | … 举包含simple,不是实跑证明。",
245 | … 所称full restore或保真效果。",
246 | …vrot.safetensors(大小写逐字保留),宿主边94覆盖内部缓存;Note推荐路径另列,不验证磁盘/模型/精度。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
247 | … 部51缓存ema_vae_fp16.safetensors;与Note推荐并列,不替换、不证明安装。",
248 | …ltiplier_1经边86覆盖内部57缓存。准确resize按round计算宽高再插值;倍率插值与模型效果分开,实际尺寸未知。",
|
E501 Line too long (141 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:247:91
|
245 | … ;1不证明注释所称full restore或保真效果。",
246 | …2_3b_int8_convrot.safetensors(大小写逐字保留),宿主边94覆盖内部缓存;Note推荐路径另列,不验证磁盘/模型/精度。",
247 | …rs经边95覆盖内部51缓存ema_vae_fp16.safetensors;与Note推荐并列,不替换、不证明安装。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
248 | …esize_type.multiplier_1经边86覆盖内部57缓存。准确resize按round计算宽高再插值;倍率插值与模型效果分开,实际尺寸未知。",
249 | … 部59缓存none;三类SeedVR2准确实现仍未证,不能保证无颜色变化或可用选项。",
|
E501 Line too long (173 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:248:87
|
246 | …t.safetensors(大小写逐字保留),宿主边94覆盖内部缓存;Note推荐路径另列,不验证磁盘/模型/精度。",
247 | …1缓存ema_vae_fp16.safetensors;与Note推荐并列,不替换、不证明安装。",
248 | …plier_1经边86覆盖内部57缓存。准确resize按round计算宽高再插值;倍率插值与模型效果分开,实际尺寸未知。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
249 | … 类SeedVR2准确实现仍未证,不能保证无颜色变化或可用选项。",
250 | …poral_size输入或外线。仅视频VAE使用时间窗口,不保证帧数、内存或成功。",
|
E501 Line too long (129 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:249:79
|
247 | … "vae_name": "宿主seedvr2_ema_vae_fp16.safetensors经边95覆盖内部51缓存ema_vae_fp16.safetensors;与Note推荐并列,不替换、不证明…
248 | … "resize_type.multiplier": "保存JSON int2;宿主resize_type.multiplier_1经边86覆盖内部57缓存。准确resize按round计算宽高再插值;…
249 | … "color_correction_method": "宿主none经边93覆盖内部59缓存none;三类SeedVR2准确实现仍未证,不能保证无颜色变化或可用选项。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
250 | … "temporal_size": "内部48编码与55解码分别保存4096;本图无宿主temporal_size输入或外线。仅视频VAE使用时间窗口,不保证帧数、内存或…
251 | … "tile_size": "内部48编码与55解码分别保存512;无宿主覆盖。准确实现按VAE压缩换算,分块不保证显存足够或无接缝。",
|
E501 Line too long (142 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:250:75
|
248 | …esize_type.multiplier_1经边86覆盖内部57缓存。准确resize按round计算宽高再插值;倍率插值与模型效果分开,实际尺寸未知。",
249 | … 部59缓存none;三类SeedVR2准确实现仍未证,不能保证无颜色变化或可用选项。",
250 | …6;本图无宿主temporal_size输入或外线。仅视频VAE使用时间窗口,不保证帧数、内存或成功。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
251 | … 主覆盖。准确实现按VAE压缩换算,分块不保证显存足够或无接缝。",
252 | … 覆盖。准确解码按tile_size限幅和压缩换算,保留源值,不保证无接缝。",
|
E501 Line too long (118 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:251:67
|
249 | … "color_correction_method": "宿主none经边93覆盖内部59缓存none;三类SeedVR2准确实现仍未证,不能保证无颜色变化或可用选项。",
250 | … "temporal_size": "内部48编码与55解码分别保存4096;本图无宿主temporal_size输入或外线。仅视频VAE使用时间窗口,不保证帧数、内存或…
251 | … "tile_size": "内部48编码与55解码分别保存512;无宿主覆盖。准确实现按VAE压缩换算,分块不保证显存足够或无接缝。",
| ^^^^^^^^^^^^^^^^^^
252 | … "overlap": "内部48编码与55解码分别保存128;无宿主覆盖。准确解码按tile_size限幅和压缩换算,保留源值,不保证无接缝。",
253 | … "temporal_overlap": "内部48/55分别保存8;仅视频VAE时间分块适用,按压缩换算/限幅,不保证同步或资源容量。",
|
E501 Line too long (124 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:252:69
|
250 | … "temporal_size": "内部48编码与55解码分别保存4096;本图无宿主temporal_size输入或外线。仅视频VAE使用时间窗口,不保证帧数、内存或…
251 | … "tile_size": "内部48编码与55解码分别保存512;无宿主覆盖。准确实现按VAE压缩换算,分块不保证显存足够或无接缝。",
252 | … "overlap": "内部48编码与55解码分别保存128;无宿主覆盖。准确解码按tile_size限幅和压缩换算,保留源值,不保证无接缝。",
| ^^^^^^^^^^^^^^^^^^^^^^^^
253 | … "temporal_overlap": "内部48/55分别保存8;仅视频VAE时间分块适用,按压缩换算/限幅,不保证同步或资源容量。",
254 | … "weight_dtype": "内部52独立保存default,无宿主覆盖;文件名int8不证明实际加载/计算dtype、设备支持或速度。",
|
E501 Line too long (113 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:253:71
|
251 | "tile_size": "内部48编码与55解码分别保存512;无宿主覆盖。准确实现按VAE压缩换算,分块不保证显存足够或无接缝。",
252 | "overlap": "内部48编码与55解码分别保存128;无宿主覆盖。准确解码按tile_size限幅和压缩换算,保留源值,不保证无接缝。",
253 | "temporal_overlap": "内部48/55分别保存8;仅视频VAE时间分块适用,按压缩换算/限幅,不保证同步或资源容量。",
| ^^^^^^^^^^^^
254 | "weight_dtype": "内部52独立保存default,无宿主覆盖;文件名int8不证明实际加载/计算dtype、设备支持或速度。",
255 | "resize_type": "内部57保存scale by multiplier;只列此动态分支,不补宽高或其它未保存分支。",
|
E501 Line too long (114 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:254:73
|
252 | "overlap": "内部48编码与55解码分别保存128;无宿主覆盖。准确解码按tile_size限幅和压缩换算,保留源值,不保证无接缝。",
253 | "temporal_overlap": "内部48/55分别保存8;仅视频VAE时间分块适用,按压缩换算/限幅,不保证同步或资源容量。",
254 | "weight_dtype": "内部52独立保存default,无宿主覆盖;文件名int8不证明实际加载/计算dtype、设备支持或速度。",
| ^^^^^^^^^^^^^^
255 | "resize_type": "内部57保存scale by multiplier;只列此动态分支,不补宽高或其它未保存分支。",
256 | "scale_method": "内部57保存lanczos;准确schema默认area另列。只是倍率插值算法,不是SeedVR2超分模型或清晰度保证。",
|
E501 Line too long (121 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:256:77
|
254 | "weight_dtype": "内部52独立保存default,无宿主覆盖;文件名int8不证明实际加载/计算dtype、设备支持或速度。",
255 | "resize_type": "内部57保存scale by multiplier;只列此动态分支,不补宽高或其它未保存分支。",
256 | "scale_method": "内部57保存lanczos;准确schema默认area另列。只是倍率插值算法,不是SeedVR2超分模型或清晰度保证。",
| ^^^^^^^^^^^^^^^^^^^^
257 | }
258 | fields = []
|
E501 Line too long (160 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:287:74
|
285 | …
286 | …
287 | … 本,非安装下载运行授权;one-step、full restore、防OOM/耗时建议均非实际产物、性能或资源保证。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
288 | …
289 | …
|
E501 Line too long (308 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:401:63
|
399 | …
400 | …
401 | … ,与音频和帧率重组后保存。当前开关为真,修剪请求从0秒起10秒,倍率2;都只是保存设置,不能保证实际时长、画质或显存足够。视频节点的源保存项与准确版本有不匹配,还有一条悬空历史端点;仅供参考,保持转换关闭、未实跑。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
402 | …
403 | …
|
E501 Line too long (271 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:405:88
|
403 | …
404 | …→76.SaveVideo。同UUID1970dcb4…不等于上一图片图同一定义。",
405 | …e0.28.1 switch=true选择on_true且lazy只请求该支;false选择原片。宿主true经80覆盖81保存true;0/10经81/82覆盖79缓存;strict_duration=false独立。未执行切片,不保证10秒或规避OOM。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
406 | … 拟修复、不把它计入34条真实记录。定义输出71由75→-20,不能把悬空76猜成输出。",
407 | …onditioning及54.KSampler,52.UNET→61及54,61正负→54,54→55.Decode→59.PostProcessing→75.images。51.VAE→48/55,57另→59.original_resized_images。三类SeedVR2实现仅沿用core0.27.0有界未…
|
E501 Line too long (516 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:408:75
|
406 | … 拟修复、不把它计入34条真实记录。定义输出71由75→-20,不能把悬空76猜成输出。",
407 | …onditioning及54.KSampler,52.UNET→61及54,61正负→54,54→55.Decode→59.PostProcessing→75.images。51.VAE→48/55,57另→59.original_resized_images。三类SeedVR2实现仅沿用core0.27.0有界未证结论,不借新版或同名插件。",
408 | …Components另一实现不足时返回None,不混同。74.audio/fps/bit_depth分别经68/69/70→75;fps缓存JSON int30、bit_depth缓存JSON int8均被外线覆盖。源bit_depth两端口COMBO而边type INT;准确0.28.1两端INT。74源还保存color_space出口但未接,准确版本仅四出口;75源保存sRGB/none未接而准确schema无color_space/codec。准确重组保存按千分精度取帧率、8/10位选择YUV格式、音频按帧数截取并条件AAC;这些静态条件不能保证实际音轨、FPS、色彩或同步。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
409 | … 留。准确0.28.1 SaveVideo只有平面format和codec普通Combo,无嵌套format.codec,源动态口不匹配;不归并、不补控件、不凭保存顺序构造prompt。准确VIDEO返回及UI文件描述符不证明已产出。",
410 | …seed_1→54;90/91/92算法/调度/denoise→54;93none→59;94/95模型→52/51;无steps/cfg/temporal宿主边。内部steps1/cfg1/fixed与512/128/4096/8分别保存,不当外线值。",
|
E501 Line too long (274 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:409:88
|
407 | …nditioning及54.KSampler,52.UNET→61及54,61正负→54,54→55.Decode→59.PostProcessing→75.images。51.VAE→48/55,57另→59.original_resized_images。三类SeedVR2实现仅沿用core0.27.0有界未证结…
408 | …omponents另一实现不足时返回None,不混同。74.audio/fps/bit_depth分别经68/69/70→75;fps缓存JSON int30、bit_depth缓存JSON int8均被外线覆盖。源bit_depth两端口COMBO而边type INT;准确0.28.…
409 | … 留。准确0.28.1 SaveVideo只有平面format和codec普通Combo,无嵌套format.codec,源动态口不匹配;不归并、不补控件、不凭保存顺序构造prompt。准确VIDEO返回及UI文件描述符不证明已产出。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
410 | …eed_1→54;90/91/92算法/调度/denoise→54;93none→59;94/95模型→52/51;无steps/cfg/temporal宿主边。内部steps1/cfg1/fixed与512/128/4096/8分别保存,不当外线值。",
411 | …t.safetensors,逐字保持。VAE宿主seedvr2_ema_vae_fp16与内部ema_vae_fp16不同;两Note模型推荐/目录/项目/PR链接只原文,不执行下载或替换。one-step/full restore/防OOM建议非实测。",
|
E501 Line too long (270 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:411:80
|
409 | … 留。准确0.28.1 SaveVideo只有平面format和codec普通Combo,无嵌套format.codec,源动态口不匹配;不归并、不补控件、不凭保存顺序构造prompt。准确VIDEO返回及UI文件描述符不证明已产出。",
410 | …seed_1→54;90/91/92算法/调度/denoise→54;93none→59;94/95模型→52/51;无steps/cfg/temporal宿主边。内部steps1/cfg1/fixed与512/128/4096/8分别保存,不当外线值。",
411 | …ot.safetensors,逐字保持。VAE宿主seedvr2_ema_vae_fp16与内部ema_vae_fp16不同;两Note模型推荐/目录/项目/PR链接只原文,不执行下载或替换。one-step/full restore/防OOM建议非实测。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
412 | … 绑定。准确核心文本/schema/注册/视频实现/许可静态核对,不安装执行上游/GPU/媒体/随机种子。三SeedVR2类默认/范围/效果/真实提供方未知。",
413 | …ntend先属性/保存值再onConfigure,子图重建槽后恢复代理,不能推UE最终值。根extra缺links_added_by_ue键,内部extra只有ue_links空;缺键不补[]。58/61/74缺widgets_values,非空[]或null。",
|
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:3:1
|
1 | """Fetch bounded exact 0.28.1 video/switch text only; never execute upstream."""
2 |
3 | / import hashlib
4 | | import json
5 | | import urllib.request
6 | | from pathlib import Path
7 | | from concurrent.futures import ThreadPoolExecutor
| |_________________________________________________^
8 |
9 | REF = Path(__file__).resolve().parent.parent / "seedvr2-video-reference"
|
help: Organize imports
|
5 | import urllib.request
6 + from concurrent.futures import ThreadPoolExecutor
7 | from pathlib import Path
- from concurrent.futures import ThreadPoolExecutor
8 |
|
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:3:1
|
1 | """Verify exact Git blob/tag/tree, line ranges and original graph inventory offline."""
2 |
3 | / import hashlib
4 | | import json
5 | | from build_definition import OUT, REPO, build
| |_____________________________________________^
help: Organize imports
|
4 | import json
5 +
6 | from build_definition import OUT, REPO, build
|
E501 Line too long (138 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:48:101
|
46 | …in b["sources"]}),
47 | …EPO)),
48 | …r2-document-evidence/source-check.json; bounded 0.27.0, no new global absence claim",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 | …
50 | …
|
Found 30 errors.
[*] 3 fixable with the `--fix` option.
Traceback (most recent call last):
File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-0bda4b003ea3/workdir/aigc-home/docs/hel-892/seedvr2-video-document-evidence/check_code.py", line 40, in <module>
main()
File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-0bda4b003ea3/workdir/aigc-home/docs/hel-892/seedvr2-video-document-evidence/check_code.py", line 18, in main
subprocess.run(
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['uv', 'run', '--project', 'calliope-backend', '--offline', 'ruff', 'check', '--config', 'calliope-backend/pyproject.toml', 'calliope-backend/src/calliope/comfyui/fixed_document.py', 'calliope-backend/tests/test_seedvr2_video_fixed_document.py', 'e2e/run-seedvr2-video-document.py', 'docs/hel-892/seedvr2-video-document-evidence/build_definition.py', 'docs/hel-892/seedvr2-video-document-evidence/check_code.py', 'docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py', 'docs/hel-892/seedvr2-video-document-evidence/rebuild.py', 'docs/hel-892/seedvr2-video-document-evidence/recompute.py', 'docs/hel-892/seedvr2-video-document-evidence/render_report.py', 'docs/hel-892/seedvr2-video-document-evidence/repeat.py', 'docs/hel-892/seedvr2-video-document-evidence/request_counts.py', 'docs/hel-892/seedvr2-video-document-evidence/verify_sources.py']' returned non-zero exit status 1.
@@ -0,0 +1,3 @@
All checks passed!
12 files already formatted
PASS 12 authored Python files and one JS syntax check
@@ -0,0 +1,111 @@
E501 Line too long (121 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:216:76
|
214 | "帧/秒",
215 | "1.0~120.0,step1.0",
216 | "内部75保存JSON int30,外线69由74.fps覆盖;拆分端准确float(frame_rate),不能用缓存保证实际30FPS或音画同步。",
| ^^^^^^^^^^^^^^^^^^^^^
217 | [create, components],
218 | ),
|
E501 Line too long (107 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:256:70
|
254 | "秒",
255 | "-100000~100000,step0.001;负值实际解释见视频类型实现",
256 | "宿主保存JSON int0,经边81覆盖内部79缓存0;由准确as_trimmed处理。未读取素材,起点有效性未知。",
| ^^^^^^
257 | [trim],
258 | ),
|
E501 Line too long (116 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:286:75
|
284 | '机值或补宿主控制。'
285 | ),
286 | "control_after_generate": "仅内部54保存fixed;宿主没有独立保存该控制,和seed_1分开。不构造随机值或prompt。",
| ^^^^^^^^^^^^^^^^
287 | "steps": "仅内部54保存1,没有宿主steps边界或覆盖;单步不是实际画质、速度或成功保证。",
288 | "cfg": "仅内部54保存JSON int1,对应FLOAT schema,没有宿主cfg边界;条件来自61,模型适配和效果未知。",
|
E501 Line too long (108 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:288:73
|
286 | "control_after_generate": "仅内部54保存fixed;宿主没有独立保存该控制,和seed_1分开。不构造随机值或prompt。",
287 | "steps": "仅内部54保存1,没有宿主steps边界或覆盖;单步不是实际画质、速度或成功保证。",
288 | "cfg": "仅内部54保存JSON int1,对应FLOAT schema,没有宿主cfg边界;条件来自61,模型适配和效果未知。",
| ^^^^^^^^
289 | "sampler_name": "保存euler,宿主边90覆盖内部54缓存;准确采样器枚举包含euler,不证明SeedVR2适配。",
290 | "scheduler": "保存simple,宿主边91覆盖内部54缓存;准确调度器枚举包含simple,不是实跑证明。",
|
E501 Line too long (106 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:289:74
|
287 | "steps": "仅内部54保存1,没有宿主steps边界或覆盖;单步不是实际画质、速度或成功保证。",
288 | "cfg": "仅内部54保存JSON int1,对应FLOAT schema,没有宿主cfg边界;条件来自61,模型适配和效果未知。",
289 | "sampler_name": "保存euler,宿主边90覆盖内部54缓存;准确采样器枚举包含euler,不证明SeedVR2适配。",
| ^^^^^^
290 | "scheduler": "保存simple,宿主边91覆盖内部54缓存;准确调度器枚举包含simple,不是实跑证明。",
291 | "denoise": "保存JSON int1,宿主边92覆盖内部54缓存;1不证明注释所称full restore或保真效果。",
|
E501 Line too long (118 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:317:67
|
315 | '存或成功。'
316 | ),
317 | "tile_size": "内部48编码与55解码分别保存512;无宿主覆盖。准确实现按VAE压缩换算,分块不保证显存足够或无接缝。",
| ^^^^^^^^^^^^^^^^^^
318 | "overlap": "内部48编码与55解码分别保存128;无宿主覆盖。准确解码按tile_size限幅和压缩换算,保留源值,不保证无接缝。",
319 | "temporal_overlap": "内部48/55分别保存8;仅视频VAE时间分块适用,按压缩换算/限幅,不保证同步或资源容量。",
|
E501 Line too long (124 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:318:69
|
316 | ),
317 | "tile_size": "内部48编码与55解码分别保存512;无宿主覆盖。准确实现按VAE压缩换算,分块不保证显存足够或无接缝。",
318 | "overlap": "内部48编码与55解码分别保存128;无宿主覆盖。准确解码按tile_size限幅和压缩换算,保留源值,不保证无接缝。",
| ^^^^^^^^^^^^^^^^^^^^^^^^
319 | "temporal_overlap": "内部48/55分别保存8;仅视频VAE时间分块适用,按压缩换算/限幅,不保证同步或资源容量。",
320 | "weight_dtype": "内部52独立保存default,无宿主覆盖;文件名int8不证明实际加载/计算dtype、设备支持或速度。",
|
E501 Line too long (113 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:319:71
|
317 | "tile_size": "内部48编码与55解码分别保存512;无宿主覆盖。准确实现按VAE压缩换算,分块不保证显存足够或无接缝。",
318 | "overlap": "内部48编码与55解码分别保存128;无宿主覆盖。准确解码按tile_size限幅和压缩换算,保留源值,不保证无接缝。",
319 | "temporal_overlap": "内部48/55分别保存8;仅视频VAE时间分块适用,按压缩换算/限幅,不保证同步或资源容量。",
| ^^^^^^^^^^^^
320 | "weight_dtype": "内部52独立保存default,无宿主覆盖;文件名int8不证明实际加载/计算dtype、设备支持或速度。",
321 | "resize_type": "内部57保存scale by multiplier;只列此动态分支,不补宽高或其它未保存分支。",
|
E501 Line too long (114 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:320:73
|
318 | "overlap": "内部48编码与55解码分别保存128;无宿主覆盖。准确解码按tile_size限幅和压缩换算,保留源值,不保证无接缝。",
319 | "temporal_overlap": "内部48/55分别保存8;仅视频VAE时间分块适用,按压缩换算/限幅,不保证同步或资源容量。",
320 | "weight_dtype": "内部52独立保存default,无宿主覆盖;文件名int8不证明实际加载/计算dtype、设备支持或速度。",
| ^^^^^^^^^^^^^^
321 | "resize_type": "内部57保存scale by multiplier;只列此动态分支,不补宽高或其它未保存分支。",
322 | "scale_method": "内部57保存lanczos;准确schema默认area另列。只是倍率插值算法,不是SeedVR2超分模型或清晰度保证。",
|
E501 Line too long (121 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:322:77
|
320 | "weight_dtype": "内部52独立保存default,无宿主覆盖;文件名int8不证明实际加载/计算dtype、设备支持或速度。",
321 | "resize_type": "内部57保存scale by multiplier;只列此动态分支,不补宽高或其它未保存分支。",
322 | "scale_method": "内部57保存lanczos;准确schema默认area另列。只是倍率插值算法,不是SeedVR2超分模型或清晰度保证。",
| ^^^^^^^^^^^^^^^^^^^^
323 | }
324 | fields = []
|
Found 13 errors (3 fixed, 10 remaining).
@@ -0,0 +1,949 @@
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:129:41
|
127 | def test_anomaly_metadata_and_notes_cannot_be_rebound(variant):
128 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
129 | sub=s['definitions']['subgraphs'][0]; ns={n['id']:n for n in sub['nodes']}
| ^
130 | if variant=='dangling':ns[79]['outputs'][0]['links']=[77]
131 | elif variant=='extra_missing':s['extra']['links_added_by_ue']=[]
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:130:27
|
128 | s,r=copy.deepcopy(SOURCE),copy.deepcopy(REVIEW)
129 | sub=s['definitions']['subgraphs'][0]; ns={n['id']:n for n in sub['nodes']}
130 | if variant=='dangling':ns[79]['outputs'][0]['links']=[77]
| ^
131 | elif variant=='extra_missing':s['extra']['links_added_by_ue']=[]
132 | elif variant=='extra_empty':sub['extra']['ue_links']=None
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:131:34
|
129 | sub=s['definitions']['subgraphs'][0]; ns={n['id']:n for n in sub['nodes']}
130 | if variant=='dangling':ns[79]['outputs'][0]['links']=[77]
131 | elif variant=='extra_missing':s['extra']['links_added_by_ue']=[]
| ^
132 | elif variant=='extra_empty':sub['extra']['ue_links']=None
133 | elif variant=='schema_port':ns[75]['inputs'][3]['type']='INT'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:132:32
|
130 | if variant=='dangling':ns[79]['outputs'][0]['links']=[77]
131 | elif variant=='extra_missing':s['extra']['links_added_by_ue']=[]
132 | elif variant=='extra_empty':sub['extra']['ue_links']=None
| ^
133 | elif variant=='schema_port':ns[75]['inputs'][3]['type']='INT'
134 | elif variant=='format_codec':s['nodes'][3]['widgets_values_named'].pop('format.codec')
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:133:32
|
131 | elif variant=='extra_missing':s['extra']['links_added_by_ue']=[]
132 | elif variant=='extra_empty':sub['extra']['ue_links']=None
133 | elif variant=='schema_port':ns[75]['inputs'][3]['type']='INT'
| ^
134 | elif variant=='format_codec':s['nodes'][3]['widgets_values_named'].pop('format.codec')
135 | elif variant=='bit_depth':ns[75]['widgets_values'][1]=10
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:134:33
|
132 | elif variant=='extra_empty':sub['extra']['ue_links']=None
133 | elif variant=='schema_port':ns[75]['inputs'][3]['type']='INT'
134 | elif variant=='format_codec':s['nodes'][3]['widgets_values_named'].pop('format.codec')
| ^
135 | elif variant=='bit_depth':ns[75]['widgets_values'][1]=10
136 | elif variant.startswith('note'):s['nodes'][int(variant[-1])]['widgets_values'][0]='forged'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:135:30
|
133 | elif variant=='schema_port':ns[75]['inputs'][3]['type']='INT'
134 | elif variant=='format_codec':s['nodes'][3]['widgets_values_named'].pop('format.codec')
135 | elif variant=='bit_depth':ns[75]['widgets_values'][1]=10
| ^
136 | elif variant.startswith('note'):s['nodes'][int(variant[-1])]['widgets_values'][0]='forged'
137 | elif variant=='missing_widgets':ns[74]['widgets_values']=[]
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:136:36
|
134 | elif variant=='format_codec':s['nodes'][3]['widgets_values_named'].pop('format.codec')
135 | elif variant=='bit_depth':ns[75]['widgets_values'][1]=10
136 | elif variant.startswith('note'):s['nodes'][int(variant[-1])]['widgets_values'][0]='forged'
| ^
137 | elif variant=='missing_widgets':ns[74]['widgets_values']=[]
138 | elif variant=='preview':s['nodes'][4]['properties']['previewExposures']=[]
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:137:36
|
135 | elif variant=='bit_depth':ns[75]['widgets_values'][1]=10
136 | elif variant.startswith('note'):s['nodes'][int(variant[-1])]['widgets_values'][0]='forged'
137 | elif variant=='missing_widgets':ns[74]['widgets_values']=[]
| ^
138 | elif variant=='preview':s['nodes'][4]['properties']['previewExposures']=[]
139 | elif variant=='ue':s['nodes'][4]['properties']['ue_properties']['version']='other'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:138:28
|
136 | elif variant.startswith('note'):s['nodes'][int(variant[-1])]['widgets_values'][0]='forged'
137 | elif variant=='missing_widgets':ns[74]['widgets_values']=[]
138 | elif variant=='preview':s['nodes'][4]['properties']['previewExposures']=[]
| ^
139 | elif variant=='ue':s['nodes'][4]['properties']['ue_properties']['version']='other'
140 | elif variant=='sub_id':sub['id']='different'
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:139:23
|
137 | elif variant=='missing_widgets':ns[74]['widgets_values']=[]
138 | elif variant=='preview':s['nodes'][4]['properties']['previewExposures']=[]
139 | elif variant=='ue':s['nodes'][4]['properties']['ue_properties']['version']='other'
| ^
140 | elif variant=='sub_id':sub['id']='different'
141 | else:r['fixed_version_document']['sources'][0]['sha256']='0'*64
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:140:27
|
138 | elif variant=='preview':s['nodes'][4]['properties']['previewExposures']=[]
139 | elif variant=='ue':s['nodes'][4]['properties']['ue_properties']['version']='other'
140 | elif variant=='sub_id':sub['id']='different'
| ^
141 | else:r['fixed_version_document']['sources'][0]['sha256']='0'*64
142 | refuse(s,r)
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:141:9
|
139 | elif variant=='ue':s['nodes'][4]['properties']['ue_properties']['version']='other'
140 | elif variant=='sub_id':sub['id']='different'
141 | else:r['fixed_version_document']['sources'][0]['sha256']='0'*64
| ^
142 | refuse(s,r)
|
E501 Line too long (103 > 100)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:146:101
|
145 | def test_independent_inventory_boundaries_anomaly_and_semantics():
146 | assert (len(SOURCE['nodes']),len(SOURCE['links']),len(SUB['nodes']),len(SUB['links']))==(5,2,13,34)
| ^^^
147 | assert all(n['mode']==0 for _,n in NODES)
148 | saved={f'{prefix}/nodes/{i}/widgets_values/{k}' for prefix,g in SCOPES for i,n in enumerate(g['nodes']) if n['type']!='MarkdownNo…
|
E501 Line too long (185 > 100)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:148:101
|
146 | …UB['links']))==(5,2,13,34)
147 | …
148 | …r i,n in enumerate(g['nodes']) if n['type']!='MarkdownNote' for k in range(len(n.get('widgets_values',[])))}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149 | …
150 | …
|
E501 Line too long (148 > 100)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:160:101
|
158 | …
159 | …
160 | …st) else [e[k] for k in ['id','origin_id','origin_slot','target_id','target_slot','type']]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
161 | …nks'] if src>=0 else g['inputs'][slot]['linkIds'])
162 | …nk']==eid
|
E501 Line too long (108 > 100)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:161:101
|
159 | … for e in g['links']:
160 | … eid,src,slot,dst,inp,kind=e if isinstance(e,list) else [e[k] for k in ['id','origin_id','origin_slot','target_id','target_s…
161 | … assert eid in (nodes[src]['outputs'][slot]['links'] if src>=0 else g['inputs'][slot]['linkIds'])
| ^^^^^^^^
162 | … if dst>=0:assert nodes[dst]['inputs'][inp]['link']==eid
163 | … else:assert eid in g['outputs'][inp]['linkIds']
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:162:22
|
160 | eid,src,slot,dst,inp,kind=e if isinstance(e,list) else [e[k] for k in ['id','origin_id','origin_slot','target_id','target…
161 | assert eid in (nodes[src]['outputs'][slot]['links'] if src>=0 else g['inputs'][slot]['linkIds'])
162 | if dst>=0:assert nodes[dst]['inputs'][inp]['link']==eid
| ^
163 | else:assert eid in g['outputs'][inp]['linkIds']
164 | for n in BLOCK['comments']:
|
E701 Multiple statements on one line (colon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:163:17
|
161 | assert eid in (nodes[src]['outputs'][slot]['links'] if src>=0 else g['inputs'][slot]['linkIds'])
162 | if dst>=0:assert nodes[dst]['inputs'][inp]['link']==eid
163 | else:assert eid in g['outputs'][inp]['linkIds']
| ^
164 | for n in BLOCK['comments']:
165 | assert pointer(SOURCE,n['pointer'])==pointer(SOURCE,n['named_pointer'])==n['text']
|
E501 Line too long (141 > 100)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:170:97
|
168 | …=False,exec_verified=False)
169 | …
170 | …codec','无color_space/codec','INT','无steps/cfg/temporal宿主边','941','988','未实跑']:
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
171 | …
172 | …
|
E501 Line too long (118 > 100)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:181:101
|
179 | tree=ast.parse(video)
180 | def source(name):
181 | return ast.get_source_segment(video,next(n for n in tree.body if isinstance(n,ast.ClassDef) and n.name==name))
| ^^^^^^^^^^^^^^^^^^
182 | save=source('SaveVideo');create=source('CreateVideo');split=source('GetVideoComponents')
183 | assert 'format.codec' not in save and 'io.Combo.Input("format"' in save
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:182:29
|
180 | def source(name):
181 | return ast.get_source_segment(video,next(n for n in tree.body if isinstance(n,ast.ClassDef) and n.name==name))
182 | save=source('SaveVideo');create=source('CreateVideo');split=source('GetVideoComponents')
| ^
183 | assert 'format.codec' not in save and 'io.Combo.Input("format"' in save
184 | assert '"color_space"' not in create and '"codec"' not in create
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:182:58
|
180 | def source(name):
181 | return ast.get_source_segment(video,next(n for n in tree.body if isinstance(n,ast.ClassDef) and n.name==name))
182 | save=source('SaveVideo');create=source('CreateVideo');split=source('GetVideoComponents')
| ^
183 | assert 'format.codec' not in save and 'io.Combo.Input("format"' in save
184 | assert '"color_space"' not in create and '"codec"' not in create
|
E702 Multiple statements on one line (semicolon)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:195:49
|
193 | resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
194 | old=json.loads(subprocess.check_output(['git','show','291ff48:'+resource],cwd=REPO))
195 | now=json.loads((REPO/resource).read_bytes());now[PATH].pop('fixed_version_document')
| ^
196 | assert now==old and len(DEFINITIONS)==32
197 | blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
|
E501 Line too long (230 > 100)
--> calliope-backend/tests/test_seedvr2_video_fixed_document.py:198:101
|
196 | …
197 | …
198 | …ument(p,json.loads((REPO/p).read_bytes()),None,None,[],r)['source_notes']) for p,r in old.items() if 'fixed_version_document' in r)==22
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:2:1
|
1 | """47 exact saved positions for the SeedVR2 video graph; editorial only."""
2 | / from __future__ import annotations
3 | | import copy
4 | | import hashlib
5 | | import importlib.util
6 | | import json
7 | | from pathlib import Path
| |________________________^
8 |
9 | REPO = Path(__file__).resolve().parents[3]
|
help: Organize imports
|
2 | from __future__ import annotations
3 +
4 | import copy
|
E501 Line too long (132 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:12:72
|
10 | OUT = Path(__file__).resolve().parent
11 | REF = OUT.parent / 'seedvr2-video-reference'
12 | PATHS = ['example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 |
14 | def canonical(v):
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:19:49
|
17 | def build(index=0):
18 | spec=importlib.util.spec_from_file_location('image_reference_builder',OUT.parent/'seedvr2-document-evidence/build_definition.py')
19 | module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
| ^
20 | image=module.build()
21 | raw=(REPO/PATHS[index]).read_bytes(); graph=json.loads(raw);sub=graph['definitions']['subgraphs'][0]
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:21:41
|
19 | module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
20 | image=module.build()
21 | raw=(REPO/PATHS[index]).read_bytes(); graph=json.loads(raw);sub=graph['definitions']['subgraphs'][0]
| ^
22 | entries=json.loads((REF/'sources.json').read_bytes())['sources']
23 | refs=copy.deepcopy(image['sources'])
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:21:64
|
19 | module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
20 | image=module.build()
21 | raw=(REPO/PATHS[index]).read_bytes(); graph=json.loads(raw);sub=graph['definitions']['subgraphs'][0]
| ^
22 | entries=json.loads((REF/'sources.json').read_bytes())['sources']
23 | refs=copy.deepcopy(image['sources'])
|
E501 Line too long (104 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:21:101
|
19 | module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
20 | image=module.build()
21 | raw=(REPO/PATHS[index]).read_bytes(); graph=json.loads(raw);sub=graph['definitions']['subgraphs'][0]
| ^^^^
22 | entries=json.loads((REF/'sources.json').read_bytes())['sources']
23 | refs=copy.deepcopy(image['sources'])
|
E501 Line too long (138 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:28:90
|
26 | …eo-reference/'+e['local_file'],'lines':[first,last],'claim':claim})
27 | …
28 | … 确core0.28.1 LoadVideo动态视频枚举、video上传、路径验证与VideoFromFile;未读取素材')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29 | … SaveVideo是平面format/codec Combo及VIDEO返回;不含format.codec或动态嵌套schema,保存/UI描述符与产物分开')
30 | …'准确CreateVideo只有images/fps/audio/bit_depth,bit_depth是INT而非源COMBO,无color_space/codec')
|
E501 Line too long (160 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:29:93
|
27 | …
28 | ….1 LoadVideo动态视频枚举、video上传、路径验证与VideoFromFile;未读取素材')
29 | …是平面format/codec Combo及VIDEO返回;不含format.codec或动态嵌套schema,保存/UI描述符与产物分开')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 | …Video只有images/fps/audio/bit_depth,bit_depth是INT而非源COMBO,无color_space/codec')
31 | …tVideoComponents四出口,bit_depth为INT,不含源图额外color_space出口')
|
E501 Line too long (119 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:32:89
|
30 | create=ref('comfy_extras/nodes_video.py',133,173,'准确CreateVideo只有images/fps/audio/bit_depth,bit_depth是INT而非源COMBO,无colo…
31 | components=ref('comfy_extras/nodes_video.py',175,191,'准确GetVideoComponents四出口,bit_depth为INT,不含源图额外color_space出口')
32 | trim=ref('comfy_extras/nodes_video.py',233,277,'准确Video Slice默认/单位/范围及as_trimmed失败抛错;非保证获得10秒')
| ^^^^^^^^^^^^^^^^^^
33 | switch=ref('comfy_extras/nodes_logic.py',86,115,'准确ComfySwitchNode布尔真选on_true、假选on_false;lazy请求只选分支')
34 | ref('comfy_extras/nodes_video.py',280,293,'准确视频扩展注册入口')
|
E501 Line too long (170 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:38:98
|
36 | … 未显式default时不称true默认')
37 | … 能将普通Combo改称动态分支')
38 | …Codec auto/h264、Container auto/mp4与auto扩展mp4;VideoComponents含Fraction/audio,可选字段非源实况')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 | …,'VideoFromFile负起点从末尾归一、duration取可用时长最小值;非实际片长')
40 | …romFile.as_trimmed仅严格且不足时返回None,其余构造裁剪引用;不执行解码')
|
E501 Line too long (222 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:51:68
|
49 | …
50 | … 型过滤;实际素材未知','保存ComfyUI_00002.mp4,经根边72进入66.video;只是源文件引用,不读取素材、不保证存在或可解码。',[load]),
51 | … 准确schema upload=video','源保存image占位而准确LoadVideo声明video上传;不当作第二个视频参数、已上传状态或素材路径。',[load]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 | … 数命名','保存video/Upscaled_seedVR2,条件调用video.save_to并返回VIDEO和UI文件描述符;未保存任何视频,准确枚举auto/mp4的扩展规则为mp…
53 | …','源口声明动态类型而准确schema是普通Combo。保存auto仅请求自动容器,不保证实际格式;不把format.codec并入该值。',[save]),
|
E501 Line too long (201 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:55:82
|
53 | …eoContainer','源口声明动态类型而准确schema是普通Combo。保存auto仅请求自动容器,不保证实际格式;不把format.codec并入该值。',[save]),
54 | … 存文本','准确SaveVideo无format.codec字段','原位置独立保存auto;准确0.28.1仅平面format和codec,源额外动态层次无法按此版本确认,不合…
55 | …ON int30,外线69由74.fps覆盖;拆分端准确float(frame_rate),不能用缓存保证实际30FPS或音画同步。',[create,components]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56 | … INT不一致','保存JSON int8,外线70由74.bit_depth覆盖;边记录type INT而源两端口COMBO。准确0.28.1两端均INT,保留差异,不据缓存证明实际…
57 | …'准确CreateVideo没有color_space输入,GetVideoComponents也无该出口','保存sRGB且未接线;准确0.28.1无该字段,不等于已应用sRGB,不推断色…
|
E501 Line too long (244 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:56:79
|
54 | … SaveVideo无format.codec字段','原位置独立保存auto;准确0.28.1仅平面format和codec,源额外动态层次无法按此版本确认,不合并、不删值、不补分支。',[save,dynam…
55 | … 69由74.fps覆盖;拆分端准确float(frame_rate),不能用缓存保证实际30FPS或音画同步。',[create,components]),
56 | …'保存JSON int8,外线70由74.bit_depth覆盖;边记录type INT而源两端口COMBO。准确0.28.1两端均INT,保留差异,不据缓存证明实际8位。',[create,components]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 | …ideo没有color_space输入,GetVideoComponents也无该出口','保存sRGB且未接线;准确0.28.1无该字段,不等于已应用sRGB,不推断色彩管理或保真。',[create,component…
58 | …lse选择on_false;lazy只请求所选分支','宿主66保存true经边80覆盖内部81缓存true;81.on_true经77来自79切片,on_false经78来自原video。准确实现真选切片,不凭…
|
E501 Line too long (204 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:59:80
|
57 | … 确CreateVideo没有color_space输入,GetVideoComponents也无该出口','保存sRGB且未接线;准确0.28.1无该字段,不等于已应用sRGB,不推断色彩…
58 | …n_true,false选择on_false;lazy只请求所选分支','宿主66保存true经边80覆盖内部81缓存true;81.on_true经77来自79切片,on_false经78来自原v…
59 | … 视频类型实现','宿主保存JSON int0,经边81覆盖内部79缓存0;由准确as_trimmed处理。未读取素材,起点有效性未知。',[trim]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60 | …ax','宿主保存JSON int10经边82覆盖内部79缓存10;strict_duration=false并不保证输出10秒,短片/负起点等条件另见准确视频实现。',[trim]),
61 | …e仍可能失败','内部79独立保存false,无宿主覆盖。准确节点调用as_trimmed,返回None即抛ValueError;不把false当无条件成功。',[trim]),
|
E501 Line too long (218 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:60:76
|
58 | … false选择on_false;lazy只请求所选分支','宿主66保存true经边80覆盖内部81缓存true;81.on_true经77来自79切片,on_false经78来自原video。…
59 | … 实现','宿主保存JSON int0,经边81覆盖内部79缓存0;由准确as_trimmed处理。未读取素材,起点有效性未知。',[trim]),
60 | … 主保存JSON int10经边82覆盖内部79缓存10;strict_duration=false并不保证输出10秒,短片/负起点等条件另见准确视频实现。',[trim]),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61 | … 败','内部79独立保存false,无宿主覆盖。准确节点调用as_trimmed,返回None即抛ValueError;不把false当无条件成功。',[trim]),
62 | …
|
E501 Line too long (107 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:67:73
|
65 | 'control_after_generate':'仅内部54保存fixed;宿主没有独立保存该控制,和seed_1分开。不构造随机值或prompt。',
66 | 'steps':'仅内部54保存1,没有宿主steps边界或覆盖;单步不是实际画质、速度或成功保证。',
67 | 'cfg':'仅内部54保存JSON int1,对应FLOAT schema,没有宿主cfg边界;条件来自61,模型适配和效果未知。',
| ^^^^^^
68 | 'sampler_name':'保存euler,宿主边90覆盖内部54缓存;准确采样器枚举包含euler,不证明SeedVR2适配。',
69 | 'scheduler':'保存simple,宿主边91覆盖内部54缓存;准确调度器枚举包含simple,不是实跑证明。',
|
E501 Line too long (172 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:73:87
|
71 | …t.safetensors(大小写逐字保留),宿主边94覆盖内部缓存;Note推荐路径另列,不验证磁盘/模型/精度。',
72 | …1缓存ema_vae_fp16.safetensors;与Note推荐并列,不替换、不证明安装。',
73 | …plier_1经边86覆盖内部57缓存。准确resize按round计算宽高再插值;倍率插值与模型效果分开,实际尺寸未知。',
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74 | … 类SeedVR2准确实现仍未证,不能保证无颜色变化或可用选项。',
75 | …poral_size输入或外线。仅视频VAE使用时间窗口,不保证帧数、内存或成功。',
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:83:14
|
81 | 'scale_method':'内部57保存lanczos;准确schema默认area另列。只是倍率插值算法,不是SeedVR2超分模型或清晰度保证。',
82 | }
83 | fields=[];missing=[];comments=[]
| ^
84 | for scope,g,prefix in [('root',graph,''),('subgraph:'+sub['id'],sub,'/definitions/subgraphs/0')]:
85 | for i,n in enumerate(g['nodes']):
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:83:25
|
81 | 'scale_method':'内部57保存lanczos;准确schema默认area另列。只是倍率插值算法,不是SeedVR2超分模型或清晰度保证。',
82 | }
83 | fields=[];missing=[];comments=[]
| ^
84 | for scope,g,prefix in [('root',graph,''),('subgraph:'+sub['id'],sub,'/definitions/subgraphs/0')]:
85 | for i,n in enumerate(g['nodes']):
|
E501 Line too long (101 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:84:101
|
82 | }
83 | fields=[];missing=[];comments=[]
84 | for scope,g,prefix in [('root',graph,''),('subgraph:'+sub['id'],sub,'/definitions/subgraphs/0')]:
| ^
85 | for i,n in enumerate(g['nodes']):
86 | base=f'{prefix}/nodes/{i}'
|
E501 Line too long (311 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:92:101
|
90 | …
91 | …
92 | …d_pointer=base+'/widgets_values_named/text',text=n['widgets_values'][0],meaning=('完整原文保留;模型/目录/PR/项目URL仅文本,非安装下载运行授权;one-step、full restore、防OOM/耗时建议均非实际产物、性能或资源保证。')))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
93 | …
94 | …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:94:50
|
92 | … comments.append(dict(node_id=str(n['id']),pointer=base+'/widgets_values/0',named_pointer=base+'/widgets_values_named/text',t…
93 | … continue
94 | … names=list(n['widgets_values_named']);assert len(names)==len(n['widgets_values'])
| ^
95 | … for k,(name,value) in enumerate(zip(names,n['widgets_values'])):
96 | … assert canonical(value)==canonical(n['widgets_values_named'][name])
|
E501 Line too long (232 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:100:86
|
98 | …
99 | …
100 | …at.codec位置分开','根76独立codec保存auto;准确schema支持此平面字段但不支持额外嵌套项,不归并多个auto,也不保证实际编解码器可用。',[save])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
101 | …
102 | … CreateVideo没有codec参数','内部75保存none且未接线;准确0.28.1无此字段,不解释为已无损/未编码/禁用编码。',[create])
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:103:21
|
101 | … else:
102 | … data=('源保存的重组编码标签','未知:准确schema无此项','源枚举标签','准确CreateVideo没有codec参数','内部75保存none且未…
103 | … else:data=specials.get(normalized)
| ^
104 | … if data:
105 | … label,default,unit,limits,effect,ev=data
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:108:59
|
106 | f=dict(label=label,schema_default=default,unit=unit,limits=limits,effect=effect,evidence=ev)
107 | else:
108 | f=copy.deepcopy(templates[normalized]);f['effect']=effects[normalized]
| ^
109 | inp_idx=next((j for j,p in enumerate(n.get('inputs',[])) if p['name']==name),None)
110 | named=base+'/widgets_values_named/'+name.replace('~','~0').replace('/','~1')
|
E501 Line too long (136 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:113:101
|
111 | … inp=f'{base}/inputs/{inp_idx}' if inp_idx is not None else named
112 | … linked=inp_idx is not None and n['inputs'][inp_idx].get('link') is not None
113 | … role='linked_saved' if linked else 'frontend_control' if normalized in ['upload','control_after_generate'] else 'scalar'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114 | … f.update(node_id=str(n['id']),scope=scope,class_type=n['type'],field=name,pointer=f'{base}/widgets_values/{k}',named_pointer=na…
115 | … f['evidence']=list(dict.fromkeys(f['evidence']+[19,20,21,22]+([enums,encoding] if n['id'] in [75,76] else [filetrim] if normali…
|
E501 Line too long (384 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:114:101
|
112 | …
113 | …','control_after_generate'] else 'scalar'
114 | …er=f'{base}/widgets_values/{k}',named_pointer=nam…';源口/前端状态:'+inp)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115 | …if n['id'] in [75,76] else [filetrim] if normalized in ['start_time','duration','strict_duration'] else [])+([23] if normalized=='upload' else []))) # exact host/subgraph/callback source references
116 | …
|
E501 Line too long (292 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:115:101
|
113 | …','control_after_generate'] else 'scalar'
114 | …er=f'{base}/widgets_values/{k}',named_pointer=named,input_pointer=inp,value=value,json_type=type(value).__name__,type=next((p['type'] for p in n.get('inputs',[]) if p['name']==name),'前端状态'),role=rol…
115 | …if n['id'] in [75,76] else [filetrim] if normalized in ['start_time','duration','strict_duration'] else [])+([23] if normalized=='upload' else []))) # exact host/subgraph/callback source references
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116 | …
117 | …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:118:18
|
116 | fields.append(f)
117 | assert len(fields)==47 and len(comments)==2
118 | boundaries=[];ns={n['id']:n for n in sub['nodes']}
| ^
119 | for j,port in enumerate(sub['inputs']):
120 | edges=[e for e in sub['links'] if e['origin_id']==-10 and e['origin_slot']==j]
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:123:38
|
121 | … assert {e['id'] for e in edges}==set(port['linkIds'])
122 | … for e in edges:
123 | … target=ns[e['target_id']]; ti=sub['nodes'].index(target)
| ^
124 | … assert target['inputs'][e['target_slot']]['link']==e['id']
125 | … boundaries.append(dict(host_slot=j,name=port['name'],host_pointer=f'/nodes/4/inputs/{j}',definition_pointer=f'/definitions/…
|
E501 Line too long (269 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:129:88
|
127 | …
128 | …6.SaveVideo。同UUID1970dcb4…不等于上一图片图同一定义。',
129 | ….28.1 switch=true选择on_true且lazy只请求该支;false选择原片。宿主true经80覆盖81保存true;0/10经81/82覆盖79缓存;strict_duration=false独立。未执行切片,不保证10秒或规避OOM。',
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
130 | … 修复、不把它计入34条真实记录。定义输出71由75→-20,不能把悬空76猜成输出。',
131 | …ditioning及54.KSampler,52.UNET→61及54,61正负→54,54→55.Decode→59.PostProcessing→75.images。51.VAE→48/55,57另→59.original_resized_images。三类SeedVR2实现仅沿用core0.27.0有界未…
|
E501 Line too long (514 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:132:75
|
130 | … 修复、不把它计入34条真实记录。定义输出71由75→-20,不能把悬空76猜成输出。',
131 | …ditioning及54.KSampler,52.UNET→61及54,61正负→54,54→55.Decode→59.PostProcessing→75.images。51.VAE→48/55,57另→59.original_resized_images。三类SeedVR2实现仅沿用core0.27.0有界未证结论,不借新版或同名插件。',
132 | …mponents另一实现不足时返回None,不混同。74.audio/fps/bit_depth分别经68/69/70→75;fps缓存JSON int30、bit_depth缓存JSON int8均被外线覆盖。源bit_depth两端口COMBO而边type INT;准确0.28.1两端INT。74源还保存color_space出口但未接,准确版本仅四出口;75源保存sRGB/none未接而准确schema无color_space/codec。准确重组保存按千分精度取帧率、8/10位选择YUV格式、音频按帧数截取并条件AAC;这些静态条件不能保证实际音轨、FPS、色彩或同步。',
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133 | … 。准确0.28.1 SaveVideo只有平面format和codec普通Combo,无嵌套format.codec,源动态口不匹配;不归并、不补控件、不凭保存顺序构造prompt。准确VIDEO返回及UI文件描述符不证明已产出。',
134 | …ed_1→54;90/91/92算法/调度/denoise→54;93none→59;94/95模型→52/51;无steps/cfg/temporal宿主边。内部steps1/cfg1/fixed与512/128/4096/8分别保存,不当外线值。',
|
E501 Line too long (272 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:133:87
|
131 | …itioning及54.KSampler,52.UNET→61及54,61正负→54,54→55.Decode→59.PostProcessing→75.images。51.VAE→48/55,57另→59.original_resized_images。三类SeedVR2实现仅沿用core0.27.0有界未证结…
132 | …ponents另一实现不足时返回None,不混同。74.audio/fps/bit_depth分别经68/69/70→75;fps缓存JSON int30、bit_depth缓存JSON int8均被外线覆盖。源bit_depth两端口COMBO而边type INT;准确0.28.…
133 | … 。准确0.28.1 SaveVideo只有平面format和codec普通Combo,无嵌套format.codec,源动态口不匹配;不归并、不补控件、不凭保存顺序构造prompt。准确VIDEO返回及UI文件描述符不证明已产出。',
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134 | …d_1→54;90/91/92算法/调度/denoise→54;93none→59;94/95模型→52/51;无steps/cfg/temporal宿主边。内部steps1/cfg1/fixed与512/128/4096/8分别保存,不当外线值。',
135 | …safetensors,逐字保持。VAE宿主seedvr2_ema_vae_fp16与内部ema_vae_fp16不同;两Note模型推荐/目录/项目/PR链接只原文,不执行下载或替换。one-step/full restore/防OOM建议非实测。',
|
E501 Line too long (268 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:135:80
|
133 | … 。准确0.28.1 SaveVideo只有平面format和codec普通Combo,无嵌套format.codec,源动态口不匹配;不归并、不补控件、不凭保存顺序构造prompt。准确VIDEO返回及UI文件描述符不证明已产出。',
134 | …ed_1→54;90/91/92算法/调度/denoise→54;93none→59;94/95模型→52/51;无steps/cfg/temporal宿主边。内部steps1/cfg1/fixed与512/128/4096/8分别保存,不当外线值。',
135 | ….safetensors,逐字保持。VAE宿主seedvr2_ema_vae_fp16与内部ema_vae_fp16不同;两Note模型推荐/目录/项目/PR链接只原文,不执行下载或替换。one-step/full restore/防OOM建议非实测。',
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136 | … 定。准确核心文本/schema/注册/视频实现/许可静态核对,不安装执行上游/GPU/媒体/随机种子。三SeedVR2类默认/范围/效果/真实提供方未知。',
137 | …end先属性/保存值再onConfigure,子图重建槽后恢复代理,不能推UE最终值。根extra缺links_added_by_ue键,内部extra只有ue_links空;缺键不补[]。58/61/74缺widgets_values,非空[]或null。',
|
E501 Line too long (117 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:143:101
|
141 | flow.extend('边界 '+json.dumps(e,ensure_ascii=False) for e in boundaries)
142 | # Compact exact inherited references to those actually relevant; no image comparer attribution.
143 | inherited=[i for i,e in enumerate(refs[:len(image['sources'])]) if e['id']!='rgthree' and i not in [0,1,2,15,23]]
| ^^^^^^^^^^^^^^^^^
144 | used=sorted(set(inherited+list(range(len(image['sources']),len(refs)))+[i for f in fields for i in f['evidence']]))
145 | remap={old:new for new,old in enumerate(used)}
|
E501 Line too long (119 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:144:101
|
142 | # Compact exact inherited references to those actually relevant; no image comparer attribution.
143 | inherited=[i for i,e in enumerate(refs[:len(image['sources'])]) if e['id']!='rgthree' and i not in [0,1,2,15,23]]
144 | used=sorted(set(inherited+list(range(len(image['sources']),len(refs)))+[i for f in fields for i in f['evidence']]))
| ^^^^^^^^^^^^^^^^^^^
145 | remap={old:new for new,old in enumerate(used)}
146 | for f in fields:f['evidence']=[remap[i] for i in f['evidence']]
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:146:20
|
144 | used=sorted(set(inherited+list(range(len(image['sources']),len(refs)))+[i for f in fields for i in f['evidence']]))
145 | remap={old:new for new,old in enumerate(used)}
146 | for f in fields:f['evidence']=[remap[i] for i in f['evidence']]
| ^
147 | sources=[refs[i] for i in used]
148 | versions=['core0.27.0→'+next(e['commit'] for e in sources if e['id']=='core'),'core0.28.1→'+entries[0]['commit'],'frontend1.45.20…
|
E501 Line too long (194 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:148:101
|
146 | …
147 | …
148 | …,'core0.28.1→'+entries[0]['commit'],'frontend1.45.20→'+next(e['commit'] for e in sources if e['id']=='frontend')]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149 | …),source_sha256=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='仅准确来源参…
|
E501 Line too long (982 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/build_definition.py:149:101
|
147 | …
148 | …+entries[0]['commit'],'frontend1.45.20→'+next(e['commit'] for e in sources if e['id']=='frontend')]
149 | …6=hashlib.sha256(raw).hexdigest(),canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),notice='仅准确来源参考;视频schema差异、悬空端点、SeedVR2实现、模型素材及扩展恢复未知;转换关闭、未实跑。',user_overview=overview,versions=versions,counts=dict(saved_fields=47,source_nodes=18,physical_edges=36,source_notes=2,history_objects=0,linked_saved_fields=sum(f['role']=='linked_saved' for f in fields),frontend_only=2,final_scalars=0,final_prompt_constructed=False),fields=fields,sources=sources,comments=comments,flow=flow,flow_evidence=list(range(len(sources))),zero_saved_nodes=missing,boundaries=boundaries,steps=[overview,'操作1:分别核对原片/切片两支、悬空76与宿主边界,保持停用;不上传或处理素材。','操作2:逐位置核对模型路径、固定种子、内部缓存与覆盖;准确版本差异未确认前不构造prompt。','操作3:实际音轨/FPS/同步/编解码器/设备/画质未知;后续全量审查通过前不作为生成入口。'])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:2:1
|
1 | """Fetch bounded exact 0.28.1 video/switch text only; never execute upstream."""
2 | / import hashlib
3 | | import json
4 | | import urllib.request
5 | | from pathlib import Path
6 | | from concurrent.futures import ThreadPoolExecutor
| |_________________________________________________^
7 |
8 | REF = Path(__file__).resolve().parent.parent / 'seedvr2-video-reference'
|
help: Organize imports
|
4 | import urllib.request
5 + from concurrent.futures import ThreadPoolExecutor
6 | from pathlib import Path
- from concurrent.futures import ThreadPoolExecutor
7 |
|
E501 Line too long (215 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:12:101
|
10 | …
11 | …
12 | …y_api/latest/_input_impl/video_types.py', 'comfy_api/latest/_input/video_types.py', 'comfy_api/latest/_util/video_types.py']
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 | …
14 | …
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:23:34
|
21 | raw=get(f'https://api.github.com/repos/{REPO}/git/ref/tags/v0.28.1')
22 | (REF/'video-tag.json').write_bytes(raw)
23 | tag=json.loads(raw)['object'];assert tag['type']=='commit'
| ^
24 | commit=tag['sha'];print('exact core 0.28.1',commit,flush=True)
25 | raw=get(f'https://api.github.com/repos/{REPO}/git/trees/{commit}?recursive=1')
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:24:22
|
22 | (REF/'video-tag.json').write_bytes(raw)
23 | tag=json.loads(raw)['object'];assert tag['type']=='commit'
24 | commit=tag['sha'];print('exact core 0.28.1',commit,flush=True)
| ^
25 | raw=get(f'https://api.github.com/repos/{REPO}/git/trees/{commit}?recursive=1')
26 | (REF/'video-tree.json').write_bytes(raw)
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:27:25
|
25 | raw=get(f'https://api.github.com/repos/{REPO}/git/trees/{commit}?recursive=1')
26 | (REF/'video-tree.json').write_bytes(raw)
27 | tree=json.loads(raw);assert not tree['truncated'] and tree['sha']==commit
| ^
28 | paths={e['path']:e for e in tree['tree'] if e['type']=='blob'}
29 | print('relevant paths',[p for p in paths if any(s in p for s in ['video_types','nodes_logic','nodes_video'])],flush=True)
|
E501 Line too long (125 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:29:101
|
27 | tree=json.loads(raw);assert not tree['truncated'] and tree['sha']==commit
28 | paths={e['path']:e for e in tree['tree'] if e['type']=='blob'}
29 | print('relevant paths',[p for p in paths if any(s in p for s in ['video_types','nodes_logic','nodes_video'])],flush=True)
| ^^^^^^^^^^^^^^^^^^^^^^^^^
30 | def fetch(p):
31 | url=f'https://raw.githubusercontent.com/{REPO}/{commit}/{p}'; b=get(url)
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:31:69
|
29 | print('relevant paths',[p for p in paths if any(s in p for s in ['video_types','nodes_logic','nodes_video'])],flush=True)
30 | def fetch(p):
31 | url=f'https://raw.githubusercontent.com/{REPO}/{commit}/{p}'; b=get(url)
| ^
32 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest();assert blob==paths[p]['sha']
33 | name='video__'+p.replace('/','__');(REF/name).write_bytes(b)
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:32:77
|
30 | def fetch(p):
31 | url=f'https://raw.githubusercontent.com/{REPO}/{commit}/{p}'; b=get(url)
32 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest();assert blob==paths[p]['sha']
| ^
33 | name='video__'+p.replace('/','__');(REF/name).write_bytes(b)
34 | return dict(id='video',file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
|
E501 Line too long (105 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:32:101
|
30 | def fetch(p):
31 | url=f'https://raw.githubusercontent.com/{REPO}/{commit}/{p}'; b=get(url)
32 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest();assert blob==paths[p]['sha']
| ^^^^^
33 | name='video__'+p.replace('/','__');(REF/name).write_bytes(b)
34 | return dict(id='video',file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:33:43
|
31 | url=f'https://raw.githubusercontent.com/{REPO}/{commit}/{p}'; b=get(url)
32 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest();assert blob==paths[p]['sha']
33 | name='video__'+p.replace('/','__');(REF/name).write_bytes(b)
| ^
34 | return dict(id='video',file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
35 | with ThreadPoolExecutor(max_workers=4) as pool:
|
E501 Line too long (132 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:34:101
|
32 | blob=hashlib.sha1(b'blob '+str(len(b)).encode()+b'\0'+b).hexdigest();assert blob==paths[p]['sha']
33 | name='video__'+p.replace('/','__');(REF/name).write_bytes(b)
34 | return dict(id='video',file=p,local_file=name,url=url,commit=commit,sha256=hashlib.sha256(b).hexdigest(),git_blob_sha1=blob)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35 | with ThreadPoolExecutor(max_workers=4) as pool:
36 | entries=list(pool.map(fetch,[p for p in FILES if p in paths]))
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py:39:24
|
37 | (REF/'sources.json').write_text(json.dumps(dict(sources=entries),indent=2)+'\n')
38 |
39 | if __name__=='__main__':main()
| ^
I001 [*] Import block is un-sorted or un-formatted
--> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:2:1
|
1 | """Verify exact Git blob/tag/tree, line ranges and original graph inventory offline."""
2 | / import hashlib
3 | | import json
4 | | from build_definition import OUT, REPO, build
| |_____________________________________________^
5 |
6 | def main():
|
help: Organize imports
|
3 | import json
4 +
5 | from build_definition import OUT, REPO, build
6 |
7 +
8 | def main():
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:7:14
|
6 | def main():
7 | b=build();roots={}
| ^
8 | for e in b['sources']:
9 | root=(OUT/e['local_file']).parent
|
E501 Line too long (164 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:14:101
|
12 | …)
13 | …
14 | …raw).hexdigest()==e['git_blob_sha1']==next(x['sha'] for x in tree['tree'] if x['path']==e['file'])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 | …plitlines())
16 | …
|
E501 Line too long (172 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:19:101
|
17 | …]==e['commit']
18 | …
19 | …,frontend='7bd9f8b0d0b854ccb5a947623468f36a392ea0ff',video='87a003e0c975b8f13e2d4067dd0710e56edd7ba5')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 | …ons']['subgraphs'][0]
21 | …s'])==13 and len(sub['links'])==34
|
E702 Multiple statements on one line (semicolon)
--> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:20:55
|
18 | roots[e['id']]=e['commit']
19 | assert roots==dict(core='bb131be9e83d2f773c90f1d6f1e4b248a498c8c5',frontend='7bd9f8b0d0b854ccb5a947623468f36a392ea0ff',video='87a0…
20 | g=json.loads((REPO/b['source_path']).read_bytes());sub=g['definitions']['subgraphs'][0]
| ^
21 | assert len(g['nodes'])==5 and len(g['links'])==2 and len(sub['nodes'])==13 and len(sub['links'])==34
22 | assert len(b['fields'])==47 and len(b['comments'])==2
|
E501 Line too long (104 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:21:101
|
19 | assert roots==dict(core='bb131be9e83d2f773c90f1d6f1e4b248a498c8c5',frontend='7bd9f8b0d0b854ccb5a947623468f36a392ea0ff',video='87a0…
20 | g=json.loads((REPO/b['source_path']).read_bytes());sub=g['definitions']['subgraphs'][0]
21 | assert len(g['nodes'])==5 and len(g['links'])==2 and len(sub['nodes'])==13 and len(sub['links'])==34
| ^^^^
22 | assert len(b['fields'])==47 and len(b['comments'])==2
23 | (OUT/'source-check.json').write_text(json.dumps(dict(all_pass=True,commits=roots,citations=len(b['sources']),git_texts=len({e['loc…
|
E501 Line too long (373 > 100)
--> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:23:101
|
21 | …ks'])==34
22 | …
23 | …len(b['sources']),git_texts=len({e['local_file'] f…aim',upstream_executed=False),indent=2)+'\n')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 | …
25 | …
|
E701 Multiple statements on one line (colon)
--> docs/hel-892/seedvr2-video-document-evidence/verify_sources.py:25:24
|
23 | (OUT/'source-check.json').write_text(json.dumps(dict(all_pass=True,commits=roots,citations=len(b['sources']),git_texts=len({e['loc…
24 | print('PASS exact sources, line ranges, tag/tree/blob and 47+2 inventory')
25 | if __name__=='__main__':main()
| ^
Found 84 errors.
[*] 3 fixable with the `--fix` option.
Traceback (most recent call last):
File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-0bda4b003ea3/workdir/aigc-home/docs/hel-892/seedvr2-video-document-evidence/check_code.py", line 40, in <module>
main()
File "/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-0bda4b003ea3/workdir/aigc-home/docs/hel-892/seedvr2-video-document-evidence/check_code.py", line 18, in main
subprocess.run(
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['uv', 'run', '--project', 'calliope-backend', '--offline', 'ruff', 'check', '--config', 'calliope-backend/pyproject.toml', 'calliope-backend/src/calliope/comfyui/fixed_document.py', 'calliope-backend/tests/test_seedvr2_video_fixed_document.py', 'e2e/run-seedvr2-video-document.py', 'docs/hel-892/seedvr2-video-document-evidence/build_definition.py', 'docs/hel-892/seedvr2-video-document-evidence/check_code.py', 'docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py', 'docs/hel-892/seedvr2-video-document-evidence/rebuild.py', 'docs/hel-892/seedvr2-video-document-evidence/recompute.py', 'docs/hel-892/seedvr2-video-document-evidence/render_report.py', 'docs/hel-892/seedvr2-video-document-evidence/repeat.py', 'docs/hel-892/seedvr2-video-document-evidence/request_counts.py', 'docs/hel-892/seedvr2-video-document-evidence/verify_sources.py']' returned non-zero exit status 1.
@@ -0,0 +1,23 @@
[
{
"file": "fixed_document.py",
"sha256": "5fc9f4a8a94ad9df400c44617f5ade2a2a44e73e8cd7bf9de9787b35dab45444",
"wheel": true,
"sdist": true,
"definitions": 32
},
{
"file": "source_reviews.json",
"sha256": "579282f9ee96332584e6b4e4b73dc4783208747991f740c8a1d855804114b000",
"wheel": true,
"sdist": true,
"definitions": 32
},
{
"file": "library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
"wheel": true,
"sdist": true,
"definitions": 32
}
]
@@ -0,0 +1,3 @@
{
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json": "4916d82960ae4c6e6046a7fdaf21573abde2acceb952193380b08c8ed1d3d66d"
}
@@ -0,0 +1,12 @@
{
"state": "open",
"merged": false,
"html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25",
"head": {
"ref": "agent/agent/a64a969a6a44",
"sha": "291ff48e6f232637dc87806bb1431424686b819e"
},
"base": {
"ref": "main"
}
}
@@ -0,0 +1,14 @@
[
"calliope-backend/src/calliope/comfyui/fixed_document.py",
"calliope-backend/tests/test_seedvr2_video_fixed_document.py",
"e2e/run-seedvr2-video-document.py",
"docs/hel-892/seedvr2-video-document-evidence/build_definition.py",
"docs/hel-892/seedvr2-video-document-evidence/check_code.py",
"docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py",
"docs/hel-892/seedvr2-video-document-evidence/rebuild.py",
"docs/hel-892/seedvr2-video-document-evidence/recompute.py",
"docs/hel-892/seedvr2-video-document-evidence/render_report.py",
"docs/hel-892/seedvr2-video-document-evidence/repeat.py",
"docs/hel-892/seedvr2-video-document-evidence/request_counts.py",
"docs/hel-892/seedvr2-video-document-evidence/verify_sources.py"
]
@@ -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 = "291ff48e6f232637dc87806bb1431424686b819e"
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 31 blocks unchanged"))
if __name__ == "__main__":
main()
@@ -0,0 +1,2 @@
PASS exact sources, line ranges, tag/tree/blob and 47+2 inventory
PASS actual 291ff48 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 32 definitions, frozen boundaries, wheel/sdist
@@ -0,0 +1,2 @@
PASS exact sources, line ranges, tag/tree/blob and 47+2 inventory
PASS actual 291ff48 upgrade1/skip154, repeat155, rollback1, edits1/29cols, fresh155, 1217/3660/294, 32 definitions, frozen boundaries, wheel/sdist
@@ -0,0 +1,330 @@
"Actual 291ff48 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()
from verify_sources import main as verify_sources
verify_sources()
rebuilt, previous = build_all()
assert rebuilt == json.loads((REPO / RESOURCE).read_bytes())
old_blocks = {
p: r["fixed_version_document"] for p, r in previous.items() if "fixed_version_document" in r
}
assert len(old_blocks) == 31
assert all(rebuilt[p]["fixed_version_document"] == b for p, b in old_blocks.items())
assert sum(len(b["fields"]) for b in old_blocks.values()) == 941
for p, d in DEFINITIONS.items():
assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d
write(
"review-delta.json",
dict(
base=BASE,
changed_paths=PATHS,
other_reviews_unchanged=155,
old_blocks_unchanged=31,
old_saved=941,
old_notes=22,
new_saved=47,
new_notes=2,
total_documents=32,
total_saved=988,
total_notes=24,
),
)
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=47,
new_notes=2,
old_saved=941,
old_notes=22,
overviews=32,
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_thirty_one_blocks_unchanged=True,
drawer_css_unchanged=True,
drawer_whole_file_unchanged=True,
drawer_sha256=hashlib.sha256(drawer_bytes).hexdigest(),
conversion_rerun=False,
profiles_28_candidates_9_diffs_6="unchanged",
),
)
tracked = (
subprocess.check_output(["git", "ls-tree", "-rz", "--name-only", BASE], cwd=REPO)
.decode()
.rstrip("\0")
.split("\0")
)
frozen = [
p
for p in tracked
if p.startswith(("example_ComfyUI_workflows/", "docs/hel-892/supplied-api/"))
or p.startswith("calliope-backend/src/calliope/comfyui/")
and p not in [RESOURCE, ("calliope-backend/src/calliope/comfyui/fixed_document.py")]
]
for p in frozen:
assert (REPO / p).read_bytes() == subprocess.check_output(
["git", "show", f"{BASE}:{p}"], cwd=REPO
)
write(
"frozen-resource-check.json",
dict(
base=BASE,
files=[
dict(path=p, sha256=hashlib.sha256((REPO / p).read_bytes()).hexdigest())
for p in frozen
],
original_files=sum(p.startswith("example_ComfyUI_workflows/") for p in frozen),
all_unchanged=True,
),
)
packages = []
with zipfile.ZipFile(wheels) as w, tarfile.open(sdists) as s:
for name in ["fixed_document.py", "source_reviews.json", "library.py"]:
raw = (REPO / "calliope-backend/src/calliope/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=32,
)
)
write("package-check.json", packages)
print(
"PASS actual 291ff48 upgrade1/skip154, repe"
"at155, rollback1, edits1/29cols, fresh155,"
" 1217/3660/294, 32 definitions, frozen bou"
"ndaries, wheel/sdist"
)
if __name__ == "__main__":
main()
@@ -0,0 +1,112 @@
"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 = [
"# SeedVR2视频放大固定参考中文说明",
"",
"新增47保存位置+2完整Note;旧31图941位置+22注释逐对象不变,现32图988+24仅参考。155定稿0/实跑0/新增转换0。",
"",
(
"来源local_file以docs/hel-892/seedvr2-video-document"
"-evidence为基准;源SHA/全图摘要/定义摘要绑定;不加载上游代码、媒体或链接。"
),
"",
]
index = []
for i in range(1):
b = json.loads((OUT / f"definition-{i}.json").read_bytes())
lines += [
"## " + Path(b["source_path"]).stem,
"",
b["user_overview"],
"",
b["notice"],
"",
"源路径:`" + b["source_path"] + "`",
"",
"SHA1:" + b["source_sha1"],
"",
"原字节SHA256:" + b["source_sha256"],
"",
"规范全图SHA256:" + b["canonical_sha256"],
"",
*[v + "\n" for v in b["versions"]],
"### 具体连线与处理条件",
"",
*[v + "\n" for v in b["flow"]],
"### 使用与核对",
"",
*[v + "\n" for v in b["steps"]],
"### 逐保存位置说明",
"",
]
for j, f in enumerate(b["fields"], 1):
lines += [
f"#### {j}. 节点{f['node_id']} · {f['label']}({f['field']})",
"",
f["effect"],
"",
"```json",
json.dumps(f["value"], ensure_ascii=False, indent=2),
"```",
"",
f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。",
"",
"源保存位置:`" + f["pointer"] + "`;源输入口:`" + f["input_pointer"] + "`",
"",
"定义默认:" + f["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 / "SeedVR2视频放大固定参考中文说明.md").write_text("\n".join(lines).rstrip() + "\n")
(OUT / "fixed-source-index.json").write_text(
json.dumps(index, ensure_ascii=False, indent=2) + "\n"
)
if __name__ == "__main__":
main()
@@ -0,0 +1 @@
PASS deterministic definitions and rendered artifacts: zero difference
@@ -0,0 +1,42 @@
"Compare deterministic definitions and rendered artifacts without repeating unrelated tests."
import hashlib
import json
from build_definition import OUT, REPO, canonical
from rebuild import RESOURCE, build_all
from render_report import main as render
def main():
a, old = build_all()
b, previous = build_all()
assert a == b and old == previous
assert a == json.loads((REPO / RESOURCE).read_bytes())
render()
paths = [
OUT / "fixed-source-index.json",
OUT.parent / "SeedVR2视频放大固定参考中文说明.md",
]
before = {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
render()
assert before == {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
(OUT / "repeatability.json").write_text(
json.dumps(
dict(
definitions=32,
repeated_build_equal=True,
repeated_render_equal=True,
resource_sha256=hashlib.sha256(canonical(a)).hexdigest(),
artifacts=before,
),
ensure_ascii=False,
indent=2,
)
+ "\n"
)
print(("PASS deterministic definitions and rendered artifacts: zero difference"))
if __name__ == "__main__":
main()
@@ -0,0 +1,10 @@
{
"definitions": 32,
"repeated_build_equal": true,
"repeated_render_equal": true,
"resource_sha256": "f6492446648516d0fd04b74693c8470b562f3d66895d8f25373ab527b8d85d92",
"artifacts": {
"fixed-source-index.json": "85628b8088c584f9717d7441fee1c4f632da361b96fa22d6e78504bfb623dde7",
"SeedVR2视频放大固定参考中文说明.md": "003b7c30d59468a8e8099606cac3d6f60136d278bef8d8515f98bb7d4ec5db48"
}
}
@@ -0,0 +1 @@
{"total": 114, "fixed_count": 104, "polling_count": 10, "paths": {"/api/workflows": 3, "/api/workflows/29": 4, "/api/workflows/28": 4, "/api/workflows/27": 3, "/api/workflows/26": 3, "/api/workflows/17": 3, "/api/workflows/4": 3, "/api/workflows/15": 3, "/api/workflows/11": 3, "/api/workflows/3": 3, "/api/workflows/9": 3, "/api/workflows/16": 3, "/api/workflows/10": 3, "/api/workflows/23": 3, "/api/workflows/8": 3, "/api/workflows/22": 3, "/api/workflows/5": 3, "/api/workflows/6": 3, "/api/workflows/7": 3, "/api/workflows/19": 3, "/api/workflows/13": 3, "/api/workflows/12": 3, "/api/workflows/64": 3, "/api/workflows/62": 3, "/api/workflows/70": 3, "/api/workflows/1": 3, "/api/workflows/36": 3, "/api/workflows/35": 3, "/api/workflows/2": 3, "/api/workflows/25": 3, "/api/workflows/24": 3, "/api/workflows/21": 3, "/api/workflows/14": 3, "/api/jobs": 10, "/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": "291ff48e6f232637dc87806bb1431424686b819e",
"changed_paths": [
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json"
],
"other_reviews_unchanged": 155,
"old_blocks_unchanged": 31,
"old_saved": 941,
"old_notes": 22,
"new_saved": 47,
"new_notes": 2,
"total_documents": 32,
"total_saved": 988,
"total_notes": 24
}
@@ -0,0 +1,46 @@
{
"total": 114,
"fixed_count": 104,
"polling_count": 10,
"paths": {
"/api/workflows": 3,
"/api/workflows/29": 4,
"/api/workflows/28": 4,
"/api/workflows/27": 3,
"/api/workflows/26": 3,
"/api/workflows/17": 3,
"/api/workflows/4": 3,
"/api/workflows/15": 3,
"/api/workflows/11": 3,
"/api/workflows/3": 3,
"/api/workflows/9": 3,
"/api/workflows/16": 3,
"/api/workflows/10": 3,
"/api/workflows/23": 3,
"/api/workflows/8": 3,
"/api/workflows/22": 3,
"/api/workflows/5": 3,
"/api/workflows/6": 3,
"/api/workflows/7": 3,
"/api/workflows/19": 3,
"/api/workflows/13": 3,
"/api/workflows/12": 3,
"/api/workflows/64": 3,
"/api/workflows/62": 3,
"/api/workflows/70": 3,
"/api/workflows/1": 3,
"/api/workflows/36": 3,
"/api/workflows/35": 3,
"/api/workflows/2": 3,
"/api/workflows/25": 3,
"/api/workflows/24": 3,
"/api/workflows/21": 3,
"/api/workflows/14": 3,
"/api/jobs": 10,
"/api/settings": 1,
"/api/workflows/156": 1,
"/api/workflows/157": 1
},
"readiness_included": 1,
"reason": "就绪GET单列1;浏览记录含Node直连及Playwright本地拦截的GET,服务日志只含真正到后端者,不机械等同。轮询可随计时边界±1,禁止请求始终零容忍。"
}
@@ -0,0 +1,123 @@
INFO: Started server process [741476]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8247 (Press CTRL+C to quit)
{'counts': {'skipped': 154, 'updated': 1, 'user_excluded': 1}, 'states': {'pending_check': 16, 'needs_conversion': 139}}
INFO: 127.0.0.1:59600 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/29 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/28 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/27 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/26 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/17 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/4 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/15 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/11 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59606 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:59602 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40478 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:40474 - "GET /api/settings HTTP/1.1" 200 OK
INFO: 127.0.0.1:40484 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:40498 - "GET /api/workflows/29 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40504 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:40510 - "GET /api/workflows/28 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40522 - "GET /api/workflows/27 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40532 - "GET /api/workflows/26 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40548 - "GET /api/workflows/17 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40554 - "GET /api/workflows/4 HTTP/1.1" 200 OK
INFO: 127.0.0.1:40568 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:40576 - "GET /api/workflows/15 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50202 - "GET /api/workflows/11 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50212 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50226 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:50234 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50242 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50256 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50264 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50280 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50284 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50288 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50298 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50308 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50310 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50314 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50322 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50336 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50338 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50340 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50350 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50352 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50360 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50376 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50380 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50384 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:50398 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50400 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50414 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50418 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:50432 - "GET /api/workflows/29 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34196 - "GET /api/workflows/28 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34210 - "GET /api/workflows/27 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34214 - "GET /api/workflows/26 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34220 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:34236 - "GET /api/workflows/17 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34242 - "GET /api/workflows/4 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34246 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:34256 - "GET /api/workflows/15 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34268 - "GET /api/workflows/11 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34274 - "GET /api/workflows/3 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34288 - "GET /api/workflows/9 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58676 - "GET /api/workflows/16 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58680 - "GET /api/workflows/10 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58688 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58694 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58702 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58710 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58726 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58734 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58736 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58752 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58754 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58760 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58768 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58770 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58786 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58800 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58810 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58820 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:58830 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58834 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58850 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58864 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:58876 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58892 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58908 - "GET /api/workflows/156 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58922 - "GET /api/workflows/157 HTTP/1.1" 200 OK
INFO: 127.0.0.1:58932 - "GET /api/workflows/28 HTTP/1.1" 200 OK
INFO: 127.0.0.1:39784 - "GET /api/workflows/29 HTTP/1.1" 200 OK
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [741476]
@@ -0,0 +1,4 @@
VITE v6.4.3 ready in 278 ms
➜ Local: http://127.0.0.1:5173/
@@ -0,0 +1 @@
{"ports_released": [8247, 5173], "child_exit_codes": [-15, 143]}
@@ -0,0 +1,13 @@
{
"all_pass": true,
"commits": {
"core": "bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
"frontend": "7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
"video": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5"
},
"citations": 40,
"git_texts": 20,
"local_file_base": "docs/hel-892/seedvr2-video-document-evidence",
"inherited_seedvr_investigation": "seedvr2-document-evidence/source-check.json; bounded 0.27.0, no new global absence claim",
"upstream_executed": false
}
@@ -0,0 +1,234 @@
[
{
"path": "calliope-backend/pyproject.toml",
"sha256": "09d829a2c42a4819e13d9584a4ba532ede873a582590cdc3e655028e1f3fe4a0"
},
{
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
"sha256": "5fc9f4a8a94ad9df400c44617f5ade2a2a44e73e8cd7bf9de9787b35dab45444"
},
{
"path": "calliope-backend/src/calliope/comfyui/library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c"
},
{
"path": "calliope-backend/src/calliope/comfyui/library_cli.py",
"sha256": "04bfa8cfbe3f9378e78594958973118ec95aa1ff0bcdbdf4da0311abbdbcd380"
},
{
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
"sha256": "579282f9ee96332584e6b4e4b73dc4783208747991f740c8a1d855804114b000"
},
{
"path": "calliope-backend/src/calliope/comfyui/source_reviews.py",
"sha256": "b85e26f1e4fce77f75429b7bc0653401065b2cd28151bdf5d9edc87c096e9419"
},
{
"path": "calliope-backend/tests/test_seedvr2_video_fixed_document.py",
"sha256": "70f5541daf08a53ccda7179fc792c9a57b3217854b8832464494d0bb33abbd39"
},
{
"path": "calliope-backend/tests/test_workflow_library.py",
"sha256": "e8dc9acd466cad8f057770962e7830cb2b56a4a6bc534bd581f1e19f514dc057"
},
{
"path": "calliope-backend/uv.lock",
"sha256": "04950ca1719bb95d0c9ee94456a508a4a197af58db2e0a78bdcfe5a633345ad2"
},
{
"path": "calliope-web/package-lock.json",
"sha256": "e91b2f5e18f8cbc7edc31d17e316be3035a307d94d7e765f33ac1c13f6ef256f"
},
{
"path": "calliope-web/package.json",
"sha256": "8993777b5c2b578129dce004e7c4e689a69838156e3094668c15701acbb38fb6"
},
{
"path": "calliope-web/src/lib/components/WorkflowDocumentDrawer.svelte",
"sha256": "3e3c7602bae3a031e7fb1c38792f8ba5a1f37172e7b8850d304502ea1be010c1"
},
{
"path": "docs/hel-892/seedvr2-document-evidence/build_definition.py",
"sha256": "a6afd8cd4e6abda6115781f9cff629f0d14202fea6b39b91dbd16ad916f3d47b"
},
{
"path": "docs/hel-892/seedvr2-reference/core-tag.json",
"sha256": "c3bf0d1f3f6fcea0b54d87d369f979b17141ccbbbb4d14f5fbfa9dac5a8888eb"
},
{
"path": "docs/hel-892/seedvr2-reference/core-tree.json",
"sha256": "0dc2446485c88dacb3570811cd980afbe221a2195a47dcff6f2d99a61f1964a1"
},
{
"path": "docs/hel-892/seedvr2-reference/core__LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"path": "docs/hel-892/seedvr2-reference/core__comfy__samplers.py",
"sha256": "d882256ae9baa1d23f1367ab2ec3b021fdc15fe39ce4cb49ea2c1ee10026a649"
},
{
"path": "docs/hel-892/seedvr2-reference/core__comfy_extras__nodes_post_processing.py",
"sha256": "96ec39e8d0e9fe9a70b332f97f994d507e1fa223a26699a3c9c9fbeedacf6575"
},
{
"path": "docs/hel-892/seedvr2-reference/core__comfy_extras__nodes_seed.py",
"sha256": "f1566b448ca9e4b4a1cbd15767301635905cf36a44a17f586c18b848e23e5932"
},
{
"path": "docs/hel-892/seedvr2-reference/core__nodes.py",
"sha256": "b8dfdde1de8975be762b085048143cc2dda8fc9202695e460ecc2c8dfe44bc4b"
},
{
"path": "docs/hel-892/seedvr2-reference/frontend-tag.json",
"sha256": "19e013a55c5289946fd8f5387b48ae1c8e858082717b94258d1273b725e7aeef"
},
{
"path": "docs/hel-892/seedvr2-reference/frontend-tree.json",
"sha256": "55db75185a80084619cd6577d99f866fd8d8f1a623cc50d26bfcd7d0d3dbfbc2"
},
{
"path": "docs/hel-892/seedvr2-reference/frontend__LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"path": "docs/hel-892/seedvr2-reference/frontend__src__core__graph__widgets__dynamicWidgets.ts",
"sha256": "cbc7d1a9eccb1c64f90cf2f87db9ad3ba9a301d81ec3f8daea2af48e2ccb8e32"
},
{
"path": "docs/hel-892/seedvr2-reference/frontend__src__extensions__core__uploadImage.ts",
"sha256": "48d062c2ee95bd77c537c539e6c8f8bc03bd71dcec94c5b82487c014ea3e9c06"
},
{
"path": "docs/hel-892/seedvr2-reference/frontend__src__lib__litegraph__src__LGraphNode.ts",
"sha256": "d7c22582f6a0a5c05521d8b848a04a21e0d6df3339401be746b252b8d0ac5588"
},
{
"path": "docs/hel-892/seedvr2-reference/frontend__src__lib__litegraph__src__subgraph__SubgraphNode.ts",
"sha256": "bc0436dc3e21ccfa6f1dccf40935c0d0b97b607932f7025b975a4138efe1e24e"
},
{
"path": "docs/hel-892/seedvr2-reference/frontend__src__scripts__app.ts",
"sha256": "6a0fd5cc4da6aad850ac05d312a22fd2f545fd296735ed7b927b62d7a564c08e"
},
{
"path": "docs/hel-892/seedvr2-reference/frontend__src__scripts__widgets.ts",
"sha256": "2afe2e069a0e163d36b892a7d46e3074d087f48faeef240610b6e4d55c6fba5c"
},
{
"path": "docs/hel-892/seedvr2-reference/rgthree-tree.json",
"sha256": "fee075750e09eed5ea8498c4baf8dd58242a035d977bdd1550726bd86808e647"
},
{
"path": "docs/hel-892/seedvr2-reference/sources.json",
"sha256": "8b30c5e127ad164e8eb521e8893eb75c2b67f886acfbb8da8887345eb2cbec2b"
},
{
"path": "docs/hel-892/seedvr2-video-document-evidence/build_definition.py",
"sha256": "868849d67ac0d5833d20eee8f5dbd5803f5efa2b71018eca3f78956ec9ce9226"
},
{
"path": "docs/hel-892/seedvr2-video-document-evidence/check_code.py",
"sha256": "386ac6d775c445a6a9d33473ae10229ebf32c0ea98c0047f1fcfbe08581a0e75"
},
{
"path": "docs/hel-892/seedvr2-video-document-evidence/fetch_sources.py",
"sha256": "89a98e90ca5f492f730cdd1f1a56f9fda19eab9f52a568def2fa7b54559f4082"
},
{
"path": "docs/hel-892/seedvr2-video-document-evidence/rebuild.py",
"sha256": "94a12faf35e5c1bfeea40fe08993e161ee23c4299e4ca56997e74cb3ba3f5aac"
},
{
"path": "docs/hel-892/seedvr2-video-document-evidence/recompute.py",
"sha256": "263c04e0550fa5b710f002cdbf2e6c95ba46311a54724242202e2bc1e45f79f5"
},
{
"path": "docs/hel-892/seedvr2-video-document-evidence/render_report.py",
"sha256": "57a175210a9269503b7c7c20e4895ad65fffc3ec7610890cd2d93b034218b36f"
},
{
"path": "docs/hel-892/seedvr2-video-document-evidence/repeat.py",
"sha256": "5cdd23c33c81dd465a342032b9741f9fec3a7a053bb10d129a67093fb2b5cdea"
},
{
"path": "docs/hel-892/seedvr2-video-document-evidence/request_counts.py",
"sha256": "982d4859e01e9a3e3ef9746fc8b7f447b4ea63fbdf414f13de3bbaaaedd2d58f"
},
{
"path": "docs/hel-892/seedvr2-video-document-evidence/verify_sources.py",
"sha256": "ddb2d5feb4ef81c90eba9702b55fda27dd673bfc26f0979d42f2f74e973b58ab"
},
{
"path": "docs/hel-892/seedvr2-video-reference/sources.json",
"sha256": "65f502c64575cba5dd97a234e7f2364c1bedb5aaecd9b61149c667a9c3954c4d"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video-tag.json",
"sha256": "16f5f942de1663af57aa02fa51de579c40e56663865ef68106acf162e085f8c0"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video-tree.json",
"sha256": "0193355b651373b15c4b5b75dfedd4a0061b754927a6b61f6a9dadd26e39b61f"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__LICENSE",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__comfy_api__input__video_types.py",
"sha256": "76ef537120fdab8077412ff1cb3c5739f3748dd818fa6bbc07829af5001b20d7"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__comfy_api__input_impl__video_types.py",
"sha256": "27c2f86c4c5407f93d7dfe3b38c78eab968c0c38fb6617c21c7e531912c9ee6d"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__comfy_api__latest___input__video_types.py",
"sha256": "6cba96f1f254094436de6c3e64c0a7b469e7cbaf3578c234c18eea88cf93926d"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__comfy_api__latest___input_impl__video_types.py",
"sha256": "b74216bc76178e9a21769e60cf4fd910183a19236cfa7fb352e74f2b13e482e2"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__comfy_api__latest___io.py",
"sha256": "ac986092cace7600461b8547e21f770126958d8c15eef59d79d6709cca4b7717"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__comfy_api__latest___ui.py",
"sha256": "842ac7eeb8484fbd1746436daf4368b002e2268ff4aafd4d4682a5b24c6ba794"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__comfy_api__latest___util__video_types.py",
"sha256": "5d2f7dd2b82aecec3c05f8f5bd9519530736825d33590207ea0aa32b8cc8627f"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__comfy_extras__nodes_logic.py",
"sha256": "2cb1ce149ce616c0b12a67962ed7b799eb398fbcdeb20dcec4c5210eb6af6df1"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__comfy_extras__nodes_video.py",
"sha256": "421dcb63c0159c14c68d4cfbfd7403f43871e2e84d6336803467bd806f8a2aa1"
},
{
"path": "docs/hel-892/seedvr2-video-reference/video__nodes.py",
"sha256": "aecd111cf3f1ccf5a5ca6b4293d47dfe236f9a717e5190cbb6a66a03afb8d009"
},
{
"path": "e2e/run-seedvr2-video-document.py",
"sha256": "269925f16ac6742823137a41880767e6b5b5c9d7bbf506728bebc2f78ab9cd9e"
},
{
"path": "e2e/seedvr2-video-document.mjs",
"sha256": "76838705eba2d6df4aae5151f856c0d5a4abd0e5ec348dde7ac92ac61a4ed153"
},
{
"path": "e2e/workflow-document-server.py",
"sha256": "539c54c1eafe6644cba117cf5550af918c97b48aef4b29d2c6378881204742e2"
},
{
"path": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/高清放大/Seedvr2_3b_int8_视频放大.json",
"sha256": "06c427c688c13b87ed5724ac6b1ed432c31f8ea6c44212b3e7596b94128619da"
}
]
@@ -0,0 +1,17 @@
# Run from repo root. Existing locked dependencies only; no upstream code execution, GPU/media/target requests.
PYTHONDONTWRITEBYTECODE=1 uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline
npm ci --prefix calliope-web --ignore-scripts --offline
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/seedvr2-video-document-evidence/verify_sources.py
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/seedvr2-video-document-evidence/rebuild.py
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline pytest calliope-backend/tests/test_seedvr2_video_fixed_document.py calliope-backend/tests/test_workflow_library.py -q
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/seedvr2-video-document-evidence/check_code.py
PYTHONDONTWRITEBYTECODE=1 uv build --project calliope-backend --offline
PYTHONDONTWRITEBYTECODE=1 uv run --project calliope-backend --offline python docs/hel-892/seedvr2-video-document-evidence/recompute.py
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/seedvr2-video-document-evidence/repeat.py
PYTHONDONTWRITEBYTECODE=1 LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-seedvr2-video-document.py
# Browser foreground completes, finally stops both owned services and verifies 8247/5173 are released.
# Copy browser-results.json/service-stop.json/service-0.log (rename .txt) from .local-evidence/seedvr2-video-document/browser to this evidence dir.
PYTHONDONTWRITEBYTECODE=1 python3 docs/hel-892/seedvr2-video-document-evidence/request_counts.py
# Optional exact static text refetch: fetch_sources.py (Git metadata + bounded text only). No URL in source Note is executed.
# Source local_file base: docs/hel-892/seedvr2-video-document-evidence.
# Old code baseline: 291ff48e6f232637dc87806bb1431424686b819e. Examples: source-check.json, review-delta.json, import-protection.json, package-check.json, repeatability.json, actual-Seedvr2_3b_int8_视频放大.json.
@@ -0,0 +1,64 @@
"""Verify exact Git blob/tag/tree, line ranges and original graph inventory offline."""
import hashlib
import json
from build_definition import OUT, REPO, build
def main():
b = build()
roots = {}
for e in b["sources"]:
root = (OUT / e["local_file"]).parent
raw = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
tree = json.loads((root / (e["id"] + "-tree.json")).read_bytes())
assert not tree["truncated"] and tree["sha"] == e["commit"]
assert (
hashlib.sha1(b"blob " + str(len(raw)).encode() + b"\0" + raw).hexdigest()
== e["git_blob_sha1"]
== next(x["sha"] for x in tree["tree"] if x["path"] == e["file"])
)
assert 1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
tag = json.loads((root / (e["id"] + "-tag.json")).read_bytes())
assert tag["object"]["type"] == "commit" and tag["object"]["sha"] == e["commit"]
roots[e["id"]] = e["commit"]
assert roots == dict(
core="bb131be9e83d2f773c90f1d6f1e4b248a498c8c5",
frontend="7bd9f8b0d0b854ccb5a947623468f36a392ea0ff",
video="87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
)
g = json.loads((REPO / b["source_path"]).read_bytes())
sub = g["definitions"]["subgraphs"][0]
assert (
len(g["nodes"]) == 5
and len(g["links"]) == 2
and len(sub["nodes"]) == 13
and len(sub["links"]) == 34
)
assert len(b["fields"]) == 47 and len(b["comments"]) == 2
(OUT / "source-check.json").write_text(
json.dumps(
dict(
all_pass=True,
commits=roots,
citations=len(b["sources"]),
git_texts=len({e["local_file"] for e in b["sources"]}),
local_file_base=str(OUT.relative_to(REPO)),
inherited_seedvr_investigation=(
"seedvr2-document-evidence/source"
"-check.json; bounded 0.27.0, no "
"new global absence claim"
),
upstream_executed=False,
),
indent=2,
)
+ "\n"
)
print("PASS exact sources, line ranges, tag/tree/blob and 47+2 inventory")
if __name__ == "__main__":
main()
@@ -0,0 +1,8 @@
逐张实际目验代表截图(截图只通过附件交付,未加仓库):
1440-29-default.png:用途及限制优先,技术默认折叠,停用/未检查/未定稿可见。
390-29-default.png:窄屏用途换行正常、底部关闭可达,无横溢。
1440-29-branch-flow.png:真/假分支与悬空76说明可读、技术折叠展开无溢出。
1440-29-66-vae_name.png:宿主/内部VAE名差异、原值、默认/单位/限制、来源行号和摘要可读。
390-29-78-note.png:第一Note全文原样保留,长URL/树形目录换行;部分装饰字符因本地字体缺字,原码点不变。
390-29-82-note.png:第二Note全文与参数/短段建议原文保留,长URL换行,无横溢。
两Note中文解释另在技术flow及实际固定块comments可读;没有改变Drawer或下载字体。程序逐字验证两Note而非只看截图。
@@ -0,0 +1,103 @@
{
"sources": [
{
"id": "video",
"file": "comfy_extras/nodes_video.py",
"local_file": "video__comfy_extras__nodes_video.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_extras/nodes_video.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "421dcb63c0159c14c68d4cfbfd7403f43871e2e84d6336803467bd806f8a2aa1",
"git_blob_sha1": "3bfd00be4f5119e901d6e75a0cff35ec7ccde13c"
},
{
"id": "video",
"file": "comfy_extras/nodes_logic.py",
"local_file": "video__comfy_extras__nodes_logic.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_extras/nodes_logic.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "2cb1ce149ce616c0b12a67962ed7b799eb398fbcdeb20dcec4c5210eb6af6df1",
"git_blob_sha1": "13c1685f7d8ba95d9d5ab640f8249e0f895889d5"
},
{
"id": "video",
"file": "comfy_api/input_impl/video_types.py",
"local_file": "video__comfy_api__input_impl__video_types.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/input_impl/video_types.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "27c2f86c4c5407f93d7dfe3b38c78eab968c0c38fb6617c21c7e531912c9ee6d",
"git_blob_sha1": "bd2e56ad51a2fa2340e63409b9038de463af3b2d"
},
{
"id": "video",
"file": "comfy_api/input/video_types.py",
"local_file": "video__comfy_api__input__video_types.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/input/video_types.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "76ef537120fdab8077412ff1cb3c5739f3748dd818fa6bbc07829af5001b20d7",
"git_blob_sha1": "9ace78cbc039eb0de063ea1ec080134a2b44cac6"
},
{
"id": "video",
"file": "comfy_api/latest/_io.py",
"local_file": "video__comfy_api__latest___io.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_io.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "ac986092cace7600461b8547e21f770126958d8c15eef59d79d6709cca4b7717",
"git_blob_sha1": "58e49d8e2d29b1c07489576263ea84ac0fd67895"
},
{
"id": "video",
"file": "comfy_api/latest/_ui.py",
"local_file": "video__comfy_api__latest___ui.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_ui.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "842ac7eeb8484fbd1746436daf4368b002e2268ff4aafd4d4682a5b24c6ba794",
"git_blob_sha1": "b48713d4108634b6a6887694844fbcb248cb26a1"
},
{
"id": "video",
"file": "nodes.py",
"local_file": "video__nodes.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/nodes.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "aecd111cf3f1ccf5a5ca6b4293d47dfe236f9a717e5190cbb6a66a03afb8d009",
"git_blob_sha1": "883258bd157d0867eca70cf4e694f57a8d870c93"
},
{
"id": "video",
"file": "LICENSE",
"local_file": "video__LICENSE",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/LICENSE",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7"
},
{
"id": "video",
"file": "comfy_api/latest/_input_impl/video_types.py",
"local_file": "video__comfy_api__latest___input_impl__video_types.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_input_impl/video_types.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "b74216bc76178e9a21769e60cf4fd910183a19236cfa7fb352e74f2b13e482e2",
"git_blob_sha1": "bc95a5b9933fb0730bcac0d619181ebe74f4e4d6"
},
{
"id": "video",
"file": "comfy_api/latest/_input/video_types.py",
"local_file": "video__comfy_api__latest___input__video_types.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_input/video_types.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "6cba96f1f254094436de6c3e64c0a7b469e7cbaf3578c234c18eea88cf93926d",
"git_blob_sha1": "e2e99521fa4f2dc70e1a4d1299176dcbc78ba77b"
},
{
"id": "video",
"file": "comfy_api/latest/_util/video_types.py",
"local_file": "video__comfy_api__latest___util__video_types.py",
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/87a003e0c975b8f13e2d4067dd0710e56edd7ba5/comfy_api/latest/_util/video_types.py",
"commit": "87a003e0c975b8f13e2d4067dd0710e56edd7ba5",
"sha256": "5d2f7dd2b82aecec3c05f8f5bd9519530736825d33590207ea0aa32b8cc8627f",
"git_blob_sha1": "6c9d6a526251bf1040ef41bc3bb8a60f8be2c7b1"
}
]
}
@@ -0,0 +1 @@
{"ref":"refs/tags/v0.28.1","node_id":"REF_kwDOIygeJrFyZWZzL3RhZ3MvdjAuMjguMQ","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/refs/tags/v0.28.1","object":{"sha":"87a003e0c975b8f13e2d4067dd0710e56edd7ba5","type":"commit","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/87a003e0c975b8f13e2d4067dd0710e56edd7ba5"}}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
@@ -0,0 +1,6 @@
# This file only exists for backwards compatibility.
from comfy_api.latest._input.video_types import VideoInput
__all__ = [
"VideoInput",
]
@@ -0,0 +1,2 @@
# This file only exists for backwards compatibility.
from comfy_api.latest._input_impl.video_types import * # noqa: F403
@@ -0,0 +1,145 @@
from __future__ import annotations
from abc import ABC, abstractmethod
from fractions import Fraction
from typing import Optional, Union, IO
import io
import av
from .._util import VideoContainer, VideoCodec, VideoComponents
class VideoInput(ABC):
"""
Abstract base class for video input types.
"""
@abstractmethod
def get_components(self) -> VideoComponents:
"""
Abstract method to get the video components (images, audio, and frame rate).
Returns:
VideoComponents containing images, audio, and frame rate
"""
pass
@abstractmethod
def save_to(
self,
path: Union[str, IO[bytes]],
format: VideoContainer = VideoContainer.AUTO,
codec: VideoCodec = VideoCodec.AUTO,
metadata: Optional[dict] = None,
bit_depth: int | None = None,
):
"""
Abstract method to save the video input to a file.
bit_depth selects the encoded bit depth; None keeps the video's native depth.
"""
pass
@abstractmethod
def as_trimmed(
self,
start_time: float | None = None,
duration: float | None = None,
strict_duration: bool = False,
) -> VideoInput | None:
"""
Create a new VideoInput which is trimmed to have the corresponding start_time and duration
Returns:
A new VideoInput, or None if the result would have negative duration
"""
pass
def get_stream_source(self) -> Union[str, io.BytesIO]:
"""
Get a streamable source for the video. This allows processing without
loading the entire video into memory.
Returns:
Either a file path (str) or a BytesIO object that can be opened with av.
Default implementation creates a BytesIO buffer, but subclasses should
override this for better performance when possible.
"""
buffer = io.BytesIO()
self.save_to(buffer)
buffer.seek(0)
return buffer
def get_active_trim_window(self) -> tuple[float, float]:
"""Return the active trim as ``(start_time, duration)`` in seconds (start_time normalized
to ``>= 0``; ``duration == 0`` means "until the end"). Default: no trim; trimmable subclasses override.
"""
return 0.0, 0.0
# Provide a default implementation, but subclasses can provide optimized versions
# if possible.
def get_dimensions(self) -> tuple[int, int]:
"""
Returns the dimensions of the video input.
Returns:
Tuple of (width, height)
"""
components = self.get_components()
return components.images.shape[2], components.images.shape[1]
def get_bit_depth(self) -> int:
"""
Returns the bit depth of the video (e.g. 8 or 10).
Default implementation returns 8; subclasses report their real depth.
"""
return 8
def get_duration(self) -> float:
"""
Returns the duration of the video in seconds.
Returns:
Duration in seconds
"""
components = self.get_components()
frame_count = components.images.shape[0]
return float(frame_count / components.frame_rate)
def get_frame_count(self) -> int:
"""
Returns the number of frames in the video.
Default implementation uses :meth:`get_components`, which may require
loading all frames into memory. File-based implementations should
override this method and use container/stream metadata instead.
Returns:
Total number of frames as an integer.
"""
return int(self.get_components().images.shape[0])
def get_frame_rate(self) -> Fraction:
"""
Returns the frame rate of the video.
Default implementation materializes the video into memory via
`get_components()`. Subclasses that can inspect the underlying
container (e.g. `VideoFromFile`) should override this with a more
efficient implementation.
Returns:
Frame rate as a Fraction.
"""
return self.get_components().frame_rate
def get_container_format(self) -> str:
"""
Returns the container format of the video (e.g., 'mp4', 'mov', 'avi').
Returns:
Container format as string
"""
# Default implementation - subclasses should override for better performance
source = self.get_stream_source()
with av.open(source, mode="r") as container:
return container.format.name
@@ -0,0 +1,604 @@
from av.container import InputContainer
from av.subtitles.stream import SubtitleStream
from fractions import Fraction
from typing import Optional
from .._input import AudioInput, VideoInput
import av
import io
import itertools
import json
import numpy as np
import math
import torch
from .._util import VideoContainer, VideoCodec, VideoComponents
import logging
def container_to_output_format(container_format: str | None) -> str | None:
"""
A container's `format` may be a comma-separated list of formats.
E.g., iso container's `format` may be `mov,mp4,m4a,3gp,3g2,mj2`.
However, writing to a file/stream with `av.open` requires a single format,
or `None` to auto-detect.
"""
if not container_format:
return None # Auto-detect
if "," not in container_format:
return container_format
formats = container_format.split(",")
return formats[0]
def get_open_write_kwargs(
dest: str | io.BytesIO, container_format: str, to_format: str | None
) -> dict:
"""Get kwargs for writing a `VideoFromFile` to a file/stream with `av.open`"""
open_kwargs = {
"mode": "w",
# If isobmff, preserve custom metadata tags (workflow, prompt, extra_pnginfo)
"options": {"movflags": "use_metadata_tags"},
}
is_write_to_buffer = isinstance(dest, io.BytesIO)
if is_write_to_buffer:
# Set output format explicitly, since it cannot be inferred from file extension
if to_format == VideoContainer.AUTO:
to_format = container_format.lower()
elif isinstance(to_format, str):
to_format = to_format.lower()
open_kwargs["format"] = container_to_output_format(to_format)
return open_kwargs
def video_stream_bit_depth(stream) -> int:
if stream is None or stream.format is None or not stream.format.components:
return 8
return max(component.bits for component in stream.format.components)
class VideoFromFile(VideoInput):
"""
Class representing video input from a file.
"""
def __init__(self, file: str | io.BytesIO, *, start_time: float=0, duration: float=0):
"""
Initialize the VideoFromFile object based off of either a path on disk or a BytesIO object
containing the file contents.
"""
self.__file = file
self.__start_time = start_time
self.__duration = duration
def get_stream_source(self) -> str | io.BytesIO:
"""
Return the underlying file source for efficient streaming.
This avoids unnecessary memory copies when the source is already a file path.
"""
if isinstance(self.__file, io.BytesIO):
self.__file.seek(0)
return self.__file
def get_active_trim_window(self) -> tuple[float, float]:
start_time = self.__start_time
if start_time < 0:
start_time = max(self._get_raw_duration() + start_time, 0.0)
return float(start_time), float(self.__duration)
def get_dimensions(self) -> tuple[int, int]:
"""
Returns the dimensions of the video input.
Returns:
Tuple of (width, height)
"""
if isinstance(self.__file, io.BytesIO):
self.__file.seek(0) # Reset the BytesIO object to the beginning
with av.open(self.__file, mode='r') as container:
for stream in container.streams:
if stream.type == 'video':
assert isinstance(stream, av.VideoStream)
return stream.width, stream.height
raise ValueError(f"No video stream found in file '{self.__file}'")
def get_bit_depth(self) -> int:
if isinstance(self.__file, io.BytesIO):
self.__file.seek(0) # Reset the BytesIO object to the beginning
with av.open(self.__file, mode="r") as container:
video_stream = container.streams.video[0] if len(container.streams.video) > 0 else None
return video_stream_bit_depth(video_stream)
def get_duration(self) -> float:
"""
Returns the duration of the video in seconds.
Returns:
Duration in seconds
"""
raw_duration = self._get_raw_duration()
if self.__start_time < 0:
duration_from_start = min(raw_duration, -self.__start_time)
else:
duration_from_start = raw_duration - self.__start_time
if self.__duration:
return min(self.__duration, duration_from_start)
return duration_from_start
def _get_raw_duration(self) -> float:
if isinstance(self.__file, io.BytesIO):
self.__file.seek(0)
with av.open(self.__file, mode="r") as container:
if container.duration is not None:
return float(container.duration / av.time_base)
# Fallback: calculate from frame count and frame rate
video_stream = next(
(s for s in container.streams if s.type == "video"), None
)
if video_stream and video_stream.frames and video_stream.average_rate:
return float(video_stream.frames / video_stream.average_rate)
# Last resort: decode frames to count them
if video_stream and video_stream.average_rate:
frame_count = 0
container.seek(0)
frame_iterator = (
container.decode(video_stream)
if video_stream.codec.capabilities & 0x100
else container.demux(video_stream)
)
for packet in frame_iterator:
frame_count += 1
if frame_count > 0:
return float(frame_count / video_stream.average_rate)
raise ValueError(f"Could not determine duration for file '{self.__file}'")
def get_frame_count(self) -> int:
"""
Returns the number of frames in the video without materializing them as
torch tensors.
"""
if isinstance(self.__file, io.BytesIO):
self.__file.seek(0)
with av.open(self.__file, mode="r") as container:
video_stream = self._get_first_video_stream(container)
# 1. Prefer the frames field if available and usable
if (
video_stream.frames
and video_stream.frames > 0
and not self.__start_time
and not self.__duration
):
return int(video_stream.frames)
# 2. Try to estimate from duration and average_rate using only metadata
if (
getattr(video_stream, "duration", None) is not None
and getattr(video_stream, "time_base", None) is not None
and video_stream.average_rate
):
raw_duration = float(video_stream.duration * video_stream.time_base)
if self.__start_time < 0:
duration_from_start = min(raw_duration, -self.__start_time)
else:
duration_from_start = raw_duration - self.__start_time
duration_seconds = min(self.__duration, duration_from_start)
estimated_frames = int(round(duration_seconds * float(video_stream.average_rate)))
if estimated_frames > 0:
return estimated_frames
# 3. Last resort: decode frames and count them (streaming)
if self.__start_time < 0:
start_time = max(self._get_raw_duration() + self.__start_time, 0)
else:
start_time = self.__start_time
frame_count = 1
start_pts = int(start_time / video_stream.time_base)
end_pts = int((start_time + self.__duration) / video_stream.time_base)
container.seek(start_pts, stream=video_stream)
frame_iterator = (
container.decode(video_stream)
if video_stream.codec.capabilities & 0x100
else container.demux(video_stream)
)
for frame in frame_iterator:
if frame.pts >= start_pts:
break
else:
raise ValueError(f"Could not determine frame count for file '{self.__file}'\nNo frames exist for start_time {self.__start_time}")
for frame in frame_iterator:
if frame.pts >= end_pts:
break
frame_count += 1
return frame_count
def get_frame_rate(self) -> Fraction:
"""
Returns the average frame rate of the video using container metadata
without decoding all frames.
"""
if isinstance(self.__file, io.BytesIO):
self.__file.seek(0)
with av.open(self.__file, mode="r") as container:
video_stream = self._get_first_video_stream(container)
# Preferred: use PyAV's average_rate (usually already a Fraction-like)
if video_stream.average_rate:
return Fraction(video_stream.average_rate)
# Fallback: estimate from frames + duration if available
if video_stream.frames and container.duration:
duration_seconds = float(container.duration / av.time_base)
if duration_seconds > 0:
return Fraction(video_stream.frames / duration_seconds).limit_denominator()
# Last resort: match get_components_internal default
return Fraction(1)
def get_container_format(self) -> str:
"""
Returns the container format of the video (e.g., 'mp4', 'mov', 'avi').
Returns:
Container format as string
"""
if isinstance(self.__file, io.BytesIO):
self.__file.seek(0)
with av.open(self.__file, mode='r') as container:
return container.format.name
def get_components_internal(self, container: InputContainer) -> VideoComponents:
video_stream = self._get_first_video_stream(container)
if self.__start_time < 0:
start_time = max(self._get_raw_duration() + self.__start_time, 0)
else:
start_time = self.__start_time
# Get video frames
frames = []
audio_frames = []
alphas = None
start_pts = int(start_time / video_stream.time_base)
end_pts = int((start_time + self.__duration) / video_stream.time_base)
if start_pts != 0:
container.seek(start_pts, stream=video_stream)
image_format = 'gbrpf32le'
process_image_format = lambda a: a
align_graph = None
audio = None
streams = [video_stream]
has_first_audio_frame = False
checked_alpha = False
# Default to False so we decode until EOF if duration is 0
video_done = False
audio_done = True
# Use the last decodable audio stream. Streams FFmpeg has no decoder for have no codec context,
# and decoding their packets crashes the process. (e.g. APAC spatial-audio track in iPhone)
audio_stream = next(
(s for s in reversed(container.streams.audio) if s.codec_context is not None),
None,
)
if audio_stream is not None:
streams += [audio_stream]
resampler = av.audio.resampler.AudioResampler(format='fltp')
audio_done = False
elif len(container.streams.audio):
logging.warning("No decodable audio stream found in video; ignoring audio.")
for packet in container.demux(*streams):
if video_done and audio_done:
break
if packet.stream.type == "video":
if video_done:
continue
try:
for frame in packet.decode():
if frame.pts < start_pts:
continue
if self.__duration and frame.pts >= end_pts:
video_done = True
break
if not checked_alpha:
alpha_channel = False
for comp in frame.format.components:
if comp.is_alpha or frame.format.name == "pal8":
alphas = []
alpha_channel = True
break
if frame.format.name in ("yuvj420p", "yuvj422p", "yuvj444p", "rgb24", "rgba", "pal8"):
process_image_format = lambda a: a.float() / 255.0
if alpha_channel:
image_format = 'rgba'
else:
image_format = 'rgb24'
else:
process_image_format = lambda a: a
if alpha_channel:
image_format = 'gbrapf32le'
else:
image_format = 'gbrpf32le'
checked_alpha = True
# Fix non-deterministic video decode when the video width is not a multiple of 32
# For non-yuvj pixel formats: most H.264/H.265 video and static images (e.g. lossy WebP via LoadImage)
# Pad both axes to a multiple of 32 and smear the border so the alignment padding never bleeds into the cropped edges
if image_format in ('gbrpf32le', 'gbrapf32le') and frame.width % 32 != 0:
if align_graph is None:
pad_w = ((frame.width + 31) // 32) * 32
pad_h = ((frame.height + 31) // 32) * 32
g = av.filter.Graph()
g_src = g.add_buffer(width=frame.width, height=frame.height,
format=frame.format.name, time_base=video_stream.time_base)
g_pad = g.add('pad', f'{pad_w}:{pad_h}:0:0')
g_fill = g.add('fillborders', f'left=0:right={pad_w - frame.width}:top=0:bottom={pad_h - frame.height}:mode=smear')
g_sink = g.add('buffersink')
g_src.link_to(g_pad)
g_pad.link_to(g_fill)
g_fill.link_to(g_sink)
g.configure()
align_graph = (g, g_src, g_sink)
align_graph[1].push(frame)
img = np.ascontiguousarray(align_graph[2].pull().to_ndarray(format=image_format)[:frame.height, :frame.width])
else:
img = frame.to_ndarray(format=image_format)
if frame.rotation != 0:
k = int(round(frame.rotation // 90))
img = np.rot90(img, k=k, axes=(0, 1)).copy()
if alphas is None:
frames.append(torch.from_numpy(img))
else:
frames.append(torch.from_numpy(img[..., :-1]))
alphas.append(torch.from_numpy(img[..., -1:]))
except av.error.InvalidDataError:
logging.info("pyav decode error")
elif packet.stream.type == "audio":
if audio_done:
continue
aframes = itertools.chain.from_iterable(
map(resampler.resample, packet.decode())
)
for frame in aframes:
if self.__duration and frame.time > start_time + self.__duration:
audio_done = True
break
if not has_first_audio_frame:
offset_seconds = start_time - frame.pts * audio_stream.time_base
to_skip = max(0, int(offset_seconds * audio_stream.sample_rate))
if to_skip < frame.samples:
has_first_audio_frame = True
audio_frames.append(frame.to_ndarray()[..., to_skip:])
else:
audio_frames.append(frame.to_ndarray())
images = process_image_format(torch.stack(frames)) if len(frames) > 0 else torch.zeros(0, 0, 0, 3)
if alphas is not None:
alphas = process_image_format(torch.stack(alphas)) if len(alphas) > 0 else torch.zeros(0, 0, 0, 1)
# Get frame rate
frame_rate = Fraction(video_stream.average_rate) if video_stream.average_rate else Fraction(1)
if len(audio_frames) > 0:
audio_data = np.concatenate(audio_frames, axis=1) # shape: (channels, total_samples)
if self.__duration:
audio_data = audio_data[..., :int(self.__duration * audio_stream.sample_rate)]
audio_tensor = torch.from_numpy(audio_data).unsqueeze(0) # shape: (1, channels, total_samples)
audio = AudioInput({
"waveform": audio_tensor,
"sample_rate": int(audio_stream.sample_rate) if audio_stream.sample_rate else 1,
})
metadata = container.metadata
return VideoComponents(images=images, alpha=alphas, audio=audio, frame_rate=frame_rate, metadata=metadata)
def get_components(self) -> VideoComponents:
if isinstance(self.__file, io.BytesIO):
self.__file.seek(0) # Reset the BytesIO object to the beginning
with av.open(self.__file, mode='r') as container:
return self.get_components_internal(container)
raise ValueError(f"No video stream found in file '{self.__file}'")
def save_to(
self,
path: str | io.BytesIO,
format: VideoContainer = VideoContainer.AUTO,
codec: VideoCodec = VideoCodec.AUTO,
metadata: Optional[dict] = None,
bit_depth: int | None = None,
):
if isinstance(self.__file, io.BytesIO):
self.__file.seek(0) # Reset the BytesIO object to the beginning
with av.open(self.__file, mode='r') as container:
container_format = container.format.name
video_stream = container.streams.video[0] if len(container.streams.video) > 0 else None
video_encoding = video_stream.codec.name if video_stream is not None else None
source_bit_depth = video_stream_bit_depth(video_stream)
reuse_streams = True
if format != VideoContainer.AUTO and format not in container_format.split(","):
reuse_streams = False
if codec != VideoCodec.AUTO and codec != video_encoding and video_encoding is not None:
reuse_streams = False
if bit_depth is not None and video_encoding is not None and bit_depth != source_bit_depth:
reuse_streams = False
if self.__start_time or self.__duration:
reuse_streams = False
if not reuse_streams:
if bit_depth is None:
bit_depth = source_bit_depth
components = self.get_components_internal(container)
video = VideoFromComponents(components)
return video.save_to(
path, format=format, codec=codec, metadata=metadata, bit_depth=bit_depth,
)
streams = container.streams
open_kwargs = get_open_write_kwargs(path, container_format, format)
with av.open(path, **open_kwargs) as output_container:
# Copy over the original metadata
for key, value in container.metadata.items():
if metadata is None or key not in metadata:
output_container.metadata[key] = value
# Add our new metadata
if metadata is not None:
for key, value in metadata.items():
if isinstance(value, str):
output_container.metadata[key] = value
else:
output_container.metadata[key] = json.dumps(value)
# Add streams to the new container. Streams with no codec context cannot be used as an output template.
stream_map = {}
for stream in streams:
if isinstance(stream, (av.VideoStream, av.AudioStream, SubtitleStream)):
if stream.codec_context is None:
logging.warning("Skipping %s stream %d with unsupported codec", stream.type, stream.index)
continue
out_stream = output_container.add_stream_from_template(template=stream, opaque=True)
stream_map[stream] = out_stream
# Write packets to the new container
for packet in container.demux():
if packet.stream in stream_map and packet.dts is not None:
packet.stream = stream_map[packet.stream]
output_container.mux(packet)
def _get_first_video_stream(self, container: InputContainer):
if len(container.streams.video):
return container.streams.video[0]
raise ValueError(f"No video stream found in file '{self.__file}'")
def as_trimmed(
self, start_time: float = 0, duration: float = 0, strict_duration: bool = True
) -> VideoInput | None:
trimmed = VideoFromFile(
self.get_stream_source(),
start_time=start_time + self.__start_time,
duration=duration,
)
if trimmed.get_duration() < duration and strict_duration:
return None
return trimmed
class VideoFromComponents(VideoInput):
"""
Class representing video input from tensors.
"""
def __init__(self, components: VideoComponents, bit_depth: int = 8):
self.__components = components
# Tensor components have no inherent bit depth; this is the depth used when encoding.
self.__bit_depth = bit_depth
def get_components(self) -> VideoComponents:
return VideoComponents(
images=self.__components.images,
audio=self.__components.audio,
frame_rate=self.__components.frame_rate,
)
def get_bit_depth(self) -> int:
return self.__bit_depth
def save_to(
self,
path: str,
format: VideoContainer = VideoContainer.AUTO,
codec: VideoCodec = VideoCodec.AUTO,
metadata: Optional[dict] = None,
bit_depth: int | None = None,
):
"""Save the video to a file path or BytesIO buffer."""
if format != VideoContainer.AUTO and format != VideoContainer.MP4:
raise ValueError("Only MP4 format is supported for now")
if codec != VideoCodec.AUTO and codec != VideoCodec.H264:
raise ValueError("Only H264 codec is supported for now")
# None means "use the depth this video was created with" (CreateVideo's choice).
if bit_depth is None:
bit_depth = self.__bit_depth
is_10bit = bit_depth >= 10
extra_kwargs = {}
if isinstance(format, VideoContainer) and format != VideoContainer.AUTO:
extra_kwargs["format"] = format.value
elif isinstance(path, io.BytesIO):
# BytesIO has no file extension, so av.open can't infer the format.
# Default to mp4 since that's the only supported format anyway.
extra_kwargs["format"] = "mp4"
with av.open(path, mode='w', options={'movflags': 'use_metadata_tags'}, **extra_kwargs) as output:
# Add metadata before writing any streams
if metadata is not None:
for key, value in metadata.items():
output.metadata[key] = json.dumps(value)
frame_rate = Fraction(round(self.__components.frame_rate * 1000), 1000)
# Create a video stream
pix_fmt = "yuv420p10le" if is_10bit else "yuv420p"
video_stream = output.add_stream('h264', rate=frame_rate)
video_stream.width = self.__components.images.shape[2]
video_stream.height = self.__components.images.shape[1]
video_stream.pix_fmt = pix_fmt
# Create an audio stream
audio_sample_rate = 1
audio_stream: Optional[av.AudioStream] = None
if self.__components.audio:
audio_sample_rate = int(self.__components.audio['sample_rate'])
waveform = self.__components.audio['waveform']
waveform = waveform[0, :, :math.ceil((audio_sample_rate / frame_rate) * self.__components.images.shape[0])]
layout = {1: 'mono', 2: 'stereo', 6: '5.1'}.get(waveform.shape[0], 'stereo')
audio_stream = output.add_stream('aac', rate=audio_sample_rate, layout=layout)
# Encode video
for i, frame in enumerate(self.__components.images):
if is_10bit:
# 16-bit RGB keeps float precision through the conversion to 10-bit YUV.
img = (frame.float() * 65535).clamp(0, 65535).cpu().numpy().astype(np.uint16) # shape: (H, W, 3)
frame = av.VideoFrame.from_ndarray(img, format="rgb48le")
else:
img = (frame * 255).clamp(0, 255).byte().cpu().numpy() # shape: (H, W, 3)
frame = av.VideoFrame.from_ndarray(img, format='rgb24')
frame = frame.reformat(format=pix_fmt)
packet = video_stream.encode(frame)
output.mux(packet)
# Flush video
packet = video_stream.encode(None)
output.mux(packet)
if audio_stream and self.__components.audio:
frame = av.AudioFrame.from_ndarray(waveform.float().cpu().contiguous().numpy(), format='fltp', layout=layout)
frame.sample_rate = audio_sample_rate
frame.pts = 0
output.mux(audio_stream.encode(frame))
# Flush encoder
output.mux(audio_stream.encode(None))
def as_trimmed(
self,
start_time: float | None = None,
duration: float | None = None,
strict_duration: bool = True,
) -> VideoInput | None:
if self.get_duration() < start_time + duration:
return None
#TODO Consider tracking duration and trimming at time of save?
return VideoFromFile(self.get_stream_source(), start_time=start_time, duration=duration)
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,486 @@
from __future__ import annotations
import json
import os
import random
import uuid
from io import BytesIO
import av
import numpy as np
import torch
try:
import torchaudio
TORCH_AUDIO_AVAILABLE = True
except:
TORCH_AUDIO_AVAILABLE = False
from PIL import Image as PILImage
from PIL.PngImagePlugin import PngInfo
import folder_paths
# used for image preview
from comfy.cli_args import args
from ._io import ComfyNode, FolderType, Image, _UIOutput
class SavedResult(dict):
def __init__(self, filename: str, subfolder: str, type: FolderType):
super().__init__(filename=filename, subfolder=subfolder,type=type.value)
@property
def filename(self) -> str:
return self["filename"]
@property
def subfolder(self) -> str:
return self["subfolder"]
@property
def type(self) -> FolderType:
return FolderType(self["type"])
class SavedImages(_UIOutput):
"""A UI output class to represent one or more saved images, potentially animated."""
def __init__(self, results: list[SavedResult], is_animated: bool = False):
super().__init__()
self.results = results
self.is_animated = is_animated
def as_dict(self) -> dict:
data = {"images": self.results}
if self.is_animated:
data["animated"] = (True,)
return data
class SavedAudios(_UIOutput):
"""UI wrapper around one or more audio files on disk (FLAC / MP3 / Opus)."""
def __init__(self, results: list[SavedResult]):
super().__init__()
self.results = results
def as_dict(self) -> dict:
return {"audio": self.results}
def _get_directory_by_folder_type(folder_type: FolderType) -> str:
if folder_type == FolderType.input:
return folder_paths.get_input_directory()
if folder_type == FolderType.output:
return folder_paths.get_output_directory()
return folder_paths.get_temp_directory()
class ImageSaveHelper:
"""A helper class with static methods to handle image saving and metadata."""
@staticmethod
def _convert_tensor_to_pil(image_tensor: torch.Tensor) -> PILImage.Image:
"""Converts a single torch tensor to a PIL Image."""
return PILImage.fromarray(np.clip(255.0 * image_tensor.cpu().numpy(), 0, 255).astype(np.uint8))
@staticmethod
def _create_png_metadata(cls: type[ComfyNode] | None) -> PngInfo | None:
"""Creates a PngInfo object with prompt and extra_pnginfo."""
if args.disable_metadata or cls is None or not cls.hidden:
return None
metadata = PngInfo()
if cls.hidden.prompt:
metadata.add_text("prompt", json.dumps(cls.hidden.prompt))
if cls.hidden.extra_pnginfo:
for x in cls.hidden.extra_pnginfo:
metadata.add_text(x, json.dumps(cls.hidden.extra_pnginfo[x]))
return metadata
@staticmethod
def _create_animated_png_metadata(cls: type[ComfyNode] | None) -> PngInfo | None:
"""Creates a PngInfo object with prompt and extra_pnginfo for animated PNGs (APNG)."""
if args.disable_metadata or cls is None or not cls.hidden:
return None
metadata = PngInfo()
if cls.hidden.prompt:
metadata.add(
b"comf",
"prompt".encode("latin-1", "strict")
+ b"\0"
+ json.dumps(cls.hidden.prompt).encode("latin-1", "strict"),
after_idat=True,
)
if cls.hidden.extra_pnginfo:
for x in cls.hidden.extra_pnginfo:
metadata.add(
b"comf",
x.encode("latin-1", "strict")
+ b"\0"
+ json.dumps(cls.hidden.extra_pnginfo[x]).encode("latin-1", "strict"),
after_idat=True,
)
return metadata
@staticmethod
def _create_webp_metadata(pil_image: PILImage.Image, cls: type[ComfyNode] | None) -> PILImage.Exif:
"""Creates EXIF metadata bytes for WebP images."""
exif_data = pil_image.getexif()
if args.disable_metadata or cls is None or cls.hidden is None:
return exif_data
if cls.hidden.prompt is not None:
exif_data[0x0110] = "prompt:{}".format(json.dumps(cls.hidden.prompt)) # EXIF 0x0110 = Model
if cls.hidden.extra_pnginfo is not None:
inital_exif_tag = 0x010F # EXIF 0x010f = Make
for key, value in cls.hidden.extra_pnginfo.items():
exif_data[inital_exif_tag] = "{}:{}".format(key, json.dumps(value))
inital_exif_tag -= 1
return exif_data
@staticmethod
def save_images(
images, filename_prefix: str, folder_type: FolderType, cls: type[ComfyNode] | None, compress_level = 4,
) -> list[SavedResult]:
"""Saves a batch of images as individual PNG files."""
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
)
results = []
metadata = ImageSaveHelper._create_png_metadata(cls)
for batch_number, image_tensor in enumerate(images):
img = ImageSaveHelper._convert_tensor_to_pil(image_tensor)
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
file = f"{filename_with_batch_num}_{counter:05}_.png"
img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=compress_level)
results.append(SavedResult(file, subfolder, folder_type))
counter += 1
return results
@staticmethod
def get_save_images_ui(images, filename_prefix: str, cls: type[ComfyNode] | None, compress_level=4) -> SavedImages:
"""Saves a batch of images and returns a UI object for the node output."""
return SavedImages(
ImageSaveHelper.save_images(
images,
filename_prefix=filename_prefix,
folder_type=FolderType.output,
cls=cls,
compress_level=compress_level,
)
)
@staticmethod
def save_animated_png(
images, filename_prefix: str, folder_type: FolderType, cls: type[ComfyNode] | None, fps: float, compress_level: int
) -> SavedResult:
"""Saves a batch of images as a single animated PNG."""
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
)
pil_images = [ImageSaveHelper._convert_tensor_to_pil(img) for img in images]
metadata = ImageSaveHelper._create_animated_png_metadata(cls)
file = f"{filename}_{counter:05}_.png"
save_path = os.path.join(full_output_folder, file)
pil_images[0].save(
save_path,
pnginfo=metadata,
compress_level=compress_level,
save_all=True,
duration=int(1000.0 / fps),
append_images=pil_images[1:],
)
return SavedResult(file, subfolder, folder_type)
@staticmethod
def get_save_animated_png_ui(
images, filename_prefix: str, cls: type[ComfyNode] | None, fps: float, compress_level: int
) -> SavedImages:
"""Saves an animated PNG and returns a UI object for the node output."""
result = ImageSaveHelper.save_animated_png(
images,
filename_prefix=filename_prefix,
folder_type=FolderType.output,
cls=cls,
fps=fps,
compress_level=compress_level,
)
return SavedImages([result], is_animated=len(images) > 1)
@staticmethod
def save_animated_webp(
images,
filename_prefix: str,
folder_type: FolderType,
cls: type[ComfyNode] | None,
fps: float,
lossless: bool,
quality: int,
method: int,
) -> SavedResult:
"""Saves a batch of images as a single animated WebP."""
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
filename_prefix, _get_directory_by_folder_type(folder_type), images[0].shape[1], images[0].shape[0]
)
pil_images = [ImageSaveHelper._convert_tensor_to_pil(img) for img in images]
pil_exif = ImageSaveHelper._create_webp_metadata(pil_images[0], cls)
file = f"{filename}_{counter:05}_.webp"
pil_images[0].save(
os.path.join(full_output_folder, file),
save_all=True,
duration=int(1000.0 / fps),
append_images=pil_images[1:],
exif=pil_exif,
lossless=lossless,
quality=quality,
method=method,
)
return SavedResult(file, subfolder, folder_type)
@staticmethod
def get_save_animated_webp_ui(
images,
filename_prefix: str,
cls: type[ComfyNode] | None,
fps: float,
lossless: bool,
quality: int,
method: int,
) -> SavedImages:
"""Saves an animated WebP and returns a UI object for the node output."""
result = ImageSaveHelper.save_animated_webp(
images,
filename_prefix=filename_prefix,
folder_type=FolderType.output,
cls=cls,
fps=fps,
lossless=lossless,
quality=quality,
method=method,
)
return SavedImages([result], is_animated=len(images) > 1)
class AudioSaveHelper:
"""A helper class with static methods to handle audio saving and metadata."""
_OPUS_RATES = [8000, 12000, 16000, 24000, 48000]
@staticmethod
def save_audio(
audio: dict,
filename_prefix: str,
folder_type: FolderType,
cls: type[ComfyNode] | None,
format: str = "flac",
quality: str = "128k",
) -> list[SavedResult]:
full_output_folder, filename, counter, subfolder, _ = folder_paths.get_save_image_path(
filename_prefix, _get_directory_by_folder_type(folder_type)
)
metadata = {}
if not args.disable_metadata and cls is not None:
if cls.hidden.prompt is not None:
metadata["prompt"] = json.dumps(cls.hidden.prompt)
if cls.hidden.extra_pnginfo is not None:
for x in cls.hidden.extra_pnginfo:
metadata[x] = json.dumps(cls.hidden.extra_pnginfo[x])
results = []
for batch_number, waveform in enumerate(audio["waveform"].cpu()):
filename_with_batch_num = filename.replace("%batch_num%", str(batch_number))
file = f"{filename_with_batch_num}_{counter:05}.{format}"
output_path = os.path.join(full_output_folder, file)
# Use original sample rate initially
sample_rate = audio["sample_rate"]
# Handle Opus sample rate requirements
if format == "opus":
if sample_rate > 48000:
sample_rate = 48000
elif sample_rate not in AudioSaveHelper._OPUS_RATES:
# Find the next highest supported rate
for rate in sorted(AudioSaveHelper._OPUS_RATES):
if rate > sample_rate:
sample_rate = rate
break
if sample_rate not in AudioSaveHelper._OPUS_RATES: # Fallback if still not supported
sample_rate = 48000
# Resample if necessary
if sample_rate != audio["sample_rate"]:
if not TORCH_AUDIO_AVAILABLE:
raise Exception("torchaudio is not available; cannot resample audio.")
waveform = torchaudio.functional.resample(waveform, audio["sample_rate"], sample_rate)
# Create output with specified format
output_buffer = BytesIO()
output_container = av.open(output_buffer, mode="w", format=format)
# Set metadata on the container
for key, value in metadata.items():
output_container.metadata[key] = value
layout = "mono" if waveform.shape[0] == 1 else "stereo"
# Set up the output stream with appropriate properties
if format == "opus":
out_stream = output_container.add_stream("libopus", rate=sample_rate, layout=layout)
if quality == "64k":
out_stream.bit_rate = 64000
elif quality == "96k":
out_stream.bit_rate = 96000
elif quality == "128k":
out_stream.bit_rate = 128000
elif quality == "192k":
out_stream.bit_rate = 192000
elif quality == "320k":
out_stream.bit_rate = 320000
elif format == "mp3":
out_stream = output_container.add_stream("libmp3lame", rate=sample_rate, layout=layout)
if quality == "V0":
# TODO i would really love to support V3 and V5 but there doesn't seem to be a way to set the qscale level, the property below is a bool
out_stream.codec_context.qscale = 1
elif quality == "128k":
out_stream.bit_rate = 128000
elif quality == "320k":
out_stream.bit_rate = 320000
else: # format == "flac":
out_stream = output_container.add_stream("flac", rate=sample_rate, layout=layout)
frame = av.AudioFrame.from_ndarray(
waveform.movedim(0, 1).reshape(1, -1).float().numpy(),
format="flt",
layout=layout,
)
frame.sample_rate = sample_rate
frame.pts = 0
output_container.mux(out_stream.encode(frame))
# Flush encoder
output_container.mux(out_stream.encode(None))
# Close containers
output_container.close()
# Write the output to file
output_buffer.seek(0)
with open(output_path, "wb") as f:
f.write(output_buffer.getbuffer())
results.append(SavedResult(file, subfolder, folder_type))
counter += 1
return results
@staticmethod
def get_save_audio_ui(
audio, filename_prefix: str, cls: type[ComfyNode] | None, format: str = "flac", quality: str = "128k",
) -> SavedAudios:
"""Save and instantly wrap for UI."""
return SavedAudios(
AudioSaveHelper.save_audio(
audio,
filename_prefix=filename_prefix,
folder_type=FolderType.output,
cls=cls,
format=format,
quality=quality,
)
)
class PreviewImage(_UIOutput):
def __init__(self, image: Image.Type, animated: bool = False, cls: type[ComfyNode] = None, **kwargs):
self.values = ImageSaveHelper.save_images(
image,
filename_prefix="ComfyUI_temp_" + ''.join(random.choice("abcdefghijklmnopqrstupvxyz") for _ in range(5)),
folder_type=FolderType.temp,
cls=cls,
compress_level=1,
)
self.animated = animated
def as_dict(self):
return {
"images": self.values,
"animated": (self.animated,)
}
class PreviewMask(PreviewImage):
def __init__(self, mask: PreviewMask.Type, animated: bool=False, cls: ComfyNode=None, **kwargs):
preview = mask.reshape((-1, 1, mask.shape[-2], mask.shape[-1])).movedim(1, -1).expand(-1, -1, -1, 3)
super().__init__(preview, animated, cls, **kwargs)
class PreviewAudio(_UIOutput):
def __init__(self, audio: dict, cls: type[ComfyNode] = None, **kwargs):
self.values = AudioSaveHelper.save_audio(
audio,
filename_prefix="ComfyUI_temp_" + "".join(random.choice("abcdefghijklmnopqrstuvwxyz") for _ in range(5)),
folder_type=FolderType.temp,
cls=cls,
format="flac",
quality="128k",
)
def as_dict(self) -> dict:
return {"audio": self.values}
class PreviewVideo(_UIOutput):
def __init__(self, values: list[SavedResult | dict], **kwargs):
self.values = values
def as_dict(self):
return {"images": self.values, "animated": (True,)}
class PreviewUI3D(_UIOutput):
def __init__(self, model_file, camera_info, **kwargs):
self.model_file = model_file
self.camera_info = camera_info
self.bg_image_path = None
bg_image = kwargs.get("bg_image", None)
if bg_image is not None:
img_array = (bg_image[0].cpu().numpy() * 255).astype(np.uint8)
img = PILImage.fromarray(img_array)
temp_dir = folder_paths.get_temp_directory()
filename = f"bg_{uuid.uuid4().hex}.png"
bg_image_path = os.path.join(temp_dir, filename)
img.save(bg_image_path, compress_level=1)
self.bg_image_path = f"temp/{filename}"
def as_dict(self):
return {"result": [self.model_file, self.camera_info, self.bg_image_path]}
class PreviewUI3DAdvanced(_UIOutput):
def __init__(self, model_file, camera_info, model_3d_info):
self.model_file = model_file
self.camera_info = camera_info
self.model_3d_info = model_3d_info
def as_dict(self):
return {"result": [self.model_file, self.camera_info, self.model_3d_info]}
class PreviewText(_UIOutput):
def __init__(self, value: str, **kwargs):
self.value = value
def as_dict(self):
return {"text": (self.value,)}
__all__ = [
"SavedResult",
"SavedImages",
"SavedAudios",
"ImageSaveHelper",
"AudioSaveHelper",
"PreviewImage",
"PreviewMask",
"PreviewAudio",
"PreviewVideo",
"PreviewUI3D",
"PreviewUI3DAdvanced",
"PreviewText",
]
@@ -0,0 +1,50 @@
from dataclasses import dataclass
from enum import Enum
from fractions import Fraction
from typing import Optional
from .._input import ImageInput, AudioInput, MaskInput
class VideoCodec(str, Enum):
AUTO = "auto"
H264 = "h264"
@classmethod
def as_input(cls) -> list[str]:
"""
Returns a list of codec names that can be used as node input.
"""
return [member.value for member in cls]
class VideoContainer(str, Enum):
AUTO = "auto"
MP4 = "mp4"
@classmethod
def as_input(cls) -> list[str]:
"""
Returns a list of container names that can be used as node input.
"""
return [member.value for member in cls]
@classmethod
def get_extension(cls, value) -> str:
"""
Returns the file extension for the container.
"""
if isinstance(value, str):
value = cls(value)
if value == VideoContainer.MP4 or value == VideoContainer.AUTO:
return "mp4"
return ""
@dataclass
class VideoComponents:
"""
Dataclass representing the components of a video.
"""
images: ImageInput
frame_rate: Fraction
audio: Optional[AudioInput] = None
metadata: Optional[dict] = None
alpha: Optional[MaskInput] = None
@@ -0,0 +1,353 @@
from typing import TypedDict
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io
from comfy_api.latest import _io
# sentinel for missing inputs
MISSING = object()
class NotNode(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ComfyNotNode",
display_name="Not",
category="utilities/logic",
description="Logical NOT operation. Returns true if the value is falsy. Uses Python's rules for truthiness.",
search_aliases=["invert", "toggle", "negate", "flip boolean"],
inputs=[
io.AnyType.Input("value"),
],
outputs=[
io.Boolean.Output(),
],
)
@classmethod
def execute(cls, value) -> io.NodeOutput:
return io.NodeOutput(not value)
class AndNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = io.Autogrow.TemplatePrefix(
input=io.AnyType.Input("value"),
prefix="value",
min=1,
)
return io.Schema(
node_id="ComfyAndNode",
display_name="And",
category="utilities/logic",
description="Logical AND operation. Returns true if all of the values are truthy. Uses Python's rules for truthiness.",
search_aliases=["all", "every"],
inputs=[
io.Autogrow.Input("values", template=template),
],
outputs=[
io.Boolean.Output(),
],
)
@classmethod
def execute(cls, values: io.Autogrow.Type) -> io.NodeOutput:
return io.NodeOutput(all(values.values()))
class OrNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = io.Autogrow.TemplatePrefix(
input=io.AnyType.Input("value"),
prefix="value",
min=1,
)
return io.Schema(
node_id="ComfyOrNode",
display_name="Or",
category="utilities/logic",
description="Logical OR operation. Returns true if any of the values are truthy. Uses Python's rules for truthiness.",
search_aliases=["any", "some"],
inputs=[
io.Autogrow.Input("values", template=template),
],
outputs=[
io.Boolean.Output(),
],
)
@classmethod
def execute(cls, values: io.Autogrow.Type) -> io.NodeOutput:
return io.NodeOutput(any(values.values()))
class SwitchNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = io.MatchType.Template("switch")
return io.Schema(
node_id="ComfySwitchNode",
search_aliases=["if", "then", "switch", "conditional", "branch"],
display_name="If/Else Switch",
category="utilities/logic",
is_experimental=True,
inputs=[
io.Boolean.Input("switch"),
io.MatchType.Input("on_false", template=template, lazy=True),
io.MatchType.Input("on_true", template=template, lazy=True),
],
outputs=[
io.MatchType.Output(template=template, display_name="output"),
],
)
@classmethod
def check_lazy_status(cls, switch, on_false=None, on_true=None):
if switch and on_true is None:
return ["on_true"]
if not switch and on_false is None:
return ["on_false"]
@classmethod
def execute(cls, switch, on_true, on_false) -> io.NodeOutput:
return io.NodeOutput(on_true if switch else on_false)
class SoftSwitchNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = io.MatchType.Template("switch")
return io.Schema(
node_id="ComfySoftSwitchNode",
display_name="Soft Switch",
category="utilities/logic",
is_experimental=True,
inputs=[
io.Boolean.Input("switch"),
io.MatchType.Input("on_false", template=template, lazy=True, optional=True),
io.MatchType.Input("on_true", template=template, lazy=True, optional=True),
],
outputs=[
io.MatchType.Output(template=template, display_name="output"),
],
)
@classmethod
def check_lazy_status(cls, switch, on_false=MISSING, on_true=MISSING):
# We use MISSING instead of None, as None is passed for connected-but-unevaluated inputs.
# This trick allows us to ignore the value of the switch and still be able to run execute().
# One of the inputs may be missing, in which case we need to evaluate the other input
if on_false is MISSING:
return ["on_true"]
if on_true is MISSING:
return ["on_false"]
# Normal lazy switch operation
if switch and on_true is None:
return ["on_true"]
if not switch and on_false is None:
return ["on_false"]
@classmethod
def validate_inputs(cls, switch, on_false=MISSING, on_true=MISSING):
# This check happens before check_lazy_status(), so we can eliminate the case where
# both inputs are missing.
if on_false is MISSING and on_true is MISSING:
return "At least one of on_false or on_true must be connected to Switch node"
return True
@classmethod
def execute(cls, switch, on_true=MISSING, on_false=MISSING) -> io.NodeOutput:
if on_true is MISSING:
return io.NodeOutput(on_false)
if on_false is MISSING:
return io.NodeOutput(on_true)
return io.NodeOutput(on_true if switch else on_false)
class CustomComboNode(io.ComfyNode):
"""
Frontend node that allows user to write their own options for a combo.
This is here to make sure the node has a backend-representation to avoid some annoyances.
"""
@classmethod
def define_schema(cls):
return io.Schema(
node_id="CustomCombo",
display_name="Custom Combo",
category="utilities",
is_experimental=True,
inputs=[io.Combo.Input("choice", options=[])],
outputs=[
io.String.Output(display_name="STRING"),
io.Int.Output(display_name="INDEX"),
],
accept_all_inputs=True,
)
@classmethod
def validate_inputs(cls, choice: io.Combo.Type, index: int = 0, **kwargs) -> bool:
# NOTE: DO NOT DO THIS unless you want to skip validation entirely on the node's inputs.
# I am doing that here because the widgets (besides the combo dropdown) on this node are fully frontend defined.
# I need to skip checking that the chosen combo option is in the options list, since those are defined by the user.
return True
@classmethod
def execute(cls, choice: io.Combo.Type, index: int = 0, **kwargs) -> io.NodeOutput:
return io.NodeOutput(choice, index)
class DCTestNode(io.ComfyNode):
class DCValues(TypedDict):
combo: str
string: str
integer: int
image: io.Image.Type
subcombo: dict[str]
@classmethod
def define_schema(cls):
return io.Schema(
node_id="DCTestNode",
display_name="DCTest",
category="utilities/logic",
is_output_node=True,
inputs=[io.DynamicCombo.Input("combo", options=[
io.DynamicCombo.Option("option1", [io.String.Input("string")]),
io.DynamicCombo.Option("option2", [io.Int.Input("integer")]),
io.DynamicCombo.Option("option3", [io.Image.Input("image")]),
io.DynamicCombo.Option("option4", [
io.DynamicCombo.Input("subcombo", options=[
io.DynamicCombo.Option("opt1", [io.Float.Input("float_x"), io.Float.Input("float_y")]),
io.DynamicCombo.Option("opt2", [io.Mask.Input("mask1", optional=True)]),
])
])]
)],
outputs=[io.AnyType.Output()],
)
@classmethod
def execute(cls, combo: DCValues) -> io.NodeOutput:
combo_val = combo["combo"]
if combo_val == "option1":
return io.NodeOutput(combo["string"])
elif combo_val == "option2":
return io.NodeOutput(combo["integer"])
elif combo_val == "option3":
return io.NodeOutput(combo["image"])
elif combo_val == "option4":
return io.NodeOutput(f"{combo['subcombo']}")
else:
raise ValueError(f"Invalid combo: {combo_val}")
class AutogrowNamesTestNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = _io.Autogrow.TemplateNames(input=io.Float.Input("float"), names=["a", "b", "c"])
return io.Schema(
node_id="AutogrowNamesTestNode",
display_name="AutogrowNamesTest",
category="utilities/logic",
inputs=[
_io.Autogrow.Input("autogrow", template=template)
],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, autogrow: _io.Autogrow.Type) -> io.NodeOutput:
vals = list(autogrow.values())
combined = ",".join([str(x) for x in vals])
return io.NodeOutput(combined)
class AutogrowPrefixTestNode(io.ComfyNode):
@classmethod
def define_schema(cls):
template = _io.Autogrow.TemplatePrefix(input=io.Float.Input("float"), prefix="float", min=1, max=10)
return io.Schema(
node_id="AutogrowPrefixTestNode",
display_name="AutogrowPrefixTest",
category="utilities/logic",
inputs=[
_io.Autogrow.Input("autogrow", template=template)
],
outputs=[io.String.Output()],
)
@classmethod
def execute(cls, autogrow: _io.Autogrow.Type) -> io.NodeOutput:
vals = list(autogrow.values())
combined = ",".join([str(x) for x in vals])
return io.NodeOutput(combined)
class ComboOutputTestNode(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ComboOptionTestNode",
display_name="ComboOptionTest",
category="utilities/logic",
inputs=[io.Combo.Input("combo", options=["option1", "option2", "option3"]),
io.Combo.Input("combo2", options=["option4", "option5", "option6"])],
outputs=[io.Combo.Output(), io.Combo.Output()],
)
@classmethod
def execute(cls, combo: io.Combo.Type, combo2: io.Combo.Type) -> io.NodeOutput:
return io.NodeOutput(combo, combo2)
class ConvertStringToComboNode(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="ConvertStringToComboNode",
search_aliases=["string to dropdown", "text to combo"],
display_name="Convert String to Combo",
category="utilities/logic",
inputs=[io.String.Input("string")],
outputs=[io.Combo.Output()],
)
@classmethod
def execute(cls, string: str) -> io.NodeOutput:
return io.NodeOutput(string)
class InvertBooleanNode(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="InvertBooleanNode",
search_aliases=["not", "toggle", "negate", "flip boolean"],
display_name="Invert Boolean",
category="utilities/logic",
inputs=[io.Boolean.Input("boolean")],
outputs=[io.Boolean.Output()],
)
@classmethod
def execute(cls, boolean: bool) -> io.NodeOutput:
return io.NodeOutput(not boolean)
class LogicExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
SwitchNode,
CustomComboNode,
NotNode,
AndNode,
OrNode,
# SoftSwitchNode,
# ConvertStringToComboNode,
# DCTestNode,
# AutogrowNamesTestNode,
# AutogrowPrefixTestNode,
# ComboOutputTestNode,
# InvertBooleanNode,
]
async def comfy_entrypoint() -> LogicExtension:
return LogicExtension()
@@ -0,0 +1,293 @@
import os
import av
import torch
import folder_paths
import json
from typing import Optional
from typing_extensions import override
from fractions import Fraction
from comfy_api.latest import ComfyExtension, io, ui, Input, InputImpl, Types
from comfy.cli_args import args
class SaveWEBM(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="SaveWEBM",
search_aliases=["export webm"],
display_name="Save WEBM",
category="video",
is_experimental=True,
inputs=[
io.Image.Input("images", tooltip="RGBA images are saved with their alpha channel as transparency (vp9 codec only)."),
io.String.Input("filename_prefix", default="ComfyUI"),
io.Combo.Input("codec", options=["vp9", "av1"]),
io.Float.Input("fps", default=24.0, min=0.01, max=1000.0, step=0.01),
io.Float.Input("crf", default=32.0, min=0, max=63.0, step=1, tooltip="Higher crf means lower quality with a smaller file size, lower crf means higher quality higher filesize."),
],
hidden=[io.Hidden.prompt, io.Hidden.extra_pnginfo],
is_output_node=True,
outputs=[io.Image.Output(display_name="images")]
)
@classmethod
def execute(cls, images, codec, fps, filename_prefix, crf) -> io.NodeOutput:
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(
filename_prefix, folder_paths.get_output_directory(), images[0].shape[1], images[0].shape[0]
)
file = f"{filename}_{counter:05}_.webm"
container = av.open(os.path.join(full_output_folder, file), mode="w")
if cls.hidden.prompt is not None:
container.metadata["prompt"] = json.dumps(cls.hidden.prompt)
if cls.hidden.extra_pnginfo is not None:
for x in cls.hidden.extra_pnginfo:
container.metadata[x] = json.dumps(cls.hidden.extra_pnginfo[x])
# Save transparency when the images carry an alpha channel (RGBA) and the codec supports it.
# vp9 -> yuva420p; other codecs have no usable alpha path, so the alpha is ignored.
save_alpha = images.shape[-1] == 4 and codec == "vp9"
codec_map = {"vp9": "libvpx-vp9", "av1": "libsvtav1"}
stream = container.add_stream(codec_map[codec], rate=Fraction(round(fps * 1000), 1000))
stream.width = images.shape[-2]
stream.height = images.shape[-3]
stream.pix_fmt = "yuva420p" if save_alpha else ("yuv420p10le" if codec == "av1" else "yuv420p")
stream.bit_rate = 0
stream.options = {'crf': str(crf)}
if codec == "av1":
stream.options["preset"] = "6"
for frame in images:
if save_alpha:
frame = av.VideoFrame.from_ndarray(torch.clamp(frame[..., :4] * 255, min=0, max=255).to(device=torch.device("cpu"), dtype=torch.uint8).numpy(), format="rgba")
else:
frame = av.VideoFrame.from_ndarray(torch.clamp(frame[..., :3] * 255, min=0, max=255).to(device=torch.device("cpu"), dtype=torch.uint8).numpy(), format="rgb24")
for packet in stream.encode(frame):
container.mux(packet)
container.mux(stream.encode())
container.close()
return io.NodeOutput(images, ui=ui.PreviewVideo([ui.SavedResult(file, subfolder, io.FolderType.output)]))
class SaveVideo(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="SaveVideo",
search_aliases=["export video"],
display_name="Save Video",
category="video",
essentials_category="Basics",
description="Saves the input videos to your ComfyUI output directory.",
inputs=[
io.Video.Input("video", tooltip="The video to save."),
io.String.Input("filename_prefix", default="video/ComfyUI", tooltip="The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."),
io.Combo.Input("format", options=Types.VideoContainer.as_input(), default="auto", tooltip="The format to save the video as."),
io.Combo.Input("codec", options=Types.VideoCodec.as_input(), default="auto", tooltip="The codec to use for the video."),
],
hidden=[io.Hidden.prompt, io.Hidden.extra_pnginfo],
is_output_node=True,
outputs=[io.Video.Output("video")],
)
@classmethod
def execute(cls, video: Input.Video, filename_prefix, format: str, codec) -> io.NodeOutput:
width, height = video.get_dimensions()
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(
filename_prefix,
folder_paths.get_output_directory(),
width,
height
)
saved_metadata = None
if not args.disable_metadata:
metadata = {}
if cls.hidden.extra_pnginfo is not None:
metadata.update(cls.hidden.extra_pnginfo)
if cls.hidden.prompt is not None:
metadata["prompt"] = cls.hidden.prompt
if len(metadata) > 0:
saved_metadata = metadata
file = f"{filename}_{counter:05}_.{Types.VideoContainer.get_extension(format)}"
video.save_to(
os.path.join(full_output_folder, file),
format=Types.VideoContainer(format),
codec=codec,
metadata=saved_metadata
)
return io.NodeOutput(video, ui=ui.PreviewVideo([ui.SavedResult(file, subfolder, io.FolderType.output)]))
class CreateVideo(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="CreateVideo",
search_aliases=["images to video"],
display_name="Create Video",
category="video",
essentials_category="Video Tools",
description="Create a video from images.",
inputs=[
io.Image.Input("images", tooltip="The images to create a video from."),
io.Float.Input("fps", default=30.0, min=1.0, max=120.0, step=1.0),
io.Audio.Input("audio", optional=True, tooltip="The audio to add to the video."),
io.Int.Input(
"bit_depth",
min=8,
max=10,
default=8,
step=2,
tooltip="Bit depth of the created video. 10-bit keeps smoother gradients with less"
" banding, but some players and downstream nodes may not support it.",
optional=True,
display_mode=io.NumberDisplay.number,
),
],
outputs=[
io.Video.Output(),
],
)
@classmethod
def execute(
cls, images: Input.Image, fps: float, audio: Optional[Input.Audio] = None, bit_depth: int = 8,
) -> io.NodeOutput:
return io.NodeOutput(
InputImpl.VideoFromComponents(
Types.VideoComponents(images=images, audio=audio, frame_rate=Fraction(fps)),
bit_depth=bit_depth,
)
)
class GetVideoComponents(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="GetVideoComponents",
search_aliases=["extract frames", "split video", "video to images", "demux"],
display_name="Get Video Components",
category="video",
description="Extracts all components from a video: frames, audio, framerate, and bit depth.",
inputs=[
io.Video.Input("video", tooltip="The video to extract components from."),
],
outputs=[
io.Image.Output(display_name="images"),
io.Audio.Output(display_name="audio"),
io.Float.Output(display_name="fps"),
io.Int.Output(display_name="bit_depth"),
],
)
@classmethod
def execute(cls, video: Input.Video) -> io.NodeOutput:
components = video.get_components()
return io.NodeOutput(components.images, components.audio, float(components.frame_rate), video.get_bit_depth())
class LoadVideo(io.ComfyNode):
@classmethod
def define_schema(cls):
input_dir = folder_paths.get_input_directory()
files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))]
files = folder_paths.filter_files_content_types(files, ["video"])
return io.Schema(
node_id="LoadVideo",
search_aliases=["import video", "open video", "video file"],
display_name="Load Video",
category="video",
essentials_category="Basics",
inputs=[
io.Combo.Input("file", options=sorted(files), upload=io.UploadType.video),
],
outputs=[
io.Video.Output(),
],
)
@classmethod
def execute(cls, file) -> io.NodeOutput:
video_path = folder_paths.get_annotated_filepath(file)
return io.NodeOutput(InputImpl.VideoFromFile(video_path))
@classmethod
def fingerprint_inputs(s, file):
video_path = folder_paths.get_annotated_filepath(file)
mod_time = os.path.getmtime(video_path)
# Instead of hashing the file, we can just use the modification time to avoid
# rehashing large files.
return mod_time
@classmethod
def validate_inputs(s, file):
if not folder_paths.exists_annotated_filepath(file):
return "Invalid video file: {}".format(file)
return True
class VideoSlice(io.ComfyNode):
@classmethod
def define_schema(cls):
return io.Schema(
node_id="Video Slice",
display_name="Trim Video",
search_aliases=["trim video duration", "skip first frames", "frame load cap", "start time"],
category="video",
essentials_category="Video Tools",
inputs=[
io.Video.Input("video"),
io.Float.Input(
"start_time",
default=0.0,
max=1e5,
min=-1e5,
step=0.001,
tooltip="Start time in seconds",
),
io.Float.Input(
"duration",
default=0.0,
min=0.0,
step=0.001,
tooltip="Duration in seconds, or 0 for unlimited duration",
),
io.Boolean.Input(
"strict_duration",
default=False,
tooltip="If True, when the specified duration is not possible, an error will be raised.",
),
],
outputs=[
io.Video.Output(),
],
)
@classmethod
def execute(cls, video: io.Video.Type, start_time: float, duration: float, strict_duration: bool) -> io.NodeOutput:
trimmed = video.as_trimmed(start_time, duration, strict_duration=strict_duration)
if trimmed is not None:
return io.NodeOutput(trimmed)
raise ValueError(
f"Failed to slice video:\nSource duration: {video.get_duration()}\nStart time: {start_time}\nTarget duration: {duration}"
)
class VideoExtension(ComfyExtension):
@override
async def get_node_list(self) -> list[type[io.ComfyNode]]:
return [
SaveWEBM,
SaveVideo,
CreateVideo,
GetVideoComponents,
LoadVideo,
VideoSlice,
]
async def comfy_entrypoint() -> VideoExtension:
return VideoExtension()
File diff suppressed because it is too large Load Diff
+92
View File
@@ -0,0 +1,92 @@
"""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/seedvr2-video-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 = ["seedvr2-video"]
for name in names:
subprocess.run(["node", f"e2e/{name}-document.mjs"], cwd=ROOT, check=True)
finally:
for p in processes:
if p.poll() is None:
os.killpg(p.pid, signal.SIGTERM)
try:
p.wait(timeout=10)
except subprocess.TimeoutExpired:
os.killpg(p.pid, signal.SIGKILL)
p.wait(timeout=5)
for log in logs:
log.close()
import json
released = []
for port in (8247, 5173):
with socket.socket() as sock:
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind(("127.0.0.1", port))
released.append(port)
(OUT / "service-stop.json").write_text(
json.dumps(
dict(ports_released=released, child_exit_codes=[p.returncode for p in processes])
)
+ "\n"
)
print("All owned browser services stopped; ports released.")
if __name__ == "__main__":
main()
+102
View File
@@ -0,0 +1,102 @@
// Local GET-only: 47 SeedVR2 video positions, two complete notes, 31 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/seedvr2-video-document/browser';fs.mkdirSync(out,{recursive:true});
const checks=[],requests=[],errors=[],blockedFonts=[],assertionGroups={},interceptions=[];let group='aggregate';
function check(condition,label){assert.ok(condition,label);checks.push(label);assertionGroups[group]=(assertionGroups[group]||0)+1;console.log('PASS '+label);}
const browser=await chromium.launch({headless:true,executablePath:process.env.BROWSER_EXECUTABLE});
try {
const page=await browser.newPage({viewport:{width:1440,height:1000}});
await page.route('**/*',route=>{
const u=new URL(route.request().url());
if(u.hostname==='fonts.googleapis.com'){blockedFonts.push(String(u));return route.fulfill({contentType:'text/css',body:''});}
if(route.request().method()!=='GET'||u.hostname!=='127.0.0.1'||u.pathname==='/api/view'||(/\.(mp4|png|wav|mp3|webm)$/i.test(u.pathname)&&u.pathname!=='/favicon.png')){errors.push('Forbidden request '+u);return route.abort();}
return route.continue();
});
page.on('request',r=>{if(r.url().includes('/api/'))requests.push({method:r.method(),url:r.url()});});
page.on('pageerror',e=>errors.push(e.message));
requests.push({method:'GET',url:'http://127.0.0.1:8247/api/workflows'});
const records=await(await fetch('http://127.0.0.1:8247/api/workflows')).json();
const names=['Seedvr2_3b_int8_视频放大','Seedvr2_3b_int8_图像放大','RTX_video_upscale','RTX_image_upscale','手动按分镜视频截取','sam3_图像视频-提示词遮罩分割','多视频合成分屏展示','图像4种添加水印节点','birefnet_图像移除背景','加载本地latent解码','截取视频每一帧','双图像或视频合并显示','视频转gif动图图片','加载图片合成视频','视频倒放','NLF_视频人物动作骨架获取','openpose-video-姿态检测','sdpose_视频人物姿势骨架提取','gemma4_提示词反推(图像视频音频)','图像合并成四宫格','图像分割-多宫格分割','Qwen_image2.1_图像编辑_背景移除','Qwen_image2.1_图像编辑_提示词增强','Qwen_image2.1_文生图_提示词增强','ControlNet_aux_常用样例','Qwen3-ASR-语音转文字','Qwen3-ASR-Subtitle语音转字幕','Minimax-H3提示词增强','音频转MP3格式','音频人声分离','视频-音频分离','图像嵌入文字描述'];
const details=[];
for(const name of names){const r=records.find(r=>r.name===name);assert.ok(r);const url=`http://127.0.0.1:8247/api/workflows/${r.id}`;requests.push({method:'GET',url});details.push(await(await fetch(url)).json());}
check(details.length===32&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===988,'32图988保存位置');
check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===24,'32图24源注释');
await page.goto('http://127.0.0.1:5173/connections',{waitUntil:'networkidle'});
const dialog=page.getByRole('dialog',{name:'工作流说明'});
const fixedCard=dialog.locator('.card').filter({has:page.getByText('固定版本参数说明',{exact:true})});
async function begin(name){const row=page.locator('.wf-row').filter({has:page.locator('.wf-name').filter({hasText:name})}).first();const button=row.getByRole('button',{name:'说明',exact:true});await button.focus();await page.keyboard.press('Enter');return button;}
async function loaded(){await dialog.getByText('用途与来源',{exact:true}).waitFor();await dialog.evaluate(el=>Promise.all(el.getAnimations().map(a=>a.finished)));}
for(const width of [1440,390]){
await page.setViewportSize({width,height:width===390?844:1000});
for(const d of details){
group=details.indexOf(d)<1?'new_seedvr2_video':'old_thirty_one';const b=d.doc_json.fixed_version,button=await begin(d.name);await loaded();
const overview=dialog.locator('.card').filter({has:page.getByText('用途与来源',{exact:true})});
check((await overview.innerText()).includes(b.user_overview),`${width} ${d.name}默认中文用途`);
check(!(await dialog.getByText('源图与审校记录',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}源审校默认折叠`);
check(!(await dialog.getByText('核对范围与来源依据',{exact:true}).locator('..').evaluate(el=>el.open)),`${width} ${d.name}技术范围默认折叠`);
const visible=await fixedCard.innerText();
check(!visible.includes('执行标量')&&!visible.includes('widgetId')&&!visible.includes(b.source_sha256)&&!visible.includes('UUID'),`${width} ${d.name}默认无执行计数/实现标识`);
check(visible.includes('依据固定版本整理,目标环境与实际效果未核对。'),`${width} ${d.name}默认依据限制可见`);
for(const t of ['说明未定稿','未验证实跑','未检查'])check((await dialog.innerText()).includes(t),`${width} ${d.name} ${t}`);
check(!d.is_enabled&&!d.doc_completed_at&&!d.exec_verified_at,`${width} ${d.name}停用/时间戳空`);
check(await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===b.fields.length,`${width} ${d.name}参数全保留`);
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width} ${d.name}默认无溢出`);
await dialog.locator('.drawer-body').evaluate(el=>el.scrollTop=0);
if(details.indexOf(d)<1)await page.screenshot({path:`${out}/${width}-${d.id}-default.png`});
if(details.indexOf(d)>0){await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}旧图归还焦点`);continue;}
await dialog.getByText('源图与审校记录',{exact:true}).click();
check((await overview.innerText()).includes(d.doc_json.purpose)&&(await overview.innerText()).includes(d.source_repo_path),`${width} ${d.name}原用途/源路径展开保留`);
await dialog.getByText('核对范围与来源依据',{exact:true}).click();
const flowText=await fixedCard.innerText();
for(const line of b.flow)check(flowText.includes(line),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`);
if(width===1440){await fixedCard.getByText(b.flow[2],{exact:true}).evaluate(el=>el.scrollIntoView({block:'center'}));await page.screenshot({path:`${out}/${width}-${d.id}-branch-flow.png`});}
await dialog.getByText('版本、源图与连线依据',{exact:true}).click();
check((await fixedCard.innerText()).includes(b.source_sha256)&&b.versions.every(v=>(v&&true)),`${width} ${d.name}原件摘要可展开`);
const versionText=await fixedCard.innerText();
for(const v of b.versions)check(versionText.includes(v),`${width} ${d.name}版本 ${b.versions.indexOf(v)}`);
if(details.indexOf(d)<1){
for(const f of b.fields){
const summary=fixedCard.locator(`details[data-fixed-field="${f.pointer}"] > summary`);await summary.focus();await page.keyboard.press('Enter');const box=summary.locator('..');
check(await box.evaluate(el=>el.open),`${width} ${f.node_id}.${f.field}键盘展开`);
let text=await box.innerText();check(text.includes(f.effect)&&text.includes(f.limits)&&text.includes(f.schema_default)&&text.includes(f.execution_note)&&text.includes(f.unit),`${width} ${f.node_id}.${f.field}用途/单位/范围/来源条件`);
check(await box.locator(':scope > pre').textContent()===(typeof f.value==='string'?f.value:JSON.stringify(f.value,null,2)),`${width} ${f.node_id}.${f.field}精确保留现值`);
check(!text.includes(f.pointer),`${width} ${f.node_id}.${f.field}指针默认折叠`);
await box.getByText('来源依据',{exact:true}).click();text=await box.innerText();
check(text.includes(f.pointer)&&text.includes(f.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(width===1440&&f.field==='vae_name'&&f.node_id==='66')await page.screenshot({path:`${out}/${width}-${d.id}-${f.node_id}-${f.field}.png`});
await summary.click();
}
for(const n of b.comments){const summary=dialog.getByText(`节点 ${n.node_id}`,{exact:true});await summary.click();const expected=d.doc_json.source_notes.find(x=>String(x.node_id)===n.node_id);check(await summary.locator('..').locator('pre').textContent()===JSON.stringify(expected.content,null,2),`${width}注释${n.node_id}全文`);check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width}注释${n.node_id}无溢出`);if(width===390){await summary.evaluate(el=>el.scrollIntoView({block:'start'}));await page.screenshot({path:`${out}/${width}-${d.id}-${n.node_id}-note.png`});}await summary.click();}
await dialog.getByRole('button',{name:'关闭',exact:true}).focus();await page.keyboard.press('Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}Tab焦点保留`);await page.keyboard.press('Shift+Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}ShiftTab焦点保留`);
}
await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}关闭归还焦点`);
}
}
group='shared_regressions';
for(const name of ['旧工作流回退(隔离测试夹具)','空说明回退(隔离测试夹具)']){await begin(name);await loaded();check((await dialog.innerText()).includes('隔离库旧条目回退测试'),'旧/空说明回退 '+name);await page.keyboard.press('Escape');}
// Missing summary and mismatched bindings are tested with local GET fixtures, without writes.
for(const variant of ['missing-overview','mismatched','html-summary']){
const d=structuredClone(details[0]);
if(variant==='missing-overview')delete d.doc_json.fixed_version.user_overview;
if(variant==='mismatched')d.doc_json.fixed_version={matched:false,notice:'固定版本参数说明待核对:源文件、声明版本或说明依据未匹配,未采用旧定义。'};
if(variant==='html-summary')d.doc_json.fixed_version.user_overview='<img src="https://example.invalid/forbidden">仅纯文本';
await page.route(`**/api/workflows/${d.id}`,route=>{interceptions.push({variant,url:route.request().url()});return route.fulfill({json:d});});await begin(d.name);await loaded();
if(variant==='missing-overview')check((await dialog.innerText()).includes('这张图的用途和操作重点可在下方使用步骤中查看;目标环境与实际效果仍待核对。'),'缺摘要自然中文回退');
if(variant==='mismatched')check((await dialog.innerText()).includes(d.doc_json.fixed_version.notice)&&!await dialog.getByText('核对范围与来源依据',{exact:true}).count(),'错绑定提示明确且不展示旧字段');
if(variant==='html-summary')check((await dialog.innerText()).includes(d.doc_json.fixed_version.user_overview)&&await dialog.locator('img').count()===0,'摘要HTML仅纯文本不创建图像或请求');
check(!(await dialog.innerText()).includes('undefined'),'回退不暴露undefined');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${d.id}`);
}
let release,entered,delivered;const hold=new Promise(r=>release=r),intercept=new Promise(r=>entered=r),done=new Promise(r=>delivered=r);
await page.route(`**/api/workflows/${details[0].id}`,async route=>{interceptions.push({variant:"late",url:route.request().url()});entered();await hold;await route.fulfill({json:details[0]});delivered();});
await begin(details[0].name);await intercept;await page.keyboard.press('Escape');await begin(details[1].name);await loaded();release();await done;
check((await dialog.innerText()).includes(details[1].doc_json.fixed_version.user_overview)&&await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===details[1].doc_json.fixed_version.fields.length,'迟到RTX响应不覆盖旧RTX图片摘要/7字段');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${details[0].id}`);
await page.route(`**/api/workflows/${details[0].id}`,route=>{interceptions.push({variant:'failure',url:route.request().url()});return route.fulfill({status:500,json:{detail:'隔离失败夹具'}});});await begin(details[0].name);await dialog.getByRole('alert').waitFor({timeout:20000});check(await dialog.getByRole('button',{name:'重试',exact:true}).isVisible(),'GET失败显示重试');check(await dialog.getByText('用途与来源',{exact:true}).count()===0,'读取失败隐藏旧摘要');await page.unroute(`**/api/workflows/${details[0].id}`);await dialog.getByRole('button',{name:'重试',exact:true}).click();await loaded();check((await dialog.innerText()).includes(details[0].doc_json.fixed_version.user_overview),'重试恢复摘要');await page.keyboard.press('Escape');
check(errors.length===0,'无脚本错误或禁止请求 '+JSON.stringify(errors));check(requests.every(r=>r.method==='GET'&&new URL(r.url).hostname==='127.0.0.1'&&!r.url.includes('/api/view')),'全程本地GET无写/生成/目标/历史预览请求');
const polling=requests.filter(r=>['/api/jobs','/api/events'].includes(new URL(r.url).pathname));
const fixed=requests.filter(r=>!polling.includes(r));
const frequencies=rs=>Object.fromEntries([...new Set(rs.map(r=>new URL(r.url).pathname))].sort().map(p=>[p,rs.filter(r=>new URL(r.url).pathname===p).length]));
fs.writeFileSync(`${out}/browser-results.json`,JSON.stringify({request_accounting:{fixed_count:fixed.length,fixed_paths:frequencies(fixed),polling_count:polling.length,polling_paths:frequencies(polling),polling_tolerance:1,reason:'定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。'},assertion_count:checks.length,assertionGroups,interceptions,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2));
} finally {await browser.close();}