ComfyUI > Nodes > SaltAI_AudioViz > Scheduled Image Displacement

ComfyUI Node: Scheduled Image Displacement

Class Name

SaltScheduledImageDisplacement

Category
SALT/AudioViz/Scheduling/Image
Author
SaltAI (Account age: 146days)
Extension
SaltAI_AudioViz
Latest Updated
2024-06-29
Github Stars
0.01K

How to Install SaltAI_AudioViz

Install this extension via the ComfyUI Manager by searching for SaltAI_AudioViz
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter SaltAI_AudioViz 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Scheduled Image Displacement Description

Apply scheduled displacement effects to batch of images using displacement map for dynamic visual transformations.

Scheduled Image Displacement:

SaltScheduledImageDisplacement is a powerful node designed to apply scheduled displacement effects to a batch of images. This node allows you to manipulate images by displacing their pixels based on a displacement map, with the displacement intensity and direction controlled by scheduled amplitude and angle values. This functionality is particularly useful for creating dynamic visual effects that evolve over time, such as simulating waves, distortions, or other complex transformations. By leveraging this node, you can achieve intricate and visually appealing results that enhance the artistic quality of your projects.

Scheduled Image Displacement Input Parameters:

images

This parameter represents the batch of images to which the displacement effect will be applied. The images should be in a tensor format with dimensions corresponding to batch size, height, width, and channels. The quality and resolution of the input images directly impact the final output.

displacement_images

This parameter is the batch of displacement maps used to determine how the pixels in the input images will be displaced. Each displacement map should match the dimensions of the corresponding input image. The displacement maps guide the direction and magnitude of pixel shifts, creating the desired visual effect.

amplitude_schedule

This optional parameter is a list or tensor of amplitude values that control the intensity of the displacement effect for each image in the batch. If not provided or if the list is shorter than the batch size, a default amplitude of 0 will be used for the remaining images. The amplitude values determine how far the pixels are displaced, with higher values resulting in more pronounced effects.

angle_schedule

This optional parameter is a list or tensor of angle values that specify the direction of the displacement effect for each image in the batch. If not provided or if the list is shorter than the batch size, a default angle of 0 will be used for the remaining images. The angle values are measured in degrees and dictate the direction in which the pixels are shifted.

Scheduled Image Displacement Output Parameters:

displaced_images

This output parameter is the batch of images that have been processed with the displacement effect. Each image in the batch is displaced according to the corresponding displacement map, amplitude, and angle values. The resulting images exhibit the visual transformations specified by the input parameters, providing a dynamic and artistic effect.

Scheduled Image Displacement Usage Tips:

  • To achieve smooth and continuous displacement effects, ensure that the amplitude and angle schedules are carefully crafted and gradually change over time.
  • Experiment with different displacement maps to create unique and varied visual effects. Combining multiple displacement maps can lead to more complex and interesting results.
  • Use higher amplitude values for more dramatic effects, but be cautious as excessively high values may distort the image beyond recognition.

Scheduled Image Displacement Common Errors and Solutions:

"Input images and displacement images must have the same dimensions"

  • Explanation: This error occurs when the dimensions of the input images and the displacement images do not match.
  • Solution: Ensure that each displacement image has the same height and width as the corresponding input image. Resize the displacement images if necessary.

"Amplitude schedule length is shorter than batch size"

  • Explanation: This error occurs when the amplitude schedule provided is shorter than the number of images in the batch.
  • Solution: Provide an amplitude schedule with a length equal to or greater than the batch size, or ensure that the default amplitude value is acceptable for the remaining images.

"Angle schedule length is shorter than batch size"

  • Explanation: This error occurs when the angle schedule provided is shorter than the number of images in the batch.
  • Solution: Provide an angle schedule with a length equal to or greater than the batch size, or ensure that the default angle value is acceptable for the remaining images.

Scheduled Image Displacement Related Nodes

Go back to the extension to check out more related nodes.
SaltAI_AudioViz
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.