MCPcopy Create free account

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

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

↓ 1 callersFunctionbivariate_generalized_Gaussian
Generate a bivariate generalized Gaussian kernel. Described in `Parameter Estimation For Multivariate Generalized Gaussian Distribut
utils_data/opensora/datasets/high_order/utils_blur.py:65
↓ 1 callersFunctionbivariate_plateau
Generate a plateau-like anisotropic kernel. 1 / (1+x^(beta)) Ref: https://stats.stackexchange.com/questions/203629/is-there-a-plateau-shaped
utils_data/opensora/datasets/high_order/utils_blur.py:95
↓ 1 callersMethodblur_1
(self, img, kernel1)
utils_data/opensora/datasets/high_order/degrade_video.py:195
↓ 1 callersMethodblur_1
(self, img, kernel1)
utils_data/opensora/datasets/high_order/RealESRGAN_Deg_pipeline.py:133
↓ 1 callersMethodblur_1
(self, img, kernel1)
utils_data/opensora/datasets/high_order/degrade_video_mid.py:197
↓ 1 callersMethodblur_2
(self, img, kernel2)
utils_data/opensora/datasets/high_order/degrade_video.py:199
↓ 1 callersMethodblur_2
(self, img, kernel2)
utils_data/opensora/datasets/high_order/RealESRGAN_Deg_pipeline.py:137
↓ 1 callersMethodbound
Bound `z`, an array of shape (..., d).
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:91
↓ 1 callersFunctionbroadcat
(tensors, dim=-1)
cogvideox-based/sat/dit_video_concat.py:228
↓ 1 callersFunctionbuild_module
Build module from config or return the module itself. Args: module (Union[dict, nn.Module]): The module to build. builder (Regist
utils_data/opensora/registry.py:7
↓ 1 callersMethodcalculate_adaptive_weight
( self, nll_loss: torch.Tensor, g_loss: torch.Tensor, last_layer: torch.Tensor )
cogvideox-based/sat/sgm/modules/autoencoding/losses/discriminator_loss.py:188
↓ 1 callersFunctioncast_tuple
(t, length=1)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:28
↓ 1 callersFunctioncast_tuple
(t, length=1)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_enc_3d.py:13
↓ 1 callersFunctioncast_tuple
(t, length=1)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:26
↓ 1 callersFunctioncenter_crop_using_short_edge
(clip)
utils_data/opensora/datasets/video_transforms.py:133
↓ 1 callersMethodcluster_size_ema_update
(self, new_cluster_size)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/quantize.py:311
↓ 1 callersMethodcodes_to_indices
Converts a `code` to an index in the codebook.
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:112
↓ 1 callersFunctioncollate_fn
Prepare the input just before the forward function. This method will move the tensors to the right device. Usually this method does not need t
inference_utils.py:109
↓ 1 callersFunctioncond_grad_fn
Compute the gradient of the classifier, i.e. nabla_{x} log p_t(cond | x_t).
utils_data/opensora/schedulers/dpms/dpm_solver.py:423
↓ 1 callersMethodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:335
↓ 1 callersFunctionconv_gather_from_context_parallel_region
(input_, dim, kernel_size)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:287
↓ 1 callersFunctionconv_gather_from_context_parallel_region
(input_, dim, kernel_size)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:348
↓ 1 callersFunctionconv_pass_from_last_rank
(input_, dim, kernel_size)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:291
↓ 1 callersFunctionconv_scatter_to_context_parallel_region
(input_, dim, kernel_size)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:283
↓ 1 callersFunctionconv_scatter_to_context_parallel_region
(input_, dim, kernel_size)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:344
↓ 1 callersFunctionconvert_prompt
(prompt: str, retry_times: int = 3)
cogvideox-based/inference/gradio_web_demo.py:55
↓ 1 callersFunctionconvert_to_gif
(video_path)
cogvideox-based/inference/gradio_web_demo.py:127
↓ 1 callersFunctionconvert_transformer
(ckpt_path: str)
cogvideox-based/tools/convert_weight_sat2hf.py:161
↓ 1 callersFunctionconvert_vae
(ckpt_path: str)
cogvideox-based/tools/convert_weight_sat2hf.py:184
↓ 1 callersMethodcopy_to
(self, model)
cogvideox-based/sat/sgm/modules/ema.py:52
↓ 1 callersMethodcopy_to
(self, model)
cogvideox-based/sat/vae_modules/ema.py:52
↓ 1 callersFunctioncount_params
(model, verbose=False)
cogvideox-based/sat/sgm/util.py:247
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:500
↓ 1 callersMethodddim_sample_loop_progressive
Use DDIM to sample from the model and yield intermediate samples from each timestep of DDIM. Same usage as p_sample_loop_prog
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:610
↓ 1 callersMethoddecode
( self, z: torch.Tensor, input_cp: bool = False, output_cp: bool = False,
cogvideox-based/sat/sgm/models/autoencoder.py:594
↓ 1 callersMethoddecode
( self, z: torch.Tensor, input_cp: bool = False, output_cp: bool = False,
cogvideox-based/sat/vae_modules/autoencoder.py:617
↓ 1 callersFunctiondegradation_process
(video_array)
utils_data/opensora/datasets/high_order/degrade_video.py:475
↓ 1 callersMethoddenoise_to_zero_fn
Denoise at the final step, which is equivalent to solve the ODE from lambda_s to infty by first-order discretization.
utils_data/opensora/schedulers/dpms/dpm_solver.py:694
↓ 1 callersFunctiondiscretized_gaussian_log_likelihood
Compute the log-likelihood of a Gaussian distribution discretizing to a given image. :param x: the target images. It is assumed that this
utils_data/opensora/schedulers/iddpm/diffusion_utils.py:61
↓ 1 callersFunctiondivisible_by
(num, den)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:32
↓ 1 callersFunctiondivisible_by
(num, den)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_dec_3d.py:14
↓ 1 callersFunctiondivisible_by
(num, den)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_enc_3d.py:17
↓ 1 callersFunctiondivisible_by
(num, den)
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/movq_dec_3d_dev.py:19
↓ 1 callersFunctiondivisible_by
(num, den)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:30
↓ 1 callersFunctiondownload
(url, local_path, chunk_size=1024)
cogvideox-based/sat/sgm/modules/autoencoding/lpips/util.py:16
↓ 1 callersFunctiondownload_model
Downloads a pre-trained DiT model from the web.
utils_data/opensora/utils/ckpt_utils.py:78
↓ 1 callersMethoddpm_solver_adaptive
The adaptive step size solver based on singlestep DPM-Solver. Args: x: A pytorch tensor. The initial value at time `t_T`
utils_data/opensora/schedulers/dpms/dpm_solver.py:1121
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). This is the same as the DropConnect impl I created for E
utils_data/opensora/models/layers/timm_uvit.py:65
↓ 1 callersFunctiondwt_init
(x)
utils_data/opensora/utils/wavelet.py:13
↓ 1 callersMethodembed_avg_ema_update
(self, new_embed_avg)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/quantize.py:314
↓ 1 callersMethodencode
(self, video: Tensor, quantize=False, cond: Optional[Tensor] = None, video_contains_first_frame=True)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:1383
↓ 1 callersMethodencode
( self, x: torch.Tensor, return_reg_log: bool = False, unregularized: bool = F
cogvideox-based/sat/sgm/models/autoencoder.py:562
↓ 1 callersMethodencode
( self, x: torch.Tensor, return_reg_log: bool = False, unregularized: bool = F
cogvideox-based/sat/vae_modules/autoencoder.py:588
↓ 1 callersMethodencode_with_transformer
(self, text)
video_to_video/modules/embedder.py:54
↓ 1 callersMethodenhance_a_video
(self, video_path, prompt)
video_super_resolution/scripts/inference_sr.py:50
↓ 1 callersFunctionexists
(x)
cogvideox-based/sat/sgm/util.py:223
↓ 1 callersFunctionexists
(v)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:19
↓ 1 callersFunctionexists
(x)
cogvideox-based/sat/vae_modules/utils.py:215
↓ 1 callersFunctionexport_to_video_imageio
Export the video frames to a video file using imageio lib to Avoid "green screen" issue (for example CogVideoX)
cogvideox-based/inference/cli_demo.py:24
↓ 1 callersFunctionexport_to_video_imageio
Export the video frames to a video file using imageio lib to Avoid "green screen" issue (for example CogVideoX)
cogvideox-based/inference/gradio_web_demo.py:36
↓ 1 callersFunctionfake_cp_pass_from_previous_rank
(input_, dim, kernel_size, cache_padding)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:356
↓ 1 callersFunctionfind_model
Finds a pre-trained DiT model, downloading it if necessary. Alternatively, loads a model from a local path.
utils_data/opensora/utils/ckpt_utils.py:51
↓ 1 callersFunctionformat_numel_str
(numel: int)
video_super_resolution/scripts/train_sr.py:49
↓ 1 callersMethodforward
(self, hidden_states)
cogvideox-based/sat/sgm/modules/fuse_sft_block.py:7
↓ 1 callersMethodforward
(self, x)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:446
↓ 1 callersMethodforward
(self, x)
cogvideox-based/sat/sgm/modules/diffusionmodules/openaimodel.py:138
↓ 1 callersMethodforward
(self, x)
cogvideox-based/sat/sgm/modules/diffusionmodules/util.py:239
↓ 1 callersMethodforward
(self, x, t=None, context=None)
cogvideox-based/sat/sgm/modules/diffusionmodules/model.py:381
↓ 1 callersMethodforward
( self, video_or_images: Tensor, cond: Optional[Tensor] = None, return_loss=Fa
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:1509
↓ 1 callersMethodforward
(self, embed_id)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/quantize.py:308
↓ 1 callersMethodforward
(self, x)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:544
↓ 1 callersMethodforward_c
(self, c)
utils_data/opensora/models/stdit/stdit_controlnet_mvdit.py:96
↓ 1 callersMethodforward_c
(self, c)
utils_data/opensora/models/stdit/stdit_controlnet.py:96
↓ 1 callersMethodforward_c
(self, c)
utils_data/opensora/models/stdit/stdit_controlnet_qknorm.py:96
↓ 1 callersMethodforward_deg
(self, gt)
utils_data/opensora/datasets/high_order/degrade_video.py:149
↓ 1 callersMethodforward_deg
(self, gt)
utils_data/opensora/datasets/high_order/degrade_video_mid.py:151
↓ 1 callersFunctionfourier_transform
Apply Fourier transform to the input tensor and separate it into low-frequency and high-frequency components. Args: x (torch.Tensor): In
cogvideox-based/sat/sgm/modules/diffusionmodules/loss.py:126
↓ 1 callersFunctionfourier_transform
Apply Fourier transform to the input tensor and separate it into low-frequency and high-frequency components. Args: x (torch.Tensor): In
video_super_resolution/scripts/train_sr.py:566
↓ 1 callersMethodfreeze
(self)
video_to_video/modules/embedder.py:44
↓ 1 callersMethodfreeze
(self)
cogvideox-based/sat/sgm/modules/encoders/modules.py:257
↓ 1 callersMethodfreeze_not_attn
(self)
utils_data/opensora/models/stdit/stdit_mmdit.py:420
↓ 1 callersMethodfreeze_not_temporal
(self)
utils_data/opensora/models/stdit/stdit_qknorm_rope.py:368
↓ 1 callersMethodfreeze_not_temporal
(self)
utils_data/opensora/models/stdit/stdit_mmdit_qk.py:408
↓ 1 callersMethodfreeze_not_temporal
(self)
utils_data/opensora/models/stdit/stdit.py:338
↓ 1 callersMethodfreeze_not_temporal
(self)
utils_data/opensora/models/stdit/stdit_mmdit.py:410
↓ 1 callersMethodfreeze_text
(self)
utils_data/opensora/models/pixart/pixart.py:272
↓ 1 callersMethodfreeze_text
(self)
utils_data/opensora/models/stdit/stdit_qknorm_rope.py:373
↓ 1 callersMethodfreeze_text
(self)
utils_data/opensora/models/stdit/stdit_mmdit_qk.py:413
↓ 1 callersMethodfreeze_text
(self)
utils_data/opensora/models/stdit/stdit.py:343
↓ 1 callersMethodfreeze_text
(self)
utils_data/opensora/models/stdit/stdit_mmdit.py:415
↓ 1 callersMethodgenerate_first_kernel
(self)
utils_data/opensora/datasets/high_order/degrade_video.py:295
↓ 1 callersMethodgenerate_first_kernel
(self)
utils_data/opensora/datasets/high_order/RealESRGAN_Deg_pipeline.py:233
↓ 1 callersMethodgenerate_first_kernel
(self)
utils_data/opensora/datasets/high_order/degrade_video_mid.py:297
↓ 1 callersFunctiongenerate_kernel1
(kernel_range, sinc_prob, kernel_list, kerne
utils_data/opensora/datasets/high_order/utils_blur.py:335
↓ 1 callersMethodgenerate_second_kernel
(self)
utils_data/opensora/datasets/high_order/degrade_video.py:319
↓ 1 callersMethodgenerate_second_kernel
(self)
utils_data/opensora/datasets/high_order/RealESRGAN_Deg_pipeline.py:257
↓ 1 callersMethodgenerate_second_kernel
(self)
utils_data/opensora/datasets/high_order/degrade_video_mid.py:321
↓ 1 callersMethodgenerate_sinc_kernel
(self)
utils_data/opensora/datasets/high_order/degrade_video.py:343
↓ 1 callersMethodgenerate_sinc_kernel
(self)
utils_data/opensora/datasets/high_order/RealESRGAN_Deg_pipeline.py:281
↓ 1 callersMethodgenerate_sinc_kernel
(self)
utils_data/opensora/datasets/high_order/degrade_video_mid.py:345
← previousnext →401–500 of 1,973, ranked by callers