"vscode:/vscode.git/clone" did not exist on "e053d7c45609ab25e345ac277a89232bfede8e90"
models.mdx 2.91 KB
Newer Older
Patrick von Platen's avatar
Patrick von Platen committed
1
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
Nathan Lambert's avatar
Nathan Lambert committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15

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.
-->

# Models

Diffusers contains pretrained models for popular algorithms and modules for creating the next set of diffusion models.
Steven Liu's avatar
Steven Liu committed
16
The primary function of these models is to denoise an input sample, by modeling the distribution \\(p_{\theta}(x_{t-1}|x_{t})\\). 
Nathan Lambert's avatar
Nathan Lambert committed
17
18
The models are built on the base class ['ModelMixin'] that is a `torch.nn.module` with basic functionality for saving and loading models both locally and from the HuggingFace hub.

Kashif Rasul's avatar
Kashif Rasul committed
19
20
## ModelMixin
[[autodoc]] ModelMixin
Nathan Lambert's avatar
Nathan Lambert committed
21

Kashif Rasul's avatar
Kashif Rasul committed
22
23
## UNet2DOutput
[[autodoc]] models.unet_2d.UNet2DOutput
Nathan Lambert's avatar
Nathan Lambert committed
24

Kashif Rasul's avatar
Kashif Rasul committed
25
26
## UNet2DModel
[[autodoc]] UNet2DModel
Nathan Lambert's avatar
Nathan Lambert committed
27

28
29
30
31
32
33
## UNet1DOutput
[[autodoc]] models.unet_1d.UNet1DOutput

## UNet1DModel
[[autodoc]] UNet1DModel

Kashif Rasul's avatar
Kashif Rasul committed
34
35
36
37
38
39
## UNet2DConditionOutput
[[autodoc]] models.unet_2d_condition.UNet2DConditionOutput

## UNet2DConditionModel
[[autodoc]] UNet2DConditionModel

40
41
42
43
44
45
## UNet3DConditionOutput
[[autodoc]] models.unet_3d_condition.UNet3DConditionOutput

## UNet3DConditionModel
[[autodoc]] UNet3DConditionModel

Kashif Rasul's avatar
Kashif Rasul committed
46
47
48
49
## DecoderOutput
[[autodoc]] models.vae.DecoderOutput

## VQEncoderOutput
50
[[autodoc]] models.vq_model.VQEncoderOutput
Kashif Rasul's avatar
Kashif Rasul committed
51
52
53
54
55

## VQModel
[[autodoc]] VQModel

## AutoencoderKLOutput
56
[[autodoc]] models.autoencoder_kl.AutoencoderKLOutput
Kashif Rasul's avatar
Kashif Rasul committed
57
58
59

## AutoencoderKL
[[autodoc]] AutoencoderKL
60

Will Berman's avatar
Will Berman committed
61
62
63
64
## Transformer2DModel
[[autodoc]] Transformer2DModel

## Transformer2DModelOutput
65
[[autodoc]] models.transformer_2d.Transformer2DModelOutput
Will Berman's avatar
Will Berman committed
66

67
68
69
70
71
72
## TransformerTemporalModel
[[autodoc]] models.transformer_temporal.TransformerTemporalModel

## Transformer2DModelOutput
[[autodoc]] models.transformer_temporal.TransformerTemporalModelOutput

Will Berman's avatar
Will Berman committed
73
74
75
76
77
78
## PriorTransformer
[[autodoc]] models.prior_transformer.PriorTransformer

## PriorTransformerOutput
[[autodoc]] models.prior_transformer.PriorTransformerOutput

79
80
81
82
83
84
## ControlNetOutput
[[autodoc]] models.controlnet.ControlNetOutput

## ControlNetModel
[[autodoc]] ControlNetModel

85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
## FlaxModelMixin
[[autodoc]] FlaxModelMixin

## FlaxUNet2DConditionOutput
[[autodoc]] models.unet_2d_condition_flax.FlaxUNet2DConditionOutput

## FlaxUNet2DConditionModel
[[autodoc]] FlaxUNet2DConditionModel

## FlaxDecoderOutput
[[autodoc]] models.vae_flax.FlaxDecoderOutput

## FlaxAutoencoderKLOutput
[[autodoc]] models.vae_flax.FlaxAutoencoderKLOutput

## FlaxAutoencoderKL
[[autodoc]] FlaxAutoencoderKL
YiYi Xu's avatar
YiYi Xu committed
102
103
104
105
106
107

## FlaxControlNetOutput
[[autodoc]] models.controlnet_flax.FlaxControlNetOutput

## FlaxControlNetModel
[[autodoc]] FlaxControlNetModel