Turns photos of a character into one RefMod: a small .safetensors file you load into any MiniMax H3 reference-to-video workflow instead of wiring the photos in again. There's no training. mbl9's RefMod from 8 photos took a few seconds and is 2.7 MB.
The full walkthrough, with the photo rules and the token budget, is in my article MiniMax H3 RefMods.
What it does
Photos: KikoTools' Local Image Loader. Browse to a folder and Ctrl-click (Cmd on a Mac) each photo in order. Each pick shows its number, picks can come from different folders, and Clear refs starts over.
What gets encoded: the photos exactly as Create RefMod receives them. The first photo sets the size, and the others are scaled and center-cropped to it.
Create RefMod (Full Reference,
ref_resolution1024, 16,384-token budget that stops with an error instead of saving a cut-down file). Type the character's name inname.Save RefMod writes
models/refmods/people/<name>.safetensors.A bypassed Download models group for the H3 video VAE.
Token budget: each photo costs about (height / 32) × (width / 32) tokens after scaling. 8 photos at 9:16 and 1024 cost 14,336. With more photos, or if it stops with a budget error, lower ref_resolution to 832.
Based on LoRAtech's MM RefMod Image Pack. Changes: photos are picked in the gallery through the new refs output, a preview of what gets encoded, and an empty filename_prefix (his models/refmods/ was glued onto the file name).
Files
kiko-h3-refmod-pack-v1.json: the workflow.kiko-h3-refmod-pack-workflow.png: a picture of the graph with the workflow in it.mbl9-refmod/: 8 photos of mbl9, my synthetic character (01 to 08 is the pick order), rendered with her LoRA.mbl9.safetensors: her finished RefMod, to try right away. Put it inComfyUI/models/refmods/people/.
Custom nodes
ComfyUI-KikoTools 1.8.0 or newer (the
refsoutput is new in 1.8.0)ComfyUI-MiniMaxH3Mod by Luisa:
git clone https://github.com/Luisacaotica/ComfyUI-MiniMaxH3ModinComfyUI/custom_nodes, then restart
Installing KikoTools: the Comfy Registry lists KikoTools as flagged, so ComfyUI Manager 4.2 (the version ComfyUI ships) won't install it. Either update the Manager to 4.3 or newer and set allow_flagged_nodepack_install = true in ComfyUI/user/__manager/config.ini, or install from GitHub: git clone https://github.com/ComfyAssets/ComfyUI-KikoTools in ComfyUI/custom_nodes, then pip install -r requirements.txt with ComfyUI's Python, and restart.
Models
MiniMax-H3/minimax_h3_video_vae_fp16.safetensors→models/vae/: https://huggingface.co/Comfy-Org/MiniMax-H3/resolve/main/vae/minimax_h3_video_vae_fp16.safetensors
The Download models group fetches it: turn it on in Toggle stages, queue once, then turn it off again.
Thanks to Luisa for the RefMod nodes and to LoRAtech for the original workflow and the photo rules.

