mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-04 02:07:08 +08:00
Use sigma_max
This commit is contained in:
parent
36a76fd68e
commit
f94aa3e95e
@ -464,7 +464,7 @@ def beta_scheduler(model_sampling, steps, alpha=0.6, beta=0.6):
|
|||||||
return torch.FloatTensor(sigs)
|
return torch.FloatTensor(sigs)
|
||||||
|
|
||||||
def linear_scheduler(model_sampling, steps):
|
def linear_scheduler(model_sampling, steps):
|
||||||
return torch.linspace(1.0, 0.0, steps + 1)
|
return torch.linspace(model_sampling.sigma_max, 0.0, steps + 1)
|
||||||
|
|
||||||
# from: https://github.com/genmoai/models/blob/main/src/mochi_preview/infer.py#L41
|
# from: https://github.com/genmoai/models/blob/main/src/mochi_preview/infer.py#L41
|
||||||
def linear_quadratic_schedule(model_sampling, steps, threshold_noise=0.025, linear_steps=None):
|
def linear_quadratic_schedule(model_sampling, steps, threshold_noise=0.025, linear_steps=None):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user