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
v1.1 LoRA (full + Frobenius 0.99 copy) and workflow; v1 moved to archive/
Browse filesFiles changed (8)
- .gitattributes+1
- H3 Character Swap LoRA v1.1 - Simple.jsonAdded
- README.md+24-11
- H3 Character Swap LoRA - Simple.json → archive/H3 Character Swap LoRA - Simple.jsonRenamed
- h3_ref_char_replace_v1.safetensors → archive/h3_ref_char_replace_v1.safetensorsRenamed
- h3_ref_char_replace_v1.1.safetensorsAdded+3
- h3_ref_char_replace_v1.1_fro99.safetensorsAdded+3
- samples/two_person_swap.mp4Added+3
33 unmodified lines34353633 unmodified lines*.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 -text33 unmodified lines3435363733 unmodified lines*.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 -textsamples/two_person_swap.mp4 filter=lfs diff=lfs merge=lfs -text
15 unmodified lines16171819202122232425262728293031323334353637383940414243444546474849505152533 unmodified lines5758596061626311 unmodified lines7576777879808115 unmodified lines- character-swap---# H3 Character Swap LoRA v1A 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 trainingThe 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 start1. 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 (or of two new characters). 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.### More than one person in the video- **One person is replaced, the others stay:** list the people who stay in `other_people`, and type where the person to replace is in `character_position`, for example `the woman on the left`. The prompt then says `Replace the woman on the left with <Subject 1>.`- **Two people are replaced:** describe the second character in `character_2`, give both a position (`the woman on the left`, `the woman on the right`), and set `picture_N_belongs_to` to `character 2` for the second character's pictures. `two_character_text` is a short lead-in used only in this case; change its wording to fit your video.## Files3 unmodified lines| `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 nodes11 unmodified lines## 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.15 unmodified lines1617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465663 unmodified lines7071727374757611 unmodified lines8889909192939415 unmodified lines- character-swap---# H3 Character Swap LoRA v1.1A 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%20v1.1%20-%20Simple.json?download=true)** · **[Download the LoRA](https://huggingface.co/aptech0081/h3_ref_char_replace_v1/resolve/main/h3_ref_char_replace_v1.1.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, made with v1: the person in the source clip was replaced with a character from one reference picture (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).*<video controls loop src="https://huggingface.co/aptech0081/h3_ref_char_replace_v1/resolve/main/samples/two_person_swap.mp4"></video>*Two people replaced at once, made with v1.1 and the workflow in this repository at its default settings (736x416, 5 seconds, 8 steps, seed 42). The source is the same street clip placed side by side with itself, so there is a man on the left and a man on the right. `People to replace` was `two`, with `the man on the left` and `the man on the right`, one picture per character (pictures 1 and 6). Both characters, `03_leila_archaeologist` and `01_maya_travel_photographer`, are fictional and come from [H3 Character Sheet Creator](https://huggingface.co/aptech0081/H3-Character-Sheet-Creator).*## Which file| File | Size | ||---|---|---|| [`h3_ref_char_replace_v1.1.safetensors`](https://huggingface.co/aptech0081/h3_ref_char_replace_v1/resolve/main/h3_ref_char_replace_v1.1.safetensors?download=true) | 298 MB | The full LoRA. **The workflow loads this one.** || [`h3_ref_char_replace_v1.1_fro99.safetensors`](https://huggingface.co/aptech0081/h3_ref_char_replace_v1/resolve/main/h3_ref_char_replace_v1.1_fro99.safetensors?download=true) | 102 MB | A smaller copy (Frobenius 0.99 rank reduction). It preserves the likeness, but it costs sharpness: the output is softer. Use it when file size matters more than detail. |The first release (v1 LoRA and its workflow) is in [`archive/`](https://huggingface.co/aptech0081/h3_ref_char_replace_v1/tree/main/archive).## About the trainingThe 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, 5 and 10 second** clips- 3 to 9 reference pictures per clip in training## Quick start1. 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. In the prompt node, describe the new character in **New character** and pick what each picture is used for (face, hair, body, outfit, ...).7. Run.### More than one person in the video- **One person is replaced, the others stay:** list the people who stay in **People who stay**, and say where the person to replace is in **Who they replace**, for example `the woman on the left`, `the woman in the foreground` or `the man on the right`. The prompt then says `Replace the woman on the left with <Subject 1>.`- **Two people are replaced:** set **People to replace** to `two`. Describe the second character, give both a position (`the woman on the left` and `the woman on the right`, or `the woman in the foreground` and `the woman in the background`), and load the pictures by character: the first character's in pictures 1–5, the second's from picture 6 on (**Their pictures start at** moves that split). **Two-person intro line** is a short lead-in used only in this case; change its wording to fit your video.## Files3 unmodified lines| `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.1.safetensors`](https://huggingface.co/aptech0081/h3_ref_char_replace_v1/resolve/main/h3_ref_char_replace_v1.1.safetensors?download=true) (this LoRA) |## Custom nodes11 unmodified lines## Known limits- Stay near the trained size. With v1, 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 or the length.- 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:b67368bcf193f1d42fe307b969df2ed1272234fc2f878760d59967bf97451344size 298270184123version https://git-lfs.github.com/spec/v1oid sha256:2c7ae75cf198fb50445fdbca464fa3f5d81847fccc3b3a6d5cc826267bf6cb42size 102403600123version https://git-lfs.github.com/spec/v1oid sha256:0050cb500386543e3a67d7185d10751f45d8df5bd8819b899414983a1468c4efsize 1907915.gitattributes+1
H3 Character Swap LoRA v1.1 - Simple.jsonAdded
README.md+24-11
H3 Character Swap LoRA - Simple.json → archive/H3 Character Swap LoRA - Simple.jsonRenamed
h3_ref_char_replace_v1.safetensors → archive/h3_ref_char_replace_v1.safetensorsRenamed
h3_ref_char_replace_v1.1.safetensorsAdded+3
h3_ref_char_replace_v1.1_fro99.safetensorsAdded+3
samples/two_person_swap.mp4Added+3