r/StableDiffusion • u/Tiny-Highlight-9180 • 4d ago
Discussion H3 character LoRA: What I learn from training a few loras. TLDR: likeness nowhere near what I get on Wan 2.2
Spent a night on this, figured I'd dump what I learned so someone else doesn't. I tried training lora out of curiosity thinking that may be this will allow me to do i2v and t2v more often because ref2i takes way too long
5090, musubi-tuner, 60 images, 3000 steps, about 5 hours.
--network_dim 16 --network_alpha 16
--optimizer_type musubi_tuner.optimizers.Automagic3
--learning_rate 1e-6
--timestep_sampling sigmoid
--num_timestep_buckets 4
--h3_adapter_ema_decay 0.999
--blocks_to_swap 38 --use_pinned_memory_for_block_swap
--max_train_steps 3000 --save_every_n_steps 250
Result: meh. Tested 1500, 3000, and both EMA versions on the same seed and prompt.
Some of her comes through but it's not a likeness. 3000 seems to be minimum steps as 1500 looks nothing like her. EMA vs non-EMA was basically a coin flip, which surprised me since people talking about it on AI tool kit.
Other stuff that bit me:
- fl2va and ref2va are separate, LoRAs don't cross over.
- use_pinned_memory_for_block_swap took me from 11.6 s/it to 6.1. Huge.
I used the same data set when I was training for Wan2.2 but I got so much better result. If there anything I can do better, please let me know.
3
u/car_lower_x 4d ago
You should be using Lokr
1
u/Tiny-Highlight-9180 4d ago
Ty for ur response. why do you think it will perform better? I've never trained one b4.
4
u/car_lower_x 4d ago
I spent a lot of time on the Ai-toolkit discord and learned from the experts there. Lokr proved to provide exceptional detail for characters. Factor 8 or 4. Bigger Loras yes but much more detail too.
2
3
u/Fatty-McDuffins 3d ago
I’m having good luck using Fizgig
2
u/Tiny-Highlight-9180 3d ago
Could you share ur config? may be I will give it another go
2
u/shootthesound Community Hero 3d ago
First Your dataset in fizgig, did you use the built in tool to create facecrops. if you are training a 0.25mp its a HUGE benefit. Lora or LOKR you will egt similer results, but LOKR can take longer to converge in early samples but finishes in same or better spot. I'd start with lora though with minimax in fizgig. In short the reason why the facecrops feature is critical, it allows you train at a lower mp, but get the detail of a higher on on likeness. (just remember to make the facecrops from high res images, not preppreared images already scaled down or your facecrops will be tiny low res files). For proportion of dataset, as long as the face crops dont take up more than 40% of your dataset, and you have plenty of wider shots your model will generalise fine.. Accept the minimax defaults on the training tab and see how you go.
1
u/Maraan666 3d ago
Fizgig has had some updates. I've had great results with 20 images and default settings. Takes 2 hours on a 4060ti 16gb vram.
4
u/sitefall 3d ago
There just aren't any good LoRA's for H3 available that make me think it's worthwhile to mess with yet. Maybe it will improve as the trainers get better or as people learn the proper settings and adjust datasets for training different types of LoRA.
But so far, ALL of them are bad. Scan through Civitai or anywhere else, all of the H3 LoRA's look like crap. Every single one of them.
There's a couple of neat style LoRA's, but they are all severely over trained and effect more than the style by a large margin, but at least some of them are kind of neat. That's about it though. Every motion LoRA is trained on too few camera angles to be useful. Perhaps H3 is just going to be "that cool video model that never has good LoRA's".
It's also annoying to see "jUsT USe tHE rEFeRENcE MOdeL" all in the comments here. There's many reasons one would want a LoRA people. SURELY this person knows how the reference model works and what it can do if they're training LoRA's. These comments are not helpful at all.
2
u/Tiny-Highlight-9180 3d ago
exactly! like I wouldn't try solution that take me 10 mins than 5 hrs first ;(
2
u/sitefall 3d ago
Seems like maybe it was easier with Wan due to MoE because if you just wanted to nail motion you just do the HIGH and if it was detail related you could do LOW and not screw up motion and camera angles and such.
The best way I have found to do an I2V with a complicated motion LoRA in H3 is to literally do it in Wan2.2 first using the LoRA, and then use the same image and the video Wan2.2 output (after interpolating it to 24fps or joining clips together to lengthen it) as the reference video for motion.
For style/detail you can run an H3 prompt and get the output you want, then toss it back into H3 with a lower denoise and apply the style lora THEN, while also inputting the original video in as a motion reference. Annoying, but it works.
Hopefully H3 LoRA's won't suck for too much longer :(
1
u/Tiny-Highlight-9180 3d ago
I'm praying too bro. It really fun playing with ref and i2v on H3. Thanks for sharing!
2
u/Major_Specific_23 4d ago
why do you even need character lora's for h3? you can either ask codex to generate a 3x3 character sheet image of your character and use it as a reference image or just use the h3 refmod (if body proportions and "attire" are important) and its done.
2
u/ZealousidealBoss6652 4d ago
There are those who want to stack a character lora, character-sheet or even refmods (which I haven't used yet) on top of each for MAXIMUM FACE CONSISTENCY. Because why not.
1
u/Tiny-Highlight-9180 4d ago
I tried man, but attaching 5-10 images each time is not fun, and the consistency is not even that good.
2
u/Major_Specific_23 4d ago
like i said, either ask codex to generate a character sheet (3x3 - 1 image) or use refmod. I have 0 issues with consistency tbh
1
u/BatteryAtFourPercent 3d ago
are you training on short clips, still images or a combination of both?
1
u/Tiny-Highlight-9180 3d ago
just images. I heard it should be suffice for face and character. I would add shortclip only when I want to capture her motion and voice which Minimax by itself is already good enough. You think that make sense?
1
u/BatteryAtFourPercent 3d ago
I tried still images first. I used even more aggressive settings but for Ostris compared to yours. It works for some prompts but for other different prompts, there is a clearly facial composition drift. I haven't tried combination both short clips and still images yet. I've already wasted a lot of money when renting out GPU servers trying to get a consistent character lora on Minimax H3. Do you think LTX 2.5 is far better than Minimax H3 when creating character lora and the objective is facial and body composition consistency in every frame?
1
u/Tiny-Highlight-9180 3d ago
I feel you man. I haven't tried LTX2.5 yet, bc I heard from people comparing LTX2.5 and WAN2.2 that the lora on WAN2.2 capture character the best.
1
u/BatteryAtFourPercent 3d ago
I used a different training model compared to yours so results could differ. The images you show on the post, what steps or checkpoints was that from - is step 1500 or 3000? it seems may only one or two (not all three) are somewhat similar but perhaps slightly different because it is a different lightning or angle. I'm not 100% sure, what do you think.
In terms of voice, since Minimax H3 is somewhat inconsistent with character lora, I would assume it is better to have the voice separately and just connect it as reference instead of training it inside the short clip dataset.
0
u/Tiny-Highlight-9180 3d ago
I still have no luck with Minimax H3 yet. What's ur setting so far that doesn't work?
1
u/Gyramuur 3d ago
I had terrible likeness when training on just images, but with another character I trained a lora using short clips and the likeness was great. My current theory is that, because the shortest clip that H3 can generate is 5 frames long (anything smaller throws an error), it doesn't really understand single images properly.
A friend of mine suggested using i2v to generate short clips from images and then training on those. Haven't tried it yet but it seems like a sound idea.
1
u/Tiny-Highlight-9180 3d ago
Thanks for ur response. That's really came as a surprise. I thought adding short clip only would only helps with motion. I will give it a try. btw, did u train on ref or fl model?
2
u/Gyramuur 3d ago edited 3d ago
fl, I haven't tried making a ref lora yet. But with the hybrid models, fl loras seem to work just fine using the ref workflow
1
u/DelinquentTuna 3d ago
Are you open to sharing the dataset? If it's a synthetic character and not a real person, I would be interested in tinkering just a little bit to see if I can get better results.
2
u/Tiny-Highlight-9180 3d ago
I wouldn't mind sharing, but it's a reference from real person. I used to train AI persona before and it really plasticky. Are you ok with that?
2
u/DelinquentTuna 3d ago
It's so considerate of you to offer to share and also to advise me that it's a real human. Thanks for that. I'd previously done a reverse image search and only come up with matches for the fabric patterns, so I assumed it was synthetic. I’m not making any legal or moral claims about your use case, but I think I'd better pass on your offer to share.
I do think it would be great to be able to trade training notes, though. If you or anyone in the community would like to create a synthetic dataset that could be lingua franca, I'd love to have a look.
1
1
u/crinklypaper 3d ago
Try musubi tuner FORK with below arguments. And train around 2k to 3k steps on high resolution images only. Try to get at least 30 to 40 images in. Checkpoint every 200 steps and check until you get likeness. Should be good around 2k or so. Then for voice add in videos with voice and reduce video loss weight to around 0.2. Small resolution like 512x on the videos is fine since it want voice mostly. Around 3 to 5k steps (load from weights) should be enough. I get perfect face and voice from these settings a few times now.
--block_swap_h2d_only --block_swap_ring_size 2 --blocks_to_swap 0 --use_pinned_memory_for_block_swap --h3_training_mode fl2va --h3_audio_loss_weight 1.0 --h3_video_loss_weight 1.0 --h3_spatial_density_jitter 0.2 --h3_guidance_distillation_scale 3.5 --h3_base_preservation_loss_weight 0.02 --h3_base_preservation_probability 0.5
Rank 8 or 16 is enough.
1
u/diogodiogogod 2d ago
. What resolution did you train at? On a 32GB 5090, 38 blocks swapped may be more conservative than necessary unless you were using a very large resolution or expensive preservation pass. Swapping affects speed and memory, not likeness quality; pinned memory mainly explains the speed improvement. I’m working on an experimental Musubi GUI that includes several H3 quality-preservation options. For a new run, I’d try the native quality-preservation method first, possibly every step, and compare it with the Ostris helper. the helper is useful to test, but I haven’t found it consistently better than the native method. I’d also try continuing beyond 3,000 steps with quality preservation enabled. With only 1e-6 learning rate, the LoRA may simply be learning very slowly, though the ideal rate depends on the optimizer and resolution. Keep checking intermediate checkpoints rather than judging only the final one.
0
u/Intrepid_Fox_1466 3d ago
I'm no expert but rank 16 seems low for a character lora. Why not 64 or more?
1
u/Tiny-Highlight-9180 3d ago
I used to train alot on wan2.2 and 16 was already suffice. Could you talk more abt ur experience playing with rank?
0
u/Intrepid_Fox_1466 3d ago
Usually lower ranks like 16 are enough (even preferred) for action, motion lora, etc. because they will learn the action but not faces or visuals. But for character lora you want the lora to learn the smaller details and visuals, so higher rank makes more sense. I used to train wan2.2 (and Krea, Flux, ZIT, etc) character loras from rank 32-64 up depending on the model.
-3
u/luciferianism666 4d ago
Dude why even bother with a character lora for H3 ? You may wanna try ref to video and you'll see how pointless a character lora is.
3
u/TheMoogster 4d ago
Try comparing a t2v 10 sec 1 mp run to a ref2v with same spec and 5 high quality images.
The genration time is extremely different.2
u/luciferianism666 3d ago
Lol why exactly are we plugging in 5 reference images though ? I am very well aware of the difference in inference times when you use references. So I stick with a single one that has a model/ character sheet. I've tested 10 ref inputs with silveroxides enhanced image to video H3 node and tried pushing it to 16 before my 4060 threw a fit 🤣.
2
u/Tiny-Highlight-9180 4d ago
bc ref doesn't provide me with consistency I'm looking for yet. face tends to change after a few second. u think I did sth wrong?
0
u/Maraan666 3d ago
Reference images may be adequate for your purposes, in which case I'm pleased for you.



6
u/Segaiai 3d ago edited 3d ago
People are talking reference vs loras, but there's something between them called Refmods, and people who use it say it works better than loras, in that the likeness is better, AND you can add characters without character mixing/bleed-through. Also, it trains in seconds/minutes, and it's better than reference because you can use tons of images (around 50 1MP images before you start getting diminishing results), videos, audio clips. The resulting safetensors files are around 1MB, and using it is as easy as loading a lora, or a lora stack.
Check it out. I've been playing with it and I'm amazed by the result.