wardrobegod/web
type-two 5c80e65d58 Salvage the SD lane: patch MODELBEAST, add the SD backend, fix the assets filter at source
The LoRA bench concluded the SD1.5 lane was invalid for garments. That was true of the
CHECKPOINT, not the lane: Hyper_Realism_1.2 was the only one the farm could reach and it is a
person-photoreal merge that framed every garment as worn-and-cropped no matter how hard you
negative-prompted. Given four non-person checkpoints, the lane works — and now beats flux.

MODELBEAST patches (John's explicit blessing; flux_local deliberately untouched because a
parallel session owned it and had already deployed LoRA + Z-Image support there):
· comfyui_sd now STACKS LoRAs. It hard-coded a single LoraLoader, so style+texture together
  was impossible; `lora` now takes a list, each entry optionally `name=0.6`, chained.
· comfyui_sd gains ControlNet (loader + ApplyAdvanced + staged control image). The payoff for
  a wardrobe is recolouring one garment into N colourways that share a byte-identical
  silhouette, so a single cut-out alpha is reusable across every variant.
· Per-node preflight widened to LoRAs and ControlNets, and the arch-mismatch warning now fires
  per LoRA. A wrong-base LoRA is a SILENT no-op, so everything fails loudly instead.
· Deployed to all three nodes that run comfyui_sd (m3ultra, ultra=m1, m4pro=m4), each backed up.
· GET /api/assets now honours ?parent_job=. It declared no such parameter, so FastAPI silently
  dropped it and every caller got the whole table — 2,578 rows for a bogus id. Callers that
  took rows[0] were right only by accident of newest-first ordering. Verified: bogus -> 0 rows,
  real -> only its own. Restarted the queue in a zero-active-jobs window.
· Copied 4 non-person checkpoints ultra -> m3ultra over the fast LAN (12.6 GB).

wardrobegod:
· `sd` backend on /api/gen, defaulting to juggernautXL_ragnarok, with checkpoint/lora/negative
  passthrough. Measured on one prompt+seed: a full isolated flat-lay where Hyper_Realism crops
  a worn garment.
· flat3d template gains 'no hanger, no coat hanger' — a wire hanger appeared in most SD product
  shots and keys into the cutout as if it were garment. doll2d already had the clause.

Verified end-to-end: 7/7 salvage cells ran (including a 2-LoRA stack, previously impossible),
and a Coogi knit generated through wardrobegod's own /api/gen came back isolated on white with
legible raised-knit texture.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 18:14:21 +10:00
..
index.html Salvage the SD lane: patch MODELBEAST, add the SD backend, fix the assets filter at source 2026-07-24 18:14:21 +10:00