MCPcopy Create free account

hub / github.com/Vchitect/LaVie / functions

Functions553 in github.com/Vchitect/LaVie

↓ 1 callersMethod_get_variance
(self, timestep, prev_timestep)
vsr/diffusion/scheduling_ddim.py:198
↓ 1 callersFunction_is_tensor_video_clip
(clip)
interpolation/datasets/video_transforms.py:6
↓ 1 callersMethod_memory_efficient_attention_xformers
(self, query, key, value, attention_mask)
vsr/models/diffusers_attention.py:725
↓ 1 callersMethod_predict_eps_from_z_and_v
(self, x_t, t, v)
vsr/diffusion/gaussian_diffusion.py:376
↓ 1 callersMethod_predict_xstart_from_z_and_v
(self, x_t, t, v)
vsr/diffusion/gaussian_diffusion.py:369
↓ 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
vsr/diffusion/gaussian_diffusion.py:839
↓ 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
interpolation/diffusion/gaussian_diffusion.py:916
↓ 1 callersMethod_relative_position_bucket
(relative_position, num_buckets=32, max_distance=128)
base/models/unet.py:66
↓ 1 callersMethod_relative_position_bucket
(relative_position, num_buckets=32, max_distance=128)
base/models/temporal_attention.py:363
↓ 1 callersMethod_relative_position_bucket
(relative_position, num_buckets=32, max_distance=128)
base/models/attention.py:682
↓ 1 callersMethod_relative_position_bucket
(relative_position, num_buckets=32, max_distance=128)
vsr/models/unet.py:70
↓ 1 callersMethod_relative_position_bucket
(relative_position, num_buckets=32, max_distance=128)
vsr/models/attention.py:801
↓ 1 callersMethod_sliced_attention
(self, query, key, value, sequence_length, dim, attention_mask)
base/models/temporal_attention.py:204
↓ 1 callersMethod_sliced_attention
(self, query, key, value, sequence_length, dim, attention_mask)
vsr/models/diffusers_attention.py:682
↓ 1 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
vsr/diffusion/scheduling_ddim.py:209
↓ 1 callersMethod_warmed_up
(self)
vsr/diffusion/timestep_sampler.py:149
↓ 1 callersMethod_warmed_up
(self)
interpolation/diffusion/timestep_sampler.py:149
↓ 1 callersFunctionauto_inpainting
(args, video_input, masked_video, mask, prompt, vae, text_encoder, diffusion, model, device,)
interpolation/sample.py:95
↓ 1 callersFunctionauto_inpainting_copy_no_mask
( args, video_input, prompt, vae, text_encoder, diffusion, model, device )
predict.py:371
↓ 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 =
vsr/diffusion/gaussian_diffusion.py:118
↓ 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 = [
vsr/diffusion/scheduling_ddim.py:56
↓ 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 =
interpolation/diffusion/gaussian_diffusion.py:125
↓ 1 callersMethodcheck_inputs
( self, prompt, height, width, callback_steps, negative_prompt
base/pipelines/pipeline_videogen.py:432
↓ 1 callersMethodcheck_inputs
( self, prompt, image, noise_level, callback_steps, negative_p
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:360
↓ 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 r
vsr/diffusion/gaussian_diffusion.py:383
↓ 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 r
interpolation/diffusion/gaussian_diffusion.py:402
↓ 1 callersFunctioncreate_diffusion
( timestep_respacing="", noise_schedule="linear", # 'linear' for training use_kl=False, re
vsr/diffusion/__init__.py:11
↓ 1 callersFunctioncreate_diffusion
( timestep_respacing, noise_schedule="linear", use_kl=False, sigma_small=False, pred
interpolation/diffusion/__init__.py:10
↓ 1 callersFunctioncustomized_lr_scheduler
(optimizer, warmup_steps=5000)
base/models/__init__.py:8
↓ 1 callersFunctioncustomized_lr_scheduler
(optimizer, warmup_steps=5000)
vsr/models/__init__.py:4
↓ 1 callersFunctioncustomized_lr_scheduler
(optimizer, warmup_steps=5000)
interpolation/models/__init__.py:8
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
vsr/diffusion/gaussian_diffusion.py:550
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
interpolation/diffusion/gaussian_diffusion.py:587
↓ 1 callersMethodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
vsr/diffusion/gaussian_diffusion.py:640
↓ 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_p
vsr/diffusion/gaussian_diffusion.py:673
↓ 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_p
interpolation/diffusion/gaussian_diffusion.py:723
↓ 1 callersMethoddecode_latents
(self, latents)
base/pipelines/pipeline_videogen.py:406
↓ 1 callersFunctiondefault
(val, d)
vsr/models/upscaling.py:10
↓ 1 callersMethoddisable_slicing
r""" Disable sliced VAE decoding. If `enable_slicing` was previously invoked, this method will go back to computing decoding in one step.
vsr/models/autoencoder_kl.py:158
↓ 1 callersMethoddisable_tiling
r""" Disable tiled VAE decoding. If `enable_vae_tiling` was previously invoked, this method will go back to computing decoding in one step.
vsr/models/autoencoder_kl.py:144
↓ 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
vsr/diffusion/diffusion_utils.py:62
↓ 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
interpolation/diffusion/diffusion_utils.py:62
↓ 1 callersMethodenable_slicing
r""" Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to compute decoding in several steps.
vsr/models/autoencoder_kl.py:151
↓ 1 callersMethodencode
(self, x: torch.FloatTensor, return_dict: bool = True)
vsr/models/autoencoder_kl.py:166
↓ 1 callersFunctionexists
(x)
base/models/temporal_attention.py:23
↓ 1 callersFunctionexists
(x)
base/models/attention.py:39
↓ 1 callersFunctionexists
(x)
vsr/models/upscaling.py:7
↓ 1 callersFunctionexists
(x)
vsr/models/attention.py:40
↓ 1 callersFunctionfind_model
(model_name)
interpolation/download.py:4
↓ 1 callersMethodforward
r""" Args: sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor timestep (`torch.FloatTen
base/models/unet.py:366
↓ 1 callersMethodforward
(self, x)
base/models/utils.py:133
↓ 1 callersMethodforward
(self, hidden_states)
base/models/resnet.py:211
↓ 1 callersMethodforward
r""" Args: sample (`torch.FloatTensor`): (batch, channel, seq_length, height, width) noisy inputs tensor timestep (`to
vsr/models/unet.py:408
↓ 1 callersMethodforward
(self, x)
vsr/models/utils.py:133
↓ 1 callersMethodforward
(self, hidden_states)
vsr/models/resnet.py:20
↓ 1 callersMethodforward
r""" Args: sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor timestep (`torch.FloatTen
interpolation/models/unet.py:313
↓ 1 callersMethodforward
(self, x)
interpolation/models/utils.py:133
↓ 1 callersMethodforward
(self, hidden_states)
interpolation/models/resnet.py:211
↓ 1 callersMethodfreeze
(self)
base/models/clip.py:43
↓ 1 callersMethodfreeze
(self)
vsr/models/clip.py:46
↓ 1 callersMethodfreeze
(self)
interpolation/models/clip.py:42
↓ 1 callersMethodfrom_pretrained_2d
(cls, config_path, pretrained_model_path)
vsr/models/unet.py:621
↓ 1 callersMethodgelu
(self, gate)
vsr/models/diffusers_attention.py:814
↓ 1 callersFunctionget_beta_schedule
This is the deprecated API for creating beta schedules. See get_named_beta_schedule() for the new library of schedules.
vsr/diffusion/gaussian_diffusion.py:66
↓ 1 callersFunctionget_beta_schedule
This is the deprecated API for creating beta schedules. See get_named_beta_schedule() for the new library of schedules.
interpolation/diffusion/gaussian_diffusion.py:65
↓ 1 callersFunctionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, add_downsampl
base/models/unet_blocks.py:17
↓ 1 callersFunctionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, add_downsampl
vsr/models/unet_blocks.py:17
↓ 1 callersFunctionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, add_downsampl
interpolation/models/unet_blocks.py:17
↓ 1 callersFunctionget_input
(args, input_path)
predict.py:343
↓ 1 callersFunctionget_input
(args)
interpolation/sample.py:46
↓ 1 callersFunctionget_models
(args, sd_path)
base/models/__init__.py:27
↓ 1 callersFunctionget_models
(args, ckpt_path)
interpolation/models/__init__.py:27
↓ 1 callersFunctionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, temb_chan
base/models/unet_blocks.py:82
↓ 1 callersFunctionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, temb_chan
vsr/models/unet_blocks.py:82
↓ 1 callersFunctionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, temb_chan
interpolation/models/unet_blocks.py:80
↓ 1 callersMethodget_v
(self, x_start, noise, t)
vsr/diffusion/gaussian_diffusion.py:247
↓ 1 callersFunctionmain
(args)
base/pipelines/sample.py:19
↓ 1 callersFunctionmain
(args)
vsr/sample.py:23
↓ 1 callersFunctionmain
(args)
interpolation/sample.py:178
↓ 1 callersFunctionmake_beta_schedule
(n_timestep, linear_start=1e-4, linear_end=2e-2)
vsr/models/upscaling.py:20
↓ 1 callersFunctionmask_generation_before
(mask_type, shape, dtype, device)
interpolation/utils.py:317
↓ 1 callersMethodoptical_flow_warping
warp an image/tensor (im2) back to im1, according to the optical flow x: [B, C, H, W] (im2) flo: [B, 2, H, W] flow p
vsr/models/temporal_module.py:621
↓ 1 callersMethodp_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor
vsr/diffusion/gaussian_diffusion.py:413
↓ 1 callersMethodp_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor
interpolation/diffusion/gaussian_diffusion.py:432
↓ 1 callersMethodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
interpolation/diffusion/gaussian_diffusion.py:481
↓ 1 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as
vsr/diffusion/gaussian_diffusion.py:501
↓ 1 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as
interpolation/diffusion/gaussian_diffusion.py:532
↓ 1 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
base/pipelines/pipeline_videogen.py:415
↓ 1 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:328
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, video_length, height, width, dtype, device, generator, latents=None)
base/pipelines/pipeline_videogen.py:479
↓ 1 callersMethodprepare_latents_3d
(self, batch_size, num_channels_latents, seq_len, height, width, dtype, device, generator, latents=None)
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:441
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of d
vsr/diffusion/gaussian_diffusion.py:196
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of d
interpolation/diffusion/gaussian_diffusion.py:203
↓ 1 callersMethodq_sample
(self, x_start, t, noise=None)
vsr/models/upscaling.py:58
↓ 1 callersMethodregister_schedule
(self, timesteps=1000, linear_start=1e-4, linear_end=2e-2)
vsr/models/upscaling.py:33
↓ 1 callersMethodreshape_batch_dim_to_heads
(self, tensor)
vsr/models/diffusers_attention.py:323
↓ 1 callersFunctionresize
(clip, target_size, interpolation_mode)
interpolation/datasets/video_transforms.py:32
↓ 1 callersMethodsame_batch_dim_to_heads
(self, tensor)
interpolation/models/attention.py:138
↓ 1 callersMethodset_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module will split the input tensor in slices, to
base/models/unet.py:297
↓ 1 callersMethodset_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module will split the input tensor in slices, to
vsr/models/unet.py:339
← previousnext →101–200 of 553, ranked by callers