Extensions/H3-Length-Duration
ComfyUI Extension

H3-Length-Duration

Lightweight duration & length nodes for MiniMax H3

By 1iminal·Created a day ago·Updated a day ago· 0
1iminal/H3-Length-Duration
Nodes—
On cloudLocal install
Stars0
Updateda day ago
Readme

H3-Length-Duration

Lightweight duration & length ComfyUI nodes for MiniMax H3.

Installation

With ComfyUI-Manager

  1. Install ComfyUI-Manager.
  2. Look up H3-Length-Duration in ComfyUI-Manager and install it.
  3. Restart ComfyUI.

Manually

  1. Clone this repository into ComfyUI\custom_nodes:

    git clone https://github.com/1iminal/H3-Length-Duration.git ComfyUI\custom_nodes\H3-Length-Duration
    
  2. Install the dependencies:

    pip install -r requirements.txt
    

    For ComfyUI portable:

    python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\H3-Length-Duration\requirements.txt
    
  3. 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.