ComfyUI  >  Nodes  >  Mikey Nodes >  Ratio Advanced (Mikey)

ComfyUI Node: Ratio Advanced (Mikey)

Class Name

Ratio Advanced

Category
Mikey/Utils
Author
bash-j (Account age: 4196 days)
Extension
Mikey Nodes
Latest Updated
6/15/2024
Github Stars
0.1K

How to Install Mikey Nodes

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

Ratio Advanced (Mikey) Description

Advanced ratio management for AI artists, offering customizable aspect ratios for latent spaces and image generation workflows.

Ratio Advanced (Mikey):

The Ratio Advanced node is designed to provide advanced ratio management capabilities for AI artists working with latent spaces and image generation. This node allows you to select and customize various aspect ratios for different stages of your workflow, including latent ratios, CTE (Content Transformation Engine) ratios, and target ratios. By offering a range of preset ratios and the ability to define custom ratios, the Ratio Advanced node ensures flexibility and precision in managing the dimensions of your generated content. This node is particularly useful for tasks that require specific aspect ratios or transformations, enabling you to achieve the desired output with greater control and accuracy.

Ratio Advanced (Mikey) Input Parameters:

preset

This parameter allows you to select from a list of predefined ratio presets. The available options include various aspect ratios that can be used directly without further customization. The default value is "none".

swap_axis

This parameter lets you choose whether to swap the width and height axes. The options are "true" or "false", with the default value being "false".

select_latent_ratio

This parameter allows you to select a predefined latent ratio from the list of available ratios. If "custom" is selected, you can define your own width and height using the custom_latent_w and custom_latent_h parameters. The default value is the first ratio in the list.

custom_latent_w

This parameter specifies the custom width for the latent ratio if "custom" is selected in select_latent_ratio. The value ranges from 0 to 8192, with a default of 0.

custom_latent_h

This parameter specifies the custom height for the latent ratio if "custom" is selected in select_latent_ratio. The value ranges from 0 to 8192, with a default of 0.

select_cte_ratio

This parameter allows you to select a predefined CTE ratio from the list of available ratios. If "custom" is selected, you can define your own width and height using the cte_w and cte_h parameters. The default value is the first ratio in the list.

cte_w

This parameter specifies the custom width for the CTE ratio if "custom" is selected in select_cte_ratio. The value ranges from 0 to 8192, with a default of 0.

cte_h

This parameter specifies the custom height for the CTE ratio if "custom" is selected in select_cte_ratio. The value ranges from 0 to 8192, with a default of 0.

cte_mult

This parameter allows you to multiply the CTE dimensions by a specified factor. The value ranges from 0.0 to 100.0, with a default of 0.0.

cte_res

This parameter allows you to set a specific resolution for the CTE dimensions. The value ranges from 0 to 8192, with a default of 0.

cte_fit_size

This parameter allows you to fit the CTE dimensions to a specific size. The value ranges from 0 to 8192, with a default of 0.

select_target_ratio

This parameter allows you to select a predefined target ratio from the list of available ratios. If "custom" is selected, you can define your own width and height using the target_w and target_h parameters. The default value is the first ratio in the list.

target_w

This parameter specifies the custom width for the target ratio if "custom" is selected in select_target_ratio. The value ranges from 0 to 8192, with a default of 0.

target_h

This parameter specifies the custom height for the target ratio if "custom" is selected in select_target_ratio. The value ranges from 0 to 8192, with a default of 0.

target_mult

This parameter allows you to multiply the target dimensions by a specified factor. The value ranges from 0.0 to 100.0, with a default of 0.0.

Ratio Advanced (Mikey) Output Parameters:

samples

The output parameter samples contains the generated latent space samples based on the specified ratios and dimensions. This output is crucial for further processing and image generation tasks, providing the foundational data required for creating AI-generated content.

Ratio Advanced (Mikey) Usage Tips:

  • Utilize the preset parameter to quickly apply common aspect ratios without needing to manually input dimensions.
  • When working with custom ratios, ensure that the custom_latent_w and custom_latent_h parameters are set correctly to avoid unexpected results.
  • Use the cte_mult parameter to easily scale your CTE dimensions, which can be particularly useful for maintaining aspect ratios while resizing.
  • Experiment with the swap_axis parameter to see how different orientations affect your output, especially when working with non-square aspect ratios.

Ratio Advanced (Mikey) Common Errors and Solutions:

"Invalid ratio selected"

  • Explanation: This error occurs when a ratio that is not in the predefined list is selected.
  • Solution: Ensure that the selected ratio is either a valid preset or correctly defined as a custom ratio.

"Custom dimensions out of range"

  • Explanation: This error occurs when the custom width or height exceeds the allowed range.
  • Solution: Verify that the custom_latent_w and custom_latent_h values are within the range of 0 to 8192.

"CTE multiplier out of range"

  • Explanation: This error occurs when the cte_mult value is set outside the allowed range.
  • Solution: Adjust the cte_mult value to be within the range of 0.0 to 100.0.

"Target multiplier out of range"

  • Explanation: This error occurs when the target_mult value is set outside the allowed range.
  • Solution: Adjust the target_mult value to be within the range of 0.0 to 100.0.

Ratio Advanced (Mikey) Related Nodes

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