Buckets:
AutoencoderKLLTX2Audio
LTX-2'de kullanılan KL kaybına sahip 3D varyasyonel otoenkoder (VAE) modeli, Lightricks tarafından tanıtılmıştır. Bu model, ses gizli temsillerini kodlamak ve çözmek için kullanılmaktadır.
Model, aşağıdaki kod parçasıyla yüklenebilir.
from diffusers import AutoencoderKLLTX2Audio
vae = AutoencoderKLLTX2Audio.from_pretrained("Lightricks/LTX-2", subfolder="vae", dtype=torch.float32).to("cuda") # or "mps", "xpu", "cpu"
AutoencoderKLLTX2Audio[[diffusers.AutoencoderKLLTX2Audio]]
diffusers.AutoencoderKLLTX2Audio[[diffusers.AutoencoderKLLTX2Audio]]
diffusers.AutoencoderKLLTX2Audio(base_channels: int = 128, output_channels: int = 2, ch_mult: tuple = (1, 2, 4), num_res_blocks: int = 2, attn_resolutions: tuple[int, ...] | None = None, in_channels: int = 2, resolution: int = 256, latent_channels: int = 8, norm_type: str = 'pixel', causality_axis: str | None = 'height', dropout: float = 0.0, mid_block_add_attention: bool = False, sample_rate: int = 16000, mel_hop_length: int = 160, is_causal: bool = True, mel_bins: int | None = 64, double_z: bool = True)
Ses latent temsillerini kodlamak ve çözmek için LTX2 ses VAE'si.
encode[[diffusers.AutoencoderKLLTX2Audio.encode]]
encode(x: Tensor, return_dict: bool = True)
decode[[diffusers.AutoencoderKLLTX2Audio.decode]]
decode(z: Tensor, return_dict: bool = True)
forward[[diffusers.AutoencoderKLLTX2Audio.forward]]
forward(sample: Tensor, sample_posterior: bool = False, return_dict: bool = True, generator: typing.Optional[torch.Generator] = None)
Parametreler:
sample (torch.Tensor) : Girdi örneği.
sample_posterior (bool, isteğe bağlı, varsayılan False) : Posterior'dan örneklemeye alınıp alınmayacağı.
return_dict (bool, isteğe bağlı, varsayılan True) : Düz bir tuple yerine DecoderOutput döndürülüp döndürülmemesi.
generator (torch.Generator, isteğe bağlı) : Örnekleme işlemini deterministik hale getirmek için kullanılan bir torch.Generator.
Dönüş: DecoderOutput veya tuple
return_dict True ise, DecoderOutput döndürülür; aksi halde düz bir tuple döndürülür.
Xet Storage Details
- Size:
- 2.89 kB
- Xet hash:
- 215eed9f209e81642cc33f61b73e0fb2bfed5cac64455daa6f7ed284b5f9fecb
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.