Buckets:
AllegroTransformer3DModel
A Diffusion Transformer model for 3D data from Allegro was introduced in Allegro: Open the Black Box of Commercial-Level Video Generation Model by RhymesAI.
The model can be loaded with the following code snippet.
from diffusers import AllegroTransformer3DModel
transformer = AllegroTransformer3DModel.from_pretrained("rhymes-ai/Allegro", subfolder="transformer", torch_dtype=torch.bfloat16).to("cuda")
AllegroTransformer3DModel[[diffusers.AllegroTransformer3DModel]]
- hidden_states (
torch.Tensorof shape(batch_size, num_channels, num_frames, height, width)) -- Inputhidden_states. - encoder_hidden_states (
torch.Tensorof shape(batch_size, sequence_len, embed_dims)) -- Conditional embeddings (embeddings computed from the input conditions such as prompts) to use. - timestep (
torch.LongTensor) -- Used to indicate denoising step. - attention_mask (
torch.Tensor, optional) -- Self-attention mask applied tohidden_states. - encoder_attention_mask (
torch.Tensor, optional) -- Cross-attention mask applied toencoder_hidden_states. - image_rotary_emb (
tupleoftorch.Tensor, optional) -- Pre-computed rotary positional embeddings. - return_dict (
bool, optional, defaults toTrue) -- Whether or not to return a~models.transformer_2d.Transformer2DModelOutputinstead of a plain tuple.Ifreturn_dictis True, an~models.transformer_2d.Transformer2DModelOutputis returned, otherwise atuplewhere the first element is the sample tensor.
The AllegroTransformer3DModel forward method.
Transformer2DModelOutput[[diffusers.models.modeling_outputs.Transformer2DModelOutput]]
- sample (
torch.Tensorof 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 theencoder_hidden_statesinput. If discrete, returns probability distributions for the unnoised latent pixels.
The output of Transformer2DModel.
Xet Storage Details
- Size:
- 2.45 kB
- Xet hash:
- 5f51d7aa68a316816090d967f9888cd68cf9950b8624c4279d17610b82680fcb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.