ComfyUI > Nodes > Comfyui CoTracker Node > XY Motion Amplifier

ComfyUI Node: XY Motion Amplifier

Class Name

XYMotionAmplifierNode

Category
tracking/utility
Author
s9roll7 (Account age: 1243days)
Extension
Comfyui CoTracker Node
Latest Updated
2025-06-24
Github Stars
0.03K

How to Install Comfyui CoTracker Node

Install this extension via the ComfyUI Manager by searching for Comfyui CoTracker Node
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyui CoTracker Node in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

XY Motion Amplifier Description

Enhances video motion by amplifying point movement across frames with adjustable factors.

XY Motion Amplifier:

The XYMotionAmplifierNode is designed to enhance the movement of points across frames in a video sequence, providing a dynamic and exaggerated motion effect. This node is particularly useful for artists and creators who want to emphasize motion in their visual projects, such as animations or video effects. By amplifying the movement of points, it allows for more dramatic transitions and can help in creating visually compelling narratives. The node works by calculating the difference in position of points between consecutive frames and then amplifying this movement based on specified amplification factors for both the X and Y directions. This process can be selectively applied using a mask, allowing for targeted amplification in specific areas of the frame. The main goal of the XYMotionAmplifierNode is to provide users with a tool to creatively manipulate motion, enhancing the storytelling potential of their visual content.

XY Motion Amplifier Input Parameters:

coordinates

The coordinates parameter represents the initial positions of points across frames that you wish to amplify. It is a list of tuples, where each tuple contains the X and Y coordinates of a point in a specific frame. This parameter is crucial as it defines the baseline movement that will be amplified.

x_positive_amp

The x_positive_amp parameter determines the amplification factor for movements in the positive X direction. A higher value will result in more pronounced movement to the right, enhancing the visual impact of rightward motion. This parameter allows you to control the extent of amplification for positive X movements.

x_negative_amp

The x_negative_amp parameter specifies the amplification factor for movements in the negative X direction. It controls how much leftward movements are amplified, allowing for dramatic effects when points move to the left. Adjusting this parameter helps in balancing the motion amplification in the X direction.

y_positive_amp

The y_positive_amp parameter sets the amplification factor for movements in the positive Y direction. This affects how much upward movements are exaggerated, providing control over the vertical motion amplification. It is essential for creating impactful upward motion effects.

y_negative_amp

The y_negative_amp parameter defines the amplification factor for movements in the negative Y direction. It influences the extent to which downward movements are amplified, enabling you to create dramatic downward motion effects. This parameter is key for balancing vertical motion amplification.

mask

The mask parameter is an optional input that allows you to specify areas of the frame where amplification should occur. It is a binary mask where non-zero values indicate regions to be amplified. This parameter is useful for targeting specific areas for motion enhancement, providing greater control over the amplification process.

images_for_marker

The images_for_marker parameter is an optional input that can be used to provide additional context or reference images for the amplification process. While not directly affecting the amplification, it can be useful for aligning or referencing points during the process.

XY Motion Amplifier Output Parameters:

amplified_point_frames

The amplified_point_frames output parameter provides the new positions of points after amplification. It is a list of tuples, where each tuple contains the amplified X and Y coordinates of a point in a specific frame. This output is crucial as it represents the enhanced motion effect applied to the original points, allowing you to visualize and utilize the amplified motion in your projects.

XY Motion Amplifier Usage Tips:

  • To achieve a balanced amplification effect, carefully adjust the x_positive_amp, x_negative_amp, y_positive_amp, and y_negative_amp parameters based on the desired direction of motion enhancement.
  • Use the mask parameter to selectively amplify motion in specific areas of the frame, allowing for targeted effects and avoiding unwanted amplification in other regions.

XY Motion Amplifier Common Errors and Solutions:

IndexError: list index out of range

  • Explanation: This error may occur if the coordinates list is empty or if there is a mismatch in the number of frames and the length of the coordinates list.
  • Solution: Ensure that the coordinates list is properly populated with tuples for each frame and that it matches the expected number of frames.

ValueError: invalid mask dimensions

  • Explanation: This error can happen if the mask dimensions do not match the frame dimensions or if the mask is not properly formatted.
  • Solution: Verify that the mask is correctly sized to match the frame dimensions and that it is a binary mask with appropriate values.

XY Motion Amplifier Related Nodes

Go back to the extension to check out more related nodes.
Comfyui CoTracker Node
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

XY Motion Amplifier