H3 Prefix Freeze Mask (alpha):
The H3PrefixFreezeMask node is designed to manage the temporal dynamics of video processing by creating a freeze mask for video frames. This node is particularly useful in scenarios where you want to maintain the integrity of certain frames while allowing others to be regenerated or modified. It achieves this by setting the initial frames of a video sequence to a frozen state, preventing them from being re-denoised, while subsequent frames are marked for regeneration. This functionality is crucial in video processing workflows where maintaining the original texture and contrast of specific frames is necessary, such as in video editing or animation tasks. By using this node, you can ensure that the initial frames remain unchanged, preserving their original quality and appearance, while allowing for creative modifications in the rest of the video sequence.
H3 Prefix Freeze Mask (alpha) Input Parameters:
plan
The plan parameter is a string input that represents the configuration or plan for the video processing task. It is a required input that must be provided by the user. This parameter is crucial as it contains the necessary information to determine which frames should be frozen and which should be regenerated. The plan is typically a JSON string that includes details about the video frames and their handling, ensuring that the node can accurately apply the freeze mask according to the user's specifications.
dilated_length
The dilated_length parameter is an integer input that specifies the length of the dilated video clip on which the mask will be applied. It is a required input with a default value of 0, and it can range from 0 to 36000. This parameter determines the total number of frames in the dilated video sequence, influencing how the freeze mask is applied. If the dilated_length is set to 0 or a negative value, the node automatically adjusts it to match the number of frames in the video, ensuring that the mask is applied correctly across the entire sequence.
H3 Prefix Freeze Mask (alpha) Output Parameters:
mask
The mask output is a tensor that represents the freeze mask applied to the video frames. This mask is a crucial component of the node's functionality, as it dictates which frames are frozen and which are subject to regeneration. The mask is structured as a 3D tensor with dimensions corresponding to the number of frames, height, and width of the video. It is used in conjunction with other nodes to control the processing of video frames, ensuring that the desired frames remain unchanged while others can be creatively modified.
report
The report output is a string that provides a summary of the freeze mask application. It includes details about the number of frames that have been frozen and the total number of dilated frames. This report is useful for users to verify that the node has applied the mask as intended, offering insights into the processing of the video sequence. It serves as a confirmation that the node has executed its function correctly, providing transparency and clarity in the video processing workflow.
H3 Prefix Freeze Mask (alpha) Usage Tips:
- Ensure that the
planparameter is correctly formatted as a JSON string to avoid errors in mask application. - Adjust the
dilated_lengthparameter to match the desired length of your video sequence, ensuring that the mask covers the entire clip.
H3 Prefix Freeze Mask (alpha) Common Errors and Solutions:
ValueError: Invalid plan format
- Explanation: This error occurs when the
planparameter is not formatted correctly as a JSON string. - Solution: Verify that the
planinput is a valid JSON string and contains all necessary information for the node to function correctly.
ValueError: Dilated length out of range
- Explanation: This error arises when the
dilated_lengthparameter is set outside the acceptable range of 0 to 36000. - Solution: Adjust the
dilated_lengthparameter to fall within the specified range, ensuring it accurately reflects the length of your video sequence.
