loaders.mdx 1.6 KB
Newer Older
Patrick von Platen's avatar
Patrick von Platen committed
1
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
2
3
4
5
6
7
8
9
10
11
12
13
14

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

# Loaders

Steven Liu's avatar
Steven Liu committed
15
Adapters (textual inversion, LoRA, hypernetworks) allow you to modify a diffusion model to generate images in a specific style without training or finetuning the entire model. The adapter weights are typically only a tiny fraction of the pretrained model's which making them very portable. 🤗 Diffusers provides an easy-to-use `LoaderMixin` API to load adapter weights.
16

Steven Liu's avatar
Steven Liu committed
17
<Tip warning={true}>
18

Steven Liu's avatar
Steven Liu committed
19
🧪 The `LoaderMixins` are highly experimental and prone to future changes. To use private or [gated](https://huggingface.co/docs/hub/models-gated#gated-models) models, log-in with `huggingface-cli login`.
20

Steven Liu's avatar
Steven Liu committed
21
</Tip>
22

Steven Liu's avatar
Steven Liu committed
23
## UNet2DConditionLoadersMixin
24
25

[[autodoc]] loaders.UNet2DConditionLoadersMixin
26

Steven Liu's avatar
Steven Liu committed
27
## TextualInversionLoaderMixin
28
29
30

[[autodoc]] loaders.TextualInversionLoaderMixin

Steven Liu's avatar
Steven Liu committed
31
## LoraLoaderMixin
32
33

[[autodoc]] loaders.LoraLoaderMixin
1lint's avatar
1lint committed
34

Patrick von Platen's avatar
Patrick von Platen committed
35
## FromSingleFileMixin
1lint's avatar
1lint committed
36

Patrick von Platen's avatar
Patrick von Platen committed
37
[[autodoc]] loaders.FromSingleFileMixin
38
39
40
41
42
43
44
45

## FromOriginalControlnetMixin

[[autodoc]] loaders.FromOriginalControlnetMixin

## FromOriginalVAEMixin

[[autodoc]] loaders.FromOriginalVAEMixin