Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance masks with optical flow data for dynamic effects like smearing and modulation, offering flexibility for artists.
The OpticalFlowMaskModulation
node is designed to enhance and manipulate masks using optical flow data between frames. This node leverages the motion information captured by optical flow to create dynamic and visually appealing effects on masks, such as smearing and modulation. By applying various techniques like blurring, decay, and modulation strength adjustments, it allows you to create intricate and fluid mask transitions that can add a unique touch to your AI-generated art. The primary goal of this node is to provide a flexible and powerful tool for artists to experiment with motion-based mask effects, making it easier to achieve complex visual results without needing deep technical knowledge.
This parameter represents the input masks that will be modulated using optical flow data. The masks should be provided as a sequence of frames, where each frame corresponds to a mask at a specific time point.
This parameter represents the sequence of images corresponding to the masks. The optical flow will be calculated between these images to determine the motion information used for mask modulation.
This parameter controls the overall intensity of the modulation effect. A higher strength value will result in more pronounced modulation, while a lower value will produce subtler effects. The value typically ranges from 0 to 1.
This parameter specifies the method used to calculate the optical flow between frames. Different methods may produce varying results, so you can experiment with different options to find the one that best suits your needs.
This parameter sets a threshold for the optical flow magnitude. Only flow values above this threshold will be considered for modulation, allowing you to filter out minor movements and focus on more significant motion.
This parameter sets a threshold for the flow magnitude used in the modulation process. It helps in controlling the influence of the flow magnitude on the mask modulation.
This parameter controls the strength of the modulation effect applied to the mask based on the optical flow magnitude. Higher values will result in stronger modulation effects.
This parameter specifies the radius of the blur applied to the flow magnitude. Blurring can help smooth out the modulation effect, creating a more cohesive and visually pleasing result. The value typically ranges from 0 to a positive integer.
This parameter determines the length of the trail buffer used to create smear effects. A longer trail length will result in more extended smear effects, while a shorter length will produce more immediate effects.
This parameter controls the rate at which the smear effect decays over time. A higher decay factor will result in a faster decay, while a lower factor will produce a more persistent smear effect.
This parameter specifies the style of decay applied to the smear effect. Options include "fade" for a gradual fading effect and "thickness" for a decay based on the thickness of the smear.
This parameter sets the maximum thickness of the smear effect when using the "thickness" decay style. It helps in controlling the visual appearance of the smear effect.
This parameter represents the output mask after applying the optical flow modulation. The modulated mask incorporates the dynamic effects created by the optical flow data, resulting in a visually enhanced and fluid mask transition.
flow_method
options to find the one that produces the most visually appealing results for your specific use case.strength
and modulation_strength
parameters to fine-tune the intensity of the modulation effect, balancing between subtle and pronounced effects.blur_radius
parameter to smooth out the modulation effect, especially when dealing with high-frequency motion data.trail_length
and decay_factor
parameters to create different types of smear effects, from short and immediate to long and persistent trails.flow_method
parameter was set to an unsupported value.flow_method
parameter is set to a valid option supported by the node.masks
and images
sequences do not match.masks
and images
sequences have the same number of frames.blur_radius
parameter was set to a negative value.blur_radius
parameter to a non-negative integer.trail_length
parameter was set to a non-positive value.trail_length
parameter is set to a positive integer.decay_factor
parameter was set outside the valid range.decay_factor
parameter to a value between 0 and 1.© Copyright 2024 RunComfy. All Rights Reserved.