mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-28 02:01:25 +00:00
i
This commit is contained in:
@@ -120,8 +120,8 @@ class ControlNetExampleForge(scripts.Script):
|
||||
# The advanced_sigma_weighting allows you to dynamically compute control
|
||||
# weights given diffusion timestep (sigma).
|
||||
# For example below code can softly make beginning steps stronger than ending steps.
|
||||
sigma_max = unet.model.model_sampling.percent_to_sigma(0.0)
|
||||
sigma_min = unet.model.model_sampling.percent_to_sigma(1.0)
|
||||
sigma_max = unet.model.model_sampling.sigma_max
|
||||
sigma_min = unet.model.model_sampling.sigma_min
|
||||
advanced_sigma_weighting = lambda s: (s - sigma_min) / (sigma_max - sigma_min)
|
||||
|
||||
# But in this simple example we do not use them
|
||||
|
||||
Reference in New Issue
Block a user