MCPcopy Create free account

hub / github.com/NVlabs/Sana / functions

Functions2,606 in github.com/NVlabs/Sana

Methodforward
(self, x, feat_cache=None, feat_idx=[0])
diffusion/model/wan2_2/vae.py:414
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
diffusion/model/wan2_2/vae.py:449
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
diffusion/model/wan2_2/vae.py:517
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
diffusion/model/wan2_2/vae.py:627
Methodforward
(self, x, scale=[0, 1])
diffusion/model/wan2_2/vae.py:730
Methodforward
(self, x)
diffusion/model/wan/clip.py:48
Methodforward
(self, x)
diffusion/model/wan/clip.py:53
Methodforward
x: [B, L, C].
diffusion/model/wan/clip.py:72
Methodforward
(self, x)
diffusion/model/wan/clip.py:145
Methodforward
x: [B, L, C].
diffusion/model/wan/clip.py:180
Methodforward
(self, x, interpolation=False, use_31_block=False)
diffusion/model/wan/clip.py:269
Methodforward
(self, ids)
diffusion/model/wan/clip.py:304
Methodforward
imgs: [B, 3, H, W] of torch.float32. - mean: [0.48145466, 0.4578275, 0.40821073] - std: [0.26862954, 0.2613025
diffusion/model/wan/clip.py:398
Methodforward
(self, x)
diffusion/model/wan/t5.py:46
Methodforward
(self, x)
diffusion/model/wan/t5.py:57
Methodforward
x: [B, L1, C]. context: [B, L2, C] or None. mask: [B, L2] or [B, L1, L2] or None.
diffusion/model/wan/t5.py:80
Methodforward
(self, x)
diffusion/model/wan/t5.py:128
Methodforward
(self, x, mask=None, pos_bias=None)
diffusion/model/wan/t5.py:153
Methodforward
(self, x, mask=None, encoder_states=None, encoder_mask=None, pos_bias=None)
diffusion/model/wan/t5.py:179
Methodforward
(self, lq, lk)
diffusion/model/wan/t5.py:198
Methodforward
(self, ids, mask=None)
diffusion/model/wan/t5.py:258
Methodforward
(self, ids, mask=None, encoder_states=None, encoder_mask=None)
diffusion/model/wan/t5.py:295
Methodforward
(self, encoder_ids, encoder_mask, decoder_ids, decoder_mask)
diffusion/model/wan/t5.py:352
Methodforward
(self, x, cache_x=None)
diffusion/model/wan/vae.py:32
Methodforward
(self, x)
diffusion/model/wan/vae.py:54
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
diffusion/model/wan/vae.py:59
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
diffusion/model/wan/vae.py:93
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
diffusion/model/wan/vae.py:183
Methodforward
(self, x)
diffusion/model/wan/vae.py:219
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
diffusion/model/wan/vae.py:294
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
diffusion/model/wan/vae.py:392
Methodforward
x: [B, L, C].
diffusion/model/wan/xlm_roberta.py:26
Methodforward
(self, x, mask)
diffusion/model/wan/xlm_roberta.py:62
Methodforward
ids: [B, L] of torch.LongTensor.
diffusion/model/wan/xlm_roberta.py:115
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
diffusion/model/wan/model.py:173
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
diffusion/model/wan/model.py:188
Methodforward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
diffusion/model/wan/model.py:216
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] seq_lens(Tensor): Shape [B] grid_sizes(Tensor): Shape [B, 3], the se
diffusion/model/wan/model.py:278
Methodforward
(self, x)
diffusion/model/wan/model.py:370
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] seq_lens(Tensor): Shape [B] grid_sizes(Tensor): Shape [B, 3], the se
diffusion/model/wan/model.py:389
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] seq_lens(Tensor): Shape [B] grid_sizes(Tensor): Shape [B, 3], the se
diffusion/model/wan/model.py:442
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
diffusion/model/wan/model.py:492
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
diffusion/model/wan/model.py:524
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, 6, C] seq_lens(Tensor): Shape [B], length of ea
diffusion/model/wan/model.py:622
Methodforward
(self, image_embeds)
diffusion/model/wan/model.py:741
Methodforward
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
diffusion/model/wan/model.py:867
Methodforward
r""" Forward pass through the diffusion model Same as WanModel, but save qkv for linear attention Args: x (List[T
diffusion/model/wan/model.py:1212
Methodforward
(self, x, y, t, mask=None, HW=None, **kwargs)
diffusion/model/nets/sana_multi_scale_adaln.py:130
Methodforward
(self, x, cond, mask=None)
diffusion/model/nets/sana_blocks.py:69
Methodforward
(self, x, cond, mask=None, image_embeds=None)
diffusion/model/nets/sana_blocks.py:126
Methodforward
(self, x, cond, mask=None)
diffusion/model/nets/sana_blocks.py:179
Methodforward
(self, x: torch.Tensor, mask=None, HW=None, rotary_emb=None, block_mask=None, **kwargs)
diffusion/model/nets/sana_blocks.py:340
Methodforward
( self, x: torch.Tensor, mask=None, HW=None, rotary_emb=None, block_mask=None, chunk_index: List[int]
diffusion/model/nets/sana_blocks.py:408
Methodforward
( self, x: torch.Tensor, mask=None, HW=None, rotary_emb=None,
diffusion/model/nets/sana_blocks.py:502
Methodforward
(self, x, mask=None, HW=None, rotary_emb=None, block_id=None, block_mask=None, **kwargs)
diffusion/model/nets/sana_blocks.py:796
Methodforward
(self, x, HW=None, **kwargs)
diffusion/model/nets/sana_blocks.py:855
Methodforward
(self, x, c)
diffusion/model/nets/sana_blocks.py:886
Methodforward
(self, x, t)
diffusion/model/nets/sana_blocks.py:919
Methodforward
(self, x, t)
diffusion/model/nets/sana_blocks.py:939
Methodforward
(self, x, t)
diffusion/model/nets/sana_blocks.py:957
Methodforward
(self, t)
diffusion/model/nets/sana_blocks.py:1002
Methodforward
(self, s, bs)
diffusion/model/nets/sana_blocks.py:1030
Methodforward
(self, labels, train, force_drop_ids=None)
diffusion/model/nets/sana_blocks.py:1075
Methodforward
(self, caption, train, force_drop_ids=None, mask=None)
diffusion/model/nets/sana_blocks.py:1123
Methodforward
(self, caption, train, force_drop_ids=None)
diffusion/model/nets/sana_blocks.py:1167
Methodforward
(self, hidden_states: torch.Tensor)
diffusion/model/nets/sana_blocks.py:1184
Methodforward
(self, x)
diffusion/model/nets/sana_blocks.py:1224
Methodforward
(self, x)
diffusion/model/nets/sana_blocks.py:1263
Methodforward
(self, x)
diffusion/model/nets/sana_blocks.py:1299
Methodforward
(self, ids: torch.Tensor)
diffusion/model/nets/sana_blocks.py:1314
Methodforward
(self, fhw: torch.Tensor, device: torch.device)
diffusion/model/nets/sana_blocks.py:1393
Methodforward
( self, fhw: torch.Tensor, device: torch.device, frame_index: torch.Tensor | N
diffusion/model/nets/sana_blocks.py:1414
Methodforward
(self, fhw: torch.Tensor, device: torch.device)
diffusion/model/nets/sana_blocks.py:1467
Methodforward
Args: x: Input tensor of shape [B, N, C] where N = T*H*W HW: Tuple of (H, W) spatial dimensions rotary_em
diffusion/model/nets/sana_blocks.py:1632
Methodforward
(self, x: torch.Tensor, mask=None, HW=None, rotary_emb=None, block_mask=None, **kwargs)
diffusion/model/nets/sana_blocks.py:1797
Methodforward
(self, x: torch.Tensor)
diffusion/model/nets/basic_modules.py:89
Methodforward
(self, x: torch.Tensor, HW=None)
diffusion/model/nets/basic_modules.py:178
Methodforward
(self, x: torch.Tensor, HW=None, **kwargs)
diffusion/model/nets/basic_modules.py:239
Methodforward
(self, x: torch.Tensor, HW=None, chunk_index: List[int] = [0])
diffusion/model/nets/basic_modules.py:258
Methodforward
(self, x: torch.Tensor, HW=None, save_kv_cache=False, kv_cache=None, **kwargs)
diffusion/model/nets/basic_modules.py:347
Methodforward
(self, x: torch.Tensor, HW=None)
diffusion/model/nets/basic_modules.py:436
Methodforward
(self, x, HW=None)
diffusion/model/nets/basic_modules.py:515
Methodforward
(self, x, HW=None)
diffusion/model/nets/basic_modules.py:545
Methodforward
(self, x: torch.Tensor)
diffusion/model/nets/basic_modules_linear.py:52
Methodforward
(self, x: torch.Tensor)
diffusion/model/nets/basic_modules_linear.py:122
Methodforward
(self, x: torch.Tensor, HW=None)
diffusion/model/nets/basic_modules_linear.py:204
Methodforward
(self, x: torch.Tensor, HW=None, **kwargs)
diffusion/model/nets/basic_modules_linear.py:284
Methodforward
(self, x, y, t, mask=None, **kwargs)
diffusion/model/nets/sana.py:146
Methodforward
(self, x)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:85
Methodforward
(self, x)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:99
Methodforward
(self, x, y, t, mask=None, THW=None, rotary_emb=None, block_mask=None, chunk_index=None, **kwargs)
diffusion/model/nets/sana_multi_scale_video_camctrl.py:434
Methodforward
(self, x, y, t, control_signal, mask=None, HW=None, image_rotary_emb=None)
diffusion/model/nets/sana_multi_scale_controlnet.py:67
Methodforward
(self, x, y, t, mask=None, THW=None, rotary_emb=None, chunk_index=None, **kwargs)
diffusion/model/nets/sana_multi_scale_video.py:256
Methodforward
(self, x, y, t, mask=None, HW=None, skip_x=None, **kwargs)
diffusion/model/nets/sana_U_shape_multi_scale.py:133
Methodforward
Forward pass of SanaUMS. x: (N, C, H, W) tensor of spatial inputs (images or latent representations of images) t: (N,) tensor
diffusion/model/nets/sana_U_shape_multi_scale.py:250
Methodforward
(self, x, timestep, y=None, data_info=None, mask=None, **kwargs)
diffusion/model/nets/sana_ladd.py:46
Methodforward
( self, x: torch.Tensor, mask: torch.Tensor | None = None, HW: tuple[int, int,
diffusion/model/nets/sana_gdn_blocks_triton.py:231
Methodforward
(self, x, y, t, mask=None, skip_x=None, **kwargs)
diffusion/model/nets/sana_U_shape.py:139
Methodforward
Forward pass of SanaU. x: (N, C, H, W) tensor of spatial inputs (images or latent representations of images) t: (N,) tensor o
diffusion/model/nets/sana_U_shape.py:276
Methodforward
(ctx, x: torch.Tensor)
diffusion/model/nets/sana_gdn_blocks.py:100
← previousnext →2,101–2,200 of 2,606, ranked by callers