Python
README and run log for Cinema Studio video and the influencer modes; popovers over the viewer
neuregex3c217da04c88
diff --git a/README.md b/README.mdindex 3b832d1..262b80a 100644--- a/README.md+++ b/README.md@@ -19,12 +19,12 @@ browser ──▶ web/ + server/ (Node, Comfy SDK) ──▶ gateway :8000 ─| | ||---|---|-| Apps | 118: 117 *ready* (38 apps with a workflow of their own, the 5 IC-LoRA apps (`genjutsu`, `reframe`, `sdr-hdr`, `mixed-media`, `dub`), `morph`, 71 template apps (a fixed prompt over one of those pipelines, written by `tools/template_apps.py`) and 2 model-free smoke apps) and `moss-image` as a draft. The 116 that use models each have a lab example made on a GPU |+| Apps | 120: 119 *ready* (39 apps with a workflow of their own, the 5 IC-LoRA apps (`genjutsu`, `reframe`, `sdr-hdr`, `mixed-media`, `dub`), `morph`, 72 template apps (a fixed prompt over one of those pipelines, written by `tools/template_apps.py`) and 2 model-free smoke apps) and `moss-image` as a draft. The 118 that use models each have a lab example made on a GPU || Open weights | No API or partner nodes. Every model is a file you download, listed in its app's `app.json` with its Hugging Face repo, size and license; the cloud text-encoder branch of Lightricks' examples is removed || Workflows | Built from official sources by `tools/build_apps.py` (ComfyUI's templates, Lightricks' ComfyUI-LTXVideo examples, Comfy's `comfy-reshoot`); the template apps reuse those bases and the two smoke apps are hand-written. `tools/import_workflow.py` drafts a new app from any other ComfyUI workflow. All accepted by ComfyUI's validator: ComfyUI `e3bee7f` (0.42.0), ComfyUI-LTXVideo `44c8a36`, ComfyUI-CrossViewWarp `fbb1e93` |-| GPU runs | 38 lab runs on Modal from 20 to 26 Oct (L40S and H100), 684 of 707 cases ok. Every example in the web UI comes from one of them, with its time and peak VRAM. Run by run, and what each one changed: [`docs/lab-runs.md`](docs/lab-runs.md) |+| GPU runs | 43 lab runs on Modal from 20 to 26 Oct (L40S and H100), 698 of 721 cases ok. Every example in the web UI comes from one of them, with its time and peak VRAM. Run by run, and what each one changed: [`docs/lab-runs.md`](docs/lab-runs.md) || End to end | Run from the browser on 23 Oct, web UI → server → gateway on Modal → ComfyUI on an H100: `morph` 160.8 s from the button to the video (128.7 s of it on the GPU), `mixed-media` 149 s, `dub` 72 s. On 24 Oct through the hosted demo (`infra/web_app.py`, the same web app on Modal behind a passcode): `face-swap` 25.2 s on the GPU. The model-free smoke apps cover the same path in CI |-| LoRA lab | 321 cases: one showcase per app (115), one per effect (24), one per look of `mixed-media` (16), one per transformation of `morph` (15) and one per character type of `ai-influencer` (8 more), 41 references the others start from, 6 candidate portraits for those references (`refx-*`), 12 style-drift experiments (`mmx-*`), 36 template experiments (`tplx-*`), 2 runs of `reshoot` without its Turbo LoRA, 30 image-model comparisons (`cmp-*`, below), 4 soundtrack candidates for the demo video and 4 checks of new controls (Create Image's looks and 2K, Cinema Studio's genre and palette, Relight's direction); each experiment has its verdict in the note |+| LoRA lab | 327 cases: one showcase per app (117), one per effect (24), one per look of `mixed-media` (16), one per transformation of `morph` (15) and one per character type of `ai-influencer` (8 more), 41 references the others start from, 6 candidate portraits for those references (`refx-*`), 12 style-drift experiments (`mmx-*`), 36 template experiments (`tplx-*`), 2 runs of `reshoot` without its Turbo LoRA, 30 image-model comparisons (`cmp-*`, below), 4 soundtrack candidates for the demo video and 4 checks of new controls (Create Image's looks and 2K, Cinema Studio's genre and palette, Relight's direction), 3 Cinema Studio video tests (two camera moves in order, a cut on Dynamic tempo, the enhancer off) and 1 check of several picks per group in AI Influencer; each experiment has its verdict in the note || CI | `.github/workflows/validate.yml` on every push: the manifest validator, the tests, the type check, the generated packs and VRAM map, and a CPU-only ComfyUI that accepts every workflow and the prompt of every lab case (about 3 minutes) |## Apps@@ -37,6 +37,7 @@ browser ──▶ web/ + server/ (Node, Comfy SDK) ──▶ gateway :8000 ─| `styles` | Image styles | Krea 2 Turbo (int8) + Krea's nine official style LoRAs, picked from a list | fits whole, 19.4 GB | ready || `style-reference` | Style transfer | Krea 2 Turbo (int8) + style-reference LoRA | fits whole, 19.4 GB | ready || `cinema-studio` | Cinematic Cameras | FLUX 3 Image Klein + genre, era, camera body, lens, focal length, aperture, lighting and color palette, written as the look they give; 6 aspect ratios, 1K to 2K | fits whole, 11.0 GB | ready |+| `cinema-video` | Cinema Studio (video) | Cinema Studio's still (FLUX 3 Image Klein) as the first frame of LTX-2.5 image-to-video in one graph: the same look selects plus up to 3 camera moves in order (33, Higgsfield's list), tempo and duration; sound included | needs Modal, peak 44.3 GB on L40S | ready || `edit` | Edit | FLUX 3 Image Klein (int8): a change described in words, no mask | fits whole, 11.0 GB | ready || `inpaint` | Inpaint | FLUX 3 Image Klein with a noise mask: paint the area in the web UI's brush and only that area is redrawn, then pasted back over the photo | fits whole, 11.0 GB | ready || `relight` | Relight | Qwen Image Edit 2509 (fp8) + Relight and Lightning LoRAs: light presets, or direction, softness, brightness and color | tight: 21.5 GB largest phase | ready |@@ -180,7 +181,8 @@ command that makes every example. Add a line to the table there, not a folder by| `rap-video` | Rap God | `video` | your photo || `idol` | Idol | `video` | your photo || `expand-image` | Expand Image | `edit` | your photo, expand |-| `ai-influencer` | AI Influencer | `create-image` | character type, gender, age, origin, skin tone, build, height, proportions, hairstyle, hair color, head shape, neck, eye shape, eye color, facial feature, facial hair, distinctive trait, style, accessory, scene |+| `ai-influencer` | AI Influencer | `create-image` | character type, gender, age, origin, skin tone, build, height, proportions, hairstyle, hair color, head shape, neck, eye shape, eye color, facial features, facial hair, distinctive traits, style, accessories, scene |+| `ai-influencer-photo` | AI Influencer (your photo) | `edit` | your photo, hairstyle, hair color, build, facial hair, facial features, distinctive traits, style, accessories, scene || `bullet-time-scene` | Bullet Time Scene | `effects` | your photo, who or what is in the photo || `bullet-time-white` | Bullet Time White | `edit + effects` | your photo, who or what is in the photo || `bullet-time-splash` | Bullet Time Splash | `edit + effects` | your photo, who or what is in the photo |@@ -236,6 +238,12 @@ On Windows PowerShell, environment variables go before the command as `$env:FREE- Every app has **History** (what you generated with it), **Library** (the lab example, *Load this example*) and**How it works** (models and licenses, VRAM by phase, the download and terminal commands, and *Download theworkflow*: drop it on ComfyUI's canvas to open the app as nodes and chain it with others).+- A select marked `multiple` takes up to a few options at once and sends them in the order picked (Cinema Studio+ Video's camera moves are numbered; AI Influencer's facial features, distinctive traits and accessories). Apps that+ list each other under `modes` show a switch at the top of the form: *Image / Video* in Cinema Studio, *New character+ / Your photo* in AI Influencer.+- **Use in…** on any image or video result (in History and in the viewer) puts the file into another app and opens+ it: the usual next steps first (Image to Video, Motion Transfer, Relight, Upscale…), then every app that takes it.- An image input marked `paint` in `app.json` (`inpaint`) opens a brush over the photo it names: what you paint becomesa white-on-black mask the size of the photo (`web/js/paint.js`).- A thumbs-down on any lab example (Explore, Library, the viewer, the effects picker) marks it *mediocre*. The marksdiff --git a/docs/lab-runs.md b/docs/lab-runs.mdindex 946e390..0de18ea 100644--- a/docs/lab-runs.md+++ b/docs/lab-runs.md@@ -1,9 +1,9 @@# Lab runs-Every GPU run of the lab (`lab/lab_modal.py`) from 20 to 24 Oct 2026, in order. Each run is a folder+Every GPU run of the lab (`lab/lab_modal.py`) from 20 to 26 Oct 2026, in order. Each run is a folder`lab/results/<run id>` with `results.jsonl` (one row per case: status, seconds, peak VRAM), `run.json` (GPU, starttime) and `review.html`. Peaks are the highest of the run; on an 80 GB H100 ComfyUI can keep the models of earlier-steps loaded, so a peak there is not the least an app needs. 34 runs, 646 of 669 cases ok: 22 of the 23 failures are+steps loaded, so a peak there is not the least an app needs. 43 runs, 698 of 721 cases ok: 22 of the 23 failures arethe first IC-LoRA run, before the gated licenses were accepted, and the other is `recast` in the first run.| Run | GPU | What ran | Cases ok | Longest case | Peak |@@ -46,6 +46,11 @@ the first IC-LoRA run, before the gated licenses were accepted, and the other is| `20261026-002124-l40s` | 2 × L40S | Queue job 16, batch 1 of Higgsfield's image menu: the influencer builder and its 9 character types, Create Image's looks at 1.5K and 2K, Cinema Studio's genre, era, lighting and palette, Relight's controls, Moodboard, Character (3 Photos), Photodump, Inpaint | 24 / 24 | 50 s | 28.6 GB || `20261026-003153-l40s` | L40S | Queue job 17: the animal heads asked as whole heads, Photodump with apps/character's wording, Moodboard with 1 MP references | 9 / 9 | 22 s | 12.6 GB || `20261026-003753-l40s` | L40S | Queue job 18: Photodump from its own vertical canvas with four framings; insect and bird without human hair | 4 / 4 | 23 s | 14.3 GB |+| `20261026-015446-l40s` | L40S | Queue job 19: Cinema Studio video (Klein first frame + LTX-2.5), one and two camera moves, Single shot and Dynamic tempo, enhancer on and off | 4 / 4 | 100 s | 44.4 GB |+| `20261026-020747-l40s` | L40S | Queue job 20: AI Influencer with two picks in three groups; the photo mode | 3 / 3 | 33 s | 12.6 GB |+| `20261026-021210-l40s` | L40S | Queue job 21: the same with plain clothes and the photo mode keeping the hairstyle | 3 / 3 | 20 s | 12.3 GB |+| `20261026-021507-l40s` | L40S | Queue job 22: the photo mode with plain shoes asked for | 2 / 2 | 18 s | 12.6 GB |+| `20261026-021906-l40s` | L40S | Queue job 23: the photo mode example waist-up at a night food stall | 2 / 2 | 19 s | 13.2 GB |A run with several GPUs (`--shards N`) splits the cases into N groups that run at the same time and comes back asone folder. The cases a run lists include the reference images, clips and songs that the others read.@@ -110,6 +115,13 @@ one folder. The cases a run lists include the reference images, clips and songsPhotodump first pasted the photo on four backgrounds, then kept its pose in two of four; each photo now starts fromits own vertical canvas with its own framing. Moodboard took the references' look only once they went in at 1 MPwith the look described first. Inpaint (a brush in the web UI and a noise mask) changed only the painted jacket.+- **Cinema Studio video and AI Influencer, refined (26 Oct).** The video mode draws its first frame with the still's+ graph and moves it with LTX-2.5: the dolly-in and the single take held, and with the Gemma enhancer on the face held+ better, so it defaults to on. Two camera moves in a row did not come out in order (crane down then arc right showed+ only the arc; tracking then whip pan came out reversed), and Dynamic tempo did change the angle once. AI Influencer's+ several picks showed (face gems, glasses, headphones); its first runs drew a "G/O" print on a vest and brand-like+ marks on sneakers until the prompt asked for plain clothes and shoes, and the photo mode cut the hair short until it+ was told to keep the hairstyle unless a new one is picked.## End to end from the browser (23 Oct)diff --git a/web/app.css b/web/app.cssindex 1c6b92d..a581bc7 100644--- a/web/app.css+++ b/web/app.css@@ -298,7 +298,7 @@ pre.code { margin: 0; padding: 12px 14px; border-radius: 10px; background: #0d0d.cmp-hint.err { color: var(--bad); }/* popovers (selects, sliders, seed, model switcher) */-.pop { position: fixed; z-index: 70; min-width: 220px; max-width: min(380px, calc(100vw - 24px)); max-height: min(440px, calc(100vh - 100px)); overflow: auto;+.pop { position: fixed; z-index: 85; min-width: 220px; max-width: min(380px, calc(100vw - 24px)); max-height: min(440px, calc(100vh - 100px)); overflow: auto;background: #1b1b1e; border: 1px solid #2f2f35; border-radius: 14px; padding: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: rise .14s var(--ease); }.pop h4 { margin: 6px 8px 8px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 700; }.pop .opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; border: 0; background: transparent; color: #e4e4e8;