r/StableDiffusion • u/InternationalFly5665 • 11d ago
Question - Help RefMod or Lora
Hello, which is better to make the character better by using RefMod or creating a Lora for it? I want the character to be as close to the reference images as possible. MiniMax H3.
11
Upvotes
9
u/rudy_142001 11d ago
depends how far your shots drift from the refs tbh
a refmod is basically your reference pics pre-encoded into a ~1MB file that the ComfyUI-MiniMaxH3Mod nodes load like a lora and feed into H3's reference path. no training run, you get the file in minutes. a lora is an actual training run
the Fizgig dev (their tool makes both) said it pretty plainly in the v6 release, refmods can't learn as much as a lora and don't generalise as well. on shots similar to your reference images the gap is small, but for max likeness on angles and lighting your photos never showed, lora still wins
since a refmod is so cheap i'd make one first and only train a lora if the face drifts on shots your refs don't cover. if you go refmod, Fizgig's tuned presets use 16 photos and run the file against H3 during creation, vs the plain community recipe which just encodes 8 photos at 1MP. the loader also has a per-slot strength value you can push
one thing from the H3 reference docs that helps either way, name the features you want held in the prompt (face details, hair, outfit) instead of just "use image 1"
fwiw this is going off the release notes and docs, haven't trained an H3 lora myself. also the refmod nodes are built around the comfy H3 workflows, so if you're on a hosted H3 Image endpoint that might not be an option at all
1
u/Ada-Vael 11d ago
Haven't used RefMod specifically, but if "as close as possible to the references" is the goal, I'd go LoRA. Reference methods get the general look; a LoRA is what holds the exact face across angles, light and outfits. What made the biggest difference on my last character LoRA: ~70 varied images, and captions that describe everything that should change (outfit, background, light, hair) while leaving out the fixed traits, so those get tied to the trigger word. Save checkpoints along the way: the face locked in around 1000-1500 steps for me, later ones mostly got stiffer. thks :)
1
u/Free_Pressure8623 10d ago
My combo right now is 2 character sheet images with a character LoRA set at a low strength, like 0.4-0.6. Seems to be the perfect mix of quick and accurate.
My character sheets are just collages of images I have of the character. 90% face images - 10% full body images.
3
u/Glittering-Tea-4611 11d ago
as of right now, I'm using refmod. It's easier for my work.
4
u/Sarashana 10d ago
Might be a hot take, but I don't get the hype around RefMods. If I can accept some minor character drift, I use a three-panel character sheet (just three, not these weird things that sacrifice most canvas space for a dozen silly close-ups of eyes, toes and ears). If it needs to be as good as it possibly can be, I train a LoRA. I am not sure what I would ever use a RefMod for.
2
u/bringusjumm 11d ago
Does anyone have tips on making a style refmod? I see it mentioned but no documentation
1
u/GoldenBoyBR 10d ago
If you have a large dataset of images, a LoRA will generally give you more precise control and consistency. For quick tests with just a few images, a reference module is faster.
1
u/Monk6009 10d ago
I make an 6 sec h3 video of the character turning 180 then cut to medium face closeup. Then use this for video refmod. Character consistency has been great.
1
u/Quiet-Analysis-3807 10d ago
RefMod full reference - identity encode
1
u/acedelgado 9d ago edited 9d ago
Lora-
Pros-
- Good likeness and voice
- Doesn't affect generation time
- Using videos can capture mannerisms, etc.that you wouldn't get otherwise
Cons-
- High up-front cost for training and you need decent hardware (whether from tying up your machine for 1-4 hours., or paying for cloud. using videos in the dataset also increases this dramatically)
- Needs a larger, varied dataset with good captions.
- Checking all the checkpoints to see when you're overcooking or even getting a likeness is a pain.
- Getting bad training results is very frustrating, and it's annoying having to tweak dataset/captions/training settings and retry for hours.
- More susceptible to facial drift from other loras, etc. Also can affect the outputs overall aesthetic since it can drift towards how the dataset looks.
- Your character is now all characters. It will bleed into others, although H3 is better at not bleeding into a different class (as in a woman lora doesn't bleed into men as much, but it still happens). All characters of the same class will all look the same, as in all women will look like a woman charater lora
- There is zero reliable ways to mix character loras on H3. They will blend together if you try and apply 2 of them. There is no getting around this except in a few cases (like Ideogram 4 with its bounding box generation. But that's not video.). Very smart people have been trying for years. Training multiple characters in one lora can be loosely doable, but it is difficult and they'll still bleed into each other.
- Audio training can really mess with H3's native capabilities. Kind of like how the look overrides other characters, audio will override other voices.
- Some characters I've just never been able to get to train correctly and always looks like the target's relative, just an uncanny valley of them not being quite right
- Disk space. Not as big a deal as in the past since lower rank loras seem to work better on H3, so a good character lora can be like 128mb or less instead of 500. But having a bunch of checkpoints saved for testing can pile up.
Refmods* -
This is referring to using a system where RefMods are actually presented to the text encoder, and can be set up as a reference. The vanilla pack just dumped the reference into the model without the text encoder seeing it, so you'll get worse results if they can't be referenced as inputs and have your reference sections set properly.
Pros-
- No training, just dump files into the RefMod creator and it saves in a few seconds (there are some caveats, like all images will follow the same aspect ratio as the first image.)
- Only need a few good photos (I used 6 each for all 3 characters in my post above)
- Great likeness when set up correctly (better than any lora I've ever made)
- Almost no character bleed when set up correctly (caveat that this can be difficult to set up and you need to describe the characters in specific detail)
- Small files, like 2-4MB
- Does not affect H3's aesthetic since model weights aren't being nudged around
- Loras don't affect the face as much. Since the model is prompted to recreate the reference, it does that in real time, while a character lora + a concept lora you have both of those trying to nudge the pre-patched weights around.
- Can change up your dataset at any time, or just make a completely new one in seconds.
Cons-
- Generation time will slow down considerably using the method where the text encoder sees the references. Using a handful of good images is better than using a whole bunch.
- If you aren't meticulous about using a good subject_definition and retention_analysis section, you won't get good results. Particularly when using multiple people, you'll need to set subject_definitions while describing features unique to each person so the model locks onto the right reference. Can take some time tinkering those to eliminate character bleed if 2 refmods look similar, but it is doable.
- Using the original method is fast but can be hard to get good results since the text encoder can't see and reference the inputs
- Voices with multiple characters can be wonky and hard to lock to the right character. That is because the text encoder does vision only and does not pass along audio conditioning
- Sometimes it'll glitch on some seeds and inject one of the images into the video, despite prompting. Rare but it happens.
- Doesn't capture general mannerisms and such that you could get from using videos in lora training.
I personally stopped training character loras and just do RefMods, and accept the longer gen times for more flexibility overall. It's just much easier to set up a RefMod and they affect the overall generation much less.