Utility and helper functions for working with 🤗 Diffusers.
Convert a numpy image or a batch of images to a PIL image.
Convert a torch image to a PIL image.
( image: typing.Union[str, PIL.Image.Image] ) → PIL.Image.Image
Loads image
to a PIL Image.
( image: typing.List[PIL.Image.Image] output_gif_path: str = None )
( video_frames: typing.List[numpy.ndarray] output_video_path: str = None )
( images: typing.List[PIL.Image.Image] rows: int cols: int resize: int = None )
Prepares a single grid of images. Useful for visualization purposes.