ComfyUI > Nodes > ComfyUI-Image-Filters > Jitter Image

ComfyUI Node: Jitter Image

Class Name

JitterImage

Category
image/filters/jitter
Author
spacepxl (Account age: 295days)
Extension
ComfyUI-Image-Filters
Latest Updated
2024-06-22
Github Stars
0.08K

How to Install ComfyUI-Image-Filters

Install this extension via the ComfyUI Manager by searching for ComfyUI-Image-Filters
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Filters 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

Jitter Image Description

Apply jitter effect to images for dynamic, randomized transformations, adding movement and randomness for artistic enhancement.

Jitter Image:

The JitterImage node is designed to apply a jitter effect to images, creating a visually dynamic and randomized transformation. This effect can be particularly useful for adding a sense of movement or randomness to your images, which can enhance the artistic quality of your work. The node achieves this by applying a series of affine transformations to the input images, effectively shifting and distorting them in a controlled manner. The primary goal of the JitterImage node is to introduce variability and texture to images, making them more engaging and less uniform.

Jitter Image Input Parameters:

images

This parameter expects an input of type IMAGE. It represents the batch of images that you want to apply the jitter effect to. The images should be in a format that the node can process, typically a tensor with dimensions corresponding to batch size, height, width, and color channels.

jitter_scale

This parameter is a FLOAT that controls the intensity of the jitter effect. The jitter_scale determines how much the images will be shifted and distorted. A higher value results in a more pronounced jitter effect, while a lower value produces a subtler effect. The default value is 1.0, with a minimum value of 0.1 and adjustable in steps of 0.1. Adjusting this parameter allows you to fine-tune the visual impact of the jitter on your images.

Jitter Image Output Parameters:

IMAGE

The output of the JitterImage node is a transformed image tensor of type IMAGE. This tensor contains the batch of images with the jitter effect applied. The output images will have the same dimensions as the input images but will exhibit the randomized shifts and distortions introduced by the jitter effect. This output can be used directly in your artistic projects or further processed by other nodes in your workflow.

Jitter Image Usage Tips:

  • Experiment with different jitter_scale values to achieve the desired level of randomness and movement in your images. Start with the default value and gradually increase or decrease it to see how it affects the visual outcome.
  • Use the JitterImage node in combination with other image processing nodes to create complex and unique visual effects. For example, applying a blur or color adjustment after jittering can produce interesting results.
  • Consider using the jitter effect on specific parts of an image by masking areas you want to remain unaffected. This can help you maintain focus on key elements while adding dynamic textures to the background or other regions.

Jitter Image Common Errors and Solutions:

RuntimeError: Expected 4-dimensional input for 4-dimensional weight [9, 3, 3, 3], but got 3-dimensional input of size [3, 3, 3] instead

  • Explanation: This error occurs when the input image tensor does not have the expected dimensions. The JitterImage node expects a 4-dimensional tensor with dimensions corresponding to batch size, color channels, height, and width.
  • Solution: Ensure that your input images are correctly formatted as a 4-dimensional tensor. You may need to add a batch dimension if you are processing a single image.

ValueError: jitter_scale must be a positive float

  • Explanation: This error occurs when the jitter_scale parameter is set to a non-positive value, which is not allowed.
  • Solution: Set the jitter_scale parameter to a positive float value, with a minimum of 0.1. Ensure that the value is within the allowed range and adjust it in steps of 0.1.

CUDA out of memory

  • Explanation: This error occurs when the GPU runs out of memory while processing the images, which can happen with very large images or high batch sizes.
  • Solution: Reduce the batch size or the resolution of the input images to fit within the available GPU memory. Alternatively, consider using a machine with more GPU memory.

Jitter Image Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Image-Filters
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.