mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
* start * add more logic * Update src/diffusers/models/unet_2d_condition_flax.py * match weights * up * make model work * making class more general, fixing missed file rename * small fix * make new conversion work * up * finalize conversion * up * first batch of variable renamings * remove c and c_prev var names * add mid and out block structure * add pipeline * up * finish conversion * finish * upload * more fixes * Apply suggestions from code review * add attr * up * uP * up * finish tests * finish * uP * finish * fix test * up * naming consistency in tests * Apply suggestions from code review Co-authored-by: Suraj Patil <surajp815@gmail.com> Co-authored-by: Pedro Cuenca <pedro@huggingface.co> Co-authored-by: Nathan Lambert <nathan@huggingface.co> Co-authored-by: Anton Lozhkov <anton@huggingface.co> * remove hardcoded 16 * Remove bogus * fix some stuff * finish * improve logging * docs * upload Co-authored-by: Nathan Lambert <nol@berkeley.edu> Co-authored-by: Suraj Patil <surajp815@gmail.com> Co-authored-by: Pedro Cuenca <pedro@huggingface.co> Co-authored-by: Nathan Lambert <nathan@huggingface.co> Co-authored-by: Anton Lozhkov <anton@huggingface.co>
69 lines
2.0 KiB
Plaintext
69 lines
2.0 KiB
Plaintext
<!--Copyright 2022 The HuggingFace Team. All rights reserved.
|
|
|
|
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.
|
|
The primary function of these models is to denoise an input sample, by modeling the distribution $p_\theta(\mathbf{x}_{t-1}|\mathbf{x}_t)$.
|
|
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.
|
|
|
|
## ModelMixin
|
|
[[autodoc]] ModelMixin
|
|
|
|
## UNet2DOutput
|
|
[[autodoc]] models.unet_2d.UNet2DOutput
|
|
|
|
## UNet1DModel
|
|
[[autodoc]] UNet1DModel
|
|
|
|
## UNet2DModel
|
|
[[autodoc]] UNet2DModel
|
|
|
|
## UNet2DConditionOutput
|
|
[[autodoc]] models.unet_2d_condition.UNet2DConditionOutput
|
|
|
|
## UNet2DConditionModel
|
|
[[autodoc]] UNet2DConditionModel
|
|
|
|
## DecoderOutput
|
|
[[autodoc]] models.vae.DecoderOutput
|
|
|
|
## VQEncoderOutput
|
|
[[autodoc]] models.vae.VQEncoderOutput
|
|
|
|
## VQModel
|
|
[[autodoc]] VQModel
|
|
|
|
## AutoencoderKLOutput
|
|
[[autodoc]] models.vae.AutoencoderKLOutput
|
|
|
|
## AutoencoderKL
|
|
[[autodoc]] AutoencoderKL
|
|
|
|
## 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
|