ComfyUI > Nodes > SDXL_sizing > sizing for SDXL (int/float inputs)

ComfyUI Node: sizing for SDXL (int/float inputs)

Class Name

sizing_node_unparsed

Category
sizing
Author
Ser-Hilary (Account age: 1030days)
Extension
SDXL_sizing
Latest Updated
2024-05-23
Github Stars
0.03K

How to Install SDXL_sizing

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

sizing for SDXL (int/float inputs) Description

The `sizing_node_unparsed` node enables precise image sizing for SDXL, handling dimensions and aspect ratios.

sizing for SDXL (int/float inputs):

The sizing_node_unparsed is a specialized node designed to handle sizing operations for SDXL, focusing on scenarios where input parameters are provided as integers or floats. This node is particularly useful for AI artists who need precise control over image dimensions and aspect ratios during the generation process. By leveraging the get_sizes_unparsed method, it allows for dynamic calculation of target sizes based on various input parameters such as generation size, native resolution, and aspect ratio. The node is adept at managing complex sizing requirements, including cropping and downscaling, to ensure that the final output meets specific artistic or technical criteria. Its primary goal is to facilitate the seamless integration of size adjustments into the creative workflow, enhancing the flexibility and precision of image generation tasks.

sizing for SDXL (int/float inputs) Input Parameters:

gen_size_w

This parameter specifies the desired width for the generated image. It allows you to define the target width in pixels, providing control over the horizontal dimension of the output. The minimum value is -1, which indicates no specific width constraint, while the maximum is 100,000 pixels. The default value is -1, meaning the width is not explicitly set unless specified.

gen_size_h

Similar to gen_size_w, this parameter defines the desired height for the generated image. It controls the vertical dimension, allowing you to set the target height in pixels. The minimum value is -1, indicating no specific height constraint, and the maximum is 100,000 pixels. The default value is -1, meaning the height is not explicitly set unless specified.

native_res

This parameter represents the native resolution of the image, typically used as a reference point for scaling operations. It is an integer value with a minimum of 0 and a maximum of 100,000 pixels. The default value is 1024 pixels, which is a common resolution for many image processing tasks.

aspect

The aspect parameter defines the aspect ratio of the image, which is the ratio of width to height. It is a float value that allows for precise control over the image's proportions. The minimum value is -1.0, and the maximum is 20.0, with a default of 1.0, representing a square aspect ratio.

original_res_w

This parameter specifies the original width of the image before any processing or resizing. It is an integer value with a minimum of -1 and a maximum of 100,000 pixels. The default value is 1024 pixels, which is a standard starting point for many image operations.

original_res_h

Similar to original_res_w, this parameter defines the original height of the image. It is an integer value with a minimum of -1 and a maximum of 100,000 pixels. The default value is 1024 pixels, providing a baseline for height adjustments.

crop_extra

The crop_extra parameter allows for additional cropping beyond the calculated dimensions. It is a float value ranging from 0.0 to 1.0, with a default of 0.0. This parameter is useful for fine-tuning the cropping process, enabling you to remove unwanted areas from the image.

sizing for SDXL (int/float inputs) Output Parameters:

width

This output parameter represents the final calculated width of the image after processing. It reflects the adjustments made based on the input parameters and is crucial for understanding the horizontal dimension of the output.

height

The height parameter indicates the final calculated height of the image. It provides insight into the vertical dimension after all sizing operations have been applied, ensuring the output meets the desired specifications.

target_width

This parameter shows the target width that was aimed for during the sizing process. It is useful for verifying that the intended width was achieved or understanding any deviations.

target_height

Similar to target_width, this parameter displays the target height that was set during the sizing process. It helps in assessing whether the desired height was reached or if adjustments were necessary.

crop_w

The crop_w parameter indicates the width of the cropped area, providing information on how much of the original width was removed during processing.

crop_h

This parameter shows the height of the cropped area, detailing the extent of vertical cropping applied to the original image.

downscale

The downscale parameter reflects the factor by which the image was reduced in size. It is important for understanding the level of downscaling applied to achieve the final output dimensions.

sizing for SDXL (int/float inputs) Usage Tips:

  • To achieve precise control over image dimensions, ensure that gen_size_w and gen_size_h are set to specific values rather than relying on defaults.
  • Utilize the crop_extra parameter to fine-tune the cropping process, especially when dealing with images that require specific focus areas.

sizing for SDXL (int/float inputs) Common Errors and Solutions:

Invalid extra arguments, skipping.

  • Explanation: This error occurs when additional arguments provided to the node are not recognized or improperly formatted.
  • Solution: Double-check the extra arguments for typos or unsupported options. Ensure that all arguments are correctly formatted and supported by the node.

sizing for SDXL (int/float inputs) Related Nodes

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

sizing for SDXL (int/float inputs)