ComfyUI > Nodes > ComfyUI > TSR - Temporal Score Rescaling

ComfyUI Node: TSR - Temporal Score Rescaling

Class Name

TemporalScoreRescaling

Category
model_patches/unet
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

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

TSR - Temporal Score Rescaling Description

Enhances AI model sampling diversity by adjusting scores or noise for nuanced content control in image generation tasks.

TSR - Temporal Score Rescaling:

TemporalScoreRescaling is a sophisticated node designed to enhance the diversity of sampling in AI models by adjusting the model's score or noise. This process, known as Temporal Score Rescaling (TSR), is particularly beneficial in image generation tasks where varying the level of detail and smoothness is desired. By rescaling the model's output, TSR allows for more nuanced control over the generated content, enabling artists to achieve a balance between detail and smoothness according to their creative needs. The node leverages a mathematical approach to compute a rescaling factor based on the signal-to-noise ratio (SNR), which is then applied to steer the sampling process. This method is grounded in research and provides a reliable way to manipulate the output characteristics of AI models, making it a valuable tool for artists seeking to refine their work with precision.

TSR - Temporal Score Rescaling Input Parameters:

model

This parameter represents the AI model that will undergo temporal score rescaling. It serves as the foundation upon which the rescaling operations are applied, allowing the node to adjust the model's output characteristics.

tsr_k

This parameter controls the strength of the rescaling effect. A lower value of tsr_k results in more detailed outputs, while a higher value produces smoother results. The default value is 0.95, with a minimum of 0.01 and a maximum of 100.0. Setting tsr_k to 1 disables rescaling, allowing the model to operate without any adjustments.

tsr_sigma

This parameter determines how early the rescaling effect takes place during the sampling process. Larger values of tsr_sigma cause the rescaling to take effect earlier, influencing the overall output from the beginning. The default value is 1.0, with a minimum of 0.01 and a maximum of 100.0.

TSR - Temporal Score Rescaling Output Parameters:

patched_model

This output is the modified version of the input model after the temporal score rescaling has been applied. It reflects the adjustments made to the model's score or noise, resulting in an output that aligns with the specified rescaling parameters. This patched model can then be used for further processing or generation tasks, offering enhanced control over the final results.

TSR - Temporal Score Rescaling Usage Tips:

  • Experiment with different values of tsr_k to find the right balance between detail and smoothness for your specific project. Lower values can enhance intricate details, while higher values can create a more unified and smooth appearance.
  • Adjust tsr_sigma to control when the rescaling effect begins during the sampling process. This can be particularly useful if you want the rescaling to influence the output from the early stages of generation.

TSR - Temporal Score Rescaling Common Errors and Solutions:

Division by zero error

  • Explanation: This error can occur if the scaling_factor is set to zero, which is not allowed as it would lead to division by zero during calculations.
  • Solution: Ensure that the scaling_factor is set to a non-zero value. The UI should prevent this, but if it occurs, manually set the scaling_factor to a small positive value, such as 1e-9, to avoid the error.

TSR - Temporal Score Rescaling Related Nodes

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

TSR - Temporal Score Rescaling