Buckets:
ZImageTransformer2DModel
A Transformer model for image-like data from Z-Image.
ZImageTransformer2DModel[[diffusers.ZImageTransformer2DModel]]
- x (
listoftorch.Tensoror nestedlistoftorch.Tensor) -- Input latents. A flat list when running in standard mode, or a nested list when running in omni mode. - t (
torch.Tensor) -- Used to indicate denoising step. - cap_feats (
listoftorch.Tensoror nestedlistoftorch.Tensor) -- Conditional caption embeddings (embeddings computed from the input conditions such as prompts) to use. - return_dict (
bool, optional, defaults toTrue) -- Whether or not to return a~models.transformer_2d.Transformer2DModelOutputinstead of a plain tuple. - controlnet_block_samples (
dictofinttotorch.Tensor, optional) -- A mapping from block index to tensor that if specified are added to the residuals of transformer blocks. - siglip_feats (
listoflistoftorch.Tensor, optional) -- Optional SigLIP image features used as additional conditioning. - image_noise_mask (
listoflistofint, optional) -- Per-image noise masks indicating noisy vs. clean tokens in omni mode. - patch_size (
int, optional, defaults to 2) -- Spatial patch size used to patchify the input latents. - f_patch_size (
int, optional, defaults to 1) -- Temporal patch size used to patchify the input latents.
The ZImageTransformer2DModel forward method.
Flow: patchify -> t_embed -> x_embed -> x_refine -> cap_embed -> cap_refine -> [siglip_embed -> siglip_refine] -> build_unified -> main_layers -> final_layer -> unpatchify
Patchify for basic mode: single image per batch item.
Patchify for omni mode: multiple images per batch item with noise masks.
Xet Storage Details
- Size:
- 1.94 kB
- Xet hash:
- 1ffa5ca3f902013844e8581bd2a3d8c1b49b19daea21d71ea001e53ddb58b52c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.