MCPcopy Create free account

hub / github.com/NJU-PCALab/STAR / functions

Functions1,973 in github.com/NJU-PCALab/STAR

↓ 257 callersMethodto
(self, dtype)
utils_data/opensora/models/text_encoder/clip.py:112
↓ 55 callersMethodparameters
(self)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:1324
↓ 46 callersMethodrepeat
(x, k=2)
utils_data/opensora/datasets/high_order/utils_jpeg.py:387
↓ 41 callersFunctionappend_dims
(t, ndims: int)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:76
↓ 33 callersFunctionget_sequence_parallel_group
()
utils_data/opensora/acceleration/parallel_states.py:18
↓ 31 callersFunctionauto_grad_checkpoint
(module, *args, **kwargs)
utils_data/opensora/acceleration/checkpoint.py:18
↓ 31 callersFunctioninstantiate_from_config
(config, **extra_kwargs)
cogvideox-based/sat/sgm/util.py:254
↓ 29 callersFunctionexists
(v)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:42
↓ 27 callersMethodload
(self, path, strict=True)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:1367
↓ 25 callersMethod__init__
(self, dim_in, dim_out)
video_to_video/modules/unet_v2v.py:498
↓ 24 callersFunctionget_layernorm
(hidden_size: torch.Tensor, eps: float, affine: bool, use_kernel: bool)
utils_data/opensora/models/layers/blocks.py:51
↓ 23 callersMethod__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, qk_norm:
utils_data/opensora/models/layers/blocks.py:141
↓ 23 callersFunction_extract_into_tensor
Extract values from a 1-D numpy array for a batch of indices. :param arr: the 1-D numpy array. :param timesteps: a tensor of indices into
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:839
↓ 22 callersFunctionSequential
(*modules)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:177
↓ 22 callersFunctiondefault
(v, d)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:46
↓ 22 callersFunctiont2i_modulate
(x, shift, scale)
utils_data/opensora/models/layers/blocks.py:72
↓ 21 callersMethod__init__
(self)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:480
↓ 20 callersMethodfrom_pretrained
(cls, name="vgg_lpips")
cogvideox-based/sat/sgm/modules/autoencoding/lpips/loss/lpips.py:34
↓ 19 callersMethodmarginal_lambda
Compute lambda_t = log(alpha_t) - log(sigma_t) of a given continuous-time label t in [0, T].
utils_data/opensora/schedulers/dpms/dpm_solver.py:267
↓ 19 callersMethodmarginal_std
Compute sigma_t of a given continuous-time label t in [0, T].
utils_data/opensora/schedulers/dpms/dpm_solver.py:261
↓ 17 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
cogvideox-based/sat/sgm/modules/diffusionmodules/util.py:248
↓ 17 callersFunctionlinear
Create a linear module.
cogvideox-based/sat/sgm/modules/diffusionmodules/util.py:261
↓ 16 callersMethodmarginal_log_mean_coeff
Compute log(alpha_t) of a given continuous-time label t in [0, T].
utils_data/opensora/schedulers/dpms/dpm_solver.py:244
↓ 15 callersMethodbroadcast
(self, src, dst)
video_to_video/modules/unet_v2v.py:90
↓ 15 callersMethodmodel_fn
Convert the model to the noise prediction model or the data prediction model.
utils_data/opensora/schedulers/dpms/dpm_solver.py:566
↓ 14 callersMethod__init__
(self)
utils_data/opensora/datasets/high_order/utils_jpeg.py:158
↓ 14 callersFunctionfilter2D
PyTorch version of cv2.filter2D Args: img (Tensor): (b, c, h, w) kernel (Tensor): (b, k, k)
utils_data/opensora/datasets/high_order/utils_.py:14
↓ 13 callersMethoddevice
(self)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:1308
↓ 12 callersFunctioncircular_lowpass_kernel
2D sinc filter, ref: https://dsp.stackexchange.com/questions/58301/2-d-circularly-symmetric-low-pass-filter Args: cutoff (float): cutoff
utils_data/opensora/datasets/high_order/utils_blur.py:459
↓ 12 callersFunctiondefault
(val, d)
cogvideox-based/sat/sgm/modules/attention.py:64
↓ 12 callersFunctionget_1d_sincos_pos_embed
(embed_dim, length, scale=1.0)
utils_data/opensora/models/layers/blocks.py:1197
↓ 12 callersFunctionload_checkpoint
(model, ckpt_path, save_as_pt=True)
utils_data/opensora/utils/ckpt_utils.py:216
↓ 12 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
cogvideox-based/sat/sgm/modules/diffusionmodules/util.py:228
↓ 11 callersMethod__init__
(self, in_channels=3, model_channels=64)
cogvideox-based/sat/sgm/modules/diffusionmodules/openaimodel.py:1225
↓ 11 callersMethoddenoise
(self, x, denoiser, alpha_cumprod_sqrt, cond, uc, timestep=None, idx=None, scale=None, scale_emb=None, lq=None
cogvideox-based/sat/sgm/modules/diffusionmodules/sampling.py:503
↓ 11 callersFunctionget_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/
utils_data/opensora/models/layers/blocks.py:1162
↓ 11 callersMethodload_state_dict
(self, *args, **kwargs)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:1356
↓ 11 callersFunctionsplit_forward_gather_backward
(input_, process_group, dim, grad_scale=1.0)
utils_data/opensora/acceleration/communications.py:183
↓ 10 callersFunctioncenter_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
utils_data/opensora/datasets/utils.py:236
↓ 10 callersMethodget_sigma_gen
(self, num_sigmas)
cogvideox-based/sat/sgm/modules/diffusionmodules/sampling.py:62
↓ 10 callersFunctionpack_one
(t, pattern)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:68
↓ 10 callersMethodprepare_sampling_loop
(self, x, cond, uc=None, num_steps=None)
cogvideox-based/sat/sgm/modules/diffusionmodules/sampling.py:485
↓ 10 callersFunctionunpack_one
(t, ps, pattern)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:72
↓ 9 callersFunction_i
(tensor, t, x)
video_to_video/diffusion/diffusion_sdedit.py:15
↓ 9 callersFunctionexpand_dims
Expand the tensor `v` to the dim `dims`. Args: `v`: a PyTorch tensor with shape [N]. `dim`: a `int`. Returns: a
utils_data/opensora/schedulers/dpms/dpm_solver.py:1525
↓ 9 callersFunctionget_context_parallel_group
()
cogvideox-based/sat/vae_modules/utils.py:43
↓ 9 callersFunctionleaky_relu
(p=0.1)
cogvideox-based/sat/sgm/modules/autoencoding/losses/video_loss.py:33
↓ 9 callersFunctionresize
(clip, target_size, interpolation_mode)
utils_data/opensora/datasets/video_transforms.py:84
↓ 9 callersFunctionto_sigma
(neg_log_sigma)
cogvideox-based/sat/sgm/modules/diffusionmodules/sampling_utils.py:154
↓ 8 callersMethod__init__
(self, dim_in, dim_out)
cogvideox-based/sat/sgm/modules/attention.py:83
↓ 8 callersMethod__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
cogvideox-based/sat/sgm/modules/diffusionmodules/model.py:264
↓ 8 callersMethod__init__
(self, dim_in, dim_out)
cogvideox-based/sat/vae_modules/attention.py:83
↓ 8 callersFunction_is_tensor_video_clip
(clip)
utils_data/opensora/datasets/video_transforms.py:23
↓ 8 callersFunctiondefault
(val, d)
video_to_video/modules/unet_v2v.py:115
↓ 8 callersMethodencode
(self, text)
utils_data/opensora/models/text_encoder/t5.py:189
↓ 8 callersFunctionexists
(x)
video_to_video/modules/unet_v2v.py:111
↓ 8 callersFunctionrandom_mixed_kernels
Randomly generate mixed kernels. Args: kernel_list (tuple): a list name of kernel types, support ['iso', 'aniso', 'skew', '
utils_data/opensora/datasets/high_order/utils_blur.py:271
↓ 7 callersFunctionNormalize
(in_channels, num_groups=32)
cogvideox-based/sat/sgm/modules/diffusionmodules/model.py:49
↓ 7 callersMethod__init__
(self, dim, growth_rate=2.0)
utils_data/opensora/models/vsr/safmn_arch.py:85
↓ 7 callersMethod__init__
(self, hidden_size, output_dropout_prob, init_method, inner_hidden_size=None, output_layer_in
cogvideox-based/transformer.py:203
↓ 7 callersMethod__init__
(self)
cogvideox-based/sat/sgm/modules/autoencoding/losses/video_loss.py:81
↓ 7 callersFunctioncrop
Args: clip (torch.tensor): Video clip to be cropped. Size is (T, C, H, W)
utils_data/opensora/datasets/video_transforms.py:50
↓ 7 callersMethoddecode
(self, z: torch.Tensor, **kwargs)
cogvideox-based/sat/sgm/models/autoencoder.py:217
↓ 7 callersFunctiondefault
(*args)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/lookup_free_quantization.py:33
↓ 7 callersFunctiondefault
(val, d)
cogvideox-based/sat/vae_modules/utils.py:225
↓ 7 callersFunctionget_context_parallel_rank
()
cogvideox-based/sat/sgm/util.py:62
↓ 7 callersFunctionget_context_parallel_rank
()
cogvideox-based/sat/vae_modules/utils.py:55
↓ 7 callersFunctionget_context_parallel_world_size
()
cogvideox-based/sat/vae_modules/utils.py:49
↓ 7 callersFunctionnonlinearity
(x)
cogvideox-based/sat/sgm/modules/diffusionmodules/model.py:44
↓ 7 callersFunctionrandom_add_poisson_noise_pt
(img, scale_range=(0, 1.0), gray_prob=0, clip=True, rounds=False)
utils_data/opensora/datasets/high_order/utils_noise.py:108
↓ 7 callersMethodstate_dict
(self, *args, **kwargs)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:1352
↓ 7 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
cogvideox-based/sat/sgm/modules/diffusionmodules/util.py:180
↓ 7 callersFunctionzero_module
Zero out the parameters of a module and return it.
video_to_video/modules/unet_v2v.py:507
↓ 6 callersMethod__init__
( self, width, height, hidden_size, num_layers, time_embed_dim
cogvideox-based/sat/dit_video_concat.py:445
↓ 6 callersMethod__init__
( self, in_channels, with_conv, compress_time=False, )
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:434
↓ 6 callersMethod__init__
( self, in_channels, with_conv, compress_time=False, )
cogvideox-based/sat/vae_modules/cp_enc_dec.py:532
↓ 6 callersMethod__init__
(self, **kwargs)
cogvideox-based/sat/vae_modules/autoencoder.py:503
↓ 6 callersMethodattention
(self, h_: torch.Tensor)
cogvideox-based/sat/sgm/modules/diffusionmodules/model.py:155
↓ 6 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
cogvideox-based/sat/vae_modules/utils.py:354
↓ 6 callersFunctionexists
(v)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/lookup_free_quantization.py:29
↓ 6 callersFunctionexists
(v)
cogvideox-based/sat/sgm/modules/autoencoding/losses/video_loss.py:25
↓ 6 callersFunctionget_context_parallel_group
()
cogvideox-based/sat/sgm/util.py:50
↓ 6 callersFunctionget_logger
Get logging logger Args: log_file: Log filename, if specified, file handler will be added to logger log_level: Loggi
video_to_video/utils/logger.py:14
↓ 6 callersFunctionis_odd
(n)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:80
↓ 6 callersMethodload_state_dict
(self, state_dict: Mapping[str, Any], strict: bool = True)
utils_data/opensora/models/stdit/stdit_controlnet.py:173
↓ 6 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:24
↓ 6 callersFunctionnonlinearity
(x)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/vqvae_blocks.py:29
↓ 6 callersFunctionpick_video_frame
(video, frame_indices)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:106
↓ 6 callersFunctionrandom_add_gaussian_noise_pt
(img, sigma_range=(0, 1.0), gray_prob=0, clip=True, rounds=False)
utils_data/opensora/datasets/high_order/utils_noise.py:37
↓ 5 callersFunctionNormalize
(in_channels)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/vqvae_blocks.py:34
↓ 5 callersFunctionNormalize3D
(in_channels, zq_ch, add_conv)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_dec_3d.py:87
↓ 5 callersFunctionNormalize3D
(in_channels, zq_ch, add_conv)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_dec_3d_dev.py:95
↓ 5 callersMethod__init__
(self, s_churn=0.0, s_tmin=0.0, s_tmax=float("inf"), s_noise=1.0, *args, **kwargs)
cogvideox-based/sat/sgm/modules/diffusionmodules/sampling.py:86
↓ 5 callersMethod__init__
(self, num_tokens, codebook_dim, decay=0.99, eps=1e-5)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/quantize.py:298
↓ 5 callersMethod__init__
(self, in_channels, with_conv)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_modules.py:79
↓ 5 callersMethod__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/vqvae_blocks.py:159
↓ 5 callersMethod__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_enc_3d.py:296
↓ 5 callersMethod__init__
( self, *args, encoder_config: Dict, decoder_config: Dict, loss_config
cogvideox-based/sat/sgm/models/autoencoder.py:119
↓ 5 callersFunction_conv_split
(input_, dim, kernel_size)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:137
↓ 5 callersFunction_conv_split
(input_, dim, kernel_size)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:135
next →1–100 of 1,973, ranked by callers