Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0d5c84d57 | ||
|
|
3e98078ac1 | ||
|
|
c9f183f11c | ||
|
|
563a8f0913 | ||
|
|
dda59bf79d | ||
|
|
e47217cefb | ||
|
|
2236103834 | ||
|
|
69d3996b8c | ||
|
|
50c37e0ebd |
@@ -5,6 +5,8 @@ on:
|
||||
- main
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
# Lets publish_action.yml gate on this same workflow (1.8.0).
|
||||
workflow_call:
|
||||
|
||||
# Least privilege: CI only needs to read the repo.
|
||||
permissions:
|
||||
@@ -13,13 +15,28 @@ permissions:
|
||||
jobs:
|
||||
test:
|
||||
name: Validate data, tests & generated docs
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
# A hung step otherwise runs for the 6-hour default.
|
||||
timeout-minutes: 30
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
# Cover the floor (requires-python = ">=3.10") and a current release.
|
||||
python-version: ["3.10", "3.13"]
|
||||
include:
|
||||
# The maintainer's machine is Windows: one leg proves the pack and the
|
||||
# `--check` generators (which compare files) behave there too.
|
||||
- os: windows-latest
|
||||
python-version: "3.13"
|
||||
steps:
|
||||
- name: Keep line endings as stored
|
||||
# .gitattributes is `text=auto`; the --check generators compare files, so a
|
||||
# Windows checkout must not rewrite LF to CRLF before they run.
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.eol lf
|
||||
- name: Check out code
|
||||
# Pinned to the same commit SHA (v7.0.1) the publish workflow uses.
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
|
||||
@@ -83,6 +100,7 @@ jobs:
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
# A SEPARATE job on purpose. The test job above must stay dependency-free,
|
||||
# because that is the property being asserted: the pack and its tests import
|
||||
# nothing but the standard library. ruff is developer tooling, so installing
|
||||
@@ -103,6 +121,7 @@ jobs:
|
||||
frontend:
|
||||
name: Frontend smoke tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
# A SEPARATE job for the same reason `lint` is: the `test` job's
|
||||
# dependency-free property (stdlib only) is itself being asserted, and
|
||||
# this job's own devDependency (jsdom) must never leak into it.
|
||||
|
||||
@@ -13,9 +13,16 @@ permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
# 1.8.0: a version bump on main publishes only if the full CI passes.
|
||||
name: CI
|
||||
uses: ./.github/workflows/ci.yml
|
||||
|
||||
publish-node:
|
||||
name: Publish Custom Node to registry
|
||||
needs: ci
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
# Skip on forks so the action only runs in the source repository.
|
||||
if: ${{ github.repository_owner == 'EnragedAntelope' }}
|
||||
steps:
|
||||
|
||||
@@ -8,21 +8,21 @@ investigation notes, 1.5.0+ — the reasoning for every item in the release list
|
||||
|
||||
## Current state
|
||||
|
||||
_Last verified: 2026-10-02 (1.5.5)_
|
||||
_Last verified: 2026-10-28 (2.2.0)_
|
||||
|
||||
- **Status:** in active development, at v1.5.5 (`pyproject.toml`). Published to the Comfy Registry via `.github/workflows/publish_action.yml`, which fires on a `pyproject.toml` version change on `main` — bump the version on every functional commit or the release never ships. CI (`.github/workflows/ci.yml`) is deliberately dependency-free.
|
||||
- **Works:** the constraint engine resolving dropdowns into coherent prose plus structured JSON, seed-reproducible; the four preset layer nodes (Archetype, Creature, Modifier, Cosplayer); searchable dropdown widgets, live preview, the `franchise_filter`, the `random_pool` scope-composing filter, and the save/load vault in `js/` (an atomic overwrite, a disk-change-aware cache fingerprint, and Windows-reserved-name handling as of 1.5.5); a searchable **in-node roster picker** (`js/identity_forge_picker.js`) on the Cosplayer/Archetype/Creature nodes — trait facets, cross-tab search, opt-in gallery thumbnails, backed by a generated `js/identity_forge_roster.json` search index; Stylebook interop, the composition axis, and the **Turnaround** reference-set node (which emits every camera view of one resolved character as a list, so one queue renders the set); a jsdom frontend suite alongside the Python one; generated reference docs and JS data, and a committed field-marginals baseline (`scripts/sweep_marginals.py`, 1.5.5 — catches a value drawing far more or less often than intended), all with `--check` modes wired into the gate. A cosplay entry may render as a **person in a costume**, as a **mascot suit** (`covers_face` + `covers_body` + `mask`), or — since 0.95.0 — as the **beast itself** (`body_plan: "feral"`, which emits the Creature node's Species & Anatomy payload instead of a costume); see architecture.md → "Animal characters split four ways". `scripts/render_gallery.py` renders a roster entry's gallery image by driving a running ComfyUI over HTTP and publishes it to `gh-pages`, and `gallery/render_manifest.json` + `--check` fail CI when an entry's text changes without a re-render (architecture.md → "The gallery render pipeline"). Since 0.97.0 every roster entry also carries a **release stamp** (`data/versions.py`, written by `scripts/stamp_versions.py`, gated in CI), which is what lets the three sample gallery pages offer **A–Z / Newest first** and a **New in `<version>`** filter.
|
||||
- **In progress:** roster and coherence curation is the ongoing work, not a milestone — each release adds characters/creatures/archetypes and closes coherence bugs found by rendering them. `docs/suggested-additions.md` is the live backlog (under consideration / decided against / still to consider).
|
||||
- **Status:** in active development; main is v2.2.0 (`pyproject.toml`); 2.0.0 was the seed epoch (every seed resolves differently from 1.x, by design). Published to the Comfy Registry via `.github/workflows/publish_action.yml`, which fires on a `pyproject.toml` version change on `main` - bump the version on every functional commit or the release never ships. CI (`.github/workflows/ci.yml`) is deliberately dependency-free, has a Windows leg, and `publish-node` needs it (1.8.0).
|
||||
- **Works:** the constraint engine resolving dropdowns into coherent prose plus structured JSON, seed-reproducible; the four preset layer nodes (Archetype, Creature, Modifier, Cosplayer); searchable dropdown widgets, live preview, the `franchise_filter`, the `random_pool` scope-composing filter, and the save/load vault in `js/` (an atomic overwrite, a disk-change-aware cache fingerprint, and Windows-reserved-name handling as of 1.5.5); a searchable **in-node roster picker** (`js/identity_forge_picker.js`) on the Cosplayer/Archetype/Creature nodes — trait facets, gender and franchise filters, cross-tab search, opt-in gallery thumbnails, backed by a generated `js/identity_forge_roster.json` search index; Stylebook interop, the composition axis, and the **Turnaround** reference-set node (which emits every camera view of one resolved character as a list, so one queue renders the set) and its face-side sibling the **Expression Sheet** (1.10.0: one view per curated expression/mood/smile triple); a free-text `held_item` on the Modifier node; a jsdom frontend suite alongside the Python one; generated reference docs and JS data, and a committed field-marginals baseline (`scripts/sweep_marginals.py`, 1.5.5 — catches a value drawing far more or less often than intended), plus a reachability gate (`--unreachable`, 1.8.0: every pool value some gender can draw, or a reasoned exception in `tests/fixtures/unreachable_by_design.json`), all with `--check` modes wired into the gate. A cosplay entry may render as a **person in a costume**, as a **mascot suit** (`covers_face` + `covers_body` + `mask`), or — since 0.95.0 — as the **beast itself** (`body_plan: "feral"`, which emits the Creature node's Species & Anatomy payload instead of a costume); see architecture.md → "Animal characters split four ways". `scripts/render_gallery.py` renders a roster entry's gallery image by driving a running ComfyUI over HTTP and publishes it to `gh-pages`, and `gallery/render_manifest.json` + `--check` fail CI when an entry's text changes without a re-render (architecture.md → "The gallery render pipeline"). Since 0.97.0 every roster entry also carries a **release stamp** (`data/versions.py`, written by `scripts/stamp_versions.py`, gated in CI), which is what lets the three sample gallery pages offer **A–Z / Newest first** and a **New in `<version>`** filter. Since 2.0.0: a **`gaze`** field drawn last with `pose` (both with live constraint rules; architecture.md -> "pose and gaze draw last"), opt-in **`costume_back`** for Turnaround back views, **per-garment `{slot}` variation** in the outfit corpus on its own seed stream, and a gallery hash over **resolved prose** so an engine change marks images stale.
|
||||
- **In progress:** roster and coherence curation is the ongoing work, not a milestone - each release adds characters/creatures/archetypes and closes coherence bugs found by rendering them. `docs/suggested-additions.md` is the live backlog (under consideration / decided against / still to consider). Next: more `costume_back` entries (start with caped or back-emblem heroes) and more slotted corpus phrases; both are seed-safe additions now (a slot draws from its own stream; a back text touches only back views).
|
||||
- **Recent releases** — one line each. **This list is a pointer, not a changelog:** the reasoning for every item is in `docs/history.md` (the sections are named there per release) and the full messages are in `git log`. Keep roughly the last eight and let older ones drop off; do not let an entry grow into a paragraph.
|
||||
- **1.5.5** — Audit pass: `vitiligo patches`, three golden `eye_color` values and two tattoo placements were drawing far more than their peers (flat weight against a visually louder or near-always-survivable value) — weighted down; a buzz cut no longer draws "wet look" (the `loose_natural` family split so the exclusion drops a whole unit instead of a partial cull). A committed marginals sweep (`scripts/sweep_marginals.py --check`) joined the CI gate so a future weight/pool change that moves a share unintentionally is caught automatically. Vault hardening: an atomic overwrite (the old save survives a write failure), a disk-change-aware cache fingerprint on Vault Load, Windows-reserved-name handling, and several crash-on-malformed-entry fixes. `docs/history.md` split out of `docs/architecture.md` (the 1.5.0–1.5.4 sections, about half that file). See docs/history.md → "1.5.5".
|
||||
- **1.5.4** — Masks lead their costume and hide the jaw/chin as well as the mouth; the body-paint colour anchor keeps a fur/scale/hide material; Ewok, Colossus, Zangief, Namor-family and several other entries corrected. See docs/history.md → "1.5.4".
|
||||
- **1.5.3** — Folded into the 1.5.4 merge; never tagged or published on its own. Costume-text mouth masks, cosplay jewellery following the look level, and several costume rewords. See docs/history.md → "1.5.3".
|
||||
- **1.5.2** — The Female sumo costume's wording was drawing a second man into every render; reworded, plus a general fix for costume words that draw objects (`_OBJECT_TOKEN_CLAUSES`) and several costume fixes. See docs/history.md → "1.5.2".
|
||||
- **1.5.1** — The maintainer's 33 flagged renders, each reproduced and traced: `lock_clash` stops a preset locking a pair the engine forbids, masked full-shell characters voice no human body, skin tone/ethnicity leans both ways, and a gallery-review pass on pose/framing/build. See docs/history.md → "1.5.1".
|
||||
- **1.5.0** — Coherence gates measured first: `outfit_style` answers to `location`, `season` is outdoor-only, a warm face no longer sits in a heavy mood; a new `outerwear` widget; five QA rounds on menswear odds, palette patchwork, extras-vs-garment and ethnicity/age leans. See docs/history.md → "1.5.0", "Round 2", "Round 4".
|
||||
- **1.4.0** — Fixed a gender-pool leak (unisex `accessories`/`other_jewelry` had no masculine trim); Rosalina and Rumi corrected to canon; 26 new roster entries; first `v*` release tags. See docs/history.md → the four 1.4.0 judgement-call bullets.
|
||||
- **1.3.0** — Roster expansion (Killer Instinct, Gears of War, 25 cosplayers); a non-human body must lead its costume, not trail the worn items. See docs/history.md → the four 1.3.0 sections.
|
||||
- **Known gaps / next steps:** three deliberate, open items — not to be re-litigated without a fresh case: (1) the Turnaround node's back view still draws a costume's front-facing detail (e.g. a chest emblem) on the back, because a costume is one authored free-text string and parsing it for front/back clauses is the regex-over-prose trap; the correct fix is structured front/back costume data across the roster. (2) `_POCKETLESS_GARMENT_RE` is an allowlist, so a pocketless costume it does not name still draws a pockets gesture. (3) Costume text that asserts a body trait against an unpinned random field (e.g. "on a hulking frame" beside a random, unlocked `build`) — the `signature`/`physique` split that causes it is deliberate; measure again from scratch before touching it, a naive regex sweep has reported a wrong count here before. `docs/suggested-additions.md` is the live backlog for roster/field-option candidates.
|
||||
- **2.2.0** - Cyberpunk roster (David Martinez, Panam and Rebecca rebuilt to canon; new Maine, Kiwi, Talia Yang, Adam Smasher, Song So Mi with a weighted netrunner alternate), Volcana, four period court archetypes (Rococo Courtier, Medieval Monarch, Ottoman Court, Heian Court) and a Female variant for Ancient Roman Patrician, a `tattoos` lock kept in Essentials, a costume-named earring or necklace suppressing the random one, a `gilded palace throne room` location, tattoo and piercing locks on eleven period archetypes, a franchise filter in the roster picker, and four punk/pinup outfit-corpus phrases (the location and the outfits move random seeds). See docs/history.md -> "2.2.0".
|
||||
- **2.1.0** - R2-D2, BB-8 and Gonk Droid render as the droid (non-humanoid machines now take `body_plan: "feral"` with a cosplay-only `creature_class: "Machines"`), new machine and object entries (Claptrap, WALL-E, Dalek, Johnny 5, Codsworth, Mrs. Potts, Cogsworth), the sd-character-finder survey batch (first Touhou entries, Snoopy, Doraemon, Hello Kitty, Meta Knight and others), Blue Beetle (Ted Kord) recoloured to canon, a Female/Male filter in the roster picker, an optional cosplay `subject` lead noun (Tellarite, aliens, and mascots that drew a person with a plush now render as the character; single-eye cyclopes remain a model limit), Orion with a weighted alternate look (`costume_weights`), and the survey's second tier (RWBY, Nanoha, BlazBlue, Tiger & Bunny and others). Random characters unchanged (the droids move between the Masked, People-only and Beast scopes). See docs/history.md -> "2.1.0".
|
||||
- **2.0.0** - Seed epoch: a `gaze` field (the old `looking` poses) drawn last with a deferred `pose` (`_repair_pose` retired), women's hair-length and 75/80 age weights, a portrait rig gated out of everyday interiors (`studio_shape` / `studio_mood` split), per-garment `{slot}` variation, opt-in `costume_back` for Turnaround back views, no "Name (Name)" label, an article for noun expressions, and a prose-based gallery hash (existing tiles accepted with `--rehash`, no full re-render). See docs/history.md -> "2.0.0".
|
||||
- **1.11.0** - Roster release: new cosplayers (incl. Birdie, Vecna on the mascot route), retro archetypes (Carhop at a new drive-in location, Zoot Suit men's only), four creatures, a `_GALLERY_SHOT` framing pin, Lola Bunny's paws, Tellarite's canon text (snout still unrendered). Random characters move only through the new location (about 5% of seeds, those drawing an urban outdoor place). Corinthian, Feyd-Rautha, barreleye, vampire squid and the pachuca variant declined on the render bar. See docs/history.md -> "1.11.0".
|
||||
- **1.10.0** - Expression Sheet node, free-text `held_item` on the Modifier, legwear dropped from prose in leg-cropping shots, "a coat of fur" no longer read as a pocketed garment, an overload drift test, and a gallery gate that fails on rendered-but-unpublished images (`--publish-pending`). Random characters unchanged; Bartok (now feral), Lola Bunny and Tasmanian Devil repaired and re-rendered (Tellarite deferred to 1.11.0). See docs/history.md -> "1.10.0".
|
||||
- **1.9.0** - Sandman and independent-comics curation, Savage Dragon likeness repair, a Morris Dancer archetype, deployment-only gallery manifests, and accurate engine/preset typing. See docs/history.md -> "1.9.0".
|
||||
- **1.8.0** — Picker trait facets read structured `traits` (Poison Ivy is no longer "Tiny"); ethnicity and skin tone lock only in Full character / Full preset; a seventh `subject_text` output (person and outfit, no scene); colour and pattern modifiers reach a generated outfit; widgets_values saved in schema order for headless tools; `--unreachable` gate; publish depends on CI with a Windows leg; new cosplayers (incl. The Invisibles), three archetypes and a stegosaurus; the duplicate Julia Carpenter entry folded into one. See docs/history.md → "1.8.0".
|
||||
- **1.7.0** — Engine and UX fixes from the 1.6.0 review: "Roll + lock all" locks one engine roll (a new read-only `POST /identity_forge/roll` route) instead of uniform per-dropdown picks; a framing that crops the feet no longer names the shoes in the prose (the JSON keeps them); hair styles and noun lengths are voiced as prose, not a tag list; a footwear or legwear modifier now reaches a generated outfit; the Modifier help example decorates single fields; `generate_character` is keyword-only from `widget_locked`. See docs/history.md → "1.7.0".
|
||||
- **Known gaps / next steps:** two deliberate, open items — not to be re-litigated without a fresh case (the old pockets-allowlist gap was measured and closed in 1.10.0): (1) the Turnaround node's back view still draws a costume's front-facing detail (e.g. a chest emblem) on the back for any entry without a `costume_back` (opt-in since 2.0.0, so far only a handful of flagship heroes); never parse the front text for back clauses (the regex-over-prose trap), add `costume_back` to the entry instead. (2) Costume text that asserts a body trait against an unpinned random field (e.g. "on a hulking frame" beside a random, unlocked `build`) — the `signature`/`physique` split that causes it is deliberate; measure again from scratch before touching it, a naive regex sweep has reported a wrong count here before. `docs/suggested-additions.md` is the live backlog for roster/field-option candidates.
|
||||
- **Deep docs:** `docs/architecture.md` (deep reference — read before engine or data changes), `docs/history.md` (per-release investigation notes, 1.5.0+), `docs/usage.md`, `docs/cosplayer-notes.md`, `docs/creature-notes.md`, `docs/suggested-additions.md` (backlog), `docs/reference/*.md` (generated).
|
||||
|
||||
## Architecture in 60 seconds
|
||||
@@ -31,7 +31,7 @@ _Last verified: 2026-10-02 (1.5.5)_
|
||||
- **Preset layer nodes.** Optional nodes stack in front of Identity Forge: Archetype (themed looks), Creature (animal/monster/alien), Modifier (field tweaks), Cosplayer (fictional character costumes with canon-checked visual descriptions).
|
||||
- **ComfyUI frontend extensions.** `js/` modules provide searchable dropdown widgets, live preview, the vault (save/load characters), and a searchable roster picker modal.
|
||||
- **Generated reference docs.** `docs/reference/*.md` are regenerated from data by `scripts/generate_reference_docs.py` — commit them after data changes.
|
||||
- **Gallery on `gh-pages`.** Sample renders live on the `gh-pages` branch only; `gallery/.gitignore` blocks images from `main`.
|
||||
- **Gallery on `gh-pages`.** Sample renders and deployment manifests live on `gh-pages`; `gallery/.gitignore` keeps them off `main`. See `gallery/README.md` for local previews.
|
||||
|
||||
## Layout
|
||||
|
||||
@@ -85,9 +85,16 @@ python scripts/generate_js_data.py --check
|
||||
python scripts/dump_frontend_fixtures.py --check
|
||||
python scripts/stamp_versions.py --check
|
||||
|
||||
# Every pool value no gender can draw must be a listed exception (1.8.0)
|
||||
python scripts/sweep_marginals.py --unreachable
|
||||
|
||||
# Check every roster entry's gallery image matches its current text (CI).
|
||||
# Network-free. Rendering the ones it reports needs a running ComfyUI:
|
||||
# python scripts/render_gallery.py --missing --save-originals --publish
|
||||
# It also fails on an image rendered but never published (1.10.0); fix with:
|
||||
# python scripts/render_gallery.py --publish-pending
|
||||
# A deliberate prose-only change across the roster (2.0.0) is accepted, without
|
||||
# re-rendering, by: python scripts/render_gallery.py --rehash
|
||||
python scripts/render_gallery.py --check
|
||||
```
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ The Cosplayer node is where Identity Forge really shines. Most character wildcar
|
||||
|
||||
Ask a plain wildcard for Chun-Li and your prompt says `Chun-Li`. Ask this Cosplayer node and you get: *the blue qipao with gold trim, brown tights, white cross-laced boots, and spiked bracelets.* The look renders even on checkpoints that have never heard of the character.
|
||||
|
||||
**Find one fast:** open the in-node picker to browse and search the whole roster without leaving the node — trait facets (Giant, Masked, Mascot/full-suit, Beast) and optional thumbnail previews. Franchise is searchable too, just not a dedicated facet chip. The picker remembers your search, tab and facet while the workflow is open, so you can pick, close and come back to the same filtered view; reloading starts fresh.
|
||||
**Find one fast:** open the in-node picker to browse and search the whole roster without leaving the node — trait facets (Giant, Masked, Mascot/full-suit, Beast), Female/Male and franchise filters, and optional thumbnail previews. The picker remembers your search, tab and facet while the workflow is open, so you can pick, close and come back to the same filtered view; reloading starts fresh.
|
||||
|
||||
**Characters from every major franchise:** Marvel, DC, Star Wars, anime, video games, fantasy, sci-fi, horror. Each one with multiple costume variants where applicable (Harley Quinn's three iconic looks, Catwoman's different suits, etc.). Characters rotate between variants by seed, so the same name yields a different signature costume each roll.
|
||||
|
||||
@@ -42,11 +42,15 @@ emits front / three-quarter / profile / back views of the same **resolved** char
|
||||
between views, unlike an auto-incrementing index widget where an upstream node left on `randomize` swaps
|
||||
the person on every frame. Full controls and the back-view face-omission behavior: [docs/usage.md](docs/usage.md#turnaround-views).
|
||||
|
||||
The **Expression Sheet** node is its face-side sibling: the same resolved character, one image per
|
||||
expression (neutral, smile, laughing, surprised, serious, sad, and more), with only the expression,
|
||||
mood and smile changing. See [docs/usage.md](docs/usage.md#expression-sheets).
|
||||
|
||||
### Additional layers
|
||||
|
||||
- **Archetype:** Themed looks (knight, sorceress, astronaut, surgeon, 1950s homemaker…) that set the *look* while the person randomizes.
|
||||
- **Creature:** Turn the person into an animal, monster, or alien. Hybridized slot-by-slot (head, eyes, integument, arms, hands, legs, tail, wings).
|
||||
- **Modifier:** Prepend a custom descriptor to one field (`footwear: sci-fi`) or a whole group (`Clothing: weathered`).
|
||||
- **Modifier:** Prepend a custom descriptor to one field (`footwear: sci-fi`) or a whole group (`Clothing: weathered`), or type a free-text `held_item` for the character to hold.
|
||||
- **Vault Save / Load:** Save a generated character with a thumbnail; recall it later as a chainable preset.
|
||||
|
||||
All preset nodes stack via an `upstream` input — chain them through each other and keep them all wired. Set any node to `None` and it passes through.
|
||||
@@ -127,13 +131,14 @@ randomized identities, so your own results will vary:
|
||||
|
||||
| Node | What it does |
|
||||
| --- | --- |
|
||||
| **Identity Forge** | Lockable dropdowns in collapsible groups + the constraint engine → `prompt_text` (prose) and `prompt_json`. |
|
||||
| **Identity Forge** | Lockable dropdowns in collapsible groups + the constraint engine → `prompt_text` (prose), `prompt_json` and `subject_text` (the person and outfit only, no pose or scene). |
|
||||
| **Archetype** | Themed presets (knight, sorceress, pirate, samurai, pop star, astronaut, surgeon, 1950s homemaker…) that set the *look* while the person randomizes. Also has the in-node roster picker. |
|
||||
| **Cosplayer** | Fictional characters (Spider-Man, 2B, She-Hulk, Zelda…) as a *cosplay look* — the costume on a random, optionally cross-gender person. An in-node picker browses and searches the whole roster with trait facets and thumbnails. |
|
||||
| **Creature** | Render the character as a non-human form (animal, insect, marine, reptile, bird, monster, alien, mythic, plant), across all classes or one, hybridized slot-by-slot. Generic species only — a *named* fictional beast (Appa, Toothless) is a Cosplayer entry. Also has the in-node roster picker. |
|
||||
| **Modifier** | Prepend a custom descriptor to one field (`footwear: sci-fi`) or a whole group (`Clothing: weathered`). |
|
||||
| **Modifier** | Prepend a custom descriptor to one field (`footwear: sci-fi`) or a whole group (`Clothing: weathered`). An optional `held_item` box sets a free-text prop ("a red paper umbrella"). |
|
||||
| **Vault Save / Load** | Save a generated character (with a thumbnail) to a local vault; recall it later as a chainable preset, with a Manage Vault gallery. |
|
||||
| **Turnaround** | A reference-sheet builder: wire Identity Forge's `prompt_json` in and it emits front / three-quarter / profile / back as a **list**, so one queue renders the whole set of the same person. It only moves the camera - the character and the scene stay configured on Identity Forge. |
|
||||
| **Expression Sheet** | The same idea for the face: wire `prompt_json` in and it emits one prompt per expression (Basic 6, Full 10 or Smiles 3) as a **list**. Only expression, mood and smile change (plus the gaze, if you pick one to hold). |
|
||||
|
||||
---
|
||||
|
||||
@@ -198,6 +203,11 @@ for a ready-to-run workflow.
|
||||
JSON. A seed reproduces the same character only within one installed version — a release can
|
||||
change pools, weights or rules, which shifts what a given seed draws. To keep a specific
|
||||
character across updates, save it with **Vault Save** and recall it with **Vault Load**.
|
||||
**2.0.0 moves every seed on purpose:** the same seed gives a different character than in 1.x
|
||||
(a new `gaze` field, a later `pose` draw, new ages and weights, garment variation). Saved
|
||||
workflows still load. A vault character saved in 1.x recalls as before plus a drawn gaze; one
|
||||
saved with a "looking ..." pose keeps that as its gaze and draws a new pose.
|
||||
See [docs/history.md](docs/history.md) -> "2.0.0".
|
||||
- **Every field is `Random` (roll) / a value (lock) / `None` (omit).** Set scene fields
|
||||
(`location`, `lighting`, framing) to `None` for a character-only description to splice elsewhere.
|
||||
- **`accessory_density`** — drop it to `Minimal`/`None` for clean portraits without locking fields by hand.
|
||||
@@ -206,7 +216,7 @@ for a ready-to-run workflow.
|
||||
- **The light matches the place.** Indoor locations never draw open-sky light and outdoor ones never draw window or hearth light, and a light naming a physical fixture — a hearth, a television, a stained-glass window, a stage rig — only appears where that fixture exists. The **location** stands and the light adapts; lock a light instead and the location re-rolls to somewhere it can exist. Most locations are interiors, so set `location_setting: Outdoor` when you want sunny, golden-hour looks. The pool includes named world landmarks (the Eiffel Tower plaza, Shibuya Crossing, Uluru, the Cliffs of Moher) alongside everyday places.
|
||||
- **The outfit is built, not just picked.** `outfit_style` chooses a garment set, then `clothing_color`, `clothing_pattern` and `footwear` are composed onto it — "a jewel-toned satin slip gown with delicate straps, in strappy heels". Locking any of them changes the outfit, and the shoes are kept plausible for the style (no slippers with a business suit). A garment that names its own colour or shoes keeps them and the matching field steps aside. A costume from the Cosplayer or Archetype node is a complete look and overrides all of this.
|
||||
- **The outfit fits the place.** An evening gown shows up at a gala, a cocktail lounge or a formal dinner, not in a laundromat; loungewear stays at home; workwear goes to the workshop, the dock and the farm. The **location** stands and the outfit style adapts — lock a style and the location re-rolls to somewhere it is worn.
|
||||
- **The season is weather, so it only shows outdoors.** Indoors and on a studio backdrop there is no season. Outside, what is worn follows it: no sandals, shorts or sun hats in winter, no heavy knits, beanies or gloves in summer, and seasonal places (a cherry blossom grove, a snowy pine forest) keep their own season.
|
||||
- **The season is weather, so it only shows outdoors.** Indoors and on a studio backdrop there is no season. Outside, what is worn follows it: no sandals, shorts or sun hats in winter, no heavy knits, beanies or gloves in summer, and seasonal places (a cherry blossom grove, a snowy pine forest) keep their own season. Rain, drizzle, fog and falling snow are `lighting` values: they only fall outdoors, snow only in winter, and never with sunglasses. Lock one to set the weather; lock falling snow and the season follows.
|
||||
- **Coats come with the cold.** `outerwear` adds a coat or jacket over the outfit — only outdoors, never in summer, heavy coats only in winter, never over an outfit that already has its own outer layer, and always one the outfit style would wear. Lock one to force it.
|
||||
- **Men dress like men unless you ask otherwise.** A man with `wardrobe: Match gender` (or `Masculine`) gets everyday menswear odds — mostly short hair, few earrings or highlights, no handbags or dresses — while a `Feminine` or `Any` wardrobe opens the full range on purpose.
|
||||
- **Patterns fit the outfit.** Most clothing is plain, and prints stay with the styles that wear them — no camouflage suits or tie-dye tuxedos.
|
||||
|
||||
+58
-19
@@ -1,6 +1,6 @@
|
||||
"""comfyui-identity-forge — V3 custom node pack entrypoint.
|
||||
|
||||
Exposes eight nodes:
|
||||
Exposes nine nodes:
|
||||
|
||||
* ``IdentityForge`` — a multi-field character description randomizer with a
|
||||
constraint engine and dual prose/JSON output.
|
||||
@@ -13,6 +13,8 @@ Exposes eight nodes:
|
||||
groups (e.g. "sci-fi" shoes) for per-element stylistic tilts.
|
||||
* ``IdentityForgeTurnaround`` — takes a resolved character and emits every camera
|
||||
view of it as a list, so one queue renders a whole reference set.
|
||||
* ``IdentityForgeExpressionSheet`` - the same idea for the face: one resolved
|
||||
character, several expressions, as a list.
|
||||
* ``IdentityForgeVaultSave`` — save a generated character to a local vault.
|
||||
* ``IdentityForgeVaultLoad`` — recall a saved character as a chainable preset.
|
||||
|
||||
@@ -40,6 +42,7 @@ try:
|
||||
from .nodes.identity_forge_creature import IdentityForgeCreature
|
||||
from .nodes.identity_forge_modifier import IdentityForgeModifier
|
||||
from .nodes.identity_forge_turnaround import IdentityForgeTurnaround
|
||||
from .nodes.identity_forge_expression_sheet import IdentityForgeExpressionSheet
|
||||
from .nodes.identity_forge_vault_save import IdentityForgeVaultSave
|
||||
from .nodes.identity_forge_vault_load import IdentityForgeVaultLoad
|
||||
except ImportError: # pragma: no cover
|
||||
@@ -49,6 +52,7 @@ except ImportError: # pragma: no cover
|
||||
from nodes.identity_forge_creature import IdentityForgeCreature
|
||||
from nodes.identity_forge_modifier import IdentityForgeModifier
|
||||
from nodes.identity_forge_turnaround import IdentityForgeTurnaround
|
||||
from nodes.identity_forge_expression_sheet import IdentityForgeExpressionSheet
|
||||
from nodes.identity_forge_vault_save import IdentityForgeVaultSave
|
||||
from nodes.identity_forge_vault_load import IdentityForgeVaultLoad
|
||||
|
||||
@@ -58,6 +62,27 @@ WEB_DIRECTORY = "./js"
|
||||
__all__ = ["comfy_entrypoint", "WEB_DIRECTORY"]
|
||||
|
||||
|
||||
async def _json_body(request): # type: ignore[no-untyped-def]
|
||||
"""Parse a POST route's JSON body, or return an error response.
|
||||
|
||||
Returns ``(body, None)`` on success and ``(None, response)`` on failure, so
|
||||
the caller can bail out with a 4xx instead of raising into a 500. Enforces
|
||||
a JSON content type — see the CSRF note in ``_register_vault_routes``.
|
||||
"""
|
||||
from aiohttp import web
|
||||
|
||||
if request.content_type != "application/json":
|
||||
return None, web.json_response(
|
||||
{"error": "Content-Type must be application/json"}, status=415)
|
||||
try:
|
||||
body = await request.json()
|
||||
except Exception: # noqa: BLE001 — any parse failure is a client error
|
||||
return None, web.json_response({"error": "Malformed JSON body"}, status=400)
|
||||
if not isinstance(body, dict):
|
||||
return None, web.json_response({"error": "Body must be a JSON object"}, status=400)
|
||||
return body, None
|
||||
|
||||
|
||||
def _register_vault_routes() -> None:
|
||||
"""Register the vault's HTTP API for the frontend (list/preview/manage).
|
||||
|
||||
@@ -99,24 +124,6 @@ def _register_vault_routes() -> None:
|
||||
|
||||
routes = PromptServer.instance.routes
|
||||
|
||||
async def _json_body(request): # type: ignore[no-untyped-def]
|
||||
"""Parse a mutating route's JSON body, or return an error response.
|
||||
|
||||
Returns ``(body, None)`` on success and ``(None, response)`` on failure, so
|
||||
the caller can bail out with a 4xx instead of raising into a 500. Enforces
|
||||
a JSON content type — see the CSRF note in this function's docstring.
|
||||
"""
|
||||
if request.content_type != "application/json":
|
||||
return None, web.json_response(
|
||||
{"error": "Content-Type must be application/json"}, status=415)
|
||||
try:
|
||||
body = await request.json()
|
||||
except Exception: # noqa: BLE001 — any parse failure is a client error
|
||||
return None, web.json_response({"error": "Malformed JSON body"}, status=400)
|
||||
if not isinstance(body, dict):
|
||||
return None, web.json_response({"error": "Body must be a JSON object"}, status=400)
|
||||
return body, None
|
||||
|
||||
@routes.get("/identity_forge/vault/characters")
|
||||
async def _characters(_request): # type: ignore[no-untyped-def]
|
||||
return web.json_response({"characters": list_characters(_vault_root())})
|
||||
@@ -167,7 +174,38 @@ def _register_vault_routes() -> None:
|
||||
_LOG.info("Vault API routes registered.")
|
||||
|
||||
|
||||
def _register_roll_route() -> None:
|
||||
"""1.7.0: ``POST /identity_forge/roll`` for the main node's "Roll + lock all" button.
|
||||
|
||||
Runs the engine once on the node's widget values and a fresh seed, and returns
|
||||
every resolved field, so the button locks a roll that honours the weights and
|
||||
constraints. Read-only: it touches no file and computes text. Best-effort like the
|
||||
vault routes; without it the button reports that it needs the server.
|
||||
"""
|
||||
try:
|
||||
from aiohttp import web
|
||||
from server import PromptServer # type: ignore[import-not-found]
|
||||
|
||||
from .nodes.identity_forge import roll_field_values
|
||||
except Exception as exc: # noqa: BLE001 — never block node registration
|
||||
_LOG.warning("Roll route not registered: %s", exc)
|
||||
return
|
||||
|
||||
@PromptServer.instance.routes.post("/identity_forge/roll")
|
||||
async def _roll(request): # type: ignore[no-untyped-def]
|
||||
body, error = await _json_body(request)
|
||||
if error is not None:
|
||||
return error
|
||||
widgets, seed = body.get("widgets"), body.get("seed")
|
||||
if (not isinstance(widgets, dict) or not isinstance(seed, int)
|
||||
or not all(isinstance(v, (str, int, float)) for v in widgets.values())):
|
||||
return web.json_response(
|
||||
{"error": "expected {'widgets': {name: value}, 'seed': int}"}, status=400)
|
||||
return web.json_response({"values": roll_field_values(widgets, seed)})
|
||||
|
||||
|
||||
_register_vault_routes()
|
||||
_register_roll_route()
|
||||
|
||||
|
||||
class IdentityForgeExtension(ComfyExtension):
|
||||
@@ -176,6 +214,7 @@ class IdentityForgeExtension(ComfyExtension):
|
||||
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
||||
return [IdentityForge, IdentityForgeArchetype, IdentityForgeCosplayer,
|
||||
IdentityForgeCreature, IdentityForgeModifier, IdentityForgeTurnaround,
|
||||
IdentityForgeExpressionSheet,
|
||||
IdentityForgeVaultSave, IdentityForgeVaultLoad]
|
||||
|
||||
|
||||
|
||||
+158
-22
@@ -85,15 +85,17 @@ _LONG_HAIR_STYLES: list[str] = [
|
||||
# below, as a whole family, which is the same requirement satisfied a different way.
|
||||
"milkmaid braids", "rope braid", "braided bun", "two-strand twists",
|
||||
"bubble ponytail", "hair puff",
|
||||
# 1.6.0: the three new `braid_short` styles, so a buzz still drops that family whole.
|
||||
"Fulani braids", "goddess braids", "passion twists",
|
||||
]
|
||||
|
||||
#: The four short barbered cuts (0.81.0). This list is EXACTLY the
|
||||
#: The short barbered cuts (0.81.0; faux hawk 1.6.0). This list is EXACTLY the
|
||||
#: ``barbered_short`` family in fields.py, and the rules below rely on that: they
|
||||
#: exclude the whole family, so every other family keeps its share. If a fifth
|
||||
#: short cut is ever added to that family it must be added here too, or the
|
||||
#: exclusion becomes a partial cull and concentrates the family's frozen weight on
|
||||
#: whatever is left. ``HairStyleFamilyTests`` pins the two lists together.
|
||||
_BARBERED_SHORT_STYLES: list[str] = ["fade", "undercut", "pompadour", "quiff"]
|
||||
_BARBERED_SHORT_STYLES: list[str] = ["fade", "undercut", "pompadour", "quiff", "faux hawk"]
|
||||
|
||||
#: The three short crops (0.83.0). EXACTLY the ``barbered_crop`` family in fields.py,
|
||||
#: for the same reason the list above mirrors ``barbered_short``: the rules exclude the
|
||||
@@ -251,13 +253,14 @@ CONSTRAINT_RULES: list[dict] = [
|
||||
# have, and while "buzz fade" is a real barbershop order, the family cannot be
|
||||
# cut in half without handing its weight to the survivors. Losing a marginal
|
||||
# buzz-fade is the cheaper side of that trade.
|
||||
# 1.6.0: the mohawk (its own `barbered_mohawk` family) shares the same length gate.
|
||||
{"type": "exclusion", "field": "hair_length", "value": "buzzed very short",
|
||||
"excludes_field": "hair_style",
|
||||
"excludes_values": _BARBERED_SHORT_STYLES,
|
||||
"excludes_values": [*_BARBERED_SHORT_STYLES, "mohawk"],
|
||||
"reason": "a buzz cut has no top length to fade into, sweep up, or undercut"},
|
||||
*[
|
||||
{"type": "exclusion", "field": "hair_length", "value": length,
|
||||
"excludes_field": "hair_style", "excludes_values": _BARBERED_SHORT_STYLES,
|
||||
"excludes_field": "hair_style", "excludes_values": [*_BARBERED_SHORT_STYLES, "mohawk"],
|
||||
"reason": f"{length} hair is far past the length these barbered cuts describe"}
|
||||
for length in _PAST_SHOULDER_LENGTHS
|
||||
],
|
||||
@@ -511,7 +514,12 @@ _CLOSED_EXPRESSIONS = ["neutral", "serious", "stern", "intense gaze",
|
||||
# 0.82.0 additions
|
||||
"defiant", "solemn", "unimpressed",
|
||||
# 1.5.0 additions
|
||||
"weary", "mildly annoyed"]
|
||||
"weary", "mildly annoyed",
|
||||
# 1.6.0: the whole `troubled` family plus two playful faces.
|
||||
# winking, flustered, startled, bewildered and wide-eyed with
|
||||
# shock stay unbucketed (each works open or closed).
|
||||
"teary-eyed", "frowning", "worried", "anxious", "heartbroken",
|
||||
"pouting", "deadpan"]
|
||||
_SOFT_SMILE_EXPRESSIONS = ["subtle soft smile", "warm smile", "bright smile",
|
||||
"gentle smile",
|
||||
# 0.82.0: "quietly content" is a closed-lip smile;
|
||||
@@ -539,7 +547,7 @@ for _expr in _OPEN_EXPRESSIONS:
|
||||
|
||||
# Hairstyles with no visible parting force hair_part to "no part" (treated as absent
|
||||
# in prose), resolving the slicked-back/centre-part style conflict.
|
||||
_NO_PART_STYLES = ["slicked back", "wet look", "afro", "twist-out",
|
||||
_NO_PART_STYLES = ["slicked back", "wet look", "afro", "twist-out", "mohawk", "faux hawk", # hawks 1.6.0
|
||||
"bantu knots", "space buns"]
|
||||
for _style in _NO_PART_STYLES:
|
||||
CONSTRAINT_RULES.append({
|
||||
@@ -738,7 +746,9 @@ _MASCULINE_EXCLUDED_VALUES: dict[str, list[str]] = {
|
||||
"bag": ["canvas tote"],
|
||||
"footwear": ["ankle boots"],
|
||||
# 1.5.0 round 3: read as a feminine pose on men in the QA renders.
|
||||
"pose": ["posing with a hand on one hip", "kneeling gracefully"],
|
||||
"pose": ["posing with a hand on one hip", "kneeling gracefully",
|
||||
# 1.6.0: the side-fold sit (yokozuwari) is the feminine floor sit.
|
||||
"sitting on the ground with legs folded to one side"],
|
||||
}
|
||||
for _field, _excluded in _MASCULINE_EXCLUDED_VALUES.items():
|
||||
CONSTRAINT_RULES.append({
|
||||
@@ -1260,7 +1270,8 @@ for _places, _styles in (
|
||||
"art gallery opening night", "grand cathedral interior",
|
||||
"hotel lobby with marble floors", "grand hotel suite",
|
||||
"cruise ship interior corridor", "the back seat of a taxi", "rooftop cocktail bar",
|
||||
"rooftop terrace overlooking the skyline", "castle courtyard"], _DRESSY),
|
||||
"rooftop terrace overlooking the skyline", "castle courtyard",
|
||||
"gilded palace throne room"], _DRESSY),
|
||||
(["walk-in closet with mirrors", "tiled bathroom with a large mirror",
|
||||
"tidy bedroom with a neatly made bed"], _DRESSY | {"business formal"}),
|
||||
# A night out, a date, a wedding guest -- cocktail but not black tie.
|
||||
@@ -1330,7 +1341,8 @@ for _places, _styles in (
|
||||
"luxury retail boutique", "department store perfume counter",
|
||||
"courtroom", "grand cathedral interior", "small chapel interior",
|
||||
"mosque interior", "synagogue interior", "Buddhist temple hall",
|
||||
"Shinto shrine interior", "art gallery opening night", "city hall rotunda"],
|
||||
"Shinto shrine interior", "art gallery opening night", "city hall rotunda",
|
||||
"gilded palace throne room"],
|
||||
frozenset(["athletic"])),
|
||||
(["neon-lit nightclub"], frozenset(["athletic", "business formal"])),
|
||||
# 1.5.0 round 2: a hoodie-and-cargo look at a formal dinner or in court.
|
||||
@@ -1420,7 +1432,8 @@ SEASONS_BY_LOCATION: dict[str, frozenset[str]] = {
|
||||
#: over 4000 renders, because two of the 17 daylight variants dragged it to winter.
|
||||
#: This way round the season stays uniform and only a winter light drawn out of season
|
||||
#: is re-picked, which re-draws the rejected value alone (the 0.64.0 mixture property).
|
||||
_WINTER_LIGHTING: list[str] = ["hazy overcast winter light", "snow-reflected daylight"]
|
||||
_WINTER_LIGHTING: list[str] = ["hazy overcast winter light", "snow-reflected daylight",
|
||||
"gently falling snow"] # 1.6.0
|
||||
|
||||
for _loc, _allowed in SEASONS_BY_LOCATION.items():
|
||||
CONSTRAINT_RULES.append({
|
||||
@@ -1490,14 +1503,15 @@ for _season, _by_field in SEASON_EXCLUSIONS.items():
|
||||
# family table by name so a regrouping cannot leave these pointing at dead strings.
|
||||
_MOOD_HEAVY: list[str] = list(FIELD_FAMILIES["mood"]["heavy"]["variants"])
|
||||
_MOOD_POSITIVE: list[str] = list(FIELD_FAMILIES["mood"]["positive"]["variants"])
|
||||
_SAD_EXPRESSIONS: list[str] = ["melancholic", "solemn", "wistful", "brooding", "weary"]
|
||||
_SAD_EXPRESSIONS: list[str] = ["melancholic", "solemn", "wistful", "brooding", "weary",
|
||||
*FIELD_FAMILIES["expression"]["troubled"]["variants"]] # 1.6.0
|
||||
|
||||
for _expr in FIELD_FAMILIES["expression"]["warm"]["variants"]:
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "expression", "value": _expr,
|
||||
"excludes_field": "mood", "excludes_values": list(_MOOD_HEAVY),
|
||||
"reason": f"a '{_expr}' face contradicts a heavy mood"})
|
||||
for _expr in _SAD_EXPRESSIONS:
|
||||
for _expr in _SAD_EXPRESSIONS + ["deadpan"]: # deadpan 1.6.0: a blank face is not radiant
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "expression", "value": _expr,
|
||||
"excludes_field": "mood", "excludes_values": list(_MOOD_POSITIVE),
|
||||
@@ -1624,6 +1638,7 @@ for _style, _allowed in PATTERN_BY_STYLE.items():
|
||||
# graffiti-covered skate park, under colored gel lighting" (#00598). Neon SIGNAGE stays
|
||||
# legal on the neon streets; a club's rig does not hang over one. Still whole families.
|
||||
_STUDIO_SHAPE_LIGHTS: list[str] = (list(FIELD_FAMILIES["lighting"]["studio_shape"]["variants"])
|
||||
+ list(FIELD_FAMILIES["lighting"]["studio_mood"]["variants"])
|
||||
+ list(FIELD_FAMILIES["lighting"]["venue_rig"]["variants"]))
|
||||
for _loc in sorted(OUTDOOR_LOCATIONS):
|
||||
CONSTRAINT_RULES.append({
|
||||
@@ -1631,6 +1646,28 @@ for _loc in sorted(OUTDOOR_LOCATIONS):
|
||||
"excludes_field": "lighting", "excludes_values": list(_STUDIO_SHAPE_LIGHTS),
|
||||
"reason": f"'{_loc}' is outdoors: no studio lighting rig"})
|
||||
|
||||
# --- an everyday interior has no portrait rig either (2.0.0) ----------------------------
|
||||
# "a laundromat, under butterfly beauty lighting". The `studio_shape` family (portrait rigs
|
||||
# and spotlights) drops whole at every built interior except the places that own stage,
|
||||
# display or broadcast lighting; the void backdrops are their own `studio` family and keep
|
||||
# it. `studio_mood` (high key, low key, chiaroscuro) stays legal indoors: it is a quality
|
||||
# of light, and archetypes lock it at ordinary rooms. `studio_stage` is already a fixture
|
||||
# gated by STAGE_LOCATIONS.
|
||||
_STUDIO_LIT_INTERIORS = frozenset([
|
||||
"photography studio with backdrop", "empty theater stage with the curtain up",
|
||||
"community theatre auditorium", "backstage dressing room", "art gallery opening night",
|
||||
"natural history museum hall", "luxury retail boutique", "newsroom with desks and monitors",
|
||||
"high school gymnasium",
|
||||
])
|
||||
_STUDIO_SHAPE_ONLY: list[str] = list(FIELD_FAMILIES["lighting"]["studio_shape"]["variants"])
|
||||
for _loc, _fam in _LOCATION_FAMILY.items():
|
||||
if (_fam != "studio" and _loc not in OUTDOOR_LOCATIONS
|
||||
and _loc not in _STUDIO_LIT_INTERIORS):
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "location", "value": _loc,
|
||||
"excludes_field": "lighting", "excludes_values": list(_STUDIO_SHAPE_ONLY),
|
||||
"reason": f"'{_loc}' is an everyday interior: no studio lighting rig"})
|
||||
|
||||
# --- nobody sits on the floor of a public or formal place ---------------------------
|
||||
# `seated_floor` is a whole POSE_FAMILIES sub-family (the 1.5.0 split), so dropping it
|
||||
# keeps `seated` (chairs) and every other family proportional.
|
||||
@@ -1643,6 +1680,7 @@ _FLOOR_FREE_PLACES = frozenset([
|
||||
"roller skating rink", "karaoke room with song menus", "busy city crosswalk",
|
||||
"neon-lit city street", "rainy street with umbrellas", "bus stop shelter",
|
||||
"pedestrian shopping street", "open-air street food market",
|
||||
"the parking lot of a retro drive-in diner with classic cars",
|
||||
"construction site with scaffolding", "working harbor dock", "Times Square",
|
||||
"Shibuya Crossing", "the Brooklyn Bridge pedestrian walkway", "Trafalgar Square",
|
||||
"rooftop cocktail bar",
|
||||
@@ -1775,7 +1813,8 @@ for _style, _denied in PALETTE_DENIED_BY_STYLE.items():
|
||||
# --- casual headwear stays out of formal rooms; freckles on deep skin ----------------
|
||||
for _loc in ("fine dining restaurant interior", "elegant hotel dining room",
|
||||
"dimly lit cocktail lounge", "courtroom", "grand cathedral interior",
|
||||
"small chapel interior", "art gallery opening night", "formal dining room with chandelier"):
|
||||
"small chapel interior", "art gallery opening night", "formal dining room with chandelier",
|
||||
"gilded palace throne room"):
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "location", "value": _loc,
|
||||
"excludes_field": "accessories",
|
||||
@@ -1826,10 +1865,16 @@ _NO_SNOW_PLACES = _ARID_PLACES | frozenset([
|
||||
"steaming hot spring pool", "the Iguazu Falls lookout",
|
||||
"the Angkor Wat causeway", "the Taj Mahal reflecting pool", "the Victoria Falls gorge rim",
|
||||
])
|
||||
# 1.6.0: the `weather` and `snowfall` lighting families drop WHOLE where they cannot
|
||||
# fall (proportional), and also at the two outdoor places named for their sunshine.
|
||||
_SUN_NAMED_PLACES = frozenset(["sunny city park", "sunlit vineyard"])
|
||||
_WEATHER_PLACES = OUTDOOR_LOCATIONS - _ARID_PLACES - _SUN_NAMED_PLACES
|
||||
_PLACE_LIGHTS: dict[str, frozenset[str]] = {
|
||||
"harsh desert sun": _ARID_PLACES,
|
||||
"dappled sunlight through forest canopy": _CANOPY_PLACES,
|
||||
"snow-reflected daylight": OUTDOOR_LOCATIONS - _NO_SNOW_PLACES,
|
||||
**{_w: _WEATHER_PLACES for _w in FIELD_FAMILIES["lighting"]["weather"]["variants"]},
|
||||
"gently falling snow": OUTDOOR_LOCATIONS - _NO_SNOW_PLACES - _SUN_NAMED_PLACES,
|
||||
}
|
||||
for _loc in sorted(OUTDOOR_LOCATIONS):
|
||||
_denied = sorted(_l for _l, _places in _PLACE_LIGHTS.items() if _loc not in _places)
|
||||
@@ -1845,7 +1890,8 @@ CONSTRAINT_RULES.append({
|
||||
"excludes_values": ["moonlight with cool blue tones", "harsh overhead midday sun",
|
||||
"golden hour sunlight", "late afternoon warm sunlight",
|
||||
"direct sunlight from behind camera", "rim lighting from setting sun",
|
||||
"sun rays through broken cloud cover"],
|
||||
"sun rays through broken cloud cover",
|
||||
"gently falling snow"], # 1.6.0
|
||||
"reason": "rain falls from a clouded sky"})
|
||||
|
||||
|
||||
@@ -2492,14 +2538,91 @@ CONSTRAINT_RULES.append({
|
||||
"in a relaxed contrapposto stance", "standing tall with shoulders back",
|
||||
"standing with arms relaxed at the sides"],
|
||||
"reason": "a selfie is held at arm's length, not struck as a full-body pose"})
|
||||
_LOOK_BACK = ["looking over one shoulder", "glancing back", "turning toward the viewer mid-stride"]
|
||||
# 2.0.0: the head turning back is now the `gaze` field (rules below), so a view from
|
||||
# behind keeps the poses that read from the back: standing, the hands-behind and
|
||||
# overhead gestures, leaning on a wall, walking away. Seated, face-side and
|
||||
# toward-the-camera poses go.
|
||||
_FROM_BEHIND_SHOTS = ("view from directly behind",
|
||||
"from behind and slightly below, looking up toward subject",
|
||||
"from above and behind, looking down toward subject")
|
||||
_BACK_READABLE_POSES = frozenset(
|
||||
[v for f in ("standing", "standing_hands_bound", "gesture_two_hands", "gesture_hair")
|
||||
for v in _POSE[f]["variants"]]
|
||||
+ ["leaning against a wall", "walking mid-stride", "turning toward the viewer mid-stride",
|
||||
"striding forward with purpose", "pausing mid-step", "posing with a hand on one hip",
|
||||
"posing with hands in pockets"])
|
||||
_ALL_POSES = [v for f in _POSE.values() for v in f["variants"]]
|
||||
for _shot in ("view from directly behind", "from behind and slightly below, looking up toward subject",
|
||||
"from above and behind, looking down toward subject"):
|
||||
for _shot in _FROM_BEHIND_SHOTS:
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "shot_type", "value": _shot,
|
||||
"excludes_field": "pose", "excludes_values": [p for p in _ALL_POSES if p not in _LOOK_BACK],
|
||||
"excludes_field": "pose",
|
||||
"excludes_values": [p for p in _ALL_POSES if p not in _BACK_READABLE_POSES],
|
||||
"reason": "seen from behind, only a pose that reads from the back"})
|
||||
|
||||
# 1.6.0: the social gestures (peace sign, thumbs up, wave, finger heart) are a cheerful
|
||||
# address to the camera. A sad or troubled face and a heavy or enigmatic mood stand and
|
||||
# the pose absorbs it, as the whole `gesture_social` family; an extreme close-up has no
|
||||
# room for the hand.
|
||||
_SOCIAL_GESTURES = list(_POSE["gesture_social"]["variants"])
|
||||
for _expr in _SAD_EXPRESSIONS:
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "expression", "value": _expr,
|
||||
"excludes_field": "pose", "excludes_values": _SOCIAL_GESTURES,
|
||||
"reason": f"a '{_expr}' face does not flash a cheerful hand sign"})
|
||||
for _mood in [m for f in ("heavy", "enigmatic") for m in FIELD_FAMILIES["mood"][f]["variants"]]:
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "mood", "value": _mood,
|
||||
"excludes_field": "pose", "excludes_values": _SOCIAL_GESTURES,
|
||||
"reason": f"a {_mood} mood does not flash a cheerful hand sign"})
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "shot_type", "value": "extreme close-up on face",
|
||||
"excludes_field": "pose", "excludes_values": _SOCIAL_GESTURES,
|
||||
"reason": "an extreme close-up has no room for a hand gesture"})
|
||||
# --- gaze (2.0.0) -----------------------------------------------------------------------
|
||||
# `gaze` is drawn last, after `pose`, by `_draw_pose_and_gaze` in nodes/identity_forge.py,
|
||||
# which filters its pool through these rules (`_live_exclusions`). That consumer is what
|
||||
# makes rules naming `gaze` live; the older deferred fields (legwear, tattoos) have none.
|
||||
# `gaze` is flat (no FIELD_FAMILIES entry), so a narrowed pool keeps the survivors'
|
||||
# relative weights. No expression closes the eyes, so there is no closed-eye gate.
|
||||
_GAZE_TURN_BACK = ["looking over one shoulder", "glancing back"]
|
||||
_GAZE_AWAY = ["looking off past the camera", "looking down thoughtfully"] + _GAZE_TURN_BACK
|
||||
_ALL_GAZES = list(FIELD_DEFINITIONS["gaze"]["female_options"])
|
||||
for _shot in _FROM_BEHIND_SHOTS:
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "shot_type", "value": _shot,
|
||||
"excludes_field": "gaze",
|
||||
"excludes_values": [g for g in _ALL_GAZES if g not in _GAZE_TURN_BACK],
|
||||
"reason": "seen from behind, the face only shows if the head turns back"})
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "shot_type", "value": "selfie framing at arm's length",
|
||||
"excludes_field": "gaze", "excludes_values": list(_GAZE_AWAY),
|
||||
"reason": "a selfie looks at the phone held out in front"})
|
||||
for _pose in _SOCIAL_GESTURES:
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "pose", "value": _pose,
|
||||
"excludes_field": "gaze", "excludes_values": list(_GAZE_AWAY),
|
||||
"reason": f"'{_pose}' is addressed to the camera"})
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "pose", "value": "walking toward the camera",
|
||||
"excludes_field": "gaze", "excludes_values": list(_GAZE_TURN_BACK),
|
||||
"reason": "walking toward the camera faces it"})
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "pose", "value": "resting chin on one hand",
|
||||
"excludes_field": "gaze", "excludes_values": ["lifting the chin slightly"],
|
||||
"reason": "a chin resting on a hand is not lifted"})
|
||||
# A face turned inward does not meet the lens.
|
||||
for _expr in ("lost in thought", "daydreaming"):
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "expression", "value": _expr,
|
||||
"excludes_field": "gaze", "excludes_values": ["looking directly into the camera"],
|
||||
"reason": f"a '{_expr}' face is not looking into the lens"})
|
||||
# "Thoughtfully" belongs to a quiet face: not a grin, a glare, a smirk or a startle.
|
||||
for _efam in ("warm", "intense", "playful", "reactive"):
|
||||
for _expr in FIELD_FAMILIES["expression"][_efam]["variants"]:
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "expression", "value": _expr,
|
||||
"excludes_field": "gaze", "excludes_values": ["looking down thoughtfully"],
|
||||
"reason": f"a '{_expr}' face is not looking down thoughtfully"})
|
||||
|
||||
# --- the face and the mood agree, family by family ------------------------------------------
|
||||
# Round 2 gated warm faces off heavy moods and sad faces off positive ones; the flagged
|
||||
@@ -2512,6 +2635,7 @@ _MOODS_DENIED_BY_EXPRESSION: dict[str, list[str]] = {
|
||||
"playful": ["heavy"],
|
||||
"pensive": ["positive", "bold_fierce", "bold_bright"],
|
||||
"reactive": ["bold_fierce", "bold_bright", "calm"],
|
||||
"troubled": ["positive", "calm", "bold_fierce", "bold_bright"], # 1.6.0
|
||||
}
|
||||
for _efam, _mfams in _MOODS_DENIED_BY_EXPRESSION.items():
|
||||
_moods = [m for f in _mfams for m in FIELD_FAMILIES["mood"][f]["variants"]]
|
||||
@@ -2619,6 +2743,14 @@ for _style in ("business formal", "business casual", "evening formal", "cocktail
|
||||
"type": "exclusion", "field": "outfit_style", "value": _style,
|
||||
"excludes_field": "hair_style", "excludes_values": list(_PLAYFUL_HAIR),
|
||||
"reason": f"a playful hairstyle reads as costume with {_style} dress"})
|
||||
# 1.6.0: a mohawk is a statement cut; with formal or preppy dress the outfit stands and
|
||||
# the hair absorbs it (whole `barbered_mohawk` family).
|
||||
for _style in ("business formal", "business casual", "evening formal", "cocktail semi-formal",
|
||||
"preppy"):
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "outfit_style", "value": _style,
|
||||
"excludes_field": "hair_style", "excludes_values": ["mohawk"],
|
||||
"reason": f"a mohawk reads as costume with {_style} dress"})
|
||||
|
||||
|
||||
# --- round 5 (the maintainer's test of the round-4 branch) -----------------------------
|
||||
@@ -2637,7 +2769,10 @@ _NIGHT_LIGHTS = ["blue hour twilight", "pre-dawn darkness with ambient glow",
|
||||
"club strobe lighting", "colored gel lighting", "warm candlelight",
|
||||
"warm string lights bokeh background", "warm lantern light",
|
||||
"golden bokeh lights in background", "fire and flame warm flicker",
|
||||
"flickering firelight from a hearth", "flickering television glow in a dark room"]
|
||||
"flickering firelight from a hearth", "flickering television glow in a dark room",
|
||||
# 1.6.0: not night, but just as sunless.
|
||||
*FIELD_FAMILIES["lighting"]["weather"]["variants"],
|
||||
*FIELD_FAMILIES["lighting"]["snowfall"]["variants"]]
|
||||
for _light in _NIGHT_LIGHTS:
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "lighting", "value": _light,
|
||||
@@ -2649,13 +2784,14 @@ for _texture in ("loosely curled", "softly curled"):
|
||||
"type": "exclusion", "field": "hair_texture", "value": _texture,
|
||||
"excludes_field": "hair_style", "excludes_values": list(_AFRO_BRAIDS),
|
||||
"reason": f"{_texture} hair does not hold cornrows, locs or twists"})
|
||||
# An undercut reads young from 55 ("an undercut" on a 70-year-old).
|
||||
# An undercut reads young from 55 ("an undercut" on a 70-year-old). 1.6.0: the mohawk
|
||||
# too, as its whole single-variant family.
|
||||
for _age in _AGE_VALUES:
|
||||
if int(_age) >= 55:
|
||||
CONSTRAINT_RULES.append({
|
||||
"type": "exclusion", "field": "age", "value": _age,
|
||||
"excludes_field": "hair_style", "excludes_values": ["undercut", "mullet"],
|
||||
"reason": f"an undercut or a mullet reads young at {_age}"})
|
||||
"excludes_field": "hair_style", "excludes_values": ["undercut", "mullet", "mohawk"],
|
||||
"reason": f"an undercut, a mullet or a mohawk reads young at {_age}"})
|
||||
|
||||
|
||||
# --- Lock-vs-lock clash check (1.5.1) -----------------------------------------
|
||||
|
||||
+1809
-147
File diff suppressed because it is too large
Load Diff
+87
-8
@@ -2263,9 +2263,12 @@ CREATURES: dict[str, dict] = {
|
||||
},
|
||||
"leprechaun": {
|
||||
"class": "Mythic & Fantasy", "palette": "ruddy freckled",
|
||||
# 2.2.0: the palette supplies "ruddy freckled", so the integument must not repeat
|
||||
# it. The beard is the folklore look; the gallery tile is pinned Male
|
||||
# (render_gallery._GALLERY_GENDER) since creature slots have no gender gate.
|
||||
"head": "a wizened impish face with a ruddy grin, pointed ears and a ginger beard",
|
||||
"eyes": "twinkling green eyes",
|
||||
"integument": "ruddy freckled skin",
|
||||
"integument": "skin",
|
||||
"arms": "wiry little arms",
|
||||
"hands": "nimble small hands",
|
||||
"legs_feet": "short bandy legs",
|
||||
@@ -2994,14 +2997,20 @@ CREATURES: dict[str, dict] = {
|
||||
"class": "Marine Life",
|
||||
"palette": "dark bronze",
|
||||
"palette_pool": ["dark bronze", "olive brown", "weathered slate"],
|
||||
"head": "a smooth domed horseshoe of chitin drawn low over the face",
|
||||
# 2.2.0: "drawn low over the face" rendered a plain man, and a "shell in place of
|
||||
# a head" rendered a man wearing it as a hat, and a negated "no human head" was
|
||||
# ignored. Lead with a positive "<creature> head", like the other arthropods.
|
||||
"head": "a faceless horseshoe crab head, a broad flat chitin dome with no face, "
|
||||
"no mouth and no human features",
|
||||
"eyes": "a pair of kidney-shaped compound eyes set wide on the shell above smaller simple eyes ranked along its ridge",
|
||||
"integument": "a hinged carapace plated in two smooth shields",
|
||||
"arms": "short jointed arms tucked beneath the shell",
|
||||
"hands": "small pincered claws",
|
||||
"legs_feet": "ranks of walking legs under a plated abdomen fringed with spines",
|
||||
"tail": "a long rigid spike of a tail",
|
||||
"extras": "stacked pages of book gills flexing beneath the rear shield",
|
||||
# 2.2.0: free-floating parts ("two shields", "a plated abdomen", "the rear
|
||||
# shield") rendered as a second whole crab held at the side; anchor each to the body.
|
||||
"integument": "a smooth hinged chitin carapace covering the back and chest",
|
||||
"arms": "segmented chitin arms",
|
||||
"hands": "small pincers in place of hands",
|
||||
"legs_feet": "chitin-plated legs, with a row of short spiny walking legs along each side of the belly",
|
||||
"tail": "a long rigid spike of a tail trailing from the lower back",
|
||||
"extras": "stacked book gills along the underside of the torso",
|
||||
},
|
||||
|
||||
# ======================================================================
|
||||
@@ -3283,6 +3292,76 @@ CREATURES: dict[str, dict] = {
|
||||
"legs_feet": "muscular legs ending in cloven hooves",
|
||||
"tail": "a short dark tail",
|
||||
},
|
||||
# --- 1.8.0 ---------------------------------------------------------------
|
||||
"stegosaurus": {
|
||||
"class": "Reptiles & Amphibians", "palette": "mottled olive",
|
||||
"palette_pool": ["mottled olive", "earthy brown", "slate grey-green"],
|
||||
"head": "a small low narrow head with a toothless beaked snout",
|
||||
"eyes": "small dark eyes set on the sides of the head",
|
||||
"integument": "a double row of broad upright diamond-shaped bony plates running "
|
||||
"down the back over thick pebbled hide",
|
||||
"arms": "short sturdy forelegs",
|
||||
"hands": "broad blunt-toed forefeet",
|
||||
"legs_feet": "tall massive hind legs",
|
||||
"tail": "a heavy tail ending in four long horizontal bony spikes",
|
||||
},
|
||||
|
||||
# ======================================================================
|
||||
# 1.11.0. Each one names the body the roster could not already render.
|
||||
# ======================================================================
|
||||
"frilled lizard": {
|
||||
# The neck frill: no lizard on the roster has an erectile ruff around the jaws.
|
||||
"class": "Reptiles & Amphibians", "palette": "sandy tan",
|
||||
"palette_pool": ["sandy tan", "rust brown", "charcoal grey"],
|
||||
"head": "a lizard head ringed by a huge fan-like neck frill spread wide like an "
|
||||
"open umbrella around the jaws, its edges veined in orange and red",
|
||||
"eyes": "sharp golden reptilian eyes",
|
||||
"integument": "fine dry pebbled scales",
|
||||
"arms": "lean scaled arms",
|
||||
"hands": "long-toed clawed hands",
|
||||
"legs_feet": "long running legs with clawed feet",
|
||||
"tail": "a long whip-thin tail",
|
||||
"extras": "a gaping bright yellow mouth",
|
||||
},
|
||||
"quetzalcoatl": {
|
||||
# A feathered serpent: dragon and wyvern are scaled, naga is bare-scaled, and the
|
||||
# thunderbird is a bird. Scales turning to plumage is the new integument.
|
||||
"class": "Mythic & Fantasy", "palette": "emerald green",
|
||||
"palette_pool": ["emerald green", "turquoise", "jade and gold"],
|
||||
"head": "a fanged serpent head crowned with a fan of long iridescent quetzal plumes",
|
||||
"eyes": "fierce obsidian-black eyes",
|
||||
"integument": "glossy scales that overlap into long iridescent feathers along the body",
|
||||
"arms": "feather-fringed arms",
|
||||
"hands": "taloned hands",
|
||||
"legs_feet": "a long coiling feathered serpent body in place of legs",
|
||||
"wings": "a pair of broad feathered wings",
|
||||
"tail": "a tail ending in a fan of trailing plumes",
|
||||
},
|
||||
"leafy sea dragon": {
|
||||
# Seahorse has bony rings; this body is covered in leaf-shaped camouflage lobes.
|
||||
"class": "Marine Life", "palette": "olive yellow",
|
||||
"palette_pool": ["olive yellow", "golden amber", "rust orange"],
|
||||
"head": "a long tubular-snouted head sprouting leafy kelp-like fronds",
|
||||
"eyes": "small swiveling eyes",
|
||||
"integument": "a slender ridged body covered in leaf-shaped kelp-like lobes",
|
||||
"arms": "thin leaf-fringed arms",
|
||||
"hands": "delicate frond-tipped hands",
|
||||
"legs_feet": "a long tapering frond-sprouting tail in place of legs",
|
||||
"wings": "tiny translucent fluttering fins",
|
||||
},
|
||||
"giant isopod": {
|
||||
# A pill-bug body: arched overlapping segments over many paired legs. The horseshoe
|
||||
# crab's is a two-part hinged shield and the cockroach's a flat wing-cased back.
|
||||
"class": "Marine Life", "palette": "pale lilac grey",
|
||||
"palette_pool": ["pale lilac grey", "dusky pink", "sand beige"],
|
||||
"head": "a broad flat armored head with two pairs of short antennae",
|
||||
"eyes": "large faceted compound eyes set wide on the head",
|
||||
"integument": "overlapping armored segments arched over the back like plated shingles",
|
||||
"arms": "short jointed arms",
|
||||
"hands": "small hooked claws",
|
||||
"legs_feet": "seven pairs of jointed walking legs beneath the segmented shell",
|
||||
"tail": "a broad fan-shaped tail plate",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
+178
-61
File diff suppressed because one or more lines are too long
+1014
-12
File diff suppressed because it is too large
Load Diff
+131
-1
@@ -142,6 +142,12 @@ RELEASES: tuple[str, ...] = (
|
||||
"1.4.0",
|
||||
"1.5.0",
|
||||
"1.5.1",
|
||||
"1.6.0",
|
||||
"1.8.0",
|
||||
"1.9.0",
|
||||
"1.11.0",
|
||||
"2.1.0",
|
||||
"2.2.0",
|
||||
)
|
||||
|
||||
#: Entry name -> the release it first shipped in.
|
||||
@@ -161,6 +167,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Abomination': "0.22.0",
|
||||
'Acheron': "1.5.0",
|
||||
'Ada Wong': "0.6.0",
|
||||
'Adam Smasher': "2.2.0",
|
||||
'Admiral Ackbar': "0.20.0",
|
||||
'Aeon Flux': "1.0.0",
|
||||
'Aerith Gainsborough': "0.6.0",
|
||||
@@ -190,6 +197,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Aleta Ogord': "0.69.0",
|
||||
'Alice': "0.6.0",
|
||||
'Alice Nakiri': "0.79.0",
|
||||
'Alita': "1.8.0",
|
||||
'All Might': "0.7.0",
|
||||
'Allen the Alien': "0.59.0",
|
||||
'Aloy': "0.6.0",
|
||||
@@ -213,6 +221,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Android 18': "0.6.0",
|
||||
'Android 21': "0.76.0",
|
||||
'Angel': "0.17.0",
|
||||
'Angel Dust': "1.11.0",
|
||||
'Angela': "0.18.0",
|
||||
'Anger': "0.77.0",
|
||||
'Anissa': "0.59.0",
|
||||
@@ -238,6 +247,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Arbiter': "1.3.0",
|
||||
'Arcanine': "0.95.0",
|
||||
'Archon': "1.3.0",
|
||||
'Arcueid Brunestud': "2.1.0",
|
||||
'Ariel': "0.6.0",
|
||||
'Arishem': "1.5.1",
|
||||
'Arisia Rrab': "0.18.0",
|
||||
@@ -294,7 +304,9 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Bantha': "0.21.0",
|
||||
'Baraka': "0.7.0",
|
||||
'Barbarella': "1.1.0",
|
||||
'Barbie': "1.8.0",
|
||||
'Barley Lightfoot': "1.4.0",
|
||||
'Barnaby Brooks Jr.': "2.1.0",
|
||||
'Barney Rubble': "0.19.0",
|
||||
'Baron Humbert von Gikkingen': "0.60.0",
|
||||
'Baron Zemo': "0.22.0",
|
||||
@@ -336,6 +348,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Bill Cipher': "0.98.0",
|
||||
'Billy Butcher': "0.62.0",
|
||||
'Binary': "0.18.0",
|
||||
'Birdie the Early Bird': "1.11.0",
|
||||
'Bishamon': "0.59.0",
|
||||
'Bishamonten': "0.79.0",
|
||||
'Bishop': "0.17.0",
|
||||
@@ -349,13 +362,16 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Black Noir': "0.62.0",
|
||||
'Black Orchid': "1.3.0",
|
||||
'Black Panther': "0.7.0",
|
||||
'Black Rock Shooter': "2.1.0",
|
||||
'Black Widow': "0.6.0",
|
||||
'Blackfire': "0.18.0",
|
||||
'Blackheart': "0.18.0",
|
||||
'Blade': "0.7.0",
|
||||
'Blaidd the Half-Wolf': "0.76.0",
|
||||
'Blake Belladonna': "2.1.0",
|
||||
'Blanka': "0.7.0",
|
||||
'Blink': "0.18.0",
|
||||
'Bloodshot': "1.9.0",
|
||||
'Bloodsport': "0.22.0",
|
||||
'Bloody Mary': "0.18.0",
|
||||
'Blossom': "0.76.0",
|
||||
@@ -404,6 +420,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Buttercup': "0.76.0",
|
||||
'Buzz Lightyear': "0.19.0",
|
||||
'Byakuya Kuchiki': "0.16.0",
|
||||
'Byleth': "2.1.0",
|
||||
'C-3PO': "0.19.0",
|
||||
'C.C.': "0.76.0",
|
||||
'Cable': "0.17.0",
|
||||
@@ -447,6 +464,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Cassie Cage': "0.58.0",
|
||||
'Cat Noir': "0.82.0",
|
||||
'Catbus': "0.95.0",
|
||||
'Catra': "2.1.0",
|
||||
'Catwoman': "0.6.0",
|
||||
'Cecil Harvey': "0.60.0",
|
||||
'Celes Chere': "0.60.0",
|
||||
@@ -461,6 +479,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Char Aznable': "0.87.0",
|
||||
'Charizard': "0.21.0",
|
||||
'Charlie Brown': "0.77.0",
|
||||
'Charlie Morningstar': "1.11.0",
|
||||
'Charlotte Smoothie': "0.63.0",
|
||||
'Cheetah': "0.7.0",
|
||||
'Cheetara': "0.17.0",
|
||||
@@ -473,6 +492,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Chester Cheetah': "0.51.0",
|
||||
'Chewbacca': "0.7.0",
|
||||
'Chi-Chi': "0.16.0",
|
||||
'Chiaki Nanami': "2.1.0",
|
||||
'Chiana': "0.79.0",
|
||||
'Chief Chirpa': "0.20.0",
|
||||
'Chizuru Mizuhara': "0.77.0",
|
||||
@@ -490,10 +510,13 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Circe': "0.18.0",
|
||||
'Ciri': "0.6.0",
|
||||
'Claire Redfield': "0.6.0",
|
||||
'Claptrap': "2.1.0",
|
||||
'Cloud Strife': "0.7.0",
|
||||
'Coach Brunt': "0.69.0",
|
||||
'Cobra Commander': "0.17.0",
|
||||
'Codsworth': "2.1.0",
|
||||
'Cody Travers': "1.4.0",
|
||||
'Cogsworth': "2.1.0",
|
||||
'Colonel Sanders': "0.51.0",
|
||||
'Colossus': "0.17.0",
|
||||
'Columbia': "0.77.0",
|
||||
@@ -515,6 +538,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Crimson Countess': "0.62.0",
|
||||
'Crimson Viper': "0.58.0",
|
||||
'Crono': "1.0.0",
|
||||
'Crow (East of West)': "1.9.0",
|
||||
'Cruella de Vil': "0.6.0",
|
||||
'Crysta': "0.63.0",
|
||||
'Crystal': "0.18.0",
|
||||
@@ -534,6 +558,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Daisy': "0.18.0",
|
||||
'Daisy Duck': "0.77.0",
|
||||
'Daki': "0.76.0",
|
||||
'Dalek': "2.1.0",
|
||||
'Danny Phantom': "0.76.0",
|
||||
'Dante': "0.79.0",
|
||||
'Daphne Blake': "0.6.0",
|
||||
@@ -589,6 +614,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Diva': "0.57.0",
|
||||
'Diva Plavalaguna': "0.69.0",
|
||||
'Dizzy': "0.88.0",
|
||||
'Doc Brown': "1.11.0",
|
||||
'Doctor Blight': "0.69.0",
|
||||
'Doctor Cornelius Evazan': "0.21.0",
|
||||
'Doctor Doom': "0.7.0",
|
||||
@@ -598,6 +624,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Doctor Octopus': "0.16.0",
|
||||
'Doctor Strange': "0.7.0",
|
||||
'Domino': "0.7.0",
|
||||
'Domo-kun': "2.1.0",
|
||||
'Donald Duck': "0.19.0",
|
||||
'Donatello': "0.17.0",
|
||||
'Donkey Kong': "0.19.0",
|
||||
@@ -607,6 +634,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Doom Slayer': "0.16.0",
|
||||
'Doomfist': "0.77.0",
|
||||
'Dora the Explorer': "0.74.0",
|
||||
'Doraemon': "2.1.0",
|
||||
'Dorothy Gale': "0.18.0",
|
||||
'Dove': "0.18.0",
|
||||
'Dowager Empress Marie': "0.69.0",
|
||||
@@ -636,11 +664,13 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'E. Honda': "0.58.0",
|
||||
'EVE (Stellar Blade)': "1.4.0",
|
||||
'Eda Clawthorne': "1.0.0",
|
||||
'Edelgard': "2.1.0",
|
||||
'Edna Mode': "0.77.0",
|
||||
'Edward Elric': "0.7.0",
|
||||
'Edward Scissorhands': "0.53.0",
|
||||
'Eevee': "0.21.0",
|
||||
'Eeyore': "0.19.0",
|
||||
'Effie Trinket': "1.8.0",
|
||||
'Ekko': "0.77.0",
|
||||
'Elastigirl': "0.17.0",
|
||||
'Electro': "0.19.0",
|
||||
@@ -654,6 +684,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Elizabeth Liones': "0.76.0",
|
||||
'Elizabeth Swann': "0.76.0",
|
||||
'Elle Driver': "0.76.0",
|
||||
'Elle Woods': "1.11.0",
|
||||
'Ellen Joe': "1.4.0",
|
||||
'Ellen Ripley': "0.16.0",
|
||||
'Ellie Williams': "0.43.0",
|
||||
@@ -672,6 +703,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Endeavor': "0.16.0",
|
||||
'Energizer Bunny': "0.51.0",
|
||||
'Engineer (Team Fortress 2)': "0.88.0",
|
||||
'Enid Sinclair': "1.11.0",
|
||||
'Eowyn': "0.16.0",
|
||||
'Eraser Head': "0.77.0",
|
||||
'Eren Yeager': "0.7.0",
|
||||
@@ -695,9 +727,11 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Fairy Godmother': "0.77.0",
|
||||
'Faith Connors': "0.69.0",
|
||||
'Falcon': "0.17.0",
|
||||
'Falin Touden': "2.1.0",
|
||||
'Falkor': "0.95.0",
|
||||
'Fantastic Mr Fox': "0.53.0",
|
||||
'Fatality': "0.18.0",
|
||||
'Fate Testarossa': "2.1.0",
|
||||
'Fawkes': "0.95.0",
|
||||
'Faye Valentine': "0.16.0",
|
||||
'Felicia': "0.59.0",
|
||||
@@ -754,6 +788,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Gandalf': "0.7.0",
|
||||
'Ganondorf': "0.7.0",
|
||||
'Ganyu': "0.16.0",
|
||||
'Gardevoir': "2.1.0",
|
||||
'Gargamel': "0.55.0",
|
||||
'Gargos': "1.3.0",
|
||||
'Garnet': "0.43.0",
|
||||
@@ -790,6 +825,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Giyu Tomioka': "0.16.0",
|
||||
'Glacius': "1.3.0",
|
||||
'Glinda': "0.77.0",
|
||||
'Gloria (Pokemon)': "2.1.0",
|
||||
'Glory': "0.57.0",
|
||||
'Go Go Tomago': "0.77.0",
|
||||
'Godzilla': "0.19.0",
|
||||
@@ -867,11 +903,14 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Helga Pataki': "0.76.0",
|
||||
'Hellboy': "0.16.0",
|
||||
'Hellcat': "0.69.0",
|
||||
'Hello Kitty': "2.1.0",
|
||||
'Hera Syndulla': "0.6.0",
|
||||
'Hercules': "0.16.0",
|
||||
'Hermione Granger': "0.6.0",
|
||||
'Hilda (Pokemon)': "2.1.0",
|
||||
'Himeno': "1.0.0",
|
||||
'Himiko Toga': "0.74.0",
|
||||
'Himmel': "1.11.0",
|
||||
'Hinata Hyuga': "0.6.0",
|
||||
'Hippolyta': "0.18.0",
|
||||
'Hiro Hamada': "0.77.0",
|
||||
@@ -926,6 +965,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Inuyasha': "0.88.0",
|
||||
'Invincible': "0.16.0",
|
||||
'Invisible Woman': "0.6.0",
|
||||
'Iono': "2.1.0",
|
||||
'Iori Yagami': "0.61.0",
|
||||
'Irelia': "0.81.0",
|
||||
'Iris': "0.69.0",
|
||||
@@ -988,6 +1028,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Jill Valentine': "0.6.0",
|
||||
'Jiminy Cricket': "0.19.0",
|
||||
'Jin Kazama': "0.16.0",
|
||||
'Jin Sakai': "1.11.0",
|
||||
'Jinhsi': "1.4.0",
|
||||
'Jinu': "1.4.0",
|
||||
'Jinx (League of Legends)': "0.71.1",
|
||||
@@ -996,6 +1037,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Joel Miller': "1.0.0",
|
||||
'John Constantine': "0.16.0",
|
||||
'John Stewart': "0.22.0",
|
||||
'Johnny 5': "2.1.0",
|
||||
'Johnny Bravo': "0.53.0",
|
||||
'Johnny Cage': "0.7.0",
|
||||
'Johnny Silverhand': "0.87.0",
|
||||
@@ -1005,6 +1047,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Jolyne Cujoh': "0.76.0",
|
||||
'Jon Snow': "0.90.0",
|
||||
'Jon Talbain': "0.59.0",
|
||||
'Jonathan Joestar': "2.1.0",
|
||||
'Joseph Joestar': "0.16.0",
|
||||
'Josie McCoy': "0.69.0",
|
||||
'Josuke Higashikata': "0.77.0",
|
||||
@@ -1017,7 +1060,6 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Judy Hopps': "0.18.0",
|
||||
'Judy Jetson': "0.18.0",
|
||||
'Juggernaut': "0.16.0",
|
||||
'Julia Carpenter': "0.69.0",
|
||||
'Julie': "1.1.0",
|
||||
'Juliet Starling': "0.69.0",
|
||||
'Jun Kazama': "0.69.0",
|
||||
@@ -1056,6 +1098,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Karin Kanzuki': "1.4.0",
|
||||
'Karlach': "0.77.0",
|
||||
'Karnak': "1.5.1",
|
||||
'Kasane Teto': "2.1.0",
|
||||
'Kassandra': "1.0.0",
|
||||
'Kasumi': "0.69.0",
|
||||
'Katana': "0.74.0",
|
||||
@@ -1088,6 +1131,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'King': "0.61.0",
|
||||
'King Arthur': "0.19.0",
|
||||
'King Bradley': "0.77.0",
|
||||
'King Dedede': "2.1.0",
|
||||
'King Ghidorah': "0.95.0",
|
||||
'King Kong': "0.63.0",
|
||||
'King Monkey': "0.82.0",
|
||||
@@ -1099,6 +1143,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Kiss-Shot Acerola-Orion Heart-Under-Blade': "0.77.0",
|
||||
'Kitana': "0.6.0",
|
||||
'Kitty Pryde': "0.17.0",
|
||||
'Kiwi': "2.2.0",
|
||||
'Klingon': "0.57.0",
|
||||
'Klytus': "1.1.0",
|
||||
'Kokoro': "0.69.0",
|
||||
@@ -1118,6 +1163,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Kuiil': "0.21.0",
|
||||
'Kung Lao': "0.7.0",
|
||||
'Kurapika': "0.87.0",
|
||||
'Kuromi': "2.1.0",
|
||||
'Kurumi Tokisaki': "0.69.0",
|
||||
'Kwame': "0.69.0",
|
||||
'Ky Kiske': "0.88.0",
|
||||
@@ -1127,6 +1173,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Kyo Kusanagi': "0.61.0",
|
||||
'Kyojuro Rengoku': "0.74.0",
|
||||
'Kyoko Sakura': "0.77.0",
|
||||
'Kyubey': "2.1.0",
|
||||
'L Lawliet': "0.16.0",
|
||||
'La Lunatica': "0.72.1",
|
||||
'Lady (Devil May Cry)': "0.79.0",
|
||||
@@ -1142,6 +1189,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Lady Tremaine': "0.77.0",
|
||||
'Ladybug': "0.82.0",
|
||||
"Lae'zel": "0.16.0",
|
||||
'Laios Touden': "1.11.0",
|
||||
'Lana Kane': "0.69.0",
|
||||
'Lando Calrissian': "0.19.0",
|
||||
'Lapis Lazuli': "0.76.0",
|
||||
@@ -1205,6 +1253,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Loki': "0.7.0",
|
||||
'Lola Bunny': "0.69.0",
|
||||
'Looten Plunder': "0.69.0",
|
||||
'Lord Fanny': "1.8.0",
|
||||
'Lord Farquaad': "0.77.0",
|
||||
'Lord Raptor': "0.59.0",
|
||||
'Lord Voldemort': "0.16.0",
|
||||
@@ -1256,6 +1305,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Mai Sakurajima': "0.76.0",
|
||||
'Mai Shiranui': "0.6.0",
|
||||
'Maid Marian': "0.85.0",
|
||||
'Maine': "2.2.0",
|
||||
'Majin Buu': "0.43.0",
|
||||
'Maka Albarn': "1.0.0",
|
||||
'Maki Genryusai': "0.58.0",
|
||||
@@ -1286,6 +1336,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Marin Kitagawa': "0.69.0",
|
||||
'Mario': "0.7.0",
|
||||
'Marisa': "0.58.0",
|
||||
'Marisa Kirisame': "2.1.0",
|
||||
'Marnie': "0.69.0",
|
||||
'Maron': "0.74.0",
|
||||
'Martian Manhunter': "0.7.0",
|
||||
@@ -1295,6 +1346,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Mary Jane Watson': "0.18.0",
|
||||
'Mary Marvel': "0.18.0",
|
||||
'Mary Poppins': "0.18.0",
|
||||
'Mash Kyrielight': "2.1.0",
|
||||
'Master Chief': "0.7.0",
|
||||
'Master Roshi': "0.77.0",
|
||||
'Maui': "0.16.0",
|
||||
@@ -1316,6 +1368,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Meg Griffin': "0.18.0",
|
||||
'Mega Man': "0.97.0",
|
||||
'Megaera': "1.0.0",
|
||||
'Megamind': "1.8.0",
|
||||
'Megara': "0.16.0",
|
||||
'Megatron': "0.17.0",
|
||||
'Megumi Fushiguro': "0.16.0",
|
||||
@@ -1335,6 +1388,9 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Mercy': "0.6.0",
|
||||
'Merida': "0.6.0",
|
||||
'Merlin': "0.19.0",
|
||||
'Mervyn Pumpkinhead': "1.9.0",
|
||||
'Messmer the Impaler': "1.11.0",
|
||||
'Meta Knight': "2.1.0",
|
||||
'Mewtwo': "0.21.0",
|
||||
'Mia Wallace': "0.76.0",
|
||||
'Michael Myers': "0.16.0",
|
||||
@@ -1352,11 +1408,13 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Miku Izayoi': "0.69.0",
|
||||
'Mila': "0.69.0",
|
||||
'Mileena': "0.16.0",
|
||||
'Miles Morales': "1.11.0",
|
||||
'Milim Nava': "0.74.0",
|
||||
'Millia Rage': "0.88.0",
|
||||
'Minato Namikaze': "0.77.0",
|
||||
'Minerva McGonagall': "0.74.0",
|
||||
'Ming the Merciless': "1.1.0",
|
||||
'Minion': "1.8.0",
|
||||
'Minnie Mouse': "0.18.0",
|
||||
'Minthara': "0.96.0",
|
||||
'Mipha': "0.77.0",
|
||||
@@ -1391,6 +1449,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Mona': "1.4.0",
|
||||
'Monkey D. Luffy': "0.7.0",
|
||||
'Monkey Fist': "0.69.0",
|
||||
'Monokuma': "2.1.0",
|
||||
'Moogle': "0.60.0",
|
||||
'Moon Knight': "0.19.0",
|
||||
'Moondragon': "0.69.0",
|
||||
@@ -1417,6 +1476,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Mr. Peanut': "0.51.0",
|
||||
'Mr. Spacely': "0.77.0",
|
||||
'Mr. Spock': "0.7.0",
|
||||
'Mrs. Potts': "2.1.0",
|
||||
'Ms. Marvel (Kamala Khan)': "0.45.0",
|
||||
'Ms. Marvel (Sharon Ventura)': "0.45.0",
|
||||
'Mt. Lady': "0.57.0",
|
||||
@@ -1429,6 +1489,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Mynock': "0.21.0",
|
||||
'Mysterio': "0.16.0",
|
||||
'Mystique': "0.6.0",
|
||||
'Nagito Komaeda': "2.1.0",
|
||||
'Nakoruru': "1.0.0",
|
||||
'Nami': "0.6.0",
|
||||
'Namor': "0.19.0",
|
||||
@@ -1439,6 +1500,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Nancy Downs': "1.0.0",
|
||||
'Nancy Drew': "0.74.0",
|
||||
'Nani Pelekai': "0.74.0",
|
||||
'Nanoha Takamachi': "2.1.0",
|
||||
'Naoto Shirogane': "0.88.0",
|
||||
'Naruto Uzumaki': "0.7.0",
|
||||
'Natalia Kassle': "0.69.0",
|
||||
@@ -1478,7 +1540,9 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Nobara Kugisaki': "0.16.0",
|
||||
'Noctis': "0.16.0",
|
||||
'Nocturne': "0.18.0",
|
||||
'Noel Vermillion': "2.1.0",
|
||||
'Noelle Silva': "1.0.0",
|
||||
'Noriaki Kakyoin': "2.1.0",
|
||||
'Nosferatu': "1.0.0",
|
||||
'Nova (Frankie Raye)': "0.18.0",
|
||||
'Nova (Richard Rider)': "0.19.0",
|
||||
@@ -1509,6 +1573,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Orchid': "1.3.0",
|
||||
'Origami Tobiichi': "0.69.0",
|
||||
'Orihime Inoue': "0.16.0",
|
||||
'Orion': "2.1.0",
|
||||
'Orko': "0.17.0",
|
||||
'Orochimaru': "0.16.0",
|
||||
'Other Mother': "0.77.0",
|
||||
@@ -1572,6 +1637,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Praetorian Guard': "0.20.0",
|
||||
'Predator': "0.16.0",
|
||||
'Prince Eric': "0.77.0",
|
||||
'Prince Robot IV': "1.9.0",
|
||||
'Prince Thrakhath': "1.4.0",
|
||||
'Prince Vultan': "1.1.0",
|
||||
'Princess Allura': "0.74.0",
|
||||
@@ -1618,6 +1684,8 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Rachel': "0.69.0",
|
||||
'Rachel Summers': "0.69.0",
|
||||
'Rage (Marvel)': "0.69.0",
|
||||
'Ragged Robin': "1.8.0",
|
||||
'Ragna the Bloodedge': "2.1.0",
|
||||
'Ragyo Kiryuin': "0.77.0",
|
||||
'Raiden': "0.7.0",
|
||||
'Raiden Shogun': "0.16.0",
|
||||
@@ -1638,6 +1706,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Ratcatcher 2': "0.22.0",
|
||||
'Raven': "0.6.0",
|
||||
'Ray Gillette': "0.69.0",
|
||||
'Raya': "1.8.0",
|
||||
'Rayne': "0.69.0",
|
||||
'Re-L Mayer': "0.79.0",
|
||||
'Reaper': "0.16.0",
|
||||
@@ -1648,6 +1717,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Red Skull': "0.16.0",
|
||||
'Red Sonja': "0.69.0",
|
||||
'Rei Ayanami': "0.6.0",
|
||||
'Reimu Hakurei': "2.1.0",
|
||||
'Reinhardt': "0.16.0",
|
||||
'Rem': "0.77.0",
|
||||
'Rena Rouge': "0.82.0",
|
||||
@@ -1706,6 +1776,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Roy Mustang': "0.16.0",
|
||||
'Rubeus Hagrid': "0.63.0",
|
||||
'Ruby Rhod': "0.69.0",
|
||||
'Ruby Rose': "2.1.0",
|
||||
'Rukia Kuchiki': "0.16.0",
|
||||
'Rumi': "0.60.0",
|
||||
'Rydia': "0.60.0",
|
||||
@@ -1738,6 +1809,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Saitama': "0.7.0",
|
||||
'Sakura Haruno': "0.6.0",
|
||||
'Sakura Kasugano': "0.16.0",
|
||||
'Sakuya Izayoi': "2.1.0",
|
||||
'Salaak': "0.22.0",
|
||||
'Salacious Crumb': "0.21.0",
|
||||
'Salama': "0.79.0",
|
||||
@@ -1787,6 +1859,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Selene (Underworld)': "0.76.0",
|
||||
'Selene Gallio (Black Queen)': "0.69.0",
|
||||
'Selvaria Bles': "1.0.0",
|
||||
'Senshi': "2.1.0",
|
||||
'Senua': "0.16.0",
|
||||
'Seong Gi-hun': "0.87.0",
|
||||
'Seong Mi-na': "0.58.0",
|
||||
@@ -1794,6 +1867,8 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Seraphine': "0.77.0",
|
||||
'Serena': "0.69.0",
|
||||
'Sersi': "0.69.0",
|
||||
'Serval (Kemono Friends)': "2.1.0",
|
||||
'Sesshomaru': "1.8.0",
|
||||
'Sett': "0.81.0",
|
||||
'Seven of Nine': "0.57.0",
|
||||
'Severus Snape': "0.16.0",
|
||||
@@ -1804,6 +1879,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Shang Tsung': "0.16.0",
|
||||
'Shanks': "0.77.0",
|
||||
'Shanna the She-Devil': "0.69.0",
|
||||
'Shantae': "2.1.0",
|
||||
'Shao Kahn': "0.7.0",
|
||||
'Sharon Carter': "0.69.0",
|
||||
'Shazam': "0.7.0",
|
||||
@@ -1855,6 +1931,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Snake Eyes': "0.17.0",
|
||||
'Snake Plissken': "0.16.0",
|
||||
'Sniper (Team Fortress 2)': "0.88.0",
|
||||
'Snoopy': "2.1.0",
|
||||
'Snorlax': "0.21.0",
|
||||
'Snow White': "0.6.0",
|
||||
'Snowbird': "0.18.0",
|
||||
@@ -1868,6 +1945,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Soma Yukihira': "0.79.0",
|
||||
'Sombra': "0.16.0",
|
||||
'Sona': "0.81.0",
|
||||
'Song So Mi': "2.2.0",
|
||||
'Songbird': "0.69.0",
|
||||
'Sonic the Hedgehog': "0.19.0",
|
||||
'Sonya Blade': "0.16.0",
|
||||
@@ -1885,6 +1963,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Speedy Gonzales': "0.98.0",
|
||||
'Spider-Gwen': "0.6.0",
|
||||
'Spider-Man': "0.7.0",
|
||||
'Spider-Punk': "1.11.0",
|
||||
'Spider-Woman': "0.7.0",
|
||||
'Spider-Woman (Julia Carpenter)': "0.74.0",
|
||||
'Spike Spiegel': "0.16.0",
|
||||
@@ -1930,6 +2009,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Subaru Natsuki': "0.77.0",
|
||||
'Suki': "0.16.0",
|
||||
'Sukuna': "0.16.0",
|
||||
'Suletta Mercury': "2.1.0",
|
||||
'Sumire Yoshizawa': "0.88.0",
|
||||
'Summer Smith': "0.77.0",
|
||||
'Sunfire (Exiles)': "0.18.0",
|
||||
@@ -1942,6 +2022,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Sylphy': "0.79.0",
|
||||
'Sylvanas Windrunner': "0.18.0",
|
||||
'Sylvester': "0.98.0",
|
||||
'Sylvie': "1.11.0",
|
||||
'Symmetra': "0.16.0",
|
||||
'Syndrome': "0.77.0",
|
||||
'TIE Pilot': "0.20.0",
|
||||
@@ -1949,7 +2030,9 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Taki': "0.58.0",
|
||||
'Tala': "0.18.0",
|
||||
"Tali'Zorah": "0.60.0",
|
||||
'Talia Yang': "2.2.0",
|
||||
'Talia al Ghul': "0.18.0",
|
||||
'Tamamo no Mae': "2.1.0",
|
||||
'Tanjiro Kamado': "0.16.0",
|
||||
'Tank Girl': "1.0.0",
|
||||
'Tanya': "0.58.0",
|
||||
@@ -2039,11 +2122,13 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Tomar-Re': "0.22.0",
|
||||
'Tomura Shigaraki': "0.16.0",
|
||||
'Tony Stark': "0.7.0",
|
||||
'Tony Tony Chopper': "2.1.0",
|
||||
'Tony the Tiger': "0.51.0",
|
||||
'Toothless': "0.95.0",
|
||||
'Topaz': "0.74.0",
|
||||
'Toph Beifong': "0.6.0",
|
||||
'Torbjorn': "1.4.0",
|
||||
'Toriel': "2.1.0",
|
||||
'Toshiro Hitsugaya': "0.74.0",
|
||||
'Totoro': "0.18.0",
|
||||
'Touka Kirishima': "0.76.0",
|
||||
@@ -2074,6 +2159,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Ultron': "0.17.0",
|
||||
'Ultros': "0.60.0",
|
||||
'Uncle Fester': "0.59.0",
|
||||
'Undyne': "2.1.0",
|
||||
'Unkar Plutt': "0.21.0",
|
||||
'Urbosa': "0.16.0",
|
||||
'Urd': "1.0.1",
|
||||
@@ -2089,6 +2175,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Vash the Stampede': "0.87.0",
|
||||
'Vasquez': "1.0.0",
|
||||
'Vault Dweller': "0.88.0",
|
||||
'Vecna': "1.11.0",
|
||||
'Vega': "0.16.0",
|
||||
'Vegeta': "0.7.0",
|
||||
'Velma Dinkley': "0.6.0",
|
||||
@@ -2112,10 +2199,12 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Vivi Ornitier': "0.60.0",
|
||||
'Vixen': "0.69.0",
|
||||
'Vogue': "0.57.0",
|
||||
'Volcana': "2.2.0",
|
||||
'Voldo': "0.58.0",
|
||||
'Von Lycaon': "1.4.0",
|
||||
'Vulcan': "0.57.0",
|
||||
'Vulture': "0.19.0",
|
||||
'WALL-E': "2.1.0",
|
||||
'Waluigi': "0.74.0",
|
||||
'Wampa': "0.20.0",
|
||||
'Wanderer (Genshin Impact)': "1.4.0",
|
||||
@@ -2127,6 +2216,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Wedge Antilles': "0.19.0",
|
||||
'Wednesday Addams': "0.6.0",
|
||||
'Weeping Angel': "0.87.0",
|
||||
'Weiss Schnee': "2.1.0",
|
||||
'Wendy': "0.43.0",
|
||||
'Wendy Darling': "0.18.0",
|
||||
'Wheeler': "0.69.0",
|
||||
@@ -2137,6 +2227,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Wicked Witch of the West': "0.59.0",
|
||||
'Wicket the Ewok': "0.20.0",
|
||||
'Widowmaker': "0.6.0",
|
||||
'Wild Tiger': "2.1.0",
|
||||
'Wildcat': "0.45.0",
|
||||
'Wile E. Coyote': "0.98.0",
|
||||
'Will Turner': "0.77.0",
|
||||
@@ -2164,6 +2255,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Yamada Asaemon Sagiri': "0.73.0",
|
||||
'Yamato (One Piece)': "1.5.0",
|
||||
'Yami Yugi': "0.87.0",
|
||||
'Yang Xiao Long': "2.1.0",
|
||||
'Yasuo': "0.77.0",
|
||||
'Yelena Belova': "0.76.0",
|
||||
'Yennefer of Vengerberg': "0.6.0",
|
||||
@@ -2179,6 +2271,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Yoshino': "0.69.0",
|
||||
'Yuffie Kisaragi': "0.6.0",
|
||||
'Yuji Itadori': "0.16.0",
|
||||
'Yukari Yakumo': "2.1.0",
|
||||
'Yumeko Jabami': "0.76.0",
|
||||
'Yuna': "0.6.0",
|
||||
'Yunara': "0.81.0",
|
||||
@@ -2225,6 +2318,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'1940s Factory Worker': "0.34.0",
|
||||
'1940s Swing Dancer': "0.34.0",
|
||||
'1950s Diner Waitress': "0.49.0",
|
||||
'1950s Gas Station Attendant': "1.11.0",
|
||||
'1950s Greaser': "0.24.0",
|
||||
'1950s Homemaker': "0.34.0",
|
||||
'1950s Sock Hop': "0.26.0",
|
||||
@@ -2233,6 +2327,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'1960s Hippie': "0.26.0",
|
||||
'1960s Mod': "0.24.0",
|
||||
'1970s Boho It-Girl': "0.34.0",
|
||||
'1970s Fast-Food Crew': "1.11.0",
|
||||
'1970s Leisure Lounge': "0.34.0",
|
||||
'1970s Used Car Salesman': "0.42.0",
|
||||
'1980s Action Star': "0.50.0",
|
||||
@@ -2244,6 +2339,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'1990s Grunge': "0.24.0",
|
||||
'Alchemist': "0.17.0",
|
||||
'Alpine Skier': "0.67.0",
|
||||
'American Football Player': "1.8.0",
|
||||
'Ancient Roman Patrician': "0.24.0",
|
||||
'Andean Cholita': "0.90.0",
|
||||
'Angelic Being': "0.5.0",
|
||||
@@ -2266,6 +2362,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Battle Bard': "0.5.0",
|
||||
'Beauty Pageant Contestant': "0.50.0",
|
||||
'Beekeeper': "0.29.0",
|
||||
'Bellhop': "1.11.0",
|
||||
'Belly Dancer': "0.5.0",
|
||||
'Berserker Barbarian': "0.5.0",
|
||||
'Biker': "0.81.0",
|
||||
@@ -2278,6 +2375,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Butler': "0.67.0",
|
||||
'Cabaret Witch': "0.5.0",
|
||||
'Calligrapher': "0.29.0",
|
||||
'Carhop': "1.11.0",
|
||||
'Carpenter': "0.29.0",
|
||||
'Cartographer': "0.29.0",
|
||||
'Celestial Cleric': "0.5.0",
|
||||
@@ -2305,6 +2403,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Disco Diva': "0.5.0",
|
||||
'Doctor': "0.5.0",
|
||||
'Drag Performer': "0.24.0",
|
||||
'Dressage Rider': "1.6.0",
|
||||
'Dwarven Blacksmith': "0.5.0",
|
||||
'Día de los Muertos': "0.50.0",
|
||||
'E-Girl / E-Boy': "0.67.0",
|
||||
@@ -2313,6 +2412,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Electrician': "0.17.0",
|
||||
'Elven Ranger': "0.5.0",
|
||||
'Emo': "0.34.0",
|
||||
'Evzone Guard': "1.6.0",
|
||||
'Fairy Princess': "0.5.0",
|
||||
'Falconer': "0.29.0",
|
||||
'Farmer': "0.5.0",
|
||||
@@ -2324,6 +2424,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Flamenco Dancer': "0.24.0",
|
||||
'Flight Attendant': "0.5.0",
|
||||
'Florist': "0.28.0",
|
||||
'Fly-Fishing Angler': "1.6.0",
|
||||
'Forest Druid': "0.5.0",
|
||||
'Fortune Teller': "0.5.0",
|
||||
'French Maid': "0.5.0",
|
||||
@@ -2342,8 +2443,11 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Gymnast': "0.28.0",
|
||||
'Hair Metal Rocker': "0.50.0",
|
||||
'Halfling Rogue': "0.5.0",
|
||||
'Hanfu': "1.6.0",
|
||||
'Hazmat Technician': "0.87.0",
|
||||
'Heian Court': "2.2.0",
|
||||
'Highland Scot': "0.42.0",
|
||||
'Highwayman': "1.6.0",
|
||||
'Hockey Goalie': "0.90.0",
|
||||
'Holy Paladin': "0.5.0",
|
||||
'Human Knight': "0.5.0",
|
||||
@@ -2356,14 +2460,19 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'K-Pop Idol': "0.42.0",
|
||||
'Kabuki Actor': "0.87.0",
|
||||
'Kawaii Street Fashion': "0.35.0",
|
||||
'Kebaya': "1.6.0",
|
||||
'Kendo Practitioner': "1.0.0",
|
||||
'Korean Hanbok': "0.96.0",
|
||||
'Lehenga & Sherwani': "1.6.0",
|
||||
'Librarian': "0.5.0",
|
||||
'Lifeguard': "0.17.0",
|
||||
'Lounge Singer': "1.11.0",
|
||||
'Luchador': "0.24.0",
|
||||
'Lumberjack': "0.17.0",
|
||||
'Maasai': "0.96.0",
|
||||
'Mad Scientist': "0.17.0",
|
||||
'Mail Carrier': "1.11.0",
|
||||
'Majorette': "1.11.0",
|
||||
'Marching Band Drum Major': "0.87.0",
|
||||
'Mardi Gras Reveler': "0.50.0",
|
||||
'Mariachi Charro': "0.42.0",
|
||||
@@ -2373,10 +2482,15 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Matador': "0.90.0",
|
||||
'McBling Socialite': "0.34.0",
|
||||
'Mechanic': "0.5.0",
|
||||
'Medieval Monarch': "2.2.0",
|
||||
'Medieval Peasant': "0.67.0",
|
||||
'Metalhead': "1.6.0",
|
||||
'Metrosexual': "0.34.0",
|
||||
'Mime': "0.50.0",
|
||||
'Mongolian Deel': "0.96.0",
|
||||
'Morris Dancer': "1.9.0",
|
||||
'Mountaineer': "1.11.0",
|
||||
'Muay Thai Fighter': "1.6.0",
|
||||
'Musician': "0.5.0",
|
||||
'Musketeer': "0.67.0",
|
||||
'Navy Sailor': "0.28.0",
|
||||
@@ -2387,6 +2501,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Oktoberfest': "0.50.0",
|
||||
'Opera Singer': "0.50.0",
|
||||
'Orchestra Conductor': "0.5.0",
|
||||
'Ottoman Court': "2.2.0",
|
||||
'Outback Bushman': "0.42.0",
|
||||
'Paramedic': "0.29.0",
|
||||
'Parisian Chic': "0.42.0",
|
||||
@@ -2403,6 +2518,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Prehistoric Hunter': "0.24.0",
|
||||
'Pro Wrestler': "0.24.0",
|
||||
'Punk Rocker': "0.5.0",
|
||||
'RCMP Mountie': "1.6.0",
|
||||
'Race Car Driver': "0.24.0",
|
||||
'Rancher': "0.28.0",
|
||||
'Rapper': "0.67.0",
|
||||
@@ -2415,7 +2531,11 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Roaring Flapper': "0.5.0",
|
||||
'Roaring Twenties Gent': "0.24.0",
|
||||
'Rock Climber': "0.17.0",
|
||||
'Rococo Courtier': "2.2.0",
|
||||
'Rodeo Rider': "1.11.0",
|
||||
'Roller Derby': "1.11.0",
|
||||
'Roman Centurion': "0.17.0",
|
||||
'Royal Guard': "1.6.0",
|
||||
'Rude Boy': "0.96.0",
|
||||
'Safari Guide': "0.29.0",
|
||||
'Sami Gakti': "0.96.0",
|
||||
@@ -2423,6 +2543,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Sapeur': "0.42.0",
|
||||
'Scandi Minimalist': "0.42.0",
|
||||
'Scientist': "0.5.0",
|
||||
'Scuba Diver': "1.8.0",
|
||||
'Sea Captain': "0.17.0",
|
||||
'Shadow Monk': "0.5.0",
|
||||
'Skateboarder': "0.17.0",
|
||||
@@ -2451,6 +2572,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Teacher': "0.5.0",
|
||||
'Teddy Boy': "0.96.0",
|
||||
'Tennis Player': "0.28.0",
|
||||
'Thai Classical Dancer': "1.8.0",
|
||||
'Toymaker': "0.29.0",
|
||||
'Train Conductor': "0.29.0",
|
||||
'Trapeze Artist': "0.29.0",
|
||||
@@ -2472,6 +2594,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Warlock': "0.17.0",
|
||||
'Wasteland Survivor': "0.17.0",
|
||||
'Watchmaker': "0.29.0",
|
||||
'Wedding Groom': "1.6.0",
|
||||
'Welder': "0.29.0",
|
||||
'Werewolf Hunter': "0.5.0",
|
||||
'Whirling Dervish': "0.90.0",
|
||||
@@ -2481,6 +2604,8 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'Y2K Mall Casual': "0.35.0",
|
||||
'Yeoman Warder': "0.87.0",
|
||||
'Yoga Instructor': "0.17.0",
|
||||
'Yukata': "1.6.0",
|
||||
'Zoot Suit': "1.11.0",
|
||||
},
|
||||
"creatures": {
|
||||
'aardvark': "0.93.0",
|
||||
@@ -2559,6 +2684,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'flesh golem': "0.15.0",
|
||||
'flower folk': "0.14.0",
|
||||
'fox': "0.14.0",
|
||||
'frilled lizard': "1.11.0",
|
||||
'frog': "0.14.0",
|
||||
'fungal alien': "0.15.0",
|
||||
'gargoyle': "0.14.0",
|
||||
@@ -2566,6 +2692,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'gecko': "0.14.0",
|
||||
'ghost': "0.15.0",
|
||||
'ghoul': "0.44.0",
|
||||
'giant isopod': "1.11.0",
|
||||
'gila monster': "0.29.0",
|
||||
'giraffe': "0.44.0",
|
||||
'goat': "0.44.0",
|
||||
@@ -2608,6 +2735,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'komodo dragon': "0.15.0",
|
||||
'kraken': "0.44.0",
|
||||
'ladybug': "0.44.0",
|
||||
'leafy sea dragon': "1.11.0",
|
||||
'lemur': "0.90.0",
|
||||
'leopard': "0.67.0",
|
||||
'leprechaun': "0.67.0",
|
||||
@@ -2677,6 +2805,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'pumpkin head': "0.15.0",
|
||||
'python': "0.17.0",
|
||||
'qilin': "0.90.0",
|
||||
'quetzalcoatl': "1.11.0",
|
||||
'rabbit': "0.14.0",
|
||||
'raccoon': "0.15.0",
|
||||
'radial alien': "0.87.0",
|
||||
@@ -2714,6 +2843,7 @@ ADDED_IN: dict[str, dict[str, str]] = {
|
||||
'stag beetle': "0.87.0",
|
||||
'star-nosed mole': "1.0.0",
|
||||
'starfish': "0.67.0",
|
||||
'stegosaurus': "1.8.0",
|
||||
'stick insect': "0.87.0",
|
||||
'stone golem': "0.90.0",
|
||||
'sunflower folk': "0.17.0",
|
||||
|
||||
+165
-13
@@ -74,7 +74,8 @@ sample render per roster entry to GitHub Pages. Full detail in
|
||||
[gallery/README.md](../gallery/README.md); the parts that constrain future work:
|
||||
|
||||
- **Images live only on `gh-pages`.** `gallery/.gitignore` blocks `images/` on `main`, so
|
||||
a clone never pulls hundreds of megabytes. Pages, scripts and manifests live on `main`.
|
||||
a clone never pulls hundreds of megabytes. Page sources and scripts live on `main`;
|
||||
deployment manifests live on `gh-pages` (see [gallery/README.md](../gallery/README.md)).
|
||||
- **The manifest is rebuilt from what is published, never from the source folder.** This
|
||||
is the whole safety model: your source folder only adds or overwrites, so an entry you
|
||||
did not supply an image for is never touched and never deleted. The removed `deploy.py`
|
||||
@@ -172,7 +173,7 @@ socket. On overlap, the node **closest to IdentityForge wins** (downstream wins)
|
||||
`_meta`) is the chaining primitive.
|
||||
|
||||
```
|
||||
Archetype ─▶ Cosplayer ─▶ Creature ─▶ Modifier ─▶ IdentityForge ─▶ prompt_text + prompt_json
|
||||
Archetype ─▶ Cosplayer ─▶ Creature ─▶ Modifier ─▶ IdentityForge ─▶ prompt_text + prompt_json + subject_text
|
||||
```
|
||||
|
||||
- **IdentityForge** ([nodes/identity_forge.py](../nodes/identity_forge.py)) — the engine. Many
|
||||
@@ -186,7 +187,8 @@ Archetype ─▶ Cosplayer ─▶ Creature ─▶ Modifier ─▶ IdentityForge
|
||||
- **Modifier** → prepends a descriptor to one field or a whole group.
|
||||
- **Vault Save/Load** → persist a generated `prompt_json` under `ComfyUI/user/identity_forge/`.
|
||||
The frontend's list/preview/delete/rename routes are registered by `_register_vault_routes()`
|
||||
in `__init__.py`. Path safety is `sanitize_name` + `_entry_dir` (resolve, then require the
|
||||
in `__init__.py`; `_register_roll_route()` beside it adds the read-only
|
||||
`POST /identity_forge/roll` behind the main node's "Roll + lock all" button (1.7.0). Path safety is `sanitize_name` + `_entry_dir` (resolve, then require the
|
||||
parent to *be* the vault root), which blocks `..` and absolute-path escapes. **0.72.0 added a
|
||||
content-type check on the two mutating routes**: `request.json()` parses any body regardless of
|
||||
content type, and a `text/plain` POST is a CORS-*simple* request a browser sends cross-origin
|
||||
@@ -538,7 +540,14 @@ list; the working principles at the top of this file also apply):
|
||||
images are keyed on the entry name, so a rename must also move the file on
|
||||
`gh-pages` and rename the key in `gallery/render_manifest.json`. The `entry_hash`
|
||||
covers the entry *dict*, not the key, so no re-render is needed.
|
||||
7. **Validate before commit.** Run `python tests/validate_data.py`, the unittest suite, and
|
||||
7. **Ethnicity only in Full mode.** A natural human skin tone (anything in the `skin_tone`
|
||||
pool: fair, olive, tan, brown...) is ethnicity's proxy. It lives only in `physique` (Full
|
||||
character) -- never in `signature`, a `skin` key or costume prose, all of which render in
|
||||
Costume only too. A *stylized or supernatural* pallor that is the character's look
|
||||
(vampires, the Endless, aliens) may stay in the costume, using the skin-native wording
|
||||
from rule 5. `EthnicityOnlyInFullModeTests` enforces it for every cosplayer and archetype;
|
||||
a pallor that must stay goes in its `_STYLIZED_PALLOR_OK` allowlist with a reason.
|
||||
8. **Validate before commit.** Run `python tests/validate_data.py`, the unittest suite, and
|
||||
`python scripts/generate_reference_docs.py`, and commit the refreshed reference index.
|
||||
|
||||
#### Judgement calls that keep recurring
|
||||
@@ -867,6 +876,18 @@ underneath to randomize; that also closes the costume-asserts-a-body-trait probl
|
||||
`eyes` and `costumes` alternates are rejected by `validate_data.py`: a beast has no
|
||||
hand for a prop, its colour is its integument, and a body plan is not a look.
|
||||
|
||||
**Non-humanoid machines take this path too (2.1.0).** `R2-D2`, `BB-8` and `Gonk Droid`
|
||||
shipped as suit entries and the gallery drew a man posing *beside* the droid: a famous
|
||||
name makes the model draw the machine as an object, and "a short man ... wears a ...
|
||||
droid body" then adds a person next to it. As feral entries all three rendered as the
|
||||
droid alone on the first try. The test is the body plan, not "beast or machine": no
|
||||
human limbs in the right places (a ball, a three-legged can, a box on legs) means feral;
|
||||
a humanoid robot (C-3PO, Bender, Megatron) stays a suit entry with `covers_body`. They
|
||||
use `creature_class: "Machines"`, a cosplay-only class `validate_data.py` accepts beside
|
||||
`CREATURE_CLASSES` (it only decides the "monstrous" adjective, and a generic creature
|
||||
never needs it). The look level does not switch a machine back to a person in costume:
|
||||
that reading is the render that failed.
|
||||
|
||||
**Prose framing.** A feral subject does **not** take the `Cosplaying as X:` prefix —
|
||||
that framing tells a t2i model to render a human in a suit, which is precisely the
|
||||
failure the path exists to fix. The label is apposed instead: *"Appa (Avatar: The Last
|
||||
@@ -985,6 +1006,9 @@ User additions are first-class (0.46.1):
|
||||
after any schema change. `--check` is CI-enforced.
|
||||
- **CI:** `.github/workflows/ci.yml` runs `validate_data.py`, the unittest suite, all three
|
||||
`--check` generators, and (in a separate job) the frontend jsdom suite on every push/PR.
|
||||
Since 1.8.0 it is callable (`workflow_call`), every job has a 30-minute cap, a Windows leg
|
||||
runs the suite with autocrlf off, and `publish_action.yml` runs it first: `publish-node`
|
||||
`needs: ci`, with no new write scope.
|
||||
|
||||
### Frontend smoke tests
|
||||
|
||||
@@ -1039,6 +1063,16 @@ checked-in workflows and drag-dropped onto `update_gallery.bat`, and nothing any
|
||||
when that was forgotten. Adding an entry is now: write it → `--missing --publish` → done, and
|
||||
forgetting turns the build red.
|
||||
|
||||
**Since 2.0.0 the hash covers the resolved prose, not the entry dict** (`entry_hash` in
|
||||
`scripts/render_gallery.py`). An engine or pool change that rewrites an entry's prompt now
|
||||
marks its image stale, so a release can no longer leave a published tile that does not match
|
||||
what the node emits. Sections below that call `entry_hash` blind to prose-only changes
|
||||
describe the pre-2.0.0 gate; the reasoning they record (avoid needless gallery churn) still
|
||||
holds, but the gate now reports that churn instead of hiding it. When the churn is accepted
|
||||
on purpose (a release-wide prose change that leaves every entry's own look alone, as 2.0.0
|
||||
did), `render_gallery.py --rehash` records the current hash for every existing record and
|
||||
renders nothing; re-render any entry whose own text changed first.
|
||||
|
||||
**Prompts are resolved in-process, and the posted graph contains none of this pack's nodes.**
|
||||
This is the load-bearing design decision, so it is worth stating why the obvious approach does
|
||||
not work. An entry name is a **dropdown widget value** on `IdentityForgeCosplayer` /
|
||||
@@ -1139,6 +1173,17 @@ sees anything. Serialization order and visual order are already decoupled; the a
|
||||
just uses that fact. So `tattoos` sits in Body and `legwear` in Clothing on screen while
|
||||
living at the end of the dict on disk.
|
||||
|
||||
**1.8.0: the saved array is in schema order.** Until 1.8.0 the claim above held only for the
|
||||
*meaning* of the order: the array was written in display order, interleaved with the buttons
|
||||
and headers the JS adds, which a tool without a browser (a headless workflow validator) cannot
|
||||
map to the schema. `IdentityForge`, `IdentityForgeCreature` and `IdentityForgeCosplayer` now
|
||||
snapshot the schema widgets before reordering, write `widgets_values` from that snapshot in
|
||||
`onSerialize`, and mark the save with `properties.if_widget_order = "schema"`. A load that
|
||||
sees the marker expands the array into display order (a field appended in a later release
|
||||
takes its default) and skips the legacy padding; an unmarked, pre-1.8.0 save takes the
|
||||
legacy path unchanged. `franchise_filter` is no longer written, as its tooltip always said.
|
||||
The Nodes 2.0 renderer draws in array order, so the widgets themselves are not moved.
|
||||
|
||||
Proved against the real thing rather than argued: the running pre-0.90.0 instance
|
||||
reports 74 widgets, the new schema 77, and the first 74 names match index for index.
|
||||
|
||||
@@ -2141,7 +2186,7 @@ those the mask is an *alternate* costume. Honouring `locked_clean` would render
|
||||
buns under the Boushh helmet — a regression wearing a fix's clothes.
|
||||
|
||||
So `generate_character` takes a keyword-only **`widget_locked: frozenset[str] | None`**, built
|
||||
in `execute` straight from `kwargs` (a field whose widget is not `"Random"`). The rule both
|
||||
in `run_identity_forge` (the body of `execute`) straight from `kwargs` (a field whose widget is not `"Random"`). The rule both
|
||||
blocks now share is one sentence: **the mask hides the face; only your own widget overrides
|
||||
it.** `_CONCEALED_FACE_SOFT_FIELDS` was narrowed from `locked_clean` to the same set so there
|
||||
is a single semantic — verified a no-op on shipped data (`Harley Quinn` is the only entry
|
||||
@@ -2241,7 +2286,8 @@ signature prop occupies a hand. One more generated rule excludes the environment
|
||||
Identity Forge with owning it. Two variants, `looking directly into the camera` and
|
||||
`looking off past the camera`, were grown into the existing `looking` `POSE_FAMILIES` entry in
|
||||
place (family weight unchanged, 5 -> 7 variants) — the documented bias-safe channel, not a new
|
||||
family and not a re-weight.
|
||||
family and not a re-weight. (2.0.0 moved the whole `looking` family out of `pose` into its own
|
||||
`gaze` field; see "pose and gaze draw last".)
|
||||
|
||||
**On the Stylebook pairing itself: docs and tooltips only, no default change.** `lighting` and
|
||||
`mood` keep defaulting to `Random` — most users run this pack standalone, and `lighting` in
|
||||
@@ -2368,8 +2414,8 @@ README gets a short "Using with Stylebook" section mirroring Stylebook's own, an
|
||||
**It is deliberately scoped to keys that carry a `(...)` disambiguator**, which is what the
|
||||
0.77.0 rule is about. It does *not* touch an eponymous key whose franchise repeats it —
|
||||
`Shrek (Shrek)`, `Godzilla (Godzilla)`, `Sterling Archer (Archer)`. Broadening it there is a
|
||||
one-line change that rewrites **91 more entries' prose**, and because `entry_hash` hashes the
|
||||
entry dict and cannot see a prose-only change, the gate would *not* flag them — 91 published
|
||||
one-line change that rewrites **91 more entries' prose**, and because `entry_hash` hashed the
|
||||
entry dict and could not see a prose-only change (until 2.0.0), the gate would *not* flag them — 91 published
|
||||
gallery images would silently stop matching their prompt. That is a separate decision with a
|
||||
real re-render bill, not a side effect, and `test_the_rule_is_scoped_to_disambiguated_keys_only`
|
||||
pins it so it is not "tidied up" by accident.
|
||||
@@ -2774,8 +2820,8 @@ README gets a short "Using with Stylebook" section mirroring Stylebook's own, an
|
||||
head to the body's material with a **colour-free** word (`waxen`, `furred to the jaw`, `sheathed
|
||||
in the same warty hide`, `framed in the same shaggy fur`). Never name a colour in a slot — the
|
||||
slots are colour-free precisely so `palette` can recolour them. An engine-side restatement
|
||||
would also have silently invalidated ~189 published gallery images, because `entry_hash` hashes
|
||||
the entry dict and cannot see a prose-only change.
|
||||
would also have invalidated ~189 published gallery images (before 2.0.0 silently, because
|
||||
`entry_hash` hashed the entry dict; it now hashes the prose and would flag them).
|
||||
|
||||
### A hand-maintained mirror needs a bidirectional gate (1.2.0)
|
||||
|
||||
@@ -2920,8 +2966,8 @@ measure the realized rate, and measure it after every dial you turn.
|
||||
|
||||
The female pool is deliberately **not** gated. `fishnet tights` can still land on
|
||||
`business formal`, which is a genuine gap — but gating it moves `legwear` prose across the
|
||||
shipped roster and `entry_hash` hashes the entry dict, not the resolved prose, so `--check`
|
||||
could not flag one invalidated gallery image. Logged in the backlog with that cost. Proven
|
||||
shipped roster and `entry_hash` then hashed the entry dict, not the resolved prose, so `--check`
|
||||
could not flag one invalidated gallery image (it can since 2.0.0). Logged in the backlog with that cost. Proven
|
||||
rather than asserted: over 1500 fixed seeds with only the legwear change reverted, **0
|
||||
female draws differ**.
|
||||
|
||||
@@ -3066,6 +3112,10 @@ different pose *and* different tattoos/legwear — silently invalidating every p
|
||||
image exactly as the 0.90.0 prose change did, with `entry_hash` unable to flag it. That is the
|
||||
same append-only reasoning `_DEFERRED_FIELDS` itself documents, applied to its own remedy.
|
||||
|
||||
**Superseded at 2.0.0** (the seed-epoch release, where moving a draw was allowed): `pose` is
|
||||
now drawn last, after the deferred fields, by `_draw_pose_and_gaze`; see "pose and gaze draw
|
||||
last" below. The 0.92.0 design, kept for the record:
|
||||
|
||||
`_repair_pose` instead runs at the very end of the draw order, after
|
||||
`_resolve_deferred_fields`, and **consumes no RNG unless the pose is genuinely unperformable** —
|
||||
the pool-membership test is free. A seed only changes when its pose was already wrong, and even
|
||||
@@ -3429,7 +3479,11 @@ workflow loading.
|
||||
JSON array tagging every entry with a `kind` discriminator (`cosplayer` / `archetype` /
|
||||
`creature`) and a precomputed, lowercased `haystack` string (name + franchise/category + costume
|
||||
prose + derived trait words such as `masked`, `mascot`, `feral`, `giant`, `tiny`) for
|
||||
substring/keyword search. Search is case-insensitive substring matching with multi-word tokens
|
||||
substring/keyword search. Cosplayer entries also carry a structured `traits` list (`giant`,
|
||||
`tiny`, `masked`, `mascot`, `beast`, `nonhuman`) that the **trait facets read instead of the prose**
|
||||
(a substring test over costume text put Poison Ivy's "tiny leaves" under Tiny);
|
||||
`tests/test_js_sync.py::RosterTraitsMatchBackendScopes` pins it to the Cosplayer node's scope
|
||||
predicates. Search is the text half; facets are the flag half. Search is case-insensitive substring matching with multi-word tokens
|
||||
AND'd (order-independent), **filtered within the active tab** — the "All" tab is what searches
|
||||
every kind at once, and the trait facet composes on top of both. This replaced the original
|
||||
"a query spans every tab, tabs only apply to an empty box" rule, which meant a user who had
|
||||
@@ -3488,6 +3542,104 @@ platform behaviour (gating the trigger on `node.flags.ghost`, and padding one in
|
||||
`widgets_values` element to dodge the length collision) rather than by touching the platform
|
||||
itself.
|
||||
|
||||
### pose and gaze draw last (2.0.0)
|
||||
|
||||
`pose` and the new `gaze` field are drawn by `_draw_pose_and_gaze`, after the deferred fields
|
||||
and the composed outfit, so every gate they need (a generated garment, the framing, the
|
||||
expression, a held prop) is settled before they draw. `gaze` is the former `looking` family of
|
||||
`pose`, moved into its own widget so a character can stand one way and look another.
|
||||
|
||||
- **Unlike a `_DEFERRED_FIELDS` member, their rules are live.** The draw filters both pools
|
||||
through `_live_exclusions`, so a `CONSTRAINT_RULES` entry naming `pose` or `gaze` as its
|
||||
target works, and the final-state invariant test covers them. The from-behind, selfie,
|
||||
social-gesture and expression rules for `gaze` sit in one block near the end of
|
||||
`constraints.py`.
|
||||
- **A lock steers the draw before it, too.** `_values_that_exclude` drops any pose whose rule
|
||||
would exclude an already-locked gaze (the contrapositive the main loop does for other
|
||||
fields), so a locked "glancing back" never draws "walking toward the camera".
|
||||
- **A feral subject draws no gaze.** A beast has no eye-contact convention worth voicing.
|
||||
- **An old save that locked a `looking` pose** migrates: `generate_character` moves a pose
|
||||
lock whose value is a gaze value into the `gaze` lock. The widget append rule is the usual
|
||||
one (see "Adding a field without breaking saved workflows"); `FIELDS_ADDED_BY_RELEASE` in
|
||||
`js/identity_forge.js` lists `gaze` for the legacy pre-1.8.0 interleaved saves.
|
||||
- **Prose:** the gaze follows the pose and any held item in one clause ("She is leaning
|
||||
against a wall, holding a mug, looking off past the camera.").
|
||||
- **Turnaround / Expression Sheet:** a Turnaround that pins the stance states no gaze (each
|
||||
view's camera decides where the head points). The Expression Sheet keeps the character's
|
||||
gaze by default and offers a `gaze` input to hold one across every view.
|
||||
|
||||
There is no closed-eye gate because no `expression` value closes the eyes; add one beside
|
||||
the gaze block if such a value is ever added.
|
||||
|
||||
### Per-garment variation slots (2.0.0)
|
||||
|
||||
An `OUTFIT_DESCRIPTIONS` phrase may carry `{slot}` placeholders drawn from `COSTUME_SLOTS`
|
||||
(`data/templates.py`), reusing the cosplayer `fill_costume` machinery, so one phrase covers
|
||||
several cuts or weights without growing the corpus or adding a widget. The first users are
|
||||
the thinnest style x gender cells (preppy, business casual, athletic, utility workwear).
|
||||
|
||||
- **Own seed stream.** `_resolve_outfit_description` fills slots from
|
||||
`random.Random(f"{seed}:garment-slots")`, so a phrase gaining a slot in a later release
|
||||
moves only that phrase's words, never another field's draw. That is what "the slot draw
|
||||
goes last" means here. `GarmentSlotTests` proves it by swapping the stream and diffing.
|
||||
- **Gates still apply per value.** `fill_costume(keep=...)` narrows each pool to the values
|
||||
whose filled phrase passes the season gate and, at 45+, the youthful-garment gate (no mini
|
||||
skirt). A pool the gate would empty is used whole.
|
||||
- **Words that the frame cannot show.** `LENGTH_SLOTS` values (a skirt length) are dropped
|
||||
from the prose of a generated outfit in a leg-cropping framing; the JSON keeps them, as it
|
||||
keeps cropped shoes.
|
||||
- **validate_data.py enforces the contract:** a corpus slot must be a `COSTUME_SLOTS` pool
|
||||
whose name has an underscore (so no word-boundary garment regex reads the placeholder), no
|
||||
value may name a colour or pattern, and every garment guard (fabric, layer, outer/light
|
||||
layer, warm-only, bare-top) must answer the same for each value of a pool, so the slot draw
|
||||
cannot flip a guard. The cold-only regex is exempt because the season gate filters by it.
|
||||
|
||||
### Turnaround back views: `costume_back` (2.0.0)
|
||||
|
||||
A cosplayer entry may carry an optional `costume_back` string: the costume as seen from
|
||||
behind (the cape, the back emblem) with any front-only detail left out. The Turnaround's
|
||||
back and rear-three-quarter views swap it in for the entry's `costume` text
|
||||
(`back_costume_document` in `nodes/identity_forge_turnaround.py`, looked up through
|
||||
`_meta.cosplay_of`); every other view and every entry without one is unchanged. It is
|
||||
opt-in per entry rather than parsed from the front text, which is the regex-over-prose
|
||||
trap. validate_data.py requires a non-empty string on a non-feral entry that has a
|
||||
`costume`.
|
||||
|
||||
### The lead noun: `subject` (2.1.0)
|
||||
|
||||
The first sentence names what the image is of: "a short man with a stocky build". A
|
||||
non-human face voiced only in a later sentence (the mask, or `eyes`) loses to that noun.
|
||||
Every Tellarite render drew a bearded man in a tunic with no snout, and many mascots drew
|
||||
a person holding a plush of the character. An optional `subject` string replaces
|
||||
"man"/"woman" in that lead phrase: "a short pig-headed humanoid alien with a stocky
|
||||
build", "a life-size Pikachu mascot".
|
||||
|
||||
* It is a bare noun phrase: no article, no trailing punctuation. The engine supplies the
|
||||
article and the height and build words around it.
|
||||
* It travels as `_SUBJECT_NOUN_KEY` beside the mask and is written to the JSON `_meta`, so
|
||||
a vault reload keeps it. It is in `_COSTUME_META_KEYS`, so a downstream costume drops
|
||||
it, like the mask.
|
||||
* The cosplayer node leaves it out on unmask, because the person underneath then shows.
|
||||
It is rejected on a feral entry, which already leads with `creature_of`.
|
||||
* Use it when the face is the identity and is not human (aliens, skull heads, animal
|
||||
heads that rendered as a person) and for a mascot that rendered as a person beside a
|
||||
plush ("life-size X mascot"). Give it only after a before/after render shows a gain.
|
||||
* A face that still loses with the noun often wins as a **"full-head latex ... mask"** in
|
||||
the mask text (Tellarite, Red Skull): the model knows that object, while a bare "skull-
|
||||
like face" rendered a plain man.
|
||||
* Known limit: a single eye. The model draws one eye only in a short prompt about nothing
|
||||
else; the character name or a full-length prompt brings back two (Allen the Alien, Leela).
|
||||
See docs/history.md -> "2.1.0" for the trials.
|
||||
|
||||
### Weighted alternate looks: `costume_weights` (2.1.0)
|
||||
|
||||
`_pick_look` picks among the canonical `costume` and its `costumes` alternates with a
|
||||
plain `rng.choice`. An optional `costume_weights` list (one positive number per look,
|
||||
canonical first) switches that entry to `rng.choices` with those weights, so the
|
||||
best-known look can lead (Orion: the TOS dancer 2, Gaila's cadet uniform 1). An entry
|
||||
without the key keeps the one `rng.choice` call it always made, so no existing seed
|
||||
moves. validate_data.py checks the length against the look count.
|
||||
|
||||
## Release history
|
||||
|
||||
Per-release investigation notes (measured numbers, what was tried, what was declined)
|
||||
|
||||
@@ -29,7 +29,11 @@ visible face like Hulk).
|
||||
The node's **`mask`** widget controls this per render: **Default** keeps the mask
|
||||
on, while **Unmask (show face)** drops the mask *and* clears `covers_face`,
|
||||
so the randomized head/hair shows under the suit — a helmet-off look (Tony Stark in
|
||||
the Iron Man armor). It is a no-op for face-visible characters. Keeping the head
|
||||
the Iron Man armor). It is a no-op for face-visible characters, and for feral
|
||||
entries (beasts and non-humanoid droids such as R2-D2): there is no person inside,
|
||||
and a human head on a droid body is the render the feral route exists to prevent. A
|
||||
humanoid robot on the suit route (C-3PO, Lumiere) does unmask, as a cosplayer with the
|
||||
helmet off. Keeping the head
|
||||
covering in its own field is what lets it be removed cleanly, with no stray
|
||||
"faceplate" reference stranded in the costume prose.
|
||||
|
||||
|
||||
+674
@@ -812,3 +812,677 @@ requests. `README.md`: the Stylebook pairing section said `prose`, the actual ou
|
||||
`prompt_text`; a note that a seed reproduces a character only within one installed version (a
|
||||
release can change pools/weights/rules), and that Vault Save/Load is how to keep a specific
|
||||
character across updates.
|
||||
|
||||
## 1.6.0 — content only: field values, the outfit corpus and new archetypes
|
||||
|
||||
A review mined third-party wildcard packs (DGirls, TheLook, a hairstyle list, an expression
|
||||
list, a nested natural-language pack) for gaps. Most of what they offer already ships: the
|
||||
locations include the landmarks, the hairstyle lists are mostly length x texture x colour (which
|
||||
the engine composes from separate fields), and much of the rest is glamour or NSFW. What was a
|
||||
real gap shipped; the engine and UX findings from the same review are the 1.7.0 backlog in
|
||||
`docs/suggested-additions.md`. Shares below are from 2,000 seeds per gender.
|
||||
|
||||
**Bias rules applied to every addition.** New values carry the same weight for every
|
||||
presentation (no `male_weights` on emotions or gestures). New hair colours join existing
|
||||
families, so `_bias_hair_color` weights them by ethnicity automatically; `burgundy` is a dye and
|
||||
joined `vivid`, so it draws only under Full spectrum or a lock. New braids joined `braid_short`
|
||||
and inherit `_AFRO_BRAIDS` and the texture gates. New archetypes lock no `skin_tone`, and the
|
||||
skin locks on `Korean Hanbok`, `Chinese Qipao` and `Vietnamese Ao Dai` were removed: in Full
|
||||
preset they pinned the palest tones of the ethnicity's band (Ao Dai's `fair` sat outside it), and
|
||||
unlocked, `_bias_skin_tone` draws the band's whole range. Essentials (the default) already drops
|
||||
ethnicity and skin, so a cultural look goes on anyone there.
|
||||
|
||||
**Weather is a `lighting` family, not a field or a location variant.** Lighting already owned
|
||||
hour, weather and light, and a separate field would need a widget, the JS legacy repair, and a
|
||||
rule against every sunny lighting value. Weather-in-location multiplies places x weather and
|
||||
dilutes each place. Two new families: `weather` (light rain, a fine drizzle, low fog) and
|
||||
`snowfall`. They are outdoor-only, rain and fog skip arid places and the two sun-named places,
|
||||
snow joins `_WINTER_LIGHTING` (so it forces winter, and a locked snow with a random season
|
||||
resolves to winter) and stays off `_NO_SNOW_PLACES`, and all four exclude sunglasses. `weather`
|
||||
is priced at three quarters of the window/artificial rate because the full rate put weather on
|
||||
about 12% of outdoor renders; it now lands on 9–11%, snow on well under 1%.
|
||||
|
||||
**Expression.** A new `troubled` family (teary-eyed, frowning, worried, anxious, heartbroken):
|
||||
the heavy mood is about 22% of renders but had three faces to wear it. It denies the positive,
|
||||
calm and bold moods, its faces are closed-mouth, and it lands on about 7–8% of both genders.
|
||||
`playful` gained winking, pouting and deadpan; `reactive` gained wide-eyed with shock, startled,
|
||||
bewildered and flustered (both Mode A, family share unchanged). Two values were renamed before
|
||||
shipping because the prose templates read them badly: `deadpan stare` became `deadpan` ("Her
|
||||
expression is deadpan") and `hands clasped behind the head` became `clasping both hands behind
|
||||
the head` ("He is clasping ...").
|
||||
|
||||
**Pose.** Weights rescaled x2 so the grown families divide evenly (no change to relative
|
||||
shares). New: `gesture_social` (peace sign, thumbs up, waving, finger heart), priced below the
|
||||
gesture rate and about 1.5% of renders, excluded by sad faces, heavy and enigmatic moods and an
|
||||
extreme close-up. "Lost in thought" and "daydreaming" no longer draw "looking directly into the
|
||||
camera" (the cheap part of the gaze idea; the field itself is deferred). Floor poses gained
|
||||
seiza and side-saddle; side-saddle is trimmed from masculine presentation.
|
||||
|
||||
**Hair.** `faux hawk` grows `barbered_short` in place; `mohawk` is its own family at a quarter
|
||||
of the everyday rate (about 0.6%), so the formal-dress and age-55+ gates drop it whole.
|
||||
`hair_highlights` gained babylights, grown-out roots and a skunk stripe, and its first
|
||||
`weights` entry holds the stripe to about 1.4% of women and 0.1% of men.
|
||||
|
||||
**Outfits.** The corpus gained entries filling the thinnest cells first (cocktail, evening,
|
||||
business-formal and bohemian unisex; edgy and bohemian menswear), plus the shapes the corpus
|
||||
had none of: ruffles, puff sleeves, Bardot and square necks, a cowl-neck slip, a corset top with
|
||||
jeans, a bow-neck blouse. Pyjamas are `loungewear`, which is already limited to homes, hotel
|
||||
suites, a hospital room and an airplane aisle; onesies and kigurumi were skipped as costume.
|
||||
|
||||
**Archetypes.** Metalhead; Wedding Groom (with four alternate gowns for Bridal Portrait,
|
||||
append-only so existing seeds keep the original); Lehenga & Sherwani (the
|
||||
sherwani half of the 1.5.0 "Saree + Sherwani" request); RCMP Mountie; Royal Guard; Evzone Guard (male, like
|
||||
the real guard); Yukata (summer-locked, distinct from Geisha); Hanfu (distinct
|
||||
from the qipao); Kebaya; Muay Thai Fighter (age and a standing pose locked, since both
|
||||
survive Essentials); Dressage Rider; Fly-Fishing Angler; Highwayman. Metal slots were fixed to
|
||||
gold or silver where the garment is only ever made in those (zari thread, a topknot crown).
|
||||
Garment looks are named for the garment (Yukata, not Japanese Yukata): Essentials, the
|
||||
default, puts the look on anyone, and the picker still finds them by ethnicity. Shipped names
|
||||
keep their prefix, since nothing maps a renamed archetype for saved workflows.
|
||||
|
||||
**Declined:** see `docs/suggested-additions.md` → "Field options — declined (1.6.0)".
|
||||
|
||||
## 1.7.0 — engine and UX fixes from the 1.6.0 review
|
||||
|
||||
Five fixes the 1.6.0 review queued. None of them moves a draw, so a seed resolves the same
|
||||
values as on 1.6.0; the prose wording changes where noted.
|
||||
|
||||
**"Roll + lock all" locks one engine roll.** The button used to pick each dropdown uniformly
|
||||
in JS. A lock beats a guard, so the engine kept every pick, clashes included: over 50 such
|
||||
rolls the engine logged 799 lock conflicts ("waist length" hair locked beside a quiff). The
|
||||
button now posts the node's widgets and a fresh seed to `POST /identity_forge/roll`, which runs
|
||||
the node's own path (`run_identity_forge`, factored out of `execute`) and returns every resolved
|
||||
field. Each `Random` field locks to that value, and a field the run left absent locks to `None`.
|
||||
The same 50 rolls log one conflict, and a test pins that re-running a locked roll reproduces it
|
||||
field for field. The route is read-only and shares the vault routes' JSON content-type check.
|
||||
Without it (an older server) the button falls back to the uniform pick and warns in the console.
|
||||
|
||||
**A framing that crops the feet no longer names the shoes.** Extreme close-up through cowboy
|
||||
shot (`_FEET_OUT_OF_FRAME_SHOTS`) drop the footwear clause from the prose; full-body framings
|
||||
keep it. The JSON keeps `footwear` in its `outfit_description`, because a Turnaround or Vault
|
||||
replay reads the shoes from there and may re-frame to full body. Turnaround's composed shot
|
||||
("medium shot from waist up, side profile") matches on its distance half. Footwear the user
|
||||
locked on the widget is still voiced; a wired lock is not, because a Vault Load replay wires
|
||||
every field back in (and hands the outfit back as a costume, whose path pops `footwear`), and
|
||||
a test pins that a same-shot replay reproduces the trimmed prose. Measured: from about 14% of
|
||||
tight framings to none.
|
||||
|
||||
**Hair reads as prose.** Every noun style now gets a connector, as the gathered styles already
|
||||
had since 1.5.3: "worn in a fade", "worn in a French braid", "with curtain bangs", "with a wet
|
||||
look". Styles that are already predicates ("worn down", "slicked back") keep their words, and a
|
||||
free-text style outside the families is voiced as written. The two noun lengths go last behind
|
||||
an article ("a sleek straight dark brown chin length bob"). Before, about 58% of hair sentences
|
||||
ended in a bare noun ("hair is very short loosely curled jet black, fade"); now none do.
|
||||
|
||||
**A footwear or legwear modifier reaches a generated outfit.** The composed `outfit_description`
|
||||
voices those values verbatim, but `_apply_modifiers` decorated only the field, so the prose
|
||||
showed the plain shoes. The decorated value now replaces its last whole-phrase occurrence in the
|
||||
composed outfit. Colour and pattern are rewritten when composed, so they are left as a backlog
|
||||
item. The Modifier node's help example used group keys (`Makeup`, `Setting & Shot`) that
|
||||
decorate every field in the group, staging fields included ("galaxy-glitter smiling"); it now
|
||||
shows field keys and says what a group key does.
|
||||
|
||||
**`generate_character` is keyword-only from `widget_locked`.** It was documented so, but had
|
||||
no `*`, and `execute` passes the parameters before it positionally: one inserted mid-signature
|
||||
would silently shift every argument after it.
|
||||
|
||||
## 1.8.0 — facets read flags, ethnicity locks only in Full, `subject_text`, and a reachability gate
|
||||
|
||||
**Picker trait facets read structured flags, not prose.** The Tiny / Giant / Masked / Mascot /
|
||||
Non-human / Beast facets matched words in the costume, so Poison Ivy ("tiny leaves") showed as
|
||||
Tiny and a green-skinned human as Non-human. `scripts/generate_js_data.py` now emits a `traits`
|
||||
list per cosplayer, computed from the same data the backend's `_SPECIAL_SCOPES` predicates read
|
||||
(`size_scale`, `covers_face`, `covers_body`, `mask`, `body_plan`, the body-paint marker).
|
||||
`RosterTraitsMatchBackendScopes` compares the committed roster's traits with those predicates, so
|
||||
the picker and the Random scope cannot disagree. Facets apply to cosplayers only; archetypes and
|
||||
creatures carry no traits.
|
||||
|
||||
**Ethnicity and skin tone lock only in Full character / Full preset.** A signature `skin_tone`
|
||||
and costume prose that named a natural skin tone ("over fair skin") locked both under Essentials,
|
||||
which promises a Costume-only lock. They moved to `physique` (Full only) or out of the prose;
|
||||
Essentials archetypes no longer keep `skin_tone` from the Body group. Stylized or supernatural
|
||||
pallors (Kratos, Dream of the Endless, a Ferengi and similar) stay in the costume and are listed,
|
||||
each with its reason, in `_STYLIZED_PALLOR_OK` in `tests/test_engine.py`. The regex sweep over
|
||||
costume prose is the test that keeps new entries honest.
|
||||
|
||||
**`subject_text` output.** A new last output: the person and their outfit, with no pose, smile or
|
||||
scene, so it can feed a prompt that has its own scene. The prose output is byte-identical with
|
||||
and without it (200 seeds pinned). Shoes stay on close-ups, unlike the prose; the cosplay label
|
||||
stays.
|
||||
|
||||
**Colour and pattern modifiers reach a generated outfit.** `_compose_outfit_clause` records the
|
||||
hue and pattern adjective it voiced; `_apply_modifiers` decorates that word, with the right
|
||||
article ("an emerald" becomes "a faded emerald"). A group key still decorates as before.
|
||||
|
||||
**Roster.** New cosplayers: Megamind, Alita with a Motorball alternate, Sesshomaru, Raya,
|
||||
Barbie with the pink cowboy and 1959 swimsuit looks, Minion, and Lord Fanny and Ragged Robin
|
||||
(The Invisibles, a new franchise in the DC category; Ragged Robin's Volume 2 leather look is
|
||||
an alternate). Effie Trinket was rewritten rather than duplicated: the Reaping look is the
|
||||
primary and the Catching Fire liquid-gold look the alternate; the unverified grey Mockingjay
|
||||
alternate was dropped. "Julia Carpenter" and "Spider-Woman (Julia Carpenter)" were one
|
||||
character listed twice, so they are now one entry with the classic suit as an alternate
|
||||
(a saved workflow naming "Julia Carpenter" falls back to a random pick). Three archetypes
|
||||
(American Football Player, Scuba Diver, Thai Classical Dancer) and one creature
|
||||
(stegosaurus). Canon was written from knowledge plus the maintainer's hooks, not from reference
|
||||
images. Anxiety was declined (see `docs/suggested-additions.md`).
|
||||
The football archetype is gated to the two park locations because no stadium location exists;
|
||||
adding one is a field-value change and was left out.
|
||||
|
||||
**Reachability.** Every value in a field pool that no gender draws under default widgets is now
|
||||
listed by `python scripts/sweep_marginals.py --unreachable` and must match
|
||||
`tests/fixtures/unreachable_by_design.json`, each with a reason: the control widgets, the vivid
|
||||
hair colours (Natural scope), `bleached` eyebrows (Full spectrum), the four studio backdrops
|
||||
(Studio setting), `thin headband` (removed for men in 1.5.0) and `behind one ear` (lock-only
|
||||
since 1.5.1). `test_sweep_marginals` fails on a new accidental gate and on a stale exception.
|
||||
A value only one gender draws is a gendered coherence filter, so it is not listed.
|
||||
|
||||
**Coherence checklist for this release.** Items 1-6 were run for each new value, phrase and
|
||||
entry. Hidden items: the football helmet is held, the dive mask is pushed up on the forehead and
|
||||
the fins are on the feet (full-body framing only). Masculine defaults: the wetsuit and the pads
|
||||
read for either gender, so no single-gender costume ships without variants. Gating: the sweep
|
||||
baseline did not move (`--check` clean at 4,000 seeds per gender), and `ethnicity` and
|
||||
`skin_tone` stay flat across genders in `--report`. The Random cosplayer pick stays uniform; the
|
||||
roster only grew.
|
||||
|
||||
**Saved widget order readable without a browser.** ComfyUI writes `widgets_values` positionally,
|
||||
one entry per `node.widgets` item, buttons included. `IdentityForge` and `IdentityForgeCreature`
|
||||
re-sort their widgets under headers and `IdentityForgeCosplayer` splices `franchise_filter` in
|
||||
after `character`, so a headless tool mapped the array onto the wrong inputs. Each now saves the
|
||||
schema widgets only, marks the save `properties.if_widget_order = "schema"`, and expands a marked
|
||||
save back into display order on load; unmarked (pre-1.8.0) saves take the legacy path unchanged.
|
||||
Read in the installed frontend bundle rather than assumed: a widget added with
|
||||
`{serialize: false}` carries it in `options` only, so it still takes a positional slot, and
|
||||
restoration indexes `widgets_values` over every such widget. The jsdom suite pins serialize,
|
||||
round trip, a pre-1.8.0 interleaved save, and a marked save one field short. **Not run live:**
|
||||
the server loads a separate installed copy of the pack, so the Playwright check in both
|
||||
renderers is left for the maintainer after pulling the branch there.
|
||||
|
||||
**CI.** `ci.yml` is callable, every job has a 30-minute cap, and a Windows leg runs the suite
|
||||
with autocrlf off. `publish_action.yml` runs it first and `publish-node` needs it, with no new
|
||||
write scope.
|
||||
|
||||
## 1.9.0 - independent-comics curation and maintenance
|
||||
|
||||
**Canon before supplied AI descriptions.** Mervyn Pumpkinhead uses the comic look in
|
||||
[Todd Klein's published panel](https://kleinletters.com/LetteringImages/MervP.jpg):
|
||||
orange carved pumpkin head, a thin scarecrow frame, white shirt, denim bib overalls,
|
||||
green bow tie and work gloves. The optional broom is supported by
|
||||
[Netflix's character reference](https://www.netflix.com/tudum/articles/the-sandman-merv-pumpkinhead-mark-hamill-clip).
|
||||
He is human-scale, not a giant, and the pumpkin head and wooden body use the existing
|
||||
head/body concealment flags. `Merv Pumpkinhead` is an alias, not a duplicate entry.
|
||||
|
||||
Prince Robot IV earns the Saga entry on the television head and cavalry uniform,
|
||||
shown together on [Fiona Staples' Saga #12 cover](https://imagecomics.com/comics/releases/saga-12).
|
||||
Its screen can show color bars; an extra held gun would misrepresent the character's
|
||||
transforming hand, so none was invented. The worn military look and artificial head
|
||||
remain separate for Unmask.
|
||||
|
||||
Crow's look follows [Nick Dragotta's original drawing](https://www.2dgalleries.com/art/crow-from-east-of-west-93778?lang=en)
|
||||
and [Image's free East of West #1](https://imagecomics.com/read/east-of-west):
|
||||
ink-black skin, extremely long white hair, an ivory marking across the eyes, a
|
||||
layered pale collar and necklaces, pale arm bands, white loin panels and boots.
|
||||
The supplied black face wrap and striped tactical bodysuit were not supported by
|
||||
that artwork. Her optional props are paired short knives; no permanent magic aura
|
||||
was invented. She files under `East of West`, separate from Eric Draven's `The Crow`.
|
||||
|
||||
Bloodshot uses [Barry Windsor-Smith's classic omnibus cover](https://valiantentertainment.com/comics/bloodshot/bloodshot-classic-omnibus-vol-1-hc/):
|
||||
paper-white skin, red eyes, short black hair with a white temple streak, an open
|
||||
shell-loaded dark vest, an exposed red chest disc, olive military trousers and
|
||||
combat boots. Paired pistols are optional. The supplied exact height and weight
|
||||
were not corroborated, so he retains normal human scale with a tall, muscular
|
||||
build. For both Crow and Bloodshot, random human face and hair sentences washed
|
||||
out their defining colors in the first samples. Their actual heads now use the
|
||||
existing authored-head field (`mask` with `covers_face`), as other nonhuman heads
|
||||
already do; this does not invent a worn face covering. Their body skin color also
|
||||
stays explicit in the costume text.
|
||||
The final samples kept Bloodshot's shell loops and white temple streak, and
|
||||
Crow's white eye-mask pattern after explicit painted-makeup wording.
|
||||
|
||||
**Savage Dragon.** The [official profile](https://wiki.savagedragon.com/profiles/characters/Dragon/)
|
||||
lists green eyes, a bald head and a disproportionately massive upper body. It gives
|
||||
5'10" without the fin and 6'6" to its tip, so the old `very tall` physique was wrong
|
||||
and a giant tier would be wrong too. The fin leads the anatomy sentence; the head is
|
||||
authored separately to suppress random human facial traits, and `bald: True` also
|
||||
suppresses any random hair. The white tank top, jeans and utility belt follow the
|
||||
official art. No generic weapon or healing aura was added. The entry now files under
|
||||
`Savage Dragon`, rather than the publisher-level `Image` bucket.
|
||||
|
||||
**Other silhouettes were gated by rendering.** Morris Dancer uses a coherent
|
||||
[EFDSS Cotswold kit](https://www.efdss.org/learning/resources/beginners-guides/34-english-folk-costume/2462-efdss-section-3-cotswold-morris):
|
||||
white shirt and trousers, crossed colored baldrics, rosettes, a floral straw hat,
|
||||
shin bell pads and handkerchiefs. The review image preserved those features and
|
||||
stays distinct from Court Jester's motley. A barreleye candidate had new anatomy
|
||||
on paper, but its render lost the transparent dome and put ordinary eyes on the
|
||||
outside of the fish head. It was removed before review; the remaining case and
|
||||
render gate live in `docs/suggested-additions.md`. The Corinthian also stays a
|
||||
candidate until exposed tooth-lined eye sockets render correctly; a suit and
|
||||
sunglasses alone do not earn an entry. Existing Sandman characters were not
|
||||
duplicated to fill out the cast.
|
||||
|
||||
**Gallery manifests have one owner.** Removed the stale deployment snapshots from
|
||||
`main` for every gallery and ignored their paths. The publisher already rebuilds each
|
||||
manifest from the staged images on `gh-pages`; it never copied these snapshots, and
|
||||
the picker already fetched the live site. Local preview instructions are in
|
||||
[gallery/README.md](../gallery/README.md). `gallery/render_manifest.json` remains the
|
||||
tracked render-hash gate. Exercising each real manifest generator against a temporary
|
||||
images directory proved the deleted snapshots are unnecessary.
|
||||
|
||||
**Pyright contracts.** `generate_character` has overloads for its default pair,
|
||||
`with_subject=True` triple, and a dynamic boolean. The runtime parameters and engine
|
||||
body are unchanged. Parsed presets and archetype templates now admit their existing
|
||||
nested metadata and list alternatives in their annotations. Tests narrow optional
|
||||
values before indexing or membership checks; diagnostics are fixed at their source,
|
||||
without diagnostic suppression. The Random character snapshot is refreshed for the
|
||||
curated roster; the field-marginals baseline remains unchanged.
|
||||
|
||||
**Validation.** The full dependency-free Python suite passed (the image test that
|
||||
requires Pillow was skipped by that interpreter). The frontend suite, Ruff and
|
||||
focused Pyright check passed. Reference docs, JS data, frontend fixtures, release
|
||||
stamps and gallery hashes are current. The field-marginals baseline and reachability
|
||||
gate passed, as did the public-safety and maintainer documentation checks. Review
|
||||
renders were published to the galleries at merge.
|
||||
|
||||
## 1.10.0 - engine and tooling: expression sheets, a free-text prop, and a publish gate
|
||||
|
||||
Random characters do not move: `sweep_marginals.py --check` reports no drift against the
|
||||
4000-seed baseline. Four cosplay entries do: the garment-regex fix below changes their pose
|
||||
pool (Bartok, Lola Bunny, Tellarite and Tasmanian Devil, each "a coat of" fur or hair).
|
||||
Found by diffing `resolve_prose` for every gallery entry against the previous release;
|
||||
`render_gallery.py --check` cannot see it, because `entry_hash` covers the entry's data,
|
||||
not the engine's prose. Hashing the resolved prose instead would catch an engine change
|
||||
too, but it marks every record stale, so it waits for the 2.0.0 re-render.
|
||||
|
||||
**Those four re-renders exposed bad entries, repaired here.** Each had its defining
|
||||
anatomy in the costume text, which a t2i model reads as a person in clothes:
|
||||
|
||||
- Bartok drew a man in a shirt holding a small bat. A foot-tall upright bat nobody can be
|
||||
inside is the feral case (architecture.md -> "Animal characters split four ways"), so
|
||||
it is now `body_plan: "feral"`, tiny, with its own upright poses.
|
||||
- Lola Bunny drew a human face in a blonde wig with no ears; Tasmanian Devil drew a
|
||||
man's bare face over a shaggy suit. Both now follow their Looney Tunes siblings Bugs
|
||||
and Daffy: the head, ears and jaw live in `mask` with `covers_face` + `covers_body`.
|
||||
- Tellarite drew a plain man in a tweed overcoat: the snout was lost and "a shaggy coat
|
||||
of thick facial and body hair" drew a garment. Four rewordings failed (an authored
|
||||
head; head plus `covers_body`; the canonical porcine description; a beardless boar
|
||||
head): each drew a human or a generic ridged alien, never the snout and tusks. The
|
||||
entry keeps its 1.9.0 text and tile, and the attempts are logged in
|
||||
`docs/suggested-additions.md` for 1.11.0.
|
||||
|
||||
**Expression Sheet node.** The backlog asked for a re-run like Turnaround that "releases"
|
||||
`smile_type` and `mood` per view. Releasing would need a seed per view and could land two
|
||||
views on the same face, so each view instead pins a curated (expression, mood, smile_type)
|
||||
triple. Tests check every triple's values are still live options and that no triple pairs
|
||||
values a live rule excludes (a lock beats a rule, so the engine would otherwise voice a
|
||||
contradiction). A `covers_face` character has no visible expression and emits one view.
|
||||
The node reuses the Turnaround's replay helpers rather than copying them.
|
||||
|
||||
**Free-text `held_item`.** It lives on the Modifier node as an optional box, so the main
|
||||
node's schema is unchanged. It is emitted as an ordinary `held_item` lock, which means the
|
||||
existing "holding ..." voicing and the hands-occupied pose gate already apply; downstream
|
||||
wins in `merge_preset_documents`, so it replaces an upstream Cosplayer prop. The input is
|
||||
appended after `upstream`, keeping saved workflows' `widgets_values` order.
|
||||
|
||||
**Legwear in a tight shot.** The 1.7.0 rule drops the shoes from the prose when the framing
|
||||
crops the feet. Legwear now follows for the framings that also crop the legs; the cowboy
|
||||
shot is the one feet-cropping framing that still shows the thighs, so it keeps them. Prose
|
||||
only, no draw, the JSON keeps the value, and a widget lock still voices it.
|
||||
|
||||
**The pockets gap was mostly stale.** AGENTS.md listed `_POCKETED_RE` as an allowlist that
|
||||
lets a pocketless costume draw a pockets gesture. Measured over every cosplay entry
|
||||
(8,340 renders), 47 drew a pockets gesture and all but one were legitimate. The one bug was
|
||||
a body, not a garment: Bartok's "coat of downy white fur" matched `coat`. In the roster
|
||||
"a coat of ..." is always fur, feathers or paint and "a suit of ..." is armour, so the
|
||||
collar, cuff and pocket regexes now refuse a garment word followed by "of". The gap is
|
||||
removed from the known-gaps list.
|
||||
|
||||
**Typing overloads kept, guarded.** A review suggested dropping the three
|
||||
`generate_character` overloads. Removing them broke pyright at `execute`, which unpacks the
|
||||
triple. They stay, and a test now compares each overload's parameters, annotations, keyword-
|
||||
only arguments and defaults with the implementation by `ast` (CI runs Python 3.10, which
|
||||
cannot introspect overloads), so a signature change that skips the stubs fails.
|
||||
|
||||
**Gallery publish gate.** The render loop now records `"published": false` for a new
|
||||
image and flips it to `true` only after `publish_kind` succeeds; `--check` fails on a record
|
||||
still marked unpublished. A missing key counts as published, so earlier records pass.
|
||||
`--publish-pending` publishes those images without re-rendering. The six 1.9.0 images
|
||||
thought to be unpublished were already on `gh-pages`; the mismatch was a git quotepath
|
||||
artifact on "Dia de los Muertos".
|
||||
|
||||
## 1.11.0 - roster release: new cosplayers, retro archetypes, a drive-in, and four declines
|
||||
|
||||
Random characters move through one change only: a new location value, `the parking lot of
|
||||
a retro drive-in diner with classic cars`, joins the `urban_outdoor` family. Family weights
|
||||
are frozen, so the family's share is unchanged, and the marginals sweep shows no other share
|
||||
moving (`sweep_marginals.py --check` reported only the new value, at about 0.6%, before
|
||||
`--write`). Per seed the move is wider: every seed that draws the family re-picks within a
|
||||
longer list, so it can land on a different street place, and its outfit, lighting and pose
|
||||
then re-resolve to fit. A main-vs-branch diff of 1500 seeds per gender changed 225 of 4500
|
||||
characters (5%), every one of them with a moved location; 17 landed on the drive-in. A location
|
||||
cannot be lock-only: the validator requires the families to partition the options with
|
||||
positive weights, and the engine draws any leftover value. The value is also in
|
||||
`OUTDOOR_LOCATIONS`, the neon-signage venues and the floor-free places (an asphalt lot
|
||||
takes no floor pose).
|
||||
|
||||
**New roster, each render-gated.** Cosplay: Miles Morales, Spider-Punk, Sylvie, Doc
|
||||
Brown (the 1985 radiation suit), Elle Woods, Vecna (reopened on the mascot-suit route: a
|
||||
full prosthetic body), Enid Sinclair, Messmer the Impaler, Laios Touden, Himmel, Jin
|
||||
Sakai, Charlie Morningstar, Angel Dust, and Birdie the Early Bird (the backlog row closed:
|
||||
the aviator cap, pigtails and flight suit are what the other bird mascots lack).
|
||||
Archetypes: 1970s Fast-Food Crew, Carhop, Bellhop, Mail Carrier, Roller Derby,
|
||||
Majorette, Mountaineer, Zoot Suit, Lounge Singer, 1950s Gas Station Attendant and Rodeo
|
||||
Rider. Creatures: frilled lizard, quetzalcoatl, leafy sea dragon and giant isopod.
|
||||
|
||||
**Gallery framing pins.** `render_gallery.py` gained `_GALLERY_SHOT`, alongside the
|
||||
gender and pose pins: a sample whose defining feature sits below mid-thigh must not draw a
|
||||
cowboy shot. Carhop (roller skates, pinned female) and Zoot Suit (the knee-length drape)
|
||||
use it. A test checks every pin names a real archetype and an allowed gallery framing.
|
||||
|
||||
**Carhop.** The first tile drew the male variant in a cowboy shot, so the skates never
|
||||
showed. A pastel dress alone read drab, so the women's `outfit_description` is now a
|
||||
seed-picked list: a bright `{team_color}` dress with white trim and apron, or a
|
||||
`{pastel}`-and-white candy stripe. The location moved from an indoor diner to the new
|
||||
drive-in lot, under golden-hour or neon light.
|
||||
|
||||
**Repairs.** Lola Bunny's costume names fur on the arms and legs and "furry tan rabbit
|
||||
paws for hands"; with fur on the limbs alone, the render still drew bare human hands. The costume's "covering her bare
|
||||
arms" became "the bare arms": costume text stays pronoun-free so crossplay reads
|
||||
correctly (`CostumePronounTests`). Tellarite ships the canon text (a full latex
|
||||
prosthetic head with snout, tusks and beard, on the mascot route) at the maintainer's
|
||||
call. It still renders a ridged brow and a beard with no snout, no worse than the 1.9.0
|
||||
text, and it drops the "shaggy coat of hair" that drew an overcoat. The snout stays open
|
||||
in `docs/suggested-additions.md`.
|
||||
|
||||
**Declined on the render bar** (one rewording each, reasons in
|
||||
`docs/suggested-additions.md`): The Corinthian (the eye-socket mouths never drew),
|
||||
Feyd-Rautha (the chalk-white hairless head never held), the women's pachuca variant of
|
||||
Zoot Suit (a cropped vest twice; the archetype ships men's only), the barreleye (the
|
||||
transparent dome never drew), and the vampire squid (the webbed cloak never showed; a red
|
||||
squid already ships through `squid`'s palette). Verso, Rockabilly and the thorny devil
|
||||
were declined before rendering as near-duplicates of shipped entries.
|
||||
|
||||
**Render-script gotcha.** A render can fail with `OSError: [Errno 22] Invalid argument`
|
||||
on the output PNG when that file is open in a viewer. Move the old image aside before
|
||||
re-rendering an entry someone may be looking at.
|
||||
|
||||
## 2.0.0 - the seed epoch: every seed-moving change at once
|
||||
|
||||
**Seeds break in this release, on purpose.** A given seed resolves to a different person
|
||||
in 2.0.0 than in 1.11.0, for every gender. Every
|
||||
change that had to move seeds was held back into this one release so the break happens
|
||||
once. Over 4000 seeds per gender against 1.11.0, every seed changed at least one field
|
||||
(gaze on all of them, by construction; pose, outfit and age on most). The per-item numbers
|
||||
below are each step diffed against the step before it, measured with the same 4000 seeds.
|
||||
|
||||
**`gaze`, a new widget.** The `looking` family of `pose` (seven values) moved into its own
|
||||
field, appended last in the schema and drawn last with `pose` (see architecture.md -> "pose
|
||||
and gaze draw last"). A character can now stand one way and look another, and the gaze is
|
||||
gated: a view from behind turns the head back over the shoulder, a selfie and a social
|
||||
gesture look at the lens, walking toward the camera never glances back, lost-in-thought
|
||||
never stares into the lens, and warm or intense expressions do not look down. Step diff:
|
||||
4000/4000 seeds per gender changed (gaze on all; pose on 7742 of 8000, because `pose` now
|
||||
draws after the outfit; outfit on 7061, because pose no longer consumes a draw mid-loop).
|
||||
Shares over 1000 seeds per gender: looking into the camera 31.1%, off past the camera
|
||||
21.1%, tilting the head 14.9%, lifting the chin 12.0%, over one shoulder 11.7%, glancing
|
||||
back 7.2%, looking down thoughtfully 1.9% (the turn-back share is mostly forced by
|
||||
from-behind framings). First weights gave 23% turn-back gazes; the two were lowered.
|
||||
0 live-rule violations for pose or gaze. A save that locked a `looking` pose migrates to a
|
||||
gaze lock. The Expression Sheet gained a `gaze` input; a Turnaround that pins the stance
|
||||
states no gaze.
|
||||
|
||||
**`pose` is deferred, and `_repair_pose` is retired.** The 0.92.0 repair existed only
|
||||
because moving the pose draw would move seeds; in the epoch release the clean fix is
|
||||
allowed. Pose now draws after the generated outfit, so the pocket/collar gesture gate reads
|
||||
the real garment, and its rules are live (the from-behind pose rule was rewritten as an
|
||||
allowlist of back-readable poses).
|
||||
|
||||
**Women's hair length and the oldest ages.** The three shortest women's lengths were
|
||||
weighted to 0.4 (9.7% of women over 4000 seeds, down from 22.1%); `75` and `80` joined `age`,
|
||||
weighted so 60+ holds near 16% (first tuning gave 14.4%; retuned to 16.1%). Step diff:
|
||||
3995/4000 female and 3898/4000 male seeds changed (a new age option shifts the weighted
|
||||
index for every seed).
|
||||
|
||||
**Studio lighting needs a studio.** A portrait rig (`studio_shape`) no longer lights an
|
||||
everyday interior; it stays legal in a studio, outdoors, and in the listed interiors that
|
||||
own one (`_STUDIO_LIT_INTERIORS`). The first cut gated the whole studio family and caused
|
||||
48 archetype lock clashes, so the family was split: `studio_shape` (the rigs) is gated,
|
||||
`studio_mood` (low-key, colour gels and similar) is not. Indoor rig lighting fell from
|
||||
32.6% to 1.7% of indoor renders; mood lighting rose from 14.4% to 20.7%. Step diff: about
|
||||
1936/4000 female and 1882/4000 male seeds changed.
|
||||
|
||||
**Per-garment variation slots.** Seven corpus phrases in the thinnest style x gender cells
|
||||
carry `{slot}` words (knit weight, chino cut, skirt length, tee fit, work canvas), filled
|
||||
from their own seed stream so a slot moves no other draw; season and age gates apply per
|
||||
value, and a leg-cropping framing drops the skirt length from the prose. Two slot values
|
||||
were changed before shipping so every value answers every garment guard the same way
|
||||
(`ribbed` -> `rib-knit`, `moleskin` -> `twill`); validate_data.py now enforces that. Step
|
||||
diff: 59/4000 female and 115/4000 male seeds changed a field (the outfit text, plus the
|
||||
gates that read it: legwear, tattoo placement, pose, gaze, pattern), 47 female seeds
|
||||
changed prose only (the length trim).
|
||||
|
||||
**Turnaround back views (`costume_back`).** The first known gap from 1.x: a back view drew
|
||||
the chest emblem. Entries may now carry an opt-in `costume_back`, swapped in for back and
|
||||
rear-three-quarter views. The first entries are Superman, Batman, Spider-Man, The Flash,
|
||||
Captain America and Wonder Woman; verified that the back views swap the text for all six in
|
||||
both Costume only and Full character, and every other view is unchanged.
|
||||
|
||||
**Prose-only items.** An eponymous entry no longer reads "Name (Name)" (93 entries, e.g.
|
||||
Sailor Moon, Mulan, Bayonetta). A noun expression takes an article ("her expression is a
|
||||
bright smile"); 16.6% of random characters draw one.
|
||||
|
||||
**The gallery hash covers resolved prose.** `entry_hash` now hashes what the entry renders
|
||||
from rather than the entry dict, so an engine change marks its images stale (it could not
|
||||
before; see architecture.md -> "The gallery render pipeline"). Its first run marked every
|
||||
entry stale, because every entry's prose moved with the seeds.
|
||||
|
||||
**No full gallery re-render (maintainer decision).** The plan was to re-render the whole
|
||||
roster once. It was dropped: no entry's own text changed, only the random person and scene
|
||||
around it plus a gaze clause, the same incidental drift 0.90.0 and 0.97.0 accepted, and
|
||||
`costume_back` only reaches Turnaround back views, which the gallery never renders. Three
|
||||
samples were rendered and published (Superman, Carhop, owlbear); every other record was
|
||||
accepted as-is with the new `render_gallery.py --rehash`, which moves only the recorded
|
||||
hash. From here the prose hash flags any entry whose text changes.
|
||||
|
||||
## 2.1.0 - droids render as droids, a lead noun for non-human faces, Orion, a picker gender filter
|
||||
|
||||
**Random characters are unchanged.** Every change is a roster entry's own text, a new
|
||||
roster entry, or the picker UI. Two knock-ons for the Cosplayer node's random picks: the
|
||||
three droids and Pac-Man leave the `Masked` scope and the "People only" `random_pool` for `Beast /
|
||||
non-humanoid`, and the new entries grow the candidate list, so a fixed seed under any
|
||||
`Random - ...` choice can now pick a different character (as at every roster release).
|
||||
|
||||
**R2-D2, BB-8 and Gonk Droid moved to `body_plan: "feral"`.** The maintainer saw a man
|
||||
posing beside R2-D2 in the gallery. The published BB-8 tile showed the same thing, and Gonk
|
||||
showed a man's head out of a grey box. All three were suit entries whose prompt led "a short
|
||||
man with a stocky build ... He wears a ... droid body": a famous name makes the model draw the
|
||||
machine as an object, and the sentence then adds a person next to it. As feral entries
|
||||
("R2-D2 (Star Wars), a three-legged astromech droid, ...") all three rendered as the droid
|
||||
alone on the first seed. Chopper and Lumiere stay suit entries: both rendered correctly
|
||||
because their long descriptions win, and neither tile is wrong. The feral route was written
|
||||
for animals, so this opens it to non-humanoid machines with a cosplay-only
|
||||
`creature_class: "Machines"`; see architecture.md -> "Writing a feral entry". The Claptrap
|
||||
and Wrecking Ball declines rested on the old "a machine is not a beast" reading, and are
|
||||
marked lapsed in suggested-additions.md.
|
||||
|
||||
The look level was considered as the switch ("Costume only" = a person in an R2-D2 costume,
|
||||
"Full character" = R2-D2 itself) and not built: the person-in-costume reading is exactly the
|
||||
render that failed.
|
||||
|
||||
**Blue Beetle (Ted Kord) rewritten.** The entry said black cowl, black gloves and boots and
|
||||
"large round black goggles", and rendered a black hood with black swim goggles. Canon
|
||||
(Wikipedia plus figure references) is a light-blue suit with dark navy gloves, trunks, boots and
|
||||
cowl, a dark beetle shape across the chest and shoulders, and yellow goggles. A maintainer-
|
||||
supplied description added white lenses and antenna lines on the cowl; no source backed either,
|
||||
so neither was used. The first render drew the right suit on a heavy 55-year-old; one
|
||||
`--reroll` gave the published tile.
|
||||
|
||||
**More machines and enchanted objects.** Claptrap, WALL-E, Dalek, Johnny 5, Codsworth and
|
||||
Mrs. Potts ship on the feral route, and Cogsworth on the suit route beside Lumiere (arms and
|
||||
legs where a person's are). Every one rendered as the machine or object alone on its first
|
||||
seed, with no person in frame. Wrecking Ball, BD-1, the Mouse Droid and K-9 were declined;
|
||||
see suggested-additions.md.
|
||||
|
||||
**The sd-character-finder survey.** The catalogue (Danbooru, e621 and AnimaDex tags with a
|
||||
popularity rank) was ranked against the roster. Its unmatched top is mostly large uniform or
|
||||
gacha casts the backlog already closes, so the survivors ship: the first Touhou entries (Reimu
|
||||
Hakurei, Marisa Kirisame, Sakuya Izayoi, Yukari Yakumo), Black Rock Shooter, Noriaki Kakyoin,
|
||||
Mash Kyrielight, Edelgard (her Part II emperor look), Shantae, Catra (the 2018 reboot, its own
|
||||
franchise beside the 1985 She-Ra) and Kasane Teto as worn looks; Toriel, Undyne, Doraemon,
|
||||
Hello Kitty, Kuromi, Meta Knight, King Dedede, Monokuma and Tony Tony Chopper on the mascot
|
||||
route (the last two with the Pikachu scale pin); Snoopy and Kyubey on the feral route. The
|
||||
Hololive VTubers were left out at the maintainer's call; Domo-kun, the maintainer's own pick, joins on the mascot route. Two authoring notes: a body-colour
|
||||
clause needs a material noun ("a coat of blue fur"), or the colour capture runs on to the
|
||||
next comma and voices "a red skin"; Doraemon uses the `skin` key instead. A feral pose
|
||||
sentence follows "He is", so it cannot say "its back".
|
||||
|
||||
**Unmask on a droid.** The question was whether "Unmask (show face)" should put a person
|
||||
inside a droid. It already does for a suit entry (C-3PO, Lumiere, Cogsworth): a cosplayer
|
||||
with the helmet off. It stays a no-op on a feral entry, because a human head on R2-D2's body
|
||||
is the Gonk render this release removed. The mask tooltip now says so.
|
||||
|
||||
**Roster picker gender filter.** A Female / Male select beside the trait facet. Entries with no
|
||||
single gender (creatures, "Any" archetypes) stay visible under both choices. Like the facet,
|
||||
it survives closing the picker and resets on reload.
|
||||
|
||||
**The lead noun (`subject`).** The Tellarite repair from 1.11.0 stayed open because the
|
||||
snout never rendered: the prompt led "a short man with a stocky build" and the mask
|
||||
sentence that followed lost to it every time. A new optional `subject` key replaces
|
||||
"man"/"woman" in that lead (architecture.md -> "The lead noun: `subject`"). With
|
||||
"pig-headed humanoid alien" the Tellarite drew the snout and beard on the first seed. The
|
||||
same test ran on every masked or mascot entry whose published tile showed a person, each
|
||||
trial at the gallery seed beside the published tile:
|
||||
|
||||
- *Kept:* Kuiil, Unkar Plutt, Ithorian, Nien Nunb, Bothan, Kilowog, Larfleeze, Ponda Baba
|
||||
(with a walrus-led mask rewrite), Mynock, Krampus, Ainz, Spinal, Witch-King, Orko, Vivi,
|
||||
and the mascots that had drawn a person holding a plush: Pikachu, Jigglypuff, Gengar,
|
||||
SpongeBob, Mr. Krabs, Eeyore, Piglet, Sackboy, Kool-Aid Man, Mr. Peanut, Rosie the
|
||||
Robot, White Rabbit, Ultros and Voldo. Gardevoir ships with one from the start.
|
||||
- *Moved to the feral route instead:* Pac-Man. With the noun it was still a person in a
|
||||
yellow suit; as the character itself ("a round yellow arcade character") it rendered as
|
||||
the arcade Pac-Man alone on both seeds. A cartoon version with arms, gloves and red shoes
|
||||
rendered as well; the arcade disc is the better-known look, and a feral entry has no
|
||||
alternates. A person-in-a-Pac-Man-suit option was not kept: that is the render that failed.
|
||||
- *Kept, with a new mask:* the noun alone still drew a plain man for Red Skull and a
|
||||
human face for Moon Knight. Rewritten as "a full-head red latex Red Skull mask" and "a
|
||||
full-head white cloth mask wrapping his whole face", both rendered right on both seeds.
|
||||
Porco Rosso, as "a pig's head instead of a human head", gets the ears and snout on one
|
||||
seed of two; nothing tried did better.
|
||||
- *Obscure aliens:* several Star Wars species are close to unknown to the model. They keep
|
||||
the noun and the most specific description sources support; that is where they land.
|
||||
|
||||
**One eye is a model limit.** Allen the Alien and Leela are cyclopes, and every render drew
|
||||
two eyes. Tried, two seeds each: the noun ("one-eyed cyclops alien", "cyclops woman"); an
|
||||
eye phrase saying "no other eyes"; a latex cyclops mask; a cyclops face prosthetic on Leela
|
||||
(which also dropped her purple hair); a close-up framing. All failed. A bare prompt ("a
|
||||
photo of a big orange cyclops alien with one huge eye in the middle of his face") drew one
|
||||
eye on both seeds, so the model can do it, but the same prompt prefixed with "Cosplaying as
|
||||
Allen the Alien (Invincible):", or lengthened to the gallery's detail, drew two again. Both
|
||||
entries keep the cyclops noun and their best text; Leela's costume no longer lists "a single
|
||||
large central eye" as something she wears.
|
||||
|
||||
**Two-colour eyes.** An `eyes` override is voiced as "She has <eyes>", so "one blue and one
|
||||
yellow" read "one blue and one yellow eyes". Catra, Frankie Stein and Ragna now say "one
|
||||
blue eye and one yellow eye" in full.
|
||||
|
||||
**Orion.** The TOS dancer (jewelled two-piece, veils, bangles, green skin) is the canonical
|
||||
look; Gaila's red Starfleet cadet dress (Kelvin films) is the alternate. The new
|
||||
`costume_weights` key leans the pick 2:1 toward the dancer (measured: about a third of seeds
|
||||
draw the cadet), without moving any other entry's seeds (architecture.md -> "Weighted
|
||||
alternate looks").
|
||||
|
||||
**The survey's second tier.** Hilda, Gloria, Iono, Gardevoir (mascot), Byleth, Nagito
|
||||
Komaeda, Chiaki Nanami, Jonathan Joestar, Tamamo no Mae, Falin Touden, Senshi, Suletta
|
||||
Mercury, the four RWBY leads, Wild Tiger and Barnaby, Nanoha and Fate, Ragna and Noel,
|
||||
Arcueid Brunestud and Serval. Kiana Kaslana and Caesar Zeppeli were declined (no one stable
|
||||
outfit, colours not verifiable); see suggested-additions.md.
|
||||
|
||||
## 2.2.0 - Cyberpunk roster, Volcana, period court dress, a picker franchise filter
|
||||
|
||||
**Random characters move through the outfit corpus and one new location** (below). Four new phrases (three in
|
||||
`edgy alternative`, one in `vintage retro`) change which outfit a fixed seed draws in those
|
||||
two styles; field marginals still match the committed baseline (`sweep_marginals.py
|
||||
--check`). Nine creature gallery tiles whose outfit draw moved were re-rendered.
|
||||
|
||||
**Cyberpunk entries checked against Danbooru tag counts and the wiki, not the brief.**
|
||||
- David Martinez wore a red bomber; canon is the yellow EMT jacket with the glowing blue
|
||||
collar. Panam Palmer and Rebecca were rebuilt the same way (Rebecca's tagged skin is
|
||||
chalk-white with seam lines, her eyes green on red sclera; the huge cyberarms are a
|
||||
weighted alternate).
|
||||
- New: Maine, Kiwi, Talia Yang (Edgerunners 2), Adam Smasher (a full-body suit entry, the
|
||||
C-3PO precedent), Song So Mi (green gown primary, netrunner alternate at weight 1 of 3).
|
||||
- The brief's Maine (buzzcut, yellow optics) and Pilar (white pompadour, pink skin) did not
|
||||
match the sources; Maine follows the tags (flattop, red shades), Pilar was declined.
|
||||
|
||||
**Volcana (DC)** ships with fair skin and red-orange hair; the brief's olive skin is not in
|
||||
the sources.
|
||||
|
||||
**A costume that names earrings or a necklace now suppresses the random one**
|
||||
(`_COSTUME_JEWELRY_RES` in the Cosplayer node), so Volcana's gold hoops no longer sit beside
|
||||
a second pair in Costume-only mode. Full character already dropped random jewellery, so no
|
||||
gallery tile moved.
|
||||
|
||||
**An eyes override must not end in an eye part.** Kiwi's "feline red, yellow-sclera" dropped
|
||||
the noun "eyes" (`_EYE_PART_RE`); the adjectives were reordered.
|
||||
|
||||
**Period court dress.** Rococo Courtier, Medieval Monarch, Ottoman Court and Heian Court were
|
||||
added from a 15-prompt historical-costume list; the rest were existing looks under other
|
||||
names (see suggested-additions.md -> "Archetypes - declined"). Ancient Roman Patrician gained
|
||||
a Female variant (stola and palla). The new looks lock "no tattoos", and `_is_essential` now
|
||||
keeps a `tattoos` lock in Essentials: before this a Heian court lady drew a modern script
|
||||
tattoo. No older archetype locks tattoos, so nothing else moved.
|
||||
|
||||
**Picker franchise filter.** The roster picker gains a franchise select beside the gender
|
||||
filter, grouped by category, kept for the session like the other filters.
|
||||
|
||||
**The outfit wildcards were mostly not usable.** The punk and pinup packs are lingerie worn
|
||||
as outerwear, with footwear and fabric jargon built into each line; they break the corpus
|
||||
contract and would tilt women's outfits toward sexualized looks. Four phrases were taken,
|
||||
with pattern words (tartan, leopard, gingham) removed because the `pattern` field owns them.
|
||||
|
||||
**Render-review fixes.** Adam Smasher drew a human face over the armor ("a very tall man"
|
||||
led the prompt); a `subject` of "towering armored cyborg" fixed it. Talia Yang's mandible
|
||||
mask, last in a long costume list, was dropped; it now leads the costume. The leprechaun's
|
||||
integument repeated its palette ("ruddy freckled ruddy freckled skin", the only creature
|
||||
that did) and its gallery seed drew a woman with the folklore beard; the integument is now
|
||||
plain "skin" and the gallery tile is pinned Male (`_GALLERY_GENDER`). The node itself still
|
||||
gives a female leprechaun the beard: creature slots have no gender gate.
|
||||
|
||||
**A `gilded palace throne room` location.** Rococo Courtier and Ottoman Court were using a
|
||||
grand hotel suite and a European castle courtyard as stand-ins. The value joins the
|
||||
`civic_institutional` family (frozen family weight, so the family's share is unchanged; the
|
||||
new value draws about 0.5% of random characters) and the formal-room rules: dressy outfit
|
||||
styles, no athletic wear, no casual headwear, candlelight allowed. Medieval Monarch stays in
|
||||
the cathedral, where coronations happen. Every seed that draws the civic family re-picks
|
||||
within a longer list, so 94 gallery samples whose prompt moved were re-rendered, and the
|
||||
marginals baseline was rewritten.
|
||||
|
||||
**Period looks lock tattoos and piercings.** Renaissance Noble, Victorian Lady, Victorian
|
||||
Dandy, Gibson Girl, Regency Aristocrat, Greek Goddess, Egyptian Pharaoh, Roman Centurion,
|
||||
Medieval Peasant, Musketeer and Highwayman now lock "no tattoos" and "no piercings beyond
|
||||
ears", as the four new court looks do. Bracelets and rings are left free: pharaohs and
|
||||
nobles wore them. Warrior and living-tradition looks (Gladiator, Viking Shieldmaiden,
|
||||
Samurai, the cultural-dress archetypes) are unchanged.
|
||||
|
||||
**Maintainer render review of the re-rendered tiles.** Each fix names what the render
|
||||
lacked, because the model only draws what the prose says:
|
||||
- Darth Vader drew bare hands: the costume never named the suit, gloves or boots. They are
|
||||
named now, and `covers_body` drops the wearer's skin and build.
|
||||
- Reverse-Flash had no mask (none was written); a yellow cowl with red ear bolts now mirrors
|
||||
The Flash entry, with `covers_face` and a `costume_back`.
|
||||
- The Maxx and the Tusken Raider showed a human face inside the mask: the prose led with "a
|
||||
... man with ... skin". Both take `covers_body` and a `subject` lead noun, and the Tusken
|
||||
mask says the head is fully wrapped with no skin showing ("a bandage-wrapped face" drew a
|
||||
face). "Unmask (show face)" still shows the face.
|
||||
- Tatsumaki's "faint" aura, last in the list, did not render; the glow now leads. Her dress
|
||||
is canon (long sleeves, high collar, leg slits, not a sleeveless cocktail dress), and her
|
||||
age (28) and pale skin are pinned.
|
||||
- The horseshoe crab drew a plain man ("drawn low over the face"), then a man wearing the
|
||||
shell as a hat ("a shell in place of a head"). A negated "no human head at all" was
|
||||
ignored on most seeds, so the head now leads positively ("a faceless horseshoe crab
|
||||
head"), like the other arthropods. Body parts with no place on a biped ("two smooth
|
||||
shields", "a plated abdomen", "the rear shield") rendered as a second whole crab held at
|
||||
the side; each is now anchored (carapace over back and chest, tail from the lower back,
|
||||
gills under the torso). Chitin arms and pincers for hands; the tile is rerolled once.
|
||||
- Three creature tiles were rerolled without a data change (`--reroll`, recorded in the
|
||||
manifest): the biomechanical alien ("biomechanical" is a Giger style token and restyled
|
||||
a gilded palace around it), the ocean sunfish (drew a woman holding a fish) and the
|
||||
crystalline alien (a hoodie hid the translucent body).
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
|
||||
# Archetype reference
|
||||
|
||||
**259 archetypes.** Each is a curated look wired through the Archetype node. `gender` shows a locked gender (blank = either); `outfit` is the archetype's outfit style.
|
||||
**291 archetypes.** Each is a curated look wired through the Archetype node. `gender` shows a locked gender (blank = either); `outfit` is the archetype's outfit style.
|
||||
|
||||
- **1940s Factory Worker** [Female] -- vintage retro
|
||||
- **1940s Swing Dancer** [Any]
|
||||
- **1950s Diner Waitress** [Female] -- vintage retro
|
||||
- **1950s Gas Station Attendant** [Any] -- utility workwear
|
||||
- **1950s Greaser** [Any] -- vintage retro
|
||||
- **1950s Homemaker** [Female] -- vintage retro
|
||||
- **1950s Sock Hop** [Any] -- vintage retro
|
||||
@@ -16,6 +17,7 @@
|
||||
- **1960s Hippie** -- bohemian
|
||||
- **1960s Mod** [Any] -- vintage retro
|
||||
- **1970s Boho It-Girl** [Female] -- bohemian
|
||||
- **1970s Fast-Food Crew** [Any] -- vintage retro
|
||||
- **1970s Leisure Lounge** [Male] -- vintage retro
|
||||
- **1970s Used Car Salesman** [Male] -- vintage retro
|
||||
- **1980s Action Star** [Any] -- casual
|
||||
@@ -27,6 +29,7 @@
|
||||
- **1990s Grunge** [Any] -- edgy alternative
|
||||
- **Alchemist** -- vintage retro
|
||||
- **Alpine Skier** -- athletic
|
||||
- **American Football Player** -- athletic
|
||||
- **Ancient Roman Patrician** [Male] -- evening formal
|
||||
- **Andean Cholita** [Female] -- vintage retro
|
||||
- **Angelic Being** [Any] -- evening formal
|
||||
@@ -49,6 +52,7 @@
|
||||
- **Battle Bard** [Any]
|
||||
- **Beauty Pageant Contestant** [Female] -- evening formal
|
||||
- **Beekeeper** -- casual
|
||||
- **Bellhop** [Any] -- business formal
|
||||
- **Belly Dancer** [Female] -- edgy alternative
|
||||
- **Berserker Barbarian** [Any] -- edgy alternative
|
||||
- **Biker** -- edgy alternative
|
||||
@@ -61,6 +65,7 @@
|
||||
- **Butler** -- business formal
|
||||
- **Cabaret Witch** [Female] -- evening formal
|
||||
- **Calligrapher** -- smart casual
|
||||
- **Carhop** [Any] -- vintage retro
|
||||
- **Carpenter** -- casual
|
||||
- **Cartographer** -- vintage retro
|
||||
- **Celestial Cleric** [Any] -- evening formal
|
||||
@@ -88,6 +93,7 @@
|
||||
- **Disco Diva** [Female] -- vintage retro
|
||||
- **Doctor** [Any] -- business casual
|
||||
- **Drag Performer** [Any] -- evening formal
|
||||
- **Dressage Rider** [Any] -- preppy
|
||||
- **Dwarven Blacksmith** [Male] -- edgy alternative
|
||||
- **Día de los Muertos** [Any]
|
||||
- **E-Girl / E-Boy**
|
||||
@@ -96,6 +102,7 @@
|
||||
- **Electrician** [Any] -- casual
|
||||
- **Elven Ranger** -- bohemian
|
||||
- **Emo** -- edgy alternative
|
||||
- **Evzone Guard** [Male] -- vintage retro
|
||||
- **Fairy Princess** [Female] -- evening formal
|
||||
- **Falconer** -- smart casual
|
||||
- **Farmer** [Any] -- casual
|
||||
@@ -107,6 +114,7 @@
|
||||
- **Flamenco Dancer** [Any]
|
||||
- **Flight Attendant** [Any] -- business casual
|
||||
- **Florist** -- casual
|
||||
- **Fly-Fishing Angler** [Any] -- utility workwear
|
||||
- **Forest Druid** -- bohemian
|
||||
- **Fortune Teller** [Any]
|
||||
- **French Maid** [Female] -- smart casual
|
||||
@@ -125,8 +133,11 @@
|
||||
- **Gymnast** -- athletic
|
||||
- **Hair Metal Rocker** [Any]
|
||||
- **Halfling Rogue** -- casual
|
||||
- **Hanfu** [Any] -- vintage retro
|
||||
- **Hazmat Technician** -- athletic
|
||||
- **Heian Court** [Any] -- evening formal
|
||||
- **Highland Scot** [Any]
|
||||
- **Highwayman** [Male] -- vintage retro
|
||||
- **Hockey Goalie** -- athletic
|
||||
- **Holy Paladin** [Any] -- business formal
|
||||
- **Human Knight** [Any] -- business formal
|
||||
@@ -139,14 +150,19 @@
|
||||
- **K-Pop Idol**
|
||||
- **Kabuki Actor** -- evening formal
|
||||
- **Kawaii Street Fashion** [Any]
|
||||
- **Kebaya** [Female] -- vintage retro
|
||||
- **Kendo Practitioner** -- athletic
|
||||
- **Korean Hanbok** [Any] -- vintage retro
|
||||
- **Lehenga & Sherwani** [Any] -- evening formal
|
||||
- **Librarian** [Any] -- smart casual
|
||||
- **Lifeguard** [Any] -- athletic
|
||||
- **Lounge Singer** [Any] -- evening formal
|
||||
- **Luchador** [Any] -- athletic
|
||||
- **Lumberjack** [Any]
|
||||
- **Maasai** [Any] -- bohemian
|
||||
- **Mad Scientist** [Any]
|
||||
- **Mail Carrier** [Any] -- utility workwear
|
||||
- **Majorette** [Female] -- athletic
|
||||
- **Marching Band Drum Major** -- evening formal
|
||||
- **Mardi Gras Reveler** [Any]
|
||||
- **Mariachi Charro** [Any]
|
||||
@@ -156,10 +172,15 @@
|
||||
- **Matador** [Any] -- evening formal
|
||||
- **McBling Socialite** [Female] -- streetwear
|
||||
- **Mechanic** [Any] -- edgy alternative
|
||||
- **Medieval Monarch** [Any] -- evening formal
|
||||
- **Medieval Peasant** -- casual
|
||||
- **Metalhead** [Any] -- edgy alternative
|
||||
- **Metrosexual** [Male] -- smart casual
|
||||
- **Mime** -- edgy alternative
|
||||
- **Mongolian Deel** [Any] -- vintage retro
|
||||
- **Morris Dancer** [Any] -- vintage retro
|
||||
- **Mountaineer** [Any] -- athletic
|
||||
- **Muay Thai Fighter** [Any] -- athletic
|
||||
- **Musician** -- streetwear
|
||||
- **Musketeer** -- vintage retro
|
||||
- **Navy Sailor** -- smart casual
|
||||
@@ -170,6 +191,7 @@
|
||||
- **Oktoberfest** [Any]
|
||||
- **Opera Singer** [Any]
|
||||
- **Orchestra Conductor** -- evening formal
|
||||
- **Ottoman Court** [Any] -- evening formal
|
||||
- **Outback Bushman** [Male] -- casual
|
||||
- **Paramedic** -- athletic
|
||||
- **Parisian Chic** [Any]
|
||||
@@ -186,6 +208,7 @@
|
||||
- **Prehistoric Hunter** [Any] -- edgy alternative
|
||||
- **Pro Wrestler** [Any] -- athletic
|
||||
- **Punk Rocker** -- edgy alternative
|
||||
- **RCMP Mountie** [Any] -- business formal
|
||||
- **Race Car Driver** [Any] -- athletic
|
||||
- **Rancher** -- vintage retro
|
||||
- **Rapper** -- streetwear
|
||||
@@ -198,7 +221,11 @@
|
||||
- **Roaring Flapper** [Female] -- vintage retro
|
||||
- **Roaring Twenties Gent** [Male] -- vintage retro
|
||||
- **Rock Climber** [Any] -- athletic
|
||||
- **Rococo Courtier** [Any] -- evening formal
|
||||
- **Rodeo Rider** [Any] -- vintage retro
|
||||
- **Roller Derby** [Any] -- athletic
|
||||
- **Roman Centurion** [Male] -- athletic
|
||||
- **Royal Guard** [Any] -- business formal
|
||||
- **Rude Boy** [Male] -- vintage retro
|
||||
- **Safari Guide** -- casual
|
||||
- **Sami Gakti** [Any] -- vintage retro
|
||||
@@ -206,6 +233,7 @@
|
||||
- **Sapeur** [Male] -- evening formal
|
||||
- **Scandi Minimalist**
|
||||
- **Scientist** [Any] -- business casual
|
||||
- **Scuba Diver** [Any] -- athletic
|
||||
- **Sea Captain** [Any] -- vintage retro
|
||||
- **Shadow Monk** [Any] -- loungewear
|
||||
- **Skateboarder** -- streetwear
|
||||
@@ -234,6 +262,7 @@
|
||||
- **Teacher** [Any] -- smart casual
|
||||
- **Teddy Boy** [Male] -- vintage retro
|
||||
- **Tennis Player** -- athletic
|
||||
- **Thai Classical Dancer** [Female] -- evening formal
|
||||
- **Toymaker** -- vintage retro
|
||||
- **Train Conductor** -- business casual
|
||||
- **Trapeze Artist** -- athletic
|
||||
@@ -255,6 +284,7 @@
|
||||
- **Warlock** [Any] -- edgy alternative
|
||||
- **Wasteland Survivor** -- edgy alternative
|
||||
- **Watchmaker** -- business casual
|
||||
- **Wedding Groom** [Male] -- evening formal
|
||||
- **Welder** -- casual
|
||||
- **Werewolf Hunter** [Any] -- edgy alternative
|
||||
- **Whirling Dervish** [Male] -- evening formal
|
||||
@@ -264,3 +294,5 @@
|
||||
- **Y2K Mall Casual** [Any]
|
||||
- **Yeoman Warder** [Any] -- evening formal
|
||||
- **Yoga Instructor** [Any] -- athletic
|
||||
- **Yukata** [Any] -- vintage retro
|
||||
- **Zoot Suit** [Male] -- vintage retro
|
||||
|
||||
+190
-22
@@ -3,9 +3,9 @@
|
||||
|
||||
# Cosplayer reference
|
||||
|
||||
**2073 characters.** Flags: `F`/`M` = source gender, `giant`/`tiny` = size scale, `masked` = full-face covering, `beast` = rendered as the animal itself (`body_plan: feral`), `+N alt` = extra costumes, `prop` = signature held item.
|
||||
**2160 characters.** Flags: `F`/`M` = source gender, `giant`/`tiny` = size scale, `masked` = full-face covering, `beast` = rendered as the animal itself (`body_plan: feral`), `+N alt` = extra costumes, `prop` = signature held item.
|
||||
|
||||
## Anime & Manga (383)
|
||||
## Anime & Manga (416)
|
||||
|
||||
### Akame ga Kill
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
|
||||
- **Kaneda** (M)
|
||||
|
||||
### Alita: Battle Angel
|
||||
|
||||
- **Alita** (F, +1 alt)
|
||||
|
||||
### Amagi Brilliant Park
|
||||
|
||||
- **Isuzu Sento** (F, prop)
|
||||
@@ -56,6 +60,10 @@
|
||||
- **Balalaika** (F)
|
||||
- **Revy** (F, prop)
|
||||
|
||||
### Black Rock Shooter
|
||||
|
||||
- **Black Rock Shooter** (F, prop)
|
||||
|
||||
### Bleach
|
||||
|
||||
- **Byakuya Kuchiki** (M)
|
||||
@@ -100,7 +108,10 @@
|
||||
|
||||
### Danganronpa
|
||||
|
||||
- **Chiaki Nanami** (F, prop)
|
||||
- **Junko Enoshima** (F)
|
||||
- **Monokuma** (M, tiny, masked)
|
||||
- **Nagito Komaeda** (M)
|
||||
|
||||
### Darling in the Franxx
|
||||
|
||||
@@ -130,7 +141,10 @@
|
||||
|
||||
### Delicious in Dungeon
|
||||
|
||||
- **Falin Touden** (F, prop)
|
||||
- **Laios Touden** (M, prop)
|
||||
- **Marcille Donato** (F, prop)
|
||||
- **Senshi** (M, prop)
|
||||
|
||||
### Demon Slayer
|
||||
|
||||
@@ -146,6 +160,10 @@
|
||||
- **Tanjiro Kamado** (M, prop)
|
||||
- **Zenitsu Agatsuma** (M)
|
||||
|
||||
### Doraemon
|
||||
|
||||
- **Doraemon** (M, masked)
|
||||
|
||||
### Dorohedoro
|
||||
|
||||
- **Nikaido** (F, masked)
|
||||
@@ -202,7 +220,9 @@
|
||||
### Fate/Grand Order
|
||||
|
||||
- **Jeanne d'Arc (Fate)** (F, prop)
|
||||
- **Mash Kyrielight** (F, prop)
|
||||
- **Scathach** (F, prop)
|
||||
- **Tamamo no Mae** (F, prop)
|
||||
|
||||
### Fate/stay night
|
||||
|
||||
@@ -222,6 +242,7 @@
|
||||
|
||||
- **Fern** (F, +1 alt, prop)
|
||||
- **Frieren** (F, prop)
|
||||
- **Himmel** (M, prop)
|
||||
- **Ubel** (F)
|
||||
|
||||
### Fullmetal Alchemist
|
||||
@@ -295,16 +316,19 @@
|
||||
- **Kagome Higurashi** (F, prop)
|
||||
- **Kikyo** (F)
|
||||
- **Sango** (F, prop)
|
||||
- **Sesshomaru** (M)
|
||||
|
||||
### JoJo's Bizarre Adventure
|
||||
|
||||
- **Dio Brando** (M)
|
||||
- **Giorno Giovanna** (M)
|
||||
- **Jolyne Cujoh** (F)
|
||||
- **Jonathan Joestar** (M)
|
||||
- **Joseph Joestar** (M)
|
||||
- **Josuke Higashikata** (M)
|
||||
- **Jotaro Kujo** (M)
|
||||
- **Lisa Lisa** (F)
|
||||
- **Noriaki Kakyoin** (M)
|
||||
|
||||
### Jujutsu Kaisen
|
||||
|
||||
@@ -320,6 +344,10 @@
|
||||
|
||||
- **Yumeko Jabami** (F)
|
||||
|
||||
### Kemono Friends
|
||||
|
||||
- **Serval (Kemono Friends)** (F)
|
||||
|
||||
### Kill la Kill
|
||||
|
||||
- **Mako Mankanshoku** (F)
|
||||
@@ -344,6 +372,7 @@
|
||||
|
||||
- **Homura Akemi (Devil)** (F)
|
||||
- **Kyoko Sakura** (F, prop)
|
||||
- **Kyubey** (M, tiny, beast)
|
||||
- **Madoka Kaname (Ultimate)** (F, prop)
|
||||
- **Mami Tomoe** (F, prop)
|
||||
- **Sayaka Miki** (F, prop)
|
||||
@@ -352,6 +381,11 @@
|
||||
|
||||
- **Morgiana** (F)
|
||||
|
||||
### Magical Girl Lyrical Nanoha
|
||||
|
||||
- **Fate Testarossa** (F, prop)
|
||||
- **Nanoha Takamachi** (F, prop)
|
||||
|
||||
### Medaka Box
|
||||
|
||||
- **Medaka Kurokami** (F)
|
||||
@@ -363,6 +397,7 @@
|
||||
### Mobile Suit Gundam
|
||||
|
||||
- **Char Aznable** (M)
|
||||
- **Suletta Mercury** (F)
|
||||
|
||||
### Monogatari
|
||||
|
||||
@@ -451,6 +486,7 @@
|
||||
- **Sanji** (M)
|
||||
- **Shanks** (M)
|
||||
- **Shirahoshi** (F, giant)
|
||||
- **Tony Tony Chopper** (M, tiny, masked)
|
||||
- **Trafalgar Law** (M, prop)
|
||||
- **Usopp** (M, prop)
|
||||
- **Yamato (One Piece)** (F, prop)
|
||||
@@ -492,9 +528,13 @@
|
||||
- **Dawn** (F)
|
||||
- **Eevee** (M, tiny, beast)
|
||||
- **Elesa** (F)
|
||||
- **Gardevoir** (F, masked)
|
||||
- **Gary Oak** (M)
|
||||
- **Gengar** (M, masked)
|
||||
- **Gloria (Pokemon)** (F)
|
||||
- **Gyarados** (M, giant, beast)
|
||||
- **Hilda (Pokemon)** (F, prop)
|
||||
- **Iono** (F)
|
||||
- **Iris** (F)
|
||||
- **James (Team Rocket)** (M)
|
||||
- **Jessie (Team Rocket)** (F)
|
||||
@@ -525,6 +565,13 @@
|
||||
- **Mari Kurihara** (F)
|
||||
- **Meiko Shiraki** (F, +1 alt)
|
||||
|
||||
### RWBY
|
||||
|
||||
- **Blake Belladonna** (F, prop)
|
||||
- **Ruby Rose** (F, prop)
|
||||
- **Weiss Schnee** (F, prop)
|
||||
- **Yang Xiao Long** (F)
|
||||
|
||||
### Ranma 1/2
|
||||
|
||||
- **Ranma Saotome** (M)
|
||||
@@ -634,6 +681,11 @@
|
||||
- **Elizabeth Liones** (F)
|
||||
- **Meliodas** (M)
|
||||
|
||||
### Tiger & Bunny
|
||||
|
||||
- **Barnaby Brooks Jr.** (M)
|
||||
- **Wild Tiger** (M)
|
||||
|
||||
### Tokyo Ghoul
|
||||
|
||||
- **Ken Kaneki** (M)
|
||||
@@ -644,6 +696,14 @@
|
||||
|
||||
- **Vash the Stampede** (M)
|
||||
|
||||
### Tsukihime
|
||||
|
||||
- **Arcueid Brunestud** (F)
|
||||
|
||||
### UTAU
|
||||
|
||||
- **Kasane Teto** (F)
|
||||
|
||||
### Urusei Yatsura
|
||||
|
||||
- **Lum Invader** (F)
|
||||
@@ -672,7 +732,7 @@
|
||||
- **Dark Magician Girl** (F, prop)
|
||||
- **Yami Yugi** (M)
|
||||
|
||||
## Comics & Cartoons (271)
|
||||
## Comics & Cartoons (282)
|
||||
|
||||
### Adventure Time
|
||||
|
||||
@@ -730,6 +790,10 @@
|
||||
|
||||
- **Betty Boop** (F)
|
||||
|
||||
### Bloodshot
|
||||
|
||||
- **Bloodshot** (M, masked, prop)
|
||||
|
||||
### Bob's Burgers
|
||||
|
||||
- **Bob Belcher** (M)
|
||||
@@ -788,11 +852,16 @@
|
||||
### Despicable Me
|
||||
|
||||
- **Gru** (M)
|
||||
- **Minion** (M, tiny, masked)
|
||||
|
||||
### Dora the Explorer
|
||||
|
||||
- **Dora the Explorer** (F, prop)
|
||||
|
||||
### East of West
|
||||
|
||||
- **Crow (East of West)** (F, masked, prop)
|
||||
|
||||
### Family Guy
|
||||
|
||||
- **Lois Griffin** (F)
|
||||
@@ -843,6 +912,8 @@
|
||||
### Hazbin Hotel
|
||||
|
||||
- **Alastor** (M, prop)
|
||||
- **Angel Dust** (M, masked)
|
||||
- **Charlie Morningstar** (F)
|
||||
|
||||
### Heavy Metal
|
||||
|
||||
@@ -865,7 +936,6 @@
|
||||
- **Avengelyne** (F, prop)
|
||||
- **Glory** (F)
|
||||
- **Lady Supreme** (F)
|
||||
- **Savage Dragon** (M)
|
||||
- **Spawn** (M, masked)
|
||||
- **The Maxx** (M, masked)
|
||||
|
||||
@@ -911,13 +981,13 @@
|
||||
- **Daffy Duck** (M, masked)
|
||||
- **Elmer Fudd** (M, prop)
|
||||
- **Foghorn Leghorn** (M, masked)
|
||||
- **Lola Bunny** (F)
|
||||
- **Lola Bunny** (F, masked)
|
||||
- **Marvin the Martian** (M, tiny, masked, prop)
|
||||
- **Porky Pig** (M, masked)
|
||||
- **Road Runner** (M, masked)
|
||||
- **Speedy Gonzales** (M, masked)
|
||||
- **Sylvester** (M, masked)
|
||||
- **Tasmanian Devil** (M)
|
||||
- **Tasmanian Devil** (M, masked)
|
||||
- **Tweety** (M, tiny, masked)
|
||||
- **Wile E. Coyote** (M, masked, prop)
|
||||
- **Yosemite Sam** (M, prop)
|
||||
@@ -935,6 +1005,10 @@
|
||||
- **Sorceress** (F, prop)
|
||||
- **Teela** (F, prop)
|
||||
|
||||
### Megamind
|
||||
|
||||
- **Megamind** (M, prop)
|
||||
|
||||
### Miraculous Ladybug
|
||||
|
||||
- **Bunnyx** (F, prop)
|
||||
@@ -971,6 +1045,7 @@
|
||||
### Peanuts
|
||||
|
||||
- **Charlie Brown** (M)
|
||||
- **Snoopy** (M, tiny, beast)
|
||||
|
||||
### Peepoodo
|
||||
|
||||
@@ -1000,14 +1075,31 @@
|
||||
|
||||
- **Reptar** (M, giant, beast)
|
||||
|
||||
### Saga
|
||||
|
||||
- **Prince Robot IV** (M, masked)
|
||||
|
||||
### Samurai Jack
|
||||
|
||||
- **Samurai Jack** (M, prop)
|
||||
|
||||
### Sanrio
|
||||
|
||||
- **Hello Kitty** (F, masked)
|
||||
- **Kuromi** (F, masked)
|
||||
|
||||
### Savage Dragon
|
||||
|
||||
- **Savage Dragon** (M, masked)
|
||||
|
||||
### Scott Pilgrim
|
||||
|
||||
- **Ramona Flowers** (F, prop)
|
||||
|
||||
### She-Ra and the Princesses of Power
|
||||
|
||||
- **Catra** (F)
|
||||
|
||||
### Sheena, Queen of the Jungle
|
||||
|
||||
- **Sheena** (F, prop)
|
||||
@@ -1191,7 +1283,7 @@
|
||||
- **Suprema** (F)
|
||||
- **Vogue** (F)
|
||||
|
||||
## DC (175)
|
||||
## DC (179)
|
||||
|
||||
### DC
|
||||
|
||||
@@ -1313,7 +1405,7 @@
|
||||
- **Ratcatcher 2** (F, prop)
|
||||
- **Red Claw** (F)
|
||||
- **Red Hood** (M, masked)
|
||||
- **Reverse-Flash** (M)
|
||||
- **Reverse-Flash** (M, masked)
|
||||
- **Rick Flag** (M, prop)
|
||||
- **Robin** (M)
|
||||
- **Rose Wilson** (F, prop)
|
||||
@@ -1346,6 +1438,7 @@
|
||||
- **Tomar-Re** (M)
|
||||
- **Two-Face** (M, prop)
|
||||
- **Vixen** (F)
|
||||
- **Volcana** (F)
|
||||
- **Waverider** (M)
|
||||
- **Wildcat** (M, masked)
|
||||
- **Wonder Girl (Cassie Sandsmark)** (F)
|
||||
@@ -1367,6 +1460,11 @@
|
||||
|
||||
- **Apache Chief** (M, giant)
|
||||
|
||||
### The Invisibles
|
||||
|
||||
- **Lord Fanny** (F)
|
||||
- **Ragged Robin** (F, +1 alt)
|
||||
|
||||
### The Sandman
|
||||
|
||||
- **Death of the Endless** (F)
|
||||
@@ -1376,6 +1474,7 @@
|
||||
- **Destiny of the Endless** (M, prop)
|
||||
- **Destruction of the Endless** (M)
|
||||
- **Dream of the Endless** (M, prop)
|
||||
- **Mervyn Pumpkinhead** (M, masked, prop)
|
||||
|
||||
### Watchmen
|
||||
|
||||
@@ -1386,7 +1485,7 @@
|
||||
- **Silk Spectre** (F)
|
||||
- **The Comedian** (M)
|
||||
|
||||
## Disney (111)
|
||||
## Disney (115)
|
||||
|
||||
### 101 Dalmatians
|
||||
|
||||
@@ -1417,8 +1516,10 @@
|
||||
- **Babette** (F, +1 alt, prop)
|
||||
- **Beast (Beauty and the Beast)** (M, masked)
|
||||
- **Belle** (F, prop)
|
||||
- **Cogsworth** (M, masked)
|
||||
- **Gaston** (M)
|
||||
- **Lumiere** (M, masked)
|
||||
- **Mrs. Potts** (F, beast)
|
||||
|
||||
### Big Hero 6
|
||||
|
||||
@@ -1539,6 +1640,10 @@
|
||||
|
||||
- **Pocahontas** (F)
|
||||
|
||||
### Raya and the Last Dragon
|
||||
|
||||
- **Raya** (F, prop)
|
||||
|
||||
### Robin Hood (1973)
|
||||
|
||||
- **Maid Marian** (F, masked)
|
||||
@@ -1615,6 +1720,10 @@
|
||||
|
||||
- **Carl Fredricksen** (M, prop)
|
||||
|
||||
### WALL-E
|
||||
|
||||
- **WALL-E** (M, beast)
|
||||
|
||||
### Wreck-It Ralph
|
||||
|
||||
- **Vanellope von Schweetz** (F)
|
||||
@@ -1625,7 +1734,7 @@
|
||||
- **Judy Hopps** (F)
|
||||
- **Nick Wilde** (M, masked)
|
||||
|
||||
## Fantasy & Literature (91)
|
||||
## Fantasy & Literature (92)
|
||||
|
||||
### Anne of Green Gables
|
||||
|
||||
@@ -1745,6 +1854,7 @@
|
||||
|
||||
### The Hunger Games
|
||||
|
||||
- **Effie Trinket** (F, +1 alt)
|
||||
- **Katniss Everdeen** (F, prop)
|
||||
|
||||
### The Lord of the Rings
|
||||
@@ -1793,7 +1903,7 @@
|
||||
|
||||
- **Zorro** (M, prop)
|
||||
|
||||
## Marvel (194)
|
||||
## Marvel (196)
|
||||
|
||||
### Marvel
|
||||
|
||||
@@ -1869,7 +1979,6 @@
|
||||
- **Jean Grey** (F)
|
||||
- **Jubilee** (F)
|
||||
- **Juggernaut** (M, giant, masked)
|
||||
- **Julia Carpenter** (F)
|
||||
- **Justice (New Warriors)** (M)
|
||||
- **Kang the Conqueror** (M, masked, +1 alt)
|
||||
- **Karnak** (M)
|
||||
@@ -1894,6 +2003,7 @@
|
||||
- **Mary Jane Watson** (F)
|
||||
- **Maximus** (M, +1 alt)
|
||||
- **Medusa** (F, +1 alt)
|
||||
- **Miles Morales** (M, masked)
|
||||
- **Mister Fantastic** (M)
|
||||
- **Mister Sinister** (M)
|
||||
- **Mistress Death** (F)
|
||||
@@ -1955,8 +2065,9 @@
|
||||
- **Speedball** (M)
|
||||
- **Spider-Gwen** (F)
|
||||
- **Spider-Man** (M, masked)
|
||||
- **Spider-Punk** (M, masked, prop)
|
||||
- **Spider-Woman** (F)
|
||||
- **Spider-Woman (Julia Carpenter)** (F)
|
||||
- **Spider-Woman (Julia Carpenter)** (F, +1 alt)
|
||||
- **Spiral** (F, prop)
|
||||
- **Sprite** (M, +1 alt)
|
||||
- **Squirrel Girl** (F)
|
||||
@@ -1965,6 +2076,7 @@
|
||||
- **Stature** (F, giant)
|
||||
- **Storm** (F)
|
||||
- **Sunfire (Exiles)** (F)
|
||||
- **Sylvie** (F, prop)
|
||||
- **Taskmaster** (M, masked, prop)
|
||||
- **Thanos** (M, giant)
|
||||
- **The Thing** (M)
|
||||
@@ -1992,7 +2104,7 @@
|
||||
- **Yondu** (M, prop)
|
||||
- **Zuras** (M)
|
||||
|
||||
## Movies & TV (233)
|
||||
## Movies & TV (243)
|
||||
|
||||
### A Nightmare on Elm Street
|
||||
|
||||
@@ -2011,7 +2123,7 @@
|
||||
### Anastasia
|
||||
|
||||
- **Anastasia** (F, +1 alt)
|
||||
- **Bartok** (M)
|
||||
- **Bartok** (M, tiny, beast)
|
||||
- **Dimitri** (M)
|
||||
- **Dowager Empress Marie** (F)
|
||||
- **Rasputin** (M, prop)
|
||||
@@ -2022,6 +2134,7 @@
|
||||
|
||||
### Back to the Future
|
||||
|
||||
- **Doc Brown** (M, prop)
|
||||
- **Marty McFly** (M)
|
||||
|
||||
### Barbarella
|
||||
@@ -2029,6 +2142,10 @@
|
||||
- **Barbarella** (F, +2 alt)
|
||||
- **The Great Tyrant (Black Queen)** (F, prop)
|
||||
|
||||
### Barbie
|
||||
|
||||
- **Barbie** (F, +2 alt)
|
||||
|
||||
### Battlestar Galactica
|
||||
|
||||
- **Cylon Centurion** (M, giant, masked)
|
||||
@@ -2097,10 +2214,15 @@
|
||||
### Doctor Who
|
||||
|
||||
- **Cyberman** (M, masked)
|
||||
- **Dalek** (M, beast)
|
||||
- **The Fourth Doctor** (M)
|
||||
- **The Tenth Doctor** (M, prop)
|
||||
- **Weeping Angel** (F, masked)
|
||||
|
||||
### Domo
|
||||
|
||||
- **Domo-kun** (M, masked)
|
||||
|
||||
### Duolingo
|
||||
|
||||
- **Duolingo Owl** (M, masked)
|
||||
@@ -2265,6 +2387,10 @@
|
||||
- **Jareth the Goblin King** (M, prop)
|
||||
- **Sarah Williams** (F)
|
||||
|
||||
### Legally Blonde
|
||||
|
||||
- **Elle Woods** (F, prop)
|
||||
|
||||
### Mad Max
|
||||
|
||||
- **Immortan Joe** (M, masked)
|
||||
@@ -2277,6 +2403,7 @@
|
||||
|
||||
### McDonald's
|
||||
|
||||
- **Birdie the Early Bird** (F, masked)
|
||||
- **Grimace** (M, masked)
|
||||
- **Hamburglar** (M, masked)
|
||||
- **Mayor McCheese** (M, masked)
|
||||
@@ -2358,6 +2485,10 @@
|
||||
|
||||
- **Ghostface** (M, masked, prop)
|
||||
|
||||
### Short Circuit
|
||||
|
||||
- **Johnny 5** (M, beast)
|
||||
|
||||
### Shrek
|
||||
|
||||
- **Lord Farquaad** (M, tiny)
|
||||
@@ -2394,8 +2525,9 @@
|
||||
- **Ilia** (F)
|
||||
- **Klingon** (M, prop)
|
||||
- **Mr. Spock** (M)
|
||||
- **Orion** (F, +1 alt)
|
||||
- **Seven of Nine** (F, +3 alt)
|
||||
- **Tellarite** (M)
|
||||
- **Tellarite** (M, masked)
|
||||
- **Uhura** (F)
|
||||
- **Vulcan** (M)
|
||||
- **Worf** (M, prop)
|
||||
@@ -2403,6 +2535,7 @@
|
||||
### Stranger Things
|
||||
|
||||
- **Eleven** (F)
|
||||
- **Vecna** (M, masked)
|
||||
|
||||
### Taroman
|
||||
|
||||
@@ -2419,6 +2552,7 @@
|
||||
### The Addams Family
|
||||
|
||||
- **Cousin Itt** (M, masked)
|
||||
- **Enid Sinclair** (F)
|
||||
- **Gomez Addams** (M)
|
||||
- **Lurch** (M)
|
||||
- **Morticia Addams** (F)
|
||||
@@ -2578,7 +2712,7 @@
|
||||
- **Anakin Skywalker** (M, prop)
|
||||
- **Asajj Ventress** (F, prop)
|
||||
- **Aurra Sing** (F, prop)
|
||||
- **BB-8** (M, masked)
|
||||
- **BB-8** (M, beast)
|
||||
- **Bantha** (M, giant, beast)
|
||||
- **Barriss Offee** (F, prop)
|
||||
- **Battle Droid** (M, masked)
|
||||
@@ -2614,7 +2748,7 @@
|
||||
- **Figrin D'an** (M, masked, prop)
|
||||
- **Finn** (M)
|
||||
- **General Grievous** (M, masked, prop)
|
||||
- **Gonk Droid** (M, masked)
|
||||
- **Gonk Droid** (M, beast)
|
||||
- **Gran** (M, masked)
|
||||
- **Grand Admiral Thrawn** (M)
|
||||
- **Grand Inquisitor** (M, prop)
|
||||
@@ -2662,7 +2796,7 @@
|
||||
- **Praetorian Guard** (M, masked, prop)
|
||||
- **Princess Leia Organa** (F, +5 alt)
|
||||
- **Qui-Gon Jinn** (M, prop)
|
||||
- **R2-D2** (M, masked)
|
||||
- **R2-D2** (M, beast)
|
||||
- **Rancor** (M, giant, masked)
|
||||
- **Rey** (F, prop)
|
||||
- **Sabine Wren** (F)
|
||||
@@ -2688,7 +2822,7 @@
|
||||
- **Zorii Bliss** (F, masked, prop)
|
||||
- **Zuckuss** (M, masked)
|
||||
|
||||
## Video Games (498)
|
||||
## Video Games (520)
|
||||
|
||||
### A Certain Scientific Railgun
|
||||
|
||||
@@ -2739,6 +2873,11 @@
|
||||
|
||||
- **Destined One (Black Myth: Wukong)** (M, masked)
|
||||
|
||||
### BlazBlue
|
||||
|
||||
- **Noel Vermillion** (F, prop)
|
||||
- **Ragna the Bloodedge** (M, prop)
|
||||
|
||||
### BloodRayne
|
||||
|
||||
- **Rayne** (F)
|
||||
@@ -2750,6 +2889,7 @@
|
||||
### Borderlands
|
||||
|
||||
- **Amara** (F)
|
||||
- **Claptrap** (M, beast)
|
||||
- **Handsome Jack** (M)
|
||||
- **Lilith (Borderlands)** (F)
|
||||
- **Mad Moxxi** (F)
|
||||
@@ -2791,15 +2931,20 @@
|
||||
|
||||
### Cyberpunk 2077
|
||||
|
||||
- **Adam Smasher** (M, masked)
|
||||
- **Johnny Silverhand** (M)
|
||||
- **Judy Alvarez** (F)
|
||||
- **Panam Palmer** (F, prop)
|
||||
- **Song So Mi** (F, +1 alt)
|
||||
|
||||
### Cyberpunk: Edgerunners
|
||||
|
||||
- **David Martinez** (M)
|
||||
- **Kiwi** (F)
|
||||
- **Lucy** (F)
|
||||
- **Rebecca (Cyberpunk)** (F, prop)
|
||||
- **Maine** (M)
|
||||
- **Rebecca (Cyberpunk)** (F, +1 alt, prop)
|
||||
- **Talia Yang** (F)
|
||||
|
||||
### Dark Souls
|
||||
|
||||
@@ -2895,6 +3040,7 @@
|
||||
- **Blaidd the Half-Wolf** (M, masked, prop)
|
||||
- **Malenia, Blade of Miquella** (F, +1 alt)
|
||||
- **Melina** (F)
|
||||
- **Messmer the Impaler** (M, prop)
|
||||
- **Queen Marika the Eternal** (F, prop)
|
||||
- **Ranni the Witch** (F)
|
||||
- **Rennala, Queen of the Full Moon** (F, prop)
|
||||
@@ -2907,6 +3053,7 @@
|
||||
### Fallout
|
||||
|
||||
- **Brotherhood of Steel Knight** (M, masked)
|
||||
- **Codsworth** (M, beast)
|
||||
- **Nick Valentine** (M)
|
||||
- **The Ghoul** (M, masked, prop)
|
||||
- **Vault Dweller** (M)
|
||||
@@ -2947,6 +3094,8 @@
|
||||
### Fire Emblem
|
||||
|
||||
- **Azura** (F)
|
||||
- **Byleth** (M, prop)
|
||||
- **Edelgard** (F, prop)
|
||||
- **Lucina** (F, prop)
|
||||
|
||||
### Gears of War
|
||||
@@ -2969,6 +3118,10 @@
|
||||
- **Yae Miko** (F)
|
||||
- **Zhongli** (M)
|
||||
|
||||
### Ghost of Tsushima
|
||||
|
||||
- **Jin Sakai** (M, prop)
|
||||
|
||||
### God of War
|
||||
|
||||
- **Freya** (F)
|
||||
@@ -3058,7 +3211,9 @@
|
||||
|
||||
### Kirby
|
||||
|
||||
- **King Dedede** (M, masked, prop)
|
||||
- **Kirby** (M, masked)
|
||||
- **Meta Knight** (M, masked, prop)
|
||||
|
||||
### League of Legends
|
||||
|
||||
@@ -3223,7 +3378,7 @@
|
||||
|
||||
### Pac-Man
|
||||
|
||||
- **Pac-Man** (M, masked)
|
||||
- **Pac-Man** (M, beast)
|
||||
|
||||
### Persona
|
||||
|
||||
@@ -3278,6 +3433,10 @@
|
||||
|
||||
- **Nakoruru** (F, prop)
|
||||
|
||||
### Shantae
|
||||
|
||||
- **Shantae** (F)
|
||||
|
||||
### Silent Hill
|
||||
|
||||
- **Nurse (Silent Hill)** (F, masked)
|
||||
@@ -3460,10 +3619,19 @@
|
||||
|
||||
- **Lara Croft** (F, prop)
|
||||
|
||||
### Touhou Project
|
||||
|
||||
- **Marisa Kirisame** (F, prop)
|
||||
- **Reimu Hakurei** (F, prop)
|
||||
- **Sakuya Izayoi** (F, prop)
|
||||
- **Yukari Yakumo** (F, prop)
|
||||
|
||||
### Undertale
|
||||
|
||||
- **Papyrus** (M, masked, prop)
|
||||
- **Sans** (M, masked, prop)
|
||||
- **Toriel** (F, masked)
|
||||
- **Undyne** (F, masked, prop)
|
||||
|
||||
### Valkyria Chronicles
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
# Creature reference
|
||||
|
||||
**261 creatures.** Each fills a hybrid's anatomy slots; the default colour palette is shown in parentheses.
|
||||
**266 creatures.** Each fills a hybrid's anatomy slots; the default colour palette is shown in parentheses.
|
||||
|
||||
## Mammals (55)
|
||||
|
||||
@@ -97,13 +97,14 @@
|
||||
- **toucan** (black and white)
|
||||
- **vulture** (sooty brown)
|
||||
|
||||
## Reptiles & Amphibians (24)
|
||||
## Reptiles & Amphibians (26)
|
||||
|
||||
- **alligator** (dark olive)
|
||||
- **axolotl** (pale pink)
|
||||
- **chameleon** (shifting teal)
|
||||
- **cobra** (olive and gold)
|
||||
- **crocodile** (swamp-green)
|
||||
- **frilled lizard** (sandy tan)
|
||||
- **frog** (bright green)
|
||||
- **gecko** (leaf-green)
|
||||
- **gila monster** (black and coral)
|
||||
@@ -120,6 +121,7 @@
|
||||
- **salamander** (black and gold)
|
||||
- **sea turtle** (olive green)
|
||||
- **snapping turtle** (muddy brown)
|
||||
- **stegosaurus** (mottled olive)
|
||||
- **tortoise** (earthy olive)
|
||||
- **triceratops** (slate grey-green)
|
||||
- **tyrannosaurus rex** (mottled olive-green)
|
||||
@@ -154,7 +156,7 @@
|
||||
- **tardigrade** (translucent amber)
|
||||
- **wasp** (black and yellow)
|
||||
|
||||
## Marine Life (29)
|
||||
## Marine Life (31)
|
||||
|
||||
- **anglerfish** (abyssal black)
|
||||
- **clownfish** (bright orange)
|
||||
@@ -162,11 +164,13 @@
|
||||
- **cuttlefish** (mottled sand)
|
||||
- **dolphin** (pale grey)
|
||||
- **eel** (olive-green)
|
||||
- **giant isopod** (pale lilac grey)
|
||||
- **goblin shark** (flabby pale rose)
|
||||
- **hammerhead shark** (slate grey)
|
||||
- **horseshoe crab** (dark bronze)
|
||||
- **jellyfish** (translucent rose)
|
||||
- **koi** (white and orange)
|
||||
- **leafy sea dragon** (olive yellow)
|
||||
- **lionfish** (russet red)
|
||||
- **lobster** (deep blue-black)
|
||||
- **manta ray** (ink-blue and white)
|
||||
@@ -230,7 +234,7 @@
|
||||
- **radial alien** (pale coral)
|
||||
- **reptilian alien** (venom-green)
|
||||
|
||||
## Mythic & Fantasy (40)
|
||||
## Mythic & Fantasy (41)
|
||||
|
||||
- **banshee** (spectral pale grey)
|
||||
- **basilisk** (venomous green)
|
||||
@@ -263,6 +267,7 @@
|
||||
- **pegasus** (pearl white)
|
||||
- **phoenix** (fiery orange-gold)
|
||||
- **qilin** (burnished gold)
|
||||
- **quetzalcoatl** (emerald green)
|
||||
- **satyr** (earthy brown)
|
||||
- **selkie** (wet seal grey)
|
||||
- **sphinx** (sandstone-gold)
|
||||
|
||||
+57
-11
@@ -23,9 +23,13 @@ that is what the Creature node is for.
|
||||
|
||||
## Under consideration
|
||||
|
||||
**Under consideration is empty.** The 0.87.0 survey list was worked to completion at 0.88.0: everything with a
|
||||
real case shipped, and everything else was closed into [Decided against](#decided-against)
|
||||
rather than left to be re-surveyed. Add a row here only with a fresh, written case.
|
||||
Nothing is open; the last row (the Tellarite snout) closed in 2.1.0 with the `subject` lead noun.
|
||||
|
||||
**Engine and UX backlog** (found in the 1.6.0 review; its five fixes shipped in 1.7.0, and the
|
||||
tight-shot legwear, free-text `held_item` and expression-sheet rows in 1.10.0, see
|
||||
`docs/history.md`):
|
||||
|
||||
Empty: the gaze field and the noun-expression article both shipped in 2.0.0.
|
||||
|
||||
**Researched and skipped — do not re-survey.** Valorant, Apex Legends,
|
||||
Monster Hunter, Skyrim, Splatoon, FNAF, Among Us, Minecraft, Mortal Shell. Each is an armoured,
|
||||
@@ -67,12 +71,22 @@ reason Ryze, Swain and Viktor were declined below.
|
||||
|
||||
Closed with a reason. Reopen only with a **new** argument, not a repeat of the request.
|
||||
|
||||
### Engine and UX
|
||||
|
||||
| Candidate | Why |
|
||||
|---|---|
|
||||
| A negative and/or tags output | Maintainer: not needed. (The subject/scene half of the same row shipped at 1.8.0 as `subject_text`.) |
|
||||
| An on-node readout of the resolved prompt | Maintainer: not needed. |
|
||||
|
||||
### Individual characters
|
||||
|
||||
| Candidate | Why |
|
||||
|---|---|
|
||||
| Anxiety (Inside Out) | **Declined at 1.8.0 on the render bar.** The look is a teal turtleneck, high trousers and boots over bright orange skin, and the model could not hold it: two renders kept pale human skin (the orange only reached the hair) and spread the teal from the sweater onto the trousers and boots, so the tile read as a pale redhead in a teal outfit. Body-paint wording that works for a single-colour figure (Megamind's blue) fails when a second saturated costume colour is present. Reopen with a costume that is not a second saturated colour, or if the model's skin-colour handling changes. |
|
||||
| Kliff (Crimson Desert) | **Revisited and DECLINED at 1.4.0.** The original reason was wrong: Kliff is a *fixed* protagonist (set face, body and voice, the Geralt model), not a vendor-built one -- only his hair, facial hair, tattoos and outfit *colours* are customizable. The decline stands on the other half: his equipment and clothing are explicitly "highly customizable", so there is still no single canonical outfit to describe, and what is left -- a bearded man in fantasy leathers -- is the silhouette `Geralt` and `Conan the Barbarian` already carry. Reopen only if a marketing-canonical outfit becomes the settled default look. |
|
||||
| M3GAN (1.5.0 maintainer shortlist) | **Adults-only bar.** Canonically a child-sized android doll modelled on a young girl: rendering her as a child breaks the bar, and rendering her as an adult is not canon. Approved on the shortlist, declined at research. |
|
||||
| Alt Cunningham, Goro Takemura, Rogue, Hanako Arasaka, Kerry Eurodyne, Dorio, Faraday (Cyberpunk 2077 / Edgerunners) | **Considered and declined by the maintainer at 2.2.0.** Proposed as the rest of the Cyberpunk cast after the 2.2.0 batch; not wanted. Do not re-propose without a new reason. |
|
||||
| Pilar (Cyberpunk: Edgerunners) | **Declined at 2.2.0 on sources.** The brief (white pompadour, pink skin, pointed ears) contradicts the wiki (black mohawk, golden robotic hands, goggle cyberware to the chin) and tag counts were too thin to settle it. Reopen with a reference image. |
|
||||
| Marinette Dupain-Cheng, Adrien Agreste (civilian) | Ordinary modern teen dress. Their transformed looks (Ladybug, Cat Noir) carry them. |
|
||||
| Jessica Jones, Marion Ravenwood, Baby Houseman, Frankie Foster, Peggy Hill, Luanne Platter | Everyday modern dress. Fails the "iconic *and* specific outfit" bar that admitted Trinity, Mia Wallace and Sandy Olsson. |
|
||||
| Anya Forger, Beatrice (Re:Zero) | Human children in ordinary clothes. Distinct from the accepted child *cosplays* (Dora, the Powerpuff Girls, Tina Belcher, Charlie Brown), whose looks are ordinary clothing on an adult wearer. See the mascot-suit distinction in architecture.md — it does **not** rescue these two. |
|
||||
@@ -98,7 +112,6 @@ Closed with a reason. Reopen only with a **new** argument, not a repeat of the r
|
||||
|
||||
| Krieg (Borderlands) | Near-duplicate of the shipped `Psycho (Borderlands)`, which already carries the bandage mask, the strap harness and the buzz axe. `Zer0` and `Sir Hammerlock` shipped from the same request because neither overlaps anything on the roster. |
|
||||
| Maya (Borderlands) | `Lilith (Borderlands)` already carries the glowing blue Siren tattoos down one arm, which is the whole visual identity of the class - and unlike `Amara` (shipped 0.98.0 on the strength of her six arms), Maya has no feature Lilith lacks. |
|
||||
| Claptrap (Borderlands) | A one-wheeled box with a single lens. Fails **both** halves of the animal/mascot split: nobody can be inside it (so it is not the mascot-suit case) and it is a machine, not a beast (so `body_plan: "feral"` does not apply either). |
|
||||
|
||||
| Faith Lehane, Willow Rosenberg, Cordelia Chase, Anya Jenkins (Buffy the Vampire Slayer) | All four wear similar modern clothing to the shipped `Buffy Summers` (tank tops, jackets, jeans). The only differentiators are hair color and minor style variations, which is not enough visual distinction to earn a separate entry. The roster enforces a uniqueness bar, and these fail it — they would render as "a woman in a leather jacket" without the name doing the work. |
|
||||
| Kaguya Shinomiya, Chika Fujiwara, Miko Iino, Ai Hayasaka (Kaguya-sama: Love Is War) | All four wear the same school uniform; only hair color and style differ. This is the exact pattern the uniqueness bar closes against — same costume with cosmetic variations would render as identical silhouettes without the name doing the work. |
|
||||
@@ -146,7 +159,11 @@ Closed with a reason. Reopen only with a **new** argument, not a repeat of the r
|
||||
| Dan Hibiki, Evil Ryu, Violent Ken, Shin Akuma (Street Fighter) | Recolours or powered-up states of the shipped `Ryu` / `Ken Masters` / `Akuma` gi silhouettes -- the Shadow Jago call. **Evil Ryu ships as a `costumes` alternate on `Ryu`** (torn black gi, red aura, glowing red eyes), which is the shape rule 2 asks for. |
|
||||
| Seth, Dee Jay, Necro, Hakan (Street Fighter) | Bare-chested fighters whose remaining garment is trousers; the body alone does not separate them from shipped fighters. |
|
||||
| Q, Twelve, JP, Rashid, Sodom (Street Fighter) | Q's trench coat, fedora and featureless mask duplicate the shipped `Rorschach`; Twelve has no worn look at all; JP is an older man in a long coat who needs the name; Rashid and Sodom are narrower cuts whose shapes the roster already carries. |
|
||||
| Bastion, Orisa, Echo, Wrecking Ball (Overwatch) | Machines with no worn garments -- the Fulgore and Claptrap calls. Nobody can be inside Wrecking Ball's ball mech. |
|
||||
| Bastion, Orisa, Echo (Overwatch) | Humanoid machines with no worn garments -- the Fulgore call. |
|
||||
| Wrecking Ball (Overwatch) | Re-decided at 2.1.0 on the feral route and still declined: a hamster pilot inside a ball mech is two subjects in one frame, and Overwatch is already one of the roster's largest game franchises. |
|
||||
| BD-1, Mouse Droid (Star Wars), K-9 (Doctor Who) | Considered with the 2.1.0 machine batch. BD-1 is a game-only deep cut; the MSE-6 is a plain black box on wheels; K-9 would render as a generic boxy robot dog. Star Wars and Doctor Who keep their droids in R2-D2, BB-8, Gonk, Chopper and the Dalek. |
|
||||
| Hololive VTubers (Gawr Gura and others), Touhou's Remilia, Flandre and Cirno | From the 2.1.0 sd-character-finder survey, whose other survivors shipped. The VTubers are avatars of real performers (maintainer's call). The three Touhou characters fail the child-bodied rule. |
|
||||
| Kiana Kaslana (Honkai Impact 3rd), Caesar Zeppeli (JoJo) | From the 2.1.0 survey second tier. Kiana has no one stable outfit (each battlesuit is a different look) and Caesar's outfit colours could not be verified across the manga and anime; the defining items alone (a headband, fingerless gloves) render as a generic man. |
|
||||
| The rest of the Overwatch cast (Sigma, Baptiste, Sojourn, Ramattra, Mauga, Lifeweaver, Illari, Venture, Juno, Hazard, Freja, Wuyang) | Real looks, but each repeats a silhouette the curated set already carries (armoured soldier, robed omnic, tattooed brawler, sci-fi ranger). Overwatch stops where new entries stop adding visual ground. |
|
||||
| Aether (Genshin Impact) | The same kit and silhouette as the shipped `Lumine` in the other gender; the node's own gender control already crossplays. |
|
||||
| Keqing, Nilou, Eula, Xiao, Diluc (Genshin Impact) | Each is a well-drawn anime fantasy look, but the differentiator against a shipped neighbour is hair colour and elemental trim. `Mona`, `Wanderer` and `Arlecchino` shipped because a hat, a hat-and-veil and a pair of X-shaped pupils survive at silhouette scale. |
|
||||
@@ -157,6 +174,9 @@ Closed with a reason. Reopen only with a **new** argument, not a repeat of the r
|
||||
| Sylvia (KonoSuba: Legend of Crimson) | A film-only antagonist whose worn look -- a crimson leather dress, white gloves and stockings, with elf ears -- renders as a generic elf woman in a red dress without the name doing the work. |
|
||||
| Yunyun, Wiz, Chris / Eris, Beldia (KonoSuba) | Yunyun's Crimson Demon outfit without Megumin's hat and staff reads as a generic anime girl; Wiz is a plain robed shopkeeper; Chris/Eris is a thief outfit or a generic goddess gown; Beldia is black plate armour whose one distinguishing trait, a carried head, does not render. |
|
||||
| Ian Lightfoot (Onward) | A hoodie and jeans on a blue elf; `Barley Lightfoot` carries the film (the Captain Mizuki pattern). |
|
||||
| The Corinthian (The Sandman) | **Declined at 1.11.0 on the render bar.** The mouths in his eye sockets ([Netflix's cast reference](https://www.netflix.com/tudum/galleries/the-sandman-cast-gallery)) are the only thing that separates him from a man in a cream suit, and the model would not draw them. An anatomy note left the random eye colour and shape in the prose, so the retry used an `eyes` override ("two small gaping mouths lined with sharp white teeth for eyes"), which drew ordinary eyes, and the platinum hair aged him past seventy despite a pinned age of 33. Without the sockets the look is ordinary modern dress. |
|
||||
| Feyd-Rautha (Dune: Part Two) | **Declined at 1.11.0 on the render bar.** The chalk-white hairless head is the whole look; the black armour alone is any villain. Two wordings failed: the `bald` flag drew hair, and a "smooth shaved bald head" costume clause drew a dark-skinned man with the white skin ignored. |
|
||||
| Verso (Clair Obscur: Expedition 33) | Long dark hair, a full beard and a heavy dark fur-trimmed coat with a sword: a near-duplicate of the shipped `Gustave` from the same game. Nothing in the look separates the two at silhouette scale. |
|
||||
| Proxima the Broodseeker, and the Mortal Shell / Mortal Shell 2 shells | Full-plate knights under closed or horned helmets -- the armoured silhouette the "Researched and skipped" list closes against -- from a niche soulslike series. |
|
||||
|
||||
### Whole classes
|
||||
@@ -174,6 +194,10 @@ Closed with a reason. Reopen only with a **new** argument, not a repeat of the r
|
||||
|
||||
### Creature-node animals — the recurring rejects
|
||||
|
||||
> **barreleye (1.11.0, render-tested and declined).** [MBARI's observation](https://www.mbari.org/news/researchers-solve-mystery-of-deep-sea-fish-with-tubular-eyes-and-transparent-head/) shows tubular eyes inside a transparent head dome, and that dome is the only thing that separates it from the generic fish closed below. Two renders lost it: the first drew ordinary external fish eyes; the retry led the head phrase with the dome and put the eyes inside it, and drew green eyes on an opaque fish head, on legs. Revisit only with a model that holds the anatomy.
|
||||
|
||||
> **vampire squid (1.11.0, render-tested and declined).** The webbed cloak joining its arms is the anatomy that separates it from `squid`, and neither render showed it. The first drew a woman in a scaly mushroom-shaped hat; the retry named the animal in the head phrase and drew a squid-headed alien with red eyes, still with a human-shaped face and the arms hidden. A red squid already ships through `squid`'s palette pool.
|
||||
|
||||
> **arachne / drider (1.5.0, render-tested and declined).** The spider-taur was built with its lower body leading the first slot and rendered twice; both times the anthropomorphic form produced an ordinary man in a suit standing in front of a giant spider. The Creature node keeps a humanoid body under that form by design, and only the centaur survives it (a horse body is too strongly learned to lose). `owlbear` and `bighorn ram` passed the same test against `owl` / `bear` / `gryphon` and `goat` / `markhor` and shipped.
|
||||
|
||||
Two lists were sifted against the creature roster: ~600 animals at 0.93.0 (ten shipped)
|
||||
@@ -204,7 +228,7 @@ orb-weaver / widow spiders** (tarantula), **luna moth** (moth, and it is a palet
|
||||
and pufferfish own the spine-ball), **swordfish / marlin / sailfish** and **betta**
|
||||
(thinner differentiators than lionfish, which took the fish slot), **wombat / wallaby**
|
||||
(koala, kangaroo), **opossum** (raccoon, rat), **gibbon** (orangutan shipped instead),
|
||||
**dog** (wolf).
|
||||
**dog** (wolf), **thorny devil** (horned lizard already owns the spiny desert lizard).
|
||||
|
||||
**The insect list (0.94.0)** resolved into twelve anatomies, and the ~390 names spent
|
||||
themselves on ten the class already owns. Its rejection patterns, on top of the ones
|
||||
@@ -253,6 +277,9 @@ butterfly** (the `translucent` finish), **death's-head hawkmoth** (a marking on
|
||||
| Frank-N-Furter (1.1.0 retro/camp survey) | **Dr. Frank-N-Furter** (The Rocky Horror Picture Show) — identical character, no add needed. |
|
||||
| The Fourth Doctor (1.1.0 retro/camp survey) | **Ships verbatim** (Doctor Who) — the long multicoloured scarf, floppy hat, tweed coat description in the candidate matches the existing entry exactly. |
|
||||
| Captain Nemo (1.1.0 retro/camp survey) | **Ships** under Twenty Thousand Leagues Under the Sea — same character (Victorian submariner uniform, turban, diving helmet prop), no add needed. |
|
||||
| Racing Driver (1.11.0 plan) | **Race Car Driver** archetype |
|
||||
| Kirin (1.11.0 plan) | **qilin** creature |
|
||||
| Nudibranch (1.11.0 plan) | **nudibranch** creature, under the same name |
|
||||
| Vintage deep-sea diver (0.98.0 render session) | **Deep Sea Diver** archetype — its first costume is the brass-and-canvas suit with the helmet under one arm. The backlog row was never closed. |
|
||||
|
||||
> **Those three came from an external audit at 0.97.0 that reported them "verified
|
||||
@@ -294,13 +321,32 @@ nothing — the arithmetic is in [architecture.md](architecture.md).
|
||||
| `accessories`: anything | The season gate exists since 1.5.0, so a seasonal value is no longer blocked — but the field carries the eyewear `weights` map, so any addition must reprice it to hold eyewear at 25% (`ConceptShareTests`). |
|
||||
| `outfit_style`: western, grunge | **Overlap (1.5.0 maintainer call).** Western is `casual` plus `cowboy boots` and the `vintage retro` western-yoke shirt; grunge is `edgy alternative` / `streetwear` and the `1990s Grunge` archetype. `utility workwear` shipped instead, because the location gate left workshops and docks with no plausible style. |
|
||||
|
||||
### Field options — declined (1.6.0)
|
||||
|
||||
From the third-party wildcard packs mined at 1.6.0. What shipped is in docs/history.md → "1.6.0".
|
||||
|
||||
| Candidate | Why |
|
||||
|---|---|
|
||||
| `expression`: ahegao, eyes rolled back, aroused, screaming, funny face, "resting face" | Sexual, grotesque or a joke rather than a face a believable person wears in a portrait. |
|
||||
| `hair_color`: blue-black | `raven black` already is the natural blue-black, and as a dye name it renders visibly blue. `burgundy` shipped instead, in `vivid`. |
|
||||
| `hair_style`: side-shaved | Its gates would duplicate the undercut's, and `undercut` already draws the silhouette. |
|
||||
| `hair_style`: finger waves, beehive, old-Hollywood waves | Date a random person to a period, the same bar that declined victory rolls. The period archetypes carry them deliberately. |
|
||||
| `hair_style`: curly bob, long shag | Already composed from `hair_length` x `hair_texture`. |
|
||||
| `outfit_description`: onesies, kigurumi | Costume, not loungewear. Pyjamas shipped under `loungewear` instead. |
|
||||
| A `weather` widget, or weather baked into location names | Weather shipped as a `lighting` family; history.md → "1.6.0" has the reasoning. |
|
||||
| Camera makes, film stock, colour grading, art style, skin-realism detail | Rendering style, not the person. They belong to `comfyui-stylebook`. |
|
||||
|
||||
### Archetypes — declined
|
||||
|
||||
| Candidate | Why |
|
||||
|---|---|
|
||||
| Saree (half of the 1.5.0 "Saree + Sherwani" pair) | **Already ships.** `Bollywood Heroine` carries a chiffon sari, a silk sari with its pallu and a lehenga. Only the sherwani is a real gap; a sherwani-led look would need its own case. |
|
||||
| Saree (half of the 1.5.0 "Saree + Sherwani" pair) | **Already ships.** `Bollywood Heroine` carries a chiffon sari, a silk sari with its pallu and a lehenga. The sherwani was the real gap and ships in `Lehenga & Sherwani`. |
|
||||
| Techwear / Gorpcore | **Cyberpunk Netrunner already is a techwear look** — its costume is literally "a {dark_color} techwear jacket with {color} LED trim, utility straps, and a sleek visor". Stripping the sci-fi trim to leave shell-jacket-and-cargo-trousers is not a second silhouette, it is the same one with less to draw. |
|
||||
| A dark/gothic counterpart to Kawaii Street Fashion | Declined on two counts. The pastel silhouette is already `Kawaii Street Fashion` (ruffled blouse, tiered skirt, platform Mary-Janes) and the dark one is already `1990s Goth`, so the candidate sits between two shipped entries rather than beside them. The maintainer also rejected the subculture's usual name outright. **Do not re-propose it under a synonym.** |
|
||||
| Zoot Suit women's (pachuca) variant (1.11.0 plan) | **Declined at 1.11.0 on the render bar; `Zoot Suit` ships men's only.** The long drape jacket and the watch chain are the whole look. Both wordings failed: the first (a long-line jacket over a short pleated skirt) did not read as a zoot suit, and the retry (fingertip-length drape jacket, pegged trousers) drew a sleeveless cropped vest with no chain. |
|
||||
| Renaissance noblewoman, Victorian lady, Edwardian lady, Greek noblewoman, Steampunk aristocrat (2.2.0 historical list) | **Already ship** as `Renaissance Noble`, `Victorian Lady`, `Gibson Girl`, `Greek Goddess` and `Steampunk Inventor`. Baroque gentleman, Rococo marquise and Georgian gentleman were folded into the new `Rococo Courtier`. |
|
||||
| Mughal noblewoman, Belle Epoque gown, "cinematic period costume" (2.2.0 historical list) | Mughal court dress overlaps `Lehenga & Sherwani`; a Belle Epoque gown sits between `Victorian Lady` and `Gibson Girl`; "cinematic period costume" is a style, not a look. |
|
||||
| Rockabilly (1.11.0 plan) | Sits between two shipped entries: `1950s Greaser` carries the cuffed jeans, leather jacket and pompadour, and `Pin-up Model` the halter dress, victory rolls and red lip. A third entry would be a blend of the two, not a new look. |
|
||||
|
||||
---
|
||||
|
||||
@@ -311,12 +357,12 @@ Open. No decision has been made either way.
|
||||
| # | Question | Where it stands |
|
||||
|---|---|---|
|
||||
| 2 | **Costume text that asserts a body trait against an unpinned random field.** A costume reading "on a hulking frame" can render beside "a very slim build" in the same sentence, because `physique` applies only in Full-character mode while `costume` renders in both. | Measured at 0.90.0, **33 entries** (`Colossus`, `Gollum`, `Jabba the Hutt`, `Space Marine`, `Brook`, …). Not swept, for two reasons. First, the `signature` / `physique` split is *deliberate* — the schema says physique is Full-mode-only, so a randomly-built person wearing the costume is the intended behaviour, and most of the 33 are mascot suits where the suit supplies the bulk regardless of the wearer. Second, a naive regex reported **171** and was wrong: "tiny" on `Trinity` and `Neo` is their *sunglasses*, "enormous" on `Edna Mode` is her *lashes*. Requiring the adjective to modify a body noun cut it to 33. **If this is ever taken up, measure it again from scratch — do not trust the 171.** The four entries fixed at 0.90.0 (`Dexter Jettster`, `Figrin D'an`, `Ithorian`, plus the new Fallout/GoT entries) pin the trait in `signature`, which applies in both modes; that is the pattern to follow. |
|
||||
| 5 | **Birdie the Early Bird** (McDonald's, from the 1.1.0 Mayor McCheese survey) — legible mascot silhouette (giant yellow bird, bonnet) but judged a weak icon next to the roster's existing bird mascots. | No decision made either way. Revisit with a stronger case (e.g. a distinguishing prop or silhouette detail the existing bird mascots lack) rather than re-proposing the same description. |
|
||||
| 10 | **Some archetype `outfit_style` proxies disagree with the location gate** (e.g. `Opera Singer` evening formal at an outdoor amphitheater). | Harmless in Full lock level (both locked, the rule only logs); in Essentials the location is steered to a fitting venue. Only worth touching if a real render looks wrong. |
|
||||
| 12 | **Women's `hair_length` is flat across 14 lengths**, so about 22% of women draw a buzz, very short hair or a pixie. | Not a coherence bug and never flagged; a population lean would be a deliberate bias decision (the `age` question below has the same shape). Decide the target share first. |
|
||||
| 13 | **Two values stay reachable only through a lock or a narrow style.** No men's garment bares the back, so a man's shoulder-blade tattoo never shows by default; `dark dress socks` shows only under a cuffed or ankle-length hem (smart casual, vintage retro). | Both are true to life; both used to be reached only through false positives (`dress` matching "dress shirt"). Revisit only if a render asks for them. |
|
||||
| 11 | **`age` tops out at 70.** An everyday population has older people too. | A bias decision, not a gap: 60/65/70 are 3 of 19 values (~16%, near the world share of 60+). Adding 75/80 flat would push that to ~24%; a weighted add would hold it. Decide the target share first. |
|
||||
| 14 | **Indoor everyday locations draw studio-rig lighting about as often as practical light.** A 5,000-seed sweep (1.5.5 audit) on `location_setting: Indoor` put `harsh angled spotlight`, `butterfly beauty lighting`, `high key bright even lighting`, `low key moody single light source` and `dramatic single overhead spotlight` each at 4.7–5.1% of renders, alongside ordinary practical sources like `warm lantern light` (5.3%) and `golden bokeh lights in background` (5.1%) — a photo-studio rig lighting a living room or a kitchen at the same rate as a window or a lamp. | Not flagged in the 1.5.5 audit (only vitiligo/eye-colour/wet-look/tattoo-placement were). `lighting` is a `FIELD_FAMILIES` field (`studio_shape` / `studio_stage`), so fixing this the bias-safe way needs a whole-family exclusion keyed on `location_setting` or `location`, not a partial cull — see the family-weight rule. Revisit only with a render that actually looks wrong. |
|
||||
|
||||
**Closed at 2.0.0 - rows 11, 12 and 14, the gaze field and the noun-expression article.** Ages 75 and 80 joined `age` (60+ held near 16%), the three shortest women's lengths were weighted down (about 10% of women), a portrait rig no longer lights an everyday interior, the `looking` poses became the `gaze` field, and a noun expression takes an article. See docs/history.md -> "2.0.0".
|
||||
|
||||
**Closed at 1.11.0 - Birdie the Early Bird (was row 5).** Shipped on the mascot-suit route. The aviator cap with goggles, the orange pigtails and the pink flight suit are the silhouette detail the roster's other bird mascots lack, and the render held all three.
|
||||
|
||||
**Closed at 1.5.0 round 4 — rows 3, 6 and 8.** The pockets gesture now needs a garment that
|
||||
HAS pockets (an allowlist the other way round), so a harness over a bare chest cannot put its
|
||||
|
||||
+49
-5
@@ -30,7 +30,8 @@ A field's dropdown value *is* its lock state — there is no separate lock butto
|
||||
**character only** and add your own scene in a larger prompt.
|
||||
|
||||
Master buttons act on all fields: **Unlock all (set to Random)** and **Roll + lock all fields**
|
||||
(freeze the current random values so you can tweak from there). Click a group header to collapse
|
||||
(lock every `Random` field to one coherent roll from the engine, so you can tweak from there;
|
||||
fields you already locked are kept and shape the roll). Click a group header to collapse
|
||||
it.
|
||||
|
||||
To go the other way — start from *nothing* and switch on only a handful of fields — set
|
||||
@@ -145,7 +146,7 @@ to check that your custom field values are valid options.
|
||||
Seed `42`, Female, `hair_color` = auburn:
|
||||
|
||||
> A 22-year-old Finnish woman with an average build, short, and very pale skin. …
|
||||
> Her hair is mid back loosely wavy auburn, French twist. … She wears a fresh-faced
|
||||
> Her hair is mid back loosely wavy auburn, worn in a French twist. … She wears a fresh-faced
|
||||
> dewy look, cool browns and taupes eyeshadow, …, and natural finish. She has a
|
||||
> simple gold bracelet, a chain bracelet, and medium length natural nails. She
|
||||
> wears a burgundy wrap dress with gold hoop earrings and strappy heels, carrying
|
||||
@@ -153,6 +154,13 @@ Seed `42`, Female, `hair_color` = auburn:
|
||||
|
||||
`prompt_json` mirrors this, nested by group with a small `_meta` block.
|
||||
|
||||
`subject_text` (the third output, 1.8.0) is the same prose cut down to the **person and outfit**: no
|
||||
pose, held item, expression, mouth or scene. Use it when a larger graph brings its own pose and
|
||||
scene and would otherwise re-parse them out. It keeps the `Cosplaying as ...` label, face, hair,
|
||||
makeup, jewellery and the full outfit including footwear (framing is scene, so shoes are never
|
||||
trimmed). It is built from the same roll with no extra random draws, so `prompt_text` and
|
||||
`prompt_json` are unchanged.
|
||||
|
||||
## Turnaround views
|
||||
|
||||
The **Identity Forge Turnaround** node builds a reference set: one character, every camera
|
||||
@@ -180,20 +188,56 @@ Three controls, all camera:
|
||||
combined with the angle and replaces whatever framing the character resolved to.
|
||||
- **`pose`** - a standing, symmetric stance, so the only thing changing between views is
|
||||
the camera. An asymmetric pose (a hand on one hip) reads as a different body from each
|
||||
side. `Keep the character's pose` leaves it alone for a looser character sheet.
|
||||
side. `Keep the character's pose` leaves it alone for a looser character sheet. A pinned
|
||||
stance also drops the character's `gaze`, so each view's camera decides where the head
|
||||
points.
|
||||
|
||||
The straight-back view drops the face automatically. A t2i model draws whatever the prose
|
||||
names, so "bright blue eyes ... deep red lip colour ... a broad smile" made it turn the head
|
||||
to show them - which is not a back view. On `6-back` the Face and Makeup fields, `facial_hair`
|
||||
and `expression` are simply omitted; hair, costume, build, earrings and the scene all stay,
|
||||
to show them - which is not a back view. On `6-back` the Face and Makeup fields, `facial_hair`,
|
||||
`expression` and `gaze` are simply omitted; hair, costume, build, earrings and the scene all stay,
|
||||
and a masked character keeps their mask. Nothing is ever *negated* (a prompt that says "the
|
||||
face is not visible" draws a face). `5-rear-three-quarter` keeps its face description, because
|
||||
at that angle a cheek and jaw genuinely are in frame.
|
||||
|
||||
Some cosplayers also carry a back-of-costume description (2.0.0: Superman's cape, the
|
||||
spider on Spider-Man's back). The back and rear-three-quarter views use it in place of the
|
||||
front costume text, so a chest emblem is not drawn on the back. Entries without one keep
|
||||
their usual costume text in every view.
|
||||
|
||||
Everything else belongs on the Identity Forge node - it owns the character and the scene,
|
||||
the Turnaround owns only the camera. For a clean reference sheet, set that node's
|
||||
`location_setting` to `Studio / solid backdrop` and lock `composition` to `centered symmetry`.
|
||||
|
||||
## Expression sheets
|
||||
|
||||
The **Identity Forge Expression Sheet** node is wired exactly like the Turnaround
|
||||
(`prompt_json` into `character_json`, `prompt` into CLIPTextEncode, `view_label` into Save
|
||||
Image's `filename_prefix`), and it owns only the face's emotion: `expression`, `mood` and
|
||||
`smile_type`. The person, outfit, scene and pose are the document's, unchanged.
|
||||
|
||||
- **`sheet`** - `Basic (6)` (neutral, smile, laughing, surprised, serious, sad), `Full (10)`
|
||||
(adds angry, smirk, thoughtful, worried) or `Smiles (3)` (smile, laughing, smirk).
|
||||
- **`framing`** - `Head and shoulders` by default, so the face is large enough to read.
|
||||
`Unspecified` keeps the character's own framing.
|
||||
- **`gaze`** - `Keep the character's gaze` by default; pick one (into the camera, off past
|
||||
it, a head tilt, a lifted chin) to hold it across every view, or `None` to state none.
|
||||
|
||||
Each view sets a fixed, curated expression/mood/smile combination, so a sheet is
|
||||
deterministic and no two views land on the same face. A face-covering character (a mascot
|
||||
head, a full helmet) has no visible expression, so the sheet emits one view, `1-masked`.
|
||||
|
||||
## Holding something specific
|
||||
|
||||
The Modifier node's optional **`held_item`** box takes a free-text noun phrase - `a red
|
||||
paper umbrella`, `a steaming mug of coffee` - voiced as "holding ...". It counts as a
|
||||
lock: poses that need both hands free are dropped, and it replaces a Cosplayer's own prop
|
||||
when the Modifier sits downstream of it. Leave it empty for none.
|
||||
|
||||
A related framing rule: a shot that crops the legs (a close-up or a waist-up portrait) no
|
||||
longer names tights or stockings in the prose, the same way it drops the shoes. The JSON
|
||||
keeps the value, and a cowboy shot (mid-thigh up) still voices it.
|
||||
|
||||
## Notes
|
||||
|
||||
- The ethnicity-to-skin-tone link is a *soft* bias over coarse regional bands; lock `skin_tone`
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
# A clone of main must never pull ~200 MB of samples.
|
||||
images/
|
||||
|
||||
# Deployment output, rebuilt from the actual published images by publish.py.
|
||||
# Keep it on gh-pages; a checked-in main-branch snapshot silently goes stale.
|
||||
*/manifest.json
|
||||
|
||||
# Scratch output from cross_reference.py. Regenerate on demand, never commit.
|
||||
missing.txt
|
||||
orphans.txt
|
||||
|
||||
+11
-1
@@ -10,7 +10,17 @@ Three sibling galleries, one per preset node:
|
||||
|
||||
**Images live only on the `gh-pages` branch.** `gallery/.gitignore` blocks `images/`
|
||||
on `main`, so cloning or pulling the repo never drags down hundreds of megabytes of
|
||||
samples. The pages, scripts and manifests live on `main`; publishing copies them across.
|
||||
samples. Page sources and scripts live on `main`; publishing copies the pages across.
|
||||
Each gallery's `manifest.json` is deployment output on `gh-pages`, rebuilt from the
|
||||
images actually published there. It is ignored on `main` so a stale snapshot cannot
|
||||
misreport coverage. `gallery/render_manifest.json` is separate: it stays tracked as
|
||||
the render hash gate.
|
||||
|
||||
For a local gallery preview, generate its manifest against your local optimized JPEGs:
|
||||
|
||||
```bash
|
||||
python gallery/cosplay/build_manifest.py --images gallery/cosplay/images
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+3518
-2765
File diff suppressed because it is too large
Load Diff
+96
-6
@@ -1,4 +1,5 @@
|
||||
import { app } from "../../scripts/app.js";
|
||||
import { api } from "../../scripts/api.js";
|
||||
|
||||
/*
|
||||
* IdentityForge frontend extension.
|
||||
@@ -10,8 +11,8 @@ import { app } from "../../scripts/app.js";
|
||||
*
|
||||
* Features (all degrade gracefully; any failure is caught so the node still
|
||||
* works headless):
|
||||
* - Master buttons: set every field to "Random", or lock every field to a
|
||||
* concrete random value.
|
||||
* - Master buttons: set every field to "Random", or lock every field to the
|
||||
* values one engine run resolves (POST /identity_forge/roll).
|
||||
* - Collapsible group sections so the many widgets stay manageable.
|
||||
* - Gender pool-swapping: changing the gender toggle restricts the
|
||||
* gender-divergent dropdowns and resets any now-invalid lock to "Random".
|
||||
@@ -93,7 +94,8 @@ const FIELD_TO_GROUP = {
|
||||
"tattoos": "Body",
|
||||
"legwear": "Clothing",
|
||||
"tattoo_placement": "Body",
|
||||
"outerwear": "Clothing"
|
||||
"outerwear": "Clothing",
|
||||
"gaze": "Setting & Shot"
|
||||
};
|
||||
const GENDER_POOLS = {
|
||||
"bust": {
|
||||
@@ -257,6 +259,11 @@ const GENDER_POOLS = {
|
||||
"wispy bangs",
|
||||
"wolf cut",
|
||||
"hime cut",
|
||||
"faux hawk",
|
||||
"mohawk",
|
||||
"Fulani braids",
|
||||
"goddess braids",
|
||||
"passion twists",
|
||||
"None"
|
||||
],
|
||||
"Male": [
|
||||
@@ -321,6 +328,11 @@ const GENDER_POOLS = {
|
||||
"side-swept bangs",
|
||||
"wispy bangs",
|
||||
"wolf cut",
|
||||
"faux hawk",
|
||||
"mohawk",
|
||||
"Fulani braids",
|
||||
"goddess braids",
|
||||
"passion twists",
|
||||
"None"
|
||||
],
|
||||
"Any": [
|
||||
@@ -384,6 +396,11 @@ const GENDER_POOLS = {
|
||||
"wispy bangs",
|
||||
"wolf cut",
|
||||
"hime cut",
|
||||
"faux hawk",
|
||||
"mohawk",
|
||||
"Fulani braids",
|
||||
"goddess braids",
|
||||
"passion twists",
|
||||
"comb over",
|
||||
"mullet",
|
||||
"None"
|
||||
@@ -632,6 +649,34 @@ function lockToRandomValue(node, w) {
|
||||
setWidgetValue(node, w, pick);
|
||||
}
|
||||
|
||||
// 1.7.0: lock every "Random" field to what ONE engine run resolves (POST /identity_forge/roll),
|
||||
// so the locks honour the weights and constraints. Picking each dropdown uniformly could lock
|
||||
// a pair the engine forbids. A field the run left absent locks to "None". Without the route
|
||||
// (an older server) it falls back to the uniform pick rather than doing nothing.
|
||||
async function rollAndLockAll(node, fields) {
|
||||
const widgets = {};
|
||||
for (const w of node.widgets || []) {
|
||||
if (w.type !== "button" && w.name !== "seed" && w.value != null) widgets[w.name] = w.value;
|
||||
}
|
||||
let values = null;
|
||||
try {
|
||||
const resp = await api.fetchApi("/identity_forge/roll", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ widgets, seed: Math.floor(Math.random() * 2 ** 32) }),
|
||||
});
|
||||
if (resp.ok) values = (await resp.json()).values;
|
||||
} catch (e) { /* fall through to the uniform pick */ }
|
||||
if (!values) console.warn("[IdentityForge] /identity_forge/roll unavailable; rolling each field uniformly");
|
||||
for (const w of fields) {
|
||||
if (w.value !== "Random") continue;
|
||||
if (!values) { lockToRandomValue(node, w); continue; }
|
||||
const opts = (w.options && w.options.values) || [];
|
||||
const v = Object.prototype.hasOwnProperty.call(values, w.name) ? values[w.name] : "None";
|
||||
if (opts.includes(v)) setWidgetValue(node, w, v);
|
||||
}
|
||||
}
|
||||
|
||||
// --- collapse helpers (hide a widget without losing its type) -------------
|
||||
function hideWidget(w) {
|
||||
if (w.__hidden) return;
|
||||
@@ -674,6 +719,35 @@ function resize(node) {
|
||||
//: "Fix node (recreate)", which produces a genuinely new node object.
|
||||
const ALL_RANDOM_LABEL = "🎲 Unlock all (set to Random)";
|
||||
|
||||
//: 1.8.0 -- save `widgets_values` in SCHEMA order, so a tool without a browser can read it.
|
||||
//: ComfyUI saves one value per entry of `node.widgets`, positionally. This file re-sorts
|
||||
//: the widgets and inserts buttons and headers, so the saved array no longer matched the
|
||||
//: node's declared inputs. The visual grouping stays (in the Nodes 2.0 renderer array
|
||||
//: order IS display order); only the SAVED array is written in schema order, marked with
|
||||
//: a node property so a load can tell it from a pre-1.8.0 interleaved save. The same
|
||||
//: three helpers live in identity_forge_creature.js and identity_forge_cosplayer.js.
|
||||
const WIDGET_ORDER_PROPERTY = "if_widget_order";
|
||||
|
||||
function serializeInSchemaOrder(node, o) {
|
||||
const schema = node.__ifSchemaWidgets;
|
||||
if (!schema || !o) return;
|
||||
o.widgets_values = schema.map((w) => w.value);
|
||||
o.properties = { ...(o.properties || {}), [WIDGET_ORDER_PROPERTY]: "schema" };
|
||||
}
|
||||
|
||||
/** Saved schema-order values expanded into display order, or null for an unmarked save. */
|
||||
function expandSchemaOrderValues(node, info) {
|
||||
const schema = node.__ifSchemaWidgets;
|
||||
const values = info?.widgets_values;
|
||||
if (!schema || !Array.isArray(values)) return null;
|
||||
if (info.properties?.[WIDGET_ORDER_PROPERTY] !== "schema") return null;
|
||||
// A widget the save does not reach (a field appended in a later release) keeps its default.
|
||||
return (node.widgets || []).map((w) => {
|
||||
const i = schema.indexOf(w);
|
||||
return i > -1 && i < values.length ? values[i] : w.value;
|
||||
});
|
||||
}
|
||||
|
||||
function setupIdentityForge(node) {
|
||||
const original = node.widgets ? node.widgets.slice() : [];
|
||||
if (!original.length) return;
|
||||
@@ -682,6 +756,7 @@ function setupIdentityForge(node) {
|
||||
// set of group headers, and wraps the gender callback twice. The Cosplayer file
|
||||
// has had this since 0.89.0; the other four setups had not (0.97.0).
|
||||
if (original.some((w) => w.name === ALL_RANDOM_LABEL)) return;
|
||||
node.__ifSchemaWidgets = original;
|
||||
|
||||
const fields = original.filter(isFieldWidget);
|
||||
const fieldSet = new Set(fields);
|
||||
@@ -699,8 +774,8 @@ function setupIdentityForge(node) {
|
||||
resize(node);
|
||||
}, { serialize: false });
|
||||
|
||||
const lockAll = node.addWidget("button", "🔒 Roll + lock all fields", null, () => {
|
||||
for (const w of fields) if (w.value === "Random") lockToRandomValue(node, w);
|
||||
const lockAll = node.addWidget("button", "🔒 Roll + lock all fields", null, async () => {
|
||||
await rollAndLockAll(node, fields);
|
||||
resize(node);
|
||||
}, { serialize: false });
|
||||
|
||||
@@ -783,6 +858,7 @@ function applyGender(node, gender) {
|
||||
* and false when READING, and every existing Cosplayer node had to be recreated.
|
||||
*/
|
||||
const FIELDS_ADDED_BY_RELEASE = [
|
||||
["gaze"], // 2.0.0
|
||||
["outerwear"], // 1.5.0
|
||||
["tattoos", "tattoo_placement", "legwear"], // 0.90.0
|
||||
];
|
||||
@@ -842,6 +918,17 @@ app.registerExtension({
|
||||
return result;
|
||||
};
|
||||
|
||||
const onSerialize = nodeType.prototype.onSerialize;
|
||||
nodeType.prototype.onSerialize = function (o) {
|
||||
const result = onSerialize ? onSerialize.apply(this, arguments) : undefined;
|
||||
try {
|
||||
serializeInSchemaOrder(this, o);
|
||||
} catch (err) {
|
||||
console.error("[IdentityForge] schema-order save failed:", err);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
// Must wrap `configure` itself, not `onConfigure`: LiteGraph applies
|
||||
// widgets_values and THEN calls onConfigure, so by then the damage is done.
|
||||
// `onNodeCreated` has already run at this point, so node.widgets is built and
|
||||
@@ -849,7 +936,10 @@ app.registerExtension({
|
||||
const configure = nodeType.prototype.configure;
|
||||
nodeType.prototype.configure = function (info) {
|
||||
try {
|
||||
if (info && Array.isArray(info.widgets_values)) {
|
||||
const expanded = expandSchemaOrderValues(this, info);
|
||||
if (expanded) {
|
||||
info = { ...info, widgets_values: expanded };
|
||||
} else if (info && Array.isArray(info.widgets_values)) {
|
||||
info = { ...info, widgets_values: padLegacyWidgetValues(this, info.widgets_values) };
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
+208
-19
@@ -96,6 +96,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Vasquez",
|
||||
"Xenomorph"
|
||||
],
|
||||
"Alita: Battle Angel": [
|
||||
"Alita"
|
||||
],
|
||||
"Amagi Brilliant Park": [
|
||||
"Isuzu Sento",
|
||||
"Latifa Fleuranza",
|
||||
@@ -175,6 +178,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Zuko"
|
||||
],
|
||||
"Back to the Future": [
|
||||
"Doc Brown",
|
||||
"Marty McFly"
|
||||
],
|
||||
"Baldur's Gate 3": [
|
||||
@@ -189,6 +193,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Barbarella",
|
||||
"The Great Tyrant (Black Queen)"
|
||||
],
|
||||
"Barbie": [
|
||||
"Barbie"
|
||||
],
|
||||
"Barsoom": [
|
||||
"Dejah Thoris"
|
||||
],
|
||||
@@ -204,8 +211,10 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Babette",
|
||||
"Beast (Beauty and the Beast)",
|
||||
"Belle",
|
||||
"Cogsworth",
|
||||
"Gaston",
|
||||
"Lumiere"
|
||||
"Lumiere",
|
||||
"Mrs. Potts"
|
||||
],
|
||||
"Beetlejuice": [
|
||||
"Beetlejuice",
|
||||
@@ -251,12 +260,19 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Black Myth: Wukong": [
|
||||
"Destined One (Black Myth: Wukong)"
|
||||
],
|
||||
"Black Rock Shooter": [
|
||||
"Black Rock Shooter"
|
||||
],
|
||||
"Blade Runner": [
|
||||
"Pris",
|
||||
"Rachael",
|
||||
"Rick Deckard",
|
||||
"Roy Batty"
|
||||
],
|
||||
"BlazBlue": [
|
||||
"Noel Vermillion",
|
||||
"Ragna the Bloodedge"
|
||||
],
|
||||
"Bleach": [
|
||||
"Byakuya Kuchiki",
|
||||
"Grimmjow",
|
||||
@@ -278,6 +294,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Bloodborne": [
|
||||
"Lady Maria"
|
||||
],
|
||||
"Bloodshot": [
|
||||
"Bloodshot"
|
||||
],
|
||||
"Bob's Burgers": [
|
||||
"Bob Belcher",
|
||||
"Gene Belcher",
|
||||
@@ -287,6 +306,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
],
|
||||
"Borderlands": [
|
||||
"Amara",
|
||||
"Claptrap",
|
||||
"Handsome Jack",
|
||||
"Lilith (Borderlands)",
|
||||
"Mad Moxxi",
|
||||
@@ -423,14 +443,19 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Cuphead"
|
||||
],
|
||||
"Cyberpunk 2077": [
|
||||
"Adam Smasher",
|
||||
"Johnny Silverhand",
|
||||
"Judy Alvarez",
|
||||
"Panam Palmer"
|
||||
"Panam Palmer",
|
||||
"Song So Mi"
|
||||
],
|
||||
"Cyberpunk: Edgerunners": [
|
||||
"David Martinez",
|
||||
"Kiwi",
|
||||
"Lucy",
|
||||
"Rebecca (Cyberpunk)"
|
||||
"Maine",
|
||||
"Rebecca (Cyberpunk)",
|
||||
"Talia Yang"
|
||||
],
|
||||
"DC": [
|
||||
"Alan Scott",
|
||||
@@ -584,6 +609,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Tomar-Re",
|
||||
"Two-Face",
|
||||
"Vixen",
|
||||
"Volcana",
|
||||
"Waverider",
|
||||
"Wildcat",
|
||||
"Wonder Girl (Cassie Sandsmark)",
|
||||
@@ -600,7 +626,10 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Momo Ayase"
|
||||
],
|
||||
"Danganronpa": [
|
||||
"Junko Enoshima"
|
||||
"Chiaki Nanami",
|
||||
"Junko Enoshima",
|
||||
"Monokuma",
|
||||
"Nagito Komaeda"
|
||||
],
|
||||
"Danger Girl": [
|
||||
"Abbey Chase",
|
||||
@@ -688,7 +717,10 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Ryuk"
|
||||
],
|
||||
"Delicious in Dungeon": [
|
||||
"Marcille Donato"
|
||||
"Falin Touden",
|
||||
"Laios Touden",
|
||||
"Marcille Donato",
|
||||
"Senshi"
|
||||
],
|
||||
"Demon Slayer": [
|
||||
"Akaza",
|
||||
@@ -704,7 +736,8 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Zenitsu Agatsuma"
|
||||
],
|
||||
"Despicable Me": [
|
||||
"Gru"
|
||||
"Gru",
|
||||
"Minion"
|
||||
],
|
||||
"Destiny": [
|
||||
"Mara Sov"
|
||||
@@ -721,10 +754,14 @@ const COSPLAYER_FRANCHISES = {
|
||||
],
|
||||
"Doctor Who": [
|
||||
"Cyberman",
|
||||
"Dalek",
|
||||
"The Fourth Doctor",
|
||||
"The Tenth Doctor",
|
||||
"Weeping Angel"
|
||||
],
|
||||
"Domo": [
|
||||
"Domo-kun"
|
||||
],
|
||||
"Donkey Kong": [
|
||||
"Donkey Kong"
|
||||
],
|
||||
@@ -734,6 +771,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Dora the Explorer": [
|
||||
"Dora the Explorer"
|
||||
],
|
||||
"Doraemon": [
|
||||
"Doraemon"
|
||||
],
|
||||
"Dorohedoro": [
|
||||
"Nikaido"
|
||||
],
|
||||
@@ -796,6 +836,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Durarara!!": [
|
||||
"Celty Sturluson"
|
||||
],
|
||||
"East of West": [
|
||||
"Crow (East of West)"
|
||||
],
|
||||
"Edward Scissorhands": [
|
||||
"Edward Scissorhands"
|
||||
],
|
||||
@@ -803,6 +846,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Blaidd the Half-Wolf",
|
||||
"Malenia, Blade of Miquella",
|
||||
"Melina",
|
||||
"Messmer the Impaler",
|
||||
"Queen Marika the Eternal",
|
||||
"Ranni the Witch",
|
||||
"Rennala, Queen of the Full Moon",
|
||||
@@ -854,6 +898,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
],
|
||||
"Fallout": [
|
||||
"Brotherhood of Steel Knight",
|
||||
"Codsworth",
|
||||
"Nick Valentine",
|
||||
"The Ghoul",
|
||||
"Vault Dweller"
|
||||
@@ -877,7 +922,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
],
|
||||
"Fate/Grand Order": [
|
||||
"Jeanne d'Arc (Fate)",
|
||||
"Scathach"
|
||||
"Mash Kyrielight",
|
||||
"Scathach",
|
||||
"Tamamo no Mae"
|
||||
],
|
||||
"Fate/stay night": [
|
||||
"Gilgamesh",
|
||||
@@ -927,6 +974,8 @@ const COSPLAYER_FRANCHISES = {
|
||||
],
|
||||
"Fire Emblem": [
|
||||
"Azura",
|
||||
"Byleth",
|
||||
"Edelgard",
|
||||
"Lucina"
|
||||
],
|
||||
"Firefly": [
|
||||
@@ -965,6 +1014,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Frieren: Beyond Journey's End": [
|
||||
"Fern",
|
||||
"Frieren",
|
||||
"Himmel",
|
||||
"Ubel"
|
||||
],
|
||||
"Frozen": [
|
||||
@@ -1049,6 +1099,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Ghost in the Shell": [
|
||||
"Motoko Kusanagi"
|
||||
],
|
||||
"Ghost of Tsushima": [
|
||||
"Jin Sakai"
|
||||
],
|
||||
"Ghostbusters": [
|
||||
"Ghostbuster",
|
||||
"Stay Puft Marshmallow Man"
|
||||
@@ -1135,7 +1188,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Sirius Black"
|
||||
],
|
||||
"Hazbin Hotel": [
|
||||
"Alastor"
|
||||
"Alastor",
|
||||
"Angel Dust",
|
||||
"Charlie Morningstar"
|
||||
],
|
||||
"Heavy Metal": [
|
||||
"Julie",
|
||||
@@ -1216,7 +1271,6 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Avengelyne",
|
||||
"Glory",
|
||||
"Lady Supreme",
|
||||
"Savage Dragon",
|
||||
"Spawn",
|
||||
"The Maxx"
|
||||
],
|
||||
@@ -1235,7 +1289,8 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Inuyasha",
|
||||
"Kagome Higurashi",
|
||||
"Kikyo",
|
||||
"Sango"
|
||||
"Sango",
|
||||
"Sesshomaru"
|
||||
],
|
||||
"Invincible": [
|
||||
"Allen the Alien",
|
||||
@@ -1262,10 +1317,12 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Dio Brando",
|
||||
"Giorno Giovanna",
|
||||
"Jolyne Cujoh",
|
||||
"Jonathan Joestar",
|
||||
"Joseph Joestar",
|
||||
"Josuke Higashikata",
|
||||
"Jotaro Kujo",
|
||||
"Lisa Lisa"
|
||||
"Lisa Lisa",
|
||||
"Noriaki Kakyoin"
|
||||
],
|
||||
"Johnny Bravo": [
|
||||
"Johnny Bravo"
|
||||
@@ -1307,6 +1364,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Kellogg's": [
|
||||
"Tony the Tiger"
|
||||
],
|
||||
"Kemono Friends": [
|
||||
"Serval (Kemono Friends)"
|
||||
],
|
||||
"Kick-Ass": [
|
||||
"Hit-Girl"
|
||||
],
|
||||
@@ -1361,7 +1421,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Sora"
|
||||
],
|
||||
"Kirby": [
|
||||
"Kirby"
|
||||
"King Dedede",
|
||||
"Kirby",
|
||||
"Meta Knight"
|
||||
],
|
||||
"KonoSuba": [
|
||||
"Aqua (KonoSuba)",
|
||||
@@ -1418,6 +1480,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Zilean",
|
||||
"Zyra"
|
||||
],
|
||||
"Legally Blonde": [
|
||||
"Elle Woods"
|
||||
],
|
||||
"Legend": [
|
||||
"King Arthur",
|
||||
"Merlin"
|
||||
@@ -1473,6 +1538,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Madoka Magica": [
|
||||
"Homura Akemi (Devil)",
|
||||
"Kyoko Sakura",
|
||||
"Kyubey",
|
||||
"Madoka Kaname (Ultimate)",
|
||||
"Mami Tomoe",
|
||||
"Sayaka Miki"
|
||||
@@ -1483,6 +1549,10 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Magic: The Gathering": [
|
||||
"Liliana Vess"
|
||||
],
|
||||
"Magical Girl Lyrical Nanoha": [
|
||||
"Fate Testarossa",
|
||||
"Nanoha Takamachi"
|
||||
],
|
||||
"Mars Attacks!": [
|
||||
"The Martian Ambassador"
|
||||
],
|
||||
@@ -1559,7 +1629,6 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Jean Grey",
|
||||
"Jubilee",
|
||||
"Juggernaut",
|
||||
"Julia Carpenter",
|
||||
"Justice (New Warriors)",
|
||||
"Kang the Conqueror",
|
||||
"Karnak",
|
||||
@@ -1584,6 +1653,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Mary Jane Watson",
|
||||
"Maximus",
|
||||
"Medusa",
|
||||
"Miles Morales",
|
||||
"Mister Fantastic",
|
||||
"Mister Sinister",
|
||||
"Mistress Death",
|
||||
@@ -1645,6 +1715,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Speedball",
|
||||
"Spider-Gwen",
|
||||
"Spider-Man",
|
||||
"Spider-Punk",
|
||||
"Spider-Woman",
|
||||
"Spider-Woman (Julia Carpenter)",
|
||||
"Spiral",
|
||||
@@ -1655,6 +1726,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Stature",
|
||||
"Storm",
|
||||
"Sunfire (Exiles)",
|
||||
"Sylvie",
|
||||
"Taskmaster",
|
||||
"Thanos",
|
||||
"The Thing",
|
||||
@@ -1708,6 +1780,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Teela"
|
||||
],
|
||||
"McDonald's": [
|
||||
"Birdie the Early Bird",
|
||||
"Grimace",
|
||||
"Hamburglar",
|
||||
"Mayor McCheese",
|
||||
@@ -1719,6 +1792,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Mega Man": [
|
||||
"Mega Man"
|
||||
],
|
||||
"Megamind": [
|
||||
"Megamind"
|
||||
],
|
||||
"Metal Gear": [
|
||||
"Quiet",
|
||||
"Solid Snake"
|
||||
@@ -1768,7 +1844,8 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Moana"
|
||||
],
|
||||
"Mobile Suit Gundam": [
|
||||
"Char Aznable"
|
||||
"Char Aznable",
|
||||
"Suletta Mercury"
|
||||
],
|
||||
"Monogatari": [
|
||||
"Hitagi Senjougahara",
|
||||
@@ -1912,6 +1989,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Sanji",
|
||||
"Shanks",
|
||||
"Shirahoshi",
|
||||
"Tony Tony Chopper",
|
||||
"Trafalgar Law",
|
||||
"Usopp",
|
||||
"Yamato (One Piece)"
|
||||
@@ -1974,7 +2052,8 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Stocking Anarchy"
|
||||
],
|
||||
"Peanuts": [
|
||||
"Charlie Brown"
|
||||
"Charlie Brown",
|
||||
"Snoopy"
|
||||
],
|
||||
"Peepoodo": [
|
||||
"Dr. Monique Pussycat"
|
||||
@@ -2037,9 +2116,13 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Dawn",
|
||||
"Eevee",
|
||||
"Elesa",
|
||||
"Gardevoir",
|
||||
"Gary Oak",
|
||||
"Gengar",
|
||||
"Gloria (Pokemon)",
|
||||
"Gyarados",
|
||||
"Hilda (Pokemon)",
|
||||
"Iono",
|
||||
"Iris",
|
||||
"James (Team Rocket)",
|
||||
"Jessie (Team Rocket)",
|
||||
@@ -2084,6 +2167,12 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Pulp Fiction": [
|
||||
"Mia Wallace"
|
||||
],
|
||||
"RWBY": [
|
||||
"Blake Belladonna",
|
||||
"Ruby Rose",
|
||||
"Weiss Schnee",
|
||||
"Yang Xiao Long"
|
||||
],
|
||||
"Rainbow Brite": [
|
||||
"Rainbow Brite"
|
||||
],
|
||||
@@ -2099,6 +2188,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Ratchet & Clank": [
|
||||
"Rivet"
|
||||
],
|
||||
"Raya and the Last Dragon": [
|
||||
"Raya"
|
||||
],
|
||||
"Re:Zero": [
|
||||
"Emilia",
|
||||
"Ram",
|
||||
@@ -2162,6 +2254,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Rugrats": [
|
||||
"Reptar"
|
||||
],
|
||||
"Saga": [
|
||||
"Prince Robot IV"
|
||||
],
|
||||
"Sailor Moon": [
|
||||
"Luna (Sailor Moon)",
|
||||
"Queen Beryl",
|
||||
@@ -2182,6 +2277,13 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Samurai Shodown": [
|
||||
"Nakoruru"
|
||||
],
|
||||
"Sanrio": [
|
||||
"Hello Kitty",
|
||||
"Kuromi"
|
||||
],
|
||||
"Savage Dragon": [
|
||||
"Savage Dragon"
|
||||
],
|
||||
"Scooby-Doo": [
|
||||
"Daphne Blake",
|
||||
"Fred Jones",
|
||||
@@ -2194,12 +2296,21 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Scream": [
|
||||
"Ghostface"
|
||||
],
|
||||
"Shantae": [
|
||||
"Shantae"
|
||||
],
|
||||
"She-Ra and the Princesses of Power": [
|
||||
"Catra"
|
||||
],
|
||||
"Sheena, Queen of the Jungle": [
|
||||
"Sheena"
|
||||
],
|
||||
"Sherlock Holmes": [
|
||||
"Sherlock Holmes"
|
||||
],
|
||||
"Short Circuit": [
|
||||
"Johnny 5"
|
||||
],
|
||||
"Shrek": [
|
||||
"Lord Farquaad",
|
||||
"Princess Fiona",
|
||||
@@ -2305,6 +2416,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Ilia",
|
||||
"Klingon",
|
||||
"Mr. Spock",
|
||||
"Orion",
|
||||
"Seven of Nine",
|
||||
"Tellarite",
|
||||
"Uhura",
|
||||
@@ -2458,7 +2570,8 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Topaz"
|
||||
],
|
||||
"Stranger Things": [
|
||||
"Eleven"
|
||||
"Eleven",
|
||||
"Vecna"
|
||||
],
|
||||
"Strawberry Shortcake": [
|
||||
"Strawberry Shortcake"
|
||||
@@ -2600,6 +2713,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
],
|
||||
"The Addams Family": [
|
||||
"Cousin Itt",
|
||||
"Enid Sinclair",
|
||||
"Gomez Addams",
|
||||
"Lurch",
|
||||
"Morticia Addams",
|
||||
@@ -2668,6 +2782,7 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Quasimodo"
|
||||
],
|
||||
"The Hunger Games": [
|
||||
"Effie Trinket",
|
||||
"Katniss Everdeen"
|
||||
],
|
||||
"The Incredibles": [
|
||||
@@ -2679,6 +2794,10 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Syndrome",
|
||||
"Violet"
|
||||
],
|
||||
"The Invisibles": [
|
||||
"Lord Fanny",
|
||||
"Ragged Robin"
|
||||
],
|
||||
"The Iron Giant": [
|
||||
"The Iron Giant"
|
||||
],
|
||||
@@ -2806,7 +2925,8 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Despair of the Endless",
|
||||
"Destiny of the Endless",
|
||||
"Destruction of the Endless",
|
||||
"Dream of the Endless"
|
||||
"Dream of the Endless",
|
||||
"Mervyn Pumpkinhead"
|
||||
],
|
||||
"The Seven Deadly Sins": [
|
||||
"Diane",
|
||||
@@ -2879,6 +2999,10 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Panthro",
|
||||
"Tygra"
|
||||
],
|
||||
"Tiger & Bunny": [
|
||||
"Barnaby Brooks Jr.",
|
||||
"Wild Tiger"
|
||||
],
|
||||
"Tokyo Ghoul": [
|
||||
"Ken Kaneki",
|
||||
"Rize Kamishiro",
|
||||
@@ -2893,6 +3017,12 @@ const COSPLAYER_FRANCHISES = {
|
||||
"The Darkness (Jackie Estacado)",
|
||||
"Velocity"
|
||||
],
|
||||
"Touhou Project": [
|
||||
"Marisa Kirisame",
|
||||
"Reimu Hakurei",
|
||||
"Sakuya Izayoi",
|
||||
"Yukari Yakumo"
|
||||
],
|
||||
"Toy Story": [
|
||||
"Bo Peep",
|
||||
"Buzz Lightyear",
|
||||
@@ -2912,15 +3042,23 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Tron": [
|
||||
"Quorra"
|
||||
],
|
||||
"Tsukihime": [
|
||||
"Arcueid Brunestud"
|
||||
],
|
||||
"Twenty Thousand Leagues Under the Sea": [
|
||||
"Captain Nemo"
|
||||
],
|
||||
"UTAU": [
|
||||
"Kasane Teto"
|
||||
],
|
||||
"Ultraman": [
|
||||
"Ultraman"
|
||||
],
|
||||
"Undertale": [
|
||||
"Papyrus",
|
||||
"Sans"
|
||||
"Sans",
|
||||
"Toriel",
|
||||
"Undyne"
|
||||
],
|
||||
"Underworld": [
|
||||
"Selene (Underworld)"
|
||||
@@ -2962,6 +3100,9 @@ const COSPLAYER_FRANCHISES = {
|
||||
"Voltron": [
|
||||
"Princess Allura"
|
||||
],
|
||||
"WALL-E": [
|
||||
"WALL-E"
|
||||
],
|
||||
"Warhammer 40,000": [
|
||||
"Commissar",
|
||||
"Sister of Battle",
|
||||
@@ -3104,12 +3245,44 @@ function filteredOptions(allOptions, franchise, currentValue) {
|
||||
return kept;
|
||||
}
|
||||
|
||||
//: 1.8.0 -- save `widgets_values` in SCHEMA order, so a tool without a browser can read it.
|
||||
//: ComfyUI saves one value per entry of `node.widgets`, positionally. This file re-sorts
|
||||
//: the widgets and inserts buttons and headers, so the saved array no longer matched the
|
||||
//: node's declared inputs. The visual grouping stays (in the Nodes 2.0 renderer array
|
||||
//: order IS display order); only the SAVED array is written in schema order, marked with
|
||||
//: a node property so a load can tell it from a pre-1.8.0 interleaved save. The same
|
||||
//: three helpers live in identity_forge_creature.js and identity_forge_cosplayer.js.
|
||||
const WIDGET_ORDER_PROPERTY = "if_widget_order";
|
||||
|
||||
function serializeInSchemaOrder(node, o) {
|
||||
const schema = node.__ifSchemaWidgets;
|
||||
if (!schema || !o) return;
|
||||
o.widgets_values = schema.map((w) => w.value);
|
||||
o.properties = { ...(o.properties || {}), [WIDGET_ORDER_PROPERTY]: "schema" };
|
||||
}
|
||||
|
||||
/** Saved schema-order values expanded into display order, or null for an unmarked save. */
|
||||
function expandSchemaOrderValues(node, info) {
|
||||
const schema = node.__ifSchemaWidgets;
|
||||
const values = info?.widgets_values;
|
||||
if (!schema || !Array.isArray(values)) return null;
|
||||
if (info.properties?.[WIDGET_ORDER_PROPERTY] !== "schema") return null;
|
||||
// A widget the save does not reach (a field appended in a later release) keeps its default.
|
||||
return (node.widgets || []).map((w) => {
|
||||
const i = schema.indexOf(w);
|
||||
return i > -1 && i < values.length ? values[i] : w.value;
|
||||
});
|
||||
}
|
||||
|
||||
function setupCosplayer(node) {
|
||||
const widgets = node.widgets || [];
|
||||
const character = widgets.find((w) => w.name === CHARACTER_WIDGET);
|
||||
if (!character) return;
|
||||
// Re-entry guard: onNodeCreated can fire again for the same node on some paths.
|
||||
if (widgets.some((w) => w.name === FILTER_WIDGET)) return;
|
||||
// Before the filter is added: the schema widgets, which is what a stock node saves.
|
||||
// `franchise_filter` is then never saved, matching its own tooltip.
|
||||
node.__ifSchemaWidgets = widgets.slice();
|
||||
|
||||
// Snapshot the pristine list once; every filter is derived from this, never
|
||||
// from the currently-filtered list (which would narrow irreversibly).
|
||||
@@ -3426,13 +3599,29 @@ app.registerExtension({
|
||||
return result;
|
||||
};
|
||||
|
||||
const onSerialize = nodeType.prototype.onSerialize;
|
||||
nodeType.prototype.onSerialize = function (o) {
|
||||
const result = onSerialize?.apply(this, arguments);
|
||||
try {
|
||||
serializeInSchemaOrder(this, o);
|
||||
} catch (err) {
|
||||
console.error("[IdentityForgeCosplayer] schema-order save failed", err);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
// `configure`, not `onConfigure`: LiteGraph applies widgets_values and only then
|
||||
// calls onConfigure, so by then the values are already in the wrong widgets.
|
||||
// onNodeCreated has run by now, so the filter exists and can be located by name.
|
||||
const configure = nodeType.prototype.configure;
|
||||
nodeType.prototype.configure = function (info) {
|
||||
try {
|
||||
if (info && Array.isArray(info.widgets_values)) {
|
||||
// A schema-order save (1.8.0) is expanded into display order; anything else
|
||||
// is a pre-1.8.0 interleaved save and takes the legacy padding below.
|
||||
const expanded = expandSchemaOrderValues(this, info);
|
||||
if (expanded) {
|
||||
info = { ...info, widgets_values: dodgeUpstreamMigrationBug(this, expanded) };
|
||||
} else if (info && Array.isArray(info.widgets_values)) {
|
||||
info = {
|
||||
...info,
|
||||
widgets_values: dodgeUpstreamMigrationBug(
|
||||
|
||||
@@ -101,12 +101,42 @@ function resize(node) {
|
||||
node.setDirtyCanvas(true, true);
|
||||
}
|
||||
|
||||
//: 1.8.0 -- save `widgets_values` in SCHEMA order, so a tool without a browser can read it.
|
||||
//: ComfyUI saves one value per entry of `node.widgets`, positionally. This file re-sorts
|
||||
//: the widgets and inserts buttons and headers, so the saved array no longer matched the
|
||||
//: node's declared inputs. The visual grouping stays (in the Nodes 2.0 renderer array
|
||||
//: order IS display order); only the SAVED array is written in schema order, marked with
|
||||
//: a node property so a load can tell it from a pre-1.8.0 interleaved save. The same
|
||||
//: three helpers live in identity_forge_creature.js and identity_forge_cosplayer.js.
|
||||
const WIDGET_ORDER_PROPERTY = "if_widget_order";
|
||||
|
||||
function serializeInSchemaOrder(node, o) {
|
||||
const schema = node.__ifSchemaWidgets;
|
||||
if (!schema || !o) return;
|
||||
o.widgets_values = schema.map((w) => w.value);
|
||||
o.properties = { ...(o.properties || {}), [WIDGET_ORDER_PROPERTY]: "schema" };
|
||||
}
|
||||
|
||||
/** Saved schema-order values expanded into display order, or null for an unmarked save. */
|
||||
function expandSchemaOrderValues(node, info) {
|
||||
const schema = node.__ifSchemaWidgets;
|
||||
const values = info?.widgets_values;
|
||||
if (!schema || !Array.isArray(values)) return null;
|
||||
if (info.properties?.[WIDGET_ORDER_PROPERTY] !== "schema") return null;
|
||||
// A widget the save does not reach (a field appended in a later release) keeps its default.
|
||||
return (node.widgets || []).map((w) => {
|
||||
const i = schema.indexOf(w);
|
||||
return i > -1 && i < values.length ? values[i] : w.value;
|
||||
});
|
||||
}
|
||||
|
||||
function setupCreature(node) {
|
||||
// Re-entry guard -- see ALL_RANDOM_LABEL in js/identity_forge.js. Without it a
|
||||
// second call duplicates the group headers and the two bulk-set buttons.
|
||||
if ((node.widgets || []).some((w) => w.name === BULK_FOLLOW_LABEL)) return;
|
||||
const original = node.widgets ? node.widgets.slice() : [];
|
||||
if (!original.length) return;
|
||||
node.__ifSchemaWidgets = original;
|
||||
|
||||
const byName = new Map(original.map((w) => [w.name, w]));
|
||||
const multiline = new Set(MULTILINE_AFTER_HEADLINE);
|
||||
@@ -198,5 +228,30 @@ app.registerExtension({
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
const onSerialize = nodeType.prototype.onSerialize;
|
||||
nodeType.prototype.onSerialize = function (o) {
|
||||
const result = onSerialize ? onSerialize.apply(this, arguments) : undefined;
|
||||
try {
|
||||
serializeInSchemaOrder(this, o);
|
||||
} catch (err) {
|
||||
console.error("[IdentityForgeCreature] schema-order save failed:", err);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
// `configure`, not `onConfigure`: LiteGraph applies widgets_values first. A save
|
||||
// marked schema-order is expanded into display order; a pre-1.8.0 save was
|
||||
// written in display order already and passes through untouched.
|
||||
const configure = nodeType.prototype.configure;
|
||||
nodeType.prototype.configure = function (info) {
|
||||
try {
|
||||
const expanded = expandSchemaOrderValues(this, info);
|
||||
if (expanded) info = { ...info, widgets_values: expanded };
|
||||
} catch (err) {
|
||||
console.error("[IdentityForgeCreature] widget mapping failed:", err);
|
||||
}
|
||||
return configure ? configure.apply(this, [info]) : undefined;
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
+118
-49
@@ -134,34 +134,17 @@ function matchesQuery(entry, tokens) {
|
||||
|
||||
// --- trait facets -------------------------------------------------------------
|
||||
//
|
||||
// Mirrors nodes/identity_forge_cosplayer.py's _SPECIAL_SCOPES keys and Task 2's
|
||||
// three random_pool values verbatim, so browsing here and randomizing on the
|
||||
// Cosplayer node share one vocabulary. Do not rename any of these strings.
|
||||
// Mirrors nodes/identity_forge_cosplayer.py's _SPECIAL_SCOPES keys and the three
|
||||
// random_pool values verbatim, so browsing here and randomizing on the Cosplayer
|
||||
// node share one vocabulary. Do not rename any of these strings.
|
||||
//
|
||||
// There is no per-entry boolean flag in the roster index for any of this --
|
||||
// only the precomputed `haystack` string. scripts/generate_js_data.py folds
|
||||
// six literal trait words into a cosplayer's haystack for exactly this reason
|
||||
// (_cosplayer_trait_words: "masked"/"mascot" from covers_face/covers_body,
|
||||
// "feral"/"beast" from body_plan, "giant"/"tiny" from size_scale), so five of
|
||||
// the six scopes below are simple substring checks against those words.
|
||||
//
|
||||
// "Non-human / colored" (_scope_is_nonhuman) has no such folded keyword --
|
||||
// the backend detects it with a regex over the costume prose instead. Rather
|
||||
// than reproduce that regex against a haystack that only carries a *lowercased*
|
||||
// copy of the costume text (the "naive regex over prose" trap this repo has
|
||||
// already paid for twice; see architecture.md), this checks for the three
|
||||
// literal, non-wildcard phrases the regex's three alternatives require:
|
||||
// "smooth, flawless", "uniform, all-over", and "coat of" (the stable,
|
||||
// non-wildcard tail of `\ban even\b.*?\bcoat of\b` -- the leading "an even"
|
||||
// is dropped only because plain substring matching cannot express the `.*?`
|
||||
// gap between the two words, not because it doesn't matter). Fixed in the
|
||||
// 1.1.0 fix round: the first revision checked only the first two phrases,
|
||||
// which missed 97 of ~301 backend-flagged entries that use the "coat of"
|
||||
// wording (e.g. Maui) -- verified against the real roster after the fix.
|
||||
// Still narrower than the backend predicate in one respect (the free-text
|
||||
// `skin` override is never in the haystack at all) -- a deliberate,
|
||||
// documented approximation for a browse-time facet, not a data integrity
|
||||
// assertion.
|
||||
// Each cosplayer entry in the roster index carries a `traits` list of structured
|
||||
// flags ("giant", "tiny", "masked", "mascot", "beast", "nonhuman") emitted by
|
||||
// scripts/generate_js_data.py from the same schema keys the backend predicates
|
||||
// read; tests/test_js_sync.py keeps the two equal. Facets read the flags and
|
||||
// never the prose `haystack` -- a substring search over costume text put Poison
|
||||
// Ivy ("tiny leaves") under Tiny. Trait facets match cosplayers only, because
|
||||
// the Cosplayer node's random_scope / random_pool are their stated purpose.
|
||||
const FACET_ALL = "All characters";
|
||||
const FACET_GIANT = "Giant characters";
|
||||
const FACET_TINY = "Tiny characters";
|
||||
@@ -177,30 +160,57 @@ const FACETS = [
|
||||
FACET_MASCOT, FACET_BEAST, FACET_PEOPLE, FACET_MASCOT_POOL,
|
||||
];
|
||||
|
||||
function hasAny(haystack, words) {
|
||||
return words.some((w) => haystack.includes(w));
|
||||
function hasTrait(entry, ...traits) {
|
||||
if (entry.kind !== "cosplayer") return false;
|
||||
const have = entry.traits || [];
|
||||
return traits.some((t) => have.includes(t));
|
||||
}
|
||||
|
||||
// Gender filter (2.1.0). An entry with no single gender (creatures, "Any"
|
||||
// archetypes) suits either choice, so it stays visible under both.
|
||||
const GENDER_ANY = "Any gender";
|
||||
const GENDERS = [GENDER_ANY, "Female", "Male"];
|
||||
|
||||
function matchesGender(entry, gender) {
|
||||
return gender === GENDER_ANY || !entry.gender || entry.gender === "Any" || entry.gender === gender;
|
||||
}
|
||||
|
||||
// Franchise filter (2.2.0). Only cosplayers carry a franchise, so picking one
|
||||
// narrows to cosplayers. Options come from the loaded roster, grouped by category.
|
||||
const FRANCHISE_ALL = "All franchises";
|
||||
|
||||
function franchiseGroups(entries) {
|
||||
const groups = new Map();
|
||||
for (const e of entries) {
|
||||
if (!e.franchise) continue;
|
||||
const category = e.category || "Other";
|
||||
if (!groups.has(category)) groups.set(category, new Set());
|
||||
groups.get(category).add(e.franchise);
|
||||
}
|
||||
const byText = (a, b) => a.localeCompare(b, undefined, { sensitivity: "base" });
|
||||
return [...groups.keys()].sort(byText).map((c) => [c, [...groups.get(c)].sort(byText)]);
|
||||
}
|
||||
|
||||
const FACET_PREDICATES = {
|
||||
[FACET_ALL]: () => true,
|
||||
[FACET_GIANT]: (e) => e.haystack.includes("giant"),
|
||||
[FACET_TINY]: (e) => e.haystack.includes("tiny"),
|
||||
[FACET_MASKED]: (e) => e.haystack.includes("masked"),
|
||||
[FACET_MASCOT]: (e) => e.haystack.includes("mascot"),
|
||||
[FACET_BEAST]: (e) => hasAny(e.haystack, ["feral", "beast"]),
|
||||
[FACET_NONHUMAN]: (e) => hasAny(e.haystack, ["smooth, flawless", "uniform, all-over", "coat of"]),
|
||||
[FACET_PEOPLE]: (e) => !hasAny(e.haystack, ["mascot", "feral", "beast"]),
|
||||
[FACET_MASCOT_POOL]: (e) => hasAny(e.haystack, ["mascot", "feral", "beast"]),
|
||||
[FACET_GIANT]: (e) => hasTrait(e, "giant"),
|
||||
[FACET_TINY]: (e) => hasTrait(e, "tiny"),
|
||||
[FACET_MASKED]: (e) => hasTrait(e, "masked"),
|
||||
[FACET_MASCOT]: (e) => hasTrait(e, "mascot"),
|
||||
[FACET_BEAST]: (e) => hasTrait(e, "beast"),
|
||||
[FACET_NONHUMAN]: (e) => hasTrait(e, "nonhuman"),
|
||||
[FACET_PEOPLE]: (e) => e.kind === "cosplayer" && !hasTrait(e, "mascot", "beast"),
|
||||
[FACET_MASCOT_POOL]: (e) => hasTrait(e, "mascot", "beast"),
|
||||
};
|
||||
|
||||
/** Trait chips shown on a card. "mascot" implies "masked" in the haystack -- show the more specific one only. */
|
||||
/** Trait chips shown on a card. "mascot" implies "masked" -- show the more specific one only. */
|
||||
function traitChips(entry) {
|
||||
const chips = [];
|
||||
if (entry.haystack.includes("mascot")) chips.push("mascot");
|
||||
else if (entry.haystack.includes("masked")) chips.push("masked");
|
||||
if (hasAny(entry.haystack, ["feral", "beast"])) chips.push("beast");
|
||||
if (entry.haystack.includes("giant")) chips.push("giant");
|
||||
if (entry.haystack.includes("tiny")) chips.push("tiny");
|
||||
if (hasTrait(entry, "mascot")) chips.push("mascot");
|
||||
else if (hasTrait(entry, "masked")) chips.push("masked");
|
||||
if (hasTrait(entry, "beast")) chips.push("beast");
|
||||
if (hasTrait(entry, "giant")) chips.push("giant");
|
||||
if (hasTrait(entry, "tiny")) chips.push("tiny");
|
||||
return chips;
|
||||
}
|
||||
|
||||
@@ -209,10 +219,9 @@ function traitChips(entry) {
|
||||
// Text-first, zero image payload by default. Enabling "Show preview images"
|
||||
// fetches the LIVE gh-pages gallery manifest for a kind with a plain, absolute
|
||||
// `fetch` -- explicitly not `api.fetchApi`, which targets the ComfyUI server,
|
||||
// not GitHub Pages -- and lazy-loads <img> tags via IntersectionObserver. Any
|
||||
// copy of a manifest.json committed under gallery/ on `main` is a stale
|
||||
// snapshot and must never be read for URLs; only the published gh-pages file
|
||||
// is ever fetched here.
|
||||
// not GitHub Pages -- and lazy-loads <img> tags via IntersectionObserver.
|
||||
// Gallery manifests are deployment output on gh-pages, not source artifacts
|
||||
// on main; only the published file is ever fetched here.
|
||||
|
||||
const GH_PAGES_GALLERY_ROOT = "https://enragedantelope.github.io/comfyui-identity-forge/gallery/";
|
||||
const PREVIEW_PREF_KEY = "identity_forge.picker.show_previews";
|
||||
@@ -336,6 +345,8 @@ class IdentityForgePicker {
|
||||
this.query = "";
|
||||
this.activeTab = config.kind;
|
||||
this.facet = FACET_ALL;
|
||||
this.gender = GENDER_ANY;
|
||||
this.franchise = FRANCHISE_ALL;
|
||||
this.showPreviews = loadPreviewPref();
|
||||
this.focusIndex = 0;
|
||||
this.visible = [];
|
||||
@@ -497,6 +508,34 @@ class IdentityForgePicker {
|
||||
});
|
||||
this.facetSelect = facet;
|
||||
|
||||
const genderSelect = document.createElement("select");
|
||||
genderSelect.className = "if-picker-facet";
|
||||
genderSelect.setAttribute("aria-label", "Filter by gender");
|
||||
for (const value of GENDERS) {
|
||||
const option = document.createElement("option");
|
||||
option.value = value;
|
||||
option.textContent = value;
|
||||
genderSelect.appendChild(option);
|
||||
}
|
||||
genderSelect.value = this.gender;
|
||||
genderSelect.addEventListener("change", () => {
|
||||
this.gender = genderSelect.value;
|
||||
this.focusIndex = 0;
|
||||
this.renderGrid();
|
||||
});
|
||||
this.genderSelect = genderSelect;
|
||||
|
||||
const franchiseSelect = document.createElement("select");
|
||||
franchiseSelect.className = "if-picker-facet";
|
||||
franchiseSelect.setAttribute("aria-label", "Filter by franchise");
|
||||
franchiseSelect.addEventListener("change", () => {
|
||||
this.franchise = franchiseSelect.value;
|
||||
this.focusIndex = 0;
|
||||
this.renderGrid();
|
||||
});
|
||||
this.franchiseSelect = franchiseSelect;
|
||||
this.fillFranchiseOptions();
|
||||
|
||||
const previewLabel = document.createElement("label");
|
||||
previewLabel.className = "if-picker-preview-toggle";
|
||||
const previewCheckbox = document.createElement("input");
|
||||
@@ -517,7 +556,7 @@ class IdentityForgePicker {
|
||||
close.setAttribute("aria-label", "Close (" + this.config.title + ")");
|
||||
close.addEventListener("click", () => this.close());
|
||||
|
||||
header.append(search, facet, count, previewLabel, close);
|
||||
header.append(search, facet, genderSelect, franchiseSelect, count, previewLabel, close);
|
||||
|
||||
const notice = document.createElement("div");
|
||||
notice.className = "if-picker-notice";
|
||||
@@ -714,9 +753,35 @@ class IdentityForgePicker {
|
||||
const predicate = FACET_PREDICATES[this.facet] || FACET_PREDICATES[FACET_ALL];
|
||||
list = list.filter(predicate);
|
||||
}
|
||||
if (this.gender !== GENDER_ANY) {
|
||||
list = list.filter((entry) => matchesGender(entry, this.gender));
|
||||
}
|
||||
if (this.franchise !== FRANCHISE_ALL) {
|
||||
list = list.filter((entry) => entry.franchise === this.franchise);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
/** (Re)build the franchise dropdown; a no-op until the roster has loaded. */
|
||||
fillFranchiseOptions() {
|
||||
const select = this.franchiseSelect;
|
||||
if (!select || (roster && select.options.length > 1)) return;
|
||||
const all = document.createElement("option");
|
||||
all.value = all.textContent = FRANCHISE_ALL;
|
||||
select.replaceChildren(all);
|
||||
for (const [category, names] of franchiseGroups(roster || [])) {
|
||||
const group = document.createElement("optgroup");
|
||||
group.label = category;
|
||||
for (const name of names) {
|
||||
const option = document.createElement("option");
|
||||
option.value = option.textContent = name;
|
||||
group.appendChild(option);
|
||||
}
|
||||
select.appendChild(group);
|
||||
}
|
||||
select.value = this.franchise;
|
||||
}
|
||||
|
||||
/** The grid's contents: the query/facet matches, narrowed to the active tab. */
|
||||
visibleEntries(matching) {
|
||||
const list = matching || this.matchingEntries();
|
||||
@@ -735,12 +800,14 @@ class IdentityForgePicker {
|
||||
|
||||
/** True while anything is narrowing the roster -- when the counts are worth showing. */
|
||||
isFiltering() {
|
||||
return Boolean(tokenize(this.query).length) || this.facet !== FACET_ALL;
|
||||
return Boolean(tokenize(this.query).length) || this.facet !== FACET_ALL
|
||||
|| this.gender !== GENDER_ANY || this.franchise !== FRANCHISE_ALL;
|
||||
}
|
||||
|
||||
renderGrid() {
|
||||
if (!this.grid) return;
|
||||
if (!roster) return; // ensureData() is showing the placeholder
|
||||
this.fillFranchiseOptions();
|
||||
this.grid.replaceChildren();
|
||||
this._focused = null;
|
||||
|
||||
@@ -1153,6 +1220,8 @@ export const __testing = {
|
||||
matchesQuery,
|
||||
FACET_PREDICATES,
|
||||
FACETS,
|
||||
FRANCHISE_ALL,
|
||||
traitChips,
|
||||
loadRoster,
|
||||
loadManifest,
|
||||
setWidgetValue,
|
||||
|
||||
File diff suppressed because one or more lines are too long
+539
-215
File diff suppressed because it is too large
Load Diff
@@ -76,7 +76,9 @@ def _is_essential(field: str) -> bool:
|
||||
# 1.5.1: an `age` lock is part of the look too. Authors lock it only where the look
|
||||
# implies a life stage (K-Pop Idol young, Babushka old), and dropping it drew a
|
||||
# 70-year-old cheerleader in the gallery.
|
||||
if field in ("gender", "age"):
|
||||
# 2.2.0: so is a `tattoos` lock -- period looks lock "no tattoos" or a Heian court
|
||||
# lady drew a modern script tattoo.
|
||||
if field in ("gender", "age", "tattoos"):
|
||||
return True
|
||||
return FIELD_DEFINITIONS.get(field, {}).get("group") in _ESSENTIAL_GROUPS
|
||||
|
||||
@@ -182,8 +184,11 @@ def build_archetype_json(archetype: str, seed: int = 0, lock_level: str = _ESSEN
|
||||
body_kept = archetype in BODY_IS_THE_LOOK
|
||||
|
||||
def keep(f: str) -> bool:
|
||||
# skin_tone is ethnicity's proxy, so it stays out of Essentials even when
|
||||
# the body is the look (1.8.0); the rest of the Body group is kept.
|
||||
return _is_essential(f) or (
|
||||
body_kept and FIELD_DEFINITIONS.get(f, {}).get("group") == "Body")
|
||||
body_kept and f != "skin_tone"
|
||||
and FIELD_DEFINITIONS.get(f, {}).get("group") == "Body")
|
||||
|
||||
preset = {f: v for f, v in preset.items() if keep(f)}
|
||||
filtered_variants = {
|
||||
|
||||
@@ -462,6 +462,14 @@ _MUSCLE_RE = re.compile(r"\bmuscul(?:ar|ed)\b", re.IGNORECASE)
|
||||
_CLEAN_SHAVEN_RE = re.compile(r"clean[ -]?shaven", re.IGNORECASE)
|
||||
_CLEAN_SHAVEN_SUPPRESS: dict[str, str] = {"facial_hair": "clean shaven"}
|
||||
|
||||
#: 2.2.0: a costume that names its own earrings or necklace must not also get a random
|
||||
#: one in Costume only mode (Volcana's gold hoops came back beside random silver hoops).
|
||||
_COSTUME_JEWELRY_RES: dict[str, re.Pattern] = {
|
||||
"earrings": re.compile(r"\bearrings?\b|\bhoops\b|\bear studs?\b", re.IGNORECASE),
|
||||
"necklace": re.compile(r"\bnecklaces?\b|\bchokers?\b|\bpendant\b|\blocket\b|\bdog tags\b",
|
||||
re.IGNORECASE),
|
||||
}
|
||||
|
||||
# Size-scale entries ("giant"/"tiny") pair with a hand-authored ``scale_prose``
|
||||
# phrase that REPLACES the human ``height`` value (applied in build_cosplayer_json).
|
||||
# ``height``'s gender pools are identical, so the engine's gender gate passes any
|
||||
@@ -500,7 +508,11 @@ def _pick_look(entry: dict, rng: random.Random) -> dict:
|
||||
return entry
|
||||
pool: list[dict] = [{"costume": entry["costume"]}]
|
||||
pool += [alt if isinstance(alt, dict) else {"costume": alt} for alt in alternates]
|
||||
chosen = rng.choice(pool)
|
||||
# Optional ``costume_weights`` (2.1.0), one per look in pool order, leans the
|
||||
# roll toward the best-known look. Unweighted entries keep rng.choice, so their
|
||||
# seeds do not move.
|
||||
weights = entry.get("costume_weights")
|
||||
chosen = rng.choices(pool, weights=weights)[0] if weights else rng.choice(pool)
|
||||
merged = dict(entry)
|
||||
merged.pop("costumes", None)
|
||||
# Overlay only the keys the chosen look actually sets; absent keys fall back to the
|
||||
@@ -800,6 +812,11 @@ def build_cosplayer_json(
|
||||
# NOT clear it -- it is not part of the head.
|
||||
if not feral and entry.get("anatomy_note"):
|
||||
document["_meta"]["anatomy_note"] = entry["anatomy_note"]
|
||||
# The lead noun for a non-human head ("pig-headed humanoid alien", "one-eyed
|
||||
# cyclops woman"), only while that head is shown - dropped when unmasking reveals
|
||||
# the person underneath. See ``_SUBJECT_NOUN_KEY`` in identity_forge.py.
|
||||
if not feral and not unmask and entry.get("subject"):
|
||||
document["_meta"]["subject"] = entry["subject"]
|
||||
size_scale = entry.get("size_scale", "")
|
||||
if size_scale:
|
||||
document["_meta"]["size_scale"] = size_scale
|
||||
@@ -868,6 +885,10 @@ def build_cosplayer_json(
|
||||
_apply_suppress(document, _CLEAN_SHAVEN_SUPPRESS, override=False)
|
||||
if not feral and _CLEAN_SHAVEN_RE.search(costume):
|
||||
_apply_suppress(document, _CLEAN_SHAVEN_SUPPRESS, override=False)
|
||||
if not feral:
|
||||
for field, pattern in _COSTUME_JEWELRY_RES.items():
|
||||
if pattern.search(costume):
|
||||
_apply_suppress(document, {field: "None"}, override=False)
|
||||
if not feral and _MUSCLE_RE.search(costume):
|
||||
_apply_suppress(document, {"fitness_level": "muscular"}, override=False)
|
||||
if not feral and (look_level == _FULL or (covers and not unmask)):
|
||||
@@ -963,7 +984,8 @@ if _COMFY_AVAILABLE:
|
||||
"randomized face/hair. 'Unmask (show face)' drops the "
|
||||
"mask so the randomized head/hair shows under the suit "
|
||||
"(a helmet-off look). No effect on face-visible "
|
||||
"characters.",
|
||||
"characters, or on beasts and non-humanoid droids "
|
||||
"(R2-D2, a Dalek), which have no person inside.",
|
||||
),
|
||||
io.Combo.Input(
|
||||
"props",
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
"""IdentityForgeExpressionSheet node - one resolved character, a row of expressions.
|
||||
|
||||
The face-side sibling of :mod:`nodes.identity_forge_turnaround`, built the same way and
|
||||
for the same reasons (read that module's docstring first): it takes a **resolved**
|
||||
character (Identity Forge's ``prompt_json``), re-runs the engine over it once per view
|
||||
and emits the prompts as a **list**, so one queue renders the whole sheet from one
|
||||
identity.
|
||||
|
||||
**Ownership line.** The Turnaround owns only the camera; this node owns only the
|
||||
face's emotion: ``expression``, ``mood`` and ``smile_type``. Everything else - the
|
||||
person, the outfit, the scene, the pose - is the document's, unchanged.
|
||||
|
||||
Each view pins an explicit (expression, mood, smile_type) triple from
|
||||
:data:`_SHEETS` rather than "releasing" the three fields for the engine to re-roll.
|
||||
A re-roll would need a seed per view and could land two views on the same face; a
|
||||
fixed triple is deterministic, and ``ExpressionSheetTests`` checks every triple
|
||||
against the live exclusion rules, so a pairing the engine would refuse cannot ship.
|
||||
|
||||
A ``covers_face`` character (a mascot head, a full helmet) has no visible
|
||||
expression, so the sheet degrades to a single view of the character as resolved.
|
||||
|
||||
Text-only, zero new dependencies, no RNG.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
try:
|
||||
from comfy_api.latest import io # type: ignore[import-not-found]
|
||||
_COMFY_AVAILABLE: bool = True
|
||||
except ImportError: # pragma: no cover - exercised only outside ComfyUI
|
||||
_COMFY_AVAILABLE = False
|
||||
|
||||
try:
|
||||
from .identity_forge_turnaround import (
|
||||
_FRAMINGS, _REPLAY_SEED, _forge_class, _unwrap, replay_steering,
|
||||
)
|
||||
except ImportError: # pragma: no cover - standalone/test context
|
||||
from nodes.identity_forge_turnaround import (
|
||||
_FRAMINGS, _REPLAY_SEED, _forge_class, _unwrap, replay_steering,
|
||||
)
|
||||
|
||||
_LOG = logging.getLogger(__name__)
|
||||
|
||||
#: Label -> (expression, mood, smile_type). Exact pool values; "None" omits a field.
|
||||
#: Labels are filename-safe because they become Save Image prefixes.
|
||||
_VIEWS: "dict[str, tuple[str, str, str]]" = {
|
||||
"neutral": ("neutral", "tranquil", "closed mouth"),
|
||||
"smile": ("warm smile", "cheerful", "soft smile"),
|
||||
"laughing": ("laughing", "joyful", "toothy grin"),
|
||||
"surprised": ("surprised", "None", "None"),
|
||||
"serious": ("serious", "intense", "closed mouth"),
|
||||
"sad": ("teary-eyed", "sorrowful", "closed mouth"),
|
||||
"angry": ("defiant", "fierce", "closed mouth"),
|
||||
"smirk": ("smirking", "mysterious", "asymmetric"),
|
||||
"thoughtful": ("contemplative", "dreamy", "closed mouth"),
|
||||
"worried": ("worried", "tense", "closed mouth"),
|
||||
}
|
||||
|
||||
#: The selectable sheets, in display order.
|
||||
_SHEETS: "dict[str, tuple[str, ...]]" = {
|
||||
"Basic (6)": ("neutral", "smile", "laughing", "surprised", "serious", "sad"),
|
||||
"Full (10)": tuple(_VIEWS),
|
||||
"Smiles (3)": ("smile", "laughing", "smirk"),
|
||||
}
|
||||
|
||||
_DEFAULT_FRAMING = "Head and shoulders"
|
||||
|
||||
#: 2.0.0: the sheet can hold one gaze across every view (one sheet per gaze). Kept
|
||||
#: last in the schema so a saved node's values still line up.
|
||||
_KEEP_GAZE = "Keep the character's gaze"
|
||||
_GAZES: "tuple[str, ...]" = (_KEEP_GAZE, "looking directly into the camera",
|
||||
"looking off past the camera", "tilting the head slightly",
|
||||
"lifting the chin slightly", "None")
|
||||
|
||||
|
||||
def _covers_face(character_json: str) -> bool:
|
||||
try:
|
||||
document = json.loads(character_json or "{}")
|
||||
except (ValueError, TypeError):
|
||||
return False
|
||||
meta = document.get("_meta") if isinstance(document, dict) else None
|
||||
return isinstance(meta, dict) and bool(meta.get("covers_face"))
|
||||
|
||||
|
||||
def resolve_expression_sheet(
|
||||
character_json: str, sheet_name: str, framing_name: str, gaze_name: str = _KEEP_GAZE,
|
||||
) -> "tuple[list[str], list[str]]":
|
||||
"""Render one resolved character once per expression. Returns ``(prompts, labels)``."""
|
||||
forge = _forge_class()
|
||||
# Schema defaults for every input, then the document: the Turnaround's recipe, and
|
||||
# its long note on why defaults (not "Random" everywhere) are load-bearing.
|
||||
base: "dict[str, Any]" = {
|
||||
spec.id: getattr(spec, "default", None) for spec in forge.define_schema().inputs
|
||||
}
|
||||
base["seed"] = _REPLAY_SEED
|
||||
base["archetype_json"] = character_json or ""
|
||||
base.update(replay_steering(character_json))
|
||||
framing = _FRAMINGS.get(framing_name, "")
|
||||
if framing:
|
||||
base["shot_type"] = framing
|
||||
if gaze_name in _GAZES and gaze_name != _KEEP_GAZE:
|
||||
base["gaze"] = gaze_name
|
||||
|
||||
if _covers_face(character_json):
|
||||
_LOG.warning("A face-covering character has no visible expression; "
|
||||
"emitting one view.")
|
||||
return [str(_unwrap(forge.execute(**base))[0])], ["1-masked"]
|
||||
|
||||
names = _SHEETS.get(sheet_name, _SHEETS["Basic (6)"])
|
||||
prompts: "list[str]" = []
|
||||
labels: "list[str]" = []
|
||||
for position, name in enumerate(names, start=1):
|
||||
expression, mood, smile = _VIEWS[name]
|
||||
view = {**base, "expression": expression, "mood": mood, "smile_type": smile}
|
||||
prompts.append(str(_unwrap(forge.execute(**view))[0]))
|
||||
labels.append(f"{position}-{name}")
|
||||
return prompts, labels
|
||||
|
||||
|
||||
if _COMFY_AVAILABLE:
|
||||
|
||||
class IdentityForgeExpressionSheet(io.ComfyNode): # type: ignore[misc, valid-type]
|
||||
"""Emit one resolved character with several expressions, as a list."""
|
||||
|
||||
@classmethod
|
||||
def define_schema(cls) -> "io.Schema":
|
||||
return io.Schema(
|
||||
node_id="IdentityForgeExpressionSheet",
|
||||
display_name="Identity Forge Expression Sheet",
|
||||
category="conditioning/character",
|
||||
description=(
|
||||
"One character, several expressions, from a single queue: an "
|
||||
"expression sheet. Wire Identity Forge's 'prompt_json' in; the "
|
||||
"'prompt' output is a LIST, so everything downstream runs once "
|
||||
"per expression. Only the expression, mood and smile change - "
|
||||
"the person, outfit and scene stay exactly as resolved."
|
||||
),
|
||||
inputs=[
|
||||
io.String.Input(
|
||||
"character_json",
|
||||
default="",
|
||||
force_input=True,
|
||||
tooltip="Connect Identity Forge's 'prompt_json' output. It "
|
||||
"is a fully resolved character, so every view is the "
|
||||
"same person; only the face's emotion changes.",
|
||||
),
|
||||
io.Combo.Input(
|
||||
"sheet",
|
||||
options=list(_SHEETS),
|
||||
default="Basic (6)",
|
||||
tooltip="Which expressions to emit, and so how many images "
|
||||
"one queue makes. Basic (6) = neutral, smile, "
|
||||
"laughing, surprised, serious, sad; Full (10) adds "
|
||||
"angry, smirk, thoughtful, worried. A face-covering "
|
||||
"character (mascot head, full helmet) emits one view.",
|
||||
),
|
||||
io.Combo.Input(
|
||||
"framing",
|
||||
options=list(_FRAMINGS),
|
||||
default=_DEFAULT_FRAMING,
|
||||
tooltip="How much of the subject each view frames, replacing "
|
||||
"the character's own framing. 'Head and shoulders' "
|
||||
"keeps the face large enough to read. 'Unspecified' "
|
||||
"keeps the character's own framing.",
|
||||
),
|
||||
io.Combo.Input(
|
||||
"gaze",
|
||||
options=list(_GAZES),
|
||||
default=_KEEP_GAZE,
|
||||
tooltip="Where every view looks. 'Looking directly into the "
|
||||
"camera' makes a classic reference sheet; the "
|
||||
"default keeps the character's own gaze, and "
|
||||
"'None' leaves it unstated.",
|
||||
),
|
||||
],
|
||||
outputs=[
|
||||
io.String.Output(
|
||||
display_name="prompt",
|
||||
is_output_list=True,
|
||||
tooltip="One prompt per expression, as a list. Wire into "
|
||||
"CLIPTextEncode.",
|
||||
),
|
||||
io.String.Output(
|
||||
display_name="view_label",
|
||||
is_output_list=True,
|
||||
tooltip="Matching list of sortable names ('1-neutral', "
|
||||
"'2-smile', ...). Wire into Save Image's "
|
||||
"filename_prefix.",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
# No fingerprint_inputs: no RNG and no auto-advancing widget (see Turnaround).
|
||||
|
||||
@classmethod
|
||||
def execute(cls, **kwargs: Any) -> "io.NodeOutput":
|
||||
prompts, labels = resolve_expression_sheet(
|
||||
kwargs.get("character_json", ""),
|
||||
kwargs.get("sheet", "Basic (6)"),
|
||||
kwargs.get("framing", _DEFAULT_FRAMING),
|
||||
kwargs.get("gaze", _KEEP_GAZE),
|
||||
)
|
||||
return io.NodeOutput(prompts, labels)
|
||||
@@ -29,6 +29,9 @@ Modifiers only **decorate values that are present** — they style an element, t
|
||||
not force an absent / ``None`` element to appear. Clearing the box (or muting the
|
||||
node) disables it entirely.
|
||||
|
||||
The optional ``held_item`` text box (1.10.0) is the one exception to "never a lock":
|
||||
free text the character holds, voiced as "holding ...", replacing any upstream prop.
|
||||
|
||||
The engine half (:func:`build_modifier_json`) is a pure function, testable without
|
||||
ComfyUI.
|
||||
"""
|
||||
@@ -70,6 +73,7 @@ _HELP_DEFAULT = (
|
||||
"# key = a FIELD (footwear, skin_tone, hair_color, earrings, eye_color, ...)\n"
|
||||
"# or a GROUP (Body, Face, Hair, Makeup, Jewelry & Nails, Clothing, Setting & Shot)\n"
|
||||
"# Field names are the same labels shown on the Identity Forge node.\n"
|
||||
"# A GROUP key decorates EVERY field in it; use a field key for one element.\n"
|
||||
"#\n"
|
||||
"# THE ONE RULE: the descriptor goes IN FRONT of the value, it does not\n"
|
||||
"# replace it. So keep it to a 1-3 word adjective that reads naturally there.\n"
|
||||
@@ -91,9 +95,9 @@ _HELP_DEFAULT = (
|
||||
"# footwear: anti-gravity hover\n"
|
||||
"#\n"
|
||||
"# --- whimsy ----------------------------------------------------------\n"
|
||||
"# Makeup: galaxy-glitter\n"
|
||||
"# eye_makeup: galaxy-glitter\n"
|
||||
"# earrings: tiny caged\n"
|
||||
"# Setting & Shot: storm-lit\n"
|
||||
"# location: storm-lit\n"
|
||||
)
|
||||
|
||||
|
||||
@@ -129,17 +133,27 @@ def _parse_modifier_text(text: str) -> "OrderedDict[str, str]":
|
||||
return mods
|
||||
|
||||
|
||||
def build_modifier_json(text: str = "") -> str:
|
||||
"""Return a preset document carrying only a ``_modifiers`` section.
|
||||
def build_modifier_json(text: str = "", held_item: str = "") -> str:
|
||||
"""Return a preset document carrying a ``_modifiers`` section and/or a ``held_item``.
|
||||
|
||||
Empty / all-comment input yields ``"{}"`` so an inactive node simply passes its
|
||||
``upstream`` through (mirrors the other preset nodes' "None" behaviour).
|
||||
|
||||
``held_item`` (1.10.0) is the one field lock this node sets: free text voiced as
|
||||
"holding <it>". Downstream wins in :func:`merge_preset_documents`, so it replaces
|
||||
an upstream Cosplayer prop.
|
||||
"""
|
||||
mods = _parse_modifier_text(text)
|
||||
if not mods:
|
||||
held = (held_item or "").strip()
|
||||
if held.lower().startswith("holding "): # the engine adds the verb itself
|
||||
held = held[len("holding "):].strip()
|
||||
if not mods and not held:
|
||||
return "{}"
|
||||
document: "OrderedDict[str, Any]" = OrderedDict()
|
||||
document[_MODIFIERS_DOC_KEY] = mods
|
||||
if held:
|
||||
document[FIELD_DEFINITIONS["held_item"]["group"]] = {"held_item": held}
|
||||
if mods:
|
||||
document[_MODIFIERS_DOC_KEY] = mods
|
||||
return json.dumps(document, indent=2)
|
||||
|
||||
|
||||
@@ -199,7 +213,19 @@ if _COMFY_AVAILABLE:
|
||||
tooltip="Optional: connect an Archetype / Cosplayer (or another "
|
||||
"Modifier) character_json here to stack presets. This "
|
||||
"node only adds modifiers, so it never overrides their "
|
||||
"field locks.",
|
||||
"field locks - except held_item, when you fill it in.",
|
||||
),
|
||||
# APPENDED (1.10.0) after `upstream`, so saved workflows keep their
|
||||
# widgets_values order.
|
||||
io.String.Input(
|
||||
"held_item",
|
||||
default="",
|
||||
optional=True,
|
||||
tooltip="Optional: something the character holds, as a noun "
|
||||
"phrase - 'a red paper umbrella', 'a steaming mug of "
|
||||
"coffee'. Voiced as 'holding ...', and poses that need "
|
||||
"both hands free are dropped. Replaces a Cosplayer's "
|
||||
"signature prop. Leave empty for none.",
|
||||
),
|
||||
],
|
||||
outputs=[io.String.Output(display_name="character_json")],
|
||||
@@ -207,6 +233,7 @@ if _COMFY_AVAILABLE:
|
||||
|
||||
@classmethod
|
||||
def execute(cls, **kwargs: Any) -> "io.NodeOutput":
|
||||
own = build_modifier_json(kwargs.get("style_modifiers", ""))
|
||||
own = build_modifier_json(kwargs.get("style_modifiers", ""),
|
||||
kwargs.get("held_item", ""))
|
||||
character_json = merge_preset_documents(kwargs.get("upstream", ""), own)
|
||||
return io.NodeOutput(character_json)
|
||||
|
||||
@@ -57,8 +57,10 @@ except ImportError: # pragma: no cover — exercised only outside ComfyUI
|
||||
|
||||
|
||||
try:
|
||||
from ..data.cosplayers import COSPLAYERS
|
||||
from .identity_forge import FIELD_DEFINITIONS
|
||||
except ImportError: # pragma: no cover — standalone/test context
|
||||
from data.cosplayers import COSPLAYERS
|
||||
from nodes.identity_forge import FIELD_DEFINITIONS
|
||||
|
||||
|
||||
@@ -163,9 +165,9 @@ _FACE_OUT_OF_FRAME: "frozenset[str]" = frozenset({_BACK})
|
||||
_FACE_ONLY_GROUPS: "frozenset[str]" = frozenset({"Face", "Makeup"})
|
||||
|
||||
#: Face-only fields filed under some other group: a beard reads only from the
|
||||
#: front, and ``expression`` lives with the scene. Ear and neck jewellery are
|
||||
#: front, and ``expression`` and ``gaze`` (2.0.0) live with the scene. Ear and neck jewellery are
|
||||
#: deliberately NOT here -- earrings read perfectly well from behind.
|
||||
_FACE_ONLY_EXTRA: "frozenset[str]" = frozenset({"facial_hair", "expression"})
|
||||
_FACE_ONLY_EXTRA: "frozenset[str]" = frozenset({"facial_hair", "expression", "gaze"})
|
||||
|
||||
#: Everything omitted from a view whose camera is behind the subject.
|
||||
#:
|
||||
@@ -228,6 +230,41 @@ def replay_steering(character_json: str) -> "dict[str, str]":
|
||||
}
|
||||
|
||||
|
||||
#: Rotations that show the costume's back, where a roster entry's ``costume_back``
|
||||
#: replaces its front-facing costume text (2.0.0).
|
||||
_BACK_OF_COSTUME: "frozenset[str]" = frozenset({_BACK, _REAR_THREE_QUARTER})
|
||||
|
||||
|
||||
def back_costume_document(character_json: str) -> "str | None":
|
||||
"""The document with its cosplayer's ``costume_back`` swapped in, or None.
|
||||
|
||||
A costume is one free-text string, so a back view used to draw the chest emblem on
|
||||
the back. An entry may carry an opt-in ``costume_back``: the same costume as seen
|
||||
from behind. The resolved document names its cosplayer in ``_meta.cosplay_of``
|
||||
(the key, or "key (franchise)"). The swap replaces the entry's front costume where
|
||||
it appears verbatim in the resolved outfit, so a rolled alternate costume or a
|
||||
downstream outfit that replaced it is left alone.
|
||||
"""
|
||||
try:
|
||||
document = json.loads(character_json or "{}")
|
||||
except (ValueError, TypeError):
|
||||
return None
|
||||
meta = document.get("_meta") if isinstance(document, dict) else None
|
||||
label = meta.get("cosplay_of") if isinstance(meta, dict) else None
|
||||
if not isinstance(label, str):
|
||||
return None
|
||||
entry = COSPLAYERS.get(label) or COSPLAYERS.get(label.rsplit(" (", 1)[0]) or {}
|
||||
front, back = entry.get("costume"), entry.get("costume_back")
|
||||
group = document.get(FIELD_DEFINITIONS["outfit_description"]["group"])
|
||||
if not isinstance(group, dict):
|
||||
return None
|
||||
outfit = group.get("outfit_description")
|
||||
if not (front and back and isinstance(outfit, str) and front in outfit):
|
||||
return None
|
||||
group["outfit_description"] = outfit.replace(front, back)
|
||||
return json.dumps(document)
|
||||
|
||||
|
||||
def resolve_turnaround(
|
||||
character_json: str,
|
||||
views_name: str,
|
||||
@@ -264,11 +301,19 @@ def resolve_turnaround(
|
||||
base.update(replay_steering(character_json))
|
||||
if pose_name != _KEEP_POSE:
|
||||
base["pose"] = pose_name
|
||||
# A neutral stance faces the way the camera says; a gaze ("looking over one
|
||||
# shoulder") would turn the head differently in every view. Until 2.0.0 the gaze
|
||||
# was part of the pose, so pinning the pose replaced it too.
|
||||
base["gaze"] = "None"
|
||||
|
||||
back_document = back_costume_document(character_json)
|
||||
|
||||
prompts: "list[str]" = []
|
||||
labels: "list[str]" = []
|
||||
for position, rotation in enumerate(rotations, start=1):
|
||||
view = dict(base)
|
||||
if back_document and rotation in _BACK_OF_COSTUME:
|
||||
view["archetype_json"] = back_document
|
||||
# shot_type is already in `base` (as "Random"), so it is overwritten
|
||||
# rather than passed alongside — the one field this node owns.
|
||||
view["shot_type"] = compose_shot(framing_name, rotation)
|
||||
@@ -373,8 +418,9 @@ if _COMFY_AVAILABLE:
|
||||
"asymmetric pose (a hand on one hip, "
|
||||
"contrapposto) reads as a different body from "
|
||||
"each side, which is why the character's own "
|
||||
"pose is replaced by default. Choose 'Keep the "
|
||||
"character's pose' for a looser character sheet.",
|
||||
"pose (and gaze) is replaced by default. Choose "
|
||||
"'Keep the character's pose' for a looser "
|
||||
"character sheet.",
|
||||
),
|
||||
],
|
||||
outputs=[
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "comfyui-identity-forge"
|
||||
version = "1.5.5"
|
||||
description = "Create believable, coherent people, cosplayers and creatures from dropdowns - no prompt engineering required. A constraint engine keeps every trait sensible and a seed makes any result reproducible. Cosplay characters carry a hand-written, canon-checked costume description - garments, colours, masks, markings, signature props - that renders on any checkpoint, and are searchable from an in-node picker with trait facets and thumbnail previews. A Turnaround node builds a one-queue reference sheet: front, three-quarter, profile and back views of the same resolved character. Public galleries showcase every entry with a sample render and its exact workflow. Optional preset layers add themed archetypes, creature/monster/alien hybridization, per-element style modifiers, and a save/load character vault."
|
||||
version = "2.2.0"
|
||||
description = "Create believable, coherent people, cosplayers and creatures from dropdowns - no prompt engineering required. A constraint engine keeps every trait sensible and a seed makes any result reproducible. Cosplay characters carry a hand-written, canon-checked costume description - garments, colours, masks, markings, signature props - that renders on any checkpoint, and are searchable from an in-node picker with trait facets, gender and franchise filters, and thumbnail previews. A Turnaround node builds a one-queue reference sheet: front, three-quarter, profile and back views of the same resolved character. Public galleries showcase every entry with a sample render and its exact workflow. Optional preset layers add themed archetypes, creature/monster/alien hybridization, per-element style modifiers, and a save/load character vault."
|
||||
license = { text = "MIT" }
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
@@ -46,6 +46,7 @@ from nodes.identity_forge_cosplayer import IdentityForgeCosplayer # noqa: E402
|
||||
from nodes.identity_forge_creature import IdentityForgeCreature # noqa: E402
|
||||
from nodes.identity_forge_modifier import IdentityForgeModifier # noqa: E402
|
||||
from nodes.identity_forge_turnaround import IdentityForgeTurnaround # noqa: E402
|
||||
from nodes.identity_forge_expression_sheet import IdentityForgeExpressionSheet # noqa: E402
|
||||
from nodes.identity_forge_vault_load import ( # noqa: E402
|
||||
IdentityForgeVaultLoad, _NO_CHARACTERS,
|
||||
)
|
||||
@@ -53,7 +54,7 @@ from nodes.identity_forge_vault_save import IdentityForgeVaultSave # noqa: E402
|
||||
|
||||
_FIXTURE_PATH = ROOT / "tests" / "frontend" / "fixtures" / "nodes.json"
|
||||
|
||||
# Order matches the seven node_id values used across nodes/*.py.
|
||||
# Every node_id used across nodes/*.py.
|
||||
_NODE_CLASSES = {
|
||||
"IdentityForge": IdentityForge,
|
||||
"IdentityForgeArchetype": IdentityForgeArchetype,
|
||||
@@ -61,6 +62,7 @@ _NODE_CLASSES = {
|
||||
"IdentityForgeCreature": IdentityForgeCreature,
|
||||
"IdentityForgeModifier": IdentityForgeModifier,
|
||||
"IdentityForgeTurnaround": IdentityForgeTurnaround,
|
||||
"IdentityForgeExpressionSheet": IdentityForgeExpressionSheet,
|
||||
"IdentityForgeVaultLoad": IdentityForgeVaultLoad,
|
||||
"IdentityForgeVaultSave": IdentityForgeVaultSave,
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ from __future__ import annotations
|
||||
import argparse
|
||||
import ast
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
@@ -223,6 +224,33 @@ def _cosplayer_trait_words(entry: dict) -> list[str]:
|
||||
return words
|
||||
|
||||
|
||||
# Restated literally from nodes/identity_forge_cosplayer.py (_BODY_PAINT_RE) for the
|
||||
# same no-import reason as above; tests/test_js_sync.py proves the two agree.
|
||||
_BODY_PAINT_RE = re.compile(
|
||||
r"\ban even\b.*?\bcoat of\b|\bsmooth, flawless\b|\buniform, all-over\b",
|
||||
re.IGNORECASE,
|
||||
)
|
||||
|
||||
|
||||
def _cosplayer_traits(entry: dict) -> list[str]:
|
||||
"""The structured trait flags the picker's facets read (``giant``, ``tiny``,
|
||||
``masked``, ``mascot``, ``beast``, ``nonhuman``). One name per backend scope in
|
||||
``_SPECIAL_SCOPES``; the parity test in tests/test_js_sync.py keeps them equal.
|
||||
``nonhuman`` restates ``_scope_is_nonhuman``: ``body_paint`` override, then the
|
||||
``skin`` key, then the body-paint marker in the costume."""
|
||||
traits = [w for w in _cosplayer_trait_words(entry) if w in ("giant", "tiny", "masked", "mascot")]
|
||||
if entry.get("body_plan") == "feral":
|
||||
traits.append("beast")
|
||||
override = entry.get("body_paint")
|
||||
if override is not None:
|
||||
nonhuman = bool(override)
|
||||
else:
|
||||
nonhuman = bool(entry.get("skin")) or bool(_BODY_PAINT_RE.search(entry.get("costume", "")))
|
||||
if nonhuman:
|
||||
traits.append("nonhuman")
|
||||
return traits
|
||||
|
||||
|
||||
def _cosplayer_roster_entry(
|
||||
name: str, entry: dict, franchise_categories: dict[str, str], default_category: str,
|
||||
) -> dict:
|
||||
@@ -242,7 +270,7 @@ def _cosplayer_roster_entry(
|
||||
aliases = entry.get("aliases")
|
||||
if aliases:
|
||||
haystack_parts.extend(aliases)
|
||||
return {
|
||||
roster = {
|
||||
"kind": "cosplayer",
|
||||
"name": name,
|
||||
"franchise": franchise,
|
||||
@@ -250,6 +278,10 @@ def _cosplayer_roster_entry(
|
||||
"gender": gender,
|
||||
"haystack": " ".join(haystack_parts).lower(),
|
||||
}
|
||||
traits = _cosplayer_traits(entry)
|
||||
if traits:
|
||||
roster["traits"] = traits
|
||||
return roster
|
||||
|
||||
|
||||
def _flatten_field_values(fields: dict) -> list[str]:
|
||||
|
||||
+105
-18
@@ -2,8 +2,9 @@
|
||||
|
||||
The three galleries show one image per cosplayer, archetype and creature.
|
||||
Keeping ~2,200 of those honest by hand is not possible, so the build is
|
||||
content-addressed: every image records a hash of the entry that produced it,
|
||||
and an entry whose text has changed is reported stale until it is re-rendered.
|
||||
content-addressed: every image records a hash of the prose that produced it,
|
||||
and an entry whose prose has changed (its own text, or an engine change) is
|
||||
reported stale until it is re-rendered.
|
||||
|
||||
python scripts/render_gallery.py --check # the CI gate
|
||||
python scripts/render_gallery.py --missing # render what is absent
|
||||
@@ -163,7 +164,9 @@ def _gallery_shot(seed: int) -> str | None:
|
||||
#: coin-flips. Changing a row needs a manual `--entry` re-render: render settings are
|
||||
#: not in the manifest hash.
|
||||
_GALLERY_GENDER: dict[str, dict[str, str]] = {
|
||||
"archetypes": {"Cheerleader": "Female", "Irish Step Dancer": "Female"},
|
||||
"archetypes": {"Carhop": "Female", "Cheerleader": "Female",
|
||||
"Irish Step Dancer": "Female"},
|
||||
"creatures": {"leprechaun": "Male"}, # 2.2.0: the folklore leprechaun is a bearded man
|
||||
}
|
||||
|
||||
#: Gallery-only pose pins, same terms as _GALLERY_GENDER: a sample whose defining
|
||||
@@ -173,6 +176,13 @@ _GALLERY_POSE: dict[str, dict[str, str]] = {
|
||||
"cosplay": {"Black Bolt": "stretching both arms overhead"},
|
||||
}
|
||||
|
||||
#: Gallery-only framing pins, same terms: a sample whose defining feature is below
|
||||
#: mid-thigh (the Carhop's roller skates, the zoot suit's knee-length drape) must not
|
||||
#: draw a cowboy shot.
|
||||
_GALLERY_SHOT: dict[str, dict[str, str]] = {
|
||||
"archetypes": {"Carhop": "full body shot", "Zoot Suit": "full body shot"},
|
||||
}
|
||||
|
||||
#: Front-facing framings that show most of the body and the face (1.5.1).
|
||||
_GALLERY_SHOTS = frozenset({
|
||||
"cowboy shot from mid-thigh up",
|
||||
@@ -332,8 +342,18 @@ def entries_for(kind: str) -> dict[str, dict]:
|
||||
raise RenderError(f"Unknown kind: {kind!r}")
|
||||
|
||||
|
||||
def entry_hash(kind: str, name: str) -> str:
|
||||
"""Hash the whole entry dict, so any edit to its text shows up as stale.
|
||||
def entry_hash(kind: str, name: str, reroll: int = 0) -> str:
|
||||
"""Hash the prose the entry renders from, so any change to it shows up as stale.
|
||||
|
||||
2.0.0: the prose, not the entry dict. A dict hash could not see an engine or
|
||||
pool change that rewrote an entry's prompt, so a release could silently leave
|
||||
published images that no longer match what the node emits. The prose covers
|
||||
the entry's own text too, plus the gallery pins. ``reroll`` is the tile's
|
||||
recorded seed shift (see :func:`record_reroll`). Costs a full resolve per
|
||||
entry, about 17 s for the whole roster.
|
||||
|
||||
A local ``user_options.json`` merges into the data layer at import and can
|
||||
move prose, so ``--check`` is only meaningful in a tree without one (CI is).
|
||||
|
||||
**The render settings are deliberately NOT in this hash.** The sibling
|
||||
stylebook pipeline folds model, sampler and size into its per-tile hash, and
|
||||
@@ -343,11 +363,15 @@ def entry_hash(kind: str, name: str) -> str:
|
||||
stale on the day this landed. Changing the model is therefore a deliberate,
|
||||
manual re-render - it is not, and must not become, an automatic one.
|
||||
"""
|
||||
entry = entries_for(kind)[name]
|
||||
payload = "v1:" + json.dumps(entry, sort_keys=True, ensure_ascii=True, default=str)
|
||||
payload = "v2:" + resolve_prose(kind, name, reroll)
|
||||
return hashlib.sha256(payload.encode("utf-8")).hexdigest()[:16]
|
||||
|
||||
|
||||
def record_reroll(name: str, record: dict) -> int:
|
||||
"""The ``--reroll`` a manifest record was rendered with (0 when it has no seed)."""
|
||||
return record.get("seed", entry_seed(name)) - entry_seed(name)
|
||||
|
||||
|
||||
def entry_seed(name: str, reroll: int = 0) -> int:
|
||||
"""Deterministic per entry, so the same entry always re-renders the same person.
|
||||
|
||||
@@ -398,7 +422,7 @@ def save_manifest(manifest: dict) -> None:
|
||||
|
||||
|
||||
def survey(kinds: tuple[str, ...] = KINDS) -> dict[str, dict[str, list[str]]]:
|
||||
"""Return ``{kind: {missing, stale, orphan}}`` against the manifest.
|
||||
"""Return ``{kind: {missing, stale, unpublished, orphan}}`` against the manifest.
|
||||
|
||||
Deliberately manifest-only: ``gallery/.render_out`` is scratch and never
|
||||
reaches a clone, so testing for a file on disk would report every entry as
|
||||
@@ -410,17 +434,22 @@ def survey(kinds: tuple[str, ...] = KINDS) -> dict[str, dict[str, list[str]]]:
|
||||
for kind in kinds:
|
||||
entries = entries_for(kind)
|
||||
recorded = recorded_all.get(kind, {})
|
||||
missing, stale = [], []
|
||||
missing, stale, unpublished = [], [], []
|
||||
for name in entries:
|
||||
record = recorded.get(name)
|
||||
if record is None:
|
||||
missing.append(name)
|
||||
elif record.get("hash") != entry_hash(kind, name):
|
||||
elif record.get("hash") != entry_hash(kind, name, record_reroll(name, record)):
|
||||
stale.append(name)
|
||||
# 1.10.0: rendered but never pushed to gh-pages, which --check used to
|
||||
# pass. A record without the key predates it: published.
|
||||
elif record.get("published", True) is False:
|
||||
unpublished.append(name)
|
||||
orphan = [name for name in recorded if name not in entries]
|
||||
result[kind] = {
|
||||
"missing": sorted(missing),
|
||||
"stale": sorted(stale),
|
||||
"unpublished": sorted(unpublished),
|
||||
"orphan": sorted(orphan),
|
||||
}
|
||||
return result
|
||||
@@ -529,7 +558,7 @@ def resolve_prose(kind: str, name: str, reroll: int = 0) -> str:
|
||||
|
||||
character_json = _unwrap(preset)[0]
|
||||
forge_kwargs = _forge_kwargs(IdentityForge, character_json, seed)
|
||||
shot = _gallery_shot(seed)
|
||||
shot = _GALLERY_SHOT.get(kind, {}).get(name) or _gallery_shot(seed)
|
||||
if shot:
|
||||
forge_kwargs["shot_type"] = shot
|
||||
if name in _GALLERY_GENDER.get(kind, {}):
|
||||
@@ -814,14 +843,24 @@ def publish_kind(kind: str, names: list[str] | None = None) -> bool:
|
||||
# Entry point
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
def _mark_published(kind: str, names: list[str]) -> None:
|
||||
"""Record that ``names`` reached gh-pages, so ``--check`` stops failing on them."""
|
||||
manifest = load_manifest()
|
||||
recorded = manifest["entries"].get(kind, {})
|
||||
for name in names:
|
||||
if name in recorded:
|
||||
recorded[name]["published"] = True
|
||||
save_manifest(manifest)
|
||||
|
||||
|
||||
def _report(results: dict[str, dict[str, list[str]]], limit: int = 15) -> bool:
|
||||
dirty = False
|
||||
for kind, buckets in results.items():
|
||||
counts = {key: len(value) for key, value in buckets.items()}
|
||||
print(f"{kind}: {len(entries_for(kind))} entries | "
|
||||
f"missing {counts['missing']}, stale {counts['stale']}, "
|
||||
f"orphan {counts['orphan']}")
|
||||
for label in ("missing", "stale", "orphan"):
|
||||
f"unpublished {counts['unpublished']}, orphan {counts['orphan']}")
|
||||
for label in ("missing", "stale", "unpublished", "orphan"):
|
||||
names = buckets[label]
|
||||
if names:
|
||||
dirty = True
|
||||
@@ -871,6 +910,10 @@ def main(argv: list[str] | None = None) -> int:
|
||||
"No network, no GPU. The default when nothing else is given.")
|
||||
parser.add_argument("--seed-manifest", action="store_true",
|
||||
help="One-time: record every current entry as pre-existing.")
|
||||
parser.add_argument("--rehash", action="store_true",
|
||||
help="Accept the current prose of every recorded entry without "
|
||||
"re-rendering (a deliberate release-wide prose change). "
|
||||
"Renders and publishes nothing.")
|
||||
parser.add_argument("--kind", choices=(*KINDS, "all"), default="all")
|
||||
parser.add_argument("--entry", action="append", default=[], metavar="NAME",
|
||||
help="Render one entry by exact name. Repeatable.")
|
||||
@@ -882,6 +925,9 @@ def main(argv: list[str] | None = None) -> int:
|
||||
help="Cap this run. Resumable: the manifest saves per image.")
|
||||
parser.add_argument("--publish", action="store_true",
|
||||
help="After a clean run, publish each kind touched to gh-pages.")
|
||||
parser.add_argument("--publish-pending", action="store_true",
|
||||
help="Publish everything --check calls unpublished, from the "
|
||||
"local originals. Renders nothing.")
|
||||
parser.add_argument("--dry-run", action="store_true",
|
||||
help="Print the resolved prompt and graph; queue nothing.")
|
||||
parser.add_argument("--save-originals", action="store_true",
|
||||
@@ -902,7 +948,8 @@ def main(argv: list[str] | None = None) -> int:
|
||||
args = parser.parse_args(argv)
|
||||
|
||||
kinds = KINDS if args.kind == "all" else (args.kind,)
|
||||
acting = args.seed_manifest or args.entry or args.missing or args.stale
|
||||
acting = (args.seed_manifest or args.rehash or args.entry or args.missing or args.stale
|
||||
or args.publish_pending)
|
||||
if not acting and not args.dry_run:
|
||||
args.check = True
|
||||
|
||||
@@ -917,15 +964,53 @@ def main(argv: list[str] | None = None) -> int:
|
||||
for name in results[kind][bucket][:1]),
|
||||
"--missing",
|
||||
)
|
||||
print("\nRe-render them, e.g.:")
|
||||
print(f" python scripts/render_gallery.py {first} "
|
||||
f"--save-originals --publish")
|
||||
if first != "--missing":
|
||||
print("\nRe-render them, e.g.:")
|
||||
print(f" python scripts/render_gallery.py {first} "
|
||||
f"--save-originals --publish")
|
||||
if any(results[kind]["unpublished"] for kind in kinds):
|
||||
print("\nPublish the unpublished ones (no re-render):")
|
||||
print(" python scripts/render_gallery.py --publish-pending")
|
||||
print("An orphan is pruned by deleting its manifest entry in the "
|
||||
"same commit that removed the roster entry.")
|
||||
return 1
|
||||
print("\nEvery entry's recorded image matches its current text.")
|
||||
return 0
|
||||
|
||||
if args.publish_pending:
|
||||
results = survey(kinds)
|
||||
pending = {kind: results[kind]["unpublished"] for kind in kinds
|
||||
if results[kind]["unpublished"]}
|
||||
if not pending:
|
||||
print("Nothing unpublished.")
|
||||
return 0
|
||||
for kind, names in sorted(pending.items()):
|
||||
if not publish_kind(kind, names):
|
||||
return 1
|
||||
_mark_published(kind, names)
|
||||
return 0
|
||||
|
||||
if args.rehash:
|
||||
# 2.0.0: the seed epoch moved every entry's prose without changing any
|
||||
# entry's own look, so the published images are kept, not re-rendered.
|
||||
# Only an existing record's hash moves; missing entries stay missing and
|
||||
# the rendered/published/seed keys are untouched.
|
||||
manifest = load_manifest()
|
||||
moved = 0
|
||||
for kind in kinds:
|
||||
recorded = manifest["entries"].get(kind, {})
|
||||
for name in entries_for(kind):
|
||||
record = recorded.get(name)
|
||||
if record is None:
|
||||
continue
|
||||
fresh = entry_hash(kind, name, record_reroll(name, record))
|
||||
if record.get("hash") != fresh:
|
||||
record["hash"] = fresh
|
||||
moved += 1
|
||||
save_manifest(manifest)
|
||||
print(f"Rehashed {moved} entries; no image was rendered or published.")
|
||||
return 0
|
||||
|
||||
if args.seed_manifest:
|
||||
manifest = load_manifest()
|
||||
today = _datetime.date.today().isoformat()
|
||||
@@ -1007,7 +1092,8 @@ def main(argv: list[str] | None = None) -> int:
|
||||
if render_one(client, kind, name, settings, normalize_name,
|
||||
front=not args.back, save_originals=args.save_originals,
|
||||
reroll=args.reroll):
|
||||
record = {"hash": entry_hash(kind, name), "rendered": today}
|
||||
record = {"hash": entry_hash(kind, name, args.reroll), "rendered": today,
|
||||
"published": False}
|
||||
if args.reroll:
|
||||
record["seed"] = entry_seed(name, args.reroll)
|
||||
manifest["entries"].setdefault(kind, {})[name] = record
|
||||
@@ -1026,6 +1112,7 @@ def main(argv: list[str] | None = None) -> int:
|
||||
for kind in sorted(touched):
|
||||
if not publish_kind(kind, touched[kind]):
|
||||
return 1
|
||||
_mark_published(kind, touched[kind])
|
||||
return 0
|
||||
|
||||
except RenderError as error:
|
||||
|
||||
@@ -14,6 +14,7 @@ Usage (from the repo root)::
|
||||
python scripts/sweep_marginals.py --write # (re)write the baseline
|
||||
python scripts/sweep_marginals.py --check # fail if shares drifted (CI)
|
||||
python scripts/sweep_marginals.py --report # print 2x-mean outliers
|
||||
python scripts/sweep_marginals.py --unreachable # pool values that never draw
|
||||
|
||||
``--write`` and ``--check`` both refuse to run against a local ``user_options.json``
|
||||
-- the baseline is ``{gender: {field: {value: count}}}``, so a custom field value,
|
||||
@@ -33,10 +34,12 @@ ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(ROOT))
|
||||
|
||||
from data.fields import FIELD_DEFINITIONS # noqa: E402
|
||||
from data.user_options import USER_OPTIONS_PATH # noqa: E402
|
||||
from nodes.identity_forge import generate_character # noqa: E402
|
||||
|
||||
BASELINE_PATH = ROOT / "tests" / "fixtures" / "marginals_baseline.json"
|
||||
UNREACHABLE_PATH = ROOT / "tests" / "fixtures" / "unreachable_by_design.json"
|
||||
GENDERS = ("Female", "Male", "Any")
|
||||
DEFAULT_N = 4000
|
||||
|
||||
@@ -174,6 +177,51 @@ def _report(n: int) -> None:
|
||||
print(f" {field}: {'; '.join(outliers)}")
|
||||
|
||||
|
||||
def _unreachable(baseline: dict) -> list[tuple[str, str]]:
|
||||
"""Every ``(field, value)`` in a field's pools that no gender lock drew in
|
||||
``baseline``. A value that only one gender draws is not listed: a gendered
|
||||
coherence filter is intended; a value nothing draws is either a control
|
||||
setting or an accidental gate."""
|
||||
drawn = baseline["genders"].values()
|
||||
found: list[tuple[str, str]] = []
|
||||
for field, definition in sorted(FIELD_DEFINITIONS.items()):
|
||||
pool: dict[str, None] = {}
|
||||
for key in ("female_options", "male_options"):
|
||||
for value in definition.get(key, ()):
|
||||
if isinstance(value, str):
|
||||
pool[value] = None
|
||||
for value in pool:
|
||||
if not any(g.get(field, {}).get(value, 0) for g in drawn):
|
||||
found.append((field, value))
|
||||
return found
|
||||
|
||||
|
||||
def _committed_unreachable() -> list[tuple[str, str]]:
|
||||
"""The ``(field, value)`` pairs ``unreachable_by_design.json`` accounts for."""
|
||||
groups = json.loads(UNREACHABLE_PATH.read_text(encoding="utf-8"))["unreachable"]
|
||||
return sorted((g["field"], v) for g in groups for v in g["values"])
|
||||
|
||||
|
||||
def _unreachable_report() -> int:
|
||||
baseline = json.loads(BASELINE_PATH.read_text(encoding="utf-8"))
|
||||
found = sorted(_unreachable(baseline))
|
||||
expected = _committed_unreachable()
|
||||
for field, value in found:
|
||||
print(f" {field} = {value!r}")
|
||||
new = [pair for pair in found if pair not in expected]
|
||||
stale = [pair for pair in expected if pair not in found]
|
||||
for field, value in new:
|
||||
print(f"UNEXPLAINED (an accidental gate?): {field} = {value!r}", file=sys.stderr)
|
||||
for field, value in stale:
|
||||
print(f"STALE exception (now draws, or left the pool): {field} = {value!r}",
|
||||
file=sys.stderr)
|
||||
if new or stale:
|
||||
return 1
|
||||
print(f"{len(found)} unreachable values, all accounted for in "
|
||||
f"{UNREACHABLE_PATH.name}.")
|
||||
return 0
|
||||
|
||||
|
||||
def main(argv: list[str] | None = None) -> int:
|
||||
parser = argparse.ArgumentParser(description=__doc__,
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||
@@ -185,6 +233,9 @@ def main(argv: list[str] | None = None) -> int:
|
||||
group.add_argument("--report", action="store_true",
|
||||
help="Print values at >=2x their field's mean share. "
|
||||
"Informational only; never fails.")
|
||||
group.add_argument("--unreachable", action="store_true",
|
||||
help="List pool values the baseline never draws and fail if the "
|
||||
"list differs from tests/fixtures/unreachable_by_design.json.")
|
||||
parser.add_argument("-n", type=int, default=DEFAULT_N,
|
||||
help=f"Seeds per gender (default {DEFAULT_N}).")
|
||||
args = parser.parse_args(argv)
|
||||
@@ -194,6 +245,8 @@ def main(argv: list[str] | None = None) -> int:
|
||||
return 0
|
||||
if args.check:
|
||||
return _check(args.n)
|
||||
if args.unreachable:
|
||||
return _unreachable_report()
|
||||
_report(args.n)
|
||||
return 0
|
||||
|
||||
|
||||
+3763
-3639
File diff suppressed because it is too large
Load Diff
+63
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"comment": "Pool values that no gender lock draws under default widgets in tests/fixtures/marginals_baseline.json, each with the reason it is by design. tests/test_sweep_marginals.py requires this list to EQUAL what `python scripts/sweep_marginals.py --unreachable` computes: a new accidental gate fails it, and so does a stale exception.",
|
||||
"unreachable": [
|
||||
{
|
||||
"field": "gender",
|
||||
"values": ["Female", "Male", "Any"],
|
||||
"reason": "A control widget, not a drawn trait: the sweep locks it, so the value is the lock and is never a resolved field."
|
||||
},
|
||||
{
|
||||
"field": "hair_color_scope",
|
||||
"values": ["Full spectrum", "Natural only"],
|
||||
"reason": "A control widget: it steers the hair_color pool and is never itself a resolved field."
|
||||
},
|
||||
{
|
||||
"field": "location_setting",
|
||||
"values": ["Any indoor/outdoor", "Indoor", "Outdoor", "Studio / solid backdrop"],
|
||||
"reason": "A control widget: it filters the location pool and is never itself a resolved field."
|
||||
},
|
||||
{
|
||||
"field": "outfit_description",
|
||||
"values": ["auto"],
|
||||
"reason": "The widget's 'generate one' sentinel, replaced by the composed outfit; the sweep skips free text."
|
||||
},
|
||||
{
|
||||
"field": "held_item",
|
||||
"values": ["auto"],
|
||||
"reason": "The widget's 'generate one' sentinel, replaced by the drawn item; the sweep skips free text."
|
||||
},
|
||||
{
|
||||
"field": "hair_color",
|
||||
"values": [
|
||||
"hot pink", "baby pink", "magenta", "lavender", "purple", "deep purple",
|
||||
"electric blue", "navy blue", "teal", "mint green", "emerald green",
|
||||
"lime green", "orange", "coral", "yellow", "platinum white", "rose gold",
|
||||
"iridescent", "rainbow ombre", "black with colored tips", "burgundy"
|
||||
],
|
||||
"reason": "Vivid colours need hair_color_scope = Full spectrum; the default is Natural only."
|
||||
},
|
||||
{
|
||||
"field": "eyebrows",
|
||||
"values": ["bleached"],
|
||||
"reason": "Follows a vivid hair colour, so it only draws under hair_color_scope = Full spectrum."
|
||||
},
|
||||
{
|
||||
"field": "location",
|
||||
"values": [
|
||||
"seamless grey studio backdrop", "solid white studio backdrop",
|
||||
"solid black studio backdrop", "chroma-key green screen backdrop"
|
||||
],
|
||||
"reason": "Studio backdrops only draw when location_setting is Studio / solid backdrop."
|
||||
},
|
||||
{
|
||||
"field": "hair_accessory",
|
||||
"values": ["thin headband"],
|
||||
"reason": "Only the male pool lists it, and the 1.5.0 coherence rule (data/constraints.py) removes it for men because it rendered as a women's hairband."
|
||||
},
|
||||
{
|
||||
"field": "tattoo_placement",
|
||||
"values": ["behind one ear"],
|
||||
"reason": "Lock-only since 1.5.1 (nodes/identity_forge.py): at random it landed on the temple, neck or ponytail; a lock still gets it."
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,7 @@ import { test } from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import { __getExtension } from "./stubs/app.js";
|
||||
import { __setFetchApiHandler, __getFetchApiCalls, __resetApi } from "./stubs/api.js";
|
||||
import { createNode, createNodeTwice, widgetsFor } from "./fake_node.mjs";
|
||||
|
||||
await import("../../js/identity_forge.js");
|
||||
@@ -144,6 +145,41 @@ test("switching gender re-scopes gender-divergent option lists and resets an inv
|
||||
"switching back to Male must restore the male-only option");
|
||||
});
|
||||
|
||||
/* 1.7.0: "Roll + lock all" picked each dropdown uniformly, so it ignored the weights and
|
||||
could lock a pair the engine forbids. It now locks what one engine run resolved. */
|
||||
test("Roll + lock all locks the engine's resolved values, None for an absent field", async () => {
|
||||
__resetApi();
|
||||
__setFetchApiHandler(async (route) => ({
|
||||
ok: route === "/identity_forge/roll",
|
||||
json: async () => ({ values: { age: "48", hair_color: "chestnut", facial_hair: "not-an-option" } }),
|
||||
}));
|
||||
const node = await createNode(ext, "IdentityForge");
|
||||
const w = (name) => node.widgets.find((x) => x.name === name);
|
||||
w("skin_tone").value = "deep"; // a user lock is left alone
|
||||
await node.widgets.find((x) => x.name.includes("Roll + lock")).callback();
|
||||
|
||||
const [call] = __getFetchApiCalls();
|
||||
assert.equal(call.route, "/identity_forge/roll");
|
||||
const body = JSON.parse(call.opts.body);
|
||||
assert.equal(body.widgets.skin_tone, "deep", "the node's own locks reach the engine");
|
||||
assert.ok(Number.isInteger(body.seed) && !("seed" in body.widgets));
|
||||
assert.equal(w("age").value, "48");
|
||||
assert.equal(w("hair_color").value, "chestnut");
|
||||
assert.equal(w("skin_tone").value, "deep");
|
||||
assert.equal(w("facial_hair").value, "Random", "a value outside the options is not forced in");
|
||||
assert.equal(w("lighting").value, "None", "a field the run left absent locks to None");
|
||||
__resetApi();
|
||||
});
|
||||
|
||||
test("Roll + lock all falls back to a uniform pick when the route is missing", async () => {
|
||||
__resetApi();
|
||||
__setFetchApiHandler(async () => ({ ok: false, json: async () => ({}) }));
|
||||
const node = await createNode(ext, "IdentityForge");
|
||||
await node.widgets.find((x) => x.name.includes("Roll + lock")).callback();
|
||||
const age = node.widgets.find((x) => x.name === "age");
|
||||
assert.ok(!["Random", "None"].includes(age.value), "every field still gets a concrete lock");
|
||||
__resetApi();
|
||||
});
|
||||
|
||||
/* --- Re-entry guard (0.97.0) ------------------------------------------------
|
||||
Four of the five setup functions in this pack had no guard, while the comment
|
||||
@@ -212,9 +248,11 @@ async function configurableMainNode() {
|
||||
}
|
||||
|
||||
for (const [label, dropped] of [
|
||||
["1.4.0 (missing outerwear)", ["outerwear"]],
|
||||
["0.89.0 (missing outerwear + the three 0.90.0 fields)",
|
||||
["outerwear", "tattoos", "tattoo_placement", "legwear"]],
|
||||
// Interleaved (pre-1.8.0) saves also predate the 2.0.0 gaze field.
|
||||
["1.7.0 (missing gaze)", ["gaze"]],
|
||||
["1.4.0 (missing outerwear and gaze)", ["outerwear", "gaze"]],
|
||||
["0.89.0 (missing outerwear, gaze + the three 0.90.0 fields)",
|
||||
["outerwear", "gaze", "tattoos", "tattoo_placement", "legwear"]],
|
||||
]) {
|
||||
test(`configure restores a ${label} workflow onto the right widgets`, async () => {
|
||||
const { node, FakeNodeType } = await configurableMainNode();
|
||||
|
||||
@@ -236,16 +236,69 @@ test("the trait facet composes with both the tab and the query", async () => {
|
||||
picker.renderGrid();
|
||||
const facetOnly = picker.visible.length;
|
||||
assert.ok(facetOnly > 0, "sanity: the giant facet matches something");
|
||||
assert.ok(picker.visible.every((e) => e.haystack.includes("giant")), "facet must hold on the All tab");
|
||||
assert.ok(
|
||||
picker.visible.every((e) => e.kind === "cosplayer" && (e.traits || []).includes("giant")),
|
||||
"facet must hold on the All tab, and trait facets match cosplayers only",
|
||||
);
|
||||
|
||||
// Trait facets are cosplayer-only, so another kind's tab is empty under one...
|
||||
picker.activeTab = "creature";
|
||||
picker.renderGrid();
|
||||
assert.ok(picker.visible.length > 0 && picker.visible.length < facetOnly,
|
||||
"tab + facet must narrow further than the facet alone");
|
||||
assert.ok(
|
||||
picker.visible.every((e) => e.kind === "creature" && e.haystack.includes("giant")),
|
||||
"both the tab and the facet must apply at once",
|
||||
);
|
||||
assert.equal(picker.visible.length, 0, "no creature matches a trait facet");
|
||||
|
||||
// ...and the cosplayer tab shows exactly the facet's matches.
|
||||
picker.activeTab = "cosplayer";
|
||||
picker.renderGrid();
|
||||
assert.equal(picker.visible.length, facetOnly);
|
||||
picker.activeTab = "__all__";
|
||||
picker.query = "zzzz-no-such-character";
|
||||
picker.renderGrid();
|
||||
assert.equal(picker.visible.length, 0, "the query narrows the facet too");
|
||||
picker.close();
|
||||
} finally {
|
||||
stub.restore();
|
||||
}
|
||||
});
|
||||
|
||||
test("the gender filter keeps that gender plus entries that suit either", async () => {
|
||||
resetDom();
|
||||
__testing.__resetForTests();
|
||||
const stub = installFetchStub(rosterOkHandler);
|
||||
try {
|
||||
const picker = await openPicker();
|
||||
picker.activeTab = "__all__";
|
||||
picker.renderGrid();
|
||||
const all = picker.visible.length;
|
||||
picker.gender = "Male";
|
||||
picker.renderGrid();
|
||||
assert.ok(picker.visible.length > 0 && picker.visible.length < all);
|
||||
assert.ok(picker.visible.every((e) => !e.gender || e.gender === "Any" || e.gender === "Male"),
|
||||
"no Female-only entry under Male");
|
||||
assert.ok(picker.visible.some((e) => e.kind === "creature"), "genderless creatures stay");
|
||||
picker.close();
|
||||
} finally {
|
||||
stub.restore();
|
||||
}
|
||||
});
|
||||
|
||||
test("the franchise filter lists roster franchises by category and keeps only that franchise", async () => {
|
||||
resetDom();
|
||||
__testing.__resetForTests();
|
||||
const stub = installFetchStub(rosterOkHandler);
|
||||
try {
|
||||
const picker = await openPicker();
|
||||
const select = picker.franchiseSelect;
|
||||
assert.ok(select.querySelectorAll("optgroup").length > 1, "options are grouped by category");
|
||||
const franchise = REAL_ROSTER.find((e) => e.franchise).franchise;
|
||||
assert.ok([...select.options].some((o) => o.value === franchise));
|
||||
select.value = franchise;
|
||||
select.dispatchEvent(new window.Event("change"));
|
||||
assert.ok(picker.visible.length > 0);
|
||||
assert.ok(picker.visible.every((e) => e.franchise === franchise));
|
||||
picker.close();
|
||||
picker.open();
|
||||
await new Promise((r) => setTimeout(r, 0));
|
||||
assert.equal(picker.franchiseSelect.value, franchise, "the choice survives a reopen");
|
||||
picker.close();
|
||||
} finally {
|
||||
stub.restore();
|
||||
@@ -505,17 +558,25 @@ test("facet predicates match real entries with the corresponding trait word", ()
|
||||
assert.ok(__testing.FACET_PREDICATES["Mascot suits and beasts only"](teemo));
|
||||
});
|
||||
|
||||
test('"Non-human / colored" also matches the "an even ... coat of" phrasing, not just the two "smooth"/"uniform" wordings', () => {
|
||||
// Fix-round finding: the facet originally checked only two of the backend
|
||||
// regex's three alternatives, missing every entry using the legacy
|
||||
// "an even, all-over coat of <colour> <material>" wording (Maui among them)
|
||||
// -- 97 of ~301 backend-flagged entries in the real roster.
|
||||
const maui = REAL_ROSTER.find((e) => e.name === "Maui");
|
||||
assert.ok(maui, "sanity: Maui exists in the real roster");
|
||||
assert.ok(
|
||||
__testing.FACET_PREDICATES["Non-human / colored"](maui),
|
||||
'Maui uses "coat of" phrasing and must match the facet',
|
||||
);
|
||||
test('"Non-human / colored" reads the nonhuman flag, whatever wording the costume uses', () => {
|
||||
const sheHulk = REAL_ROSTER.find((e) => e.name === "She-Hulk");
|
||||
assert.ok(sheHulk, "sanity: She-Hulk exists in the real roster");
|
||||
assert.ok(__testing.FACET_PREDICATES["Non-human / colored"](sheHulk));
|
||||
});
|
||||
|
||||
test("a costume that merely says 'tiny' is not Tiny: facets read traits, not prose", () => {
|
||||
const ivy = {
|
||||
kind: "cosplayer", name: "Poison Ivy-style", haystack: "poison ivy tiny leaves entwined in the hair",
|
||||
};
|
||||
assert.ok(!__testing.FACET_PREDICATES["Tiny characters"](ivy));
|
||||
assert.ok(!__testing.FACET_PREDICATES["Non-human / colored"](ivy));
|
||||
const real = { ...ivy, traits: ["tiny"] };
|
||||
assert.ok(__testing.FACET_PREDICATES["Tiny characters"](real));
|
||||
assert.deepEqual(__testing.traitChips(real), ["tiny"]);
|
||||
// Trait facets are cosplayer-only; an archetype whose prose says "giant" never matches.
|
||||
const arch = { kind: "archetype", name: "X", haystack: "giant tiny beast", traits: ["giant"] };
|
||||
assert.ok(!__testing.FACET_PREDICATES["Giant characters"](arch));
|
||||
assert.ok(!__testing.FACET_PREDICATES["People only — no mascot suits or beasts"](arch));
|
||||
});
|
||||
|
||||
// --- bug 1 (critical): the trigger button must be inert while its node is a
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
/**
|
||||
* Saved `widgets_values` is in SCHEMA order for the three nodes whose JS re-sorts or
|
||||
* inserts widgets (1.8.0), so a tool without a browser can map the array by position.
|
||||
*
|
||||
* ComfyUI writes one value per entry of `node.widgets`, buttons and headers included.
|
||||
* IdentityForge and IdentityForgeCreature group their widgets under headers and
|
||||
* IdentityForgeCosplayer splices `franchise_filter` in after `character`; each saves
|
||||
* the schema widgets only and marks the save with `properties.if_widget_order`.
|
||||
*/
|
||||
import { test } from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import { installDom } from "./dom.mjs";
|
||||
import { __getExtension } from "./stubs/app.js";
|
||||
import { makeFakeNode, widgetsFor } from "./fake_node.mjs";
|
||||
|
||||
installDom();
|
||||
|
||||
await import("../../js/identity_forge.js");
|
||||
await import("../../js/identity_forge_creature.js");
|
||||
await import("../../js/identity_forge_cosplayer.js");
|
||||
|
||||
const NODES = [
|
||||
["IdentityForge", "identity_forge.ui"],
|
||||
["IdentityForgeCreature", "identity_forge.creature.ui"],
|
||||
["IdentityForgeCosplayer", "identity_forge.cosplayer.ui"],
|
||||
];
|
||||
|
||||
/** A fake node type with a LiteGraph-shaped serialize/configure pair, extension applied. */
|
||||
async function build(nodeId, extName) {
|
||||
class FakeNodeType {}
|
||||
FakeNodeType.prototype.configure = function (info) {
|
||||
const values = info?.widgets_values || [];
|
||||
(this.widgets || []).forEach((w, i) => { if (i < values.length) w.value = values[i]; });
|
||||
this.properties = { ...(info?.properties || {}) };
|
||||
};
|
||||
FakeNodeType.prototype.serialize = function () {
|
||||
const o = {
|
||||
widgets_values: this.widgets.map((w) => (w ? w.value : null)),
|
||||
properties: { ...(this.properties || {}) },
|
||||
};
|
||||
this.onSerialize?.(o);
|
||||
return o;
|
||||
};
|
||||
await __getExtension(extName).beforeRegisterNodeDef(FakeNodeType, { name: nodeId });
|
||||
const node = makeFakeNode(nodeId);
|
||||
Object.setPrototypeOf(node, FakeNodeType.prototype);
|
||||
FakeNodeType.prototype.onNodeCreated.call(node);
|
||||
return { node, FakeNodeType };
|
||||
}
|
||||
|
||||
const schemaNames = (nodeId) => widgetsFor(nodeId).map((w) => w.name);
|
||||
const byName = (node, name) => node.widgets.find((w) => w.name === name);
|
||||
|
||||
for (const [nodeId, extName] of NODES) {
|
||||
test(`${nodeId}: serializes the schema widgets in schema order, marked, with no gaps`, async () => {
|
||||
const { node } = await build(nodeId, extName);
|
||||
for (const name of schemaNames(nodeId)) byName(node, name).value = `saved-${name}`;
|
||||
|
||||
const saved = node.serialize();
|
||||
assert.deepEqual(saved.widgets_values, schemaNames(nodeId).map((n) => `saved-${n}`));
|
||||
assert.ok(saved.widgets_values.every((v) => v !== null && v !== undefined));
|
||||
assert.equal(saved.properties.if_widget_order, "schema");
|
||||
});
|
||||
|
||||
test(`${nodeId}: a schema-order save round-trips onto the right widgets`, async () => {
|
||||
const { node } = await build(nodeId, extName);
|
||||
for (const name of schemaNames(nodeId)) byName(node, name).value = `saved-${name}`;
|
||||
const saved = JSON.parse(JSON.stringify(node.serialize()));
|
||||
|
||||
const { node: fresh } = await build(nodeId, extName);
|
||||
fresh.configure({ widgets_values: saved.widgets_values, properties: saved.properties });
|
||||
for (const name of schemaNames(nodeId)) {
|
||||
assert.equal(byName(fresh, name).value, `saved-${name}`, `${name} should be restored`);
|
||||
}
|
||||
});
|
||||
|
||||
test(`${nodeId}: a pre-1.8.0 interleaved save still loads by position`, async () => {
|
||||
const { node } = await build(nodeId, extName);
|
||||
// What 1.7.0 wrote: one value per entry of node.widgets, display order, no marker.
|
||||
const legacy = node.widgets.map((w, i) => `legacy-${i}-${w.name}`);
|
||||
|
||||
node.configure({ widgets_values: legacy });
|
||||
node.widgets.forEach((w, i) => {
|
||||
assert.equal(w.value, legacy[i], `${w.name} should hold the value saved at its slot`);
|
||||
});
|
||||
});
|
||||
|
||||
test(`${nodeId}: a marked save one field short leaves the missing field at its default`, async () => {
|
||||
const { node } = await build(nodeId, extName);
|
||||
const names = schemaNames(nodeId);
|
||||
for (const name of names) byName(node, name).value = `saved-${name}`;
|
||||
const saved = JSON.parse(JSON.stringify(node.serialize()));
|
||||
// A save from before the last schema field existed.
|
||||
const short = saved.widgets_values.slice(0, -1);
|
||||
|
||||
const { node: fresh } = await build(nodeId, extName);
|
||||
const lastName = names[names.length - 1];
|
||||
const dflt = byName(fresh, lastName).value;
|
||||
fresh.configure({ widgets_values: short, properties: saved.properties });
|
||||
|
||||
assert.equal(byName(fresh, lastName).value, dflt, `${lastName} keeps its default`);
|
||||
for (const name of names.slice(0, -1)) {
|
||||
assert.equal(byName(fresh, name).value, `saved-${name}`, `${name} restored`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
test("IdentityForgeCosplayer: franchise_filter is not saved", async () => {
|
||||
const { node } = await build("IdentityForgeCosplayer", "identity_forge.cosplayer.ui");
|
||||
assert.ok(byName(node, "franchise_filter"), "the filter widget exists on the node");
|
||||
const saved = node.serialize();
|
||||
assert.equal(saved.widgets_values.length, schemaNames("IdentityForgeCosplayer").length);
|
||||
});
|
||||
@@ -27,7 +27,7 @@ from data.cosplayers import get_cosplayer_names
|
||||
from nodes.identity_forge import (
|
||||
generate_character, _parse_archetype_json, _COSPLAY_LABEL_KEY, _COVERS_FACE_KEY,
|
||||
_COVERS_BODY_KEY, _COVERS_HAIR_KEY, _MASK_KEY, _SCALE_TIER_KEY, _CONTROL_FIELDS,
|
||||
_SPECIES_KEY, _ANATOMY_NOTE_KEY,
|
||||
_SPECIES_KEY, _ANATOMY_NOTE_KEY, _SUBJECT_NOUN_KEY,
|
||||
)
|
||||
from nodes.identity_forge_cosplayer import (
|
||||
build_cosplayer_json, _MASK_DEFAULT, _MASK_OFF,
|
||||
@@ -55,6 +55,7 @@ def render(
|
||||
# entry needs (0.97.0). A preview that skips a forwarded key misreports the very
|
||||
# thing you opened it to check.
|
||||
anatomy_note = flat.pop(_ANATOMY_NOTE_KEY, None)
|
||||
subject_noun = flat.pop(_SUBJECT_NOUN_KEY, None) # same trap again (2.1.0)
|
||||
covers_body = bool(flat.pop(_COVERS_BODY_KEY, None))
|
||||
covers_hair = bool(flat.pop(_COVERS_HAIR_KEY, None))
|
||||
# The entry's own size_scale tier. The node pops and forwards this; the preview
|
||||
@@ -76,7 +77,7 @@ def render(
|
||||
seed, resolved_gender, locked, cosplay_label=label, covers_face=covers_face,
|
||||
covers_body=covers_body, covers_hair=covers_hair, species=species,
|
||||
character_scale=character_scale, mask_text=mask_text,
|
||||
anatomy_note=anatomy_note,
|
||||
anatomy_note=anatomy_note, subject_noun=subject_noun,
|
||||
)
|
||||
|
||||
|
||||
|
||||
+789
-61
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,101 @@
|
||||
"""Tests for the IdentityForgeExpressionSheet node (1.10.0).
|
||||
|
||||
Contract: one resolved character, several expressions, and nothing but the face's
|
||||
emotion moving between them.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import unittest
|
||||
|
||||
from data.fields import FIELD_DEFINITIONS
|
||||
from nodes.identity_forge import IdentityForge, _live_exclusions
|
||||
from nodes.identity_forge_cosplayer import IdentityForgeCosplayer
|
||||
from nodes.identity_forge_expression_sheet import (
|
||||
_SHEETS, _VIEWS, IdentityForgeExpressionSheet, resolve_expression_sheet,
|
||||
)
|
||||
|
||||
_OWNED = ("expression", "mood", "smile_type")
|
||||
|
||||
|
||||
def _forge(seed: int) -> tuple[str, str]:
|
||||
kwargs: dict = {spec.id: "Random" for spec in IdentityForge.define_schema().inputs}
|
||||
kwargs.update(
|
||||
seed=seed, archetype_json="", set_all_fields="Off", gender="Any",
|
||||
wardrobe="Match gender", size_scale="Auto", hair_color_scope="Natural only",
|
||||
accessory_density="Balanced", location_setting="Any indoor/outdoor",
|
||||
)
|
||||
return IdentityForge.execute(**kwargs).args[:2]
|
||||
|
||||
|
||||
class VocabularyTests(unittest.TestCase):
|
||||
def test_every_triple_value_is_a_live_option(self):
|
||||
for name, triple in _VIEWS.items():
|
||||
for field, value in zip(_OWNED, triple):
|
||||
if value == "None":
|
||||
continue
|
||||
with self.subTest(view=name, field=field):
|
||||
self.assertIn(value, FIELD_DEFINITIONS[field]["female_options"])
|
||||
self.assertIn(value, FIELD_DEFINITIONS[field]["male_options"])
|
||||
|
||||
def test_no_triple_pairs_values_the_engine_excludes(self):
|
||||
# A lock beats a rule, so the engine would voice a contradictory pair. Catch
|
||||
# it here instead (coherence checklist 5: expression vs mood must agree).
|
||||
for name, triple in _VIEWS.items():
|
||||
resolved = {f: v for f, v in zip(_OWNED, triple) if v != "None"}
|
||||
for field, value in resolved.items():
|
||||
with self.subTest(view=name, field=field):
|
||||
self.assertNotIn(value, _live_exclusions(field, resolved))
|
||||
|
||||
def test_every_sheet_names_known_views_without_repeats(self):
|
||||
for sheet, names in _SHEETS.items():
|
||||
self.assertEqual(len(names), len(set(names)), sheet)
|
||||
self.assertLessEqual(set(names), set(_VIEWS), sheet)
|
||||
self.assertEqual(len(_SHEETS["Full (10)"]), 10)
|
||||
|
||||
|
||||
class SheetTests(unittest.TestCase):
|
||||
def test_same_person_only_the_face_moves(self):
|
||||
_, document = _forge(11)
|
||||
prompts, labels = resolve_expression_sheet(document, "Basic (6)", "Unspecified")
|
||||
self.assertEqual(len(prompts), 6)
|
||||
self.assertEqual(labels[0], "1-neutral")
|
||||
self.assertEqual(len(set(prompts)), 6, "every view must differ")
|
||||
# The person is the same: the identity sentence leads every prompt unchanged.
|
||||
heads = {prompt.split(". ")[0] for prompt in prompts}
|
||||
self.assertEqual(len(heads), 1, heads)
|
||||
self.assertIn("laughing", prompts[2])
|
||||
|
||||
def test_framing_replaces_the_shot(self):
|
||||
_, document = _forge(3)
|
||||
prompts, _ = resolve_expression_sheet(document, "Smiles (3)", "Head and shoulders")
|
||||
for prompt in prompts:
|
||||
self.assertIn("close-up portrait", prompt)
|
||||
|
||||
def test_a_masked_character_emits_one_view(self):
|
||||
kwargs = {spec.id: getattr(spec, "default", None)
|
||||
for spec in IdentityForgeCosplayer.define_schema().inputs}
|
||||
kwargs.update(character="Grimace", seed=7, upstream="")
|
||||
cosplay = IdentityForgeCosplayer.execute(**kwargs).args[0]
|
||||
forge_kwargs = {spec.id: "Random" for spec in IdentityForge.define_schema().inputs}
|
||||
forge_kwargs.update(seed=7, archetype_json=cosplay, set_all_fields="Off",
|
||||
gender="Any", wardrobe="Match gender", size_scale="Auto",
|
||||
hair_color_scope="Natural only", accessory_density="Balanced",
|
||||
location_setting="Any indoor/outdoor")
|
||||
document = IdentityForge.execute(**forge_kwargs).args[1]
|
||||
self.assertTrue(json.loads(document)["_meta"].get("covers_face"))
|
||||
prompts, labels = resolve_expression_sheet(document, "Full (10)", "Head and shoulders")
|
||||
self.assertEqual(labels, ["1-masked"])
|
||||
self.assertEqual(len(prompts), 1)
|
||||
|
||||
|
||||
class SchemaTests(unittest.TestCase):
|
||||
def test_outputs_are_lists(self):
|
||||
schema = IdentityForgeExpressionSheet.define_schema()
|
||||
self.assertEqual(schema.node_id, "IdentityForgeExpressionSheet")
|
||||
self.assertEqual(schema.category, "conditioning/character")
|
||||
self.assertTrue(all(output.is_output_list for output in schema.outputs))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
@@ -169,6 +169,49 @@ class CosplayerFranchisesInSync(unittest.TestCase):
|
||||
"built-in entries unreachable through franchise_filter")
|
||||
|
||||
|
||||
class RosterTraitsMatchBackendScopes(unittest.TestCase):
|
||||
"""The picker's trait facets read ``traits`` flags in the roster index; the
|
||||
Cosplayer node's ``random_scope`` / ``random_pool`` read predicates over the
|
||||
entry. The two are written separately (the generator must not import the node
|
||||
module), so this is the pin: for every built-in cosplayer, the generated flags
|
||||
equal the set of backend scopes that are true for it. A facet that disagrees
|
||||
with the node's randomizer is the Poison-Ivy-is-Tiny bug again."""
|
||||
|
||||
_SCOPE_TO_TRAIT = {
|
||||
"Giant characters": "giant",
|
||||
"Tiny characters": "tiny",
|
||||
"Non-human / colored": "nonhuman",
|
||||
"Masked": "masked",
|
||||
"Mascot / full-suit": "mascot",
|
||||
"Beast / non-humanoid": "beast",
|
||||
}
|
||||
|
||||
def test_traits_equal_the_backend_scopes_for_every_cosplayer(self):
|
||||
import importlib.util
|
||||
spec = importlib.util.spec_from_file_location(
|
||||
"_gen_js_data", ROOT / "scripts" / "generate_js_data.py")
|
||||
gen = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(gen)
|
||||
from nodes.identity_forge_cosplayer import (
|
||||
_SPECIAL_SCOPES, _pool_is_mascot_or_beast, _pool_is_people)
|
||||
|
||||
# The committed literal, not the imported COSPLAYERS (which merges a
|
||||
# maintainer's private user_options.json).
|
||||
cosplayers = gen._module_literal(ROOT / "data" / "cosplayers.py", "COSPLAYERS")
|
||||
roster = {e["name"]: e for e in json.loads(
|
||||
(ROOT / "js" / "identity_forge_roster.json").read_text(encoding="utf-8"))
|
||||
if e["kind"] == "cosplayer"}
|
||||
self.assertEqual(set(cosplayers), set(roster))
|
||||
for name, entry in cosplayers.items():
|
||||
expected = {trait for scope, trait in self._SCOPE_TO_TRAIT.items()
|
||||
if _SPECIAL_SCOPES[scope](entry)}
|
||||
got = set(roster[name].get("traits", []))
|
||||
self.assertEqual(got, expected, f"{name}: roster traits != backend scopes")
|
||||
# the two random_pool values are derived from mascot/beast
|
||||
self.assertEqual(_pool_is_mascot_or_beast(entry), bool(got & {"mascot", "beast"}))
|
||||
self.assertEqual(_pool_is_people(entry), not (got & {"mascot", "beast"}))
|
||||
|
||||
|
||||
class RosterJsonSizeTests(unittest.TestCase):
|
||||
"""``js/identity_forge_roster.json`` is the picker modal's bulk search index
|
||||
(a separate, later task builds the modal that fetches it). It is regenerated
|
||||
|
||||
@@ -63,11 +63,54 @@ class CheckPassesTests(unittest.TestCase):
|
||||
for kind, records in manifest["entries"].items():
|
||||
for name, record in records.items():
|
||||
self.assertEqual(
|
||||
set(record) - {"hash", "rendered", "seed"}, set(),
|
||||
f"{kind}/{name} records more than a hash, a date and an "
|
||||
f"optional re-rolled seed",
|
||||
set(record) - {"hash", "rendered", "seed", "published"}, set(),
|
||||
f"{kind}/{name} records more than a hash, a date, an "
|
||||
f"optional re-rolled seed and a publish flag",
|
||||
)
|
||||
|
||||
def test_a_render_that_never_reached_gh_pages_fails_check(self) -> None:
|
||||
# 1.10.0: a tile rendered and recorded but never published used to pass
|
||||
# --check. A record without the key predates the flag.
|
||||
manifest = render_gallery.load_manifest()
|
||||
kind = "cosplay"
|
||||
name = next(iter(manifest["entries"][kind]))
|
||||
self.assertNotIn(name, render_gallery.survey((kind,))[kind]["unpublished"])
|
||||
manifest["entries"][kind][name]["published"] = False
|
||||
original = render_gallery.load_manifest
|
||||
render_gallery.load_manifest = lambda: manifest
|
||||
try:
|
||||
self.assertIn(name, render_gallery.survey((kind,))[kind]["unpublished"])
|
||||
with redirect_stdout(io.StringIO()):
|
||||
self.assertEqual(render_gallery.main(["--check", "--kind", kind]), 1)
|
||||
finally:
|
||||
render_gallery.load_manifest = original
|
||||
|
||||
|
||||
class RehashTests(unittest.TestCase):
|
||||
def test_rehash_clears_stale_and_keeps_everything_else(self) -> None:
|
||||
# 2.0.0: accept a release-wide prose change without re-rendering. Only the
|
||||
# hash moves; an unpublished tile stays unpublished.
|
||||
kind = "creatures"
|
||||
manifest = render_gallery.load_manifest()
|
||||
names = list(manifest["entries"][kind])[:2]
|
||||
for name in names:
|
||||
manifest["entries"][kind][name]["hash"] = "0" * 16
|
||||
manifest["entries"][kind][names[1]]["published"] = False
|
||||
saved = {}
|
||||
original_load, original_save = render_gallery.load_manifest, render_gallery.save_manifest
|
||||
render_gallery.load_manifest = lambda: manifest
|
||||
render_gallery.save_manifest = lambda m: saved.setdefault("m", m)
|
||||
try:
|
||||
with redirect_stdout(io.StringIO()):
|
||||
self.assertEqual(render_gallery.main(["--rehash", "--kind", kind]), 0)
|
||||
result = render_gallery.survey((kind,))[kind]
|
||||
self.assertEqual(result["stale"], [])
|
||||
self.assertEqual(result["unpublished"], [names[1]])
|
||||
self.assertIs(saved["m"], manifest)
|
||||
finally:
|
||||
render_gallery.load_manifest = original_load
|
||||
render_gallery.save_manifest = original_save
|
||||
|
||||
|
||||
class EntryHashTests(unittest.TestCase):
|
||||
def test_hash_is_stable_across_calls(self) -> None:
|
||||
@@ -94,11 +137,27 @@ class EntryHashTests(unittest.TestCase):
|
||||
name = next(iter(ARCHETYPES))
|
||||
before = render_gallery.entry_hash("archetypes", name)
|
||||
entry = ARCHETYPES[name]
|
||||
entry["__probe__"] = "x"
|
||||
original = entry["outfit_description"]
|
||||
entry["outfit_description"] = original + ", and a red scarf"
|
||||
try:
|
||||
self.assertNotEqual(before, render_gallery.entry_hash("archetypes", name))
|
||||
finally:
|
||||
entry.pop("__probe__")
|
||||
entry["outfit_description"] = original
|
||||
|
||||
def test_hash_is_over_the_resolved_prose(self) -> None:
|
||||
# 2.0.0: an engine change that rewrites the prose must mark the tile stale,
|
||||
# which a hash over the entry dict could not see.
|
||||
import hashlib
|
||||
|
||||
prose = render_gallery.resolve_prose("cosplay", "2B")
|
||||
expected = hashlib.sha256(("v2:" + prose).encode("utf-8")).hexdigest()[:16]
|
||||
self.assertEqual(render_gallery.entry_hash("cosplay", "2B"), expected)
|
||||
|
||||
def test_a_rerolled_tile_hashes_its_own_seed(self) -> None:
|
||||
name = "2B"
|
||||
record = {"seed": render_gallery.entry_seed(name, 3)}
|
||||
self.assertEqual(render_gallery.record_reroll(name, record), 3)
|
||||
self.assertEqual(render_gallery.record_reroll(name, {}), 0)
|
||||
|
||||
def test_seed_is_deterministic_and_matches_the_recorded_formula(self) -> None:
|
||||
import hashlib
|
||||
@@ -145,6 +204,14 @@ class GalleryShotPoolTests(unittest.TestCase):
|
||||
self.assertIn(name, COSPLAYERS)
|
||||
self.assertIn(pose, poses, name)
|
||||
|
||||
def test_shot_pins_name_real_entries_and_gallery_shots(self) -> None:
|
||||
from data.templates import ARCHETYPES
|
||||
for kind, pins in render_gallery._GALLERY_SHOT.items():
|
||||
self.assertEqual(kind, "archetypes")
|
||||
for name, shot in pins.items():
|
||||
self.assertIn(name, ARCHETYPES)
|
||||
self.assertIn(shot, render_gallery._GALLERY_SHOTS, name)
|
||||
|
||||
|
||||
class RuntimeLoggingTests(unittest.TestCase):
|
||||
"""1.2.0: node runtime messages go to `logging`, not stdout.
|
||||
|
||||
@@ -48,7 +48,9 @@ class CosplayJewelryTests(unittest.TestCase):
|
||||
for name in ("Detective Frank Harris", "Kitana", "Chewbacca", "Daredevil"):
|
||||
for seed in range(8):
|
||||
prose, _ = render(name, "", "Full character", seed)
|
||||
self.assertNotRegex(prose, _JEWELRY_WORDS, f"{name} {seed}")
|
||||
# The scene can name "chain nets" on a basketball court; only the person counts.
|
||||
person = re.split(r"\b[Ss]et in ", prose)[0]
|
||||
self.assertNotRegex(person, _JEWELRY_WORDS, f"{name} {seed}")
|
||||
self.assertNotIn(" nails", prose, f"{name} {seed}")
|
||||
|
||||
def test_costume_only_keeps_jewelry_unmasked_and_drops_it_masked(self):
|
||||
|
||||
@@ -0,0 +1,243 @@
|
||||
"""The 2.0.0 seed-epoch changes: each one moves seeds or gallery prose on purpose.
|
||||
|
||||
Measured numbers for every item are in docs/history.md -> "2.0.0".
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import unittest
|
||||
|
||||
from data.constraints import _LOCATION_FAMILY, _STUDIO_LIT_INTERIORS
|
||||
from data.fields import FIELD_DEFINITIONS, FIELD_FAMILIES, OUTDOOR_LOCATIONS
|
||||
from nodes.identity_forge import _format_prose, _live_exclusions, generate_character
|
||||
|
||||
N = 1500
|
||||
|
||||
|
||||
def _flat(js: str) -> dict:
|
||||
out = {}
|
||||
for group, fields in json.loads(js).items():
|
||||
if group != "_meta" and isinstance(fields, dict):
|
||||
out.update(fields)
|
||||
return out
|
||||
|
||||
|
||||
class ExpressionArticleTests(unittest.TestCase):
|
||||
"""A noun expression reads "a bright smile", never "is bright smile"."""
|
||||
|
||||
def _scene(self, expression: str) -> str:
|
||||
return _format_prose({"expression": expression}, "Male", None, None)
|
||||
|
||||
def test_noun_expressions_take_an_article(self):
|
||||
self.assertIn("His expression is a bright smile", self._scene("bright smile"))
|
||||
self.assertIn("His expression is an intense gaze", self._scene("intense gaze"))
|
||||
self.assertIn("His expression is a wide toothy grin", self._scene("wide toothy grin"))
|
||||
|
||||
def test_adjectives_and_mass_nouns_stay_bare(self):
|
||||
self.assertIn("His expression is confident", self._scene("confident"))
|
||||
self.assertIn("His expression is quiet amusement", self._scene("quiet amusement"))
|
||||
|
||||
def test_an_article_already_present_is_not_doubled(self):
|
||||
self.assertIn("His expression is a warm smile", self._scene("a warm smile"))
|
||||
|
||||
|
||||
class DrawWeightTests(unittest.TestCase):
|
||||
"""Women's short hair near 10% and age 60+ near 16% with 75 and 80 added."""
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.rows = {g: [_flat(generate_character(s, g, {})[1]) for s in range(N)]
|
||||
for g in ("Female", "Male")}
|
||||
|
||||
def _share(self, gender, field, values):
|
||||
rows = self.rows[gender]
|
||||
return sum(r.get(field) in values for r in rows) / len(rows)
|
||||
|
||||
def test_womens_shortest_lengths_are_near_ten_percent(self):
|
||||
share = self._share("Female", "hair_length",
|
||||
{"buzzed very short", "very short", "short pixie"})
|
||||
self.assertTrue(0.06 < share < 0.14, share)
|
||||
|
||||
def test_age_sixty_plus_holds_near_sixteen_percent(self):
|
||||
for gender in ("Female", "Male"):
|
||||
share = self._share(gender, "age", {"60", "65", "70", "75", "80"})
|
||||
self.assertTrue(0.12 < share < 0.20, (gender, share))
|
||||
|
||||
def test_seventy_five_and_eighty_draw(self):
|
||||
self.assertGreater(self._share("Female", "age", {"75"}), 0)
|
||||
self.assertGreater(self._share("Male", "age", {"80"}), 0)
|
||||
|
||||
|
||||
class IndoorStudioLightingTests(unittest.TestCase):
|
||||
"""A portrait rig only lights a place that owns one (2.0.0)."""
|
||||
|
||||
def test_no_rig_at_an_everyday_interior(self):
|
||||
rig = set(FIELD_FAMILIES["lighting"]["studio_shape"]["variants"])
|
||||
for seed in range(N):
|
||||
for gender in ("Female", "Male"):
|
||||
d = _flat(generate_character(seed, gender, {})[1])
|
||||
loc = d.get("location") or ""
|
||||
if (loc in OUTDOOR_LOCATIONS or _LOCATION_FAMILY.get(loc) == "studio"
|
||||
or loc in _STUDIO_LIT_INTERIORS):
|
||||
continue
|
||||
self.assertNotIn(d.get("lighting"), rig, (seed, gender, loc))
|
||||
|
||||
def test_the_mood_family_stays_legal_indoors(self):
|
||||
mood = set(FIELD_FAMILIES["lighting"]["studio_mood"]["variants"])
|
||||
hits = sum(_flat(generate_character(s, "Female", {})[1]).get("lighting") in mood
|
||||
for s in range(N))
|
||||
self.assertGreater(hits, 0)
|
||||
|
||||
def test_a_locked_rig_moves_the_place_not_the_light(self):
|
||||
for seed in range(40):
|
||||
d = _flat(generate_character(seed, "Female", {"lighting": "Rembrandt lighting"})[1])
|
||||
self.assertEqual(d["lighting"], "Rembrandt lighting")
|
||||
loc = d.get("location") or ""
|
||||
self.assertTrue(loc in _STUDIO_LIT_INTERIORS
|
||||
or _LOCATION_FAMILY.get(loc) == "studio", (seed, loc))
|
||||
|
||||
|
||||
class GazeFieldTests(unittest.TestCase):
|
||||
"""2.0.0: the `looking` poses became their own field, drawn after the pose."""
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.rows = [_flat(generate_character(s, g, {})[1])
|
||||
for s in range(600) for g in ("Female", "Male")]
|
||||
|
||||
def test_pose_and_gaze_are_disjoint(self):
|
||||
pose = set(FIELD_DEFINITIONS["pose"]["female_options"])
|
||||
gaze = set(FIELD_DEFINITIONS["gaze"]["female_options"])
|
||||
self.assertFalse(pose & gaze)
|
||||
|
||||
def test_gaze_is_voiced_after_the_pose(self):
|
||||
prose, _ = generate_character(11, "Female", {"pose": "standing naturally",
|
||||
"gaze": "looking off past the camera"})
|
||||
self.assertIn("She is standing naturally, looking off past the camera.", prose)
|
||||
|
||||
def test_every_drawn_pose_and_gaze_obeys_the_live_rules(self):
|
||||
for d in self.rows:
|
||||
presentation = "Masculine" if d.get("gender") == "Male" else "Feminine"
|
||||
for field in ("pose", "gaze"):
|
||||
self.assertNotIn(d.get(field), _live_exclusions(field, d, presentation),
|
||||
(field, d.get(field), d.get("shot_type")))
|
||||
|
||||
def test_a_selfie_looks_at_the_lens(self):
|
||||
for seed in range(60):
|
||||
d = _flat(generate_character(seed, "Female",
|
||||
{"shot_type": "selfie framing at arm's length"})[1])
|
||||
self.assertNotIn(d.get("gaze"), {"looking off past the camera",
|
||||
"looking over one shoulder", "glancing back",
|
||||
"looking down thoughtfully"}, seed)
|
||||
|
||||
def test_a_locked_gaze_steers_the_pose_drawn_before_it(self):
|
||||
for seed in range(60):
|
||||
d = _flat(generate_character(seed, "Male", {"gaze": "glancing back"})[1])
|
||||
self.assertNotEqual(d.get("pose"), "walking toward the camera", seed)
|
||||
self.assertNotIn(d.get("pose"), {"flashing a peace sign", "giving a thumbs up",
|
||||
"waving at the camera", "making a finger heart"})
|
||||
|
||||
def test_an_old_looking_pose_lock_becomes_a_gaze(self):
|
||||
d = _flat(generate_character(5, "Female",
|
||||
{"pose": "looking directly into the camera"})[1])
|
||||
self.assertEqual(d.get("gaze"), "looking directly into the camera")
|
||||
self.assertIn(d.get("pose"), FIELD_DEFINITIONS["pose"]["female_options"])
|
||||
|
||||
def test_a_turnaround_with_a_pinned_stance_states_no_gaze(self):
|
||||
from nodes.identity_forge_turnaround import resolve_turnaround
|
||||
_, js = generate_character(3, "Female", {"gaze": "glancing back"})
|
||||
prompts, _ = resolve_turnaround(js, "Front + back (2)", "Full body",
|
||||
"standing naturally")
|
||||
for prompt in prompts:
|
||||
self.assertNotIn("glancing back", prompt)
|
||||
|
||||
def test_the_expression_sheet_can_hold_one_gaze(self):
|
||||
from nodes.identity_forge_expression_sheet import resolve_expression_sheet
|
||||
_, js = generate_character(3, "Female", {})
|
||||
prompts, _ = resolve_expression_sheet(js, "Smiles (3)", "Head and shoulders",
|
||||
"looking directly into the camera")
|
||||
for prompt in prompts:
|
||||
self.assertIn("looking directly into the camera", prompt)
|
||||
|
||||
|
||||
class CostumeBackTests(unittest.TestCase):
|
||||
"""2.0.0: a back view draws the entry's `costume_back`, not the chest emblem."""
|
||||
|
||||
def _turnaround(self, name, views="Turnaround (6)"):
|
||||
import tests # noqa: F401 (comfy_api stub)
|
||||
from nodes.identity_forge import IdentityForge
|
||||
from nodes.identity_forge_cosplayer import build_cosplayer_json
|
||||
from nodes.identity_forge_turnaround import _unwrap, resolve_turnaround
|
||||
defaults = {s.id: getattr(s, "default", None)
|
||||
for s in IdentityForge.define_schema().inputs}
|
||||
kwargs = dict(defaults, seed=1, archetype_json=build_cosplayer_json(name, 1))
|
||||
doc = _unwrap(IdentityForge.execute(**kwargs))[1]
|
||||
return resolve_turnaround(doc, views, "Full body", "standing naturally")
|
||||
|
||||
def test_back_views_swap_the_costume(self):
|
||||
from data.cosplayers import COSPLAYERS
|
||||
prompts, labels = self._turnaround("Superman")
|
||||
back = COSPLAYERS["Superman"]["costume_back"]
|
||||
for prompt, label in zip(prompts, labels):
|
||||
swapped = label.endswith(("back", "rear-three-quarter"))
|
||||
self.assertEqual(back in prompt, swapped, label)
|
||||
self.assertEqual("S shield" in prompt, not swapped, label)
|
||||
|
||||
def test_an_entry_without_one_is_unchanged(self):
|
||||
prompts, _ = self._turnaround("Iron Man", "Front + back (2)")
|
||||
from data.cosplayers import COSPLAYERS
|
||||
self.assertIn(COSPLAYERS["Iron Man"]["costume"], prompts[1])
|
||||
|
||||
|
||||
class GarmentSlotTests(unittest.TestCase):
|
||||
"""2.0.0: corpus phrases carry {slot} words drawn from their own seed stream."""
|
||||
|
||||
def test_slots_always_fill(self):
|
||||
for seed in range(400):
|
||||
for gender in ("Female", "Male"):
|
||||
prose, js = generate_character(seed, gender, {"outfit_style": "preppy"})
|
||||
outfit = _flat(js).get("outfit_description") or ""
|
||||
self.assertNotIn("{", prose + outfit, (seed, gender))
|
||||
|
||||
def test_the_slot_stream_moves_no_other_field(self):
|
||||
import random
|
||||
from unittest import mock
|
||||
import nodes.identity_forge as engine
|
||||
real = engine.fill_costume
|
||||
|
||||
def other_stream(template, rng, keep=None):
|
||||
return real(template, random.Random("another stream"), keep)
|
||||
|
||||
for seed in range(150):
|
||||
base = _flat(generate_character(seed, "Male", {"outfit_style": "utility workwear"})[1])
|
||||
with mock.patch.object(engine, "fill_costume", other_stream):
|
||||
moved = _flat(generate_character(seed, "Male",
|
||||
{"outfit_style": "utility workwear"})[1])
|
||||
base.pop("outfit_description", None)
|
||||
moved.pop("outfit_description", None)
|
||||
self.assertEqual(base, moved, seed)
|
||||
|
||||
def test_a_leg_cropping_shot_drops_the_skirt_length_from_the_prose(self):
|
||||
from data.templates import COSTUME_SLOTS
|
||||
lengths = COSTUME_SLOTS["skirt_length"]
|
||||
locks = {"outfit_style": "business casual", "shot_type": "medium shot from waist up"}
|
||||
seen = 0
|
||||
for seed in range(400):
|
||||
prose, js = generate_character(seed, "Female", locks)
|
||||
outfit = _flat(js).get("outfit_description") or ""
|
||||
if "A-line" not in outfit:
|
||||
continue
|
||||
seen += 1
|
||||
self.assertTrue(any(f"{w} skirt" in outfit for w in lengths), outfit)
|
||||
self.assertFalse(any(f"{w} skirt" in prose for w in lengths), prose)
|
||||
self.assertGreater(seen, 0)
|
||||
|
||||
def test_an_older_woman_draws_no_mini(self):
|
||||
for seed in range(300):
|
||||
out = _flat(generate_character(seed, "Female", {"outfit_style": "preppy",
|
||||
"age": "55"})[1])
|
||||
self.assertNotIn("mini skirt", out.get("outfit_description") or "", seed)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main(verbosity=2)
|
||||
@@ -82,5 +82,24 @@ class CheckDetectsDriftTests(unittest.TestCase):
|
||||
self.assertEqual(self._run_check_against(perturbed), 1)
|
||||
|
||||
|
||||
class UnreachableValuesTests(unittest.TestCase):
|
||||
"""Nothing in a field pool is accidentally gated (1.8.0): the values the committed
|
||||
baseline never draws must be exactly the ones ``unreachable_by_design.json`` explains."""
|
||||
|
||||
def test_the_unreachable_set_equals_the_committed_exceptions(self):
|
||||
baseline = json.loads(sweep_marginals.BASELINE_PATH.read_text(encoding="utf-8"))
|
||||
self.assertEqual(
|
||||
sorted(sweep_marginals._unreachable(baseline)),
|
||||
sweep_marginals._committed_unreachable(),
|
||||
"a value is gated with no recorded reason, or an exception is stale; "
|
||||
"see `python scripts/sweep_marginals.py --unreachable`")
|
||||
|
||||
def test_every_exception_states_its_reason(self):
|
||||
groups = json.loads(sweep_marginals.UNREACHABLE_PATH.read_text(
|
||||
encoding="utf-8"))["unreachable"]
|
||||
for group in groups:
|
||||
self.assertGreater(len(group["reason"]), 20, group["field"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
@@ -13,7 +13,9 @@ import re
|
||||
import unittest
|
||||
|
||||
from data.fields import FIELD_DEFINITIONS
|
||||
from nodes.identity_forge import IdentityForge, _OBJECT_TOKEN_CLAUSES, _is_absent
|
||||
from nodes.identity_forge import (
|
||||
IdentityForge, _FEET_OUT_OF_FRAME_SHOTS, _FOOTWEAR_CLAUSES, _OBJECT_TOKEN_CLAUSES, _is_absent,
|
||||
)
|
||||
from nodes.identity_forge_cosplayer import IdentityForgeCosplayer
|
||||
from nodes.identity_forge_turnaround import (
|
||||
_FACE_ONLY_FIELDS, _FACE_OUT_OF_FRAME, _FRAMINGS, _KEEP_POSE, _NEUTRAL_POSES,
|
||||
@@ -41,7 +43,7 @@ def _forge(seed: int, **steer: str) -> tuple[str, str]:
|
||||
accessory_density="Balanced", location_setting="Any indoor/outdoor",
|
||||
)
|
||||
kwargs.update(steer)
|
||||
return IdentityForge.execute(**kwargs).args
|
||||
return IdentityForge.execute(**kwargs).args[:2] # [2] is subject_text (1.8.0)
|
||||
|
||||
|
||||
def _cosplayer_document(name: str, seed: int = 7) -> str:
|
||||
@@ -180,14 +182,20 @@ class TurnaroundStabilityTests(unittest.TestCase):
|
||||
for group, values in json.loads(document).items()
|
||||
if group != "_meta" and isinstance(values, dict)
|
||||
for name, value in values.items()}
|
||||
# 2.0.0: keep, not re-pin, the pose: pinning any stance drops the gaze.
|
||||
replayed, _ = resolve_turnaround(
|
||||
document, "Front + profile (2)", "Unspecified",
|
||||
fields.get("pose", _KEEP_POSE),
|
||||
document, "Front + profile (2)", "Unspecified", _KEEP_POSE,
|
||||
)
|
||||
# View 0 pins the document's own rotation only if it happened to
|
||||
# be the front shot, so compare on the shot the document names.
|
||||
rebuilt = replayed[0].replace(
|
||||
"straight-on eye level", fields.get("shot_type", ""))
|
||||
# 1.7.0: a tight original shot cropped the feet out of the prose; this
|
||||
# view (framing "Unspecified") does not, so it may name the shoes.
|
||||
shoes = fields.get("footwear", "")
|
||||
if fields.get("shot_type", "").split(",")[0] in _FEET_OUT_OF_FRAME_SHOTS:
|
||||
clause = _FOOTWEAR_CLAUSES.get(shoes, f"in {shoes}")
|
||||
rebuilt = rebuilt.replace(f", {clause}", "", 1)
|
||||
self.assertEqual(rebuilt, original, f"{steer} seed {seed}")
|
||||
|
||||
def test_the_documents_gender_survives_into_every_view(self):
|
||||
@@ -252,8 +260,9 @@ class FaceOutOfFrameTests(unittest.TestCase):
|
||||
def test_the_back_view_drops_every_face_only_field(self):
|
||||
_, document = _forge(42)
|
||||
own = self._fields(document)
|
||||
# Keep the pose: a pinned stance drops the gaze from every view (2.0.0).
|
||||
prompts, labels = resolve_turnaround(document, "Turnaround (6)", "Full body",
|
||||
_NEUTRAL_POSES[0])
|
||||
_KEEP_POSE)
|
||||
back = prompts[labels.index("6-back")]
|
||||
front = prompts[labels.index("1-front")]
|
||||
for name in _FACE_ONLY_FIELDS:
|
||||
|
||||
+72
-1
@@ -25,6 +25,8 @@ from data.fields import (
|
||||
PALETTE_ADJECTIVES, PATTERN_TAILS, PATTERN_ADJECTIVES, WORN_ITEM_RES, SHOE_RE,
|
||||
LEADING_ARTICLE_RE,
|
||||
ETHNICITY_REGION, STUDIO_BACKDROPS,
|
||||
COLOUR_WORD_RE, PATTERN_WORD_RE, FABRIC_WORD_RE, LAYER_WORD_RE, OUTER_LAYER_RE,
|
||||
LIGHT_LAYER_RE, WARM_ONLY_GARMENT_RE, BARE_TOP_RE,
|
||||
)
|
||||
from data.constraints import CONSTRAINT_RULES, lock_clash
|
||||
from data.templates import ARCHETYPES, COSTUME_SLOTS
|
||||
@@ -325,6 +327,35 @@ def validate() -> list[str]:
|
||||
if available < 4:
|
||||
errors.append(f"outfit style '{style}' ({bucket}): only {available} options")
|
||||
|
||||
# --- per-garment variation slots (2.0.0) -------------------------
|
||||
# A corpus {slot} must name a COSTUME_SLOTS pool with an underscore in it (so no
|
||||
# word-boundary garment regex reads the unfilled placeholder). Its values must never
|
||||
# name a colour or a pattern (those are clothing_color / clothing_pattern), and every
|
||||
# garment guard must answer the same for each value, so the slot draw cannot flip a
|
||||
# guard. COLD_ONLY_GARMENT_RE is exempt: the season gate filters values by it.
|
||||
_uniform = (FABRIC_WORD_RE, LAYER_WORD_RE, OUTER_LAYER_RE, LIGHT_LAYER_RE,
|
||||
WARM_ONLY_GARMENT_RE, BARE_TOP_RE)
|
||||
corpus_slots: set[str] = set()
|
||||
for style, buckets in OUTFIT_DESCRIPTIONS.items():
|
||||
if style in USER_ADDED_OUTFIT_STYLES:
|
||||
continue
|
||||
for bucket, items in buckets.items():
|
||||
for item in items:
|
||||
for slot in re.findall(r"\{(\w+)\}", item if isinstance(item, str) else ""):
|
||||
corpus_slots.add(slot)
|
||||
if slot not in COSTUME_SLOTS or "_" not in slot:
|
||||
errors.append(f"outfit '{style}' ({bucket}) {item!r}: slot "
|
||||
f"{{{slot}}} must be a COSTUME_SLOTS pool with an '_'")
|
||||
for slot in sorted(corpus_slots & set(COSTUME_SLOTS)):
|
||||
values = COSTUME_SLOTS[slot]
|
||||
for value in values:
|
||||
if COLOUR_WORD_RE.search(value) or PATTERN_WORD_RE.search(value):
|
||||
errors.append(f"garment slot {slot!r}: {value!r} names a colour or pattern")
|
||||
for guard in _uniform:
|
||||
if len({bool(guard.search(v)) for v in values}) > 1:
|
||||
errors.append(f"garment slot {slot!r}: values disagree on a garment guard "
|
||||
f"({guard.pattern[:40]}...)")
|
||||
|
||||
# --- the 0.83.0 garment-only corpus contract ---------------------
|
||||
# The three Clothing widgets (footwear / clothing_color / clothing_pattern) were
|
||||
# drawn every render and never voiced, because OUTFIT_DESCRIPTIONS superseded them
|
||||
@@ -799,6 +830,44 @@ def validate() -> list[str]:
|
||||
errors.append(f"cosplayer '{name}': anatomy_note describes the "
|
||||
f"BODY, not the clothes -- move "
|
||||
f"{worn.group(0)!r} into 'costume' ({note!r})")
|
||||
# --- costume_back (2.0.0) -------------------------------------
|
||||
# The costume seen from behind, swapped in by the Turnaround for back views
|
||||
# (back_costume_document). It replaces `costume` verbatim, so it needs one.
|
||||
back = entry.get("costume_back")
|
||||
if back is not None:
|
||||
if not isinstance(back, str) or not back.strip():
|
||||
errors.append(f"cosplayer '{name}': 'costume_back' must be a "
|
||||
f"non-empty string")
|
||||
elif not entry.get("costume") or body_plan == "feral":
|
||||
errors.append(f"cosplayer '{name}': 'costume_back' needs a worn "
|
||||
f"'costume' to replace")
|
||||
# --- subject (2.1.0) ------------------------------------------
|
||||
# The lead noun for a non-human head ("pig-headed humanoid alien"), voiced
|
||||
# as "a short <subject> with a stocky build". A feral entry already leads
|
||||
# with its own ``creature_of``.
|
||||
noun = entry.get("subject")
|
||||
if noun is not None:
|
||||
if not isinstance(noun, str) or not noun.strip():
|
||||
errors.append(f"cosplayer '{name}': 'subject' must be a non-empty string")
|
||||
elif body_plan == "feral":
|
||||
errors.append(f"cosplayer '{name}': 'subject' is not valid on a feral "
|
||||
f"entry (it leads with 'creature_of')")
|
||||
elif (noun != noun.strip() or noun.endswith((".", ","))
|
||||
or noun.split()[0].lower() in ("a", "an", "the")):
|
||||
errors.append(f"cosplayer '{name}': 'subject' is a bare noun phrase (no "
|
||||
f"article, no trailing punctuation): {noun!r}")
|
||||
# --- costume_weights (2.1.0) ------------------------------------
|
||||
# One positive weight per look, canonical first, so the best-known look can
|
||||
# lead (Orion: the TOS dancer over Gaila's cadet uniform).
|
||||
weights = entry.get("costume_weights")
|
||||
if weights is not None:
|
||||
looks = 1 + len(entry.get("costumes") or [])
|
||||
if (not isinstance(weights, list) or len(weights) != looks
|
||||
or not all(isinstance(w, (int, float)) and not isinstance(w, bool)
|
||||
and w > 0 for w in weights)):
|
||||
errors.append(f"cosplayer '{name}': 'costume_weights' needs one positive "
|
||||
f"number per look ({looks}: the canonical costume, then "
|
||||
f"each 'costumes' alternate)")
|
||||
anatomy = entry.get("anatomy")
|
||||
if anatomy is not None:
|
||||
if not isinstance(anatomy, dict) or not anatomy:
|
||||
@@ -821,7 +890,9 @@ def validate() -> list[str]:
|
||||
errors.append(f"cosplayer '{name}': 'poses' must be a non-empty list of "
|
||||
f"non-empty strings")
|
||||
creature_class = entry.get("creature_class")
|
||||
if creature_class is not None and creature_class not in CREATURE_CLASSES:
|
||||
# "Machines" is cosplay-only (2.1.0): a named droid has no generic creature to
|
||||
# share a class with, and the class only decides the "monstrous" adjective.
|
||||
if creature_class is not None and creature_class not in (*CREATURE_CLASSES, "Machines"):
|
||||
errors.append(f"cosplayer '{name}': creature_class {creature_class!r} is not "
|
||||
f"one of {list(CREATURE_CLASSES)}")
|
||||
# Required on a feral entry, for the same reason ``creature_of`` is: the node
|
||||
|
||||
Reference in New Issue
Block a user