1. 09 Jun, 2026 1 commit
    • Stefy Lanza (nextime / spora )'s avatar
      Township: per-profile LoRA training, Matches page, modals; fix SDXL LoRA dtype · 533bab82
      Stefy Lanza (nextime / spora ) authored
      LoRA training (codai/api/loras.py):
      - Fix instant crash "mat1 and mat2 have the same dtype (Half != float)":
        components loaded in their checkpoint's native dtype (fp16 text encoders +
        fp32 UNet). Force consistent fp32 (stable LoRA reference) for both SD1.5 and
        SDXL, and free VAE/text encoders after pre-encoding to keep memory in budget.
      
      Web UI (tools/gen_township_fighters.py):
      - Per-profile LoRA training launched from the Characters/Environments cards
        (steps/rank, live server progress, status badge); the "Train LoRAs" step now
        trains regardless of the consistency setting and logs what it does. Profiles
        are uploaded to CoderAI first so server-side training has reference images.
      - New Matches page: final short/long videos, single clips, and outcome outputs
        per match. Re-render clips/outputs with the video model (reuses the render
        path, honoring keyframe/LoRA settings) or reassemble finals from existing
        clips (no model).
      - Replace browser alert/confirm/prompt with proper in-page modal dialogs
        (uiConfirm/uiAlert/uiPrompt) on every page.
      - Apply changed connection/model settings (image/video/text model) to the live
        session on Save config / Start, so per-profile jobs use them immediately.
      Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
      533bab82
  2. 08 Jun, 2026 2 commits
    • Stefy Lanza (nextime / spora )'s avatar
      Township UI: profile management, regenerate/upload refs, env parity · 278fab3e
      Stefy Lanza (nextime / spora ) authored
      Web UI (tools/gen_township_fighters.py):
      - Characters and Environments management pages: edit every meta field
        (data-driven form, not a fixed set), remove a profile, delete individual
        reference images — synced to CoderAI (DELETE/PATCH).
      - Regenerate references: background job generates N new images guided by the
        kept references (IP-Adapter) and APPENDS them, preserving non-deleted ones.
      - Upload your own reference image files (magic-byte validated, appended).
      - Clear run banner + status-pill label indicating which run/step is executing.
      - Config: -s/--save and -c/--config; web Save button writes server-side and,
        when launched with -c, defaults to that same config path.
      
      Environment parity / consistency:
      - Per-environment identity LoRAs (loras.py: environment field, env image
        resolver, "place" instance prompt; script stage_env_loras, env_loras.json,
        applied to keyframes + video alongside fighter LoRAs).
      - Environment IP-Adapter: environment_profiles on the image request
        (imagerequest.py) resolved into the IP-Adapter reference set (images.py),
        so environment regeneration can match kept references.
      Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
      278fab3e
    • Stefy Lanza (nextime / spora )'s avatar
      Add config save/load to township fighters generator · f5cb44e1
      Stefy Lanza (nextime / spora ) authored
      CLI: -s/--save FILE writes selected generation options to a JSON config
      and exits; -c/--config FILE loads them as defaults (command-line args
      still override, via a two-phase parse).
      
      Web UI: "Save config" button writes the current form options to a file
      on the server (relative paths land in the output dir, absolute paths as-is)
      via a new /save-config endpoint. Web- and CLI-saved configs are
      interchangeable (shared CONFIG_FIELDS / canonical mapping).
      Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
      f5cb44e1
  3. 03 Jun, 2026 1 commit
  4. 11 May, 2026 9 commits
  5. 08 May, 2026 3 commits
  6. 07 May, 2026 10 commits
  7. 06 May, 2026 14 commits