Skip to content

工具

用于处理 🤗 Diffusers 的实用程序和辅助函数。

numpy_to_pil

[[autodoc]] utils.numpy_to_pil

pt_to_pil

[[autodoc]] utils.pt_to_pil

load_image

[[autodoc]] utils.load_image

export_to_gif

[[autodoc]] utils.export_to_gif

export_to_video

[[autodoc]] utils.export_to_video

make_image_grid

[[autodoc]] utils.make_image_grid

randn_tensor

[[autodoc]] utils.torch_utils.randn_tensor