1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Change one-step dummy pipeline for testing (#1690)

Change the one-step dummy pipeline for testing
This commit is contained in:
Patrick von Platen
2022-12-13 16:55:49 +01:00
committed by GitHub
parent 07f95503e5
commit e62dd5cfa8

View File

@@ -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