Skip to content

Commit

Permalink
Make timestep ranges more usable on rectified flow models.
Browse files Browse the repository at this point in the history
This breaks some old workflows but should make the nodes actually useful.
  • Loading branch information
comfyanonymous committed Dec 5, 2024
1 parent 9a616b8 commit 1e21f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comfy/model_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def percent_to_sigma(self, percent):
return 1.0
if percent >= 1.0:
return 0.0
return 1.0 - percent
return time_snr_shift(self.shift, 1.0 - percent)

class StableCascadeSampling(ModelSamplingDiscrete):
def __init__(self, model_config=None):
Expand Down Expand Up @@ -336,4 +336,4 @@ def percent_to_sigma(self, percent):
return 1.0
if percent >= 1.0:
return 0.0
return 1.0 - percent
return flux_time_shift(self.shift, 1.0, 1.0 - percent)

0 comments on commit 1e21f4c

Please sign in to comment.