Run this model with HF Jobs
Run akatz-ai/MiniMax-H3-Character-Swap-LoRA on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use akatz-ai/MiniMax-H3-Character-Swap-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use akatz-ai/MiniMax-H3-Character-Swap-LoRA with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Worked like magic!
This is such a magical Lora, I enjoyed using it, great fun!
One note about audio, it generates some music randomly, even I prompted "silent" or "keep source video's audio", it just didn't work. Hope next update will improve the audio part, thanx!
What are you talking about? It simply doesn't work.
I did this in the past with prompting only and was lucky sometimes.
But I dont see a real difference when I use this lora. I have the same side effects and its not reliable.
@mexahuk418
Your doing something wrong.
Use the 25-49 hybrid model. The original ref2v model still has 'merged faces'.
Also try upping the strength
@mexahuk418
Your doing something wrong.
Use the 25-49 hybrid model. The original ref2v model still has 'merged faces'.
Also try upping the strength
Unfortunately after trying multiple settings and multiple prompts in detail there is no difference between this lora and without it.
Tried about 40 clips and about 32 where the video did not change and of the 8 only about 4 of those did a highly detailed swap and only 1 did a complete swap without merged facial feature issue.
By default Minimax works better for swapping with medium shots it struggles greatly with close ups.
The results are very sensitive to the input image and video and this is part of the problem with consistency.
I also tried changing the <Video 1> to <Picture 2>.
Prompts used:
- Used with the default prompt provided and failed every time.
- "Replace the shown person of <Video 1> with the person of <Picture 1>. Keep art style from <Picture 1>. Preserve <Video 1> camera, background, lighting, objects but not the people. Match the target person's position, scale, pose, and movement."
- "Remove and Replace the shown person of <Video 1> then insert into the video the person of <Picture 1>.
Preserve the camera, background props, lighting of <Video 1> while ensuring the person of <Picture 1> is copying all previous facial and body motions. " - "Insert the person from <Picture 1> into the video of <Picture 2> replacing whoever is originally there.
Preserve the camera perspective, background props, lighting of <Picture 2> while ensuring the person of <Picture 1> is copying all animation data. "
Settings: Res multi step, simple, 0.5 MP, duration 5 sec. Lora lightx2v ref lora at 1 strength (Tried putting the swap lora before or after the turbo lora). Set the swap lora strength from 1 to 2.
Strength of the swap lora was put to 2 but its not recommended it will cause artifacts. It should work at 1.
I tested this using the FFMP Upload Video Node and set force rate to 24 so the video would be 24 fps.
Since I am quite new in the world of ComfyUI I would like to know where to find an appropriate workflow for this model. Thanks in advance!
There is one workflow here:
https://huggingface.co/akatz-ai/MiniMax-H3-Character-Swap-LoRA/tree/main/examples
Hi @CoolaidFun , I appreciate your testing of the lora thoroughly and explanation of settings used. If you don't mind could you please link the exact workflow you were using when doing the testing above and/or some of the example inputs and outputs so I can get an idea of where the lora succeeded and where it didn't change the output at all?
I'm currently building up a dataset for V2 of the lora which I hope can address many of the current shortfalls of V1, any extra info you can give me will go straight into the next training run(s). Thanks!
Dont use a turbo lora. If your not getting results, try to go virgin and use this Lora with no acceleration methods.
I found when using a Turbo lora, i had issues.
With Spectrum it works better, but i get best results with Comfy Kitchen , This lora and the model.
Also your prompts seem off.
The best one i would say to use is
"Replace the shown person of <Video 1> with the person of <Picture 1>. Keep art style from <Picture 1>. Preserve <Video 1> camera, background, lighting, objects but not the people. Match the target person's position, scale, pose, and movement."
However, "Character" and "art Style" it shows he was doing a cartoon. I;ve replaced "Character" with "Woman" or "Man" and works a lot better.
Define the person in the first sentence.
"Replace the shown person of <Video 1>"
Sometimes yielded nothing. However
"Replace the blonde woman with earings shown person of <Video 1>"
Yielded a exact lock.
Try those and let me know brother :)