MCPcopy Create free account

hub / github.com/TencentARC/AnimeGamer / functions

Functions1,003 in github.com/TencentARC/AnimeGamer

↓ 37 callersFunctionappend_dims
(t, ndims: int)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:76
↓ 31 callersMethodparameters
(self)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:1324
↓ 30 callersFunctioninstantiate_from_config
(config, **extra_kwargs)
VDM_Decoder/sgm/util.py:254
↓ 29 callersFunctionexists
(v)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:42
↓ 24 callersMethodload
(self, path, strict=True)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:1367
↓ 22 callersFunctionSequential
(*modules)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:177
↓ 22 callersFunctiondefault
(v, d)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:46
↓ 21 callersMethod__init__
(self)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:480
↓ 21 callersMethodencode
( self, x: torch.Tensor, return_reg_log: bool = False, unregularized: bool = F
VDM_Decoder/vae_modules/autoencoder.py:218
↓ 19 callersFunctionlinear
Create a linear module.
VDM_Decoder/sgm/modules/diffusionmodules/util.py:208
↓ 16 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
VDM_Decoder/sgm/modules/diffusionmodules/util.py:195
↓ 12 callersMethod__init__
(self, dim_in, dim_out)
VDM_Decoder/sgm/modules/attention.py:92
↓ 11 callersMethod__init__
(self, in_channels=3, model_channels=64)
VDM_Decoder/sgm/modules/diffusionmodules/openaimodel.py:1223
↓ 11 callersMethoddenoise
(self, x, denoiser, alpha_cumprod_sqrt, cond, uc, timestep=None, idx=None, scale=None, scale_emb=None, flow=No
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:503
↓ 10 callersMethodget_sigma_gen
(self, num_sigmas)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:62
↓ 10 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
VDM_Decoder/sgm/modules/diffusionmodules/util.py:175
↓ 10 callersFunctionpack_one
(t, pattern)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:68
↓ 10 callersMethodprepare_sampling_loop
(self, x, cond, uc=None, num_steps=None)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:485
↓ 10 callersFunctionunpack_one
(t, ps, pattern)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:72
↓ 9 callersMethod_transpose_for_scores
Transpose a 3D tensor [b, s, np*hn] into a 4D tensor with size [b, np, s, hn].
VDM_Decoder/sgm/models/sat_ours/transformer.py:103
↓ 9 callersFunctiondefault
(val, d)
VDM_Decoder/sgm/modules/attention.py:64
↓ 9 callersMethoddevice
(self)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:1308
↓ 9 callersFunctionget_context_parallel_group
()
VDM_Decoder/vae_modules/utils.py:43
↓ 9 callersFunctionleaky_relu
(p=0.1)
VDM_Decoder/sgm/modules/autoencoding/losses/video_loss.py:33
↓ 9 callersMethodload_state_dict
(self, *args, **kwargs)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:1356
↓ 9 callersFunctionto_sigma
(neg_log_sigma)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:154
↓ 8 callersMethod__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
VDM_Decoder/sgm/modules/diffusionmodules/model.py:264
↓ 8 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
VDM_Decoder/sgm/modules/diffusionmodules/util.py:127
↓ 7 callersFunctionNormalize
(in_channels, num_groups=32)
VDM_Decoder/sgm/modules/diffusionmodules/model.py:49
↓ 7 callersMethod__init__
( self, width, height, hidden_size, num_layers, time_embed_dim
VDM_Decoder/dit_video_concat.py:508
↓ 7 callersMethod__init__
(self)
VDM_Decoder/sgm/modules/autoencoding/losses/video_loss.py:81
↓ 7 callersMethod__init__
(self, config)
MLLM/src/models/mistral/modeling_mistral.py:175
↓ 7 callersMethodattention
(self, h_: torch.Tensor)
VDM_Decoder/sgm/modules/diffusionmodules/model.py:155
↓ 7 callersFunctiondefault
(*args)
VDM_Decoder/sgm/modules/autoencoding/regularizers/lookup_free_quantization.py:33
↓ 7 callersFunctiondefault
(val, d)
VDM_Decoder/vae_modules/utils.py:227
↓ 7 callersFunctionget_context_parallel_rank
()
VDM_Decoder/vae_modules/utils.py:55
↓ 7 callersFunctionget_context_parallel_world_size
()
VDM_Decoder/vae_modules/utils.py:49
↓ 7 callersFunctionnonlinearity
(x)
VDM_Decoder/sgm/modules/diffusionmodules/model.py:44
↓ 6 callersMethod__init__
( self, in_channels, with_conv, compress_time=False, )
VDM_Decoder/vae_modules/cp_enc_dec.py:532
↓ 6 callersMethod__init__
(self, **kwargs)
VDM_Decoder/vae_modules/autoencoder.py:503
↓ 6 callersMethodadd_mixin
(self, name, new_mixin, reinit=False)
VDM_Decoder/sgm/models/sat_ours/base_model.py:106
↓ 6 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
VDM_Decoder/vae_modules/utils.py:356
↓ 6 callersMethoddecode
(self, quantized: Tensor, cond: Optional[Tensor] = None, video_contains_first_frame=True)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:1450
↓ 6 callersMethoddecode
(self, z: torch.Tensor, **kwargs)
VDM_Decoder/vae_modules/autoencoder.py:232
↓ 6 callersFunctionexists
(v)
VDM_Decoder/sgm/modules/autoencoding/regularizers/lookup_free_quantization.py:29
↓ 6 callersFunctionexists
(v)
VDM_Decoder/sgm/modules/autoencoding/losses/video_loss.py:25
↓ 6 callersMethodget_input_embeddings
(self)
MLLM/src/models/mistral/modeling_mistral.py:879
↓ 6 callersMethodget_video_embeds_gt
(self, video_embeds, gen_turn_id)
MLLM/src/models_clm/models.py:228
↓ 6 callersFunctionis_odd
(n)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:80
↓ 6 callersFunctionnonlinearity
(x)
VDM_Decoder/sgm/modules/autoencoding/vqvae/vqvae_blocks.py:29
↓ 6 callersFunctionpick_video_frame
(video, frame_indices)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:106
↓ 6 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
MLLM/src/models/mistral/modeling_mistral.py:190
↓ 5 callersFunctionNormalize
(in_channels)
VDM_Decoder/sgm/modules/autoencoding/vqvae/vqvae_blocks.py:34
↓ 5 callersFunctionNormalize3D
(in_channels, zq_ch, add_conv)
VDM_Decoder/sgm/modules/autoencoding/vqvae/movq_dec_3d.py:87
↓ 5 callersMethod__init__
(self, s_churn=0.0, s_tmin=0.0, s_tmax=float("inf"), s_noise=1.0, *args, **kwargs)
VDM_Decoder/sgm/modules/diffusionmodules/sampling.py:86
↓ 5 callersMethod__init__
(self, num_tokens, codebook_dim, decay=0.99, eps=1e-5)
VDM_Decoder/sgm/modules/autoencoding/regularizers/quantize.py:298
↓ 5 callersMethod__init__
(self, in_channels, with_conv)
VDM_Decoder/sgm/modules/autoencoding/vqvae/movq_modules.py:79
↓ 5 callersMethod__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
VDM_Decoder/sgm/modules/autoencoding/vqvae/vqvae_blocks.py:159
↓ 5 callersMethod__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
VDM_Decoder/sgm/modules/autoencoding/vqvae/movq_enc_3d.py:296
↓ 5 callersFunction_conv_split
(input_, dim, kernel_size)
VDM_Decoder/vae_modules/cp_enc_dec.py:135
↓ 5 callersFunctioncast_tuple
(t, length=1)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:89
↓ 5 callersMethodencode_first_stage
(self, x, batch)
VDM_Decoder/diffusion_video.py:231
↓ 5 callersFunctionexists
(val)
VDM_Decoder/sgm/modules/attention.py:56
↓ 5 callersMethodfrom_pretrained_base
Load a pretrained checkpoint of the current model. Args: name: The identifier of the pretrained model. arg
VDM_Decoder/sgm/models/sat_ours/base_model.py:179
↓ 5 callersFunctionget_context_parallel_group_rank
()
VDM_Decoder/vae_modules/utils.py:63
↓ 5 callersFunctioninstantiate_from_config
(config)
VDM_Decoder/vae_modules/utils.py:248
↓ 5 callersFunctionmake_attn
(in_channels, attn_type="vanilla", attn_kwargs=None)
VDM_Decoder/sgm/modules/diffusionmodules/model.py:233
↓ 5 callersFunctionmodulate
(x, shift, scale)
VDM_Decoder/dit_video_concat.py:413
↓ 5 callersFunctionnonlinearity
(x)
VDM_Decoder/sgm/modules/autoencoding/vqvae/movq_modules.py:29
↓ 5 callersFunctionnonlinearity
(x)
VDM_Decoder/sgm/modules/autoencoding/vqvae/movq_dec_3d.py:43
↓ 5 callersFunctionnonlinearity
(x)
VDM_Decoder/vae_modules/cp_enc_dec.py:67
↓ 5 callersFunctionpartialclass
(cls, *args, **kwargs)
VDM_Decoder/sgm/util.py:184
↓ 5 callersMethodsample
( self, cond: Dict, uc: Union[Dict, None] = None, batch_size: int = 16,
VDM_Decoder/diffusion_video.py:251
↓ 5 callersFunctionto_d
(x, sigma, denoised)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:146
↓ 5 callersFunctionto_neg_log_sigma
(sigma)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:150
↓ 4 callersFunctionNormalize
(in_channels, zq_ch, add_conv)
VDM_Decoder/sgm/modules/autoencoding/vqvae/movq_modules.py:65
↓ 4 callersFunctionNormalize3D
(in_channels)
VDM_Decoder/sgm/modules/autoencoding/vqvae/movq_enc_3d.py:104
↓ 4 callersFunctionResidualUnit
(dim, kernel_size: Union[int, Tuple[int, int, int]], pad_mode: str = "constant")
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:843
↓ 4 callersMethod__init__
(self, in_channels, out_channels, video_kernel_size=3, *args, **kwargs)
VDM_Decoder/sgm/modules/autoencoding/temporal_ae.py:85
↓ 4 callersMethod__init__
(self, in_channels, zq_ch=None, add_conv=False)
VDM_Decoder/sgm/modules/autoencoding/vqvae/movq_dec_3d.py:156
↓ 4 callersMethod__init__
(self, hidden_size, output_dropout_prob, init_method, inner_hidden_size=None, output_layer_in
VDM_Decoder/sgm/models/sat_ours/transformer.py:207
↓ 4 callersFunction_conv_gather
(input_, dim, kernel_size)
VDM_Decoder/vae_modules/cp_enc_dec.py:162
↓ 4 callersFunctiondefault
(val, d)
VDM_Decoder/sgm/util.py:233
↓ 4 callersFunctionformat_world_strength
(index)
inference_MLLM.py:95
↓ 4 callersFunctionformat_world_strength
(index)
app.py:218
↓ 4 callersMethodforward
(self, input, timesteps, skip_video=False)
VDM_Decoder/sgm/modules/autoencoding/temporal_ae.py:99
↓ 4 callersMethodfrom_pretrained
(cls, name="vgg_lpips")
VDM_Decoder/sgm/modules/autoencoding/lpips/loss/lpips.py:34
↓ 4 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
VDM_Decoder/dit_video_concat.py:204
↓ 4 callersMethodget_output_embeddings
(self)
MLLM/src/models/mistral/modeling_mistral.py:1060
↓ 4 callersFunctionnonlinearity
(x)
VDM_Decoder/sgm/modules/autoencoding/vqvae/movq_enc_3d.py:46
↓ 4 callersFunctionpick_video_frame
(video, frame_indices)
VDM_Decoder/sgm/modules/autoencoding/losses/video_loss.py:51
↓ 4 callersFunctionzero_module
Zero out the parameters of a module and return it.
VDM_Decoder/sgm/modules/diffusionmodules/util.py:150
↓ 3 callersMethod__init__
(self, in_features, out_features, rank=4, network_alpha=None, device=None, dtype=None)
VDM_Decoder/sgm/modules/diffusionmodules/lora.py:23
↓ 3 callersMethod__init__
(self, use_dropout=True)
VDM_Decoder/sgm/modules/autoencoding/lpips/loss/lpips.py:14
↓ 3 callersFunctionapply_rotary_pos_emb
Applies Rotary Position Embedding to the query and key tensors. Args: q (`torch.Tensor`): The query tensor. k (`torch.Tensor`): T
MLLM/src/models/mistral/modeling_mistral.py:146
↓ 3 callersMethodcollect_hooks_
(self)
VDM_Decoder/sgm/models/sat_ours/base_model.py:132
↓ 3 callersFunctionconstrain
(value)
app.py:398
↓ 3 callersMethoddecode_first_stage
(self, z)
VDM_Decoder/diffusion_video.py:214
↓ 3 callersFunctiondivisible_by
(num, den)
VDM_Decoder/sgm/modules/autoencoding/magvit2_pytorch.py:64
↓ 3 callersFunctionfn
(tau)
VDM_Decoder/sgm/modules/diffusionmodules/sampling_utils.py:124
next →1–100 of 1,003, ranked by callers