Skip to content

Commit

Permalink
Correct type annotation for VaeImageProcessor.numpy_to_pil (#6111)
Browse files Browse the repository at this point in the history
From `(np.ndarray) -> PIL.Image.Image` to `(np.ndarray) -> List[PIL.Image.Image]`.
edwardwli authored Dec 11, 2023
1 parent 88bdd97 commit 664e931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/image_processor.py
Original file line number Diff line number Diff line change
@@ -88,7 +88,7 @@ def __init__(
self.config.do_convert_rgb = False

@staticmethod
def numpy_to_pil(images: np.ndarray) -> PIL.Image.Image:
def numpy_to_pil(images: np.ndarray) -> List[PIL.Image.Image]:
"""
Convert a numpy image or a batch of images to a PIL image.
"""

0 comments on commit 664e931

Please sign in to comment.