π 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): costume tiers at grey q60 and transparent w900 only, alpha snapped at intake
wquguruf542b6b386d3
diff --git a/tools/costume_build.py b/tools/costume_build.pyindex d8ca9328..a577ed89 100644--- a/tools/costume_build.py+++ b/tools/costume_build.py@@ -4,24 +4,26 @@Only views with `pass` in data/costume-qc.json are built; everything else under images/costume/ is removed, and theitem's view becomes null with the QC status in `gaps` (same rule as poses, AGENTS Β§2). Two looks per view (D-10):images/costume/grey/{w300,w600,w900}/costume_<ID>_<view>.webp on the house background #D9D9D9- images/costume/alpha/{w300,w600,w900}/costume_<ID>_<view>.webp transparent cut-out+ images/costume/alpha/w900/costume_<ID>_<view>.webp transparent cut-out, download size only (D-10)+Quality was set by a side-by-side check (2026-10-31): no visible loss at 2x, about 45% smaller than q75 + lossless alpha.Usage: python3 -I tools/costume_build.py ~/Downloads/costume-hc [more source setsβ¦]"""import json, pathlib, subprocess, sysROOT = pathlib.Path(__file__).resolve().parent.parent-TIERS = {"w300": (300, 400, 70), "w600": (600, 800, 72), "w900": (900, 1200, 75)} # same sizes and q as poses-LOOKS = ("grey", "alpha")+# look -> tier -> (width, height); the flat grey background compresses well, so q60 holds up where poses need q70++TIERS = {"grey": {"w300": (300, 400), "w600": (600, 800), "w900": (900, 1200)}, "alpha": {"w900": (900, 1200)}}+ARGS = {"grey": ["-q", "60", "-m", "6", "-sharp_yuv"],+ "alpha": ["-q", "65", "-alpha_q", "80", "-m", "6", "-sharp_yuv"]}+LOOKS = tuple(TIERS)OUT = ROOT / "images/costume"-def cwebp(src: pathlib.Path, dst: pathlib.Path, w: int, h: int, q: int, alpha: bool) -> None:+def cwebp(src: pathlib.Path, dst: pathlib.Path, w: int, h: int, look: str) -> None:if dst.exists() and dst.stat().st_mtime >= src.stat().st_mtime:returndst.parent.mkdir(parents=True, exist_ok=True)- extra = ["-alpha_q", "100", "-exact"] if alpha else []- subprocess.run(["cwebp", "-quiet", "-q", str(q), "-resize", str(w), str(h), *extra, str(src), "-o", str(dst)],- check=True)+ subprocess.run(["cwebp", "-quiet", *ARGS[look], "-resize", str(w), str(h), str(src), "-o", str(dst)], check=True)def main() -> None:@@ -40,9 +42,9 @@ def main() -> None:if (s / look / f"{it['id']}_{v}.png").exists()), None) for look in LOOKS}if st == "pass" and all(src.values()):for look in LOOKS:- for t, (w, h, qual) in TIERS.items():+ for t, (w, h) in TIERS[look].items():dst = OUT / look / t / name- cwebp(src[look], dst, w, h, qual, look == "alpha")+ cwebp(src[look], dst, w, h, look)want.add(dst)it["views"][v] = nameit["gaps"].pop(v, None)@@ -59,7 +61,7 @@ def main() -> None:if f not in want:f.unlink()(ROOT / "data/costumes.json").write_text(json.dumps(data, ensure_ascii=False, indent=1) + "\n")- print(f"{built} views built ({built * 6} files)")+ print(f"{built} views built ({built * sum(map(len, TIERS.values()))} files)")if __name__ == "__main__":diff --git a/tools/costume_intake.py b/tools/costume_intake.pyindex 8a4646c0..026a2db6 100644--- a/tools/costume_intake.py+++ b/tools/costume_intake.py@@ -90,6 +90,10 @@ def main() -> None:# Remove the background colour mixed into soft edges: C = aF + (1-a)B => F = (C - (1-a)B) / a.a3 = al[..., None]fg = np.where(a3 > 0.02, (rgb - (1 - a3) * bg) / np.maximum(a3, 1e-3), rgb).clip(0, 255)+ # snap the model's faint floor and near-solid values: invisible, but they cost WebP bytes and leave+ # a haze that some viewers show on dark backgrounds+ al = np.where(al < 0.05, 0.0, np.where(al > 0.95, 1.0, al))+ a3 = al[..., None]alpha8 = (al * 255).round().astype(np.uint8)Image.fromarray(np.dstack([fg.astype(np.uint8), alpha8]), "RGBA").save(src / "alpha" / f"{stem}.png")for sub, col in (("grey", HOUSE), ("dark", DARK)):diff --git a/tools/verify.py b/tools/verify.pyindex 846741d0..4950817a 100755--- a/tools/verify.py+++ b/tools/verify.py@@ -88,7 +88,7 @@ def main() -> int:def check_costumes() -> list:- """Costume library (D-10): data/costumes.json β data/costume-qc.json β images/costume/{grey,alpha}/<tier>/."""+ """Costume library (D-10): data/costumes.json β data/costume-qc.json β images/costume/grey/<tier>/ + alpha/w900/."""path = ROOT / "data/costumes.json"if not path.exists():return []@@ -107,8 +107,8 @@ def check_costumes() -> list:if f:if st != "pass":errs.append(f"{it['id']} {v}: in costumes.json but costume-qc says {st}")- for look in ("grey", "alpha"):- for t in TIERS:+ for look, tiers in (("grey", TIERS), ("alpha", ("w900",))): # transparent ships at w900 only+ for t in tiers:want.add(ROOT / "images/costume" / look / t / f)if not (ROOT / "images/costume" / look / t / f).exists():errs.append(f"{it['id']} {v}: images/costume/{look}/{t}/{f} missing")