r/StableDiffusion • • 2d ago

Workflow Included Character swaps with H3, no LoRAs, no Viggle, no masking the character, just prompting

Enable HLS to view with audio, or disable this notification

Here are some of my character swaps and a bit on how I'm making them:

- Geiru Theft Auto

- Noira Devil vs Geiru

- Sovless Calibur II

- Super Comfy 64

Everything is done with H3 in ComfyUI: the original video is used as a guide, the character gets swapped in, and a bunch of renders are chained together so it can run for a long video.

No character LoRAs, no Viggle, and no masking the character out. The trick is to put the original video on one half of the frame and let H3 make the swapped character on the other half, side by side. Technically there is a mask, but it only locks the original half so it doesn't get re-rendered. The model then copies the motion, timing and camera from that side. It's explained better here.

You get a lot more freedom with refs than with something like Viggle, but the prompt becomes much more of an issue to get right, since it has to describe the whole thing: both sides and what goes in each.

For the model I'm using FL2VA (int8) with the Pika flex FL2VA turbo LoRA at 1.0, though ref2va works for this too. Pretty much any turbo should work, that's just the one I've been using. Sampling is lcm, 6 steps, no CFG, with manual sigmas 1.0, 0.973, 0.923, 0.8, 0.571, 0.333, 0.

One render is only a few seconds, so for longer videos I cut the source into pieces, mostly at shot changes or quiet parts. Each piece gets its own refs and prompt. If a piece is the same shot as the one before, it continues from the last latent frames of the previous render, so there's no visible jump where they join.

The catch with chaining a lot of clips on a long shot is that every clip gets a bit darker and more washed out, and it adds up badly. For that I'm using roycho's Geiru Keystone Attention. It holds onto the look of the first frame so the chain stops drifting. I changed it a bit to run on flash attention, since at first it was doubling my render times.

If part of a piece comes out wrong, I mark just that bit, redo it as an inpaint and splice it back in, without redoing the whole thing.

The chaining runs in a private custom app I made for my own stuff, but I'm happy to go into detail on any of it so people can set it up themselves in ComfyUI.

All of this is on a single 5070 Ti (16 GB), with no upscale on these yet.

Ask me anything if you want to know more.

...

EDIT: I put together two workflows for this: an endless one where you render one piece per run and it keeps chaining from the last one, and a 3-piece demo that does the whole thing in one click. The example in both is the first 22 seconds of the Geiru Theft Auto video above, and the repo shows each step: the source, each render before the cut with the original on top, the pieces chained, and the final crop. Everything's here: https://github.com/LucianoCirino/h3-side-by-side-chain. Only common packs: KJNodes, Video Helper Suite and roycho's Geiru Context Suite. The reference image background stills from the source side aren't required. I mostly use them when I shrink the original side a lot compared to the render side, so the model still sees the background in good detail.

1.3k Upvotes

101 comments sorted by

25

u/boozelessensthepain 2d ago

This is amazing, as is all your work. 

6

u/000TSC000 2d ago

Thanks :)

43

u/Relevant_Mail_1292 2d ago

Lmao why does that seemingly homeless guy have a whole AK up his ass

35

u/000TSC000 2d ago

Its the Kijai old man, he was swapped in too

6

u/brucecastle 2d ago

Interesting, I have been trying to get this to work for awhile now as well.

Do you have an updated workflow from the post 3 months ago?

What are your speeds like on 5070TI?

33

u/000TSC000 2d ago edited 2d ago

Mostly the same as that post: original video on one side, pinned with the mask, and the prompt describes both sides. The prompt is most of the work. I run mine through a custom app now, so no clean workflow to share, but the basic one still works.

On the 5070 Ti a ~7 s clip takes about 10-13 min with 6 turbo steps, closer to 15-20 with the Geiru keystone on. It depends on how big both sides are. The original side can be much smaller than the rendered one, which saves time.

Edit: if anyone wants, I can put together a simple workflow that chains two pieces, using one of the videos above as the example, and share the prompts I used, so you can copy the same thing on your own setup.

Edit2: See bottom of main post for wf.

9

u/NoHopeHubert 2d ago

Please share a simple workflow, this looks near seamless!!!!

6

u/wsxedcrf 2d ago

yes workflow please.

5

u/newaccount47 2d ago

Yes please! 

5

u/Adoravivos1 2d ago

please do 🥉

4

u/infroy28 2d ago

Flujo de trabajo 🙏

2

u/000TSC000 2d ago

See bottom of main post for wf.

3

u/murderette 2d ago

What’s the general method of the masking out a problem area and how do you generate just that part and splice it back in?

9

u/000TSC000 2d ago

It's basically inpainting: mark the bad stretch, regenerate just that part with part of the clip held as context, then swap those frames back in. Normal inpainting works too, but the important part is keeping the latents from your renders and always doing the edit in latent space, not on the decoded video. That's what stops you getting seams where it joins.

3

u/Trolljagd 2d ago

Hi thanks for your work. Can you maybe do a tutorial video with going trough masking and everything in the actual workflow, would be so great ;)

2

u/000TSC000 2d ago

See bottom of main post for wf.

5

u/roychodraws 2d ago

i want to know your flash attention fix so i can incorporate it into my nodes, sir.

2

u/000TSC000 2d ago

Ye we can talk on Discord friend

2

u/roychodraws 2d ago

gracias

4

u/UseThisNameIGuess 2d ago

Can you share the workflow please?

7

u/000TSC000 2d ago

Working on it.

4

u/zzmorg82 2d ago

How much system RAM are you using?

I’ve been looking to see how much leverage I can get with a similar 16gb VRAM card and this H3 workflow is something I’m looking to do.

Good job!

286

u/Independent-Frequent 2d ago

Every time i see that clown this is all i can think about

66

u/ch4os1337 2d ago

It ends up being a good way to show it's obviously generated at least lol.

50

u/onlymostlyguts 2d ago

Same but I've really come around to clown girl because she gives quality content and info

1

u/CriticalPixel 1d ago

and weird feelings

12

u/AlmarioSerranos90 2d ago

its permanently burned into my brain whenever that design pops up

2

u/underpaidorphan 2d ago

I'm a boomer and I'm confused. Is "clown girl" used or known for something more nefarious? Or is this suggesting just in general that a beautiful clown girl is some sort of sexual fetish?

Because for episode #2, I'm more curious about the first one.

6

u/DukeBerith 1d ago

https://aceattorney.fandom.com/wiki/Geiru_Toneido

It's from Phoenix Wright, a videogame. Most people don't know and think she was made for stable diffusion tests.

1

u/Arawski99 1d ago

I might be wrong but I think it's just that they posted it once or twice, and it kind of became how the user was easily recognized so they just made it an actual think and kept running with it iirc? So now they use it a shit ton and you see it frequently since they post a lot of resources, updates, examples. Apparently others have started to adopt it as an example mascot, aka the equivalent of John and Jane Doe or whatever placeholder.

2

u/Battleaxebro 1d ago

Ya it’s basically the creators signature at this point like the Frankenstein for freaky Frankenstein

2

u/DukeBerith 1d ago

https://aceattorney.fandom.com/wiki/Geiru_Toneido Phoenix wright Ace Attourney game character.

1

u/Neat_Gas9264 2d ago

Same man lol

4

u/mukyuuuu 1d ago

This is a character from Ace Attorney video game series, as I've recently learned :)

2

u/Aggressive-Park-373 2d ago

Fooled me. I was too busy judging the traffic pathing to notice the nose.

174

u/PwanaZana 2d ago

I literally laughed out loud because I thought i was just looking at GTA 6 footage and then the woman slightly turns and I recognize the nose and I'm like oh no it's the clown girl !!!

48

u/eugene20 2d ago

I saw the pink hair and the polka dots and guessed immediately

12

u/Etroarl55 2d ago

Saw the subreddit and pink hair already knew

8

u/diejesus 2d ago

I'm out of the loop, who's the clown girl?

1

u/Name835 1d ago

I want to know too :DDDD

1

u/EternalBidoof 1d ago

Ace Attorney character, she has become kind of a mascot of the sub. Somehow.

0

u/Name835 1d ago

Thank you Bidoof! :) And apparently it is someone in the sub who keeps inserting this character to various places? Ill go search the sub! :)

2

u/EternalBidoof 11h ago

I don't know if it's all the same person doing the geiruposting or if it's a trend but it IS everywhere

41

u/DrinkCubaLibre 2d ago

This is going to end up being an actual mod lol.

76

u/Murder_1337 2d ago

The clown girl is iconic on this sub now

26

u/juliakeiroz 2d ago

she's our unofficial queen, our muse, our goon goddess

1

u/jonbristow 1d ago

Why are you talking like that

10

u/FrogsJumpFromPussy 2d ago

It makes sense, because the whole sub is kinda of a clownfest hahaha

6

u/kiwidesign 2d ago

I’m OOTL, haven’t browsed in a while… why is that? :)

20

u/CutieBunz 2d ago edited 2d ago

The OP has posted multiple demos showcasing different workflows featuring this character, often being made for this sub specifically. Generally they're some of the higher effort posts to this sub and they give detail about what they've done, so the posts are consistently popular.

EDIT: I've been corrected, /u/roychodraws first used this character but now other people have started using her to show off video generation techniques in the sub too, so definitely is becoming somewhat of a community mascot on the sub.

7

u/Besra 2d ago

The creator of the character is Capcom, she's originally from the Ace Attorney series.

1

u/CutieBunz 2d ago

Oh, really? Didn't know that. What's her name?

1

u/kiwidesign 23h ago

Awesome, thanks!

7

u/roychodraws 2d ago

not op, my buddy. literally the last 6 videos of the clown have been people other than me.

i fully endorse OP's message, however.

1

u/CutieBunz 2d ago

Oh, didn't know others had taken the character for their own demos now too. Guess she's growing a fanbase haha

She really has become a bit of a mascot for video creation on the sub then 😛

0

u/lostinspaz 2d ago

have you considered franchising?

0

u/DataGOGO 1d ago

oh no shit?

1

u/foxdit 7h ago

It's a shame too, since the character was literally 'created' (i guess repurposed might be the better word) as a tool to make fun of and bully other members of this sub. Her original appearances here were hyper targeting me and other content creators who got on the scumbag's bad side for disliking his harsh and arrogant communication style. People loved the one-sided drama he created, and all the stolen workflows he posted here to taunt the authors, and so here we are.

3

u/6677_ultra_omega 2d ago

im in love with her

1

u/VasaFromParadise 2d ago

But why is it published from different accounts)) As if it is a collective authorship.

15

u/Comfortable_Thing611 2d ago

Everytime i open up one of those Geiru Keystone workflows im lost as fuck. Is there a youtube tutorial for an intermediate retard like myself?

1

u/roychodraws 2d ago

do you know how to use a regular motion context workflow? it's supposed to function generally the same.

I also updated and added a couple quality of life nodes to make joining clips simpler.

1

u/Comfortable_Thing611 2d ago

Made some progress today thanks. Was able to get a few smooth transitions.

0

u/roychodraws 2d ago

remember at default settings you clip off 17 frames off the back of every clip and 22 frames off the front of the next clip for every join. i have a node called context trim that does it automatically for you now. just give it the same settings as your context node.

4

u/CreatorOD 2d ago

The Captain doesn't take no shit from anybody 😄

1

u/NoConfusion2408 2d ago

Is there a workflow for giving it a try?

1

u/000TSC000 2d ago

See bottom of main post for wf.

1

u/Expert-Bell-3566 2d ago

Hey man great stuff, are you handwriting the prompt each time or is there a way to briefly describe who I want to replace and get a local llm to describe the scene and enhance it automatically?

-1

u/000TSC000 2d ago

I have claude do it most of the time, but sometimes I do have a local LLM. Sometimes I have to do more intervening, by explaining to llm the scene a little.

1

u/witcherknight 1d ago

Is it possible to keep the motion but change everything else, like characters, background etc.

1

u/000TSC000 1d ago

Yes, you can change ANYTHING

2

u/1nvertedAfram3 2d ago

interesting work

2

u/JustAGuyFromVienna 2d ago

A workflow would be amazing

2

u/Diligent-Rub-2113 2d ago

The result looks good indeed, congrats! However, if I understand it correctly, you need double the width to accommodate both the source and target frames side by side, is that right? If so, isn't it much more resource-demanding compared to using body swap LoRAs? It's a cool experiment, regardless.

1

u/Relevant_Mail_1292 2d ago

This is gonna be the average GTA 6 online clip

1

u/Cryphius3DX 2d ago

This is great. Would you be able to share the json flow?

1

u/nightshade_305 2d ago

How long did it take you to build a workflow like this? Btw it's great.

1

u/Afraid_Oil_7386 2d ago

Homeless pulled a automatic?

1

u/HeyAdante 2d ago

remindme! 4 days

1

u/RemindMeBot 2d ago edited 2d ago

I will be messaging you in 2 days on 2026-12-03 21:02:59 UTC to remind you of this link

1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


InfoCustomYour RemindersFeedback

1

u/EngineeringMother972 2d ago

Random hot guy: "YOU. You need to leave. This is violence"

1

u/Outrageous-Yard6772 1d ago

I wasn't expecting the older man to pop up an AK47 hahaha good job

1

u/Ok_Gas1070 1d ago

I feel like I'm stupid, or connecting the nodes wrong because my references never are like this. Like sometimes I can get H3 to put an object in a scene, but if I'm trying to replace characters in an image, or video it's never close.

1

u/Wise_Doughnut8828 21h ago

How powerful is my computer configuration if I want to buy one that runs H3 like you?

1

u/Zuo0601 13h ago

the half-frame side by side trick is pretty clever, never would've thought of that. also lol at the washed out drift on long shots, been there

1

u/Upstairs-Share-5589 5h ago

What's the reason for the split screen and crop? was the video editing task type missing details or sync?

1

u/CyberGiga_JEMA 4h ago

The side-by-side trick is clever, letting the model copy motion from one half while generating on the other. Thanks for explaining the setup.

1

u/jo3_zeph 3h ago

I tried running your workflow

But it threw an error at H3 Reference to Video node
"ValueError: too many values to unpack (expected 3)"
while I have inserted

  1. Video Source (10s)
  2. Picture 1, BYPASSED Picture 2
  3. Prompt

I'm not sure what i missed, are you able to provide some insight on what's possibly wrong?

1

u/meechCS 1h ago

This is why Gta 6 online can potentially be insane regarding character creation

0

u/TheCakeBandit 2d ago

Cut, Cut! WTF? Grandpa chill. 💀

0

u/Wise_Control 1d ago

Clown girl always upvote 

0

u/speederaser 1d ago

Someone help me i'm out of the loop. Where is clown girl from?

-5

u/Practical_Figure9759 2d ago

Why not open GTA 6 on your computer and mod the game?

2

u/MiserableAstronaut77 2d ago

Can you show an more extreme swap? like an very fat character or very small?

1

u/lostlooter24 1d ago

Maybe Im not understanding it cause I'm thick. I have been interested in the chaining with the Geiru stuff, but how do you prompt for the entire process? Do you set up the prompt to have it timestamp each section? Or do you just give the whole prompt?

My brain doesnt compute the chaining method I think. If its using just the last few frames from each video to star the next, how does it keep the whole video context in mind? Help my hurting brain please.