Skip to content

Commit 0d2903c

Browse files
Update src/diffusers/image_processor.py
Co-authored-by: Patrick von Platen <[email protected]>
1 parent cca7078 commit 0d2903c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/image_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def postprocess(
185185
if self.config.do_normalize:
186186
image = (image / 2 + 0.5).clamp(0, 1)
187187

188-
if isinstance(image, torch.Tensor) and output_type == "pt":
188+
if output_type == "pt":
189189
return image
190190

191191
image = self.pt_to_numpy(image)

0 commit comments

Comments
 (0)