Buckets:
AutoencoderKLMagvit
The 3D variational autoencoder (VAE) model with KL loss used in EasyAnimate was introduced by Alibaba PAI.
The model can be loaded with the following code snippet.
from diffusers import AutoencoderKLMagvit
vae = AutoencoderKLMagvit.from_pretrained("alibaba-pai/EasyAnimateV5.1-12b-zh", subfolder="vae", torch_dtype=torch.float16).to("cuda")
AutoencoderKLMagvit[[diffusers.AutoencoderKLMagvit]]
class diffusers.AutoencoderKLMagvitdiffusers.AutoencoderKLMagvit
A VAE model with KL loss for encoding images into latents and decoding latent representations into images. This model is used in EasyAnimate.
This model inherits from ModelMixin. Check the superclass documentation for it's generic methods implemented for all models (such as downloading or saving).
wrapperdiffusers.AutoencoderKLMagvit.decode
wrapperdiffusers.AutoencoderKLMagvit.encode
disable_slicingdiffusers.AutoencoderKLMagvit.disable_slicing
Disable sliced VAE decoding. If enable_slicing was previously enabled, this method will go back to computing
decoding in one step.
disable_tilingdiffusers.AutoencoderKLMagvit.disable_tiling
Disable tiled VAE decoding. If enable_tiling was previously enabled, this method will go back to computing
decoding in one step.
enable_slicingdiffusers.AutoencoderKLMagvit.enable_slicing
Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to compute decoding in several steps. This is useful to save some memory and allow larger batch sizes.
enable_tilingdiffusers.AutoencoderKLMagvit.enable_tilingint, optional) --
The minimum height required for a sample to be separated into tiles across the height dimension.
- tile_sample_min_width (
int, optional) -- The minimum width required for a sample to be separated into tiles across the width dimension. - tile_sample_stride_height (
int, optional) -- The minimum amount of overlap between two consecutive vertical tiles. This is to ensure that there are no tiling artifacts produced across the height dimension. - tile_sample_stride_width (
int, optional) -- The stride between two consecutive horizontal tiles. This is to ensure that there are no tiling artifacts produced across the width dimension.0
Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and encoding in several steps. This is useful for saving a large amount of memory and to allow processing larger images.
forwarddiffusers.AutoencoderKLMagvit.forwardtorch.Tensor) -- Input sample.
- sample_posterior (
bool, optional, defaults toFalse) -- Whether to sample from the posterior. - return_dict (
bool, optional, defaults toTrue) -- Whether or not to return aDecoderOutputinstead of a plain tuple.0
AutoencoderKLOutput[[diffusers.models.modeling_outputs.AutoencoderKLOutput]]
class diffusers.models.modeling_outputs.AutoencoderKLOutputdiffusers.models.modeling_outputs.AutoencoderKLOutputDiagonalGaussianDistribution) --
Encoded outputs of Encoder represented as the mean and logvar of DiagonalGaussianDistribution.
DiagonalGaussianDistribution allows for sampling latents from the distribution.0
Output of AutoencoderKL encoding method.
DecoderOutput[[diffusers.models.autoencoders.vae.DecoderOutput]]
class diffusers.models.autoencoders.vae.DecoderOutputdiffusers.models.autoencoders.vae.DecoderOutputtorch.Tensor of shape (batch_size, num_channels, height, width)) --
The decoded output sample from the last layer of the model.0
Output of decoding method.
Xet Storage Details
- Size:
- 9.22 kB
- Xet hash:
- adbae6e700379c2aa73f0cbb3252e88e0fac45c958f4db9dea249a1fb5dc05aa
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.