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
p_mean_variance
( self, model, *args, **kwargs )
interpolation/diffusion/respace.py:89
Method
p_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
vsr/diffusion/gaussian_diffusion.py:456
Method
predict
Run a single prediction on the model
predict.py:159
Method
prepare_latents_inversion
(self, image, timestep, batch_size, num_images_per_prompt, dtype, device, generator=None)
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:462
Function
preprocess
(image)
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:48
Method
process_xstart
(x)
vsr/diffusion/gaussian_diffusion.py:320
Method
process_xstart
(x)
interpolation/diffusion/gaussian_diffusion.py:338
Function
requires_grad
Set requires_grad flag for all parameters in a model.
interpolation/utils.py:196
Method
reshape_for_scores
(self, tensor)
base/models/temporal_attention.py:105
Method
reshape_for_scores
(self, tensor)
base/models/attention.py:126
Method
reshape_for_scores
(self, tensor)
vsr/models/attention.py:136
Method
same_batch_dim_to_heads
(self, tensor)
base/models/temporal_attention.py:114
Method
same_batch_dim_to_heads
(self, tensor)
base/models/attention.py:135
Method
same_batch_dim_to_heads
(self, tensor)
vsr/models/attention.py:145
Function
save_video_grid
(video, nrow=None)
interpolation/utils.py:253
Function
scale_module
Scale the parameters of a module and return it.
base/models/utils.py:106
Function
scale_module
Scale the parameters of a module and return it.
vsr/models/utils.py:106
Function
scale_module
Scale the parameters of a module and return it.
interpolation/models/utils.py:106
Method
set_attention_slice
(self, slice_size)
base/models/temporal_attention.py:119
Method
set_attention_slice
(self, slice_size)
base/models/attention.py:140
Method
set_attention_slice
(self, slice_size)
vsr/models/diffusers_attention.py:588
Method
set_attention_slice
(self, slice_size)
vsr/models/attention.py:150
Method
set_attention_slice
(self, slice_size)
interpolation/models/attention.py:143
Method
set_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, op=None)
base/models/attention.py:482
Method
set_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, attention_op: None)
vsr/models/temporal_module.py:382
Method
set_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, attention_op: None)
vsr/models/diffusers_attention.py:292
Method
set_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, attention_op: None)
vsr/models/diffusers_attention.py:454
Method
set_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, attention_op: None)
vsr/models/attention.py:525
Method
set_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, attention_op=None)
interpolation/models/attention.py:538
Method
setup
Load the model into memory to make running multiple predictions efficient
predict.py:45
Function
setup_distributed
Initialize distributed training environment. support both slurm and torch.distributed.launch see torch.distributed.init_process_group() for mo
interpolation/utils.py:210
Function
timestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may
base/models/utils.py:74
Function
timestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
vsr/models/utils.py:74
Function
timestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
interpolation/models/utils.py:74
Method
training_losses
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x .
vsr/diffusion/gaussian_diffusion.py:756
Method
training_losses
( self, model, *args, **kwargs )
vsr/diffusion/respace.py:95
Method
training_losses
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x .
interpolation/diffusion/gaussian_diffusion.py:813
Method
training_losses
( self, model, *args, **kwargs )
interpolation/diffusion/respace.py:95
Function
update_ema
Step the EMA model towards the current model.
interpolation/utils.py:185
Method
update_with_all_losses
(self, ts, losses)
vsr/diffusion/timestep_sampler.py:139
Method
update_with_all_losses
(self, ts, losses)
interpolation/diffusion/timestep_sampler.py:139
Method
update_with_local_losses
Update the reweighting using losses from a model. Call this method from each rank with a batch of timesteps and the correspon
vsr/diffusion/timestep_sampler.py:72
Method
update_with_local_losses
Update the reweighting using losses from a model. Call this method from each rank with a batch of timesteps and the correspon
interpolation/diffusion/timestep_sampler.py:72
Method
weights
(self)
vsr/diffusion/timestep_sampler.py:67
Method
weights
(self)
vsr/diffusion/timestep_sampler.py:130
Method
weights
(self)
interpolation/diffusion/timestep_sampler.py:67
Method
weights
(self)
interpolation/diffusion/timestep_sampler.py:130
Function
write_tensorboard
write the loss information to a tensorboard file. Only for pytorch DDP mode.
interpolation/utils.py:172
Function
zero_module
Zero out the parameters of a module and return it.
base/models/utils.py:97
Function
zero_module
(module)
vsr/models/unet.py:52
Function
zero_module
Zero out the parameters of a module and return it.
vsr/models/utils.py:97
Function
zero_module
Zero out the parameters of a module and return it.
vsr/models/resnet.py:11
Function
zero_module
Zero out the parameters of a module and return it.
interpolation/models/utils.py:97
← previous
501–553 of 553, ranked by callers