Buckets:
ErnieImageTransformer2DModel
A Transformer model for image-like data from ERNIE-Image.
A Transformer model for image-like data from ERNIE-Image-Turbo.
ErnieImageTransformer2DModel[[diffusers.ErnieImageTransformer2DModel]]
- hidden_states (
torch.Tensorof shape(batch_size, in_channels, height, width)) -- Inputhidden_states. - timestep (
torch.LongTensor) -- Used to indicate denoising step. - text_bth (
torch.Tensor) -- Conditional text embeddings (embeddings computed from the input conditions such as prompts) to use, shaped(batch_size, text_length, embed_dims). - text_lens (
torch.Tensor) -- Per-sample text sequence lengths used to build the attention mask. - return_dict (
bool, optional, defaults toTrue) -- Whether or not to return a~models.transformer_2d.Transformer2DModelOutputinstead of a plain tuple.
The ErnieImageTransformer2DModel forward method.
Xet Storage Details
- Size:
- 1.14 kB
- Xet hash:
- 04806dc8cb0239f7bd1bc1b6d360dc198514ca9aefa9f5daef88229ecc7633fb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.