Change one-step dummy pipeline for testing (#1690)
Change the one-step dummy pipeline for testing
This commit is contained in:
parent
07f95503e5
commit
e62dd5cfa8
|
@ -18,5 +18,7 @@ class UnetSchedulerOneForwardPipeline(DiffusionPipeline):
|
|||
|
||||
model_output = self.unet(image, timestep).sample
|
||||
scheduler_output = self.scheduler.step(model_output, timestep, image).prev_sample
|
||||
|
||||
result = scheduler_output - scheduler_output + torch.ones_like(scheduler_output)
|
||||
|
||||
return scheduler_output
|
||||
return result
|
||||
|
|
Loading…
Reference in New Issue