MCPcopy Create free account

hub / github.com/Vchitect/LaVie / functions

Functions553 in github.com/Vchitect/LaVie

Methodp_mean_variance
( self, model, *args, **kwargs )
interpolation/diffusion/respace.py:89
Methodp_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
Methodpredict
Run a single prediction on the model
predict.py:159
Methodprepare_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
Functionpreprocess
(image)
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:48
Methodprocess_xstart
(x)
vsr/diffusion/gaussian_diffusion.py:320
Methodprocess_xstart
(x)
interpolation/diffusion/gaussian_diffusion.py:338
Functionrequires_grad
Set requires_grad flag for all parameters in a model.
interpolation/utils.py:196
Methodreshape_for_scores
(self, tensor)
base/models/temporal_attention.py:105
Methodreshape_for_scores
(self, tensor)
base/models/attention.py:126
Methodreshape_for_scores
(self, tensor)
vsr/models/attention.py:136
Methodsame_batch_dim_to_heads
(self, tensor)
base/models/temporal_attention.py:114
Methodsame_batch_dim_to_heads
(self, tensor)
base/models/attention.py:135
Methodsame_batch_dim_to_heads
(self, tensor)
vsr/models/attention.py:145
Functionsave_video_grid
(video, nrow=None)
interpolation/utils.py:253
Functionscale_module
Scale the parameters of a module and return it.
base/models/utils.py:106
Functionscale_module
Scale the parameters of a module and return it.
vsr/models/utils.py:106
Functionscale_module
Scale the parameters of a module and return it.
interpolation/models/utils.py:106
Methodset_attention_slice
(self, slice_size)
base/models/temporal_attention.py:119
Methodset_attention_slice
(self, slice_size)
base/models/attention.py:140
Methodset_attention_slice
(self, slice_size)
vsr/models/diffusers_attention.py:588
Methodset_attention_slice
(self, slice_size)
vsr/models/attention.py:150
Methodset_attention_slice
(self, slice_size)
interpolation/models/attention.py:143
Methodset_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, op=None)
base/models/attention.py:482
Methodset_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, attention_op: None)
vsr/models/temporal_module.py:382
Methodset_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, attention_op: None)
vsr/models/diffusers_attention.py:292
Methodset_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, attention_op: None)
vsr/models/diffusers_attention.py:454
Methodset_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, attention_op: None)
vsr/models/attention.py:525
Methodset_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, attention_op=None)
interpolation/models/attention.py:538
Methodsetup
Load the model into memory to make running multiple predictions efficient
predict.py:45
Functionsetup_distributed
Initialize distributed training environment. support both slurm and torch.distributed.launch see torch.distributed.init_process_group() for mo
interpolation/utils.py:210
Functiontimestep_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
Functiontimestep_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
Functiontimestep_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
Methodtraining_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
Methodtraining_losses
( self, model, *args, **kwargs )
vsr/diffusion/respace.py:95
Methodtraining_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
Methodtraining_losses
( self, model, *args, **kwargs )
interpolation/diffusion/respace.py:95
Functionupdate_ema
Step the EMA model towards the current model.
interpolation/utils.py:185
Methodupdate_with_all_losses
(self, ts, losses)
vsr/diffusion/timestep_sampler.py:139
Methodupdate_with_all_losses
(self, ts, losses)
interpolation/diffusion/timestep_sampler.py:139
Methodupdate_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
Methodupdate_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
Methodweights
(self)
vsr/diffusion/timestep_sampler.py:67
Methodweights
(self)
vsr/diffusion/timestep_sampler.py:130
Methodweights
(self)
interpolation/diffusion/timestep_sampler.py:67
Methodweights
(self)
interpolation/diffusion/timestep_sampler.py:130
Functionwrite_tensorboard
write the loss information to a tensorboard file. Only for pytorch DDP mode.
interpolation/utils.py:172
Functionzero_module
Zero out the parameters of a module and return it.
base/models/utils.py:97
Functionzero_module
(module)
vsr/models/unet.py:52
Functionzero_module
Zero out the parameters of a module and return it.
vsr/models/utils.py:97
Functionzero_module
Zero out the parameters of a module and return it.
vsr/models/resnet.py:11
Functionzero_module
Zero out the parameters of a module and return it.
interpolation/models/utils.py:97
← previous501–553 of 553, ranked by callers