diff --git a/docs/source/en/_toctree.yml b/docs/source/en/_toctree.yml index 1be09fdda0d6..71ee0d177e5a 100644 --- a/docs/source/en/_toctree.yml +++ b/docs/source/en/_toctree.yml @@ -90,6 +90,8 @@ title: Configuration - local: api/outputs title: Outputs + - local: api/loaders + title: Loaders title: Main Classes - sections: - local: api/pipelines/overview diff --git a/docs/source/en/api/loaders.mdx b/docs/source/en/api/loaders.mdx new file mode 100644 index 000000000000..c850cdfe472b --- /dev/null +++ b/docs/source/en/api/loaders.mdx @@ -0,0 +1,30 @@ + + +# Loaders + +There are many weights to train adapter neural networks for diffusion models, such as +- [Textual Inversion](./training/text_inversion.mdx) +- [LoRA](https://github.com/cloneofsimo/lora) +- [Hypernetworks](https://arxiv.org/abs/1609.09106) + +Such adapter neural networks often only consist of a fraction of the number of weights compared +to the pretrained model and as such are very portable. The Diffusers library offers an easy-to-use +API to load such adapter neural networks via the [`loaders.py` module](https://github.com/huggingface/diffusers/blob/main/src/diffusers/loaders.py). + +**Note**: This module is still highly experimental and prone to future changes. + +## LoaderMixins + +### UNet2DConditionLoadersMixin + +[[autodoc]] loaders.UNet2DConditionLoadersMixin diff --git a/docs/source/en/api/logging.mdx b/docs/source/en/api/logging.mdx index 5d75ec8e0114..b726d46d92a1 100644 --- a/docs/source/en/api/logging.mdx +++ b/docs/source/en/api/logging.mdx @@ -1,4 +1,4 @@ -