azula.plugins.eldm¶
Elucidated latent diffusion model (ELDM or EDM2) plugin.
This plugin depends on the torch_utils and training modules in the NVlabs/edm2 repository. To use it, clone the repository to your
machine
git clone https://github.com/NVlabs/edm2
and add it to your Python path before importing the plugin.
import sys; sys.path.append("path/to/edm2")
...
from azula.plugins import eldm
You may also need to install additional dependencies in your environment, including
diffusers and accelerate.
pip install diffusers accelerate
References
Analyzing and Improving the Training Dynamics of Diffusion Models (Karras et al., 2024)
Classes¶
Creates an auto-encoder wrapper. |
|
Creates an elucidated latent denoiser. |
Functions¶
Loads a pre-trained ELDM (or EDM2) latent denoiser. |
Descriptions¶
- class azula.plugins.eldm.AutoEncoder(vae, shift, scale)¶[source]
Creates an auto-encoder wrapper.
- class azula.plugins.eldm.ElucidatedLatentDenoiser(backbone, schedule=None)¶[source]
Creates an elucidated latent denoiser.
- Parameters:
backbone (Module) – A noise conditional network.
schedule (Schedule) – A noise schedule. If
None, useazula.plugins.edm.ElucidatedScheduleinstead.