Voice cloning. The swap replaces a real person's appearance in footage, so you need permission from the performer and the source video owner before using the output.
Who it is forA video editor or creator who has a source clip and needs to replace one actor with a reference image, and has the Character-Swap models installed.
The problemRe-shooting a scene to change one performer is costly, and simple masking leaves ghosting or edge artifacts when the new person has a different body or pose.
The outcomeA shot-level cast remake of the source video where the selected roles are swapped and the rest of the frame is kept, with dirty segments regenerated.
What you need first
- A Windows PC with ComfyUI installed, plus a high-VRAM machine if you want to run the local server roles described in the README
- Completed Step 1 deployment (Studio Runtime, Qwen3-TTS and VoxCPM2) from the README's step1.md
- The model files listed in the README, saved under the exact file names it gives
- Model and source-footage licenses checked by you; the README says weights are not included in the source code
Steps
- Install the
akatz-ai/h3-relaycustom node intoComfyUI/custom_nodes/h3-relay/and place every Character-Swap model listed in the README, includingsam3.1_multiplex_fp16.safetensorsfor multi-character swaps. - Confirm ffmpeg and ffprobe run from the PATH on the server.
- Optionally run
install_h3_cache_status_server.baton the ComfyUI host to show cache, VRAM and GPU status in Studio and the Windows Tray. (inferred, check the README) - Start the studio with
.\run_h3_prompt_studio.bat, chooseSource Video Cast Remake H3, and open the Shot Visual Editor. - Check the roles to swap, choose a P Picture for each, leave other people on
KEEP V1, clickSAVE SHOT, then clickREGENERATE DIRTY.
Prompt for your agent
Using the repo karuvanan/MiniMax-H3-Director-Cut-Studio, set up the Source Video Cast Remake H3 path for the source clip <source video path> and swap the role named <role name> with the reference image <P picture path>. Expected output: a regenerated shot in the studio with the swap applied to that role only. Verify that LabsH3PrepareVideo, H3RelayWindowedEdit, SAM3_VideoTrack and SAM3_TrackToMask appear in ComfyUI without IMPORT FAILED.
Caveat. The README lists many separate model files, a custom node and system ffmpeg that must all be in place before the Character-Swap path runs, and the source footage license must be checked separately.
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page