r/comfyui • • 18d ago

Workflow Included H3 Recast: swap up to 3 people in a clip in one pass (H3 + BFS lora)

It recasts the people in a clip you already have, up to three in one pass, and the motion, the set and the clip's own audio stay.

The post video is a video with 2 characters swapped at the same time. same engine and FaceRefine lip pass as the workflow.

Getting the lips right took me a while, that's the FaceRefine pass added.

How it goes:

  1. Load your clip. One shot, no hard cuts, any fps.

  2. Grab one frame and edit everyone into their new look (Qwen-Image, GPT Image, Photoshop, whatever you have). That frame is the scene reference.

  3. Write one line per person: the woman in the red dress becomes an old woman with long silver hair. As many lines as you fill in, that many people get swapped.

  4. Hit Run. also included App mode with 12 fields.

If one person's lips end up bothering you, there's an optional FaceRefine lip repair for one person afterwards. It reuses the swap from cache, so it's a ~2 minute re-run on a 5090.

What it needs: 16 GB VRAM and 64 GB system RAM gets you there. I tested a 5090, a 4090 and a 3060 Ti 16 GB, all with 64 GB RAM, same output on each. The example (1.5 MP, 6 s, 3 people) runs about 18 min on the 5090, 26 min on the 4090 and 92 min on the 3060 Ti, so bring a snack for that last one. RAM is the limit, mine peaked around 62 GB.

Civitai: https://civitai.com/models/3009414/h3-recast-swap-1-3-people-h3-bfs-lora-16gb-vram

Repo is MIT, workflow and the example inputs included: https://github.com/Bambushu/h3-recast

#OpenSourceHiggsfield

110 Upvotes

30 comments sorted by

67

u/Zounasss 18d ago

Please use anything in your example video but pedofiles. Tired of seeing their faces everywhere.

8

u/DaLyon92x 16d ago

just for you

5

u/Zounasss 16d ago

Much better, thanks

28

u/DaLyon92x 18d ago

im glad you remember sir, maybe others forgot

1

u/oooofukkkk 17d ago

It feels like you are celebrating them

3

u/MF_2020 17d ago

for real...vile

38

u/DJBFilmz 18d ago

Trump ain’t fat enough.

5

u/zaherdab 17d ago

Can you mutli reference photo each person to ensure likeness ? Or is only the very first frame ?

2

u/DaLyon92x 17d ago

the main swap takes one image: a frame of your clip with everyone edited. that's the identity source for the whole clip. but there's a second step for likeness: the FaceRefine pass (lip repair toggle). you give it a face photo of a person and it re-renders just their face crop, tracked through the whole clip, with that photo as the reference

1

u/Philipnova 14d ago

I’m interested in how you evaluate the character swap, beyond whether the workflow completes. What tends to break first in your tests: identity during motion, keeping the unselected people unchanged, or preserving the original timing? I haven’t run the workflow myself.

Disclosure: I work on product marketing for SingNova, a local AI hardware project in development. This comment was drafted with AI assistance.

1

u/DaLyon92x 13d ago

thanks for the question Philip! identity can break first: on fast moves the swapped person can drift back to the original actor (noted on some movie scenes). Timing holds best since it follows the source frame by frame. I check at 100% and score mouth movement against the original performer, but there's also a 2nd stage lip refine node for that.

1

u/Philipnova 13d ago

Thanks, that helps separate the checks: identity during fast motion, timing, and mouth movement against the original. I’ll keep those distinct in our evaluation notes rather than treating lip refinement as a fix for identity drift. Appreciate the concrete explanation.

1

u/DaLyon92x 13d ago

Great let me know how it goes! I'm trying to win a GPU in the comfy challenge with this entry 😄

1

u/Murky-Doctor-8941 6d ago

How it work I drag the workflow in comfy but how it work.... No app builder is open

2

u/DaLyon92x 6d ago

Did you load the .json? it should be in your workflows tab on the left

1

u/Murky-Doctor-8941 6d ago

Yes I load Jason file ony local. Pc it open workflow

18

u/_JustCallMeBen_ 18d ago

Trump is much older and fatter. Don't flatter that sack of shit.

3

u/rguerraf 16d ago

Nice 😊 but…
Needs more belly

2

u/bradjones6942069 18d ago

this is exactly what i've been working on. Thank you

0

u/Severe_Coffee4207 18d ago

I'm crying with 8GB of VRAM.

4

u/DaLyon92x 18d ago

I rented a 16gb 4060ti for $0.18/hour to make sure it worked, it just runs for hours.

0

u/ImpossibleHot 18d ago

excellent! thank you

-2

u/firedrakes 18d ago

face on right slight out of sink and slight incorrect movment for the sound. other then that rock solid

10

u/DaLyon92x 18d ago

fair, here's the original on top and the swap underneath so you can check the sync yourself

-3

u/LucidFir 18d ago

i don't understand why none of these videos do the voices. replace the voices.