Wan 4-Frame Reference:
The WanFourFrameReferenceUltimate node is designed to enhance video generation by utilizing a four-frame reference system. This node is part of the Wan Video Reference Nodes suite, which provides multi-frame reference conditioning for the Wan2.2 A14B I2V models. The primary purpose of this node is to allow users to select four specific frames from a sequence, which are then used as reference points to guide the video generation process. This approach offers a more comprehensive and nuanced reference compared to single or three-frame systems, enabling more accurate and contextually rich video outputs. By adjusting the placement of these frames, users can fine-tune the influence of each frame on the final video, making it a powerful tool for creating videos with specific visual narratives or styles.
Wan 4-Frame Reference Input Parameters:
frame_2_ratio
The frame_2_ratio parameter determines the relative position of the second frame within the sequence. It is expressed as a ratio of the total number of frames, allowing for flexible placement. This parameter impacts how early or late in the sequence the second frame is selected, influencing the transition and continuity between the first and second frames. The value should be between 0 and 1, with a default value typically set to provide a balanced distribution.
frame_3_ratio
Similar to frame_2_ratio, the frame_3_ratio parameter specifies the relative position of the third frame. Adjusting this ratio allows users to control the spacing between the second and third frames, which can affect the pacing and flow of the video. The value should also be between 0 and 1, ensuring that the third frame is appropriately positioned within the sequence.
frame_4_idx_raw
The frame_4_idx_raw parameter is used to determine the position of the fourth frame, typically set to the last frame in the sequence. This parameter ensures that the final frame is included as a reference, providing closure and context to the video. The value is usually set to the total number of frames minus one, ensuring it is the last frame.
Wan 4-Frame Reference Output Parameters:
aligned_pixel_idx
The aligned_pixel_idx output provides the pixel index of each selected frame after alignment. This index is crucial for understanding the exact position of each reference frame within the sequence, ensuring that the frames are correctly spaced and aligned according to the specified ratios.
latent_idx
The latent_idx output gives the latent index of each selected frame, which is used internally to process and generate the video. This index is important for the node's execution, as it determines how the frames are processed and integrated into the final video output.
Wan 4-Frame Reference Usage Tips:
- To achieve a smooth transition between frames, ensure that the
frame_2_ratioandframe_3_ratioare set to values that evenly distribute the frames across the sequence. - Experiment with different
frame_2_ratioandframe_3_ratiosettings to find the optimal balance for your specific video narrative or style.
Wan 4-Frame Reference Common Errors and Solutions:
"Index out of range"
- Explanation: This error occurs when the calculated frame index exceeds the total number of frames available in the sequence.
- Solution: Ensure that the
frame_2_ratioandframe_3_ratiovalues are set within the valid range (0 to 1) and that they do not result in indices that exceed the sequence length.
"Invalid frame ratio"
- Explanation: This error is triggered when the frame ratio parameters are set to values outside the acceptable range.
- Solution: Double-check that all ratio parameters are between 0 and 1, and adjust them accordingly to fit within the valid range.
