ComfyUI > Nodes > ComfyUI-FlowMatching-Upscaler > Flow Matching Stage

ComfyUI Node: Flow Matching Stage

Class Name

FlowMatchingStage

Category
latent/upscaling
Author
ttulttul (Account age: 5304days)
Extension
ComfyUI-FlowMatching-Upscaler
Latest Updated
2025-12-18
Github Stars
0.05K

How to Install ComfyUI-FlowMatching-Upscaler

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

Flow Matching Stage Description

Manages progressive upscaling stages to enhance image resolution with detailed logging.

Flow Matching Stage:

The FlowMatchingStage is a component within the Flow Matching Progressive Upscaler system, designed to enhance image resolution through a series of progressive stages. This node is responsible for managing individual stages of the upscaling process, which can include both progressive and cleanup stages. Each stage applies specific transformations to the latent image data, such as scaling and noise adjustments, to incrementally improve image quality. The node logs detailed information about each stage, including scale factors, noise levels, and processing steps, ensuring transparency and traceability in the upscaling process. By breaking down the upscaling into manageable stages, the FlowMatchingStage allows for fine-tuned control over the image enhancement process, making it a valuable tool for AI artists seeking to improve image resolution with precision.

Flow Matching Stage Input Parameters:

stage_configs

The stage_configs parameter is a list of configurations for each stage in the upscaling process. Each configuration includes details such as whether the stage is a cleanup stage, the noise level, denoise factor, scale factor, and the number of steps to be executed. This parameter is crucial as it dictates the behavior and sequence of operations performed during the upscaling process. The configurations allow for customization of each stage, enabling users to tailor the upscaling process to their specific needs and desired outcomes.

current_latent

The current_latent parameter represents the current state of the latent image data that is being processed. It is a multi-dimensional tensor that holds the image data in a compressed form, which will be progressively upscaled through the stages. This parameter is essential as it serves as the input data that undergoes transformations during each stage, ultimately resulting in a higher-resolution image.

upscale_method

The upscale_method parameter specifies the method used for upscaling the latent image data. This could involve different algorithms or techniques for enlarging the image while maintaining or enhancing its quality. The choice of method can significantly impact the final output, as different methods may prioritize different aspects of image quality, such as sharpness or smoothness.

Flow Matching Stage Output Parameters:

upscaled

The upscaled parameter is the output of the FlowMatchingStage, representing the latent image data after it has been processed and upscaled in the current stage. This output is a refined version of the input latent data, with improved resolution and quality. The upscaled parameter is crucial as it serves as the input for subsequent stages or as the final output if it is the last stage in the process.

skip_reference

The skip_reference parameter is a reference to the upscaled latent data, used for comparison or further processing in subsequent stages. It helps in maintaining consistency and ensuring that the transformations applied in each stage are correctly aligned with the intended upscaling process. This parameter is important for tracking the progress and effectiveness of the upscaling operations across different stages.

Flow Matching Stage Usage Tips:

  • Customize the stage_configs to suit your specific image enhancement needs. Adjust the noise levels and scale factors to achieve the desired balance between image sharpness and smoothness.
  • Experiment with different upscale_method options to find the one that best preserves the details and quality of your images. Some methods may work better for certain types of images or artistic styles.
  • Monitor the logs generated by the node to understand the impact of each stage on the image quality. This can help in fine-tuning the configurations for optimal results.

Flow Matching Stage Common Errors and Solutions:

"KeyError: 'noise_mask'"

  • Explanation: This error occurs when the noise_mask key is missing from the latent data dictionary. The node expects this key to be present for processing.
  • Solution: Ensure that the noise_mask is included in the latent data dictionary before passing it to the node. This can be done by initializing the noise_mask with appropriate values.

"Invalid scale factor"

  • Explanation: This error indicates that the scale factor provided in the stage_configs is not valid, possibly due to being out of the acceptable range.
  • Solution: Verify that the scale factor values in the stage_configs are within the acceptable range and adjust them if necessary. Consult the documentation for the valid range of scale factors.

Flow Matching Stage Related Nodes

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