Run this model with HF Jobs
Run aptech0081/h3_ref_char_replace_v1 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/aptech0081/h3_ref_char_replace_v1. 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/aptech0081/h3_ref_char_replace_v1 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 aptech0081/h3_ref_char_replace_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Inference
- Notebooks
- Google Colab
- Kaggle
Add model page, simple ComfyUI workflow and sample
Browse filesFiles changed (4)
- .gitattributes+1
- H3 Character Swap LoRA - Simple.jsonAdded
- README.mdAdded+72
- samples/pizza_swap.mp4Added+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textsamples/pizza_swap.mp4 filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172---language:- enbase_model:- MiniMaxAI/MiniMax-H3pipeline_tag: text-to-videotags:- comfyui- workflow- minimax-h3- lora- video- character-swap---
# H3 Character Swap LoRA v1
A LoRA for **MiniMax H3 (ref2va)** that replaces a person in a short video with the character from your reference pictures. The scene, camera, motion and sound follow the source video.
**[Download the workflow](https://huggingface.co/aptech0081/h3_ref_char_replace_v1/resolve/main/H3%20Character%20Swap%20LoRA%20-%20Simple.json?download=true)** · **[Download the LoRA](https://huggingface.co/aptech0081/h3_ref_char_replace_v1/resolve/main/h3_ref_char_replace_v1.safetensors?download=true)** · **[Prompt node on GitHub](https://github.com/Jalen-Brunson/ComfyUI-H3-Character-Swap-Prompt)**
<video controls loop src="https://huggingface.co/aptech0081/h3_ref_char_replace_v1/resolve/main/samples/pizza_swap.mp4"></video>
*Sample: the person in the source clip was replaced with a character from one reference picture. Made with the workflow in this repository at its default settings (736x416, 5 seconds, 8 steps, seed 42). The character picture is `03_leila_archaeologist.png` from [H3 Character Sheet Creator](https://huggingface.co/aptech0081/H3-Character-Sheet-Creator).*
## About the training
The LoRA was trained on swap pairs that include actions the base H3 model does not account for. The sample above is ordinary footage.
- Trigger word: **`ero_swap`** (the prompt node adds it for you)- Trained at **736x416**, 24 fps, on **3 to 5 second** clips- 2 to 9 reference pictures per clip in training
## Quick start
1. Download the workflow above and drop it into ComfyUI.2. Put the model files in place (table below) and install the three custom node packs.3. Load 1 to 9 pictures of the new character. Bypass every Load Image you do not use.4. Pick the source video. It must have a stereo sound track.5. Choose the size and the length in seconds.6. Describe the new character in the prompt node and pick what each picture is for (face, hair, body, outfit, ...).7. Run.
## Files
| Folder | File ||---|---|| `diffusion_models` | [`minimax_h3_ref2va_int8_convrot.safetensors`](https://huggingface.co/Comfy-Org/MiniMax-H3/tree/main/diffusion_models) (the full ref2va model, not the pruned one) || `text_encoders` | [`qwen3vl_32b_minimax_h3_int8_convrot.safetensors`](https://huggingface.co/Comfy-Org/MiniMax-H3/tree/main/text_encoders) || `vae` | [`minimax_h3_video_vae_int8_convrot.safetensors` and `minimax_h3_audio_vae_fp32.safetensors`](https://huggingface.co/Comfy-Org/MiniMax-H3/tree/main/vae) || `loras` | [`MiniMax-H3-Ref2VA-Acc-8Step_comfy.safetensors`](https://huggingface.co/Kijai/MiniMax-H3-experimental/tree/main/loras) (8-step LoRA) || `loras` | [`h3_ref_char_replace_v1.safetensors`](https://huggingface.co/aptech0081/h3_ref_char_replace_v1/resolve/main/h3_ref_char_replace_v1.safetensors?download=true) (this LoRA) |
## Custom nodes
- [H3 Character Swap Prompt](https://github.com/Jalen-Brunson/ComfyUI-H3-Character-Swap-Prompt): writes the prompt in the format the LoRA was trained on.- [TARA-H3](https://github.com/alisson-anjos/TARA-H3) (tested on v0.5.1): keeps the motion in time with the source video. The workflow uses its redistribute mode with 50% token drop, which needs `sageattention` and `triton`.- [ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite): loads the source video at 24 fps.
Everything else in the workflow is a core ComfyUI node. Tested on ComfyUI v0.43.
## Settings to keep
- `euler` + `simple` + **8 steps**, shift **12 / 3**, no CFG. The 8-step LoRA only works on this schedule.- Both LoRAs at strength 1.0.- Do not combine TARA's token drop with Model Sparse Attention.
## Known limits
- Stay near the trained size. At 960x544 and 5 seconds a test shot kept the original person for its first 2 seconds; 960x544 at 3 seconds and 736x416 at 5 seconds swapped every frame. If the original person shows up, lower the size.- The workflow renders one clip in one pass. It has no upscaler and is not built for long videos.- The sound in the result is the model's copy of the source sound track, not the original track.123version https://git-lfs.github.com/spec/v1oid sha256:1566484dc82d1a89548650d86bb46bc52f909254c43104bc4c79f606fe755bb3size 1835640.gitattributes+1
H3 Character Swap LoRA - Simple.jsonAdded
README.mdAdded+72
samples/pizza_swap.mp4Added+3