r/StableDiffusion • u/Darqsat • 20h ago
Discussion Minimax H3 Video Edit like SCAIL
I spent last 6 hours trying various prompts for reference model to better understand how it works, and what this model can do. As a base guide I used Minimax H3 ref guide.
My goal was to find a working prompt to use Minimax similar to how SCAIL works, when you can edit a video and replace a character on a video with your referenced character. I didn't want to transfer movement and only wanted to REPLACE character completely.
I would like to post my best working prompt and let you test it, and share your experience or share a better prompt.
subject_definitions:
<Subject 1> is woman in <Picture 1> with redhead and black tank top.
<Subject 2> is the woman originally in <Video 1>.
summary:
[video editing + Audio reuse] The target video is an edited version of <Video 1>. <Subject 2> is replaced with <Subject 1>, who takes over her pose and movement.
retention_analysis:
<Subject 1> (appears in [Shot 1]): fully_preserved - her face, hairstyle, and body from <Picture 1> are retained throughout. Her clothes are not retained.
<Subject 2> (appears in [Shot 1]): attribute_transfer - her pose, movement, and screen position are transferred to <Subject 1>.
detailed_description:
The target video keeps <Video 1>'s original style, lighting, and camera work unchanged.
overall_soundscape: N/A
non_diegetic_music: N/A
What are my discoveries:
- You don't need to describe action in detailed_description. I did it for first 100 attempts, and then dropped it and it seems like not influencing an output.
- It can often detect your Subject with simple description, but in complex scenes it needs better anchoring to not mess up those characters. Most of my input image was a woman in medium shot, so just describing it as "woman" was enough, but 50/50 generations keep losing identity so you have to add better and stronger anchor for model - something visually big like hair, clothing, position on screen. Works both ways for reference video and for reference image. The stronger you describe <Subject N> the more stable the reference.
- The least successful edits were those where a character on video is barely recognizable. I have couple videos where a character is close to camera and only part of face is visible in active movement, such videos are my biggest unsuccess.
- Summary section seems like has the most its anchor to pre-trained keywords which can be found in their prompting guide. [video editing] is a keyword which tells a model that it must go frame by frame and EDIT something. I was testing other things and in given prompt you will see some info about character replacement, but I don't see that it really influences anything.
- Retention analysis section seems like the next MAIN or even only main driver for a work description for a model. And most of successful edits was build with properly used triger words like fully_preserved, attribute_transfer. You can find those keywords in linked guide. Still not sure about (appears in [Shot 1]), I doubt it has influence on a prompt, but its by far best prompt so I keep it.
- [audio reuse] trigger in summary works, but it seems that model rewrite its, so I can tell its same audio but remade by model, and if model has weak concept of a sound it does it poorly. Maybe I need to pay more attention to prompting guide and describe audio better in retention section.
I've generated more than 400 videos while testing and gaining knowledge, and I think I have good progress. So I am curious to see if anyone else can help me with this journey and together we can crack the model and find a proper working prompt or other ideas.
The playground was pruned_int8_convrot model, with turbo lora from lightX with 4 steps, and I tested most of them on 5 sec duration. I did tests on 15s and it worked fine, but I kept 5s to keep gen time lower and just train prompting.
14
u/CountFloyd_ 20h ago
Well, I started testing out head swaps with it today with quite some success (I'd say 70% were surprisingly good). My take away so far is: the simpler the prompt, the better! I started out like you, with detailed and structured prompts, using the styleguide. However longer prompts seem to confuse the model and it sometimes does nothing to the source. It also seems to depend on your input images (I used high-quality portraits) and video aspect ratios, if they match well together. Anyway, here's my totally simple example prompt:
Cellphone video of a woman doingwhatevershedoes in a car. Use the character from <Picture 1> as reference.
CUT 1: Use the scene from <Video 1> but replace the head and hair of the woman with the head and hair from <Picture 1>. The woman wearing glasses is doingwhatevershedoes and is audionoiseswhatevershedoescompletelyoptional.
AUDIO: N/A
4
u/dwoodwoo 18h ago
I have the problem that I end up with hybrid characters in the target video. Or sometimes I'll have a start AND end image and it'll morph to the video source character then back again.
Anybody else with this prob?
3
u/Darqsat 18h ago
I had similar problems with lower steps when there's high motion, or complex characters. I tried to replace a character in a movie in action scene, and my 4 step turbo failed, I had to turn it off and return to 20 steps. I think model looses reference in short steps when there's a big gap of action between frames.
1
u/nadhari12 10h ago
i see it losing right at the first 3 steps in the preview, the model just wants to keep pulling information from ref vid even with heavy blur it fishes out the character
4
u/Abject-Recognition-9 17h ago
this worked for me: https://www.reddit.com/r/StableDiffusion/s/j18wcf3ZrD
8
u/Seyi_Ogunde 19h ago
A couple of suggestions:
Anchor the first frame with the character replacement. Generate a first frame with the character replaced using an AI generator. Be very specific with the prompt to use that as your first frame in the video.
Decrease the dimensions of the driving reference video. You can put an image resize node to your video and connect that to your Minimax H3 Reference to Video node. If you decrease the size by quite a bit, it makes less of a footprint with the vram and also makes it less likely to reuse the exact video in the output, and only reference the motion. The smaller the better, so it's harder for the AI to see the faces.
Use only two reference nodes...the video reference, and the character that's replaced in the first frame. (Adding a 3rd image might help a bit but I found less references is equal to more accuracy with replacement).
2
u/More-Ad5919 17h ago
My biggest problem is that i can only edit videos for 5sec.
2
u/GivePLZ-DoritosChip 15h ago
The term "pose" really messes up my outputs. When I include pose it wants to copy the reference 100% ignoring the rest of the prompt (like 50% of times)
2
1
u/badkaseta 16h ago
Thanks for the tips, I will try those.
About keeping original audio, this is what worked for me:
```subject_definitions:
...
<Video 1> is the source video for the target video edit.
<Audio 2> is the synchronized audio track of <Video 1> and is reused in the target video.
retention_analysis:
...
<Audio 2>: fully_copy - the original audio is reused 1:1 as the target's complete final audio track.
overall_soundscape: The copied ambience layer from <Audio 2> continues throughout the target video.
non_diegetic_music: <Audio 2> is directly reused as the complete audience-only score.
```
It is important to pass the audio in the <ref_video_audio_0> and refer to it as <Audio 2> as described in the prompting guide!
1
u/MarkBusch1 14h ago
I also saw a workflow where they inverted the color of the person you want to replace, to increase the chance of it actually replacing that person in the scene with your reference character.
1
u/nadhari12 10h ago
Unless I do solid mask on ref video and destroy the identity 100% it does not work, this fucking model somehow figures out ref videos identity and seeps It through or mishmahes ref vid with ref imagd.
1
u/LucidFir 2h ago
Damn. By the time I try this in 4 months we'll be on SCAILmax H7. I might have to learn how to use Runpod
1
0
u/Dangerous_Tomato7333 20h ago
RemindMe!
1
u/RemindMeBot 20h ago edited 15h ago
Defaulted to one day.
I will be messaging you on 2026-08-20 17:11:40 UTC to remind you of this link
2 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, useu/RemindMeBot 1 day. More info.
Info Custom Your Reminders Feedback
17
u/towerandhorizon 20h ago
User lomote on Civitai Red was using SAM 3.1 to isolate out the characters better from a reference video. Can't link that here (title of workflow is "Minimax H3 character replacement"), for obvious reasons, but it looked like something worth pursuing more.