H3-Length-Duration
Lightweight duration & length nodes for MiniMax H3
H3-Length-Duration
Lightweight duration & length ComfyUI nodes for MiniMax H3.
Installation
With ComfyUI-Manager
- Install ComfyUI-Manager.
- Look up H3-Length-Duration in ComfyUI-Manager and install it.
- Restart ComfyUI.
Manually
-
Clone this repository into
ComfyUI\custom_nodes:git clone https://github.com/1iminal/H3-Length-Duration.git ComfyUI\custom_nodes\H3-Length-Duration -
Install the dependencies:
pip install -r requirements.txtFor ComfyUI portable:
python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\H3-Length-Duration\requirements.txt -
Restart ComfyUI.
Nodes
H3 Length (Frames)
Allows to easily pick a real number that conforms to MiniMax H3 length formula (17 * k + 5).
Inputs
| Parameter | Type | Description |
|------------------|--------|----------------------------|
| length | INT | Desired length in frames |
Outputs
| Output | Type | Description |
|---------|-------|----------------------------|
| length| INT | Length snapped to the MiniMax H3 length formula (17 * k + 5) |
H3 Duration to Length (Frames)
Converts desired duration (in seconds) to length (in frames), conforming to MiniMax H3 length formula (17 * k + 5).
Inputs
| Parameter | Type | Description |
|------------------|--------|-------------------------------|
| duration | FLOAT | Desired duration (in seconds) |
| fps | FLOAT | Intended frame rate |
Outputs
| Output | Type | Description |
|---------|-------|----------------------------------------------------------------------------|
| length| FLOAT | Length in frames, snapped to the MiniMax H3 length formula (17 * k + 5) |
| fps | FLOAT | (Optional) FPS variable passthrough for Set/Get, etc. |
AI Notice
This custom node pack has been created with the substantial help from Google's AI (Gemini). It has been reviewed and tested by the repository owner.