π 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): clay, depth and normal maps through review, merge, build, verify and pack
wquguru943d0d912d1b
diff --git a/docs/qc/maps_nipple_prompt.md b/docs/qc/maps_nipple_prompt.mdnew file mode 100644index 00000000..607f099d--- /dev/null+++ b/docs/qc/maps_nipple_prompt.md@@ -0,0 +1,29 @@+# Clay surface-detail QC prompt (for Sonnet sub-agents)++A second pass over the clay renders only, at 600x800 per panel: the five-panel maps sheet (maps_prompt.md) is too+small to see nipple bumps, and a hand check of the first round found them on views the reviewers had passed. Sheets:+`tools/review_sheets.py --mode mapclay maps=SRC`: up to 3 clay renders of one pose. Results are `maps_nipple_*.json`+and merge with the other map results (a fail here drops the view's clay, depth and normal).++---++You are checking grey mannequin renders for modelled anatomical detail. Your batch file lists contact sheets (one+path per line). Open EVERY sheet with the Read tool, one by one, and look closely at the chest and crotch of every+figure in every panel (each panel is labelled with its view in red).++## Correct (never fail)+- Smooth breasts with a rounded shape and soft shading, with no point or bump at the tip.+- Joint seams, ball joints, neck rings and panel lines of a mannequin.+- A smooth crotch, as on a store mannequin.++## Fail a panel for ANY of these (when in doubt, FAIL)+- A nipple: a small raised bump, point, dot or darker spot at or near the tip of a breast, even a faint one; an+ areola ring. This is the main thing to look for: check each breast separately.+- Modelled genital detail of any kind.+- A face with eyes, or hair (a sculpted nose or chin profile alone is fine).++## Output+Write the JSON file named in your task as+`{"reviewed": ["<sheet file name>", ...], "fails": [{"set": "<set id>", "angle": "<view>", "kind": "line", "reason": "<short, specific>"}]}`.+Validate with python3 that it parses, that `reviewed` has one entry per batch line and every fail has all four keys.+Reply with one line: sheets reviewed, panels failed.diff --git a/docs/qc/maps_prompt.md b/docs/qc/maps_prompt.mdnew file mode 100644index 00000000..52f5ede8--- /dev/null+++ b/docs/qc/maps_prompt.md@@ -0,0 +1,44 @@+# Clay / depth / normal map QC review prompt (for Sonnet sub-agents)++The maps (`images/{clay,depth,normal}/`) are made from each passed line view: a grey clay mannequin redrawn over the+line art (Qwen-Image-Edit), then a depth map and a normal map estimated from the clay (docs/GENERATION.md). They must+show the same pose as the line art and sit on it: the lightbox overlays them on the line art. Sheets:+`tools/review_sheets.py --mode maps maps=SRC`: two views per sheet, one row each with five panels (line, clay, the+line art drawn in red over the clay, depth, normal). `tools/map_align.py` fails clearly misaligned views on its own;+this review catches the rest. One verdict per view covers all three maps.++---++You are QA-reviewing grey mannequin renders and the depth and normal maps made from them. Your batch file lists+contact sheets (one path per line). Open EVERY sheet with the Read tool, one by one. Each sheet has one or two rows;+each row is one camera view of one pose: `line` (the reference drawing), `clay` (the render under review),+`line over clay` (the drawing in red on top of the render), `depth` (white = near) and `normal` (purple/blue/pink).++## Correct (never fail)+- A smooth grey faceless mannequin (blank egg head, no hair), plain grey studio background, a soft floor shadow.+- The red lines in `line over clay` lie on the mannequin's outline and limbs. A small offset (a finger width) or a+ slightly different body shape is fine. Joint-ball circles and construction lines in the drawing are not defects.+- Upper-body poses: the render may show more of the body than the drawing, as long as the drawn part lines up.+- In depth and normal, a floor gradient at the bottom or a flat background colour is expected.++## Fail a row for ANY of these (when in doubt, FAIL)+Structure (`"kind": "structure"`):+- Misaligned: in `line over clay`, a red head, torso, arm or leg lies clearly off the mannequin (shifted, different+ size, limb in another place), or the drawing and the render show a different pose, camera angle or framing.+- Malformed anatomy in the clay: extra, missing or merged limbs, hands or heads; joints bent the wrong way; limbs+ that fade out; the wrong number of figures (two for duo sets, otherwise one).+- A lying, sitting or kneeling figure that floats above the floor or is tilted off it, when the drawing shows it on+ the floor.+- Looks like a child (head large for the body, short limbs, small frame) next to an adult drawing.+- Depth or normal broken: blank, noisy, a silhouette that does not match the clay, a missing body part.+Line (`"kind": "line"`; here it means a rendering or content problem):+- A face, eyes, mouth, hair or ears drawn on the head; a realistic human face or skin.+- Clothing, props, furniture, text or a patterned background added; coloured (non-grey) patches on the body.+- Nipples, areolae or genital detail modelled on the body.++## Output+Write the JSON file named in your task as+`{"reviewed": ["<sheet file name>", ...], "fails": [{"set": "<set id>", "angle": "<view>", "kind": "line|structure", "reason": "<short, specific>"}]}`.+The view is the word before ` Β· ` in the row labels. Validate with python3 that it parses, that `reviewed` has one+entry per batch line and every fail has all four keys. Reply with one line: sheets reviewed, rows failed (line /+structure counts).diff --git a/tools/build_images.py b/tools/build_images.pyindex 21e27e9f..050af7a3 100755--- a/tools/build_images.py+++ b/tools/build_images.py@@ -5,10 +5,13 @@ Usage: python3 tools/build_images.py std=~/Downloads/pose-gallery-std73 sexy=...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=....+Clay, depth and normal maps (catalog `maps`) are read from maps=SRC/<kind>/<file>, e.g. maps=~/Downloads/pose-gallery-clay.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),-w600 q72 (grid on 2x and 3x screens), w300 q70 (grid on 1x screens, thumbnails).+w600 q72 (grid on 2x and 3x screens), w300 q70 (grid on 1x screens, thumbnails). The depth maps alone are lossless+at the source; q75 moves them by half a grey level on average on the body (checked on 60 views, 2026-10-31), far below+what a ControlNet preprocessor's own resize does."""import json, pathlib, subprocess, sys@@ -24,6 +27,7 @@ def main() -> None: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()]+ jobs += [(k, srcs["maps"] / k / f) for f in (p.get("maps") or {}).values() for k in ("clay", "depth", "normal")]for kind, src in jobs:for tier, width, q in TIERS:dst = ROOT / "images" / kind / tier / src.namediff --git a/tools/build_site.py b/tools/build_site.pyindex 92f58b61..4e999aff 100755--- a/tools/build_site.py+++ b/tools/build_site.py@@ -343,7 +343,7 @@ def main() -> None:if args.link_images:(out / "images").symlink_to(ROOT / "images", target_is_directory=True)elif args.public:- for kind, key in (("line", "views"), ("photo", "photos")):+ for kind, key in (("line", "views"), ("photo", "photos"), ("clay", "maps"), ("depth", "maps"), ("normal", "maps")):files = {f for p in catalog for f in (p.get(key) or {}).values() if f}for tier in ("w300", "w600", "w900"):(out / "images" / kind / tier).mkdir(parents=True)diff --git a/tools/map_align.py b/tools/map_align.pynew file mode 100644index 00000000..7eb3ce67--- /dev/null+++ b/tools/map_align.py@@ -0,0 +1,49 @@+#!/usr/bin/env python3+"""Fail map views that do not line up with their line art (docs/qc/maps_prompt.md).++Usage: python3 tools/map_align.py OUT.json maps=~/Downloads/pose-gallery-clay [--min 0.9]+The lightbox lays clay, depth and normal over the line art, so a view whose render drifted (upper-body clay drawn+as a full figure at another scale, a limb moved) is useless there even when the render itself is clean. Score: the+share of the drawing's dark pixels that fall on the depth silhouette, grown by 8 px. Hand-checked on the first run:+0.92 and up overlays cleanly, 0.81 and below is visibly off. The output is a `maps_*.json` result for qc_merge.py.+"""+import argparse, json, pathlib++import numpy as np+from PIL import Image, ImageFilter++ROOT = pathlib.Path(__file__).resolve().parent.parent+VIEWS = ("front", "diag", "side", "above", "below")+++def score(line, depth):+ d = Image.open(depth).convert("L")+ body = np.asarray(d.point(lambda x: 255 if x > 12 else 0).filter(ImageFilter.MaxFilter(17))) > 0+ ink = np.asarray(Image.open(line).convert("L").resize(d.size)) < 140+ return float((ink & body).sum() / max(ink.sum(), 1))+++def main() -> None:+ ap = argparse.ArgumentParser()+ ap.add_argument("out")+ ap.add_argument("maps")+ ap.add_argument("--min", type=float, default=0.9)+ a = ap.parse_args()+ maps = pathlib.Path(a.maps.split("=", 1)[1]).expanduser()+ fails, checked = [], []+ for p in json.loads((ROOT / "data/catalog.json").read_text()):+ for v in VIEWS:+ f = p["views"].get(v)+ if not f or not (maps / "depth" / f).exists():+ continue+ s = score(ROOT / "images/line/w900" / f, maps / "depth" / f)+ checked.append(f)+ if s < a.min:+ fails.append({"set": p["id"], "angle": v, "kind": "structure",+ "reason": f"map not aligned with the line art (overlap {s:.2f})"})+ pathlib.Path(a.out).write_text(json.dumps({"checked": checked, "fails": fails}, indent=1) + "\n")+ print(f"{len(checked)} views, {len(fails)} below {a.min}")+++if __name__ == "__main__":+ main()diff --git a/tools/pack_release.py b/tools/pack_release.pyindex cb865b50..de670242 100644--- a/tools/pack_release.py+++ b/tools/pack_release.py@@ -8,6 +8,8 @@ Writes to dist/:shisei-original-v<ver>.zip every series at the source resolution, from <src>/img and <src>/photo; redrawn sets(catalog `source`) and single-view fills (catalog `fills`) from their source set,at its resolution (digi: 900x1200)+ shisei-clay-v<ver>.zip clay maps of every series, w900 (catalog `maps`)+ shisei-controlnet-v<ver>.zip depth and normal maps of every series, w900, for ControlNet Depth / NormalOnly 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.@@ -21,10 +23,17 @@ READMES = ("README.md", "docs/readme/README.zh-CN.md", "docs/readme/README.ja.mdLINK = re.compile(r"releases/download/v[\d.]+/shisei-(\w+)-v[\d.]+\.zip")-def entries(poses, original, srcs):- """(path on disk, path in the zip) for every catalog line-art view and photo of these poses."""+MAP_PACKS = {"clay": ("clay",), "controlnet": ("depth", "normal")}+++def entries(poses, original, srcs, maps=()):+ """(path on disk, path in the zip) for every catalog line-art view and photo of these poses, or with `maps`, for+ their clay / depth / normal maps (w900 only: the sources are 900 px already, so there is no original to offer)."""out = []for p in poses:+ if maps:+ out += [(ROOT / "images" / k / "w900" / f, f"{k}/{f}") for k in maps for v, f in sorted(p["maps"].items())]+ continuefor kind, key, sub in (("line", "views", "img"), ("photo", "photos", "photo")):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"@@ -86,9 +95,11 @@ def main() -> None:jobs = [(s, f"shisei-{s}-v{ver}.zip", [p for p in catalog if p["series"] == s], False) for s in SERIES]jobs += [("all", f"shisei-all-v{ver}.zip", catalog, False), ("original", f"shisei-original-v{ver}.zip", catalog, True)]+ with_maps = [p for p in catalog if p.get("maps")]+ jobs += [(k, f"shisei-{k}-v{ver}.zip", with_maps, False) for k in MAP_PACKS if with_maps]packs = {}for key, name, poses, original in jobs:- files = entries(poses, original, srcs)+ files = entries(poses, original, srcs, MAP_PACKS.get(key, ()))missing = [str(d) for d, _ in files if not d.exists()]if missing:sys.exit(f"{name}: {len(missing)} files missing, e.g. {missing[0]}")diff --git a/tools/qc_merge.py b/tools/qc_merge.pyindex 186e9b17..c2463d4f 100644--- a/tools/qc_merge.py+++ b/tools/qc_merge.py@@ -4,6 +4,9 @@Usage: python3 tools/qc_merge.py QC_DIR [--date YYYY-MM-DD]QC_DIR holds fail_*.json (panel review), name_*.json (pose-name check), optionally dups.json (tools/line_dups.py)and photo_*.json (photo-render review, docs/qc/photo_prompt.md). Without photo_*.json the previous photo results stay.+maps_*.json judge the clay / depth / normal maps of a line view (docs/qc/maps_prompt.md): the reviewers' files list+the sheets they saw in `reviewed`, tools/map_align.py's file lists its views in `checked` and only adds fails. A view+gets maps only when its line art passes and a reviewer saw it; without maps_*.json the previous map results stay.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).@@ -26,6 +29,11 @@ HARMLESS = re.compile(r"floor|ground", re.I)REAL = re.compile(r"textur|scribbl|shadow|speckl|chair|furniture|noise|box|guide|blob|malform|melt|wall|hatch|table|"r"background|ruled|nipple|areola|crop", re.I)MISMATCH = re.compile(r"pose mismatch", re.I)+# Map heads: the clay keeps the drawing's nose-and-chin profile, which the reviewers judged unevenly. A profile alone+# is not a face (docs/qc/README.md, round 5); eyes, ears, hair, a realistic face or anything below the neck still fail.+PROFILE = re.compile(r"\bnose|\blips?\b|\bchin|profile|mouth", re.I)+FACE = re.compile(r"\beyes?\b|eyelid|eye-socket|\bbrow|\bears?\b|hair|realistic|skin|breast|chest|nipple|areola|genital|crotch|bulge|"+ r"cloth|prop|text|colou?r", re.I)def main() -> None:@@ -117,8 +125,45 @@ def main() -> None:photos[p["id"]] = rowp["photos"] = {v: r["file"] for v, r in row.items() if r["status"] == "pass"}+ map_files = sorted(d.glob("maps_*.json"))+ maps = old.get("maps", {})+ if map_files:+ docs = [json.loads(f.read_text()) for f in map_files]+ # Two reviews per view (the five-panel sheet and the clay close-up, maps_nipple_*); a view counts as seen+ # only when every review that has run listed it.+ passes = {}+ for f, doc in zip(map_files, docs):+ for n in doc.get("reviewed", []):+ passes.setdefault(f.name.startswith("maps_nipple_"), set()).update(+ (n.split("__")[0], v) for v in n.split("__")[1].removesuffix(".jpg").split("-"))+ seen = set.intersection(*passes.values()) if passes else set()+ mfail = {}+ for x in (x for doc in docs for x in doc["fails"]):+ if x["kind"] == "line" and PROFILE.search(x["reason"]) and not FACE.search(x["reason"]):+ continue+ key = (x["set"], x["angle"])+ if key not in mfail or (x["kind"] == "structure" and mfail[key]["kind"] == "line"):+ mfail[key] = x+ maps = {}+ for p in cat:+ row = {v: ({"file": f, "status": mfail[(p["id"], v)]["kind"], "reason": mfail[(p["id"], v)]["reason"]}+ if (p["id"], v) in mfail else {"file": f, "status": "pass"})+ for v, f in p["views"].items() if f and (p["id"], v) in seen}+ if row:+ maps[p["id"]] = row+ for p in cat:+ # Maps belong to the line drawing they were made from: a view whose line art no longer passes, or was+ # redrawn under the same name since, loses them until it is reviewed again.+ row = {v: r["file"] for v, r in maps.get(p["id"], {}).items()+ if r["status"] == "pass" and p["views"].get(v) == r["file"]}+ if row:+ p["maps"] = row+ else:+ p.pop("maps", None)+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}, "fills": fills, "views": views, "photos": photos}+ "sources": {pid: s for pid, s in src.items() if s}, "fills": fills, "views": views, "photos": photos,+ "maps": maps}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")@@ -133,6 +178,7 @@ def main() -> None:print(s, t)print("photos", sum(r["status"] == "pass" for row in photos.values() for r in row.values()), "/",sum(len(row) for row in photos.values()), "pass")+ print("maps", sum(len(p.get("maps", {})) for p in cat), "/", sum(len(row) for row in maps.values()), "pass")if __name__ == "__main__":diff --git a/tools/review_sheets.py b/tools/review_sheets.pyindex 3a3f9420..87be1a4a 100755--- a/tools/review_sheets.py+++ b/tools/review_sheets.py@@ -15,13 +15,19 @@ Modes (each pairs with a prompt in docs/qc/):rating first 3 views of a set on one sheet rating_prompt.md <id>.jpgphoto up to 3 photo renders per sheet, 400x800 photo_prompt.md <id>__<view>-<view>.jpglimbs up to 2 views per sheet, 600x800 each limbs_prompt.md <id>__<view>-<view>.jpg+ maps 2 views per sheet, one row each: line, clay, line over clay, depth, normal (360x480)+ maps_prompt.md <id>__<view>-<view>.jpg+ Usage: review_sheets.py OUT --mode maps maps=~/Downloads/pose-gallery-clay+ Line art comes from images/line/w900 (the maps were made from it); only catalog views are drawn.+ mapclay 3 clay renders per sheet, 600x800 each maps_nipple_prompt.md <id>__<view>-<view>-<view>.jpg+ The surface-detail pass: nipple bumps are too small to judge on the five-panel maps sheet.Views are every generated file (catalog or qc.json), so a failed view can be re-reviewed; --passed keeps only theviews now in the catalog β use it for proportion and rating, which judge what ships.A batch file for a reviewer is just a list of sheet paths: `ls OUT_DIR/*.jpg | split -l 35 - OUT_DIR/batch_`."""import argparse, json, pathlib-from PIL import Image, ImageDraw+from PIL import Image, ImageChops, ImageDrawROOT = pathlib.Path(__file__).resolve().parent.parentVIEWS = ("front", "diag", "side", "above", "below")@@ -34,7 +40,9 @@ EXPECT = {BODIES = {"MF": "1 man (broad shoulders) + 1 woman", "FF": "2 women"}# panel size, views per sheet (None = all), per-set sheet nameMODES = {"panels": ((600, 800), 3, False), "name": ((600, 800), 3, True), "proportion": ((360, 480), None, True),- "rating": ((600, 800), 3, True), "photo": ((400, 800), 3, False), "limbs": ((600, 800), 2, False)}+ "rating": ((600, 800), 3, True), "photo": ((400, 800), 3, False), "limbs": ((600, 800), 2, False), "maps": ((360, 480), 2, False),+ "mapclay": ((600, 800), 3, False)}+MAP_KINDS = ("clay", "depth", "normal")def sheet(path, title, panels, size):@@ -48,6 +56,47 @@ def sheet(path, title, panels, size):sh.save(path, quality=88)+def map_sheet(path, title, rows, size):+ """One row per view: line, clay, line art in red over the clay (alignment), depth, normal."""+ w, h = size+ sh = Image.new("RGB", (w * 5, (h + 22) * len(rows) + 30), "white")+ dr = ImageDraw.Draw(sh)+ dr.text((8, 6), title, fill="black")+ for r, (view, line, maps) in enumerate(rows):+ y = 30 + r * (h + 22)+ ln = Image.open(line).convert("L").resize((w, h))+ clay = Image.open(maps / "clay" / line.name).convert("RGB").resize((w, h))+ over = ImageChops.multiply(clay, Image.merge("RGB", (Image.new("L", (w, h), 255), ln, ln)))+ tiles = [ln.convert("RGB"), clay, over] + [Image.open(maps / k / line.name).convert("RGB").resize((w, h))+ for k in MAP_KINDS[1:]]+ for j, (label, t) in enumerate(zip(("line", "clay", "line over clay", "depth", "normal"), tiles)):+ sh.paste(t, (j * w, y + 18))+ dr.text((j * w + 8, y + 4), f"{view} Β· {label}", fill="red")+ sh.save(path, quality=88)+++def maps_main(out, srcs, clay_only=False):+ maps, n = srcs["maps"], 0+ for p in json.loads((ROOT / "data/catalog.json").read_text()):+ rows = [(v, ROOT / "images/line/w900" / f) for v in VIEWS if (f := p["views"].get(v))+ and all((maps / k / f).exists() for k in MAP_KINDS)]+ expect = EXPECT[p["series"]] + (f" ({BODIES[p['bodies']]})" if p.get("bodies") else "")+ if clay_only:+ for i in range(0, len(rows), 3):+ chunk = rows[i:i + 3]+ sheet(out / f"{p['id']}__{'-'.join(v for v, _ in chunk)}.jpg", f"{p['id']} | {p['name_en']} | clay",+ [(v, maps / "clay" / f.name) for v, f in chunk], MODES["mapclay"][0])+ n += 1+ continue+ for i in range(0, len(rows), 2):+ chunk = rows[i:i + 2]+ map_sheet(out / f"{p['id']}__{'-'.join(v for v, _ in chunk)}.jpg",+ f"{p['id']} | {p['name_en']} | expected: {expect}", [(v, f, maps) for v, f in chunk],+ MODES["maps"][0])+ n += 1+ print(f"maps: {n} sheets in {out}")++def main() -> None:ap = argparse.ArgumentParser()ap.add_argument("out")@@ -59,6 +108,8 @@ def main() -> None:srcs = {k: pathlib.Path(v).expanduser() for k, v in (s.split("=", 1) for s in a.srcs)}out = pathlib.Path(a.out)out.mkdir(parents=True, exist_ok=True)+ if a.mode in ("maps", "mapclay"):+ return maps_main(out, srcs, a.mode == "mapclay")size, per, per_set = MODES[a.mode]qc_path = ROOT / "data/qc.json"qc = json.loads(qc_path.read_text()) if qc_path.exists() else {}diff --git a/tools/verify.py b/tools/verify.pyindex 4950817a..38123c52 100755--- a/tools/verify.py+++ b/tools/verify.py@@ -8,6 +8,8 @@- 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 map view (catalog `maps`) belongs to a passed line view of the same file, has a `pass` in qc.json maps and+ exists as clay, depth and normal in every tier;- every README download link names a zip of the data/packs.json version."""import json, pathlib, re, sys@@ -21,7 +23,7 @@ README_FILES = ("README.md", "docs/readme/README.zh-CN.md", "docs/readme/README.def main() -> int:cat = json.loads((ROOT / "data/catalog.json").read_text())qcd = json.loads((ROOT / "data/qc.json").read_text())- qc, qc_photos = qcd["views"], qcd.get("photos", {})+ qc, qc_photos, qc_maps = qcd["views"], qcd.get("photos", {}), qcd.get("maps", {})errs, want = [], set()ov_path = ROOT / "data/rating_overrides.json"for pid, o in (json.loads(ov_path.read_text()) if ov_path.exists() else {}).items():@@ -64,6 +66,16 @@ def main() -> int:want.add(("photo", t, f))if not (ROOT / "images/photo" / t / f).exists():errs.append(f"{p['id']} photo {v}: images/photo/{t}/{f} missing")+ for v, f in (p.get("maps") or {}).items():+ if p["views"].get(v) != f:+ errs.append(f"{p['id']} maps {v}: not the line view's file")+ if qc_maps.get(p["id"], {}).get(v, {}) != {"file": f, "status": "pass"}:+ errs.append(f"{p['id']} maps {v}: in catalog without a qc pass")+ for k in ("clay", "depth", "normal"):+ for t in TIERS:+ want.add((k, t, f))+ if not (ROOT / "images" / k / t / f).exists():+ errs.append(f"{p['id']} maps {v}: images/{k}/{t}/{f} missing")for f in (ROOT / "images").glob("*/*/*.webp"):if (f.parent.parent.name, f.parent.name, f.name) not in want:errs.append(f"orphan {f.relative_to(ROOT)}")