Spaces:
Running on Zero
Running on Zero
multimodalart HF Staff
MiniMax-H3 ref2va, the denoising half of the split deployment
9e3b8ca verified Download diffusers/models/modeling_outputs.py from dagloop5/TestingRef2va: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/dagloop5/TestingRef2va/resolve/85b133dc3d05102b1bc2c04626c2cc8432c8564a/diffusers/models/modeling_outputs.py
- Command line
-
hf download hf://spaces/dagloop5/TestingRef2va@85b133dc3d05102b1bc2c04626c2cc8432c8564a/diffusers/models/modeling_outputs.py
-
curl -L -o modeling_outputs.py https://huggingface.co/spaces/dagloop5/TestingRef2va/resolve/85b133dc3d05102b1bc2c04626c2cc8432c8564a/diffusers/models/modeling_outputs.py
1.04 kB
| 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 | |
| class Transformer2DModelOutput(BaseOutput): | |
| """ | |
| The output of [`Transformer2DModel`]. | |
| Args: | |
| sample (`torch.Tensor` of shape `(batch_size, num_channels, height, width)` or `(batch size, num_vector_embeds - 1, num_latent_pixels)` if [`Transformer2DModel`] is discrete): | |
| The hidden states output conditioned on the `encoder_hidden_states` input. If discrete, returns probability | |
| distributions for the unnoised latent pixels. | |
| """ | |
| sample: "torch.Tensor" # noqa: F821 | |