Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vchitect/LaVie
/ functions
Functions
553 in github.com/Vchitect/LaVie
⨍
Functions
553
◇
Types & classes
134
Method
_scale_timesteps
(self, t)
interpolation/diffusion/respace.py:113
Method
_set_gradient_checkpointing
(self, module, value=False)
base/models/unet.py:362
Method
_set_gradient_checkpointing
(self, module, value=False)
vsr/models/unet.py:404
Method
_set_gradient_checkpointing
(self, module, value=False)
vsr/models/autoencoder_kl.py:132
Method
_set_gradient_checkpointing
(self, module, value=False)
interpolation/models/unet.py:309
Function
avg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
base/models/utils.py:161
Function
avg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
vsr/models/utils.py:161
Function
avg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
interpolation/models/utils.py:161
Method
backward
(ctx, *output_grads)
base/models/utils.py:54
Method
backward
(ctx, *output_grads)
vsr/models/utils.py:54
Method
backward
(ctx, *output_grads)
interpolation/models/utils.py:54
Method
calc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: t
vsr/diffusion/gaussian_diffusion.py:855
Method
calc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: t
interpolation/diffusion/gaussian_diffusion.py:932
Function
checkpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward p
base/models/utils.py:25
Function
checkpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
vsr/models/utils.py:25
Function
checkpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
interpolation/models/utils.py:25
Function
cleanup
End DDP training.
interpolation/utils.py:203
Function
clip_grad_norm_
r""" Copy from torch.nn.utils.clip_grad_norm_ Clips gradient norm of an iterable of parameters. The norm is computed over all gradients
interpolation/utils.py:63
Function
collect_env
()
interpolation/utils.py:279
Method
condition_mean
(self, cond_fn, *args, **kwargs)
vsr/diffusion/respace.py:100
Method
condition_mean
(self, cond_fn, *args, **kwargs)
interpolation/diffusion/respace.py:100
Method
condition_score
(self, cond_fn, *args, **kwargs)
vsr/diffusion/respace.py:103
Method
condition_score
(self, cond_fn, *args, **kwargs)
interpolation/diffusion/respace.py:103
Function
continuous_gaussian_log_likelihood
Compute the log-likelihood of a continuous Gaussian distribution. :param x: the targets :param means: the Gaussian mean Tensor. :para
vsr/diffusion/diffusion_utils.py:47
Function
continuous_gaussian_log_likelihood
Compute the log-likelihood of a continuous Gaussian distribution. :param x: the targets :param means: the Gaussian mean Tensor. :para
interpolation/diffusion/diffusion_utils.py:47
Function
conv_nd
Create a 1D, 2D, or 3D convolution module.
base/models/utils.py:141
Function
conv_nd
Create a 1D, 2D, or 3D convolution module.
vsr/models/utils.py:141
Function
conv_nd
Create a 1D, 2D, or 3D convolution module.
interpolation/models/utils.py:141
Function
count_flops_attn
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs, params = tho
base/models/utils.py:192
Function
count_flops_attn
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs, params = thop.pr
vsr/models/utils.py:192
Function
count_flops_attn
A counter for the `thop` package to count the operations in an attention operation. Meant to be used like: macs, params = thop.pr
interpolation/models/utils.py:192
Function
count_params
(model, verbose=False)
base/models/utils.py:211
Function
count_params
(model, verbose=False)
vsr/models/utils.py:211
Function
count_params
(model, verbose=False)
interpolation/models/utils.py:211
Function
create_accelerate_logger
Create a logger that writes to a log file and stdout.
interpolation/utils.py:143
Method
create_custom_forward
(module, return_dict=None)
base/models/unet_blocks.py:326
Method
create_custom_forward
(module)
base/models/unet_blocks.py:423
Method
create_custom_forward
(module, return_dict=None)
base/models/unet_blocks.py:542
Method
create_custom_forward
(module)
base/models/unet_blocks.py:634
Method
create_custom_forward
(module, return_dict=None)
vsr/models/unet_blocks.py:326
Method
create_custom_forward
(module)
vsr/models/unet_blocks.py:414
Method
create_custom_forward
(module, return_dict=None)
vsr/models/unet_blocks.py:532
Method
create_custom_forward
(module)
vsr/models/unet_blocks.py:615
Method
create_custom_forward
(module, return_dict=None)
interpolation/models/unet_blocks.py:318
Method
create_custom_forward
(module)
interpolation/models/unet_blocks.py:406
Method
create_custom_forward
(module, return_dict=None)
interpolation/models/unet_blocks.py:522
Method
create_custom_forward
(module)
interpolation/models/unet_blocks.py:605
Method
create_custom_forward_attn
(module, return_dict=None, use_image_num=None)
base/models/unet_blocks.py:335
Method
create_custom_forward_attn
(module, return_dict=None, use_image_num=None)
base/models/unet_blocks.py:551
Function
create_logger
Create a logger that writes to a log file and stdout.
interpolation/utils.py:124
Function
create_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion ob
vsr/diffusion/timestep_sampler.py:13
Function
create_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion ob
interpolation/diffusion/timestep_sampler.py:13
Function
create_tensorboard
Create a tensorboard that saves losses.
interpolation/utils.py:162
Method
custom_forward
(*inputs)
base/models/unet_blocks.py:327
Method
custom_forward
(*inputs)
base/models/unet_blocks.py:424
Method
custom_forward
(*inputs)
base/models/unet_blocks.py:543
Method
custom_forward
(*inputs)
base/models/unet_blocks.py:635
Method
custom_forward
(*inputs)
vsr/models/unet_blocks.py:327
Method
custom_forward
(*inputs)
vsr/models/unet_blocks.py:415
Method
custom_forward
(*inputs)
vsr/models/unet_blocks.py:533
Method
custom_forward
(*inputs)
vsr/models/unet_blocks.py:616
Method
custom_forward
(*inputs)
interpolation/models/unet_blocks.py:319
Method
custom_forward
(*inputs)
interpolation/models/unet_blocks.py:407
Method
custom_forward
(*inputs)
interpolation/models/unet_blocks.py:523
Method
custom_forward
(*inputs)
interpolation/models/unet_blocks.py:606
Method
ddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
vsr/diffusion/gaussian_diffusion.py:602
Method
ddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
interpolation/diffusion/gaussian_diffusion.py:644
Method
decode
(self, x)
vsr/models/upscaling.py:66
Method
decode_latents
(self, latents)
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:346
Method
disable_vae_slicing
r""" Disable sliced VAE decoding. If `enable_vae_slicing` was previously invoked, this method will go back to computing decoding in on
base/pipelines/pipeline_videogen.py:178
Method
disable_vae_tiling
r""" Disable tiled VAE decoding. If `enable_vae_tiling` was previously invoked, this method will go back to computing decoding in one
base/pipelines/pipeline_videogen.py:194
Method
enable_model_cpu_offload
r""" Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared to `enable_sequenti
base/pipelines/pipeline_videogen.py:226
Method
enable_model_cpu_offload
r""" Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared to `enable_sequenti
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:134
Method
enable_sequential_cpu_offload
r""" Offloads all models to CPU using accelerate, significantly reducing memory usage. When called, unet, text_encoder, vae and safety
base/pipelines/pipeline_videogen.py:201
Method
enable_sequential_cpu_offload
r""" Offloads all models to CPU using accelerate, significantly reducing memory usage. When called, unet, text_encoder, vae and safety
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:117
Method
enable_vae_slicing
r""" Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to compute decoding in se
base/pipelines/pipeline_videogen.py:169
Method
enable_vae_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and e
base/pipelines/pipeline_videogen.py:185
Method
encode
(self, *args, **kwargs)
base/models/clip.py:28
Method
encode
(self, text)
base/models/clip.py:57
Method
encode
(self, text)
vsr/models/clip.py:60
Method
encode
(self, text)
interpolation/models/clip.py:56
Function
fn
(step)
base/models/__init__.py:10
Function
fn
(step)
vsr/models/__init__.py:6
Function
fn
(step)
interpolation/models/__init__.py:10
Method
fn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
base/models/unet.py:313
Method
fn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
vsr/models/unet.py:355
Method
fn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
interpolation/models/unet.py:260
Method
fn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
base/models/unet.py:351
Method
fn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
vsr/models/unet.py:393
Method
fn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
interpolation/models/unet.py:298
Method
forward
(self, n, device)
base/models/unet.py:85
Method
forward
The [`Transformer2DModel`] forward method. Args: hidden_states (`torch.LongTensor` of shape `(batch size, num latent pix
base/models/transformer_3d.py:212
Method
forward
(self, text)
base/models/clip.py:48
Method
forward
(self, text_prompts, train, force_drop_ids=None)
base/models/clip.py:83
Method
forward
(ctx, run_function, length, *args)
base/models/utils.py:44
Method
forward
(self, x)
base/models/utils.py:138
Method
forward
(self, hidden_states, encoder_hidden_states=None, attention_mask=None, use_image_num=None)
base/models/temporal_attention.py:125
Method
forward
(self, hidden_states, encoder_hidden_states=None, attention_mask=None)
base/models/temporal_attention.py:274
Method
forward
(self, n, device)
base/models/temporal_attention.py:382
Method
forward
(self, hidden_states, temb=None, encoder_hidden_states=None, attention_mask=None, use_image_num=None)
base/models/unet_blocks.py:226
← previous
next →
301–400 of 553, ranked by callers