Skip to content

Commit

Permalink
update unittest for DDIMInverseScheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin900429 committed Dec 25, 2023
1 parent 08f3995 commit ac835ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/schedulers/test_scheduler_ddim_inverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class DDIMInverseSchedulerTest(SchedulerCommonTest):
scheduler_classes = (DDIMInverseScheduler,)
forward_default_kwargs = (("eta", 0.0), ("num_inference_steps", 50))
forward_default_kwargs = (("num_inference_steps", 50),)

def get_scheduler_config(self, **kwargs):
config = {
Expand All @@ -26,7 +26,7 @@ def full_loop(self, **config):
scheduler_config = self.get_scheduler_config(**config)
scheduler = scheduler_class(**scheduler_config)

num_inference_steps, eta = 10, 0.0
num_inference_steps = 10

model = self.dummy_model()
sample = self.dummy_sample_deter
Expand All @@ -35,7 +35,7 @@ def full_loop(self, **config):

for t in scheduler.timesteps:
residual = model(sample, t)
sample = scheduler.step(residual, t, sample, eta).prev_sample
sample = scheduler.step(residual, t, sample).prev_sample

return sample

Expand Down

0 comments on commit ac835ce

Please sign in to comment.