💃 Free CC0 mannequin pose reference library for AI image tools (Nano Banana, ChatGPT, ComfyUI, Midjourney) — 250+ poses × 5 angles in line art, names in ja/zh/en/ko
Python ai-artai-image-generationart-referencecc0comfyuicontrolnetdatasetdrawing-referencefigure-drawingline-artmannequinmidjourneymultilingualnano-bananapose-referencereference-imagesstable-diffusion
feat(tools): single-view fills resolved per view across build, review, merge and verify
wquguru23adf5dbcc76
diff --git a/AGENTS.md b/AGENTS.mdindex 05b48534..fa71ab2b 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -45,7 +45,8 @@ CONTRIBUTING.md contributor guide; SECURITY.md, CODE_OF_CONDUCT.md; .githubCHANGELOG.md Keep a Changelog; every user-visible change adds a line under [Unreleased]data/catalog.json 288 poses: id, orig_id, series, rating, added_in, class_*, name_* (jp/cn/en/kr), desc_en,views{front..below} (file or null), gaps{view: missing|line|structure}, photos{view: file},- bodies (duo only: MF / FF), source (redrawn sets only: digi, D-09)+ bodies (duo only: MF / FF), source (redrawn sets only: digi, D-09),+ fills{view: source} (single views redrawn later by the original generator)data/packs.json Release download zips: file, bytes, sets (tools/pack_release.py; the gallery shows the sizes)data/qc.json per-view and per-photo QC status, reason and file name; per-set pose-name notes; sources ofredrawn sets (docs/qc/README.md)@@ -63,7 +64,7 @@ site/ build output of tools/build_site.py (git-ignored; deploy th_headers (Cloudflare cache rules)build/og-cache/ share-card render cache (git-ignored)tools/ build_images.py, build_site.py (+ site_pages.py, og_cards.py), verify.py, pack_release.py,- import_series.py, import_redraws.py, review_sheets.py, line_dups.py, qc_merge.py, rating_check.py,+ import_series.py, import_redraws.py, import_fills.py, review_sheets.py, line_dups.py, qc_merge.py, rating_check.py,export_csv.pydocs/qc/ QC method, results and the reviewer prompts (panels, name, limbs, proportion, photo, rating).claude/agents/ qc-reviewer: the Sonnet sub-agent every QC batch is sent to@@ -86,10 +87,13 @@ All series share `data/catalog.json`; a new series gets its own prefix and ID le```bashpython3 tools/build_images.py std=~/Downloads/pose-gallery-std73 sexy=~/Downloads/pose-gallery-sexy80 \upper=~/Downloads/pose-gallery-upper80 duo=~/Downloads/pose-gallery-duo55 \- digi=~/Downloads/pose-gallery-digi66 # passing views only; prunes the rest. digi = redrawn sets (D-09)+ digi=~/Downloads/pose-gallery-digi66 fill-r1=~/Downloads/pose-gallery-fill-r1 # passing views only; prunes the rest+ # digi = redrawn sets (D-09); fill-r1 = single views refilled by Musepython3 tools/verify.py # catalog ↔ qc.json ↔ images, gaps, orphanspython3 tools/import_series.py SRC --series X --added 0.2.0 [--general Cute] # merge a new seriespython3 -I tools/import_redraws.py SRC OUT --source digi --only P019,… # whole-set redraws, then QC (D-09)+python3 -I tools/import_fills.py ~/Downloads/muse-fill-r1-batchNN ~/Downloads/pose-gallery-fill-r1 --source fill-r1+ # single-view fills from Muse, then QC (docs/GENERATION.md)python3 tools/qc_merge.py data/qc-input # apply review results (docs/qc/README.md)python3 tools/build_site.py --link-images && python3 -m http.server 8000 -d site # preview the gallerypython3 -I tools/build_site.py --public --site https://shisei.indaloop.app # deploy build (D-05); share cards need Chrome, --no-og skipsdiff --git a/CHANGELOG.md b/CHANGELOG.mdindex f03eb487..7a86d34d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,6 +8,9 @@ the catalog schema.## [Unreleased]### Added+- Single-view fills from the original generator (Muse, round fill-r1): `import_fills.py` stages them, catalog+ `fills: {view: source}` points each view at its fill source, and build, review, dups, merge, pack and verify resolve+ the source per view. Batch 01 (std): 7 of 10 delivered views passed QC; std now has 294 of 365 views.- Home hero: a "making of" badge above the title links the X article on how the library was built; it replaces the`SHISEI · 姿勢` eyebrow, strings in all four languages.diff --git a/docs/GENERATION.md b/docs/GENERATION.mdindex 44d4a9a8..d37c1d4b 100644--- a/docs/GENERATION.md+++ b/docs/GENERATION.md@@ -42,3 +42,14 @@## 实拍P001–P022 每套 5 机位(拍摄批),另有 P050 正面,共 112 张;质检通过 103 张列入 catalog。++## 单格补图 fill-r1(2026-10-30 起,Muse)+原 Muse 套里没过质检或没生成的格,由 Muse 按格重画(同一生成器、同一素体,和同套其他机位放在一起不算混画;digi 套不补,D-09)。+- 范围:至少还有一个通过机位的原 Muse 套,共 223 格(138 套),分 19 批(`~/Downloads/muse-fill-r1/`:每批简报、参考机位、manifest);+ 一个机位都没过的 8 套(P038、P052、D014、D016、D018、D022、D029、D050)要整套重画,人定。+- 调用:Claude Code 从窗口外驱动 Muse(CGEvent 点击 + 剪贴板粘贴 + 只截 Muse 窗口),每批开一个侧边对话;Muse 读它自己的+ `pose_lineart_gallery` skill 和 EverOS 里的定稿模板、拒绝阶梯,以原包同套已通过机位做线稿转机位输入,每格最多 4 次,交付 zip + attempts.csv。+- 入库:`import_fills.py` 拷到 `~/Downloads/pose-gallery-fill-r1/img/`,catalog 写 `fills: {view: "fill-r1"}`;质检按 qc/README.md,+ 结果文件顶层 `"source": "fill-r1"`,只作用于这些格。+- 第 1 批(std 8 套 13 格):Muse 交 10 格、3 格四次都画错(P004 仰视、P014 正面、P015 俯视);质检过 7 格,+ P006 仰视(不是仰视、头上像帽子)、P009 斜侧(脚成尖团、腿粘连)、P012 仰视(不是仰视)不过。diff --git a/docs/qc/README.md b/docs/qc/README.mdindex c46d539b..af7f476e 100644--- a/docs/qc/README.md+++ b/docs/qc/README.md@@ -111,6 +111,13 @@ S068 正面 / 侧面 / 仰视(顶部横线),U032 仰视(桌沿线),D`qc.json` 新增 `sources`,记每个重画姿势的来源,`verify.py` 核对它和 catalog 一致。- 结果:std 71/73 套、287 格;upper 80/80、337 格;sexy 80/80、323 格;duo 不变。实拍 89/112(P019、P020、P022 按旧画拍的 14 张人定下架)。+## 第四轮(2026-10-30 起):单格补图 fill-r1+Muse 按格补画的机位(docs/GENERATION.md),只审新格:`review_sheets.py --only-source fill-r1`(逐格 + 肢体计数),+`line_dups.py --source fill-r1` 拿新格和同套其他机位比重复。姿势名检查沿用原画的整套结论。结果文件顶层写 `"source": "fill-r1"`;+`qc_merge.py` 按格判断来源(catalog `fills`),所以原画旧的不通过不会压住新格,新格也不吃旧结论。新格没出现在任何一张已审审图上时拒绝合并。+- 第 1 批:1 个 Sonnet 逐格(`fail_fill-r1_aa.json`,3 格不过),1 个 Sonnet 肢体计数(`limbs_fill-r1_aa.json`,标 2 格:P009 斜侧已不过;+ P014 侧面远侧手臂被身体挡住,目视判为遮挡,保留,待人复核)。+## 复审 / 新系列```bashSRC="std=$HOME/Downloads/pose-gallery-std73 sexy=$HOME/Downloads/pose-gallery-sexy80 upper=$HOME/Downloads/pose-gallery-upper80 duo=$HOME/Downloads/pose-gallery-duo55 digi=$HOME/Downloads/pose-gallery-digi66"diff --git a/tools/build_images.py b/tools/build_images.pyindex 2054d570..21e27e9f 100755--- a/tools/build_images.py+++ b/tools/build_images.py@@ -4,6 +4,7 @@Usage: python3 tools/build_images.py std=~/Downloads/pose-gallery-std73 sexy=... upper=...Line art comes from <src>/img/<file>, photos from <src>/photo/<file>. A pose with a catalog `source` (a redrawn set,tools/import_redraws.py) is read from the source set given under that name instead, e.g. digi=~/Downloads/....+A single view filled later (catalog `fills`, tools/import_fills.py) is read from its fill source, e.g. fill-r1=....Only catalog views (non-null) and catalogphotos are built; any other file under images/ is deleted, so a view that fails QC leaves the repo.Re-encoding is downscale-only from already-lossy sources: w900 q75 (lightbox/download),@@ -19,7 +20,8 @@ def main() -> None:srcs = {k: pathlib.Path(v).expanduser() for k, v in (a.split("=", 1) for a in sys.argv[1:])}want = set()for p in json.loads((ROOT / "data/catalog.json").read_text()):- jobs = [("line", srcs[p.get("source") or p["series"]] / "img" / f) for f in p["views"].values() if f]+ jobs = [("line", srcs[p.get("fills", {}).get(v) or p.get("source") or p["series"]] / "img" / f)+ for v, f in p["views"].items() if f]# Photo renders were made from the original drawings, so they always come from the series source.jobs += [("photo", srcs[p["series"]] / "photo" / f) for f in (p.get("photos") or {}).values()]for kind, src in jobs:diff --git a/tools/import_fills.py b/tools/import_fills.pynew file mode 100644index 00000000..90e838b9--- /dev/null+++ b/tools/import_fills.py@@ -0,0 +1,53 @@+#!/usr/bin/env python3+"""Stage single-view fills from the original generator (Muse) and point those catalog views at them.++Usage: python3 tools/import_fills.py DELIVERY OUT --source fill-r1+DELIVERY holds img/<series>_<ID>_<view>.webp (a Muse batch, docs/GENERATION.md); each file is copied to OUT/img+under the same name, so OUT works as a source set (`fill-r1=OUT`) for build_images.py, review_sheets.py,+line_dups.py and pack_release.py. In data/catalog.json the view gets `fills: {view: source}` and its file name, so the+next review sees it; qc_merge.py then judges it on reviews tagged with that source only.+A fill is the same generator and mannequin as the rest of its set, so it may sit next to the set's other views. It is+refused for redrawn sets (catalog `source`, D-09: five views from one drawing) and for views that already pass.+"""+import argparse, json, pathlib, re, shutil, sys++ROOT = pathlib.Path(__file__).resolve().parent.parent+NAME = re.compile(r"^([a-z]+)_([A-Z]\d{3})_(front|diag|side|above|below)\.webp$")+++def main() -> None:+ ap = argparse.ArgumentParser()+ ap.add_argument("delivery")+ ap.add_argument("out")+ ap.add_argument("--source", required=True)+ a = ap.parse_args()+ src, out = pathlib.Path(a.delivery).expanduser(), pathlib.Path(a.out).expanduser()+ (out / "img").mkdir(parents=True, exist_ok=True)+ path = ROOT / "data/catalog.json"+ cat = json.loads(path.read_text())+ by_id = {p["id"]: p for p in cat}+ staged, errs = [], []+ for f in sorted((src / "img").glob("*.webp")):+ m = NAME.match(f.name)+ p = by_id.get(m.group(2)) if m else None+ if p is None or p["series"] != m.group(1):+ errs.append(f"{f.name}: not a catalog view name")+ elif p.get("source"):+ errs.append(f"{f.name}: {p['id']} is a redrawn set ({p['source']}); fills would mix two drawings")+ elif p["views"].get(m.group(3)) and p.get("fills", {}).get(m.group(3)) != a.source:+ errs.append(f"{f.name}: view already passes")+ else:+ staged.append((p, m.group(3), f))+ if errs:+ sys.exit("\n".join(errs))+ for p, v, f in staged:+ shutil.copy2(f, out / "img" / f.name)+ p.setdefault("fills", {})[v] = a.source+ p["views"][v] = f.name+ p["gaps"].pop(v, None)+ path.write_text(json.dumps(cat, ensure_ascii=False, indent=1) + "\n")+ print(f"{a.source}: {len(staged)} views staged in {out / 'img'}; run the review, then qc_merge.py")+++if __name__ == "__main__":+ main()diff --git a/tools/line_dups.py b/tools/line_dups.pyindex d5d9c4bd..0a54538f 100644--- a/tools/line_dups.py+++ b/tools/line_dups.py@@ -3,7 +3,9 @@Usage: python3 tools/line_dups.py OUT.json std=SRC_IMG_DIR sexy=SRC_IMG_DIR upper=SRC_IMG_DIRpython3 tools/line_dups.py data/qc-input/dups_digi.json --source digi digi=SRC_IMG_DIR-With --source only poses redrawn from that source are checked and the output is tagged with it (qc_merge.py).+ python3 tools/line_dups.py data/qc-input/dups_fill-r1.json --source fill-r1 fill-r1=DIR std=SRC_IMG_DIR …+With --source only views from that source are checked (a redrawn set, or single-view fills compared against the rest+of their set) and the output is tagged with it (qc_merge.py); only a view from that source is ever flagged.Lines are thickened with a min filter, then compared at 96x128; the same image scores < 6, distinct angles > 8.The non-front (later) view of each near-identical pair is flagged."""@@ -22,16 +24,22 @@ def main() -> None:args = [x for x in args if "=" in x]out, srcs, flags = pathlib.Path(sys.argv[1]), dict(a.split("=", 1) for a in args), []for p in json.loads((ROOT / "data/catalog.json").read_text()):- key = p.get("source") or p["series"]- if p.get("source") != source or key not in srcs:+ vsrc = {v: p.get("fills", {}).get(v) or p.get("source") or p["series"] for v in VIEWS if p["views"].get(v)}+ vsrc = {v: s for v, s in vsrc.items() if s in srcs}+ mine = {v for v, s in vsrc.items() if s == (source or p["series"])}+ if not mine:continue- d = pathlib.Path(srcs[key]).expanduser()- im = {v: np.asarray(Image.open(d / p["views"][v]).convert("L").filter(ImageFilter.MinFilter(5)).resize((96, 128)), dtype=float)- for v in VIEWS if p["views"].get(v)}+ im = {v: np.asarray(Image.open(pathlib.Path(srcs[s]).expanduser() / p["views"][v]).convert("L")+ .filter(ImageFilter.MinFilter(5)).resize((96, 128)), dtype=float) for v, s in vsrc.items()}for a, b in itertools.combinations(im, 2):diff = float(np.abs(im[a] - im[b]).mean())+ flag = b if b in mine else a+ # Only a fill is compared across sources: it must differ from the views it was added next to.+ if flag not in mine or ({a, b} - mine and p.get("fills", {}).get(flag) != source):+ continueif diff < 6:- flags.append({"set": p["id"], "angle": b, "kind": "structure", "reason": f"same image as {a} (diff {diff:.1f})"})+ flags.append({"set": p["id"], "angle": flag, "kind": "structure",+ "reason": f"same image as {a if flag == b else b} (diff {diff:.1f})"})out.write_text(json.dumps({"source": source, "fails": flags} if source else flags, ensure_ascii=False, indent=1))print(f"duplicate panels {len(flags)}")diff --git a/tools/pack_release.py b/tools/pack_release.pyindex 52e1c218..cb865b50 100644--- a/tools/pack_release.py+++ b/tools/pack_release.py@@ -6,7 +6,8 @@ Writes to dist/:shisei-<series>-v<ver>.zip one per series, the w900 tier (line art + photos): the recommended downloadshisei-all-v<ver>.zip every series, w900shisei-original-v<ver>.zip every series at the source resolution, from <src>/img and <src>/photo; redrawn sets- (catalog `source`) from that source set, at its resolution (digi: 900x1200)+ (catalog `source`) and single-view fills (catalog `fills`) from their source set,+ at its resolution (digi: 900x1200)Only files the catalog lists go in, so a view that failed QC never ships, even though the source sets still hold it.Every zip carries LICENSE-images (CC0, the images), LICENSE (Apache-2.0) and NOTICE, which credits the pose list. Theimages are already lossy WebP, so deflate barely shrinks them; it is used anyway because it costs nothing for the text.@@ -25,8 +26,9 @@ def entries(poses, original, srcs):out = []for p in poses:for kind, key, sub in (("line", "views", "img"), ("photo", "photos", "photo")):- for f in sorted(v for v in (p.get(key) or {}).values() if v):- root = srcs[p.get("source") or p["series"]] if kind == "line" else srcs[p["series"]]+ for v, f in sorted((v, f) for v, f in (p.get(key) or {}).items() if f):+ root = (srcs[p.get("fills", {}).get(v) or p.get("source") or p["series"]] if kind == "line"+ else srcs[p["series"]])disk = root / sub / f if original else ROOT / "images" / kind / "w900" / fout.append((disk, f"{kind}/{f}"))return out@@ -75,7 +77,8 @@ def main() -> None:ver = sys.argv[1]srcs = {k: pathlib.Path(v).expanduser() for k, v in (a.split("=", 1) for a in sys.argv[2:])}catalog = [p for p in json.loads((ROOT / "data/catalog.json").read_text()) if any(p["views"].values())]- need = {p["series"] for p in catalog} | {p["source"] for p in catalog if p.get("source")}+ need = {p["series"] for p in catalog} | {p["source"] for p in catalog if p.get("source")} | \+ {s for p in catalog for v, s in p.get("fills", {}).items() if p["views"].get(v)}if set(srcs) != need:sys.exit(f"need a source dir for each series and redraw source: {sorted(need)}")dist = ROOT / "dist"diff --git a/tools/qc_merge.py b/tools/qc_merge.pyindex c4cc2564..186e9b17 100644--- a/tools/qc_merge.py+++ b/tools/qc_merge.py@@ -7,6 +7,8 @@ and photo_*.json (photo-render review, docs/qc/photo_prompt.md). Without photo_*A result file with a top-level "source" applies only to poses whose catalog `source` matches; files without one applyto poses without one. A redrawn set (tools/import_redraws.py) is therefore judged only on reviews of its new drawing,while the old files stay so the old results remain reproducible (dups*.json from line_dups.py works the same way).+A single view filled later (catalog `fills`, tools/import_fills.py) is judged the same way per view: only panel+results tagged with its fill source apply to it; the set's name check still comes from the original drawing.Rules (docs/qc/README.md):- a set whose drawing does not show the named pose (match "no") fails every view as `structure`;- per-panel "pose mismatch" fails are dropped when the set-level check says yes/partial (the set check decides names);@@ -46,6 +48,11 @@ def main() -> None:return outsrc = {p["id"]: p.get("source") for p in cat}+ fills = {p["id"]: p["fills"] for p in cat if p.get("fills")}++ def vsrc(pid, v):+ return fills.get(pid, {}).get(v) or src.get(pid)+# A redrawn set has no older results to fall back on, so an unreviewed view would pass silently: every view of# it must be on a panel sheet its source's reviewers listed, and the set must have a name check.seen = {(source, n.split("__")[0], v) for source, n in load("fail_*.json", "reviewed") if source and "__" in n@@ -53,11 +60,14 @@ def main() -> None:named = {(source, n) for source, n in load("name_*.json", "reviewed") if source}todo = [f"{p['id']} {v}" for p in cat if p.get("source") for v in VIEWSif p["views"].get(v) and (p["source"], p["id"], v) not in seen] + \- [f"{p['id']} name check" for p in cat if p.get("source") and (p["source"], f"{p['id']}.jpg") not in named]+ [f"{p['id']} name check" for p in cat if p.get("source") and (p["source"], f"{p['id']}.jpg") not in named] + \+ [f"{pid} {v}" for pid, fv in fills.items() for v, s in fv.items()+ if next(p for p in cat if p["id"] == pid)["views"].get(v) and (s, pid, v) not in seen]if todo:sys.exit(f"not reviewed yet ({len(todo)}): {', '.join(todo[:8])} ...")sets = {s["set"]: s for source, s in load("name_*.json", "sets") if src.get(s["set"]) == source}- fails = [x for source, x in load("fail_*.json", "fails") + load("dups*.json", "fails") if src.get(x["set"]) == source]+ fails = [x for source, x in load("fail_*.json", "fails") + load("dups*.json", "fails")+ if vsrc(x["set"], x["angle"]) == source]panel = {}for x in fails:@@ -108,7 +118,7 @@ def main() -> None:p["photos"] = {v: r["file"] for v, r in row.items() if r["status"] == "pass"}qc = {"schema": 1, "reviewed": a.date, "method": "docs/qc/README.md", "sets": set_notes,- "sources": {pid: s for pid, s in src.items() if s}, "views": views, "photos": photos}+ "sources": {pid: s for pid, s in src.items() if s}, "fills": fills, "views": views, "photos": photos}qc_path.write_text(json.dumps(qc, ensure_ascii=False, indent=1) + "\n")cat_path.write_text(json.dumps(cat, ensure_ascii=False, indent=1) + "\n")diff --git a/tools/review_sheets.py b/tools/review_sheets.pyindex c28f42c9..3a3f9420 100755--- a/tools/review_sheets.py+++ b/tools/review_sheets.py@@ -5,6 +5,8 @@ Usage: python3 tools/review_sheets.py OUT_DIR [--mode MODE] [--passed] std=SRC sSRC is a source set (e.g. ~/Downloads/pose-gallery-std73); line art is read from SRC/img, photos from SRC/photo.Only the series given are drawn, so one series can be reviewed on its own. Redrawn sets (catalog `source`) are drawnonly when their source is given too (digi=SRC), and only then; --only-source digi limits the run to them.+Single-view fills (catalog `fills`, tools/import_fills.py) work the same way per view: --only-source fill-r1 draws+just the views filled from that source, read from fill-r1=SRC.Modes (each pairs with a prompt in docs/qc/):panels up to 3 views per sheet, 600x800 each review_prompt.md <id>__<view>-<view>.jpg@@ -63,9 +65,16 @@ def main() -> None:n = 0for p in json.loads((ROOT / "data/catalog.json").read_text()):line_src = p.get("source") or p["series"]- if p["series"] not in srcs or line_src not in srcs or (a.only_source and p.get("source") != a.only_source):+ if a.mode == "photo":+ view_src = {v: line_src for v in VIEWS if not a.only_source or p.get("source") == a.only_source}+ else:+ view_src = {v: p.get("fills", {}).get(v) or line_src for v in VIEWS}+ # A view is drawn only when its source was given (and is the one asked for with --only-source).+ view_src = {v: s for v, s in view_src.items() if s in srcs and (a.mode == "photo" or not a.only_source+ or s == a.only_source)}+ if p["series"] not in srcs or not view_src:continue- src, pid = srcs[line_src if a.mode != "photo" else p["series"]], p["id"]+ src, pid = srcs[p["series"]], p["id"]expect = EXPECT[p["series"]] + (f" ({BODIES[p['bodies']]})" if p.get("bodies") else "")if a.mode == "photo":files = {v: r["file"] for v, r in qc.get("photos", {}).get(pid, {}).items()} | (p.get("photos") or {})@@ -79,7 +88,7 @@ def main() -> None:files = {v: (p["views"].get(v) or (None if a.passed or not same elseqc.get("views", {}).get(pid, {}).get(v, {}).get("file")))for v in VIEWS}- panels = [(v, src / "img" / files[v]) for v in VIEWS if files[v]]+ panels = [(v, srcs[view_src[v]] / "img" / files[v]) for v in VIEWS if files[v] and v in view_src]title = {"panels": f"{pid} | {p['name_en']} | expected: {expect}","limbs": f"{pid} | {p['name_en']} | expected: {expect}","name": f"{pid} | {p['class_en']} | {p['name_en']} | ja: {p['name_jp']}"diff --git a/tools/verify.py b/tools/verify.pyindex 113653b3..5bfd7db7 100755--- a/tools/verify.py+++ b/tools/verify.py@@ -5,6 +5,7 @@- every null view has a non-pass qc status and a matching `gaps` entry (missing, line or structure);- every rating override in data/rating_overrides.json is applied;- every redrawn pose (catalog `source`) was merged as such: qc.json `sources` names the same source;+- every single-view fill (catalog `fills`) was merged as such (qc.json `fills`) and sits in an original set (D-09);- every photo has a `pass` in qc.json photos and exists in both tiers; nothing under images/ is unreferenced;- every README download link names a zip of the data/packs.json version."""@@ -28,6 +29,10 @@ def main() -> int:sources = {p["id"]: p["source"] for p in cat if p.get("source")}if sources != qcd.get("sources", {}):errs.append("catalog sources differ from qc.json sources (run qc_merge.py after import_redraws.py)")+ fills = {p["id"]: p["fills"] for p in cat if p.get("fills")}+ if fills != qcd.get("fills", {}):+ errs.append("catalog fills differ from qc.json fills (run qc_merge.py after import_fills.py)")+ errs += [f"{p['id']}: fills in a redrawn set ({p['source']})" for p in cat if p.get("fills") and p.get("source")]ids = [p["id"] for p in cat]if len(ids) != len(set(ids)):errs.append("duplicate ids in catalog")