utilities.md 1.08 KB
Newer Older
1
<!--Copyright 2024 The HuggingFace Team. All rights reserved.
2
3
4
5
6
7
8
9
10
11
12

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->

Steven Liu's avatar
Steven Liu committed
13
14
15
16
17
18
# Utilities

Utility and helper functions for working with 🤗 Diffusers.

## numpy_to_pil

Dhruv Nair's avatar
Dhruv Nair committed
19
[[autodoc]] utils.numpy_to_pil
Steven Liu's avatar
Steven Liu committed
20
21
22

## pt_to_pil

Dhruv Nair's avatar
Dhruv Nair committed
23
[[autodoc]] utils.pt_to_pil
Steven Liu's avatar
Steven Liu committed
24
25
26

## load_image

Dhruv Nair's avatar
Dhruv Nair committed
27
[[autodoc]] utils.load_image
Steven Liu's avatar
Steven Liu committed
28

Steven Liu's avatar
Steven Liu committed
29
30
## export_to_gif

Dhruv Nair's avatar
Dhruv Nair committed
31
[[autodoc]] utils.export_to_gif
Steven Liu's avatar
Steven Liu committed
32

Steven Liu's avatar
Steven Liu committed
33
34
## export_to_video

Dhruv Nair's avatar
Dhruv Nair committed
35
[[autodoc]] utils.export_to_video
36
37
38

## make_image_grid

39
[[autodoc]] utils.make_image_grid
40
41
42
43

## randn_tensor

[[autodoc]] utils.torch_utils.randn_tensor
Aryan's avatar
Aryan committed
44
45
46
47

## apply_layerwise_casting

[[autodoc]] hooks.layerwise_casting.apply_layerwise_casting