Fix regression.

This commit is contained in:
comfyanonymous 2024-11-13 04:24:48 -05:00
parent 8ebf2d8831
commit 3748e7ef7a
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ class X0(comfy.model_sampling.EPS):
class ModelSamplingDiscreteDistilled(comfy.model_sampling.ModelSamplingDiscrete): class ModelSamplingDiscreteDistilled(comfy.model_sampling.ModelSamplingDiscrete):
original_timesteps = 50 original_timesteps = 50
def __init__(self, model_config=None): def __init__(self, model_config=None, zsnr=None):
super().__init__(model_config) super().__init__(model_config, zsnr=zsnr)
self.skip_steps = self.num_timesteps // self.original_timesteps self.skip_steps = self.num_timesteps // self.original_timesteps