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
@@ -154,6 +154,7 @@ def test_real_document_and_frozen_old_fourteen_blocks():
p
for p in DEFINITIONS
if p != PATH
and not p.endswith("/birefnet_图像移除背景.json")
and not p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json"))
and not p.endswith(
("NLF_视频人物动作骨架获取.json", "/视频倒放.json", "双图像或视频合并显示.json")
@@ -161,6 +162,8 @@ 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())
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
now[latent].pop("fixed_version_document")
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
@@ -186,7 +189,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) == 23
assert len(now) == 156 and len(DEFINITIONS) == 24
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]