💃 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): pack per-series and all-series w900 zips plus originals
wquguru880d18cb05df
diff --git a/AGENTS.md b/AGENTS.mdindex 95385de4..d886f5cd 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -26,8 +26,8 @@ two are rated suggestive. Plus photo renders for 23 std sets, a four-language caNipple marks, exposure, genital detail and a figure that reads as a minor are generation errors: they fail QC.- **IDs are stable.** `P001`… never get renumbered or reused (P023 and P028 are retired). New poses take the nextfree number; the source-list number goes in `orig_id`.-- **Full-size originals stay out of git.** Commit only the `w300` and `w900` tiers; full size ships as a Release- zip (`tools/pack_release.sh`).+- **Full-size originals stay out of git.** Commit only the `w300` and `w900` tiers; downloads ship as Release+ zips (`tools/pack_release.py`: w900 per series + all, recommended; originals), sizes in `data/packs.json`.- **Content safety.** Figures are mannequins or AI-generated adults. Nothing that reads as a minor, a real person orexplicit content enters the repo.- **Do not publish the repo, create releases, deploy, post or spend money** without a human's OK (§8).@@ -43,8 +43,10 @@ CHANGELOG.md Keep a Changelog; every user-visible change adds a line unddata/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)+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 (docs/qc/README.md)data/qc-input/ every reviewer result behind qc.json; `qc_merge.py data/qc-input` rebuilds it exactly+data/rating_overrides.json per-pose rating decisions that win over the category rule (human-decided)data/catalog.csv tools/export_csv.py output (o = passed, x = failed QC, - = not generated)images/line/w300/ grid tier, 300 px wide WebP q70images/line/w900/ lightbox/download tier, 900×1200 WebP q75@@ -54,7 +56,7 @@ web/ gallery source: index.html template, app.js, app.css, i18n.site/ build output of tools/build_site.py (git-ignored; deploy this): home, pose pages and changelogper language (zh at the root, ja/ en/ ko/), og/ share cards, sitemap, robots, 404, manifestbuild/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.sh,+tools/ build_images.py, build_site.py (+ site_pages.py, og_cards.py), verify.py, pack_release.py,import_series.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, proportion, photo, rating).claude/agents/ qc-reviewer: the Sonnet sub-agent every QC batch is sent to@@ -82,7 +84,7 @@ python3 tools/import_series.py SRC --series X --added 0.2.0 [--general Cute] #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 skips-tools/pack_release.sh ~/Downloads/pose-gallery-std73 0.1.0 # dist/shisei-std73-full-v0.1.0.zip + sha256+python3 -I tools/pack_release.py 0.2.0 std=… upper=… sexy=… duo=… # dist/*.zip + sha256, data/packs.json```## 6. Way of workingdiff --git a/data/packs.json b/data/packs.jsonnew file mode 100644index 00000000..9f3ef5d4--- /dev/null+++ b/data/packs.json@@ -0,0 +1,41 @@+{+ "version": "0.2.0",+ "packs": {+ "std": {+ "file": "shisei-std-v0.2.0.zip",+ "bytes": 7586209,+ "sets": 50,+ "images": 297+ },+ "upper": {+ "file": "shisei-upper-v0.2.0.zip",+ "bytes": 8925752,+ "sets": 77,+ "images": 307+ },+ "sexy": {+ "file": "shisei-sexy-v0.2.0.zip",+ "bytes": 9242050,+ "sets": 80,+ "images": 341+ },+ "duo": {+ "file": "shisei-duo-v0.2.0.zip",+ "bytes": 7356491,+ "sets": 49,+ "images": 193+ },+ "all": {+ "file": "shisei-all-v0.2.0.zip",+ "bytes": 33096981,+ "sets": 256,+ "images": 1138+ },+ "original": {+ "file": "shisei-original-v0.2.0.zip",+ "bytes": 131857482,+ "sets": 256,+ "images": 1138+ }+ }+}diff --git a/docs/DECISIONS.md b/docs/DECISIONS.mdindex 1c94cf4b..0a55de10 100644--- a/docs/DECISIONS.md+++ b/docs/DECISIONS.md@@ -38,7 +38,7 @@ Cloudflare Pages,项目名 `shisei`。部署构建:`python3 -I tools/build_s### D-01 授权:Apache-2.0,代码和图片同一许可证(2026-10-28,人定)人定:和作者的另一个开源项目(TryBoard)用同一套许可证与开源文件规范。整个仓库——代码、catalog、文档、图片——都是 **Apache-2.0**(`LICENSE` 全文 + `NOTICE`),外部贡献按 §5 入站即出站,不另签 CLA。细则见 [LICENSING.md](LICENSING.md)。-- 效果:图片可商用、可改作、可再分发,条件是再分发时带上 LICENSE 与 NOTICE;Release zip 里一并打包(`tools/pack_release.sh`)。+- 效果:图片可商用、可改作、可再分发,条件是再分发时带上 LICENSE 与 NOTICE;Release zip 里一并打包(`tools/pack_release.py`)。- 和原先的推荐(图片用 CC BY 4.0)相比:Apache-2.0 用在图片上不常见但有效,实际要求同样是署名 + 附声明;好处是全仓一个许可证,贡献规则简单。- 原先列出的候选方案保留如下,作为记录:diff --git a/docs/LICENSING.md b/docs/LICENSING.mdindex 16886f43..cc1e3404 100644--- a/docs/LICENSING.md+++ b/docs/LICENSING.md@@ -7,7 +7,7 @@## 规则(硬性)1. **不用外部图片。** 不下载、缓存、镜像、重新编码或描摹 ai-pose-gallery(ギア @giaaibusi)、其中文镜像 anhao/ai-pose-gallery-zh 或其他姿势站的图片:它们的条款禁止再分发图片数据,加工后的副本也算;镜像的 MIT 只覆盖其前端代码。界面思路可以参考,代码和文案不抄。-2. **再分发带声明。** 任何打包或镜像(Release zip、未来的 Pages 站点下载)都要带 `LICENSE` 和 `NOTICE`;`pack_release.sh` 已把两者打进 zip。+2. **再分发带声明。** 任何打包或镜像(Release zip、未来的 Pages 站点下载)都要带 `LICENSE` 和 `NOTICE`;`pack_release.py` 已把两者打进每个 zip。3. **AI 生成图片的权利。** 图片由 AI 模型生成后经人工挑选、整理。部分法域对纯 AI 生成内容不承认著作权;Apache-2.0 授予的是我们实际享有的权利,不对此作额外承诺。新增图片前要确认所用生成工具的条款允许再分发输出,并把工具和条款写进 GENERATION.md;v0.1.0 这批图的工具与条款还没记录,公开前补上。4. **内容安全。** 只收素体和 AI 生成的成年人物;看起来像未成年人、真实人物或露骨内容的图片不进仓库。元数据一律清除。5. **实拍图是否公开**另由 D-03 决定;在定之前,仓库保持私有或发布前先处理 `images/photo/`。diff --git a/tools/pack_release.py b/tools/pack_release.pynew file mode 100644index 00000000..df33ce91--- /dev/null+++ b/tools/pack_release.py@@ -0,0 +1,68 @@+#!/usr/bin/env python3+"""Pack the Release downloads and record their sizes in data/packs.json for the gallery's download panel.++Usage: python3 -I tools/pack_release.py 0.2.0 std=~/Downloads/pose-gallery-std73 upper=... sexy=... duo=...+Writes to dist/:+ shisei-<series>-v<ver>.zip one per series, the w900 tier (line art + photos): the recommended download+ shisei-all-v<ver>.zip every series, w900+ shisei-original-v<ver>.zip every series at the source resolution, from <src>/img and <src>/photo+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 and NOTICE (Apache-2.0 §4). The images are already lossy WebP, so deflate barely shrinks+them; it is used anyway because it costs nothing for the LICENSE / NOTICE text.+"""+import hashlib, json, pathlib, sys, zipfile++ROOT = pathlib.Path(__file__).resolve().parent.parent+SERIES = ("std", "upper", "sexy", "duo")+++def entries(poses, original, srcs):+ """(path on disk, path in the zip) for every catalog line-art view and photo of these poses."""+ 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):+ disk = srcs[p["series"]] / sub / f if original else ROOT / "images" / kind / "w900" / f+ out.append((disk, f"{kind}/{f}"))+ return out+++def pack(path, files):+ path.unlink(missing_ok=True)+ with zipfile.ZipFile(path, "w", zipfile.ZIP_DEFLATED, compresslevel=9) as z:+ for disk, arc in files:+ z.write(disk, arc)+ for f in ("LICENSE", "NOTICE"):+ z.write(ROOT / f, f)+ digest = hashlib.sha256(path.read_bytes()).hexdigest()+ (path.parent / (path.name + ".sha256")).write_text(f"{digest} {path.name}\n")+ return path.stat().st_size+++def main() -> None:+ if len(sys.argv) < 2 or sys.argv[1].count(".") != 2:+ sys.exit(__doc__)+ 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())]+ if set(srcs) != {p["series"] for p in catalog}:+ sys.exit(f"need a source dir for each series: {sorted({p['series'] for p in catalog})}")+ dist = ROOT / "dist"+ dist.mkdir(exist_ok=True)++ 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)]+ packs = {}+ for key, name, poses, original in jobs:+ files = entries(poses, original, srcs)+ 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]}")+ size = pack(dist / name, files)+ packs[key] = {"file": name, "bytes": size, "sets": len(poses), "images": len(files)}+ print(f"{name}: {len(poses)} sets, {len(files)} images, {size / 1e6:.1f} MB")+ (ROOT / "data/packs.json").write_text(json.dumps({"version": ver, "packs": packs}, indent=1) + "\n")+++if __name__ == "__main__":+ main()