mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
fix KarrasVePipeline bug (#2828)
This commit is contained in:
@@ -120,7 +120,7 @@ class KarrasVePipeline(DiffusionPipeline):
|
||||
sample = (sample / 2 + 0.5).clamp(0, 1)
|
||||
image = sample.cpu().permute(0, 2, 3, 1).numpy()
|
||||
if output_type == "pil":
|
||||
image = self.numpy_to_pil(sample)
|
||||
image = self.numpy_to_pil(image)
|
||||
|
||||
if not return_dict:
|
||||
return (image,)
|
||||
|
||||
Reference in New Issue
Block a user