Files
DumasNodes/__init__.py
T
chris.dumas 70d0672ee3 Squashed 'vendor/dumas_minimax_h3_refmod/' content from commit 517e8c4
git-subtree-dir: vendor/dumas_minimax_h3_refmod
git-subtree-split: 517e8c419a8584fbf69fceb487bc39d83e6a6ec8
2026-10-20 13:43:44 +00:00

30 lines
1.4 KiB
Python

"""
ComfyUI-MiniMaxH3Mod — no-training "RefMod" reference adapters for MiniMax H3
Reference videos are expensive because they inject thousands of tokens into
the H3 packed sequence. A RefMod compresses a reference image/video into a
tiny pooled latent (~4-16 tokens) that still rides the model's native ref2va
path — the DiT attends to it through all 50 blocks like a real reference, but
at a fraction of the compute. Extraction needs only the H3 VAE: no diffusion
model load, no training.
Nodes
─────
MiniMaxH3RefModExtract — ref_image_1..N stills + ref_video_1..N clips -> saved mod
MiniMaxH3RefModFolderLoader — load every image/video in a folder as an ordered ref list
MiniMaxH3RefModsLoader — load 1-8 mods with a typed strength each (LoRA-style)
MiniMaxH3RefModsAxis — A/B mod pairs on one signed slider each (negative -> A, positive -> B)
MiniMaxH3RefModApply — inject the bundle into MINIMAX_H3_COND (pack) or CONDITIONING (built-in);
the old split Apply/ApplyCond merged into one node (old workflows migrate)
Standalone extraction (image/video files): see extract_mod.py
"""
__author__ = "Luisa (luisacaotica)"
__version__ = "0.2.6"
WEB_DIRECTORY = "./web"
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]