MCPcopy Create free account

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

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

↓ 2 callersMethodpossible_correction_step
(self, euler_step, x, d, dt, next_sigma, denoiser, cond, uc)
cogvideox-based/sat/sgm/modules/diffusionmodules/sampling.py:236
↓ 2 callersMethodq_sample
Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the initial
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:208
↓ 2 callersFunctionquality_to_factor
Calculate factor corresponding to quality Args: quality(float): Quality for jpeg compression. Returns: float: Compression
utils_data/opensora/datasets/high_order/utils_jpeg.py:439
↓ 2 callersFunctionrandom_bivariate_Gaussian
Randomly generate bivariate isotropic or anisotropic Gaussian kernels. In the isotropic mode, only `sigma_x_range` is used. `sigma_y_range` and `
utils_data/opensora/datasets/high_order/utils_blur.py:127
↓ 2 callersFunctionrandom_bivariate_generalized_Gaussian
Randomly generate bivariate generalized Gaussian kernels. In the isotropic mode, only `sigma_x_range` is used. `sigma_y_range` and `rotation_rang
utils_data/opensora/datasets/high_order/utils_blur.py:168
↓ 2 callersFunctionrandom_bivariate_plateau
Randomly generate bivariate plateau kernels. In the isotropic mode, only `sigma_x_range` is used. `sigma_y_range` and `rotation_range` is ignored
utils_data/opensora/datasets/high_order/utils_blur.py:217
↓ 2 callersMethodremap_to_used
(self, inds: torch.Tensor)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/quantize.py:26
↓ 2 callersFunctionrequires_grad
Set requires_grad flag for all parameters in a model.
utils_data/opensora/utils/misc.py:26
↓ 2 callersFunctionresize_crop_to_fill
(clip, target_size)
utils_data/opensora/datasets/video_transforms.py:591
↓ 2 callersFunctionresize_for_rectangle_crop
(arr, image_size, reshape_mode="random")
cogvideox-based/sat/data_video.py:119
↓ 2 callersFunctionsafe_get_index
(it, ind, default=None)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:50
↓ 2 callersMethodsample
( self, model, text_encoder, z_size, prompts, device,
utils_data/opensora/schedulers/iddpm/__init__.py:58
↓ 2 callersMethodsample
(self, noise, model, model_kwargs={}, condition_fn
video_to_video/diffusion/diffusion_sdedit.py:119
↓ 2 callersMethodsave
(self, path, overwrite=True)
cogvideox-based/sat/sgm/modules/autoencoding/magvit2_pytorch.py:1359
↓ 2 callersFunctionsave_sample
(x, fps=8, save_path=None, normalize=True, value_range=(-1, 1), force_video=False, align_method=None, validati
utils_data/opensora/datasets/utils.py:208
↓ 2 callersMethodsigma_to_idx
(self, sigma)
cogvideox-based/sat/sgm/modules/diffusionmodules/denoiser.py:64
↓ 2 callersMethodsinglestep_dpm_solver_third_update
Singlestep solver DPM-Solver-3 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:815
↓ 2 callersFunctiontemporal_random_crop
(vframes, num_frames, frame_interval)
utils_data/opensora/datasets/utils.py:62
↓ 2 callersFunctiontensor2latent
(t, vae)
video_super_resolution/scripts/train_sr.py:541
↓ 2 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
utils_data/opensora/models/layers/blocks.py:1031
↓ 2 callersMethodunmap_to_all
(self, inds: torch.Tensor)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/quantize.py:41
↓ 2 callersFunctionunpack_one
(t, ps, pattern)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/lookup_free_quantization.py:44
↓ 2 callersFunctionunpack_one
(t, ps, pattern)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:34
↓ 2 callersMethodunpatchify
(self, x)
utils_data/opensora/models/pixart/pixart.py:241
↓ 2 callersMethodunpatchify
(self, x)
utils_data/opensora/models/dit/dit.py:174
↓ 2 callersFunctionupdate_state_dict_inplace
(state_dict: Dict[str, Any], old_key: str, new_key: str)
cogvideox-based/tools/convert_weight_sat2hf.py:156
↓ 2 callersFunctionwavelet_decomposition
Apply wavelet decomposition to the input tensor. This function only returns the low frequency & the high frequency.
utils_data/opensora/datasets/wavelet_color_fix.py:94
↓ 2 callersFunctionwavelet_decomposition
Apply wavelet decomposition to the input tensor. This function only returns the low frequency & the high frequency.
cogvideox-based/sat/color_fix.py:98
↓ 2 callersFunctionwavelet_decomposition
Apply wavelet decomposition to the input tensor. This function only returns the low frequency & the high frequency.
video_super_resolution/color_fix.py:97
↓ 2 callersFunctionzero_module
Zero out the parameters of a module and return it.
cogvideox-based/sat/sgm/modules/attention.py:105
↓ 2 callersFunctionzero_module
Zero out the parameters of a module and return it.
cogvideox-based/sat/vae_modules/attention.py:105
↓ 1 callersFunctionDPMS
( model, condition, uncondition, cfg_scale, model_type="noise", noise_schedule="linear
utils_data/opensora/schedulers/dpms/dpm_solver.py:1538
↓ 1 callersFunctionNormalize
(in_channels, gather=False, **kwargs)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:343
↓ 1 callersFunctionNormalize
(in_channels, gather=False, **kwargs)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:444
↓ 1 callersFunctionNormalize3D
( in_channels, zq_ch, add_conv, gather=False, )
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:414
↓ 1 callersFunctionNormalize3D
( in_channels, zq_ch, add_conv, gather=False, )
cogvideox-based/sat/vae_modules/cp_enc_dec.py:513
↓ 1 callersMethod__init__
(self)
utils_data/opensora/utils/wavelet.py:51
↓ 1 callersMethod__init__
(self, model, timestep_map, original_num_steps)
utils_data/opensora/schedulers/iddpm/respace.py:116
↓ 1 callersMethod__init__
(self, from_pretrained=None, micro_batch_size=None)
utils_data/opensora/models/vae/vae.py:11
↓ 1 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
utils_data/opensora/models/layers/timm_uvit.py:97
↓ 1 callersMethod__init__
(self, d_model, num_heads, attn_drop=0.0, proj_drop=0.0)
utils_data/opensora/models/vsr/sfr_lftg.py:42
↓ 1 callersMethod__init__
( self, hidden_size, num_heads, d_s=None, d_t=None, mlp_ratio=
utils_data/opensora/models/stdit/stdit_qknorm_rope.py:35
↓ 1 callersMethod__init__
(self, base_model: STDiT, copy_blocks_num: int = 13)
utils_data/opensora/models/stdit/stdit_controlnet_mvdit.py:74
↓ 1 callersMethod__init__
(self, base_model: STDiT, copy_blocks_num: int = 13)
utils_data/opensora/models/stdit/stdit_controlnet.py:74
↓ 1 callersMethod__init__
(self, base_model: STDiT, copy_blocks_num: int = 13)
utils_data/opensora/models/stdit/stdit_controlnet_qknorm.py:74
↓ 1 callersMethod__init__
( self, hidden_size, num_heads, d_s=None, d_t=None, mlp_ratio=
utils_data/opensora/models/stdit/stdit_freq.py:37
↓ 1 callersMethod__init__
(self, base_model: STDiT, copy_blocks_num: int = 13)
utils_data/opensora/models/stdit/stdit_controlnet_freq.py:79
↓ 1 callersMethod__init__
( self, hidden_size, num_heads, d_s=None, d_t=None, mlp_ratio=
utils_data/opensora/models/stdit/stdit_mmdit_qk.py:37
↓ 1 callersMethod__init__
( self, input_size=(1, 32, 32), in_channels=4, patch_size=(1, 2, 2), h
utils_data/opensora/models/stdit/stdit.py:124
↓ 1 callersMethod__init__
( self, hidden_size, num_heads, d_s=None, d_t=None, mlp_ratio=
utils_data/opensora/models/stdit/stdit_mmdit.py:37
↓ 1 callersMethod__init__
( self, input_size=(16, 32, 32), in_channels=4, patch_size=(1, 2, 2),
utils_data/opensora/models/dit/dit.py:80
↓ 1 callersMethod__init__
( self, *, in_channels, out_channels=None, conv_shortcut=False,
cogvideox-based/sat/sgm/modules/fuse_sft_block.py:20
↓ 1 callersMethod__init__
( self, dim, n_heads, d_head, dropout=0.0, context_dim=None,
cogvideox-based/sat/sgm/modules/video_attention.py:21
↓ 1 callersMethod__init__
(self, weighting_config, scaling_config)
cogvideox-based/sat/sgm/modules/diffusionmodules/denoiser.py:10
↓ 1 callersMethod__init__
(self, scale, dyn_thresh_config=None)
cogvideox-based/sat/sgm/modules/diffusionmodules/guiders.py:27
↓ 1 callersMethod__init__
( self, num_hiddens, embedding_dim, n_embed, straight_through=True,
cogvideox-based/sat/sgm/modules/autoencoding/vqvae/quantize.py:137
↓ 1 callersMethod__init__
(self)
cogvideox-based/sat/vae_modules/regularizers.py:61
↓ 1 callersMethod__init__
( self, root_folders=None, null_text_ratio=0.5, num_frames=16
video_super_resolution/dataset.py:12
↓ 1 callersMethod_apply_random_compression
(self, imgs)
utils_data/opensora/datasets/high_order/degrade_video_mid.py:38
↓ 1 callersMethod_build_modules
(self, module_configs)
cogvideox-based/sat/dit_video_concat.py:686
↓ 1 callersFunction_drop_from_previous_rank
(input_, dim, kernel_size)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:242
↓ 1 callersMethod_ensure_even_dimensions
(self, img)
utils_data/opensora/datasets/high_order/degrade_video.py:27
↓ 1 callersMethod_ensure_even_dimensions
(self, img)
utils_data/opensora/datasets/high_order/degrade_video_mid.py:29
↓ 1 callersFunction_fake_cp_pass_from_previous_rank
(input_, dim, kernel_size, cache_padding=None)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:241
↓ 1 callersMethod_forward
(self, x, emb, batch_size, variant_info)
video_to_video/modules/unet_v2v.py:666
↓ 1 callersMethod_forward
(self, x, context=None, timesteps=None)
cogvideox-based/sat/sgm/modules/video_attention.py:105
↓ 1 callersMethod_freeze
(self)
utils_data/opensora/models/text_encoder/clip.py:55
↓ 1 callersFunction_gaussian_weights
Generates a gaussian mask of weights for tile contributions
utils_data/opensora/utils/tile_image.py:59
↓ 1 callersMethod_init_first_stage
(self, config)
cogvideox-based/sat/diffusion_video.py:124
↓ 1 callersMethod_init_lora
(self, rank, scale, ckpt_dir=None)
cogvideox-based/sat/sgm/modules/diffusionmodules/openaimodel.py:936
↓ 1 callersFunction_logsnr_cosine
(n, logsnr_min=-15, logsnr_max=15)
video_to_video/diffusion/schedules_sdedit.py:28
↓ 1 callersFunction_logsnr_cosine_interp
(n, logsnr_min=-15, logsnr_max=15,
video_to_video/diffusion/schedules_sdedit.py:42
↓ 1 callersMethod_make_attn
(self)
cogvideox-based/sat/sgm/modules/diffusionmodules/model.py:638
↓ 1 callersMethod_make_conv
(self)
cogvideox-based/sat/sgm/modules/diffusionmodules/model.py:644
↓ 1 callersMethod_make_resblock
(self)
cogvideox-based/sat/sgm/modules/diffusionmodules/model.py:641
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
utils_data/opensora/models/layers/timm_uvit.py:8
↓ 1 callersFunction_pass_from_previous_rank
(input_, dim, kernel_size)
cogvideox-based/sat/sgm/modules/cp_enc_dec.py:198
↓ 1 callersFunction_pass_from_previous_rank
(input_, dim, kernel_size)
cogvideox-based/sat/vae_modules/cp_enc_dec.py:197
↓ 1 callersMethod_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only dep
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:769
↓ 1 callersMethod_relative_position_bucket
(relative_position, num_buckets=32, max_di
video_to_video/modules/unet_v2v.py:207
↓ 1 callersMethod_scale_and_shift
(self, zhat_normalized: Tensor)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:104
↓ 1 callersMethod_scale_and_shift_inverse
(self, zhat: Tensor)
cogvideox-based/sat/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:108
↓ 1 callersMethod_warmed_up
(self)
utils_data/opensora/schedulers/iddpm/timestep_sampler.py:149
↓ 1 callersFunctionadain_color_fix
(target: Image, source: Image)
utils_data/opensora/datasets/wavelet_color_fix.py:14
↓ 1 callersFunctionadain_color_fix
(target: Image, source: Image)
cogvideox-based/sat/color_fix.py:15
↓ 1 callersFunctionadain_color_fix
(target: Image, source: Image)
video_super_resolution/color_fix.py:15
↓ 1 callersFunctionadaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate features.
utils_data/opensora/datasets/wavelet_color_fix.py:59
↓ 1 callersFunctionadaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate features.
cogvideox-based/sat/color_fix.py:63
↓ 1 callersFunctionadaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate features.
video_super_resolution/color_fix.py:62
↓ 1 callersFunctionadd_file_handler_if_needed
(logger, log_file, file_mode, log_level)
video_to_video/utils/logger.py:72
↓ 1 callersFunctionadd_model_config_args
Model arguments
cogvideox-based/sat/arguments.py:15
↓ 1 callersFunctionadd_sampling_config_args
Sampling configurations
cogvideox-based/sat/arguments.py:31
↓ 1 callersFunctionappend_zero
(x)
cogvideox-based/sat/sgm/util.py:274
↓ 1 callersMethodattention
(self, h_: torch.Tensor)
cogvideox-based/sat/sgm/modules/diffusionmodules/model.py:194
↓ 1 callersMethodbackward
(ctx, *output_grads)
cogvideox-based/sat/vae_modules/utils.py:387
↓ 1 callersFunctionbasic_clean
(text)
utils_data/opensora/models/text_encoder/t5.py:199
↓ 1 callersFunctionbasic_clean
(text)
video_to_video/modules/t5.py:199
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
utils_data/opensora/schedulers/iddpm/gaussian_diffusion.py:129
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
utils_data/opensora/schedulers/dpms/dpm_solver.py:95
↓ 1 callersFunctionbivariate_Gaussian
Generate a bivariate isotropic or anisotropic Gaussian kernel. In the isotropic mode, only `sig_x` is used. `sig_y` and `theta` is ignored.
utils_data/opensora/datasets/high_order/utils_blur.py:41
← previousnext →301–400 of 1,973, ranked by callers