• 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
loras.py 24.4 KB