MCPcopy Create free account

hub / github.com/Vchitect/LaVie / functions

Functions553 in github.com/Vchitect/LaVie

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
Functionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
base/models/utils.py:161
Functionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
vsr/models/utils.py:161
Functionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
interpolation/models/utils.py:161
Methodbackward
(ctx, *output_grads)
base/models/utils.py:54
Methodbackward
(ctx, *output_grads)
vsr/models/utils.py:54
Methodbackward
(ctx, *output_grads)
interpolation/models/utils.py:54
Methodcalc_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
Methodcalc_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
Functioncheckpoint
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
Functioncheckpoint
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
Functioncheckpoint
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
Functioncleanup
End DDP training.
interpolation/utils.py:203
Functionclip_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
Functioncollect_env
()
interpolation/utils.py:279
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
vsr/diffusion/respace.py:100
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
interpolation/diffusion/respace.py:100
Methodcondition_score
(self, cond_fn, *args, **kwargs)
vsr/diffusion/respace.py:103
Methodcondition_score
(self, cond_fn, *args, **kwargs)
interpolation/diffusion/respace.py:103
Functioncontinuous_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
Functioncontinuous_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
Functionconv_nd
Create a 1D, 2D, or 3D convolution module.
base/models/utils.py:141
Functionconv_nd
Create a 1D, 2D, or 3D convolution module.
vsr/models/utils.py:141
Functionconv_nd
Create a 1D, 2D, or 3D convolution module.
interpolation/models/utils.py:141
Functioncount_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
Functioncount_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
Functioncount_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
Functioncount_params
(model, verbose=False)
base/models/utils.py:211
Functioncount_params
(model, verbose=False)
vsr/models/utils.py:211
Functioncount_params
(model, verbose=False)
interpolation/models/utils.py:211
Functioncreate_accelerate_logger
Create a logger that writes to a log file and stdout.
interpolation/utils.py:143
Methodcreate_custom_forward
(module, return_dict=None)
base/models/unet_blocks.py:326
Methodcreate_custom_forward
(module)
base/models/unet_blocks.py:423
Methodcreate_custom_forward
(module, return_dict=None)
base/models/unet_blocks.py:542
Methodcreate_custom_forward
(module)
base/models/unet_blocks.py:634
Methodcreate_custom_forward
(module, return_dict=None)
vsr/models/unet_blocks.py:326
Methodcreate_custom_forward
(module)
vsr/models/unet_blocks.py:414
Methodcreate_custom_forward
(module, return_dict=None)
vsr/models/unet_blocks.py:532
Methodcreate_custom_forward
(module)
vsr/models/unet_blocks.py:615
Methodcreate_custom_forward
(module, return_dict=None)
interpolation/models/unet_blocks.py:318
Methodcreate_custom_forward
(module)
interpolation/models/unet_blocks.py:406
Methodcreate_custom_forward
(module, return_dict=None)
interpolation/models/unet_blocks.py:522
Methodcreate_custom_forward
(module)
interpolation/models/unet_blocks.py:605
Methodcreate_custom_forward_attn
(module, return_dict=None, use_image_num=None)
base/models/unet_blocks.py:335
Methodcreate_custom_forward_attn
(module, return_dict=None, use_image_num=None)
base/models/unet_blocks.py:551
Functioncreate_logger
Create a logger that writes to a log file and stdout.
interpolation/utils.py:124
Functioncreate_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
Functioncreate_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
Functioncreate_tensorboard
Create a tensorboard that saves losses.
interpolation/utils.py:162
Methodcustom_forward
(*inputs)
base/models/unet_blocks.py:327
Methodcustom_forward
(*inputs)
base/models/unet_blocks.py:424
Methodcustom_forward
(*inputs)
base/models/unet_blocks.py:543
Methodcustom_forward
(*inputs)
base/models/unet_blocks.py:635
Methodcustom_forward
(*inputs)
vsr/models/unet_blocks.py:327
Methodcustom_forward
(*inputs)
vsr/models/unet_blocks.py:415
Methodcustom_forward
(*inputs)
vsr/models/unet_blocks.py:533
Methodcustom_forward
(*inputs)
vsr/models/unet_blocks.py:616
Methodcustom_forward
(*inputs)
interpolation/models/unet_blocks.py:319
Methodcustom_forward
(*inputs)
interpolation/models/unet_blocks.py:407
Methodcustom_forward
(*inputs)
interpolation/models/unet_blocks.py:523
Methodcustom_forward
(*inputs)
interpolation/models/unet_blocks.py:606
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
vsr/diffusion/gaussian_diffusion.py:602
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
interpolation/diffusion/gaussian_diffusion.py:644
Methoddecode
(self, x)
vsr/models/upscaling.py:66
Methoddecode_latents
(self, latents)
vsr/models/pipeline_stable_diffusion_upscale_video_3d.py:346
Methoddisable_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
Methoddisable_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
Methodenable_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
Methodenable_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
Methodenable_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
Methodenable_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
Methodenable_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
Methodenable_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
Methodencode
(self, *args, **kwargs)
base/models/clip.py:28
Methodencode
(self, text)
base/models/clip.py:57
Methodencode
(self, text)
vsr/models/clip.py:60
Methodencode
(self, text)
interpolation/models/clip.py:56
Functionfn
(step)
base/models/__init__.py:10
Functionfn
(step)
vsr/models/__init__.py:6
Functionfn
(step)
interpolation/models/__init__.py:10
Methodfn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
base/models/unet.py:313
Methodfn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
vsr/models/unet.py:355
Methodfn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
interpolation/models/unet.py:260
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
base/models/unet.py:351
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
vsr/models/unet.py:393
Methodfn_recursive_set_attention_slice
(module: torch.nn.Module, slice_size: List[int])
interpolation/models/unet.py:298
Methodforward
(self, n, device)
base/models/unet.py:85
Methodforward
The [`Transformer2DModel`] forward method. Args: hidden_states (`torch.LongTensor` of shape `(batch size, num latent pix
base/models/transformer_3d.py:212
Methodforward
(self, text)
base/models/clip.py:48
Methodforward
(self, text_prompts, train, force_drop_ids=None)
base/models/clip.py:83
Methodforward
(ctx, run_function, length, *args)
base/models/utils.py:44
Methodforward
(self, x)
base/models/utils.py:138
Methodforward
(self, hidden_states, encoder_hidden_states=None, attention_mask=None, use_image_num=None)
base/models/temporal_attention.py:125
Methodforward
(self, hidden_states, encoder_hidden_states=None, attention_mask=None)
base/models/temporal_attention.py:274
Methodforward
(self, n, device)
base/models/temporal_attention.py:382
Methodforward
(self, hidden_states, temb=None, encoder_hidden_states=None, attention_mask=None, use_image_num=None)
base/models/unet_blocks.py:226
← previousnext →301–400 of 553, ranked by callers