Spaces:
Paused
Paused
Download diffusers/models/modeling_outputs.py from learnmlf/FollowYourEmoji: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/spaces/learnmlf/FollowYourEmoji/resolve/main/diffusers/models/modeling_outputs.py
- Command line
-
hf download hf://spaces/learnmlf/FollowYourEmoji/diffusers/models/modeling_outputs.py
-
curl -L -o modeling_outputs.py https://huggingface.co/spaces/learnmlf/FollowYourEmoji/resolve/main/diffusers/models/modeling_outputs.py
512 Bytes
| from dataclasses import dataclass | |
| from ..utils import BaseOutput | |
| class AutoencoderKLOutput(BaseOutput): | |
| """ | |
| Output of AutoencoderKL encoding method. | |
| Args: | |
| latent_dist (`DiagonalGaussianDistribution`): | |
| Encoded outputs of `Encoder` represented as the mean and logvar of `DiagonalGaussianDistribution`. | |
| `DiagonalGaussianDistribution` allows for sampling latents from the distribution. | |
| """ | |
| latent_dist: "DiagonalGaussianDistribution" # noqa: F821 | |