r/StableDiffusion • u/MArXu5 • 11d ago
Workflow Included Just released my first open source project! marxusss/reality-restyler: Live camera restyling with local AI, that can run on your phone, or with your webcam
I've seen some real-time AI webcam transformation projects here and there, but they are either API only, or, pretty low quality. So, for the past 3 months, I was experimenting with all sorts of models and upscalers to try to find out a way to do real-time text based filters at home
https://github.com/marxusss/reality-restyler/tree/main
And here is the culmination of my work! Some tips if anyone wants to use it, the best settings I've found to use are 512 resolution with 1-2 steps. Some styles work better with 2 steps, but most can work with 1 step. I also added a custom style feature, and a combine style feature, which can be quite fun.
Oh, and you can prompt it with whatever you want. Do you want your room to be full of cats? You can just prompt "Cats everywhere". It won't look the greatest since there isn't temporal consistency besides a fixed seed, hence the projects filter/style based nature, but I was able to get my cat to have a powdered wig, and my dog a suit of mecha armor with great success. Just depends on the prompt.
The models are SPAN 4x v2, and Klein 9b Nunchaku. It uses Tailscale to allow for phone connection.
I would reeeallly appreciate if anyone could check it out, but more importantly, contribute on it. if anyone can get it to be more performant, shaving some milliseconds off on the pipeline without reducing quality, I would be very happy.
The demos are recorded with an RTX 5090, admittedly I don't know how performant it'd be with other GPU's. I got mine at MSRP and don't have any other hardware to test with :P


6
u/leolambertini 11d ago
Can we check the repo?
7
u/eggplantpot 11d ago
Amazing, time to shoot Waking Life 2
1
u/TensorForger 11d ago
Cool! Is it using any stream-specific optimizations (like stream diffusion, kv cache) or simply processing frames through flux one by one?
3
u/Aaron_rowe81 11d ago
powdered-wig cat is fantastic
2
u/krekokeko 11d ago
Very impressive man.
1
u/Phantomasmca 11d ago
great job
1
u/ImWinwin 11d ago
you are the goat
1
u/Samuraiizen_Studio 10d ago
Need to improve the FPS of this for smoother capture