ComfyUI > Nodes > RES4LYF > ModelSamplingAdvancedResolution

ComfyUI Node: ModelSamplingAdvancedResolution

Class Name

ModelSamplingAdvancedResolution

Category
model_shift
Author
ClownsharkBatwing (Account age: 287days)
Extension
RES4LYF
Latest Updated
2025-03-08
Github Stars
0.09K

How to Install RES4LYF

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

ModelSamplingAdvancedResolution Description

Enhance AI model resolution handling with shift parameter for precise outputs.

ModelSamplingAdvancedResolution:

The ModelSamplingAdvancedResolution node is designed to enhance the resolution handling capabilities of AI models by allowing users to set a "shift" parameter using either exponential or linear scaling methods. This node is particularly beneficial for models like SD3.5M and Flux, which default to exponential scaling, and SD3.5L and SD3 2B beta, which use linear scaling. By adjusting the shift parameter, you can fine-tune the model's resolution processing, leading to more precise and tailored outputs. This node is essential for AI artists who wish to optimize their models' performance in generating high-resolution images, ensuring that the scaling method aligns with the specific requirements of their project.

ModelSamplingAdvancedResolution Input Parameters:

model

The model parameter represents the AI model that you wish to apply the advanced resolution sampling to. It is a required input and serves as the base upon which the resolution adjustments will be made. This parameter is crucial as it determines the initial configuration and capabilities of the model before any modifications are applied.

max_shift

The max_shift parameter defines the upper limit of the shift value that can be applied to the model's resolution. It has a default value of 1.15, with a minimum of 0.0 and a maximum of 100.0. This parameter is adjustable in increments of 0.01. By setting the max_shift, you control the extent to which the model's resolution can be increased, allowing for finer details in the output.

base_shift

The base_shift parameter sets the starting point for the shift value, with a default of 0.5, a minimum of 0.0, and a maximum of 100.0. Like max_shift, it is adjustable in increments of 0.01. This parameter is essential for establishing the baseline resolution adjustment, ensuring that the model's output begins with a consistent level of detail.

width

The width parameter specifies the width of the output image in pixels. It has a default value of 1024, with a minimum of 16 and a maximum determined by the node's maximum resolution capability. The width is adjustable in steps of 8 pixels. This parameter is vital for defining the horizontal dimension of the output, impacting the overall aspect ratio and detail level.

height

The height parameter determines the height of the output image in pixels, with a default value of 1024, a minimum of 16, and a maximum set by the node's maximum resolution capability. Like the width, it is adjustable in steps of 8 pixels. This parameter is crucial for setting the vertical dimension of the output, affecting the aspect ratio and the amount of vertical detail.

ModelSamplingAdvancedResolution Output Parameters:

model

The output model parameter represents the modified AI model after the advanced resolution sampling has been applied. This output is crucial as it reflects the changes made to the model's resolution handling capabilities, allowing for improved image generation with the specified shift and scaling adjustments.

ModelSamplingAdvancedResolution Usage Tips:

  • Experiment with different max_shift and base_shift values to find the optimal balance between detail and performance for your specific model and project requirements.
  • Adjust the width and height parameters to match the desired output resolution, keeping in mind the aspect ratio and the level of detail you wish to achieve.

ModelSamplingAdvancedResolution Common Errors and Solutions:

"Invalid shift value"

  • Explanation: This error occurs when the shift value calculated from max_shift and base_shift exceeds the allowable range.
  • Solution: Ensure that the max_shift and base_shift values are set within the specified limits and adjust them to maintain a valid shift range.

"Resolution exceeds maximum limit"

  • Explanation: This error is triggered when the specified width or height exceeds the node's maximum resolution capability.
  • Solution: Reduce the width and height values to fall within the permissible range, ensuring they do not surpass the maximum resolution limit.

ModelSamplingAdvancedResolution Related Nodes

Go back to the extension to check out more related nodes.
RES4LYF
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 Playground, enabling artists to harness the latest AI tools to create incredible art.