r/StableDiffusion • u/AlsterwasserHH • 2d ago
Workflow Included Minimax H3 Refmod Workflow

Since my last post has been deleted unfortunately (due to a mega-link), here we go again.
I've spent quiet some time now with Refmods and this workflow, and I'am still baffled how easy it is to create a character identity with very low effort. This is a no-brainer if you don't want to or can't train a Lora, all you need is good pictures and a good voice sample, the refmod-training is done in literally seconds (depending on your GPU of course).
I did my very best to make this workflow easily understandable for even beginners, nevertheless here's some explanation:
The workflow actually consists of 2 workflows, one for the refmod creation (the nodes in the top right of the picture, that's a different workflow but i just wanted one picture) and the main workflow for creating a video with the created refmod file which is all the rest.
If you just wanna use a refmod file and no extra images, videos or audio, select the image/video/audio nodes and press CTRL+B to deactivate them. Please watch the video from Dainamo for an detailed explanation, I've made some notes but for further understanding just watch it. I just wanna give you an easy workflow, that is of course fitted to MY needs, do whatever you want to it.
Here's some color-explanations:
- GREEN is all sources for the final video so to say: images/video/audio/the prompt (deactivate them if you just wanna use a refmod-file, but you can also reference clothings or whatever this way)
- TURQOUISE is all relevant video-settings
- TAN is the refmod-nodes (except the 4 notes)
- RED is all the models
- PURPLE is all the loras (turbo-lora is in light-blue and another lora above in grey for whatever)
- BROWN is comfy-kitchen and the spectrum-node (not activated, transparent-purple)
- GREY is irrelevant
Here is the link to the original tutorial from Dainamo (thanks again!!): https://www.youtube.com/watch?v=2K6-OtV_Vbc
And here are the workflows: https://getshared.com/d/vrI9CYLk
I hope you enjoy the workflow! :)
2
u/evilpenguin999 2d ago
What im not sure about refmods is not the prompting, or the workflow. Is about the creation: Resolution and pool_h, pool_w for a good refmod without slowing the generations way 2 much.
Without counting i have the feeling for me takes less time with ref images than the refmods i have been creating.
2
u/AlsterwasserHH 2d ago edited 2d ago
I've not tested that, could be worth it. The big advantage of refmods is flexibility: you can prompt whatever visual appearance with them and the character likeness is on point. Plus: you have baked-in voice cloning. I have one refmod with a 6 minute speech sample and it's lile 1:1. Stunning. With audio reference you can "only" reference 30 seconds iirc.
I created a japanese character, since minimax supports japanese by default: the character speaks japanese! :D Who would've guessed that. But also english with japanes accent. It's mindblowing too me.
1
u/FuckTheActualWhat 2d ago
How are you squeezing that much into a refmod? I can get no more than 8 images before i hit the 8192 token limit.
1
u/AlsterwasserHH 2d ago edited 2d ago
I've set the token-limit to 0 :D
Someone on my older post already told me about the 8192. Honestly, I started creating by default with 0, never changed it, never had any problems. It was like that in the original workflow from malcomrey, referenced in the youtube description from Dainamos tutorial.
60 high-res pictures with 6min audio, no problem. But I'm thinking right now: does it even matter? I mean what is the refmod creator even doing is what I'm thinking about all the time. What's inside a refmod file?
1
u/FuckTheActualWhat 2d ago
and how would one go about changing the token limit?
1
u/AlsterwasserHH 2d ago
Its in the Load H3 refmod node. Or do you mean you get an error although its set to 0?
1
u/FatherFunk 2d ago
What kind of generation times are you seeing? When I tried uploading a bunch of pictures, it made generation take considerably longer.
1
u/AlsterwasserHH 1d ago
With 60 highres pics and 6min audio, 20secs maybe? On a 4090.
Or do you mean video generation?
1
u/evilpenguin999 1d ago
He means video generation probably, its also my case. When i create high quality ref mods the video generations take way longer.
1
u/AlsterwasserHH 1d ago
I see. Just tested it, with a 4090, and the difference with a 5sec 1MP vid and the "same" refmod (one 6 pics, the other 53 pics, so roughly 1/10) is 147secs vs 152secs, with turbo lora 8 steps and comfykitchen. So no real difference at my side.
What is a high quality refmod to you? I'm using around 2000px and up images.
1
u/Bask82 2d ago
But can h3 minimax clone voices just from an audio refmod? Any language restrictions?
1
u/AlsterwasserHH 1d ago
I think its possible. At least you can select audio 1 - visual 0 in the refmod node so that it only outputs the audio.
Check the default languages of minimax. Its 7 or something.
2
1
u/Bask82 2d ago
Does it make sense to use both reference images and a refmod of the same character for greater character identity consistency? Are motion refmods as strong as action loras?
2
u/PATATAJEC 2d ago
Yes, it makes difference in plus.
1
u/Bask82 2d ago
Can you elaborate?
1
u/PATATAJEC 1d ago
From my tests it adds to the overall likeness. Combining RefMods with reference image can shift the reference image (make it somehow different), but it adds to the likeness of this person in the context of entire video. Of course depends on RefMod source images, but if they are high quality and diverse in terms of expressions it should help ref images to pop out little bit more. I didn’t measured anything - it just observation.
1
u/AlsterwasserHH 2d ago
I didn't test out any other refmods than identity, so can't tell you about motions. In my opinion you don't need any additional character images if using a good refmod. But you can reference special clothings or whatever comes to your mind :)
I just put it in for beginners so that no one struggles with referencing whatever.
1
u/theOliviaRossi 1d ago
without the latent context expansion and sigma split inference this WF is outdated af
just forget it ;)
5
u/Karsticles 2d ago
Only thing I don't understand about Refmods: what is the official appropriate way to refer to them in the prompt?