Ercelcan/Comfyui-H3Anim
A ComfyUI node for MiniMax H3 animation, matting, and sprite-sheet export
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
H3Anim is a ComfyUI custom extension that wraps native MiniMax H3 video generation and sprite preparation in one interactive node. Reference-to-video relies on MiniMaxH3ReferenceToVideo; first-frame or first/last-frame generation additionally requires MiniMaxH3ImageToVideo. The package contains Python files including __init__.py, h3_one_node.py, matting.py, and Converter.py, alongside web/ and presets.json. The extension runs in ComfyUI and uses the host's built-in nodes and installed dependencies rather than shipping an independent inference runtime.
After generation and decoding, the Studio lets users extract alpha, select and reorder frames, correct offsets, and preview the sequence before packing it. The node keeps decoded raw_frames separate from aligned frames_rgba and alpha_mask, so a downstream graph can use the unedited result or the processed frames without reading files back from disk. The export panel writes sprite assets separately, and recent generation history lets users reopen a result for another editing or export pass.
Key Capabilities & Differentiators
Reference-to-video accepts up to three character reference images; image-to-video requires a first frame and optionally takes a last frame. Generation controls cover prompt presets or a custom prompt, style, backdrop, dimensions, duration, steps, sampler, and seed. For transparency, users can connect an external mask, select an installed background-removal model, or use the built-in color keyer. Edge softness, spill suppression, and alpha erosion or dilation provide separate controls for cleaning up the matte.
The Studio supports frame selection, reordering, offset correction, stabilization, and configuration of playback FPS and sheet layout. Default file export writes a sprite sheet and atlas JSON and updates a combined _animations.json manifest that indexes each action's sheet and atlas. The atlas records frame rectangles, cell dimensions, frame count, and FPS. Individual aligned PNGs and mirrored animation copies are optional. The supplied Mina assets give integrators concrete files against which to test their importer.
Trade-offs & Limitations
Compared with assembling separate ComfyUI generation and matting nodes and then using a standalone sprite packer, H3Anim cuts down the handoffs for revising short character loops. The trade-off is coupling: generation depends on native MiniMax H3 support, and the export contract is H3Anim's atlas and manifest format. Check that format against the target importer before standardizing on it. If a pipeline already produces aligned RGBA frames, a standalone packer may be the simpler dependency.
The three matte paths address different inputs. Color keying avoids another model but depends on the backdrop being separable from the subject; an external mask gives upstream control but must correspond to the frames being processed. Model-based matting adds a model to provision and validate. For sizing, test representative clips on the intended host: model choice, resolution, duration, and concurrent jobs affect capacity, and no exact VRAM requirement is specified. The Apache-2.0 license covers the extension, not the separately installed model weights.
Hardware & Deployment Guide
Install the extension by cloning Ercelcan/Comfyui-H3Anim into ComfyUI/custom_nodes/ and restarting ComfyUI. The host build must include the native H3 node or nodes required by the intended generation mode. Install the diffusion model, text encoder, and video VAE separately under ComfyUI/models/diffusion_models/, ComfyUI/models/text_encoders/, and ComfyUI/models/vae/ respectively. Optional LoRAs go in ComfyUI/models/loras/. The extension itself requires no separate Python package installation; model-based matting is optional and requires its own installed model.
This is a self-hosted ComfyUI workflow with no remote generation API required for the described path. Ensure ComfyUI can write to the default export location, ComfyUI/output/H3Anim/<asset-name>/. Test the exact host build and model combination before rolling it out: no published release is listed and no minimum ComfyUI version is specified. If models are absent from the selectors, check the directories and restart; if the native H3 nodes are absent, update the ComfyUI build.
_animations.json manifest; aligned PNG frames and mirrored copies are optional.Animationstest/ contains the Mina sprite sheets, per-action atlases, a combined manifest, and a sample MP4.Teams already running MiniMax H3 in ComfyUI that want to turn short character clips into transparent, aligned sprite loops with hands-on frame editing and atlas export.
You lack a compatible H3 host, only need to pack finished frames, or require a specific engine import format or unattended batch workflow that you have not validated.
Quick Start & Installation
cd ComfyUI/custom_nodes git clone https://github.com/Ercelcan/Comfyui-H3Anim.git
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Ercelcan/Comfyui-H3Anim.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Comfyui-H3Anim
How does H3Anim fit into an existing ComfyUI graph?
How much VRAM should I budget, and does matting need another model?
Does Apache-2.0 cover commercial use of the full self-hosted workflow?
When is H3Anim a better choice than a separate ComfyUI graph and sprite packer?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy