MCPcopy Create free account

hub / github.com/Vchitect/LaVie / functions

Functions553 in github.com/Vchitect/LaVie

↓ 31 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 i
interpolation/diffusion/gaussian_diffusion.py:988
↓ 29 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 i
vsr/diffusion/gaussian_diffusion.py:911
↓ 17 callersMethodreshape_heads_to_batch_dim
(self, tensor)
vsr/models/attention.py:122
↓ 11 callersMethodreshape_heads_to_batch_dim
(self, tensor)
base/models/temporal_attention.py:91
↓ 11 callersMethodreshape_heads_to_batch_dim
(self, tensor)
base/models/attention.py:112
↓ 10 callersMethodreshape_heads_to_batch_dim
(self, tensor)
interpolation/models/attention.py:115
↓ 9 callersMethod__init__
(self, dim_in: int, dim_out: int)
vsr/models/diffusers_attention.py:784
↓ 7 callersMethoddecode
(self, z: torch.FloatTensor, return_dict: bool = True)
vsr/models/autoencoder_kl.py:192
↓ 7 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
vsr/diffusion/gaussian_diffusion.py:16
↓ 7 callersMethodreshape_heads_to_batch_dim
(self, tensor)
vsr/models/diffusers_attention.py:574
↓ 6 callersMethod__init__
( self, in_channels=None, use_deformable_conv=None, )
vsr/models/temporal_module.py:571
↓ 6 callersFunctionalpha_bar
(time_step)
vsr/diffusion/scheduling_ddim.py:74
↓ 6 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
interpolation/diffusion/gaussian_diffusion.py:16
↓ 6 callersMethodreshape_batch_dim_to_heads
(self, tensor)
interpolation/models/attention.py:122
↓ 5 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 init
interpolation/diffusion/gaussian_diffusion.py:215
↓ 4 callersMethod__init__
( self, in_channels: int, prev_output_channel: int, out_channels: int,
base/models/unet_blocks.py:578
↓ 4 callersMethod__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads: int
base/models/attention.py:58
↓ 4 callersMethod__init__
( self, in_channels: int, prev_output_channel: int, out_channels: int,
vsr/models/unet_blocks.py:559
↓ 4 callersMethod__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads: int
vsr/models/attention.py:59
↓ 4 callersMethod__init__
( self, in_channels: int, prev_output_channel: int, out_channels: int,
interpolation/models/unet_blocks.py:549
↓ 4 callersMethod_memory_efficient_attention_xformers
(self, query, key, value, attention_mask)
vsr/models/attention.py:305
↓ 4 callersMethod_sliced_attention
(self, query, key, value, sequence_length, dim, attention_mask)
vsr/models/attention.py:262
↓ 4 callersMethod_wrap_model
(self, model)
vsr/diffusion/respace.py:106
↓ 4 callersMethod_wrap_model
(self, model)
interpolation/diffusion/respace.py:106
↓ 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 tak
vsr/diffusion/gaussian_diffusion.py:255
↓ 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 tak
interpolation/diffusion/gaussian_diffusion.py:254
↓ 4 callersMethodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0)
vsr/diffusion/gaussian_diffusion.py:225
↓ 4 callersMethodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior: q(x_{t-1} | x_t, x_0)
interpolation/diffusion/gaussian_diffusion.py:232
↓ 3 callersMethod__init__
(self, channels, use_conv=False, use_conv_transpose=False, out_channels=None, name="conv")
vsr/models/resnet.py:35
↓ 3 callersMethod_attention
(self, query, key, value, attention_mask=None)
vsr/models/attention.py:219
↓ 3 callersMethod_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
vsr/diffusion/gaussian_diffusion.py:363
↓ 3 callersMethod_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
interpolation/diffusion/gaussian_diffusion.py:397
↓ 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 all
vsr/diffusion/gaussian_diffusion.py:722
↓ 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 all
interpolation/diffusion/gaussian_diffusion.py:780
↓ 3 callersFunctionfind_model
Finds a pre-trained model, downloading it if necessary. Alternatively, loads a model from a local path.
base/download.py:10
↓ 3 callersMethodgelu
(self, gate)
vsr/models/diffusers_attention.py:788
↓ 3 callersMethodreshape_batch_dim_to_heads
(self, tensor)
base/models/temporal_attention.py:98
↓ 3 callersMethodreshape_batch_dim_to_heads
(self, tensor)
base/models/attention.py:119
↓ 3 callersMethodreshape_batch_dim_to_heads
(self, tensor)
vsr/models/diffusers_attention.py:581
↓ 3 callersMethodreshape_batch_dim_to_heads
(self, tensor)
vsr/models/attention.py:129
↓ 3 callersMethodreshape_for_scores
(self, tensor)
interpolation/models/attention.py:129
↓ 3 callersMethodreshape_heads_to_batch_dim
(self, tensor)
vsr/models/diffusers_attention.py:316
↓ 3 callersMethodsample
Importance-sample timesteps for a batch. :param batch_size: the number of timesteps. :param device: the torch device to save
vsr/diffusion/timestep_sampler.py:44
↓ 3 callersFunctionzero_module
Zero out the parameters of a module and return it.
vsr/models/temporal_module.py:32
↓ 2 callersMethod__init__
(self, path, dropout_prob=0.1)
base/models/clip.py:65
↓ 2 callersMethod__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads: int
base/models/temporal_attention.py:41
↓ 2 callersMethod__init__
(self, channels, use_conv=False, use_conv_transpose=False, out_channels=None, name="conv")
base/models/resnet.py:25
↓ 2 callersMethod__init__
(self, dropout_prob=0.1)
vsr/models/clip.py:68
↓ 2 callersMethod__init__
(self)
vsr/models/upscaling.py:72
↓ 2 callersMethod__init__
(self, args, dropout_prob=0.1)
interpolation/models/clip.py:64
↓ 2 callersMethod__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads: int
interpolation/models/attention.py:54
↓ 2 callersMethod__init__
(self, channels, use_conv=False, use_conv_transpose=False, out_channels=None, name="conv")
interpolation/models/resnet.py:25
↓ 2 callersMethod_attention
(self, query, key, value, attention_mask=None)
interpolation/models/attention.py:211
↓ 2 callersMethod_decode
(self, z: torch.FloatTensor, return_dict: bool = True)
vsr/models/autoencoder_kl.py:179
↓ 2 callersMethod_memory_efficient_attention_xformers
(self, query, key, value, attention_mask)
base/models/attention.py:284
↓ 2 callersMethod_memory_efficient_attention_xformers
(self, query, key, value, attention_mask)
interpolation/models/attention.py:334
↓ 2 callersMethod_predict_xstart_from_eps
(self, x_t, t, eps)
vsr/diffusion/gaussian_diffusion.py:356
↓ 2 callersMethod_predict_xstart_from_eps
(self, x_t, t, eps, mask=None, x_start=None, use_concat=False)
interpolation/diffusion/gaussian_diffusion.py:362
↓ 2 callersMethod_sliced_attention
(self, query, key, value, sequence_length, dim, attention_mask)
base/models/attention.py:241
↓ 2 callersMethod_sliced_attention
(self, query, key, value, sequence_length, dim, attention_mask)
interpolation/models/attention.py:291
↓ 2 callersFunction_warmup_beta
(beta_start, beta_end, num_diffusion_timesteps, warmup_frac)
vsr/diffusion/gaussian_diffusion.py:59
↓ 2 callersFunction_warmup_beta
(beta_start, beta_end, num_diffusion_timesteps, warmup_frac)
interpolation/diffusion/gaussian_diffusion.py:58
↓ 2 callersMethodadd_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
vsr/diffusion/scheduling_ddim.py:417
↓ 2 callersFunctionapprox_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
vsr/diffusion/diffusion_utils.py:39
↓ 2 callersFunctionapprox_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
interpolation/diffusion/diffusion_utils.py:39
↓ 2 callersFunctionauto_inpainting_copy_no_mask
(args, video_input, prompt, vae, text_encoder, diffusion, model, device,)
interpolation/sample.py:135
↓ 2 callersMethodblend_h
(self, a, b, blend_extent)
vsr/models/autoencoder_kl.py:209
↓ 2 callersMethodblend_v
(self, a, b, blend_extent)
vsr/models/autoencoder_kl.py:204
↓ 2 callersMethodcondition_score
Compute what the p_mean_variance output would have been, should the model's score function be conditioned by cond_fn. See
vsr/diffusion/gaussian_diffusion.py:395
↓ 2 callersMethodcondition_score
Compute what the p_mean_variance output would have been, should the model's score function be conditioned by cond_fn. See
interpolation/diffusion/gaussian_diffusion.py:414
↓ 2 callersMethodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
interpolation/diffusion/gaussian_diffusion.py:682
↓ 2 callersMethoddecode_latents_vsr
(self, latents)
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:354
↓ 2 callersMethodenable_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and encoding in se
vsr/models/autoencoder_kl.py:136
↓ 2 callersMethodencode
(self, *args, **kwargs)
vsr/models/clip.py:26
↓ 2 callersMethodencode
(self, *args, **kwargs)
interpolation/models/clip.py:28
↓ 2 callersFunctionextract_into_tensor
(a, t, x_shape)
vsr/models/upscaling.py:15
↓ 2 callersMethodfrom_pretrained_2d
(cls, pretrained_model_path, subfolder=None)
base/models/unet.py:541
↓ 2 callersMethodfrom_pretrained_2d
(cls, pretrained_model_path, subfolder=None, use_concat=False, copy_no_mask=False)
interpolation/models/unet.py:477
↓ 2 callersFunctiongrid_sample_align
(input, grid)
vsr/models/temporal_module.py:41
↓ 2 callersFunctionnormal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among other
vsr/diffusion/diffusion_utils.py:10
↓ 2 callersFunctionnormal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among other
interpolation/diffusion/diffusion_utils.py:10
↓ 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 init
vsr/diffusion/gaussian_diffusion.py:208
↓ 2 callersMethodsample
Importance-sample timesteps for a batch. :param batch_size: the number of timesteps. :param device: the torch device to save
interpolation/diffusion/timestep_sampler.py:44
↓ 2 callersMethodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
vsr/diffusion/scheduling_ddim.py:184
↓ 2 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain. Supporting function to be run before inference. Args: num_infe
vsr/diffusion/scheduling_ddim.py:267
↓ 2 callersMethodstep
Predict the sample at the previous timestep by reversing the SDE. Core function to propagate the diffusion process from the learned m
vsr/diffusion/scheduling_ddim.py:292
↓ 2 callersMethodtemporal_shift
(self, tensor, video_length)
vsr/models/temporal_module.py:484
↓ 2 callersMethodtemporal_token_concat
(self, tensor, video_length)
vsr/models/temporal_module.py:458
↓ 1 callersMethod__init__
( self, heads=8, num_buckets=32, max_distance=128, )
base/models/unet.py:54
↓ 1 callersMethod__init__
(self, model, timestep_map, original_num_steps)
vsr/diffusion/respace.py:119
↓ 1 callersMethod__init__
( self, ### Temporal Module Additional Kwargs ### down_temporal_idx = (0,1,2),
vsr/models/unet.py:106
↓ 1 callersMethod__init__
(self, model, timestep_map, original_num_steps)
interpolation/diffusion/respace.py:119
↓ 1 callersMethod_attention
(self, query, key, value, attention_mask=None)
base/models/temporal_attention.py:177
↓ 1 callersMethod_attention
(self, query, key, value, attention_mask=None, time_rel_pos_bias=None)
base/models/temporal_attention.py:323
↓ 1 callersMethod_attention
(self, query, key, value, attention_mask=None)
base/models/attention.py:209
↓ 1 callersMethod_attention
(self, query, key, value, attention_mask=None, time_rel_pos_bias=None)
base/models/attention.py:634
↓ 1 callersMethod_attention
(self, query, key, value, attention_mask=None)
vsr/models/diffusers_attention.py:651
↓ 1 callersMethod_attention
(self, query, key, value, attention_mask=None, time_rel_pos_bias=None)
vsr/models/attention.py:728
↓ 1 callersMethod_encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
base/pipelines/pipeline_videogen.py:268
↓ 1 callersMethod_encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:181
next →1–100 of 553, ranked by callers