Utility and helper functions for working with 🤗 Diffusers.
Utilities
Utility and helper functions for working with 🤗 Diffusers.
numpy_to_pil
[[autodoc]] utils.numpy_to_pil
pt_to_pil
[[autodoc]] utils.pt_to_pil
load_image
[[autodoc]] utils.load_image
load_video
[[autodoc]] utils.load_video
export_to_gif
[[autodoc]] utils.export_to_gif
export_to_video
[[autodoc]] utils.export_to_video
encode_video
[[autodoc]] utils.encode_video
make_image_grid
[[autodoc]] utils.make_image_grid
randn_tensor
[[autodoc]] utils.torch_utils.randn_tensor
TorchDeviceBackend
[[autodoc]] utils.torch_utils.TorchDeviceBackend
apply_layerwise_casting
[[autodoc]] hooks.layerwise_casting.apply_layerwise_casting
apply_group_offloading
[[autodoc]] hooks.group_offloading.apply_group_offloading
Source and license
Source: Diffusers documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.