← LVGenStudio

Build log · LVGenStudio

Chasing speed with scripts, until the errors started chaining

Product architecture, orchestrated with Claude Code

New engine, new problems. Every clip came out with the first frame wrong — a magenta cast, colours shifted, frames after it clean.

Four frames from one clip: the first is coloured noise, the rest are clean
Frame 0 wrong, frames 1+ correct — a positional fault, not an under-cooked one.

Ran the same clip at double the steps to separate two guesses — under-denoising, or something wrong with where that frame sat in the sequence. Frame 0 stayed magenta either way. So it wasn't the model needing more time. It was a wiring bug: the conditioning tensors were built with one frame count, the noise with another. Four lines fixed it, verified at three times the length it was found at.

The verification run — the length the fix actually had to survive, not the four frames the bug was caught in.

That week also killed a wrong assumption I'd been carrying — that the smaller 5B model would be faster than the larger one. It measured out twice as slow, because the larger model had a 4-step distillation and the smaller one didn't. Fewer parameters, more passes, more time. Retracted, not quietly dropped.

The push that mattered

Somewhere in there I said the thing that actually redirected the week:

"we need to find a break-through alternative else we are only making a me-too product"

Testing models isn't building a product. Anyone can run the same models I'm running. So the work moved to the layers around the model — generate small, upscale after. A native upscaler, no PyTorch, built by reading the checkpoint directly instead of guessing how it worked. Real result: 47.7 minutes down to 13.9, 3.44× faster.

I didn't leave it there. The upscaled clip measured a third less fine detail than the full-size version — it looked sharper and contained less. That's a trade to record, not one to accept quietly, and it's the pattern for the rest of this stretch: a script that makes a number better while making the actual thing worse, if nobody checks.

Finding what I'd been ignoring, and stopping one thing cold

Discovered the model family I was using already shipped purpose-built tools for half of what I'd been improvising around — reference-driven generation, identity-and-motion separation, audio-driven generation — all sitting there, unused, because I hadn't gone looking.

And I caught something mid-build: training was underway on my own character library to test identity retention. I asked why. The answer was reasonable in isolation. It was also the wrong architecture — a model trained on one face can only produce that face, which is not a product I can sell to a second person. The library never ships, never gets bundled, never gets uploaded to a rented GPU. Identity has to be an input the user provides, not something baked into the weights. That rule cost real time and it stood.

A basic web interface went up the same stretch — upload an image, write a prompt, watch it generate with a live percentage and real memory numbers pulled straight from the Mac's own Activity Monitor, not a framework's self-report I'd have to retract later. First real test on it — a crowd scene, one named subject — came back 2.3 out of 5. Motion was fine. The one face that mattered wasn't, because the reference photo faced away from the camera. And the obvious question I'd been dancing around finally got asked out loud:

"one question - you are using vradha character to train but, the application will be used by multiple different users with different characters. what about those?"

No answer was ready. That gap sat open for a while.

Building the anchor, then proving myself wrong twice

I watched a clip that looked good — face and hair held — except a hand movement near the end simply never happened. First read: broken generation. Real read, worked out from watching it properly:

"the motion was implemented but the hand is not visible coz, there is no hand in the first frame generation. To prove it, the camera holding hand is present in all frames. so, it never left the video till end."

The face and hair hold. Near the end there's a hand movement — and no hand, because it was never in the reference frame.

That became a rule I built the rest of the week's shots around: nothing absent from frame 0 arrives later. It felt solid. It was tested on exactly one reference photo, and later — outside the scope of this post — it turned out to be an artifact of a mode, not a law of the model. Worth saying now, because at the time it felt final.

Ported the reference-conditioning engine to run natively on Apple Silicon — nobody had built that piece before. Wrote the diff gate to prove the port matched the reference model bit-for-bit before trusting a single frame out of it, then had to fix the gate itself when it passed a deliberately broken build. Found and fixed a memory leak that grew a gigabyte per step. And on 21 August, the first clip that engine ever produced got rated 3.5 out of 5 — the best number this project had seen. Reference conditioning visibly holding, the face and proportions correct, decaying only in the last third.

For about a day, that felt like the turn.

What this week actually bought

Real things: a genuine four-line bug fixed and proven at length, a 3.44× speedup with its cost honestly recorded, a training mistake caught before it shipped, a first working reference-conditioned clip. None of that is nothing.

But the pattern underneath all of it — solve slowness or fragility by writing another script around the model, rather than asking whether the model itself was the right one — was already setting up the next stretch, where the scripts kept multiplying and the actual problem kept not getting fixed.

Next The wrong mode for two weeks, and the week six hypotheses died

This is a running log of building LVGenStudio, a local video generation studio for Mac. Written as I go, including the parts that didn't work. Everything here is dated, and anything I later find out was wrong gets a retraction rather than a quiet edit.