ComfyUI  >  Nodes  >  Bmad Nodes >  Remap

ComfyUI Node: Remap

Class Name

Remap

Category
Bmad/CV/Transform
Author
bmad4ever (Account age: 3591 days)
Extension
Bmad Nodes
Latest Updated
8/2/2024
Github Stars
0.1K

How to Install Bmad Nodes

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

Remap Description

Transform images by remapping pixel coordinates with versatile geometric functions for creative visual effects.

Remap:

The Remap node is designed to transform images by remapping their pixel coordinates based on various transformation functions. This node is highly versatile, allowing you to apply complex geometric transformations such as warping, stretching, and distorting images. The primary benefit of using the Remap node is its ability to manipulate images in creative ways, enabling you to achieve unique visual effects that can enhance your AI-generated art. Whether you want to create a fisheye effect, simulate a cylindrical projection, or apply custom distortions, the Remap node provides the necessary tools to achieve these transformations seamlessly.

Remap Input Parameters:

max_radius

This parameter defines the maximum radius for the remapping transformation. It controls the extent to which the image will be affected by the transformation. The larger the radius, the more pronounced the effect will be. This parameter is crucial for determining the overall impact of the remap on the image.

radius_adjust

This parameter allows you to adjust the radius dynamically. It provides finer control over the transformation, enabling you to fine-tune the effect to achieve the desired visual outcome. Adjusting this parameter can help you create more subtle or more dramatic transformations.

center_x_adjust

This parameter adjusts the x-coordinate of the center point around which the transformation is applied. By modifying this value, you can shift the focal point of the transformation horizontally, allowing for more precise control over the remap effect.

center_y_adjust

Similar to center_x_adjust, this parameter adjusts the y-coordinate of the center point. It enables you to shift the focal point vertically, providing additional control over the transformation's application.

log

This boolean parameter determines whether a logarithmic scale is applied to the transformation. Enabling this option can create unique visual effects by altering the way the transformation is applied across the image.

inverse

This boolean parameter specifies whether the transformation should be applied in reverse. Enabling this option can invert the effect, creating a different visual outcome that can be useful for specific artistic purposes.

crop

This boolean parameter controls whether the transformed image should be cropped to fit within the original dimensions. Enabling this option ensures that the output image remains within the bounds of the original image size, preventing any parts of the image from being cut off.

Remap Output Parameters:

REMAP

The output of the Remap node is a transformed image that has been remapped according to the specified parameters. This output can be used in subsequent nodes to further process or display the transformed image. The REMAP output is essential for visualizing the effects of the remap transformation and integrating it into your AI art workflow.

Remap Usage Tips:

  • Experiment with different combinations of max_radius and radius_adjust to achieve various levels of transformation intensity.
  • Use center_x_adjust and center_y_adjust to precisely control the focal point of the transformation, allowing for targeted effects.
  • Enable the log parameter to explore unique visual effects that result from applying a logarithmic scale to the transformation.
  • Utilize the inverse parameter to create reverse transformations, which can add an interesting twist to your images.
  • Ensure the crop parameter is enabled if you want to maintain the original image dimensions and avoid any parts being cut off.

Remap Common Errors and Solutions:

"Invalid radius value"

  • Explanation: The max_radius or radius_adjust parameter is set to an invalid value.
  • Solution: Ensure that the radius values are within a reasonable range and are not negative or excessively large.

"Center point out of bounds"

  • Explanation: The center_x_adjust or center_y_adjust parameter is set to a value that places the center point outside the image bounds.
  • Solution: Adjust the center_x_adjust and center_y_adjust parameters to ensure the center point remains within the image dimensions.

"Logarithmic scale error"

  • Explanation: The log parameter is enabled, but the transformation does not support logarithmic scaling.
  • Solution: Disable the log parameter or choose a transformation that supports logarithmic scaling.

"Inverse transformation not supported"

  • Explanation: The inverse parameter is enabled, but the transformation does not support inverse application.
  • Solution: Disable the inverse parameter or select a transformation that supports inverse application.

"Cropping error"

  • Explanation: The crop parameter is enabled, but the transformed image exceeds the original dimensions.
  • Solution: Ensure the transformation parameters are set in a way that the output image fits within the original dimensions, or disable the crop parameter if cropping is not required.

Remap Related Nodes

Go back to the extension to check out more related nodes.
Bmad Nodes
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.