HEL-892: document GIF and image-sequence video references

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-30 19:18:20 +08:00
co-authored by multica-agent
parent ae625ac289
commit f4c9d7179e
63 changed files with 27904 additions and 9 deletions
@@ -83,6 +83,14 @@ DEFINITIONS = {
(
"example_ComfyUI_workflows/1-语音生成/Qwen3-ASR-Subtitle语音转字幕.json"
): "a7dcac39b659f9c509785edbb324ad1fc31f5e6a2b54e59741f91d7e9054bf3b",
(
"example_ComfyUI_workflows/0-基础处理:图像合"
"并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json"
): ("a5b005d3cd4986173c59cdb73c83974b1af8bf6239e0683b4b888ee131d97e20"),
(
"example_ComfyUI_workflows/0-基础处理:图像合"
"并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json"
): ("95479f263082e525d9c43c24bca06f50c590700c91b0cc778789abf337bf8942"),
}
File diff suppressed because it is too large Load Diff
@@ -205,10 +205,12 @@ def test_ten_documents_only_gain_overview_and_new_block_is_independent():
"openpose-video-姿态检测.json",
"NLF_视频人物动作骨架获取.json",
"/视频倒放.json",
"视频转gif动图图片.json",
"加载图片合成视频.json",
)
)
]
assert len(additions) == 7
assert len(additions) == 9
for p in additions:
now[p].pop("fixed_version_document")
historical = [p for p in DEFINITIONS if p not in additions]
@@ -203,7 +203,7 @@ def test_graph_specific_semantics_and_companion():
def test_other_documents_and_block_swaps():
assert len(DEFINITIONS) == 18
assert len(DEFINITIONS) == 20
for path in DEFINITIONS:
if path == PATH:
continue
@@ -153,6 +153,10 @@ def test_real_document_and_frozen_old_thirteen_blocks():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "9dac1b4:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
for added in [
p for p in now if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json"))
]:
now[added].pop("fixed_version_document")
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json"))
@@ -162,7 +166,7 @@ def test_real_document_and_frozen_old_thirteen_blocks():
# SDPose is independently frozen against 7291887 in its own suite.
sdpose = next(p for p in now if p.endswith("sdpose_视频人物姿势骨架提取.json"))
now[sdpose].pop("fixed_version_document")
assert len(now) == 156 and len(DEFINITIONS) == 18
assert len(now) == 156 and len(DEFINITIONS) == 20
assert len([r for r in old.values() if "fixed_version_document" in r]) == 13
assert (
sum(
@@ -0,0 +1,162 @@
"""Two editorial additions: identity refusal, exact positions and media conditions."""
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/gif-images-document-evidence"
PATHS = [
next(p for p in DEFINITIONS if p.endswith(n + ".json"))
for n in ["视频转gif动图图片", "加载图片合成视频"]
]
SOURCES = [json.loads((REPO / p).read_bytes()) for p in PATHS]
REVIEWS = [review_for(p, hashlib.sha1((REPO / p).read_bytes()).hexdigest()) for p in PATHS]
FIELDS = [(i, f) for i, r in enumerate(REVIEWS) for f in r["fixed_version_document"]["fields"]]
def pointer(obj, path):
for part in path.strip("/").split("/"):
obj = obj[int(part)] if isinstance(obj, list) else obj[part]
return obj
def doc(i, source=None, review=None):
return build_document(
PATHS[i],
SOURCES[i] if source is None else source,
None,
None,
[],
REVIEWS[i] if review is None else review,
)
@pytest.mark.parametrize("i,field", FIELDS)
def test_exact_positions_and_fixed_text_citations(i, field):
value = pointer(SOURCES[i], field["pointer"])
assert (
canonical(value) == canonical(field["value"]) and type(value).__name__ == field["json_type"]
)
for k in [
"label",
"type",
"schema_default",
"unit",
"limits",
"effect",
"execution_note",
"role",
]:
assert field[k]
for k in field["evidence"]:
e = REVIEWS[i]["fixed_version_document"]["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())
assert (len(e["commit"]) == 40 and e["commit"] in e["url"]) or e.get(
"git_commit_binding"
) == "unknown"
@pytest.mark.parametrize("i,field", FIELDS)
@pytest.mark.parametrize("variant", ["saved", "type", "text"])
def test_every_position_refuses_even_recomputed_caller_digest(i, field, variant):
s, r = copy.deepcopy(SOURCES[i]), copy.deepcopy(REVIEWS[i])
b = r["fixed_version_document"]
f = next(f for f in b["fields"] if f["pointer"] == field["pointer"])
if variant == "text":
f["schema_default"] = "forged"
else:
parent, _, key = field["pointer"].rpartition("/")
target = pointer(s, parent)
target[int(key) if isinstance(target, list) else key] = (
"forged" if variant == "type" else None
)
f["value"] = pointer(s, field["pointer"])
f["json_type"] = type(f["value"]).__name__
b["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
r["caller_digest"] = hashlib.sha256(canonical(b)).hexdigest()
assert not doc(i, s, r)["fixed_version"]["matched"]
@pytest.mark.parametrize("i", [0, 1])
@pytest.mark.parametrize(
"kind",
[
"edge",
"mode",
"version",
"history",
"missing",
"null",
"list",
"object",
"swap",
"source_sha",
"citation",
],
)
def test_graph_history_shape_and_binding_refuse(i, kind):
s, r = copy.deepcopy(SOURCES[i]), copy.deepcopy(REVIEWS[i])
b = r["fixed_version_document"]
if kind == "edge":
s["links"][0][1] = 999
elif kind == "mode":
s["nodes"][0]["mode"] = 2
elif kind == "version":
s["nodes"][0]["properties"]["ver"] = "forged"
elif kind == "history":
s["nodes"][0]["widgets_values"]["videopreview"]["params"]["filename"] = "forged"
elif kind in ["missing", "null", "list", "object"]:
values = s["nodes"][0]["widgets_values"]
if kind == "missing":
del values["videopreview"]
else:
values["videopreview"] = {"null": None, "list": [], "object": {}}[kind]
elif kind == "swap":
r = copy.deepcopy(REVIEWS[1 - i])
elif kind == "source_sha":
r["source_sha"] = "0" * 40
else:
b["sources"][0]["sha256"] = "0" * 64
b["canonical_sha256"] = hashlib.sha256(canonical(s)).hexdigest()
r["caller_digest"] = hashlib.sha256(canonical(b)).hexdigest()
assert not doc(i, s, r)["fixed_version"]["matched"]
def test_actual_paths_counts_old_objects_and_media_conditions():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ae625ac:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
for i, p in enumerate(PATHS):
b = now[p].pop("fixed_version_document")
d = doc(i)
assert d["fixed_version"]["matched"] and len(b["fields"]) == [26, 34][i]
assert b["comments"] == [] and b["counts"]["history_objects"] == [2, 3][i]
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
assert review_for(p, "0" * 40) is None
for e in SOURCES[i]["links"]:
nodes = {n["id"]: n for n in SOURCES[i]["nodes"]}
assert e[0] in nodes[e[1]]["outputs"][e[2]]["links"]
assert nodes[e[3]]["inputs"][e[4]]["link"] == e[0] and e[5] == "IMAGE"
assert all(step in d["steps"] for step in b["steps"])
assert now == old and len(DEFINITIONS) == 20
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
assert len(blocks) == 18 and sum(len(b["fields"]) for b in blocks) == 516
gif = doc(0)["fixed_version"]
images = doc(1)["fixed_version"]
assert "源未声明版本,以下固定版本仅作参考" in gif["user_overview"]
assert "62毫秒" in next(f["effect"] for f in gif["fields"] if f["field"] == "frame_rate")
assert "mode4且无连线" in images["user_overview"]
assert "false不关闭独立首帧PNG" in images["user_overview"]
for b in [gif, images]:
assert "音频未接" in b["user_overview"] and not b["counts"]["final_prompt_constructed"]
@@ -171,6 +171,10 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "27e6d56:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
for added in [
p for p in now if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json"))
]:
now[added].pop("fixed_version_document")
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json"))
@@ -183,7 +187,7 @@ def test_only_two_reviews_change_and_all_old_blocks_preserved():
# Gemma addition is independently protected against 9dac1b4 in its own suite.
gemma = next(p for p in now if p.endswith("gemma4_提示词反推(图像视频音频).json"))
now[gemma].pop("fixed_version_document")
assert len(DEFINITIONS) == 18
assert len(DEFINITIONS) == 20
assert (
sum(
len(r["fixed_version_document"]["fields"])
@@ -260,10 +260,14 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "7e76510:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
for added in [
p for p in now if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json"))
]:
now[added].pop("fixed_version_document")
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 18
assert now == old and len(DEFINITIONS) == 20
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]
@@ -274,6 +278,8 @@ def test_exact_topology_counts_modes_unknowns_and_old_objects():
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for p in DEFINITIONS:
if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json")):
continue
if p == PATH or p.endswith("/视频倒放.json"):
continue
r = copy.deepcopy(REVIEW)
@@ -202,12 +202,16 @@ def test_exact_document_topology_and_preservation():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO))
current = json.loads((REPO / resource).read_bytes())
for added in [
p for p in current if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json"))
]:
current[added].pop("fixed_version_document")
reverse = next(p for p in current if p.endswith("/视频倒放.json"))
current[reverse].pop("fixed_version_document")
nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json"))
current[nlf].pop("fixed_version_document")
assert current[PATH].pop("fixed_version_document") == BLOCK
assert current == previous and len(DEFINITIONS) == 18
assert current == previous and len(DEFINITIONS) == 20
old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r]
assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394
assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note
@@ -215,6 +219,8 @@ def test_exact_document_topology_and_preservation():
assert d["dependencies"]["check_state"] == "unchecked"
assert not doc(path="untrusted.json").get("fixed_version")
for p in DEFINITIONS:
if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json")):
continue
if p in [PATH, nlf, reverse]:
continue
r = copy.deepcopy(REVIEW)
@@ -213,8 +213,12 @@ def test_exact_graph_and_original_seventeen_unchanged():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
for added in [
p for p in now if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json"))
]:
now[added].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 18
assert now == old and len(DEFINITIONS) == 20
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
assert len(blocks) == 17 and sum(len(b["fields"]) for b in blocks) == 495
assert (
@@ -223,6 +227,8 @@ def test_exact_graph_and_original_seventeen_unchanged():
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
assert d["dependencies"]["check_state"] == "unchecked"
for p in DEFINITIONS:
if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json")):
continue
if p == PATH:
continue
r = copy.deepcopy(REVIEW)
@@ -157,6 +157,10 @@ def test_real_document_and_frozen_old_fourteen_blocks():
)
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
now = json.loads((REPO / resource).read_bytes())
for added in [
p for p in now if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json"))
]:
now[added].pop("fixed_version_document")
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
now[reverse].pop("fixed_version_document")
nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json"))
@@ -166,7 +170,7 @@ def test_real_document_and_frozen_old_fourteen_blocks():
assert not doc(review=review)["fixed_version"]["matched"]
now[openpose].pop("fixed_version_document")
old = json.loads(subprocess.check_output(["git", "show", "7291887:" + resource], cwd=REPO))
assert len(now) == 156 and len(DEFINITIONS) == 18
assert len(now) == 156 and len(DEFINITIONS) == 20
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]
@@ -0,0 +1 @@
__pycache__/
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,24 @@
{
"total": 155,
"audit_scope": "current_delivery",
"source_files": 156,
"target_files": 155,
"user_excluded": 1,
"source_structure_purpose_partially_reviewed": 155,
"full_documents_completed": 0,
"files_with_selected_named_fields_reviewed": 41,
"selected_named_fields_reviewed": 1217,
"real_executions": 0,
"states": {
"pending_check": 16,
"needs_conversion": 139
},
"named_values_preserved": 1217,
"unnamed_widget_nodes": 3660,
"semantic_batch_files": 139,
"semantic_batch_without_named_fields": 114,
"semantic_batch_named_fields": 490,
"named_values_without_manual_field_review": 0,
"named_values_without_verified_units_ranges_effects": 1217,
"scope_limit": "人工结论与机械原值清单分开;源语义局部审校非完整说明定稿"
}
@@ -0,0 +1,728 @@
{
"base": "ae625ac289f4bc2eb2c989e24d71f60e6548d90a",
"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_eighteen_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,710 @@
"Two source-bound Chinese reference documents; static text only."
from __future__ import annotations
import hashlib
import json
from pathlib import Path
REPO = Path(__file__).resolve().parents[3]
OUT = Path(__file__).resolve().parent
PREFIX = "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/"
PATHS = [PREFIX + n + ".json" for n in ["视频转gif动图图片", "加载图片合成视频"]]
def canonical(value):
return json.dumps(value, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode()
def build(index=0):
path = PATHS[index]
raw = (REPO / path).read_bytes()
graph = json.loads(raw)
refs = []
def ref(folder, key, file, first, last, claim):
base = OUT.parent / folder
entries = json.loads((base / "sources.json").read_bytes())["sources"]
e = next(e for e in entries if e["id"] == key and e["file"] == file)
data = (base / e["local_file"]).read_bytes()
assert hashlib.sha256(data).hexdigest() == e["sha256"]
assert 1 <= first <= last <= len(data.decode().splitlines())
refs.append(
{
**e,
"local_file": "../" + folder + "/" + e["local_file"],
"lines": [first, last],
"claim": claim,
}
)
return len(refs) - 1
def v(file, a, b, claim):
return ref("reverse-reference", "vhs", file, a, b, claim)
load = v(
"videohelpersuite/load_video_nodes.py", 24, 168, "格式约束、尺寸对齐与采样/跳过/上限实现"
)
loadrun = v(
"videohelpersuite/load_video_nodes.py", 293, 420, "加载内存限制及返回;未执行媒体读取"
)
loadschema = v(
"videohelpersuite/load_video_nodes.py", 423, 521, "上传及路径加载schema、输出和验证条件"
)
combine = v("videohelpersuite/nodes.py", 234, 340, "合成输入schema、输出与目录选择")
gif = v(
"videohelpersuite/nodes.py",
340,
420,
"首帧PNG及Pillow GIF分支:duration取整、loop直传、pingpong条件",
)
video = v(
"videohelpersuite/nodes.py", 420, 625, "仅视频分支的格式、对齐、循环、混流条件与返回预览"
)
meta = v("videohelpersuite/nodes.py", 140, 163, "视频元数据临时文件开关及FFmpeg条件")
fmt = v("video_formats/h264-mp4.json", 1, 15, "h264-mp4默认、像素格式和CRF范围")
registry = v(
"videohelpersuite/nodes.py", 1023, 1032, "VHS_LoadVideo/Path、LoadImagesPath和Combine注册"
)
restore = v("web/js/VHS.core.js", 41, 168, "包内按键恢复与回调;不证明未知前端或UE的恢复顺序")
dyn = v("web/js/VHS.core.js", 648, 824, "加载格式回调及上传选择控件")
preview = v("web/js/VHS.core.js", 915, 970, "历史预览控件仅作纯文本")
fmtjs = v("web/js/VHS.core.js", 1222, 1282, "合成格式改变时动态重建额外控件")
utils = v("videohelpersuite/utils.py", 20, 56, "BIGMAX、DIMMAX及floatOrInt")
sort = v(
"videohelpersuite/utils.py", 137, 157, "目录字典排序、普通文件/扩展名筛选,先跳过再间隔抽取"
)
images = ref(
"gif-images-reference",
"vhs",
"videohelpersuite/load_images_nodes.py",
15,
206,
"图片目录schema/校验/筛选/上限/EXIF/多数尺寸对齐/遮罩输出",
)
scale = ref(
"gif-images-reference",
"layer",
"py/image_scale_by_aspect_ratio_v2.py",
8,
184,
"缩放schema顺序、原图比例、目标尺寸、采样及输出注册",
)
fit = ref(
"gif-images-reference",
"layer",
"py/imagefunc.py",
591,
617,
"letterbox居中填色、crop居中裁切、fill直接拉伸",
)
rounding = ref(
"gif-images-reference", "layer", "py/imagefunc.py", 1967, 1973, "宽高分别向上取整到所选倍数"
)
layerreg = ref(
"gif-images-reference",
"layer",
"__init__.py",
29,
48,
"扫描py模块并合并注册;未导入或执行上游",
)
for folder, key, file in [
("reverse-reference", "vhs", "LICENSE"),
("gif-images-reference", "layer", "LICENSE"),
]:
base = OUT.parent / folder
e = next(
e
for e in json.loads((base / "sources.json").read_bytes())["sources"]
if e["id"] == key and e["file"] == file
)
ref(
folder,
key,
file,
1,
len((base / e["local_file"]).read_text().splitlines()),
"准确版本许可原文",
)
specs = {}
def spec(cls, name, label, typ, default, unit, limits, effect, evidence, role="scalar"):
specs[cls, name] = dict(
field=name,
label=label,
type=typ,
schema_default=default,
unit=unit,
limits=limits,
effect=effect,
evidence=evidence,
role=role,
)
load_specs = [
(
"video",
"视频文件引用",
"COMBO" if index == 0 else "STRING",
"动态input枚举,无固定默认" if index == 0 else "未声明默认;placeholder为路径示例",
"文件引用",
"上传枚举webm/mp4/mkv/gif/mov;路径加载按validate_path条件",
"只保存文件名或路径;不读取、不证明存在或有音轨。",
),
(
"force_rate",
"加载采样帧率",
"FLOAT/INT(floatOrInt)",
"0",
"帧/秒",
"0~60,step1;0不强制",
"保存16为采样目标而非原片帧率;0才按源帧时间采样。后续合成帧率独立,不能保证时长。",
),
(
"custom_width",
"自定义加载宽度",
"INT",
"0",
"像素",
"0~8192;0不指定",
"宽高均0先取媒体尺寸,仍按AnimateDiff的8倍数约束对齐,不保证原尺寸。",
),
(
"custom_height",
"自定义加载高度",
"INT",
"0",
"像素",
"0~8192;0不指定",
"单边指定则计算另一边;两边0仍受加载格式对齐条件限制,实际尺寸未知。",
),
(
"frame_load_cap",
"加载帧数上限",
"INT",
"0",
"帧",
"0~2**53-1,step1;0不设此上限",
"96表示至多加载96个采样帧;不是保证96帧或保证原片时长。0仍受素材、内存和格式条件限制。",
),
(
"skip_first_frames",
"跳过起始采样帧",
"INT",
"0",
"采样帧",
"0~2**53-1,step1",
"0不跳过;按采样后的计数,不当原片帧编号。",
),
(
"select_every_nth",
"间隔抽取采样帧",
"INT",
"1",
"间隔",
"1~2**53-1,step1",
"1保留每个采样位置;增大后间隔取帧,实际总帧数未知。",
),
(
"format",
"加载格式约束",
"COMBO",
"AnimateDiff",
"格式名",
"内置None/AnimateDiff/Mochi/LTXV/Hunyuan/Cosmos/Wan,目标动态列表未知",
"AnimateDiff内置target_rate"
"8与dim8;Python尺寸约束不等于强制重写"
"保存采样率。包JS回调有reset条件,真实恢复"
"行为未知。",
),
]
for cls in ["VHS_LoadVideo", "VHS_LoadVideoPath"]:
for name, label, typ, default, unit, limits, effect in load_specs:
if cls.endswith("Path"):
if name == "video":
typ, default = "STRING", "无固定默认;placeholder是路径示例"
effect = "本图节点5为mode4且无连线,不是当前有效输入。参考实现条件:" + effect
spec(
cls,
name,
label,
typ,
default,
unit,
limits,
effect,
[load, loadrun, loadschema, utils, restore, dyn, registry],
)
spec(
"VHS_LoadVideo",
"choose video to upload",
"上传选择保存状态",
"前端状态",
"无服务端默认",
"选择状态",
"不是video参数或文件本身",
"源保存image为上传按钮状态;不证明有上传文件,不作为最终运行输入。",
[dyn, restore],
"frontend_control",
)
image_specs = [
(
"directory",
"图片目录引用",
"STRING",
"无默认;placeholder是路径示例",
"目录",
"需目录存在且校验通过;实际可达性未知",
(
"保存E盘目录,不读取。仅第一层普通文件按文件名字符串排序,非自然数字排序"
",不递归。扩展名小写后匹配外部FolderOfImages.IMG_EX"
"TENSIONS;该常量对应核心版本未声明,具体可接受后缀未知。"
),
),
(
"image_load_cap",
"图片加载上限",
"INT",
"0",
"张",
"0~2**53-1,step1",
"0不设控件数量上限;正值在排序、筛选、跳过、间隔抽取后截取,不保证全部图片可加载。",
),
(
"skip_first_images",
"跳过开头图片",
"INT",
"0",
"张",
"0~2**53-1,step1",
"在排序及普通文件/扩展名筛选后跳过前若干张,0不跳过。",
),
(
"select_every_nth",
"每隔若干张取一张",
"INT",
"1",
"间隔",
"1~2**53-1,step1",
"在跳过后按切片[0::n]抽取,最后应用正数image_load_cap;保存1逐张保留。",
),
]
for args in image_specs:
spec("VHS_LoadImagesPath", *args, [images, sort, utils, registry])
combine_specs = [
(
"frame_rate",
"合成播放帧率",
"FLOAT/INT(floatOrInt)",
"8",
"帧/秒",
"min1,step1;schema未声明max",
"GIF保存16:Pillow每帧duration=round(1000/16)=62毫秒;不保证实际播放器精度或原片时长。"
if index == 0
else "保存24用于FFmpeg输入播放率;每张选中图片"
"作为帧,不是读取图片原有FPS,不保证真实成功输"
"出。",
),
(
"loop_count",
"合成循环次数",
"INT",
"0",
"循环",
"0~100,step1",
"GIF分支loop=0直传Pillow,按GIF"
"循环约定表示持续循环;非FFmpeg视频分支lo"
"op拼帧。实际播放器行为未知。"
if index == 0
else "视频分支仅正数才追加loop滤镜,0不额外循环;不把GIF循环0规则套视频。",
),
(
"filename_prefix",
"输出文件名前缀",
"STRING",
"AnimateDiff",
"路径前缀",
"无schema长度范围;实际目录权限未知",
"源前缀参与保存路径和计数文件名,不等于现有文件或当前产物。",
),
(
"format",
"合成输出格式",
"COMBO",
"image/gif为首枚举;动态格式无唯一目标默认",
"格式名",
"image/gif、image/webp及动态FFmpeg格式",
"保存image/gif走Pillow动画分支,disposal=2,不应用h264像素格式/CRF/视频混流逻辑。"
if index == 0
else "保存video/h264-mp4走FFmpeg/"
"libx264模板;本地依赖、编码器和动态选项未"
"知,不代表已运行。",
),
(
"pix_fmt",
"视频像素格式",
"COMBO",
"首项yuv420p",
"像素格式",
"yuv420p / yuv420p10le",
"保存yuv420p交编码模板;输出维度不对齐时视"
"频分支还会按dim_alignment(默认2)"
"补边,不能保证素材当前尺寸。",
),
(
"crf",
"H264质量参数",
"INT",
"19",
"CRF",
"0~100,step1(模板schema);编码器实际可接受范围另待核",
"保存19传给libx264的-crf;一般减小提"
"高质量并可能增大体积,实际效果/可用范围和耗时未"
"测。schema100不等于编码器接受100。",
),
(
"save_metadata",
"视频元数据开关",
"BOOLEAN",
"true",
"布尔",
"true/false;只影响视频元数据分支",
(
"保存false跳过视频元数据临时文件/FFmpeg metadata条件"
"分支,不关闭前面独立的首帧workflow PNG;VHS_Metada"
"taImage默认true,实际运行可能写PNG。"
),
),
(
"trim_to_audio",
"按音频条件裁切",
"BOOLEAN",
"false",
"布尔",
"只有提供有效音频时才进入混流条件",
"源false,但audio未接,不能说关闭声音或"
"已保留声音;有音频时false保留apad且仍用"
"-shortest,真实同步未验证。",
),
(
"pingpong",
"追加往返帧",
"BOOLEAN",
"false",
"布尔",
"true/false;图像格式不支持meta_batch",
"保存false不追加反向帧。GIF在Pillow"
"分支按条件to_pingpong;视频分支有独立"
"meta_batch限制。",
),
(
"save_output",
"保存目录选择",
"BOOLEAN",
"true",
"布尔",
"true输出目录,false临时目录;均可能写文件",
"保存true选择output目录;实际执行可写正"
"式GIF/视频与独立首帧PNG。仅GET文本浏览"
"不会执行这些写入。",
),
]
for args in combine_specs:
spec("VHS_VideoCombine", *args, [combine, gif, video, meta, fmt, fmtjs, restore])
scale_specs = [
(
"aspect_ratio",
"目标宽高比",
"COMBO",
"未显式default,首项original",
"比例",
"original/custom/1:1/3:2/4:3/16:9/2:3/3:4/9:16",
"original采用第一张有效图像宽高比;不使用下面1:1自定义比例值,不保证所有原图片同尺寸。",
),
(
"proportional_width",
"自定义比例宽",
"INT",
"1",
"比例份数",
"1~1e8,step1",
"仅aspect_ratio=custom时参与宽/高比,original下保存1不强制方图。",
),
(
"proportional_height",
"自定义比例高",
"INT",
"1",
"比例份数",
"1~1e8,step1",
"仅custom时参与比例;original下保存1不代表目标高1像素。",
),
(
"fit",
"适应方式",
"COMBO",
"未显式default,首项letterbox",
"方式",
"letterbox / crop / fill",
"letterbox按比例缩放后居中填背景;cro"
"p居中裁切再缩放;fill直接拉伸。实际留边取决"
"于比例及尺寸取整。",
),
(
"method",
"缩放采样方法",
"COMBO",
"未显式default,首项lanczos",
"方法",
"lanczos/bicubic/hamming/bilinear/box/nearest",
"保存lanczos选择Pillow LANCZOS;实际质量、速度及Pillow兼容状态未测。",
),
(
"round_to_multiple",
"尺寸向上取整倍数",
"COMBO",
"未显式default,首项8",
"像素倍数",
"字符串8/16/32/64/128/256/512/None",
"保存字符串8;先计算整数目标宽高,再分别向上取整到8倍数,非四舍五入。None才跳过此步。",
),
(
"scale_to_side",
"缩放依据边",
"COMBO",
"未显式default,首项None",
"边或总像素条件",
"None/longest/shortest/width/height/total_pixel(kilo pixel)",
"longest按原图比例选择长边赋scale_t"
"o_length,另一边int截断,然后两边按倍"
"数向上取整;实际方向依赖图片。",
),
(
"scale_to_length",
"目标边长度",
"INT",
"1024",
"像素(longest模式)",
"4~1e8,step1;total_pixel模式单位为千像素",
"保存" + ("480" if index == 0 else "1080") + "作为longest初始目标;另一边按比例int计"
"算,再向上取8倍数,不能当精确最终宽高或模型放大"
"倍率。",
),
(
"background_color",
"留边背景颜色",
"STRING",
"#000000",
"颜色字符串",
"schema无校验枚举;Pillow解析条件",
"保存黑色,letterbox新画布使用该背景并居中贴入;无可见留边时不保证出现黑边。",
),
]
cls = "LayerUtility: ImageScaleByAspectRatio V2"
for args in scale_specs:
spec(cls, *args, [scale, fit, rounding, layerreg])
for cls in ["VHS_LoadVideo", "VHS_LoadVideoPath", "VHS_LoadImagesPath", "VHS_VideoCombine"]:
spec(
cls,
"videopreview",
"历史预览完整对象",
"前端历史状态",
"无服务端默认",
"完整结构对象",
"原hidden/paused/params原样保留,不递归计位置",
"只代表历史缓存;E盘路径、文件名、workflo"
"w PNG、FPS及暂停状态均非当前产物/可达/"
"执行证据。不读取媒体,不请求/api/view。",
[preview, restore],
"frontend_history",
)
fields = []
scale_names = [s[0] for s in scale_specs]
for i, n in enumerate(graph["nodes"]):
values = n["widgets_values"]
pairs = values.items() if isinstance(values, dict) else enumerate(values)
for key, value in pairs:
name = key if isinstance(values, dict) else scale_names[key]
s = specs[n["type"], name].copy()
if index == 1 and n["id"] == 5 and name == "force_rate":
s["effect"] = (
"mode4且无连线,不作当前有效输入;保存0在参"
"考实现表示不强制重采样,不代表当前图片链帧率。"
)
if index == 1 and n["id"] == 5 and name == "frame_load_cap":
s["effect"] = (
"mode4且无连线,不作当前有效输入;保存0在参"
"考实现不设此控件帧数上限,仍受媒体/内存/格式限"
"制。"
)
fields.append(
{
**s,
"node_id": str(n["id"]),
"definition_node_id": str(n["id"]),
"class_type": n["type"],
"scope": "root",
"pointer": f"/nodes/{i}/widgets_values/{key}",
"value": value,
"json_type": type(value).__name__,
"execution_note": f"源mode={n['mode']};"
+ (
"旁路且无物理连线,不作活动输入。"
if n["mode"] == 4
else "活动IMAGE链保存态。"
)
+ (
"位置数组仅按明确参考schema顺序解读,不是序列化或最终prompt证"
"明;无frontendVersion,UE身份/钩子次序/动态选项与实际"
"效果未知。"
),
}
)
assert len(fields) == [26, 34][index]
overview = (
(
"这张图把视频采样画面缩放后合成GIF动图,音频未接,不保留声音。加载保存"
"16fps、最多96采样帧,缩放按原比例长边480再向上对齐8倍数,合成"
"16fps、循环0。96与16不能保证原片时长或最终产物。源未声明版本,"
"以下固定版本仅作参考;历史预览不是当前产物,未实跑、转换保持关闭。"
)
if index == 0
else (
"这张图把目录中的图片按文件名排序、筛选后逐张缩放并以24fps合成为H2"
"64视频,音频未接。活动路径是图片加载1→缩放6→合成2;视频加载5为m"
"ode4且无连线,不是当前输入。长边保存1080后再对齐8倍数,元数据f"
"alse不关闭独立首帧PNG。E盘目录未读取,插件固定源码仅作参考,目标"
"环境未知、未实跑、转换保持关闭。"
)
)
flow = [
overview,
"只有2条IMAGE物理边;audio/meta_"
"batch/vae均未接,mask未接,额外输出"
"未接不当有线。无源注释、无子图、无模型节点,不编"
"模型依赖或声音。",
(
"图片加载参考实现:字符串字典序而非自然数字排序;仅第一层普通文件,经外部"
"IMG_EXTENSIONS筛选,先跳过再每n张抽取,正数上限最后截取。"
"实际后缀集合来自未声明版本核心,未知;不会读取保存目录来验证。EXIF转"
"置后取数量最多的尺寸,不同尺寸用lanczos/center对齐;透明通"
"道生成遮罩,但本图遮罩未接。"
),
(
"GIF只走Pillow图像分支:16fps时round(1000/16)"
"=62ms,loop0为GIF循环约定,pingpong=false不追"
"加往返;不套视频分支的loop滤镜/CRF/音频。保存true选择输出目"
"录,首帧PNG由独立VHS_MetadataImage控制。"
)
if index == 0
else (
"视频保存24fps/h264-mp4/yuv420p/crf19;loo"
"p0不追加循环。save_metadata=false跳过视频元数据临时"
"分支,不影响独立首帧workflow PNG,VHS_MetadataI"
"mage未显式false时默认写入。trim_to_audio=fals"
"e在无音频连接时不产生音轨;pingpong=false不追加往返。"
),
(
"缩放参考实现:original采用第一图宽高比,比例宽高1/1仅cust"
"om有效;longest按横竖方向选择目标边,另一边int截断,再宽高分"
"别向上取整到字符串8的倍数;letterbox居中填色,lanczos采"
"样。实际宽高/留边/性能未知,不编模型超分效果。"
),
"所有历史预览完整对象及上传状态均只纯文本;不读取"
"E盘路径、不调用预览或媒体接口。保存FPS、wo"
"rkflow PNG、旧输出名不证明当前输出。",
(
"本图无frontendVersion;VHS包内KV恢复与格式动态回调仅"
"作参考,LayerStyle位置数组映射不证明真实恢复顺序,UE空映射不"
"等于无改写。目标安装版本、钩子顺序、选项、媒体/图片、ffmpeg/li"
"bx264/Pillow及目录权限未知。"
),
]
if index == 0:
flow = [line for line in flow if not line.startswith("图片加载参考实现:")]
if index == 1:
flow.append(
(
"节点5所有保存值均历史旁路:mode4且所有输出links=null、无"
"物理边。视频路径、force_rate0、AnimateDiff和暂停预"
"览不覆盖当前图片输入,不假定未知前端版本的旁路恢复行为。"
)
)
flow += ["源物理边:" + json.dumps(e, ensure_ascii=False) for e in graph["links"]]
flow += [
f"节点{n['id']} {n['type']} mode={n['mode']};"
f"保存位置={len(n['widgets_values'])};原properties="
+ json.dumps(n["properties"], ensure_ascii=False)
for n in graph["nodes"]
]
versions = [
(
"源未声明版本,以下固定版本仅作参考:VHS使用官方registry1.7"
".7准确包;LayerStyle使用4f4d5cbbe40e030a5a"
"0bb474fb65c4032585bc3c。"
)
if index == 0
else (
"源节点VHS声明1.7.7;LayerStyle6声明4f4d5cbbe"
"40e030a5a0bb474fb65c4032585bc3c,按各自原"
"件解释,不替换为其他版本。"
),
(
"VHS1.7.7发布包SHA256:f845b43edc8342439c"
"42809524669f8aceecfb9eca946d660e3513"
"64d341d9b1;Git提交绑定未知,不借1.7.9或其他提交补证。"
),
"无frontendVersion,不借其他前端版"
"本证明恢复;UE空映射无版本与次序证据,目标安装"
"与实际状态未知。",
]
return dict(
source_path=path,
source_sha1=hashlib.sha1(raw).hexdigest(),
source_sha256=hashlib.sha256(raw).hexdigest(),
canonical_sha256=hashlib.sha256(canonical(graph)).hexdigest(),
notice=(
"源未声明版本,以下固定版本仅作参考;" if index == 0 else "声明版本固定源码仅作参考;"
)
+ "音频未接、历史缓存非产物,未实跑、转换保持关闭。",
user_overview=overview,
versions=versions,
counts=dict(
saved_fields=len(fields),
scalar_saved_positions=len(fields) - [2, 3][index],
history_objects=[2, 3][index],
source_nodes=len(graph["nodes"]),
physical_edges=2,
source_notes=0,
linked_saved_fields=0,
frontend_only=[3, 3][index],
final_scalars=0,
final_prompt_constructed=False,
),
fields=fields,
sources=refs,
comments=[],
flow=flow,
flow_evidence=list(range(len(refs))),
zero_saved_nodes=[],
steps=[
overview,
"素材要求:"
+ (
"需可读取的视频;此处仅保存引用,未上传/读取。"
if index == 0
else "需可读取的图片目录和有序文件名;此处不列目录、不验证可达。"
),
"操作1:先核安装版本、输入素材和两条IMAGE链;保持停用,不把历史预览作当前结果。",
"操作2:核加载采样/图片排序,再核比例、倍数、l"
"ongest目标和合成播放率;仅后续获准实跑才验"
"证尺寸与时长。",
"常见问题:无声音因音频未接;尺寸变化须核比例与向"
"上取整;图片顺序异常先核字符串排序;元数据fal"
"se仍可能写首帧PNG;旧预览不代表本次输出。",
"目标环境、动态选项、UE次序、输出效果未知;本轮"
"不执行插件/媒体、不构造prompt,未定稿/未"
"实跑。",
],
)
@@ -0,0 +1,250 @@
[
{
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
"sha256": "d7ac67d01746e87cb47a6e6b191565939a031d60e2a2c1efe1879d2e4bfedf9a"
},
{
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
"sha256": "3b9913cb755fbececca2cc66270c5be206e2c6746eef2fbb89e4696a337e08db"
},
{
"path": "calliope-backend/tests/test_background_fixed_document.py",
"sha256": "095bbc4a5c18e0ca615cbc515ffee78c34c6c88bf2dcdd9afd2cdca5c955c155"
},
{
"path": "calliope-backend/tests/test_controlnet_fixed_document.py",
"sha256": "3fcb9907189392f9634a5a553b9622a2a4a6b6854da44fd11683484857538f11"
},
{
"path": "calliope-backend/tests/test_gemma_fixed_document.py",
"sha256": "c37d677bcf5a9ae179ef691a627e26ad1208328aeacfaa0c72fdea63cce6ce2d"
},
{
"path": "calliope-backend/tests/test_gif_images_fixed_document.py",
"sha256": "b75b7f787bf29709e8ce78ebeb7bc8fcf2ea91bda2057b3d47e288622378361d"
},
{
"path": "calliope-backend/tests/test_grid_fixed_document.py",
"sha256": "4d9e6aaf362a3aae27a25fe7aa43a1522dfac425cc5249a64dae192c30931fe0"
},
{
"path": "calliope-backend/tests/test_nlf_fixed_document.py",
"sha256": "e3288056b57af0c0bd98a39634608bbd033f56b50a9ba00a7529ef4e1f9dc5f7"
},
{
"path": "calliope-backend/tests/test_openpose_fixed_document.py",
"sha256": "dc76131b75ee1164e300f05b15e0dd60d242b9cf4cdb51d7972489c827eae5f8"
},
{
"path": "calliope-backend/tests/test_reverse_fixed_document.py",
"sha256": "887b9f7d38f62c2ec5fee830fa66d92620d2cfacd2fc1008e4b721f25a6ca07b"
},
{
"path": "calliope-backend/tests/test_sdpose_fixed_document.py",
"sha256": "c34cd674c97d2ce9397296e1ff40570726d1c6e100d74295330ee17ae1cd6b81"
},
{
"path": "docs/hel-892/gif-images-document-evidence/.gitignore",
"sha256": "32dae3052f331ee34d628ef535709b301259a45df7c7522c4d35dcf49873f00b"
},
{
"path": "docs/hel-892/gif-images-document-evidence/actual-加载图片合成视频.json",
"sha256": "c373b54ae9e6fd5df3154c2c560d15b4b1047392d1192a1d2428fa0e2b1987f2"
},
{
"path": "docs/hel-892/gif-images-document-evidence/actual-视频转gif动图图片.json",
"sha256": "685cf5f9bc2c79c25c522cfc2b9578e4ba8aaa0a33470c92eeba137d3f207045"
},
{
"path": "docs/hel-892/gif-images-document-evidence/audit-summary.json",
"sha256": "b79c3f138241cc4c82f8530637349ec411fc8bd92de0668a07e2a88c4a2cbb7a"
},
{
"path": "docs/hel-892/gif-images-document-evidence/boundaries.json",
"sha256": "410324719d1e23ee361dd661a875348fc5a539f6b09464f456aca2ce2677514e"
},
{
"path": "docs/hel-892/gif-images-document-evidence/browser-initial.txt",
"sha256": "de1301d48f43e45dc763a83fabf2f324f626ac5a523d59e350943266cf03607f"
},
{
"path": "docs/hel-892/gif-images-document-evidence/browser-results.json",
"sha256": "4816a05f7d302a0941f2f80391608f8ff1f8483abcde669c7ac30da13bdbcb27"
},
{
"path": "docs/hel-892/gif-images-document-evidence/browser.txt",
"sha256": "de1301d48f43e45dc763a83fabf2f324f626ac5a523d59e350943266cf03607f"
},
{
"path": "docs/hel-892/gif-images-document-evidence/build.txt",
"sha256": "c00444fef525c4c1ed8a45e13530a1c95be11554e0ee19ff95f40e5dab717cee"
},
{
"path": "docs/hel-892/gif-images-document-evidence/build_definition.py",
"sha256": "158eefcb96fb25ef1df2008f8d5c9bdadd1a8c58eb91a4fce2727bbd8d6d56c4"
},
{
"path": "docs/hel-892/gif-images-document-evidence/definition-0.json",
"sha256": "8285e1f745e09a0e61ae7e8cb6939f4cb81942586df354cc441ff8459d054eb4"
},
{
"path": "docs/hel-892/gif-images-document-evidence/definition-1.json",
"sha256": "3de7172b6221386be2330aaa9bb89bc7985b87560b16c17efbbb94d7388ca0ab"
},
{
"path": "docs/hel-892/gif-images-document-evidence/delivery-summary.md",
"sha256": "cec5f8553c6403fd0eb3e6e6e8ef85427966087cea60131f166174f9d3c95102"
},
{
"path": "docs/hel-892/gif-images-document-evidence/diff-check.txt",
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
{
"path": "docs/hel-892/gif-images-document-evidence/fixed-source-index.json",
"sha256": "84d0987c49449e38bdd25427d36d12b6f013a370b1af26e2cceb433468174eb3"
},
{
"path": "docs/hel-892/gif-images-document-evidence/format.txt",
"sha256": "ff581aaa8f1b2a77e28a682a7cae7b738f926730737e49664d06c810bcd5aa03"
},
{
"path": "docs/hel-892/gif-images-document-evidence/import-protection.json",
"sha256": "a5a35026937157a184cd06e48aad7d5807454f657a78365bf2b4c3eba24a5d26"
},
{
"path": "docs/hel-892/gif-images-document-evidence/js-syntax.txt",
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
{
"path": "docs/hel-892/gif-images-document-evidence/lint-initial.txt",
"sha256": "4323380df93df5fb6adac2f346059a16db7ab5d24e9760260041a8f3574323c3"
},
{
"path": "docs/hel-892/gif-images-document-evidence/lint.txt",
"sha256": "82b3e6a6c090a57601d22943bd23fca9218d1031dbe5a7b754092f9a156b4f18"
},
{
"path": "docs/hel-892/gif-images-document-evidence/package-check.json",
"sha256": "e0328fc6f424d381ed7f9a4f63032bbfc729c33b108c47fb88cf0d83b68ebb84"
},
{
"path": "docs/hel-892/gif-images-document-evidence/pins.json",
"sha256": "9e9164ff4c51d1670324775abc26ab7ea10d118297cb74fa464d390dbed0358a"
},
{
"path": "docs/hel-892/gif-images-document-evidence/pr-before.json",
"sha256": "9ec58f9f2b87cdfb660daae627092f3dcfb5c0c6049650d019e5d3a560300fdf"
},
{
"path": "docs/hel-892/gif-images-document-evidence/rebuild.py",
"sha256": "9f8a200079459b9e204c9d42190b6c672cb077fc235a44e6363332c6bd03941b"
},
{
"path": "docs/hel-892/gif-images-document-evidence/recompute.py",
"sha256": "71e627735f8386c54037b49ee041b3531143786bcd888e531b53c68201c9b29d"
},
{
"path": "docs/hel-892/gif-images-document-evidence/recompute.txt",
"sha256": "97c6bf621456b669eb4eb08160a5fc2eb3c2f5b6368088334630eeae10349dad"
},
{
"path": "docs/hel-892/gif-images-document-evidence/render_report.py",
"sha256": "4e37321eb620ef990b16c85e6b73cd2d0d0d214c96328c6c299d63039b52bc40"
},
{
"path": "docs/hel-892/gif-images-document-evidence/repeat.py",
"sha256": "878ce55761fb61d673905aeec69b69899a79f1aa7eda0ba586d4454d4becce33"
},
{
"path": "docs/hel-892/gif-images-document-evidence/repeat.txt",
"sha256": "1c4de890cacc8abbcb119c86e6ebbea50780922b17bc7883685bfe4e0b261a96"
},
{
"path": "docs/hel-892/gif-images-document-evidence/repeatability.json",
"sha256": "aac2ec9aad60c519950a4cfef4b32085bb4a7da54256310b9f72a86e5aa6c88a"
},
{
"path": "docs/hel-892/gif-images-document-evidence/request-counts.txt",
"sha256": "0983c3c8835fc98d8e0e897c6f56e848c20b21ec8faa263ccde305b411a88966"
},
{
"path": "docs/hel-892/gif-images-document-evidence/request_counts.py",
"sha256": "16fb2ba598a5b58f0704cc4535bfdd1d6ba8ade927db81f7f48875b23b83b020"
},
{
"path": "docs/hel-892/gif-images-document-evidence/review-delta.json",
"sha256": "ba484cdb77a17c9a73065f952929c0183ab5d9f6b80938f11aebbd2265932fbe"
},
{
"path": "docs/hel-892/gif-images-document-evidence/server-request-accounting.json",
"sha256": "c29c168fe0eeda0ab2780f28416cc509c1279f68f963c944d45fc559db8d9e22"
},
{
"path": "docs/hel-892/gif-images-document-evidence/service-0.txt",
"sha256": "9127cb830730cbcedb14d92370d897c74378c3f50315752f1cb32a487d210262"
},
{
"path": "docs/hel-892/gif-images-document-evidence/service-1.txt",
"sha256": "7b78bf5c82486c167309b7de3a3363bd8f5f7c1f9112106defd65b0e07b2545c"
},
{
"path": "docs/hel-892/gif-images-document-evidence/source-check.json",
"sha256": "98b7023653cf99ae646c4dfcc26bddbc6bd6f2064b2a2e95cb67aff0cb451c01"
},
{
"path": "docs/hel-892/gif-images-document-evidence/source-graphs.json",
"sha256": "7da80b864a17ab90cea32d354e46134c27d9a25168c5233fbc95e63e99dee98d"
},
{
"path": "docs/hel-892/gif-images-document-evidence/tested-source-files.json",
"sha256": "27e235c1ba1a8646850fb12ce5afa3c4e09640374b868ce85f29c50d5e869844"
},
{
"path": "docs/hel-892/gif-images-document-evidence/tests-final.txt",
"sha256": "06181e1b621042adc34c467374b6ca87e0a2f64478d03252eb939e286b446262"
},
{
"path": "docs/hel-892/gif-images-document-evidence/tests.txt",
"sha256": "cc882c0d2689b3d325ee3a7ba76fd314cf47edcefe3dba493f28d9499833fb86"
},
{
"path": "docs/hel-892/gif-images-document-evidence/validation-commands.txt",
"sha256": "d99e982dd7be8e588b7de7f2a8421f3e58c933d6dc5382cb1988c8de49840cd7"
},
{
"path": "docs/hel-892/gif-images-reference/layer__LICENSE",
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0"
},
{
"path": "docs/hel-892/gif-images-reference/layer____init__.py",
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0"
},
{
"path": "docs/hel-892/gif-images-reference/layer__py__image_scale_by_aspect_ratio_v2.py",
"sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5"
},
{
"path": "docs/hel-892/gif-images-reference/layer__py__imagefunc.py",
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0"
},
{
"path": "docs/hel-892/gif-images-reference/sources.json",
"sha256": "610c1633fce3c441b9911cbc6fbb93680ab9778d1180ccd428ce1c2f928f4bd4"
},
{
"path": "docs/hel-892/gif-images-reference/vhs__videohelpersuite__load_images_nodes.py",
"sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4"
},
{
"path": "docs/hel-892/视频转GIF与图片合成视频固定参考中文说明.md",
"sha256": "32696c76e8b37ddd69846180081fc28fb03d7786c15ad1225fb0cdc114b44aa3"
},
{
"path": "e2e/gif-images-document.mjs",
"sha256": "87c17aac9c0e3a4b9e5e1f6683d6d630c44dcd49b5ba83239c2de31ae01f3762"
},
{
"path": "e2e/run-gif-images-document.py",
"sha256": "7212569cea4ef962fb8241eb8eafff8b953a2781e48aa6d384fa44db903ff6fb"
}
]
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,15 @@
视频转GIF与加载图片合成视频两图说明已接入SQLite来源库的真实doc_json、正常GET及现有抽屉。仅新增两条受信路径/digest、两块fixed_version_document及必要静态原件,不改变界面文件、Token、转换器、执行资格、registry/client/worker/output_map、profiles、候选或六份差分。继续原PR #25、agent/agent/a64a969a6a44、base main;无合并部署。
- 独立源核算:GIF3节点/2边/26顶层位置(24标量含上传状态+2历史对象);图片合成4节点/2边/34顶层位置(31标量+3历史对象)。共60新位置/0注释,旧18块516位置+15注释不变,20图576+15展示。其他154审校对象完整相等;155入库中其他153整行不变。
- GIF源无版本声明,显著标明VHS1.7.7与LayerStyle4f4d5cbb均为参考假设;图片图按其VHS1.7.7和LayerStyle完整精确提交。复用准确VHS发布包SHA256 f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1,新增包内load_images_nodes逐字核验。Git提交绑定未知。LayerStyle4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c的注册/schema/实现/必要helper/许可原文和SHA进入索引。local_file以本gif-images-document-evidence目录解析。
- 用户概要、用途/素材/步骤/常见问题、逐项源现值/JSON类型/schema类型/默认/单位/范围/效果/引用、全部模式/物理边进入实际doc。GIF仅IMAGE链、音频未接;16采样/96上限非原片时长保证,Pillow GIF分支与视频分支分开。图片链1→6→2;节点5为mode4且无连线,所有保存值保留为旁路历史。图片字符串排序/扩展筛选/先跳过后间隔再上限、多数尺寸与EXIF、24fps/H264/元数据false不影响独立PNG、长边与向上对齐均按固定文本解释。核心IMG_EXTENSIONS来源版本未声明,实际扩展名集合保留未知。无frontendVersion,不借其他前端;UE、目标安装/动态选项/媒体/依赖/效果未知。
- 真实ae625ac289f4bc2eb2c989e24d71f60e6548d90a代码隔离旧库:升级2updated/153skip/1excluded,逐行比较其余153行;重导155skip;回退2行精确恢复;再导2update;用户编辑升级前/后均2conflict/153skip,29列整行保护。新库155import/1excluded,16pending_check/139needs_conversion、1217/3660/294不变;全停用、环境unchecked、定稿/实跑时间戳空。源/值/类型/引用/模式/连线/缓存形状错绑定拒绝,调用方重算摘要不扩信任。
- 本次694后台通过,0失败/1既有弃用警告:两图263专项、倒放411回归、来源库13项和7项因新增块需同步的旧快照回归。旧快照只排除本轮两新块后仍逐对象完整比较,原拒绝断言保留。未机械重跑全后台/转换大套件或全前端;旧5失败与全仓lint为历史证据,不称全仓绿。
- 浏览2576断言通过:846两图新内容、1714旧18图、14共享回退/迟到/失败重试/纯文本/焦点、2总账。两屏1440/390真实GET核60位置、长值展开、默认限制及无横溢。28截图不计断言;实际目验两图两屏默认及目录/历史预览展开共6张,无明显遮挡横溢。源码/摘要/源审校默认折叠,中文用途与未检查/未定稿/未实跑提示保留。
- 请求分列:浏览固定73+轮询10=83;后端固定68(就绪1)+轮询10=78。6次本地GET拦截不达后端,83+1-6=78;保留实际路径/频次,允许计时边界轮询±1,禁止请求0。两服务finally停止;无外部/预览/源媒体/写/生成/目标请求。
- 构建wheel/sdist成功,fixed_document.py/source_reviews.json/library.py均与包逐字一致。确定性定义/完整中文/来源索引重建零差异;17个改动Python文件Ruff check/format及JS语法通过。源图/163收件原件、28profiles/9候选/6差分、Drawer整文件冻结核验。source_reviews的大文本diff以review-delta与旧版本对象比较为准,语义只增加两块。
- 开发阶段旧18总量断言未更新导致1失败、审计报告计数字面误替换、脚本换行格式/语法问题均已修正;最终694通过、计数153、17文件lint/format通过、重建与包检查通过。初始日志保留,不累加重复运行次数。
155份完整定稿0、必要实跑0、本批新增转换0;145UI仍9参考候选/136关闭,全量目标未完成。本轮无需补材料/停TTS;未连目标机、执行上游插件/模型/媒体、下载权重、引依赖、调用付费、写在线库、改模型账号、合并部署。请总管接手功能+界面一次审核,不派回额度耗尽的总工模型。
复算入口见validation-commands.txt;完整中文见上级目录“视频转GIF与图片合成视频固定参考中文说明.md”,逐份实际doc见actual-*.json,原件/引用摘要见fixed-source-index.json;保护、差集、包和请求账分别有JSON。截图随本卡附件交付,不以运行机路径冒充交付链接。
@@ -0,0 +1,652 @@
[
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/load_video_nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26",
"git_commit_binding": "unknown",
"lines": [
24,
168
],
"claim": "格式约束、尺寸对齐与采样/跳过/上限实现"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/load_video_nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26",
"git_commit_binding": "unknown",
"lines": [
293,
420
],
"claim": "加载内存限制及返回;未执行媒体读取"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/load_video_nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26",
"git_commit_binding": "unknown",
"lines": [
423,
521
],
"claim": "上传及路径加载schema、输出和验证条件"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
"git_commit_binding": "unknown",
"lines": [
234,
340
],
"claim": "合成输入schema、输出与目录选择"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
"git_commit_binding": "unknown",
"lines": [
340,
420
],
"claim": "首帧PNG及Pillow GIF分支:duration取整、loop直传、pingpong条件"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
"git_commit_binding": "unknown",
"lines": [
420,
625
],
"claim": "仅视频分支的格式、对齐、循环、混流条件与返回预览"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
"git_commit_binding": "unknown",
"lines": [
140,
163
],
"claim": "视频元数据临时文件开关及FFmpeg条件"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "video_formats/h264-mp4.json",
"local_file": "../reverse-reference/vhs__video_formats__h264-mp4.json",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8",
"git_commit_binding": "unknown",
"lines": [
1,
15
],
"claim": "h264-mp4默认、像素格式和CRF范围"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
"git_commit_binding": "unknown",
"lines": [
1023,
1032
],
"claim": "VHS_LoadVideo/Path、LoadImagesPath和Combine注册"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "web/js/VHS.core.js",
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
"git_commit_binding": "unknown",
"lines": [
41,
168
],
"claim": "包内按键恢复与回调;不证明未知前端或UE的恢复顺序"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "web/js/VHS.core.js",
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
"git_commit_binding": "unknown",
"lines": [
648,
824
],
"claim": "加载格式回调及上传选择控件"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "web/js/VHS.core.js",
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
"git_commit_binding": "unknown",
"lines": [
915,
970
],
"claim": "历史预览控件仅作纯文本"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "web/js/VHS.core.js",
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
"git_commit_binding": "unknown",
"lines": [
1222,
1282
],
"claim": "合成格式改变时动态重建额外控件"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/utils.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__utils.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504",
"git_commit_binding": "unknown",
"lines": [
20,
56
],
"claim": "BIGMAX、DIMMAX及floatOrInt"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/utils.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__utils.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504",
"git_commit_binding": "unknown",
"lines": [
137,
157
],
"claim": "目录字典排序、普通文件/扩展名筛选,先跳过再间隔抽取"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "videohelpersuite/load_images_nodes.py",
"local_file": "../gif-images-reference/vhs__videohelpersuite__load_images_nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4",
"git_commit_binding": "unknown",
"lines": [
15,
206
],
"claim": "图片目录schema/校验/筛选/上限/EXIF/多数尺寸对齐/遮罩输出"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "layer",
"file": "py/image_scale_by_aspect_ratio_v2.py",
"local_file": "../gif-images-reference/layer__py__image_scale_by_aspect_ratio_v2.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/image_scale_by_aspect_ratio_v2.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5",
"lines": [
8,
184
],
"claim": "缩放schema顺序、原图比例、目标尺寸、采样及输出注册"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "layer",
"file": "py/imagefunc.py",
"local_file": "../gif-images-reference/layer__py__imagefunc.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/imagefunc.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
"lines": [
591,
617
],
"claim": "letterbox居中填色、crop居中裁切、fill直接拉伸"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "layer",
"file": "py/imagefunc.py",
"local_file": "../gif-images-reference/layer__py__imagefunc.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/imagefunc.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
"lines": [
1967,
1973
],
"claim": "宽高分别向上取整到所选倍数"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "layer",
"file": "__init__.py",
"local_file": "../gif-images-reference/layer____init__.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/__init__.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
"lines": [
29,
48
],
"claim": "扫描py模块并合并注册;未导入或执行上游"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "vhs",
"file": "LICENSE",
"local_file": "../reverse-reference/vhs__LICENSE",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_commit_binding": "unknown",
"lines": [
1,
674
],
"claim": "准确版本许可原文"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"id": "layer",
"file": "LICENSE",
"local_file": "../gif-images-reference/layer__LICENSE",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/LICENSE",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
"lines": [
1,
21
],
"claim": "准确版本许可原文"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/load_video_nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26",
"git_commit_binding": "unknown",
"lines": [
24,
168
],
"claim": "格式约束、尺寸对齐与采样/跳过/上限实现"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/load_video_nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26",
"git_commit_binding": "unknown",
"lines": [
293,
420
],
"claim": "加载内存限制及返回;未执行媒体读取"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/load_video_nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__load_video_nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a62df0fad987729e3de500dc85c786587b609d9eb571f09fdc92d25b9d530e26",
"git_commit_binding": "unknown",
"lines": [
423,
521
],
"claim": "上传及路径加载schema、输出和验证条件"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
"git_commit_binding": "unknown",
"lines": [
234,
340
],
"claim": "合成输入schema、输出与目录选择"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
"git_commit_binding": "unknown",
"lines": [
340,
420
],
"claim": "首帧PNG及Pillow GIF分支:duration取整、loop直传、pingpong条件"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
"git_commit_binding": "unknown",
"lines": [
420,
625
],
"claim": "仅视频分支的格式、对齐、循环、混流条件与返回预览"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
"git_commit_binding": "unknown",
"lines": [
140,
163
],
"claim": "视频元数据临时文件开关及FFmpeg条件"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "video_formats/h264-mp4.json",
"local_file": "../reverse-reference/vhs__video_formats__h264-mp4.json",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "736ca4a7057d26ae25cc57c5d686afbc95980c439199c17c8be02b3136cb57b8",
"git_commit_binding": "unknown",
"lines": [
1,
15
],
"claim": "h264-mp4默认、像素格式和CRF范围"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/nodes.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "a7e1ee2f0222a0b4271464256e8390b7bc18604eebe4d7228fbca9dee7a5d365",
"git_commit_binding": "unknown",
"lines": [
1023,
1032
],
"claim": "VHS_LoadVideo/Path、LoadImagesPath和Combine注册"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "web/js/VHS.core.js",
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
"git_commit_binding": "unknown",
"lines": [
41,
168
],
"claim": "包内按键恢复与回调;不证明未知前端或UE的恢复顺序"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "web/js/VHS.core.js",
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
"git_commit_binding": "unknown",
"lines": [
648,
824
],
"claim": "加载格式回调及上传选择控件"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "web/js/VHS.core.js",
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
"git_commit_binding": "unknown",
"lines": [
915,
970
],
"claim": "历史预览控件仅作纯文本"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "web/js/VHS.core.js",
"local_file": "../reverse-reference/vhs__web__js__VHS.core.js",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "666192e7a2867d9da428d84b83c44f40c41b3d4e83d849c16104af6ef60f96cb",
"git_commit_binding": "unknown",
"lines": [
1222,
1282
],
"claim": "合成格式改变时动态重建额外控件"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/utils.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__utils.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504",
"git_commit_binding": "unknown",
"lines": [
20,
56
],
"claim": "BIGMAX、DIMMAX及floatOrInt"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/utils.py",
"local_file": "../reverse-reference/vhs__videohelpersuite__utils.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "53560f3ce411f788491a6546cb044f3fa019e4deafe8128b5e6e5f6a45997504",
"git_commit_binding": "unknown",
"lines": [
137,
157
],
"claim": "目录字典排序、普通文件/扩展名筛选,先跳过再间隔抽取"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "videohelpersuite/load_images_nodes.py",
"local_file": "../gif-images-reference/vhs__videohelpersuite__load_images_nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4",
"git_commit_binding": "unknown",
"lines": [
15,
206
],
"claim": "图片目录schema/校验/筛选/上限/EXIF/多数尺寸对齐/遮罩输出"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "layer",
"file": "py/image_scale_by_aspect_ratio_v2.py",
"local_file": "../gif-images-reference/layer__py__image_scale_by_aspect_ratio_v2.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/image_scale_by_aspect_ratio_v2.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5",
"lines": [
8,
184
],
"claim": "缩放schema顺序、原图比例、目标尺寸、采样及输出注册"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "layer",
"file": "py/imagefunc.py",
"local_file": "../gif-images-reference/layer__py__imagefunc.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/imagefunc.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
"lines": [
591,
617
],
"claim": "letterbox居中填色、crop居中裁切、fill直接拉伸"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "layer",
"file": "py/imagefunc.py",
"local_file": "../gif-images-reference/layer__py__imagefunc.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/imagefunc.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
"lines": [
1967,
1973
],
"claim": "宽高分别向上取整到所选倍数"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "layer",
"file": "__init__.py",
"local_file": "../gif-images-reference/layer____init__.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/__init__.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
"lines": [
29,
48
],
"claim": "扫描py模块并合并注册;未导入或执行上游"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "vhs",
"file": "LICENSE",
"local_file": "../reverse-reference/vhs__LICENSE",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
"git_commit_binding": "unknown",
"lines": [
1,
674
],
"claim": "准确版本许可原文"
},
{
"document": "example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json",
"id": "layer",
"file": "LICENSE",
"local_file": "../gif-images-reference/layer__LICENSE",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/LICENSE",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
"lines": [
1,
21
],
"claim": "准确版本许可原文"
}
]
@@ -0,0 +1 @@
17 files already formatted
@@ -0,0 +1,69 @@
{
"base": "ae625ac289f4bc2eb2c989e24d71f60e6548d90a",
"first": {
"imported": 155,
"user_excluded": 1
},
"upgrade": {
"skipped": 153,
"updated": 2,
"user_excluded": 1
},
"repeat": {
"skipped": 155,
"user_excluded": 1
},
"restored_rows": 2,
"untouched_whole_rows": 153,
"eligibility_unchanged": true,
"redo": {
"skipped": 153,
"updated": 2,
"user_excluded": 1
},
"user_protection": [
{
"phase": "user-before",
"counts": {
"skipped": 153,
"conflict": 2,
"user_excluded": 1
},
"whole_rows": 2,
"columns": 29
},
{
"phase": "user-after",
"counts": {
"skipped": 153,
"conflict": 2,
"user_excluded": 1
},
"whole_rows": 2,
"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": 60,
"new_notes": 0,
"old_saved": 516,
"old_notes": 15,
"overviews": 20,
"all_disabled": true,
"doc_done": 0,
"executed": 0
}
@@ -0,0 +1,164 @@
E501 Line too long (179 > 100)
--> calliope-backend/src/calliope/comfyui/fixed_document.py:86:71
|
84 | … .json"
85 | …,
86 | …图像视频放大/视频转gif动图图片.json": "a5b005d3cd4986173c59cdb73c83974b1af8bf6239e0683b4b888ee131d97e20",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87 | …图像视频放大/加载图片合成视频.json": "95479f263082e525d9c43c24bca06f50c590700c91b0cc778789abf337bf8942",
88 | …
|
E501 Line too long (178 > 100)
--> calliope-backend/src/calliope/comfyui/fixed_document.py:87:70
|
85 | …,
86 | …图像视频放大/视频转gif动图图片.json": "a5b005d3cd4986173c59cdb73c83974b1af8bf6239e0683b4b888ee131d97e20",
87 | …图像视频放大/加载图片合成视频.json": "95479f263082e525d9c43c24bca06f50c590700c91b0cc778789abf337bf8942",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88 | …
|
E501 Line too long (109 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:298:66
|
296 | "GIF保存16:Pillow每帧duration=round(1000/16)=62毫秒;不保证实际播放器精度或原片时长。"
297 | if index == 0
298 | else "保存24用于FFmpeg输入播放率;每张选中图片作为帧,不是读取图片原有FPS,不保证真实成功输出。",
| ^^^^^^^^
299 | ),
300 | (
|
E501 Line too long (106 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:329:74
|
327 | "保存image/gif走Pillow动画分支,disposal=2,不应用h264像素格式/CRF/视频混流逻辑。"
328 | if index == 0
329 | else "保存video/h264-mp4走FFmpeg/libx264模板;本地依赖、编码器和动态选项未知,不代表已运行。",
| ^^^^^^
330 | ),
331 | (
|
E501 Line too long (152 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:356:73
|
354 | …
355 | …
356 | …条件分支,不关闭前面独立的首帧workflow PNG;VHS_MetadataImage默认true,实际运行可能写PNG。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
357 | …
358 | …
|
E501 Line too long (108 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:461:64
|
459 | "保存"
460 | + ("480" if index == 0 else "1080")
461 | + "作为longest初始目标;另一边按比例int计算,再向上取8倍数,不能当精确最终宽高或模型放大倍率。",
| ^^^^^^^^
462 | ),
463 | (
|
E501 Line too long (132 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:485:67
|
483 | "完整结构对象",
484 | "原hidden/paused/params原样保留,不递归计位置",
485 | "只代表历史缓存;E盘路径、文件名、workflow PNG、FPS及暂停状态均非当前产物/可达/执行证据。不读取媒体,不请求/api/view。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
486 | [preview, restore],
487 | "frontend_history",
|
E501 Line too long (148 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:521:74
|
519 | …
520 | …
521 | … 不是序列化或最终prompt证明;无frontendVersion,UE身份/钩子次序/动态选项与实际效果未知。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
522 | …
523 | …
|
E501 Line too long (301 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:528:63
|
526 | … ,缩放按原比例长边480再向上对齐8倍数,合成16fps、循环0。96与16不能保证原片时长或最终产物。源未声明版本,以下固定版本仅作参考;历史预览不是当前产物,未实跑、转换保持关闭。"
527 | …
528 | … 活动路径是图片加载1→缩放6→合成2;视频加载5为mode4且无连线,不是当前输入。长边保存1080后再对齐8倍数,元数据false不关闭独立首帧PNG。E盘目录未读取,插件固定源码仅作参考,目标环境未知、未实跑、转换保持关闭。"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
529 | …
530 | …
|
E501 Line too long (253 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:536:84
|
534 | … 追加往返;不套视频分支的loop滤镜/CRF/音频。保存true选择输出目录,首帧PNG由独立VHS_MetadataImage控制。"
535 | …
536 | … 元数据临时分支,不影响独立首帧workflow PNG,VHS_MetadataImage未显式false时默认写入。trim_to_audio=false在无音频连接时不产生音轨;pingpong=false不追加往返。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
537 | … 标边,另一边int截断,再宽高分别向上取整到字符串8的倍数;letterbox居中填色,lanczos采样。实际宽高/留边/性能未知,不编模型超分效果。",
538 | …、workflow PNG、旧输出名不证明当前输出。",
|
E501 Line too long (137 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:538:59
|
536 | …oop0不追加循环。save_metadata=false跳过视频元数据临时分支,不影响独立首帧workflow PNG,VHS_MetadataImage未显式false时默认写入。trim_…
537 | … 高1/1仅custom有效;longest按横竖方向选择目标边,另一边int截断,再宽高分别向上取整到字符串8的倍数;letterbox居中填色,lanczos采样。…
538 | … 取E盘路径、不调用预览或媒体接口。保存FPS、workflow PNG、旧输出名不证明当前输出。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
539 | … 回调仅作参考,LayerStyle位置数组映射不证明真实恢复顺序,UE空映射不等于无改写。目标安装版本、钩子顺序、选项、媒体/图片、ffmpeg/libx2…
540 | …
|
E501 Line too long (105 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:549:92
|
547 | flow += ["源物理边:" + json.dumps(e, ensure_ascii=False) for e in graph["links"]]
548 | flow += [
549 | f"节点{n['id']} {n['type']} mode={n['mode']};保存位置={len(n['widgets_values'])};原properties="
| ^^^^^
550 | + json.dumps(n["properties"], ensure_ascii=False)
551 | for n in graph["nodes"]
|
E501 Line too long (127 > 100)
--> docs/hel-892/gif-images-document-evidence/build_definition.py:556:88
|
554 | … "源未声明版本,以下固定版本仅作参考:VHS使用官方registry1.7.7准确包;LayerStyle使用4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c。"
555 | … if index == 0
556 | … else "源节点VHS声明1.7.7;LayerStyle6声明4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c,按各自原件解释,不替换为其他版本。",
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
557 | … "VHS1.7.7发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1;Git提交绑定未知,不借1.7.9或其他提交补…
558 | … "无frontendVersion,不借其他前端版本证明恢复;UE空映射无版本与次序证据,目标安装与实际状态未知。",
|
E501 Line too long (104 > 100)
--> docs/hel-892/gif-images-document-evidence/repeat.py:16:83
|
14 | assert a == json.loads((REPO / RESOURCE).read_bytes())
15 | render()
16 | paths = [OUT / 'fixed-source-index.json', OUT.parent / '视频转GIF与图片合成视频固定参考中文说明.md']
| ^^^^
17 | before = {p.name: hashlib.sha256(p.read_bytes()).hexdigest() for p in paths}
18 | render()
|
E501 Line too long (243 > 100)
--> docs/hel-892/gif-images-document-evidence/repeat.py:20:101
|
18 | …
19 | …
20 | …l=True, repeated_render_equal=True, resource_sha256=hashlib.sha256(canonical(a)).hexdigest(), artifacts=before), ensure_ascii=False, indent=2)+'\n')
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 | …
|
Found 15 errors.
@@ -0,0 +1 @@
All checks passed!
@@ -0,0 +1,23 @@
[
{
"file": "fixed_document.py",
"sha256": "d7ac67d01746e87cb47a6e6b191565939a031d60e2a2c1efe1879d2e4bfedf9a",
"wheel": true,
"sdist": true,
"definitions": 20
},
{
"file": "source_reviews.json",
"sha256": "3b9913cb755fbececca2cc66270c5be206e2c6746eef2fbb89e4696a337e08db",
"wheel": true,
"sdist": true,
"definitions": 20
},
{
"file": "library.py",
"sha256": "b9cbfce28267642e6db3ebe9d591cf8dd260c7772a5a21a8d36cb98915eca13c",
"wheel": true,
"sdist": true,
"definitions": 20
}
]
@@ -0,0 +1,4 @@
{
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json": "a5b005d3cd4986173c59cdb73c83974b1af8bf6239e0683b4b888ee131d97e20",
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json": "95479f263082e525d9c43c24bca06f50c590700c91b0cc778789abf337bf8942"
}
@@ -0,0 +1,11 @@
{
"number": 25,
"title": "WIP: HEL-892 离线全量工作流库与后台兼容框架",
"state": "open",
"merged": false,
"html_url": "http://gitea.xbay.cc/leefer/aigc-home/pulls/25",
"head_ref": "agent/agent/a64a969a6a44",
"head_sha": "ae625ac289f4bc2eb2c989e24d71f60e6548d90a",
"base_ref": "main",
"base_sha": "1fc8bdb8bb2a88ccace6f21a507fd77bcf22f532"
}
@@ -0,0 +1,64 @@
"""Add two reviewed definitions; 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 = "ae625ac289f4bc2eb2c989e24d71f60e6548d90a"
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 two definitions; other 154 reviews and old 18 blocks unchanged")
if __name__ == "__main__":
main()
@@ -0,0 +1,371 @@
"""Actual ae625ac database upgrade, two-row protection/rollback, frozen boundaries and packages."""
from __future__ import annotations
import hashlib
import io
import json
import os
import sqlite3
import subprocess
import sys
import tarfile
import tempfile
import zipfile
from pathlib import Path
from build_definition import OUT, PATHS, REPO, canonical
from rebuild import BASE, RESOURCE, build_all
sys.path.insert(0, str(REPO / "calliope-backend"))
def write(name, value):
(OUT / name).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n")
def require_packages():
dist = REPO / "calliope-backend/dist"
w = sorted(dist.glob("*.whl"))
s = sorted(dist.glob("*.tar.gz"))
if not w or not s:
raise SystemExit(
(
"缺少wheel/sdist包产物,请先在仓库根执行:"
"uv build --project calliop"
"e-backend --offline"
)
)
return w[-1], s[-1]
def main():
from calliope.comfyui.fixed_document import DEFINITIONS
from calliope.comfyui.library import rollback_batch
from scripts.audit_library_documents import audit
wheels, sdists = require_packages()
reference = OUT.parent / "reverse-reference"
source_records = json.loads((reference / "sources.json").read_bytes())["sources"]
for e in source_records:
raw = (reference / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
assert len(e["commit"]) == 40 or e["commit"].startswith("发布包SHA256:")
package = json.loads((reference / "vhs-package-index.json").read_bytes())
archive = (reference / "vhs-1.7.7.zip").read_bytes()
assert hashlib.sha256(archive).hexdigest() == package["sha256"]
with zipfile.ZipFile(io.BytesIO(archive)) as z:
for e in package["members"]:
assert hashlib.sha256(z.read(e["file"])).hexdigest() == e["sha256"]
for e in source_records:
if e["id"] == "vhs":
assert z.read(e["file"]) == (reference / e["local_file"]).read_bytes()
assert (reference / "core-tag.txt").read_text().split() == [
"8402c8700a29a97bc5d706d6a0b14c41bc2c2d8a",
"refs/tags/v0.3.75",
]
write(
"source-check.json",
dict(
fixed_originals=len(source_records),
checked_sha256=True,
package_sha256=package["sha256"],
package_members=len(package["members"]),
git_commit_binding="unknown",
frontend_not_declared=True,
imported_upstream=False,
target_installation=False,
local_file_base="docs/hel-892/reverse-reference",
),
)
graphs = []
for i, path in enumerate(PATHS):
raw = (REPO / path).read_bytes()
g = json.loads(raw)
by_id = {n["id"]: n for n in g["nodes"]}
assert len(g["nodes"]) == [3, 4][i] and len(g["links"]) == 2
assert sum(len(n["widgets_values"]) for n in g["nodes"]) == [26, 34][i]
assert "frontendVersion" not in g["extra"]
assert [(n["id"], n["mode"]) for n in g["nodes"] if n["mode"]] == (
[] if i == 0 else [(5, 4)]
)
assert all(e[5] == "IMAGE" for e in g["links"])
for eid, origin, slot, target, inp, typ in g["links"]:
assert eid in by_id[origin]["outputs"][slot]["links"]
assert by_id[origin]["outputs"][slot]["type"] == typ
assert by_id[target]["inputs"][inp]["link"] == eid
assert by_id[target]["inputs"][inp]["type"] == typ
if i == 1:
assert all(o["links"] is None for o in by_id[5]["outputs"])
graphs.append(
dict(
source_path=path,
sha1=hashlib.sha1(raw).hexdigest(),
raw_sha256=hashlib.sha256(raw).hexdigest(),
canonical_sha256=hashlib.sha256(canonical(g)).hexdigest(),
nodes=g["nodes"],
links=g["links"],
saved_fields=[26, 34][i],
history_objects=[2, 3][i],
)
)
write("source-graphs.json", graphs)
new_reference = OUT.parent / "gif-images-reference"
for e in json.loads((new_reference / "sources.json").read_bytes())["sources"]:
raw = (new_reference / e["local_file"]).read_bytes()
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
if e["id"] == "vhs":
with zipfile.ZipFile(io.BytesIO(archive)) as z:
assert z.read(e["file"]) == raw
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) == 18
assert all(rebuilt[p]["fixed_version_document"] == b for p, b in old_blocks.items())
write(
"review-delta.json",
dict(
base=BASE,
changed_paths=PATHS,
other_reviews_unchanged=len(previous) - 2,
old_blocks_unchanged=18,
old_saved=516,
old_notes=15,
new_saved=60,
new_notes=0,
total_documents=20,
total_saved=576,
total_notes=15,
),
)
for p, d in DEFINITIONS.items():
assert hashlib.sha256(canonical(rebuilt[p]["fixed_version_document"])).hexdigest() == d
with tempfile.TemporaryDirectory() as directory:
work = Path(directory)
old = work / "old"
old.mkdir()
data = subprocess.check_output(["git", "archive", BASE, "calliope-backend/src"], cwd=REPO)
with tarfile.open(fileobj=io.BytesIO(data)) as a:
a.extractall(old, filter="data")
db = work / "library.db"
def run(name, historical=False):
out = work / name
env = {
**os.environ,
"PYTHONPATH": str((old if historical else REPO) / "calliope-backend/src"),
}
subprocess.run(
[
sys.executable,
"-m",
"calliope.comfyui.library_cli",
"import",
"--root",
str(REPO / "example_ComfyUI_workflows"),
"--db",
str(db),
"--source-commit",
BASE,
"--companions",
str(REPO / "docs/hel-892/supplied-api/manifest.json"),
"--output-dir",
str(out),
],
cwd=REPO,
env=env,
check=True,
stdout=subprocess.DEVNULL,
)
return json.loads((out / "import_report.json").read_bytes()), out
def rows():
with sqlite3.connect(db) as c:
c.row_factory = sqlite3.Row
return {
r["source_repo_path"]: dict(r) for r in c.execute("SELECT * FROM workflows")
}
first, _ = run("historical", True)
before = rows()
assert first["counts"] == {"imported": 155, "user_excluded": 1}
assert all("fixed_version" not in json.loads(before[p]["doc_json"]) for p in PATHS)
assert all(
json.loads(before[p]["doc_json"])["fixed_version"]["matched"]
for p in DEFINITIONS
if p not in PATHS
)
original = db
protected = []
def protect(name):
nonlocal db
db = work / (name + ".db")
with sqlite3.connect(original) as src, sqlite3.connect(db) as dst:
src.backup(dst)
for p in PATHS:
dst.execute(
"UPDATE workflows SET description=? WHERE source_repo_path=?",
(name, p),
)
snapshot = rows()
r, _ = run(name)
assert r["counts"] == {"conflict": 2, "skipped": 153, "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=2, columns=29))
db = original
protect("user-before")
upgrade, exported = run("upgrade")
after = rows()
assert upgrade["counts"] == {"updated": 2, "skipped": 153, "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"]) == 2 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=2,
untouched_whole_rows=153,
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=60,
new_notes=0,
old_saved=516,
old_notes=15,
overviews=20,
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_eighteen_blocks_unchanged=True,
drawer_css_unchanged=True,
drawer_whole_file_unchanged=True,
drawer_sha256=hashlib.sha256(drawer_bytes).hexdigest(),
conversion_rerun=False,
profiles_28_candidates_9_diffs_6="unchanged",
),
)
packages = []
with zipfile.ZipFile(wheels) as w, tarfile.open(sdists) as s:
for name in ["fixed_document.py", "source_reviews.json", "library.py"]:
raw = (REPO / "calliope-backend/src/calliope/comfyui" / name).read_bytes()
assert w.read("calliope/comfyui/" + name) == raw
member = next(n for n in s.getnames() if n.endswith("/src/calliope/comfyui/" + name))
assert s.extractfile(member).read() == raw
packages.append(
dict(
file=name,
sha256=hashlib.sha256(raw).hexdigest(),
wheel=True,
sdist=True,
definitions=20,
)
)
write("package-check.json", packages)
print(
(
"PASS actual ae625ac upgrade2/skip153, "
"repeat155, rollback2, edits2/29cols, f"
"resh155, 1217/3660/294, 20 definitions"
", frozen boundaries, wheel/sdist"
)
)
if __name__ == "__main__":
main()
@@ -0,0 +1 @@
PASS actual ae625ac upgrade2/skip153, repeat155, rollback2, edits2/29cols, fresh155, 1217/3660/294, 20 definitions, frozen boundaries, wheel/sdist
@@ -0,0 +1,111 @@
"""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 = [
"# 视频转GIF与图片合成视频固定参考中文说明",
"",
"60新顶层保存位置(55标量含上传状态+5历史对象)+0新注释;旧18图516保存位置+15注释逐对象不变。20图576位置+15注释展示,155定稿0、实跑0、新增转换0。",
"",
"复用SQLite来源库→正常GET详情→现有说明抽屉;仅新增source_reviews说明块和显式受信摘要,不改变转换/执行链。来源索引local_file以docs/hel-892/gif-images-document-evidence为解析基准。",
"",
]
index = []
for i in range(2):
b = json.loads((OUT / f"definition-{i}.json").read_bytes())
lines += [
"## " + Path(b["source_path"]).stem,
"",
b["user_overview"],
"",
b["notice"],
"",
"源路径:`" + b["source_path"] + "`",
"",
"SHA1:" + b["source_sha1"],
"",
"原字节SHA256:" + b["source_sha256"],
"",
"规范全图SHA256:" + b["canonical_sha256"],
"",
*[v + "\n" for v in b["versions"]],
"### 具体连线与处理条件",
"",
*[v + "\n" for v in b["flow"]],
"### 使用与核对",
"",
*[v + "\n" for v in b["steps"]],
"### 逐保存位置说明",
"",
]
for j, f in enumerate(b["fields"], 1):
lines += [
f"#### {j}. 节点{f['node_id']} · {f['label']}({f['field']})",
"",
f["effect"],
"",
"```json",
json.dumps(f["value"], ensure_ascii=False, indent=2),
"```",
"",
f"类:{f['class_type']};JSON类型:{f['json_type']};角色:{f['role']}。",
"",
"源位置:`" + f["pointer"] + "`",
"",
"定义默认:" + f["schema_default"] + ";单位:" + f["unit"],
"",
"范围/条件:" + f["limits"],
"",
f["execution_note"],
"",
"依据:",
]
for k in f["evidence"]:
e = b["sources"][k]
lines += [
f"- [{k}] {e['claim']};{e['file']} {e['lines'][0]}~{e['lines'][1]}行;"
f"commit {e['commit']};SHA256 {e['sha256']};{e['url']}"
]
lines += [""]
lines += ["### 零保存节点与源注释", ""]
for z in b["zero_saved_nodes"]:
lines += [z["node_id"] + " " + z["class_type"] + ":" + z["effect"], ""]
for n in b["comments"]:
lines += [
"节点" + n["node_id"] + ",位置`" + n["pointer"] + "`",
"",
n["meaning"],
"",
"```text",
n["text"],
"```",
"",
]
lines += ["### 固定原件索引", ""]
for k, e in enumerate(b["sources"]):
data = (OUT / e["local_file"]).read_bytes()
assert hashlib.sha256(data).hexdigest() == e["sha256"]
lines += [
f"{k}. {e['claim']};{e['file']} 第{e['lines'][0]}~{e['lines'][1]}行;"
f"提交{e['commit']};SHA256 {e['sha256']};{e['url']}",
"",
]
index.append(dict(document=b["source_path"], **e))
(OUT.parent / "视频转GIF与图片合成视频固定参考中文说明.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,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 / "视频转GIF与图片合成视频固定参考中文说明.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=20,
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 @@
PASS deterministic definitions and rendered artifacts: zero difference
@@ -0,0 +1,10 @@
{
"definitions": 20,
"repeated_build_equal": true,
"repeated_render_equal": true,
"resource_sha256": "f4be1c2977b2b2478ea1a7ffeb86cacfdda3af35631e914144a94e820b58e88e",
"artifacts": {
"fixed-source-index.json": "84d0987c49449e38bdd25427d36d12b6f013a370b1af26e2cceb433468174eb3",
"视频转GIF与图片合成视频固定参考中文说明.md": "32696c76e8b37ddd69846180081fc28fb03d7786c15ad1225fb0cdc114b44aa3"
}
}
@@ -0,0 +1 @@
{"total": 78, "fixed_count": 68, "polling_count": 10, "paths": {"/api/workflows": 3, "/api/workflows/23": 4, "/api/workflows/8": 4, "/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,16 @@
{
"base": "ae625ac289f4bc2eb2c989e24d71f60e6548d90a",
"changed_paths": [
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/视频转gif动图图片.json",
"example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json"
],
"other_reviews_unchanged": 154,
"old_blocks_unchanged": 18,
"old_saved": 516,
"old_notes": 15,
"new_saved": 60,
"new_notes": 0,
"total_documents": 20,
"total_saved": 576,
"total_notes": 15
}
@@ -0,0 +1,34 @@
{
"total": 78,
"fixed_count": 68,
"polling_count": 10,
"paths": {
"/api/workflows": 3,
"/api/workflows/23": 4,
"/api/workflows/8": 4,
"/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,87 @@
INFO: Started server process [597135]
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:53320 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:53678 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53678 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53678 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53678 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53678 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53678 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53678 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53678 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53678 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53678 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53668 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53706 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:53694 - "GET /api/settings HTTP/1.1" 200 OK
INFO: 127.0.0.1:53712 - "GET /api/workflows HTTP/1.1" 200 OK
INFO: 127.0.0.1:53720 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:53726 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:53740 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49864 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:49876 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49878 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:49886 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49894 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49900 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49914 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49920 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49926 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49932 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49940 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49944 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49950 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49960 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49972 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49982 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:49994 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:50004 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38848 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:38860 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38874 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38876 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:38882 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38886 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:38892 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:38908 - "GET /api/workflows/22 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44892 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:44898 - "GET /api/workflows/5 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44900 - "GET /api/workflows/6 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44906 - "GET /api/workflows/7 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44922 - "GET /api/workflows/19 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44938 - "GET /api/workflows/13 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44948 - "GET /api/workflows/12 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44950 - "GET /api/workflows/64 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44958 - "GET /api/workflows/62 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44966 - "GET /api/workflows/70 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44968 - "GET /api/workflows/1 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44974 - "GET /api/workflows/36 HTTP/1.1" 200 OK
INFO: 127.0.0.1:44988 - "GET /api/workflows/35 HTTP/1.1" 200 OK
INFO: 127.0.0.1:45004 - "GET /api/workflows/2 HTTP/1.1" 200 OK
INFO: 127.0.0.1:45006 - "GET /api/workflows/25 HTTP/1.1" 200 OK
INFO: 127.0.0.1:45022 - "GET /api/workflows/24 HTTP/1.1" 200 OK
INFO: 127.0.0.1:45038 - "GET /api/workflows/21 HTTP/1.1" 200 OK
INFO: 127.0.0.1:45052 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:45068 - "GET /api/workflows/14 HTTP/1.1" 200 OK
INFO: 127.0.0.1:45072 - "GET /api/workflows/156 HTTP/1.1" 200 OK
INFO: 127.0.0.1:45086 - "GET /api/jobs HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:45094 - "GET /api/workflows/157 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34602 - "GET /api/workflows/8 HTTP/1.1" 200 OK
INFO: 127.0.0.1:34616 - "GET /api/workflows/23 HTTP/1.1" 200 OK
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [597135]
@@ -0,0 +1,4 @@
VITE v6.4.3 ready in 301 ms
➜ Local: http://127.0.0.1:5173/
@@ -0,0 +1,11 @@
{
"fixed_originals": 15,
"checked_sha256": true,
"package_sha256": "f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"package_members": 45,
"git_commit_binding": "unknown",
"frontend_not_declared": true,
"imported_upstream": false,
"target_installation": false,
"local_file_base": "docs/hel-892/reverse-reference"
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,46 @@
[
{
"path": "calliope-backend/src/calliope/comfyui/fixed_document.py",
"sha256": "d7ac67d01746e87cb47a6e6b191565939a031d60e2a2c1efe1879d2e4bfedf9a"
},
{
"path": "calliope-backend/src/calliope/comfyui/source_reviews.json",
"sha256": "3b9913cb755fbececca2cc66270c5be206e2c6746eef2fbb89e4696a337e08db"
},
{
"path": "calliope-backend/tests/test_gif_images_fixed_document.py",
"sha256": "b75b7f787bf29709e8ce78ebeb7bc8fcf2ea91bda2057b3d47e288622378361d"
},
{
"path": "e2e/gif-images-document.mjs",
"sha256": "87c17aac9c0e3a4b9e5e1f6683d6d630c44dcd49b5ba83239c2de31ae01f3762"
},
{
"path": "e2e/run-gif-images-document.py",
"sha256": "7212569cea4ef962fb8241eb8eafff8b953a2781e48aa6d384fa44db903ff6fb"
},
{
"path": "docs/hel-892/gif-images-document-evidence/render_report.py",
"sha256": "4e37321eb620ef990b16c85e6b73cd2d0d0d214c96328c6c299d63039b52bc40"
},
{
"path": "docs/hel-892/gif-images-document-evidence/repeat.py",
"sha256": "878ce55761fb61d673905aeec69b69899a79f1aa7eda0ba586d4454d4becce33"
},
{
"path": "docs/hel-892/gif-images-document-evidence/rebuild.py",
"sha256": "9f8a200079459b9e204c9d42190b6c672cb077fc235a44e6363332c6bd03941b"
},
{
"path": "docs/hel-892/gif-images-document-evidence/recompute.py",
"sha256": "71e627735f8386c54037b49ee041b3531143786bcd888e531b53c68201c9b29d"
},
{
"path": "docs/hel-892/gif-images-document-evidence/build_definition.py",
"sha256": "158eefcb96fb25ef1df2008f8d5c9bdadd1a8c58eb91a4fce2727bbd8d6d56c4"
},
{
"path": "docs/hel-892/gif-images-document-evidence/request_counts.py",
"sha256": "16fb2ba598a5b58f0704cc4535bfdd1d6ba8ade927db81f7f48875b23b83b020"
}
]
@@ -0,0 +1,11 @@
........................................................................ [ 10%]
........................................................................ [ 20%]
........................................................................ [ 31%]
........................................................................ [ 41%]
........................................................................ [ 51%]
........................................................................ [ 62%]
........................................................................ [ 72%]
........................................................................ [ 82%]
........................................................................ [ 93%]
.............................................. [100%]
694 passed, 1 warning in 5.91s
@@ -0,0 +1,74 @@
........................................................................ [ 10%]
........................................................................ [ 20%]
........................................................................ [ 31%]
........................................................................ [ 41%]
........................................................................ [ 52%]
........................................................................ [ 62%]
........................................................................ [ 73%]
........................................................................ [ 83%]
........................................................................ [ 94%]
..............F........................ [100%]
=================================== FAILURES ===================================
______________ test_exact_graph_and_original_seventeen_unchanged _______________
def test_exact_graph_and_original_seventeen_unchanged():
d = doc()
assert d["fixed_version"]["matched"]
assert len(BLOCK["fields"]) == 21 and BLOCK["comments"] == []
assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2
nodes = {n["id"]: n for n in SOURCE["nodes"]}
assert {k: len(n["widgets_values"]) for k, n in nodes.items()} == {20: 0, 21: 11, 1: 10, 15: 0}
assert all(n["mode"] == 0 for n in nodes.values())
assert "frontendVersion" not in SOURCE["extra"] and "definitions" not in SOURCE
assert SOURCE["links"] == [
[15, 1, 0, 20, 0, "IMAGE"],
[16, 20, 0, 15, 0, "IMAGE"],
[17, 20, 0, 21, 0, "IMAGE"],
[18, 1, 2, 21, 1, "AUDIO"],
]
for eid, origin, slot, target, inp, typ in SOURCE["links"]:
assert eid in nodes[origin]["outputs"][slot]["links"]
assert nodes[origin]["outputs"][slot]["type"] == typ
assert nodes[target]["inputs"][inp]["link"] == eid
assert nodes[target]["inputs"][inp]["type"] == typ
fields = {(f["node_id"], f["field"]): f for f in BLOCK["fields"]}
assert fields["1", "force_rate"]["value"] == fields["21", "frame_rate"]["value"] == 16
assert fields["1", "force_rate"]["json_type"] == "int"
assert fields["1", "choose video to upload"]["role"] == "frontend_control"
assert all(
f["role"] == "frontend_history" for f in BLOCK["fields"] if f["field"] == "videopreview"
)
text = "".join(BLOCK["flow"])
for token in [
"音频link18",
"绕过Reverse20",
"torch.flip(images,[0])",
"没有frontendVersion",
"-shortest",
"RETURN_TYPES",
"未接",
"历史",
"未知",
"内存",
"VHS1.7.7",
]:
assert token in text
assert not BLOCK["counts"]["final_prompt_constructed"]
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO))
now = json.loads((REPO / resource).read_bytes())
assert now[PATH].pop("fixed_version_document") == BLOCK
> assert now == old and len(DEFINITIONS) == 18
E AssertionError: assert ({'example_Com...[], ...}, ...} == {'example_Com...[], ...}, ...}
E
E Omitting 154 identical items, use -vv to show
E Differing items:
E {'example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json': {'source_sha': 'c7ef94870dc39bc22b42009141e...}, {'node_id': '5', 'field': 'custom_height', 'label': '素材加载阶段的自定义高度控件;零值含义待节点定义', 'source_value': 0, ...}, ...], ...}} != {'example_ComfyUI_workflows/0-基础处理:图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json': {'source_sha': 'c7ef94870dc39bc22b42009141e...}, {'node_id': '5', 'field': 'custom_height', 'label': '素材加载阶段的自定义高度控件;零值含义待节点定义', 'source_value': 0, ...}, ...], ...}}
E {'example_ComfyUI_workflows/0-基...
E
E ...Full output truncated (2 lines hidden), use '-vv' to show)
calliope-backend/tests/test_reverse_fixed_document.py:217: AssertionError
=========================== short test summary info ============================
FAILED calliope-backend/tests/test_reverse_fixed_document.py::test_exact_graph_and_original_seventeen_unchanged
1 failed, 686 passed, 1 warning in 5.20s
@@ -0,0 +1,15 @@
# 仓库根;既有Python3.11/锁定依赖;不执行上游插件,不读取媒体/目标机。
uv sync --project calliope-backend --frozen --extra dev --python 3.11 --offline
npm ci --prefix calliope-web --ignore-scripts --offline
python3 docs/hel-892/gif-images-document-evidence/rebuild.py
uv run --project calliope-backend --offline ruff format --config calliope-backend/pyproject.toml calliope-backend/src/calliope/comfyui/fixed_document.py
uv build --project calliope-backend --offline
uv run --project calliope-backend --offline python docs/hel-892/gif-images-document-evidence/recompute.py
python3 docs/hel-892/gif-images-document-evidence/repeat.py
uv run --project calliope-backend --offline pytest calliope-backend/tests/test_gif_images_fixed_document.py calliope-backend/tests/test_reverse_fixed_document.py calliope-backend/tests/test_workflow_library.py calliope-backend/tests/test_nlf_fixed_document.py::test_exact_topology_counts_modes_unknowns_and_old_objects calliope-backend/tests/test_openpose_fixed_document.py::test_exact_document_topology_and_preservation calliope-backend/tests/test_grid_fixed_document.py::test_only_two_reviews_change_and_all_old_blocks_preserved calliope-backend/tests/test_gemma_fixed_document.py::test_real_document_and_frozen_old_thirteen_blocks calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks calliope-backend/tests/test_background_fixed_document.py::test_ten_documents_only_gain_overview_and_new_block_is_independent calliope-backend/tests/test_controlnet_fixed_document.py::test_other_documents_and_block_swaps -q --disable-warnings
uv run --project calliope-backend --offline ruff check --config calliope-backend/pyproject.toml docs/hel-892/gif-images-document-evidence e2e/run-gif-images-document.py calliope-backend/src/calliope/comfyui/fixed_document.py calliope-backend/tests/test_{gif_images,reverse,nlf,openpose,grid,gemma,sdpose,background,controlnet}_fixed_document.py
uv run --project calliope-backend --offline ruff format --check --config calliope-backend/pyproject.toml docs/hel-892/gif-images-document-evidence e2e/run-gif-images-document.py calliope-backend/src/calliope/comfyui/fixed_document.py calliope-backend/tests/test_{gif_images,reverse,nlf,openpose,grid,gemma,sdpose,background,controlnet}_fixed_document.py
node --check e2e/gif-images-document.mjs
LD_LIBRARY_PATH=/home/xiaomo/chromium-libs/root/usr/lib/x86_64-linux-gnu:/home/xiaomo/browserlibs/root/usr/lib/x86_64-linux-gnu PLAYWRIGHT_MODULE=/home/xiaomo/.npm-global/lib/node_modules/playwright/index.mjs BROWSER_EXECUTABLE=/home/xiaomo/.cache/ms-playwright/chromium-1248/chrome-linux64/chrome uv run --project calliope-backend --offline python e2e/run-gif-images-document.py
# 浏览runner finally终止两个本地服务;最后产物复制到本目录再复算实际请求:
python3 docs/hel-892/gif-images-document-evidence/request_counts.py
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 chflame163
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,48 @@
import importlib.util
import os
import sys
import json
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
python = sys.executable
def get_ext_dir(subpath=None, mkdir=False):
dir = os.path.dirname(__file__)
if subpath is not None:
dir = os.path.join(dir, subpath)
dir = os.path.abspath(dir)
if mkdir and not os.path.exists(dir):
os.makedirs(dir)
return dir
def serialize(obj):
if isinstance(obj, (str, int, float, bool, list, dict, type(None))):
return obj
return str(obj) # 转为字符串
py = get_ext_dir("py")
files = os.listdir(py)
all_nodes = {}
for file in files:
if not file.endswith(".py"):
continue
name = os.path.splitext(file)[0]
imported_module = importlib.import_module(".py.{}".format(name), __name__)
try:
NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS}
NODE_DISPLAY_NAME_MAPPINGS = {**NODE_DISPLAY_NAME_MAPPINGS, **imported_module.NODE_DISPLAY_NAME_MAPPINGS}
serialized_CLASS_MAPPINGS = {k: serialize(v) for k, v in imported_module.NODE_CLASS_MAPPINGS.items()}
serialized_DISPLAY_NAME_MAPPINGS = {k: serialize(v) for k, v in imported_module.NODE_DISPLAY_NAME_MAPPINGS.items()}
all_nodes[file]={"NODE_CLASS_MAPPINGS": serialized_CLASS_MAPPINGS, "NODE_DISPLAY_NAME_MAPPINGS": serialized_DISPLAY_NAME_MAPPINGS}
except:
pass
WEB_DIRECTORY = "./js"
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
@@ -0,0 +1,186 @@
import torch
from PIL import Image
import math
from .imagefunc import log, tensor2pil, pil2tensor, image2mask, num_round_up_to_multiple, fit_resize_image, is_valid_mask
class ImageScaleByAspectRatioV2:
def __init__(self):
self.NODE_NAME = 'ImageScaleByAspectRatio V2'
@classmethod
def INPUT_TYPES(self):
ratio_list = ['original', 'custom', '1:1', '3:2', '4:3', '16:9', '2:3', '3:4', '9:16']
fit_mode = ['letterbox', 'crop', 'fill']
method_mode = ['lanczos', 'bicubic', 'hamming', 'bilinear', 'box', 'nearest']
multiple_list = ['8', '16', '32', '64', '128', '256', '512', 'None']
scale_to_list = ['None', 'longest', 'shortest', 'width', 'height', 'total_pixel(kilo pixel)']
return {
"required": {
"aspect_ratio": (ratio_list,),
"proportional_width": ("INT", {"default": 1, "min": 1, "max": 1e8, "step": 1}),
"proportional_height": ("INT", {"default": 1, "min": 1, "max": 1e8, "step": 1}),
"fit": (fit_mode,),
"method": (method_mode,),
"round_to_multiple": (multiple_list,),
"scale_to_side": (scale_to_list,), # 是否按长边缩放
"scale_to_length": ("INT", {"default": 1024, "min": 4, "max": 1e8, "step": 1}),
"background_color": ("STRING", {"default": "#000000"}), # 背景颜色
},
"optional": {
"image": ("IMAGE",), #
"mask": ("MASK",), #
}
}
RETURN_TYPES = ("IMAGE", "MASK", "BOX", "INT", "INT",)
RETURN_NAMES = ("image", "mask", "original_size", "width", "height",)
FUNCTION = 'image_scale_by_aspect_ratio'
CATEGORY = '😺dzNodes/LayerUtility'
def image_scale_by_aspect_ratio(self, aspect_ratio, proportional_width, proportional_height,
fit, method, round_to_multiple, scale_to_side, scale_to_length,
background_color,
image=None, mask = None,
):
orig_images = []
orig_masks = []
orig_width = 0
orig_height = 0
target_width = 0
target_height = 0
ratio = 1.0
ret_images = []
ret_masks = []
if image is not None:
for i in image:
i = torch.unsqueeze(i, 0)
orig_images.append(i)
orig_width, orig_height = tensor2pil(orig_images[0]).size
if mask is not None:
if mask.dim() == 2:
mask = torch.unsqueeze(mask, 0)
for m in mask:
m = torch.unsqueeze(m, 0)
if not is_valid_mask(m) and m.shape==torch.Size([1,64,64]):
log(f"Warning: {self.NODE_NAME} input mask is empty, ignore it.", message_type='warning')
else:
orig_masks.append(m)
if len(orig_masks) > 0:
_width, _height = tensor2pil(orig_masks[0]).size
if (orig_width > 0 and orig_width != _width) or (orig_height > 0 and orig_height != _height):
log(f"Error: {self.NODE_NAME} execute failed, because the mask is does'nt match image.", message_type='error')
return (None, None, None, 0, 0,)
elif orig_width + orig_height == 0:
orig_width = _width
orig_height = _height
if orig_width + orig_height == 0:
log(f"Error: {self.NODE_NAME} execute failed, because the image or mask at least one must be input.", message_type='error')
return (None, None, None, 0, 0,)
if aspect_ratio == 'original':
ratio = orig_width / orig_height
elif aspect_ratio == 'custom':
ratio = proportional_width / proportional_height
else:
s = aspect_ratio.split(":")
ratio = int(s[0]) / int(s[1])
# calculate target width and height
if ratio > 1:
if scale_to_side == 'longest':
target_width = scale_to_length
target_height = int(target_width / ratio)
elif scale_to_side == 'shortest':
target_height = scale_to_length
target_width = int(target_height * ratio)
elif scale_to_side == 'width':
target_width = scale_to_length
target_height = int(target_width / ratio)
elif scale_to_side == 'height':
target_height = scale_to_length
target_width = int(target_height * ratio)
elif scale_to_side == 'total_pixel(kilo pixel)':
target_width = math.sqrt(ratio * scale_to_length * 1000)
target_height = target_width / ratio
target_width = int(target_width)
target_height = int(target_height)
else:
target_width = orig_width
target_height = int(target_width / ratio)
else:
if scale_to_side == 'longest':
target_height = scale_to_length
target_width = int(target_height * ratio)
elif scale_to_side == 'shortest':
target_width = scale_to_length
target_height = int(target_width / ratio)
elif scale_to_side == 'width':
target_width = scale_to_length
target_height = int(target_width / ratio)
elif scale_to_side == 'height':
target_height = scale_to_length
target_width = int(target_height * ratio)
elif scale_to_side == 'total_pixel(kilo pixel)':
target_width = math.sqrt(ratio * scale_to_length * 1000)
target_height = target_width / ratio
target_width = int(target_width)
target_height = int(target_height)
else:
target_height = orig_height
target_width = int(target_height * ratio)
if round_to_multiple != 'None':
multiple = int(round_to_multiple)
target_width = num_round_up_to_multiple(target_width, multiple)
target_height = num_round_up_to_multiple(target_height, multiple)
_mask = Image.new('L', size=(target_width, target_height), color='black')
_image = Image.new('RGB', size=(target_width, target_height), color='black')
resize_sampler = Image.LANCZOS
if method == "bicubic":
resize_sampler = Image.BICUBIC
elif method == "hamming":
resize_sampler = Image.HAMMING
elif method == "bilinear":
resize_sampler = Image.BILINEAR
elif method == "box":
resize_sampler = Image.BOX
elif method == "nearest":
resize_sampler = Image.NEAREST
if len(orig_images) > 0:
for i in orig_images:
_image = tensor2pil(i).convert('RGB')
_image = fit_resize_image(_image, target_width, target_height, fit, resize_sampler, background_color)
ret_images.append(pil2tensor(_image))
if len(orig_masks) > 0:
for m in orig_masks:
_mask = tensor2pil(m).convert('L')
_mask = fit_resize_image(_mask, target_width, target_height, fit, resize_sampler).convert('L')
ret_masks.append(image2mask(_mask))
if len(ret_images) > 0 and len(ret_masks) >0:
log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
return (torch.cat(ret_images, dim=0), torch.cat(ret_masks, dim=0),[orig_width, orig_height], target_width, target_height,)
elif len(ret_images) > 0 and len(ret_masks) == 0:
log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
return (torch.cat(ret_images, dim=0), None, [orig_width, orig_height], target_width, target_height,)
elif len(ret_images) == 0 and len(ret_masks) > 0:
log(f"{self.NODE_NAME} Processed {len(ret_masks)} image(s).", message_type='finish')
return (None, torch.cat(ret_masks, dim=0), [orig_width, orig_height], target_width, target_height,)
else:
log(f"Error: {self.NODE_NAME} skipped, because the available image or mask is not found.", message_type='error')
return (None, None, None, 0, 0,)
NODE_CLASS_MAPPINGS = {
"LayerUtility: ImageScaleByAspectRatio V2": ImageScaleByAspectRatioV2
}
NODE_DISPLAY_NAME_MAPPINGS = {
"LayerUtility: ImageScaleByAspectRatio V2": "LayerUtility: ImageScaleByAspectRatio V2"
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,45 @@
{
"sources": [
{
"id": "layer",
"file": "__init__.py",
"local_file": "layer____init__.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/__init__.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0"
},
{
"id": "layer",
"file": "py/image_scale_by_aspect_ratio_v2.py",
"local_file": "layer__py__image_scale_by_aspect_ratio_v2.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/image_scale_by_aspect_ratio_v2.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "4e908519f8acd3260d454a39a40f0cbfcb5eb4e5bfbbb9c44147a4caa3034aa5"
},
{
"id": "layer",
"file": "py/imagefunc.py",
"local_file": "layer__py__imagefunc.py",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/py/imagefunc.py",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0"
},
{
"id": "layer",
"file": "LICENSE",
"local_file": "layer__LICENSE",
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c/LICENSE",
"commit": "4f4d5cbbe40e030a5a0bb474fb65c4032585bc3c",
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0"
},
{
"id": "vhs",
"file": "videohelpersuite/load_images_nodes.py",
"local_file": "vhs__videohelpersuite__load_images_nodes.py",
"url": "https://cdn.comfy.org/kosinkadink/comfyui-videohelpersuite/1.7.7/node.zip",
"commit": "发布包SHA256:f845b43edc8342439c42809524669f8aceecfb9eca946d660e351364d341d9b1",
"sha256": "275fa08acf4ee3163c6d403abea5ef7d088b0a6afbd705d9b0d55623818ffdc4",
"git_commit_binding": "unknown"
}
]
}
@@ -0,0 +1,206 @@
import os
import hashlib
import numpy as np
import torch
from PIL import Image, ImageOps
import itertools
import folder_paths
from comfy.k_diffusion.utils import FolderOfImages
from comfy.utils import common_upscale, ProgressBar
from .logger import logger
from .utils import BIGMAX, calculate_file_hash, get_sorted_dir_files_from_directory, validate_path, strip_path
def is_changed_load_images(directory: str, image_load_cap: int = 0, skip_first_images: int = 0, select_every_nth: int = 1, **kwargs):
if not os.path.isdir(directory):
return False
dir_files = get_sorted_dir_files_from_directory(directory, skip_first_images, select_every_nth, FolderOfImages.IMG_EXTENSIONS)
if image_load_cap != 0:
dir_files = dir_files[:image_load_cap]
m = hashlib.sha256()
for filepath in dir_files:
m.update(calculate_file_hash(filepath).encode()) # strings must be encoded before hashing
return m.digest().hex()
def validate_load_images(directory: str):
if not os.path.isdir(directory):
return f"Directory '{directory}' cannot be found."
dir_files = os.listdir(directory)
if len(dir_files) == 0:
return f"No files in directory '{directory}'."
return True
def images_generator(directory: str, image_load_cap: int = 0, skip_first_images: int = 0, select_every_nth: int = 1, meta_batch=None, unique_id=None):
if not os.path.isdir(directory):
raise FileNotFoundError(f"Directory '{directory} cannot be found.")
dir_files = get_sorted_dir_files_from_directory(directory, skip_first_images, select_every_nth, FolderOfImages.IMG_EXTENSIONS)
if len(dir_files) == 0:
raise FileNotFoundError(f"No files in directory '{directory}'.")
if image_load_cap > 0:
dir_files = dir_files[:image_load_cap]
sizes = {}
has_alpha = False
for image_path in dir_files:
i = Image.open(image_path)
#exif_transpose can only ever rotate, but rotating can swap width/height
i = ImageOps.exif_transpose(i)
has_alpha |= 'A' in i.getbands()
count = sizes.get(i.size, 0)
sizes[i.size] = count +1
size = max(sizes.items(), key=lambda x: x[1])[0]
yield size[0], size[1], has_alpha
if meta_batch is not None:
yield min(image_load_cap, len(dir_files)) or len(dir_files)
iformat = "RGBA" if has_alpha else "RGB"
def load_image(file_path):
i = Image.open(file_path)
i = ImageOps.exif_transpose(i)
i = i.convert(iformat)
i = np.array(i, dtype=np.float32)
#This nonsense provides a nearly 50% speedup on my system
torch.from_numpy(i).div_(255)
if i.shape[0] != size[1] or i.shape[1] != size[0]:
i = torch.from_numpy(i).movedim(-1, 0).unsqueeze(0)
i = common_upscale(i, size[0], size[1], "lanczos", "center")
i = i.squeeze(0).movedim(0, -1).numpy()
if has_alpha:
i[:,:,-1] = 1 - i[:,:,-1]
return i
total_images = len(dir_files)
processed_images = 0
pbar = ProgressBar(total_images)
images = map(load_image, dir_files)
try:
prev_image = next(images)
while True:
next_image = next(images)
yield prev_image
processed_images += 1
pbar.update_absolute(processed_images, total_images)
prev_image = next_image
except StopIteration:
pass
if meta_batch is not None:
meta_batch.inputs.pop(unique_id)
meta_batch.has_closed_inputs = True
if prev_image is not None:
yield prev_image
def load_images(directory: str, image_load_cap: int = 0, skip_first_images: int = 0, select_every_nth: int = 1, meta_batch=None, unique_id=None):
if meta_batch is None or unique_id not in meta_batch.inputs:
gen = images_generator(directory, image_load_cap, skip_first_images, select_every_nth, meta_batch, unique_id)
(width, height, has_alpha) = next(gen)
if meta_batch is not None:
meta_batch.inputs[unique_id] = (gen, width, height, has_alpha)
meta_batch.total_frames = min(meta_batch.total_frames, next(gen))
else:
gen, width, height, has_alpha = meta_batch.inputs[unique_id]
if meta_batch is not None:
gen = itertools.islice(gen, meta_batch.frames_per_batch)
images = torch.from_numpy(np.fromiter(gen, np.dtype((np.float32, (height, width, 3 + has_alpha)))))
if has_alpha:
#tensors are not continuous. Rewrite will be required if this is an issue
masks = images[:,:,:,3]
images = images[:,:,:,:3]
else:
masks = torch.zeros((images.size(0), 64, 64), dtype=torch.float32, device="cpu")
if len(images) == 0:
raise FileNotFoundError(f"No images could be loaded from directory '{directory}'.")
return images, masks, images.size(0)
class LoadImagesFromDirectoryUpload:
@classmethod
def INPUT_TYPES(s):
input_dir = folder_paths.get_input_directory()
directories = []
for item in os.listdir(input_dir):
if not os.path.isfile(os.path.join(input_dir, item)) and item != "clipspace":
directories.append(item)
return {
"required": {
"directory": (directories,),
},
"optional": {
"image_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}),
"skip_first_images": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}),
"select_every_nth": ("INT", {"default": 1, "min": 1, "max": BIGMAX, "step": 1}),
"meta_batch": ("VHS_BatchManager",),
},
"hidden": {
"unique_id": "UNIQUE_ID"
},
}
RETURN_TYPES = ("IMAGE", "MASK", "INT")
RETURN_NAMES = ("IMAGE", "MASK", "frame_count")
FUNCTION = "load_images"
CATEGORY = "Video Helper Suite 🎥🅥🅗🅢"
def load_images(self, directory: str, **kwargs):
directory = folder_paths.get_annotated_filepath(strip_path(directory))
return load_images(directory, **kwargs)
@classmethod
def IS_CHANGED(s, directory: str, **kwargs):
directory = folder_paths.get_annotated_filepath(strip_path(directory))
return is_changed_load_images(directory, **kwargs)
@classmethod
def VALIDATE_INPUTS(s, directory: str, **kwargs):
directory = folder_paths.get_annotated_filepath(strip_path(directory))
return validate_load_images(directory)
class LoadImagesFromDirectoryPath:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"directory": ("STRING", {"placeholder": "X://path/to/images", "vhs_path_extensions": []}),
},
"optional": {
"image_load_cap": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}),
"skip_first_images": ("INT", {"default": 0, "min": 0, "max": BIGMAX, "step": 1}),
"select_every_nth": ("INT", {"default": 1, "min": 1, "max": BIGMAX, "step": 1}),
"meta_batch": ("VHS_BatchManager",),
},
"hidden": {
"unique_id": "UNIQUE_ID"
},
}
RETURN_TYPES = ("IMAGE", "MASK", "INT")
RETURN_NAMES = ("IMAGE", "MASK", "frame_count")
FUNCTION = "load_images"
CATEGORY = "Video Helper Suite 🎥🅥🅗🅢"
def load_images(self, directory: str, **kwargs):
directory = strip_path(directory)
if directory is None or validate_load_images(directory) != True:
raise Exception("directory is not valid: " + directory)
return load_images(directory, **kwargs)
@classmethod
def IS_CHANGED(s, directory: str, **kwargs):
if directory is None:
return "input"
return is_changed_load_images(directory, **kwargs)
@classmethod
def VALIDATE_INPUTS(s, directory: str, **kwargs):
if directory is None:
return True
return validate_load_images(strip_path(directory))
File diff suppressed because it is too large Load Diff
+100
View File
@@ -0,0 +1,100 @@
// Local GET-only reverse 21 positions and seventeen frozen summaries.
import fs from 'node:fs';
import assert from 'node:assert/strict';
const { chromium } = await import(process.env.PLAYWRIGHT_MODULE || 'playwright');
const out='.local-evidence/gif-images-document/browser';fs.mkdirSync(out,{recursive:true});
const checks=[],requests=[],errors=[],blockedFonts=[],assertionGroups={};let group='aggregate';
function check(condition,label){assert.ok(condition,label);checks.push(label);assertionGroups[group]=(assertionGroups[group]||0)+1;console.log('PASS '+label);}
const browser=await chromium.launch({headless:true,executablePath:process.env.BROWSER_EXECUTABLE});
try {
const page=await browser.newPage({viewport:{width:1440,height:1000}});
await page.route('**/*',route=>{
const u=new URL(route.request().url());
if(u.hostname==='fonts.googleapis.com'){blockedFonts.push(String(u));return route.fulfill({contentType:'text/css',body:''});}
if(route.request().method()!=='GET'||u.hostname!=='127.0.0.1'||u.pathname==='/api/view'||(/\.(mp4|png|wav|mp3|webm)$/i.test(u.pathname)&&u.pathname!=='/favicon.png')){errors.push('Forbidden request '+u);return route.abort();}
return route.continue();
});
page.on('request',r=>{if(r.url().includes('/api/'))requests.push({method:r.method(),url:r.url()});});
page.on('pageerror',e=>errors.push(e.message));
requests.push({method:'GET',url:'http://127.0.0.1:8247/api/workflows'});
const records=await(await fetch('http://127.0.0.1:8247/api/workflows')).json();
const names=['视频转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===20&&details.reduce((n,d)=>n+d.doc_json.fixed_version.fields.length,0)===576,'20图576保存位置');
check(details.reduce((n,d)=>n+(d.doc_json.source_notes?.length||0),0)===15,'20图15源注释');
await page.goto('http://127.0.0.1:5173/connections',{waitUntil:'networkidle'});
const dialog=page.getByRole('dialog',{name:'工作流说明'});
const fixedCard=dialog.locator('.card').filter({has:page.getByText('固定版本参数说明',{exact:true})});
async function begin(name){const row=page.locator('.wf-row').filter({has:page.locator('.wf-name').filter({hasText:name})}).first();const button=row.getByRole('button',{name:'说明',exact:true});await button.focus();await page.keyboard.press('Enter');return button;}
async function loaded(){await dialog.getByText('用途与来源',{exact:true}).waitFor();await dialog.evaluate(el=>Promise.all(el.getAnimations().map(a=>a.finished)));}
for(const width of [1440,390]){
await page.setViewportSize({width,height:width===390?844:1000});
for(const d of details){
group=details.indexOf(d)<2?'new_gif_images':'old_eighteen';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)<3)await page.screenshot({path:`${out}/${width}-${d.id}-default.png`});
await dialog.getByText('源图与审校记录',{exact:true}).click();
check((await overview.innerText()).includes(d.doc_json.purpose)&&(await overview.innerText()).includes(d.source_repo_path),`${width} ${d.name}原用途/源路径展开保留`);
await dialog.getByText('核对范围与来源依据',{exact:true}).click();
const flowText=await fixedCard.innerText();
for(const line of b.flow)check(flowText.includes(line),`${width} ${d.name}展开流程 ${b.flow.indexOf(line)}`);
await dialog.getByText('版本、源图与连线依据',{exact:true}).click();
check((await fixedCard.innerText()).includes(b.source_sha256)&&b.versions.every(v=>(v&&true)),`${width} ${d.name}原件摘要可展开`);
const versionText=await fixedCard.innerText();
for(const v of b.versions)check(versionText.includes(v),`${width} ${d.name}版本 ${b.versions.indexOf(v)}`);
if(details.indexOf(d)<2){
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(['directory','frame_rate','force_rate','per_batch','warmup','width','height','render_backend','videopreview','format','scale_to_length','update_inputs'].includes(f.field))await page.screenshot({path:`${out}/${width}-${d.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}无溢出`);await summary.click();}
await dialog.getByRole('button',{name:'关闭',exact:true}).focus();await page.keyboard.press('Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}Tab焦点保留`);await page.keyboard.press('Shift+Tab');check(await dialog.evaluate(el=>el.contains(document.activeElement)),`${width}ShiftTab焦点保留`);
}
await page.keyboard.press('Escape');await dialog.waitFor({state:'hidden'});check(await button.evaluate(el=>el===document.activeElement),`${width} ${d.name}关闭归还焦点`);
}
}
group='shared_regressions';
for(const name of ['旧工作流回退(隔离测试夹具)','空说明回退(隔离测试夹具)']){await begin(name);await loaded();check((await dialog.innerText()).includes('隔离库旧条目回退测试'),'旧/空说明回退 '+name);await page.keyboard.press('Escape');}
// Missing summary and mismatched bindings are tested with local GET fixtures, without writes.
for(const variant of ['missing-overview','mismatched','html-summary']){
const d=structuredClone(details[0]);
if(variant==='missing-overview')delete d.doc_json.fixed_version.user_overview;
if(variant==='mismatched')d.doc_json.fixed_version={matched:false,notice:'固定版本参数说明待核对:源文件、声明版本或说明依据未匹配,未采用旧定义。'};
if(variant==='html-summary')d.doc_json.fixed_version.user_overview='<img src="https://example.invalid/forbidden">仅纯文本';
await page.route(`**/api/workflows/${d.id}`,route=>route.fulfill({json:d}));await begin(d.name);await loaded();
if(variant==='missing-overview')check((await dialog.innerText()).includes('这张图的用途和操作重点可在下方使用步骤中查看;目标环境与实际效果仍待核对。'),'缺摘要自然中文回退');
if(variant==='mismatched')check((await dialog.innerText()).includes(d.doc_json.fixed_version.notice)&&!await dialog.getByText('核对范围与来源依据',{exact:true}).count(),'错绑定提示明确且不展示旧字段');
if(variant==='html-summary')check((await dialog.innerText()).includes(d.doc_json.fixed_version.user_overview)&&await dialog.locator('img').count()===0,'摘要HTML仅纯文本不创建图像或请求');
check(!(await dialog.innerText()).includes('undefined'),'回退不暴露undefined');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${d.id}`);
}
let release,entered,delivered;const hold=new Promise(r=>release=r),intercept=new Promise(r=>entered=r),done=new Promise(r=>delivered=r);
await page.route(`**/api/workflows/${details[0].id}`,async route=>{entered();await hold;await route.fulfill({json:details[0]});delivered();});
await begin(details[0].name);await intercept;await page.keyboard.press('Escape');await begin(details[1].name);await loaded();release();await done;
check((await dialog.innerText()).includes(details[1].doc_json.fixed_version.user_overview)&&await fixedCard.locator('summary').filter({hasText:/^节点 [\d:]+ · /}).count()===34,'迟到GIF响应不覆盖图片合成摘要/34字段');await page.keyboard.press('Escape');await page.unroute(`**/api/workflows/${details[0].id}`);
await page.route(`**/api/workflows/${details[0].id}`,route=>route.fulfill({status:500,json:{detail:'隔离失败夹具'}}));await begin(details[0].name);await dialog.getByRole('alert').waitFor({timeout:20000});check(await dialog.getByRole('button',{name:'重试',exact:true}).isVisible(),'GET失败显示重试');check(await dialog.getByText('用途与来源',{exact:true}).count()===0,'读取失败隐藏旧摘要');await page.unroute(`**/api/workflows/${details[0].id}`);await dialog.getByRole('button',{name:'重试',exact:true}).click();await loaded();check((await dialog.innerText()).includes(details[0].doc_json.fixed_version.user_overview),'重试恢复摘要');await page.keyboard.press('Escape');
check(errors.length===0,'无脚本错误或禁止请求 '+JSON.stringify(errors));check(requests.every(r=>r.method==='GET'&&new URL(r.url).hostname==='127.0.0.1'&&!r.url.includes('/api/view')),'全程本地GET无写/生成/目标/历史预览请求');
const polling=requests.filter(r=>['/api/jobs','/api/events'].includes(new URL(r.url).pathname));
const fixed=requests.filter(r=>!polling.includes(r));
const frequencies=rs=>Object.fromEntries([...new Set(rs.map(r=>new URL(r.url).pathname))].sort().map(p=>[p,rs.filter(r=>new URL(r.url).pathname===p).length]));
fs.writeFileSync(`${out}/browser-results.json`,JSON.stringify({request_accounting:{fixed_count:fixed.length,fixed_paths:frequencies(fixed),polling_count:polling.length,polling_paths:frequencies(polling),polling_tolerance:1,reason:'定时轮询可因浏览耗时与计时器边界相差±1;固定请求逐条保存,不忽略真实新请求,禁止请求零容忍。'},assertion_count:checks.length,assertionGroups,checks,requests,errors,blockedFonts,viewports:[1440,390]},null,2));
} finally {await browser.close();}
+78
View File
@@ -0,0 +1,78 @@
"""Foreground local browser check; stop every owned service before returning."""
from __future__ import annotations
import os
import signal
import subprocess
import sys
import time
import urllib.error
import urllib.request
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
OUT = ROOT / ".local-evidence/gif-images-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 = ["gif-images"]
for name in names:
subprocess.run(["node", f"e2e/{name}-document.mjs"], cwd=ROOT, check=True)
finally:
for p in processes:
if p.poll() is None:
os.killpg(p.pid, signal.SIGTERM)
try:
p.wait(timeout=10)
except subprocess.TimeoutExpired:
os.killpg(p.pid, signal.SIGKILL)
p.wait(timeout=5)
for log in logs:
log.close()
print("All owned browser services stopped.")
if __name__ == "__main__":
main()