MCPcopy Create free account

hub / github.com/a1600012888/LaCT / functions

Functions581 in github.com/a1600012888/LaCT

Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers.py:209
Methodbegin_index
The index for the first timestep. It should be set from pipeline with `set_begin_index` method.
lact_ar_video/minVid/models/wan/wan_base/utils/fm_solvers_unipc.py:142
Functioncache_image
(tensor, save_file, nrow=8, normalize=True, va
lact_ar_video/minVid/models/wan/wan_base/utils/utils.py:64
Functioncache_video
(tensor, save_file=None, fps=30, suffix='.mp4',
lact_ar_video/minVid/models/wan/wan_base/utils/utils.py:23
Functioncompute_simple_latent_statistics
x of shape [B, f, c, h, w]
lact_ar_video/minVid/models/video_latent_flow_matching_ar_validation.py:19
Functionconfigure_optimizer
(model, weight_decay, learning_rate, betas)
lact_ar_video/minVid/utils/optimizer_scheduler.py:14
Methodconvert_noise_to_x0
Convert the diffusion network's noise prediction to x0 predidction. noise: the predicted noise with shape [B, C, H, W] xt: th
lact_ar_video/minVid/scheduler.py:53
Methodconvert_velocity_to_x0
Convert the diffusion network's velocity prediction to x0 predidction. velocity: the predicted noise with shape [B, C, H, W]
lact_ar_video/minVid/scheduler.py:78
Methodconvert_x0_to_noise
Convert the diffusion network's x0 prediction to noise predidction. x0: the predicted clean data with shape [B, C, H, W] xt:
lact_ar_video/minVid/scheduler.py:27
Methodcross_attn_ffn
(x, context, context_lens, e)
lact_ar_video/minVid/models/wan/wan_base/modules/wan_model_warpper.py:103
Methodcross_attn_ffn
(x, context, context_lens, e)
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:457
Methodcross_attn_ffn
(x, context, context_lens, e)
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:504
Methoddecode_to_pixel
A method to decode a latent representation to an image or video. Input: a tensor with shape [B, F, C, H // S, W // S] where S is the
lact_ar_video/minVid/models/model_interface.py:85
Methoddecode_to_pixel
latents: [batch_size, num_frames, num_channels, height, width] output: [batch_size, num_channels, num_frames, height, width]
lact_ar_video/minVid/models/wan/wan_text_vae_warpper.py:98
Methodenable_gradient_checkpointing
Activates gradient checkpointing for the current model (may be referred to as *activation checkpointing* or *checkpoint activations*
lact_ar_video/minVid/models/model_interface.py:75
Methodenable_gradient_checkpointing
(self)
lact_ar_video/minVid/models/wan/wan_warpper.py:222
Methodenable_gradient_checkpointing
(self)
lact_ar_video/minVid/models/wan/wan_warpper_versatile.py:124
Methodencode
Input: - videos_rgb: a tensor with shape [B, F+1, C, H, W] in RGB format, [0-1] Output: - video_rgb: a tensor
lact_ar_video/minVid/models/wan/wan_text_vae_warpper.py:118
Methodextend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
lact_ar_video/minVid/models/wan/wan_base/utils/prompt_extend.py:196
Methodextend
(self, prompt, system_prompt, seed=-1, *args, **kwargs)
lact_ar_video/minVid/models/wan/wan_base/utils/prompt_extend.py:366
Methodextend_with_img
(self, prompt, system_prompt, image: U
lact_ar_video/minVid/models/wan/wan_base/utils/prompt_extend.py:232
Methodextend_with_img
(self, prompt, system_prompt, image: U
lact_ar_video/minVid/models/wan/wan_base/utils/prompt_extend.py:397
Methodextra_repr
(self)
lact_nvs/lact_ttt.py:248
Methodforward
x: [b, l, d]
minimal_implementations/bidirectional_lact_layer.py:221
Methodforward
x: [b, l, d]
minimal_implementations/causal_lact_with_sliding_window_attn.py:316
Methodforward
x: (b, l, d)
lact_nvs/lact_ttt.py:204
Methodforward
x: (b, l, d)
lact_nvs/model.py:62
Methodforward
(self, x, *args)
lact_nvs/model.py:88
Methodforward
(self, x, info)
lact_nvs/model.py:115
Methodforward
(self, input_data_dict, target_data_dict)
lact_nvs/model.py:203
Methodforward
Returns: W: [num_heads, out_features, in_features] W = W_left @ W_right + I * 0.5 where I is the identity
lact_llm/lact_model/layer_lact_swiglu.py:98
Methodforward
( self, hidden_states: torch.Tensor, # [b, s, d] attention_mask: Optional[torch.LongT
lact_llm/lact_model/layer_lact_swiglu.py:274
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
lact_llm/lact_model/modeling_lact.py:86
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, attention_mask: Optional[torch.T
lact_llm/lact_model/modeling_lact.py:233
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
lact_llm/lact_model/modeling_lact.py:420
Methodforward
Args: W0_W2: [B, 2M, K] or [B, 2 * Hidden, D] W1: [B, K, M] or [B, D, Hidden] K, V: [M, N,
lact_llm/lact_model/lact_triton_kernels/lact_fw_grad.py:24
Methodforward
x: [B, D1, D2] x_add: [B, D1, D2] tgt_scale: [B, D1] eps: float tgt_dtype: if None, will use the same dtype a
lact_llm/lact_model/lact_triton_kernels/l2norm_triton_kernels.py:388
Methodforward
Args: W0_W2: [B, 2 * Hidden, D] W1: [B, K, M] or [B, D, Hidden] X: [M, N, K] or [B, num_Tokens,
lact_llm/lact_model/lact_triton_kernels/lact_swiglu_ffn.py:22
Methodforward
(ctx, x_main, dx, dx_momentum, momentum_mu, tgt_scale, eps=1e-5)
lact_llm/lact_model/lact_triton_kernels/triton_prenorm_update_with_momentum.py:336
Methodforward
A method to run diffusion model. Input: - noisy_image_or_video: a tensor with shape [B, F, C, H, W] where the number of
lact_ar_video/minVid/models/model_interface.py:15
Methodforward
A method to tokenize text prompts with a tokenizer and encode them into a latent representation. Input: a list of strings.
lact_ar_video/minVid/models/model_interface.py:96
Methodforward
Only support training right now Input: - data_dict: a dictionary containing the input data. all data tha
lact_ar_video/minVid/models/video_latent_flow_matching_ar.py:278
Methodforward
Only support training right now Input: - data_dict: a dictionary containing the input data. all data tha
lact_ar_video/minVid/models/video_latent_flow_matching_ar_validation.py:291
Methodforward
Only support training right now Input: - data_dict: a dictionary containing the input data. all data tha
lact_ar_video/minVid/models/video_latent_flow_matching.py:126
Methodforward
Input: - text_prompts: a list of text prompts. Output: dict: - prompt_embeds: a tensor with s
lact_ar_video/minVid/models/wan/wan_text_vae_warpper.py:45
Methodforward
Input: - text_prompts: a list of text prompts. Output: dict: - prompt_embeds: a tensor with s
lact_ar_video/minVid/models/wan/wan_warpper.py:55
Methodforward
A method to run diffusion model. Input: - noisy_image_or_video: a tensor with shape [B, F, C, H, W] where the number of
lact_ar_video/minVid/models/wan/wan_warpper.py:293
Methodforward
A method to run diffusion model. Input: - noisy_image_or_video: a tensor with shape [B, F, C, H, W] where the number of
lact_ar_video/minVid/models/wan/wan_warpper_versatile.py:193
Methodforward
(self, x)
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:43
Methodforward
(self, x)
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:49
Methodforward
x: [B, L, C].
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:74
Methodforward
(self, x)
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:146
Methodforward
x: [B, L, C].
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:186
Methodforward
(self, x, interpolation=False, use_31_block=False)
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:279
Methodforward
(self, ids)
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:315
Methodforward
imgs: [B, 3, H, W] of torch.float32. - mean: [0.48145466, 0.4578275, 0.40821073] - std: [0.26862954, 0.2613025
lact_ar_video/minVid/models/wan/wan_base/modules/clip.py:406
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, 6, C] seq_lens(Tensor): Shape [B], length of ea
lact_ar_video/minVid/models/wan/wan_base/modules/wan_model_warpper.py:71
Methodforward
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
lact_ar_video/minVid/models/wan/wan_base/modules/wan_model_warpper.py:279
Methodforward
(self, x)
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:48
Methodforward
(self, x)
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:61
Methodforward
x: [B, L1, C]. context: [B, L2, C] or None. mask: [B, L2] or [B, L1, L2] or None.
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:86
Methodforward
(self, x)
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:136
Methodforward
(self, x, mask=None, pos_bias=None)
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:170
Methodforward
(self, x, mask=None, encoder_states=None, enco
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:206
Methodforward
(self, lq, lk)
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:233
Methodforward
(self, ids, mask=None)
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:303
Methodforward
(self, ids, mask=None, encoder_states=None, encoder_mask=None)
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:351
Methodforward
(self, encoder_ids, encoder_mask, decoder_ids, decoder_mask)
lact_ar_video/minVid/models/wan/wan_base/modules/t5.py:408
Methodforward
(self, x, cache_x=None)
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:28
Methodforward
(self, x)
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:51
Methodforward
Fix bfloat16 support for nearest neighbor interpolation.
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:59
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:101
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:202
Methodforward
(self, x)
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:240
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:318
Methodforward
(self, x, feat_cache=None, feat_idx=[0])
lact_ar_video/minVid/models/wan/wan_base/modules/vae.py:423
Methodforward
x: [B, L, C].
lact_ar_video/minVid/models/wan/wan_base/modules/xlm_roberta.py:27
Methodforward
(self, x, mask)
lact_ar_video/minVid/models/wan/wan_base/modules/xlm_roberta.py:66
Methodforward
ids: [B, L] of torch.LongTensor.
lact_ar_video/minVid/models/wan/wan_base/modules/xlm_roberta.py:118
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:80
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:96
Methodforward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:129
Methodforward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:188
Methodforward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:255
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:304
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:342
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, 6, C] seq_lens(Tensor): Shape [B], length of ea
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:426
Methodforward
(self, image_embeds)
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:508
Methodforward
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
lact_ar_video/minVid/models/wan/wan_base/modules/hybrid_model.py:641
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:276
Methodforward
r""" Args: x(Tensor): Shape [B, L, C]
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:292
Methodforward
r""" Args: x(Tensor): Shape [B, L, num_heads, C / num_heads] seq_lens(Tensor): Shape [B] grid_sizes(Tensor
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:325
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:360
Methodforward
r""" Args: x(Tensor): Shape [B, L1, C] context(Tensor): Shape [B, L2, C] context_lens(Tensor): Shape [B]
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:398
Methodforward
r""" Args: x(Tensor): Shape [B, L, C] e(Tensor): Shape [B, 6, C] seq_lens(Tensor): Shape [B], length of ea
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:473
Methodforward
(self, image_embeds)
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:556
Methodforward
r""" Forward pass through the diffusion model Args: x (List[Tensor]): List of input video tensors, each w
lact_ar_video/minVid/models/wan/wan_base/modules/model.py:689
Methodforward
x of shape [B, C, F, H, W]
lact_ar_video/minVid/models/autoencoder/vae.py:66
Methodforward
r""" Args: x (Tensor): chunked_x, where the seq_len dimension is the seq_len for each ar chunk! Shape [real_batch
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat_sp.py:780
Methodforward
r""" Args: x (Tensor): chunked_x, where the seq_len dimension is the seq_len for each ar chunk! Shape [real_batch
lact_ar_video/minVid/models/blocks/ar_lact_swa_repeat.py:728
← previousnext →401–500 of 581, ranked by callers