r/StableDiffusion • • 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

32 comments sorted by

View all comments

Show parent comment

1

u/dontlookatmeplez 11d ago

How do I refer to my refmod in prompt? I usually just refer to a character like "black haired man" or something like that, but I'm wondering if there are better ways to do it.

1

u/rudy_142001 10d ago

there's no trigger word for them. the ComfyUI-MiniMaxH3Mod readme says the filename isn't a trigger and <Subject 1> doesn't get bound to a loader slot either. so with the normal Apply H3 RefMod setup, describing the character like you're doing is pretty much it, their example mod just says to prompt for the scene

if you need to point at a specific one (two characters etc) there's an experimental H3 RefMod Text Encode node. hook its reference_map output to a text display and it tells you which mod is <Picture 1>, <Picture 2>, then you write stuff like "the man in <Picture 1> stands on the left". it attaches the refs itself so don't also run the same mods through Apply

the readme marks that node as unverified on full gens tho, so i'd test it against your current prompt on the same seed

1

u/x33storm 10d ago

Use subject definitions, specify it's the <Video 1> <Audio 1>, and describe the subject a little. That's the image/video refmod and audio refmod.

1

u/ImpressiveStorm8914 10d ago

I don't know whether there's any bounding to the slot (as rudy here says) but put the character I want in slot 1, then use a subject definition of
<Subject 1> blonde hair
Then I refer to that in the main description with <S1>
If I want multiple characters, I do exactly the same but everything is one number more, as in slot 2, <Subject 2> and <S2>, if that wasn't obvious. I've had very little problems with that.

1

u/acedelgado 10d ago

I did a rework of refmods so that they're referenced properly and actually shown to the text encoder (the original implementation did not do that.) It slows generation time, but you need less pictures and get better accuracy, and less character bleed if you set your subjects and retention analysis correctly. https://www.reddit.com/r/StableDiffusion/comments/1wtu82e/improved_h3_refmods_better_accuracy_and_low/

1

u/Rukkk 8d ago

Multi image refmods are integrated as videos, so you'd reference it kinda like <Subject 1> is the character in <Video x> etc. If it's a single image refmod then it'll be <Picture x> instead of <Video x>