Unverified Commit 8bdf4236 authored by junhsss's avatar junhsss Committed by GitHub
Browse files

fix KarrasVePipeline bug (#2828)

parent 585f621a
......@@ -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,)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment