HEL-892: add source-bound BiRefNet background removal reading notes

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-30 20:43:39 +08:00
co-authored by multica-agent
parent 6e1e47b8e7
commit fb93acc3b4
95 changed files with 30951 additions and 13 deletions
@@ -213,6 +213,8 @@ 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())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
for added in [
p
for p in now
@@ -228,7 +230,7 @@ def test_exact_graph_and_original_seventeen_unchanged():
]:
now[added].pop("fixed_version_document")
assert now[PATH].pop("fixed_version_document") == BLOCK
assert now == old and len(DEFINITIONS) == 23
assert now == old and len(DEFINITIONS) == 24
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 (
@@ -237,6 +239,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("/birefnet_图像移除背景.json"):
continue
if p.endswith(
(
"视频转gif动图图片.json",