
I saw a real-time AI try-on demo and tried to recreate it on my MacBook
Table of Contents8 sections

A while ago I watched a demo that I could not stop thinking about. Someone stands in front of a webcam, picks a shirt, and the video feed just... shows them wearing it. Live. They turn, they wave their arms, the fabric folds and moves with them, and it looks like real footage. No green screen, no flat sticker glued to the chest.
My first thought was "that's incredible". My second thought, about four seconds later, was "I wonder if I can do that on my laptop".
This is the story of finding out. Short version: no, I can't. But the way it failed taught me a lot about what a local model can and cannot do right now, and I ended up with something I did not expect to work as well as it does.
The demo, and the catch
The demo was Decart's live try-on, running on their Lucy model. It re-dresses a person in a live video stream, and it is properly photorealistic.
The catch is where it runs: datacenter GPUs. If you want it through their API, it costs $0.02 per second of video. That sounds like nothing until you do the maths: a 30-minute session is about $36, and every frame from your camera goes to someone else's server.
What I have is a MacBook Pro 14" with an M4 Pro and 24 GB of memory. No NVIDIA card, no cloud budget. So I set myself some rules:
Everything runs on the laptop. No cloud GPUs, no paid APIs. Camera frames never leave the machine.
Open models only.
Realism beats speed. A fast result that looks fake is not interesting.
No made-up numbers. Everything below was measured on that MacBook, unless I say it is an estimate.
I worked through this with an AI coding agent doing most of the typing and benchmarking, which is the only reason four different approaches got built and measured instead of one.
Reality check
Before writing any code I looked up how fast diffusion models run on Apple silicon at all. The best published number I could find was about 23 frames per second, for a tiny 512-pixel model, on a 60-core M3 Ultra. My M4 Pro has 16 GPU cores. Scale that down and you get roughly 6 frames per second (an estimate), from a model that is far too small to do try-on in the first place.
So generating every frame live was dead before it started. Fine. Time to cheat.

Attempt 1: fake it with keyframes
The trick I was most proud of on paper: let a slow model generate a few really good images of me wearing the garment (keyframes), then in real time just warp the closest keyframe onto the live video, using body landmarks from MediaPipe. The slow model brings the realism, the cheap warp brings the frame rate. Best of both.
I wrote down pass/fail numbers before building it, so I could not talk myself into liking it afterwards. Good thing, because it failed:
Flicker: the garment flickered 2.35 times more than the original video. My limit was 1.5.
Speed: with the garment visible, a frame took about 93 ms round trip. That is under 15 frames per second.
Coverage: once I hid the frames where the warp was obviously broken, the garment was only visible 15–25% of the time.
Looks: sleeves tore whenever I raised an arm, and turning my torso broke everything.
I also tried refining the warp with dense optical flow. It latched onto the neckline of the shirt I was actually wearing and made things worse.
Standing still, facing the camera, it sort of worked. Moving like a human, it looked like a bad AR filter. Which, to be fair, is what it was.
Attempt 2: forget live, just take a photo
Okay, so not live. What if I press a button, wait, and get one really good photo?
The keyframe generator from attempt 1 was FASHN VTON v1.5, an open model built specifically for try-on. It has about 970 million parameters and works at 576×864. It did not support Apple's GPU out of the box, so it needed a small patch.
Speed: about 6 seconds per step, so 92–102 seconds per image.
Memory: about 6 GB.
On clean test footage it looked alright. Then I tried it on myself, at my desk, with my real webcam:
the shirt was a flat black shape with no folds or shading, like someone had cut it out of paper;
the logo on the tee, "FASHNAI", came out as "FASINAI";
my face and skin got repainted and looked waxy;
when I rested my hand on my chin, the model sometimes deleted my arm.
I fixed the waxy face by keeping only the shirt from the model and pasting it back onto the original camera frame. The flat paper shirt and the typo stayed.
Attempt 3: fine, generate the whole video, I'll wait
At this point I had made peace with slow. So why not go all the way and generate the video itself, offline? Wan 2.1 VACE 1.3B is an open video model that can repaint part of a clip using a reference image, and there is an MLX port that runs on a Mac.
It ran. Technically.
Speed: two seconds of video (33 frames at 832×480) took 32 minutes. About 58 seconds per frame.
Memory: 21.5–23.2 GB at peak on a 24 GB machine. The laptop was swapping and not happy.
Ten seconds of video: an estimated 2.5 to 2.7 hours, in two-second chunks that I never tested joining.
Here is the annoying part: it looked good. The best fabric and motion of anything I tried. Matte cotton, folds that moved with the body, zero flicker, arms raised without anything tearing.
And then you read the shirt. "FASNNAI". Next run: "FASSNIAII". Next run: "RSSNNAI". Every single time. It also erased a kettlebell someone was holding and turned a waving hand into a pink smear.
Half an hour for two seconds of 480p video with a typo on the chest. Not it.
What actually worked
The thing that finally worked was not a better try-on model. It was a bigger model that is not a try-on model at all.
FLUX.2 klein 4B is a general image-editing model, Apache-2.0, that accepts several reference images. I give it two pictures (me, and the garment) plus one sentence describing the garment. An 8-bit MLX build of it fits on the laptop.
I ran it on the exact webcam frame that had given me the paper shirt. Same pose, turned sideways in my chair, hand on my chin. This time the tee wrapped around my body with real folds and shading, my hand stayed in front of my face where it belonged, and the logo said "FASHNAI". Spelled correctly. I may have said something out loud.
The second half of the trick is the same one from attempt 2. Every model I tried repaints the whole picture, and klein is no exception: it subtly redraws your face and shifts the background colour. So I only keep the garment. A human-parsing model finds the shirt in the generated image, and just that region gets pasted onto the original camera frame. Face, hair, glasses, hands, background: all still the camera's own pixels.

One thing I expected to work and didn't: telling the model to edit only a masked area. That gave me square necklines and chopped-off hems. Letting it redraw everything and then throwing most of it away was better.

So how good is a local model, really?
Everything measured on the M4 Pro, 24 GB:
Warped keyframes | FASHN VTON v1.5 | Wan 2.1 VACE 1.3B | FLUX.2 klein 4B + composite | |
|---|---|---|---|---|
Output | live overlay | still, 576×864 | video, 832×480 | still, 768×1152 |
Time | ~93 ms per frame | 92–102 s per photo | 32 min per 2 s of video | 82–105 s per photo |
Peak memory | ~6 GB | ~6 GB | 21.5–23.2 GB | 14–19 GB |
Looks real? | No | No, flat fabric | Partly, at low resolution | Yes, most of the time |
Printed logo | warped copy | garbled | wrong every run | right about 2 times in 3 |
And the honest list of what is still broken in the version that works:
Text on clothes: about one result in three doubles a letter ("FASHNNAI"). Rolling again with a new seed usually fixes it, for another minute and a half of waiting.
Stuff in front of your chest: hold up a phone or cross your arms and the model may erase it, repaint it or give you a spare hand.
Colour: a deep black tee can come out charcoal.
Memory: it eats 10–14 GB just sitting there and nearly fills the machine while generating. Close Docker.
It is not a fitting room. It shows a plausible picture, not whether a medium actually fits you.
It is not live. Which was the whole point of the exercise, so, you know.
Did I recreate the demo?

No. Not even close, and I think that is the useful answer.
Real-time photoreal try-on needs a large model trained for exactly that job, running on hardware I do not own. A laptop is off by a couple of orders of magnitude: I needed 90 seconds for one frame, and the demo does dozens of frames every second.
But the consolation prize surprised me. For a single photo, a MacBook can now produce a try-on that most people would believe is a real picture, in about a minute and a half, with nothing uploaded anywhere. A year or two ago I would not have expected that from a laptop at all.
A few things I am taking away from this:
Decide what "good enough" means before you build. Writing the pass/fail numbers down first made it easy to kill the live mirror instead of polishing it for another week.
A bigger general model beat a smaller specialised one. The dedicated try-on model lost to a general image editor about four times its size, at the same speed.
Don't trust the model with the whole picture. Keeping the camera's pixels for everything except the shirt did as much for realism as swapping the model.
Slow changes the product, not just the wait. 90 seconds is a failure for a mirror and completely fine for "take my picture".
I went in wanting a magic mirror and came out with a very patient camera. I'll take it.


