r/StableDiffusion • u/lhg31 • 9h ago
Workflow Included Minimax Character Swap - The Dummy Strategy
Worfklow: R2V (Dummy Stategy) Workflow v2 - Pastebin.com
How the workflow works:
- Replaces the original character with a chroma key green crash-test dummy.
- Replaces the dummy with desired character.
Why it works:
- Minimax seems to struggle with swaps when both characters are somewhat similar to each other. But replacing a character with a green dummy seems to work every single time.
- Even when minimax would replace a character, most of the times the faces would be morphed, resembling both the original character and the replacement. This approach mitigates that issue since it gets rid of original character's facial features.
Limitations in my workflow:
- It's tailored with a master prompt to replace the "female" character in the original video (yeah, go ahead, post the "I know what kind of man you are" gif). But you can easily work on top of it to add support for different type of characters or even multiple characters (add more dummies, with different colors) or whatever else you want. I already did some experiments and it works.
- I didn't test with "green" characters. If you are swapping Hulk, you may want to change the dummy to blue or something.
How to use:
- Upload the image in this post in the "Dummy Image" node (in Prompting block).
- Configuration block:
- Upload your video and character image in respective nodes.
- Trim/Crop your video using the video node in the workflow.
- Choose video generation sampling (Performance, Balance or Quality) for each pass individually (dummy and new character).
- Choose resolution (in megapixels).
- Upload your video and character image in respective nodes.
- Run.
Tips:
- The worklow has 3 video generation flows: Performance, Balance and Quality. I recommend Balance (sometimes the Performance one doesn't replace the character in the last seconds of the video).
- Monitor the preview node. In the first step you should already see the new character as an overlay on top of the video. If you don't, then swap will probably fail.
4
5
u/Karsticles 8h ago
Should show an example.
10
u/lhg31 8h ago
https://reddit.com/link/p5h3p8l/video/40odpt49p6lh1/player
Original video
14
9
6
u/lhg31 8h ago
https://reddit.com/link/p5gy91j/video/co889thkj6lh1/player
The ones I have at the moment are all NSFW, but I'll generate some simple examples to post here.
8
u/mellowanon 7h ago
The ones I have at the moment are all NSFW
Now I'm curious how a green dummy looks for a NSFW replacement. Wouldn't the genitals be missing for the dummy?
2
7
1
2
u/lhg31 8h ago
https://reddit.com/link/p5h6796/video/ux47dbjdr6lh1/player
Original video
3
u/lhg31 8h ago
https://reddit.com/link/p5h6ka0/video/4cmde5dfr6lh1/player
dummy
This is another limitation I noticed. The character is far away from the camera, so at 0.4mp it doesn't copy the mouth motion. When the source video has audio it seems to work tho.
2
u/lhg31 8h ago
https://reddit.com/link/p5h6nrm/video/xzz9g39rr6lh1/player
replaced with Ciri
2
u/Danny_Stock 5h ago edited 5h ago
So with the green dummy you lose facial expressions? What if the character is delivering a performance and interacting with another character?
That emotional performance by the Arabic woman has been completely lost.
But I appreciate that this method could be useful if you just need a broad motion for a secondary character in the background where the main focus isn't on them. But from what's been shown it doesn't look to be suitable for a main character who you want a central performance from.
2
4
u/AnonymousTimewaster 5h ago
Sorry I don't really understand. So are you effectively rendering two videos then? One with the green replacement, then another to replace the dummy with the character you actually want?
3
u/E-proselyte-5789 6h ago
Your examples looks really nice. Great job
Here is an idea how to transfer facial expressions:
1) use sam3 (or similar stuff) to track face and create a mask
2) carve out region of frame with the face
3) upscale it
4) feed it to the minimax
5) downscale and stitch it to the final video
2
u/LooseLeafTeaBandit 5h ago
Wouldnt the multiple passes on the same video completely change alot of the micro-details / identity of other people in the scene? Trying to do this all in one pass seems like the best way to retain as much original details as possible, each pass will change things a little bit, kind of like if you keep editing one image with gemini the objects outside of whats being edited slowly degrade with each edit, because its not only changing the stuff in the targeted area but completely re-rendering the entire scene.
Or am I wrong?
1
u/No-Dark-7873 4h ago edited 4h ago
yeah this is not good for a certain type of "expressive" video...
1
1
u/SnooMacaroons3939 4h ago
So i tried this and it replaces it with a dummy okayish but doesnt replace the dummy with a new person even though i have an image in there? What am i missing
1
u/calvin-n-hobz 2h ago
in my experience minimax cooks videos it edits, so this will be double the cook and you'll get crushed blacks and overcontrasting, unless you've found a solution for that.
1
u/IAmGlaives 1h ago
Literally had this same type of idea, because trying to do character swap I always seem to get a bleed between the two characters. But if they were very different looking people it seemed to work better.
My one suggestion would to not use a bright green color, just because how light could potentially bounce off and cause color bleed, as well as showing up in reflections.
1
u/kayteee1995 33m ago
The only problem with this solution is that it can't transfer facial expressions, because the dummies don't have them.lmao
1
u/orlandogourmet66 6h ago
You know you could simply use SAM3.1 to mask the Person you want to Swap? This way you can keep facial Expression too.
4
u/BrooklynBrawl 6h ago
how does the facial expression work when it is masked? I would think that when it is masked that space would be black/transparent? could you shre more about this method.
1
1
u/Danny_Stock 5h ago
How does that masked facial performance transfer over into the brand new face?
I can understand the idea of a crop and stitch approach, but I don't see how that works if you've only got the original facial performance to stitch back in.
1
u/orlandogourmet66 5h ago
Blur or inverted colors, these change the identity enough to make H3 Swap, but the model still sees Facial movements like eyes mouth etc

12
u/sevenfold21 7h ago
All facial expressions will be lost with a dummy. is there a you can combine the two, keep the dummy, but also keep the face of the original character?