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_kto 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_sigmato 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_factoris set to zero, which is not allowed as it would lead to division by zero during calculations. - Solution: Ensure that the
scaling_factoris set to a non-zero value. The UI should prevent this, but if it occurs, manually set thescaling_factorto a small positive value, such as 1e-9, to avoid the error.
