MCPcopy Create free account

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

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

↓ 5 callersFunctioncast_tuple
(t, length=1)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:89
↓ 5 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/sgm/modules/diffusionmodules/util.py:127
↓ 5 callersMethoddecode
(self, x)
utils_data/opensora/models/vae/vae.py:36
↓ 5 callersMethoddecode
(self, quantized: Tensor, cond: Optional[Tensor] = None, video_contains_first_frame=True)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:1450
↓ 5 callersFunctiondefault
(val, d)
cogvideox-based/sat/vae_modules/attention.py:64
↓ 5 callersMethodencode
( self, x: torch.Tensor, return_reg_log: bool = False, unregularized: bool = F
cogvideox-based/sat/sgm/models/autoencoder.py:202
↓ 5 callersMethodencode_first_stage
(self, x, batch=None)
cogvideox-based/sat/diffusion_video.py:188
↓ 5 callersFunctionexists
(val)
cogvideox-based/sat/sgm/modules/attention.py:56
↓ 5 callersFunctiongather_forward_split_backward
(input_, process_group, dim, grad_scale=None)
utils_data/opensora/acceleration/communications.py:187
↓ 5 callersFunctionget_context_parallel_group_rank
()
cogvideox-based/sat/vae_modules/utils.py:63
↓ 5 callersFunctionget_context_parallel_world_size
()
cogvideox-based/sat/sgm/util.py:56
↓ 5 callersMethodget_time_steps
Compute the intermediate time steps for sampling. Args: skip_type: A `str`. The type for the spacing of the time steps. We suppor
utils_data/opensora/schedulers/dpms/dpm_solver.py:575
↓ 5 callersFunctioninstantiate_from_config
(config)
cogvideox-based/sat/vae_modules/utils.py:246
↓ 5 callersMethodinverse_lambda
Compute the continuous-time label t in [0, T] of a given half-logSNR lambda_t.
utils_data/opensora/schedulers/dpms/dpm_solver.py:275
↓ 5 callersFunctionmake_attn
(in_channels, attn_type="vanilla", attn_kwargs=None)
cogvideox-based/sat/sgm/modules/diffusionmodules/model.py:233
↓ 5 callersFunctionmodulate
(x, shift, scale)
cogvideox-based/sat/dit_video_concat.py:349
↓ 5 callersFunctionnonlinearity
(x)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:69
↓ 5 callersFunctionnonlinearity
(x)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_modules.py:29
↓ 5 callersFunctionnonlinearity
(x)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_dec_3d.py:43
↓ 5 callersFunctionnonlinearity
(x)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_dec_3d_dev.py:48
↓ 5 callersFunctionnonlinearity
(x)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:67
↓ 5 callersFunctionpartialclass
(cls, *args, **kwargs)
cogvideox-based/sat/sgm/util.py:184
↓ 5 callersFunctionto_d
(x, sigma, denoised)
cogvideox-based/sat/sgm/modules/diffusionmodules/sampling_utils.py:146
↓ 5 callersFunctionto_neg_log_sigma
(sigma)
cogvideox-based/sat/sgm/modules/diffusionmodules/sampling_utils.py:150
↓ 4 callersFunctionNormalize
(in_channels, zq_ch, add_conv)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_modules.py:65
↓ 4 callersFunctionNormalize3D
(in_channels)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_enc_3d.py:104
↓ 4 callersFunctionResidualUnit
(dim, kernel_size: Union[int, Tuple[int, int, int]], pad_mode: str = "constant")
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:843
↓ 4 callersMethod__init__
(self, in_channels, out_channels, video_kernel_size=3, *args, **kwargs)
cogvideox-based/sat/sgm/modules/autoencoding/temporal_ae.py:85
↓ 4 callersMethod__init__
(self, in_channels, zq_ch=None, add_conv=False)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_dec_3d.py:156
↓ 4 callersMethod__init__
(self, in_channels, zq_ch=None, add_conv=False)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_dec_3d_dev.py:180
↓ 4 callersFunction_conv_gather
(input_, dim, kernel_size)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:163
↓ 4 callersFunction_conv_gather
(input_, dim, kernel_size)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:162
↓ 4 callersFunction_ntuple
(n)
utils_data/opensora/utils/misc.py:193
↓ 4 callersMethod_sigma_to_t
(self, sigma)
video_to_video/diffusion/diffusion_sdedit.py:415
↓ 4 callersMethod_wrap_model
(self, model)
utils_data/opensora/schedulers/iddpm/respace.py:105
↓ 4 callersFunctionall_to_all
( input_: torch.Tensor, process_group: dist.ProcessGroup, scatter_dim: int = 2, gather_dim: in
utils_data/opensora/acceleration/communications.py:57
↓ 4 callersFunctiondefault
(val, d)
cogvideox-based/sat/sgm/util.py:233
↓ 4 callersMethoddenoise
(self, xt, t, s, model, model_
video_to_video/diffusion/diffusion_sdedit.py:44
↓ 4 callersFunctionexists
(val)
cogvideox-based/sat/vae_modules/attention.py:56
↓ 4 callersMethodforward
(self, input, timesteps, skip_video=False)
cogvideox-based/sat/sgm/modules/autoencoding/temporal_ae.py:99
↓ 4 callersFunctionget_context_parallel_group_rank
()
cogvideox-based/sat/sgm/util.py:70
↓ 4 callersFunctionget_obj_from_str
(string, reload=False, invalidate_cache=True)
cogvideox-based/sat/sgm/util.py:264
↓ 4 callersFunctioninitialize_context_parallel
(context_parallel_size)
cogvideox-based/sat/sgm/util.py:32
↓ 4 callersFunctionkarras_schedule
(n, sigma_min=0.002, sigma_max=80.0, rho=7.0)
video_to_video/diffusion/schedules_sdedit.py:54
↓ 4 callersMethodmake_zero_conv
(self, in_channels, out_channels=None)
video_to_video/modules/unet_v2v.py:2130
↓ 4 callersMethodmarginal_alpha
Compute alpha_t of a given continuous-time label t in [0, T].
utils_data/opensora/schedulers/dpms/dpm_solver.py:255
↓ 4 callersFunctionnoise_pred_fn
(x, t_continuous, cond=None)
utils_data/opensora/schedulers/dpms/dpm_solver.py:405
↓ 4 callersFunctionnonlinearity
(x)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_enc_3d.py:46
↓ 4 callersMethodnull
(self, n)
utils_data/opensora/models/text_encoder/t5.py:194
↓ 4 callersMethodp_mean_variance
Apply the model to get p(x_{t-1} | x_t), as well as a prediction of the initial x, x_0. :param model: the model, which takes
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:245
↓ 4 callersFunctionpick_video_frame
(video, frame_indices)
cogvideox-based/sat/sgm/modules/autoencoding/losses/video_loss.py:51
↓ 4 callersFunctionzero_module
Zero out the parameters of a module and return it.
cogvideox-based/sat/sgm/modules/diffusionmodules/util.py:203
↓ 3 callersMethod__init__
(self, in_features, out_features, rank=4, network_alpha=None, device=None, dtype=None)
cogvideox-based/sat/sgm/modules/diffusionmodules/lora.py:23
↓ 3 callersMethod__init__
(self, use_dropout=True)
cogvideox-based/sat/sgm/modules/autoencoding/lpips/loss/lpips.py:14
↓ 3 callersMethod_forward_single
(self, module, x, e,
video_to_video/modules/unet_v2v.py:1629
↓ 3 callersMethod_forward_single
(self, module, x, e,
video_to_video/modules/unet_v2v.py:1811
↓ 3 callersMethod_forward_single
(self, module, x, e,
video_to_video/modules/unet_v2v.py:2208
↓ 3 callersFunction_gather
( input_: torch.Tensor, world_size: int, group: dist.ProcessGroup, gather_dim: int, )
utils_data/opensora/acceleration/communications.py:66
↓ 3 callersMethod_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:330
↓ 3 callersFunction_split
(input_, pg: dist.ProcessGroup, dim=-1)
utils_data/opensora/acceleration/communications.py:83
↓ 3 callersMethod_vb_terms_bpd
Get a term for the variational lower-bound. The resulting units are bits (rather than nats, as one might expect). This allows
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:659
↓ 3 callersFunctiondivisible_by
(num, den)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:64
↓ 3 callersMethoddpm_solver_first_update
DPM-Solver-1 (equivalent to DDIM) from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s`.
utils_data/opensora/schedulers/dpms/dpm_solver.py:700
↓ 3 callersMethodencode
( self, x: torch.Tensor, return_reg_log: bool = False, unregularized: bool = F
cogvideox-based/sat/vae_modules/autoencoder.py:218
↓ 3 callersFunctionfn
(tau)
cogvideox-based/sat/sgm/modules/diffusionmodules/sampling_utils.py:124
↓ 3 callersMethodforward
(self, hidden_states)
cogvideox-based/sat/sgm/modules/diffusionmodules/lora.py:38
↓ 3 callersMethodforward
(self, x, space_only=False, time_only=False)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:485
↓ 3 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)
utils_data/opensora/models/layers/blocks.py:1202
↓ 3 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)
cogvideox-based/sat/dit_video_concat.py:159
↓ 3 callersMethodget_input
(self, batch: Dict)
cogvideox-based/sat/sgm/models/autoencoder.py:176
↓ 3 callersMethodget_input
(self, batch: Dict)
cogvideox-based/sat/vae_modules/autoencoder.py:192
↓ 3 callersFunctionget_obj_from_str
(string, reload=False, invalidate_cache=True)
cogvideox-based/sat/vae_modules/utils.py:256
↓ 3 callersFunctionget_scalings
(sigma)
video_to_video/diffusion/solvers_sdedit.py:27
↓ 3 callersFunctionget_transforms_video
(name="center", image_size=(256, 256))
utils_data/opensora/datasets/utils.py:118
↓ 3 callersMethodget_type
(self, path)
utils_data/opensora/datasets/datasets.py:56
↓ 3 callersFunctiongrad_layer_wrt_loss
(loss: Tensor, layer: nn.Parameter)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:149
↓ 3 callersFunctioninitialize_context_parallel
(context_parallel_size)
cogvideox-based/sat/vae_modules/utils.py:25
↓ 3 callersFunctionleaky_relu
(p=0.1)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:135
↓ 3 callersFunctionlog_txt_as_img
(wh, xc, size=10)
cogvideox-based/sat/sgm/util.py:156
↓ 3 callersFunctionmaybe_del_attr_
(o, attr)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:84
↓ 3 callersFunctionmesh_grid
Generate the mesh grid, centering at zero. Args: kernel_size (int): Returns: xy (ndarray): with the shape (kernel_size, ke
utils_data/opensora/datasets/high_order/utils_blur.py:429
↓ 3 callersFunctionmodulate
(norm_func, x, shift, scale)
utils_data/opensora/models/layers/blocks.py:63
↓ 3 callersMethodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:406
↓ 3 callersFunctionpad_at_dim
(t, pad, dim=-1, value=0.0)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:100
↓ 3 callersFunctionpair
(t)
cogvideox-based/sat/sgm/modules/autoencoding/losses/video_loss.py:29
↓ 3 callersMethodprepare_inputs
(self, x: torch.Tensor, s: float, c: Dict, uc: Dict)
cogvideox-based/sat/sgm/modules/diffusionmodules/guiders.py:18
↓ 3 callersFunctionprob_mask_like
(shape, prob, device)
video_to_video/modules/unet_v2v.py:121
↓ 3 callersMethodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0)
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:225
↓ 3 callersMethodrotary
(self, t, **kwargs)
cogvideox-based/sat/dit_video_concat.py:306
↓ 3 callersMethodsampler_step
(self, sigma, next_sigma, denoiser, x, cond, uc=None, gamma=0.0)
cogvideox-based/sat/sgm/modules/diffusionmodules/sampling.py:94
↓ 3 callersFunctionsigma_matrix2
Calculate the rotated sigma matrix (two dimensional matrix). Args: sig_x (float): sig_y (float): theta (float): Radian
utils_data/opensora/datasets/high_order/utils_blur.py:415
↓ 3 callersMethodsinglestep_dpm_solver_second_update
Singlestep solver DPM-Solver-2 from time `s` to time `t`. Args: x: A pytorch tensor. The initial value at time `s`.
utils_data/opensora/schedulers/dpms/dpm_solver.py:734
↓ 3 callersFunctionsinusoidal_embedding
(timesteps, dim)
video_to_video/modules/unet_v2v.py:96
↓ 3 callersMethodsort
(a, b)
video_to_video/diffusion/solvers_sdedit.py:100
↓ 3 callersFunctionto_tensor
Convert tensor data type from uint8 to float, divide value by 255.0 and permute the dimensions of clip tensor Args: clip (torch.t
utils_data/opensora/datasets/video_transforms.py:168
↓ 2 callersFunctionNormalize
(in_channels)
cogvideox-based/sat/sgm/modules/attention.py:114
↓ 2 callersFunctionNormalize
(in_channels)
cogvideox-based/sat/vae_modules/attention.py:114
↓ 2 callersFunctionSameConv2d
(dim_in, dim_out, kernel_size)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:802
↓ 2 callersMethod__init__
( self, data_path, num_frames=16, frame_interval=1, image_size=(256, 2
utils_data/opensora/datasets/datasets.py:28
↓ 2 callersMethod__init__
( self, from_pretrained, model_max_length=77, device="cuda", dtype=tor
utils_data/opensora/models/text_encoder/clip.py:87
← previousnext →101–200 of 1,973, ranked by callers