MCPcopy Create free account

hub / github.com/ModelTC/LightX2V / functions

Functions8,429 in github.com/ModelTC/LightX2V

Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/wan/vae.py:220
Methodforward
(self, x)
lightx2v/models/video_encoders/hf/wan/vae.py:260
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/wan/vae.py:331
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/wan/vae.py:438
Methodforward
(self, x, cache_x=None)
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:174
Methodforward
(self, x)
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:208
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:217
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:258
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:349
Methodforward
(self, x)
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:389
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:467
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:571
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:606
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:674
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False, offload_cache=False)
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:783
Methodforward
(self, x, scale=[0, 1])
lightx2v/models/video_encoders/hf/wan/vae_2_2.py:900
Methodforward
(self, x: Tensor)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:64
Methodforward
(self, x)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:82
Methodforward
(self, x: Tensor)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:104
Methodforward
(self, x: Tensor)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:116
Methodforward
(self, x: Tensor)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:172
Methodforward
(self, z: Tensor)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:250
Methodforward
(self, z: Tensor)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:281
Methodforward
(self, x: Tensor)
lightx2v/models/video_encoders/hf/bagel/autoencoder.py:324
Methodforward
( self, hidden_states: torch.FloatTensor, output_size: Optional[int] = None, m
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:102
Methodforward
( self, hidden_states: torch.FloatTensor, memory_state: MemoryState = MemoryState.DISA
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:205
Methodforward
(self, input_tensor, temb, memory_state: MemoryState = MemoryState.DISABLED, **kwargs)
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:285
Methodforward
( self, hidden_states: torch.FloatTensor, memory_state: MemoryState = MemoryState.DISA
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:413
Methodforward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:514
Methodforward
(self, hidden_states, temb=None, memory_state: MemoryState = MemoryState.DISABLED)
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:617
Methodforward
r"""The forward method of the `Encoder` class.
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:759
Methodforward
r"""The forward method of the `Decoder` class.
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:927
Methodforward
(self, x: torch.FloatTensor, mode: Literal["encode", "decode", "all"] = "all", **kwargs)
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:1461
Methodforward
(self, x: torch.FloatTensor)
lightx2v/models/video_encoders/hf/seedvr/attn_video_vae.py:1513
Methodforward
( ctx: Any, group: dist.ProcessGroup, local_input: Tensor, scatter_dim: int,
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:76
Methodforward
(ctx: Any, group: dist.ProcessGroup, local_input: Tensor, dim: int)
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:114
Methodforward
( ctx: Any, group: dist.ProcessGroup, local_input: Tensor, dim: int, g
lightx2v/models/video_encoders/hf/seedvr/common/distributed/ops.py:135
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/upsampler/pixel_shuffle.py:31
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/upsampler/res_block.py:29
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/upsampler/blur_downsample.py:34
Methodforward
(self, latent: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/upsampler/model.py:90
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/upsampler/spatial_rational_resampler.py:40
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/upsample.py:25
Methodforward
Encode audio spectrogram into latent representations. Args: spectrogram: Input spectrogram of shape (batch, channels, tim
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:265
Methodforward
Decode latent features back to audio spectrograms. Args: sample: Encoded latent representation of shape (batch, channels,
lightx2v/models/video_encoders/hf/ltx2/audio_vae/audio_vae.py:456
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/attention.py:31
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/downsample.py:36
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:88
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:134
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:154
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:172
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:192
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:215
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:274
Methodforward
Forward pass of the vocoder. Args: x: Input Mel spectrogram tensor. Can be either: - 3D: (batch_size, time
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:389
Methodforward
Compute magnitude and phase spectrogram from a batch of waveforms. Applies causal (left-only) padding of win_length - hop_length samples so th
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:448
Methodforward
Run the full vocoder + BWE forward pass. Args: mel_spec: Mel spectrogram of shape (B, 2, T, mel_bins) for stereo
lightx2v/models/video_encoders/hf/ltx2/audio_vae/vocoder.py:560
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/causal_conv_2d.py:61
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/resnet.py:73
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/audio_vae/resnet.py:107
Methodforward
( self, x: torch.Tensor, temb: torch.Tensor | None = None, )
lightx2v/models/video_encoders/hf/ltx2/audio_vae/resnet.py:151
Methodforward
r""" Encode video frames into normalized latent representation. Args: sample: Input video (B, C, F, H, W). F must be 1 + 8
lightx2v/models/video_encoders/hf/ltx2/video_vae/video_vae.py:348
Methodforward
(self, sample: torch.Tensor, condition: torch.Tensor | None = None)
lightx2v/models/video_encoders/hf/ltx2/video_vae/timestep_embedding.py:84
Methodforward
(self, timesteps: torch.Tensor)
lightx2v/models/video_encoders/hf/ltx2/video_vae/timestep_embedding.py:107
Methodforward
( self, timestep: torch.Tensor, hidden_dtype: torch.dtype, )
lightx2v/models/video_encoders/hf/ltx2/video_vae/timestep_embedding.py:136
Methodforward
( self, x: torch.Tensor, use_conv3d: bool = False, skip_time_conv: bool = Fals
lightx2v/models/video_encoders/hf/ltx2/video_vae/convolution.py:169
Methodforward
(self, x: torch.Tensor, causal: bool = True)
lightx2v/models/video_encoders/hf/ltx2/video_vae/convolution.py:304
Methodforward
( self, x: torch.Tensor, causal: bool = True, )
lightx2v/models/video_encoders/hf/ltx2/video_vae/sampling.py:34
Methodforward
( self, x: torch.Tensor, causal: bool = True, )
lightx2v/models/video_encoders/hf/ltx2/video_vae/sampling.py:93
Methodforward
Apply RMS normalization along the configured dimension.
lightx2v/models/video_encoders/hf/ltx2/video_vae/normalization.py:32
Methodforward
( self, input_tensor: torch.Tensor, causal: bool = True, timestep: Optional[to
lightx2v/models/video_encoders/hf/ltx2/video_vae/resnet.py:113
Methodforward
( self, hidden_states: torch.Tensor, causal: bool = True, timestep: Optional[t
lightx2v/models/video_encoders/hf/ltx2/video_vae/resnet.py:239
Methodforward
(self, x: torch.Tensor)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:37
Methodforward
(self, x, cache_x=None)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:63
Methodforward
(self, x)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:83
Methodforward
(self, x)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:90
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/cosmos3/vae.py:142
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/cosmos3/vae.py:187
Methodforward
(self, x)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:221
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/cosmos3/vae.py:240
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/cosmos3/vae.py:267
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lightx2v/models/video_encoders/hf/cosmos3/vae.py:309
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:349
Methodforward
(self, x, feat_cache=None, feat_idx=[0], first_chunk=False)
lightx2v/models/video_encoders/hf/cosmos3/vae.py:394
Methodforward
(self, x, feat=False)
lightx2v/models/vfi/rife/train_log/IFNet_HDv3.py:52
Methodforward
(self, x)
lightx2v/models/vfi/rife/train_log/IFNet_HDv3.py:72
Methodforward
(self, x, flow=None, scale=1)
lightx2v/models/vfi/rife/train_log/IFNet_HDv3.py:95
Methodforward
( self, x, timestep=0.5, scale_list=[8, 4, 2, 1], training=False,
lightx2v/models/vfi/rife/train_log/IFNet_HDv3.py:137
Methodforward
(self, x)
lightx2v/models/vfi/rife/train_log/refine.py:57
Methodforward
(self, x, flow)
lightx2v/models/vfi/rife/train_log/refine.py:74
Methodforward
(self, img0, img1, warped_img0, warped_img1, mask, flow, c0, c1)
lightx2v/models/vfi/rife/train_log/refine.py:103
Methodforward
(self, flow, gt, loss_mask)
lightx2v/models/vfi/rife/model/loss.py:14
Methodforward
(self, img0, img1)
lightx2v/models/vfi/rife/model/loss.py:51
Methodforward
(self, pred, gt)
lightx2v/models/vfi/rife/model/loss.py:71
Methodforward
(self, X, Y, indices=None)
lightx2v/models/vfi/rife/model/loss.py:110
Methodforward
(self, img1, img2)
lightx2v/models/vfi/rife/model/pytorch_msssim/__init__.py:181
Methodforward
(self, img1, img2)
lightx2v/models/vfi/rife/model/pytorch_msssim/__init__.py:203
Methodforward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/causal_model.py:68
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, F, 6, C] seq_lens(Tensor): Shape [B], length of
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/causal_model.py:200
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, F, 1, C]
lightx2v_train/lightx2v_train/model_zoo/native/wan/modules/causal_model.py:251
← previousnext →6,901–7,000 of 8,429, ranked by callers