ComfyUI  >  Nodes  >  Comfyroll Studio >  🔳 CR SD1.5 Aspect Ratio

ComfyUI Node: 🔳 CR SD1.5 Aspect Ratio

Class Name

CR SD1.5 Aspect Ratio

Category
🧩 Comfyroll Studio/✨ Essential/🔳 Aspect Ratio
Author
Suzie1 (Account age: 2158 days)
Extension
Comfyroll Studio
Latest Updated
6/5/2024
Github Stars
0.5K

How to Install Comfyroll Studio

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

🔳 CR SD1.5 Aspect Ratio Description

Automate aspect ratio adjustments for images to fit standard dimensions, ideal for Stable Diffusion 1.5 models.

🔳 CR SD1.5 Aspect Ratio:

The CR SD1.5 Aspect Ratio node is designed to help you easily adjust the aspect ratio of your images to fit various standard dimensions, particularly for Stable Diffusion 1.5 models. This node simplifies the process of resizing images to common aspect ratios used in different contexts, such as portrait, landscape, square, and cinema formats. By automating the aspect ratio adjustments, it ensures that your images maintain their intended composition and visual appeal across different display formats. This node is particularly useful for AI artists who need to generate images that conform to specific aspect ratios without manually calculating and resizing each image.

🔳 CR SD1.5 Aspect Ratio Input Parameters:

width

The initial width of the image before any aspect ratio adjustments. This parameter sets the base width for the image and is used in conjunction with the height to determine the initial dimensions. The width value will be overridden by the selected aspect ratio.

height

The initial height of the image before any aspect ratio adjustments. This parameter sets the base height for the image and is used in conjunction with the width to determine the initial dimensions. The height value will be overridden by the selected aspect ratio.

aspect_ratio

The desired aspect ratio for the image. This parameter allows you to choose from a list of predefined aspect ratios such as "2:3 portrait 512x768", "3:2 landscape 768x512", "1:1 square 512x512", "1:1 square 1024x1024", "16:9 cinema 910x512", "3:4 portrait 512x682", "4:3 landscape 682x512", "1.85:1 cinema 952x512", "2:1 cinema 1024x512", and "2.39:1 anamorphic 1224x512". Selecting an aspect ratio will automatically adjust the width and height to match the chosen format.

swap_dimensions

A toggle option to swap the width and height dimensions. When set to "On", this parameter will interchange the width and height values, effectively rotating the image by 90 degrees. This is useful for quickly switching between portrait and landscape orientations.

upscale_factor

The factor by which the image dimensions should be upscaled. This parameter allows you to increase the size of the image while maintaining the selected aspect ratio. The upscale factor is applied after the aspect ratio adjustment.

prescale_factor

The factor by which the image dimensions should be prescaled before any other adjustments. This parameter allows you to scale the image dimensions up or down before applying the aspect ratio and upscale factor. It is useful for fine-tuning the initial size of the image.

batch_size

The number of images to process in a single batch. This parameter sets the batch size for the node, allowing you to process multiple images simultaneously. The batch size is particularly useful for generating a series of images with the same aspect ratio settings.

🔳 CR SD1.5 Aspect Ratio Output Parameters:

width

The final width of the image after aspect ratio adjustments. This output parameter provides the adjusted width based on the selected aspect ratio and any additional scaling factors.

height

The final height of the image after aspect ratio adjustments. This output parameter provides the adjusted height based on the selected aspect ratio and any additional scaling factors.

upscale_factor

The applied upscale factor for the image. This output parameter confirms the upscale factor used in the final image dimensions.

batch_size

The number of images processed in the batch. This output parameter confirms the batch size used during the processing.

samples

A tensor representing the latent space of the processed images. This output parameter provides the latent representation of the images, which can be used for further processing or analysis.

show_help

A URL link to the help documentation for the node. This output parameter provides a direct link to the online help resources, offering additional guidance and information on using the node effectively.

🔳 CR SD1.5 Aspect Ratio Usage Tips:

  • Use the aspect_ratio parameter to quickly switch between common aspect ratios without manually calculating dimensions.
  • Enable the swap_dimensions option to easily toggle between portrait and landscape orientations.
  • Adjust the upscale_factor to increase the size of your images while maintaining the selected aspect ratio.
  • Utilize the batch_size parameter to process multiple images at once, saving time and effort.

🔳 CR SD1.5 Aspect Ratio Common Errors and Solutions:

"Invalid aspect ratio selected"

  • Explanation: The chosen aspect ratio is not recognized by the node.
  • Solution: Ensure that you select a valid aspect ratio from the predefined list provided in the node's parameters.

"Width and height must be positive integers"

  • Explanation: The width or height values are not set to positive integers.
  • Solution: Verify that the initial width and height parameters are set to positive integer values before processing.

"Batch size must be a positive integer"

  • Explanation: The batch size parameter is not set to a positive integer.
  • Solution: Ensure that the batch size is a positive integer to process the images correctly.

"Upscale factor must be a positive number"

  • Explanation: The upscale factor is not set to a positive number.
  • Solution: Check that the upscale factor is a positive number to apply the scaling correctly.

🔳 CR SD1.5 Aspect Ratio Related Nodes

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