You are viewing v0.25.0 version.
A newer version
v0.32.2 is available.
Utilities
Utility and helper functions for working with 🤗 Diffusers.
numpy_to_pil
Convert a numpy image or a batch of images to a PIL image.
pt_to_pil
Convert a torch image to a PIL image.
load_image
diffusers.utils.load_image
< source >( image: Union ) → PIL.Image.Image
Loads image
to a PIL Image.
export_to_gif
export_to_video
diffusers.utils.export_to_video
< source >( video_frames: Union output_video_path: str = None fps: int = 8 )
make_image_grid
Prepares a single grid of images. Useful for visualization purposes.