MiniMax H3 Image • Single Image Output:
The H3ImageFrameSelector node is designed to facilitate the selection of frames from a decoded H3 image batch, offering a variety of strategies to optimize the quality and relevance of the selected frame. By default, it leverages the mode-aware recommendation from the Exact Frame Decode node, ensuring that the most suitable frame is chosen based on the context and requirements of the task. This node is particularly beneficial for users who need to extract high-quality frames from a sequence, as it provides multiple strategies to balance factors such as sharpness, similarity to the source, and overall quality. The node can also expose the entire decoded batch if needed, allowing for greater flexibility in frame selection and analysis.
MiniMax H3 Image • Single Image Output Input Parameters:
samples
This parameter represents the sampled H3 latent, which is the input data that the node processes to extract frames. It is crucial for determining the temporal profile of each batch item, which can range from 5 to 20 frames. The latent data is decoded into an image batch using the specified VAE.
vae
The VAE (Variational Autoencoder) is used to decode the video latent into an image batch. It is essential for transforming the latent data into a visual format that can be further processed and analyzed by the node.
strategy
This parameter allows you to choose the frame selection strategy. Options include decode_recommended, first, stable_quality, balanced_edit, best_quality, most_similar_to_source, sharpest, middle, last, and manual_index. Each strategy has a specific focus, such as prioritizing sharpness, similarity to the source, or overall quality. The default value is decode_recommended.
emit_candidate_batch
This boolean parameter determines whether the node should expose every frame in the decoded batch or just the selected frame. Enabling this option allows for a more comprehensive analysis of the entire batch, which can be useful for tasks requiring multiple frame evaluations.
MiniMax H3 Image • Single Image Output Output Parameters:
frames
This output contains the selected frame or frames from the decoded H3 image batch. It is the primary result of the node's processing and reflects the chosen strategy's effectiveness in selecting the most suitable frame.
decoded_frames
This integer output indicates the number of frames that were decoded from the latent input. It provides insight into the temporal profile of the batch and the extent of the data processed by the node.
decode_info
This string output provides detailed information about the decoding process, including the mode, temporal profile, and any relevant notes about the frame selection strategy and output.
recommended_index
This integer output suggests the index of the frame recommended by the Exact Frame Decode node, based on the mode-aware recommendation. It is particularly useful when using the decode_recommended strategy.
MiniMax H3 Image • Single Image Output Usage Tips:
- Utilize the
decode_recommendedstrategy for automatic selection based on mode-aware recommendations, ensuring optimal frame quality without manual intervention. - Enable
emit_candidate_batchwhen you need to analyze or compare multiple frames from the decoded batch, providing a broader perspective on the available data.
MiniMax H3 Image • Single Image Output Common Errors and Solutions:
ValueError: frames must be a non-empty ComfyUI IMAGE batch [N,H,W,C]
- Explanation: This error occurs when the input frames are not in the expected format or are empty.
- Solution: Ensure that the input frames are correctly formatted as a non-empty ComfyUI IMAGE batch with dimensions [N,H,W,C].
recommended_index was not connected, so frame 0 was used
- Explanation: This message indicates that the
recommended_indexwas not provided, leading to the default selection of frame 0. - Solution: Connect the
recommended_indexto ensure the node uses the recommended frame index for selection.
