MCPcopy Create free account

hub / github.com/G-U-N/AnimateLCM / functions

Functions274 in github.com/G-U-N/AnimateLCM

↓ 1 callersFunctionmain
(args)
animatelcm_sd15/batch_inference.py:24
↓ 1 callersFunctionmain
()
animatelcm_svd/train_svd_lcm.py:580
↓ 1 callersFunctionmodel_select
(selected_file)
animatelcm_svd/app.py:28
↓ 1 callersFunctionnext_step
(model_output: Union[torch.FloatTensor, np.ndarray], timestep: int, sample: Union[torch.FloatTen
animatelcm_sd15/animatelcm/utils/util.py:103
↓ 1 callersFunctionparse_args
()
animatelcm_svd/train_svd_lcm.py:275
↓ 1 callersMethodpredicted_origin
(self, model_output, indices, sample)
animatelcm_svd/animate_lcm_utils.py:74
↓ 1 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
animatelcm_sd15/animatelcm/pipelines/pipeline_animation.py:290
↓ 1 callersMethodprepare_latents
(self, batch_size, num_channels_latents, video_length, height, width, dtype, device, generator, latents=None)
animatelcm_sd15/animatelcm/pipelines/pipeline_animation.py:327
↓ 1 callersMethodprepare_latents
( self, batch_size, num_frames, num_channels_latents, height,
animatelcm_svd/pipeline.py:274
↓ 1 callersFunctionrand_log_normal
Draws samples from an lognormal distribution.
animatelcm_svd/train_svd_lcm.py:106
↓ 1 callersMethodrefresh_motion_module
(self)
animatelcm_sd15/app-i2v.py:80
↓ 1 callersMethodrefresh_motion_module
(self)
animatelcm_sd15/app.py:80
↓ 1 callersMethodrefresh_stable_diffusion
(self)
animatelcm_sd15/app-i2v.py:76
↓ 1 callersMethodrefresh_stable_diffusion
(self)
animatelcm_sd15/app.py:76
↓ 1 callersFunctionrescale_zero_terminal_snr
Rescales betas to have zero terminal SNR Based on https://arxiv.org/pdf/2305.08891.pdf (Algorithm 1) Args: betas (`torch.FloatTenso
animatelcm_sd15/animatelcm/scheduler/lcm_scheduler.py:99
↓ 1 callersFunctionresize_and_crop
(image_path, target_width, target_height)
animatelcm_sd15/animatelcm/utils/util.py:19
↓ 1 callersFunctionrun_inference_once
(image_path, height, width, inference_time, min_guidance_scale, max_guidance_scale, noise_scheduler, weight =
animatelcm_svd/batch_inference.py:9
↓ 1 callersMethodsample_timesteps
(self, bsz)
animatelcm_svd/animate_lcm_utils.py:65
↓ 1 callersMethodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
animatelcm_sd15/animatelcm/scheduler/lcm_scheduler.py:336
↓ 1 callersMethodscale_model_input
Scales the consistency model input by `(sigma**2 + sigma_data**2) ** 0.5`. Args: sample (`torch.FloatTensor`):
animatelcm_svd/animatelcm_scheduler.py:119
↓ 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
animatelcm_sd15/animatelcm/models/unet.py:280
↓ 1 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`,
animatelcm_sd15/animatelcm/scheduler/lcm_scheduler.py:390
↓ 1 callersMethodset_timesteps
Sets the timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
animatelcm_svd/animatelcm_scheduler.py:187
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
animatelcm_sd15/animatelcm/scheduler/lcm_scheduler.py:556
↓ 1 callersFunctionstratified_uniform
Draws stratified samples from a uniform distribution.
animatelcm_svd/train_svd_lcm.py:66
↓ 1 callersFunctiontensor2vid
(video: torch.Tensor, processor, output_type="np")
animatelcm_svd/pipeline.py:48
↓ 1 callersFunctiontrace_sqrt_product
(sigma, sigma_v)
metrics/fvd.py:51
↓ 1 callersFunctionui
()
animatelcm_sd15/app-i2v.py:241
↓ 1 callersFunctionui
()
animatelcm_sd15/app.py:231
↓ 1 callersMethodupdate_base_model
(self, base_model_dropdown)
animatelcm_sd15/app-i2v.py:118
↓ 1 callersMethodupdate_base_model
(self, base_model_dropdown)
animatelcm_sd15/app.py:118
↓ 1 callersFunctionupdate_ema
Update target parameters to be closer to those of source parameters using an exponential moving average. :param target_params: the targe
animatelcm_svd/animate_lcm_utils.py:108
↓ 1 callersMethodupdate_motion_module
(self, motion_module_dropdown)
animatelcm_sd15/app-i2v.py:104
↓ 1 callersMethodupdate_motion_module
(self, motion_module_dropdown)
animatelcm_sd15/app.py:104
↓ 1 callersMethodupdate_stable_diffusion
(self, stable_diffusion_dropdown)
animatelcm_sd15/app-i2v.py:92
↓ 1 callersMethodupdate_stable_diffusion
(self, stable_diffusion_dropdown)
animatelcm_sd15/app.py:92
↓ 1 callersFunctionzero_module
(module)
animatelcm_sd15/animatelcm/models/embeddings.py:63
↓ 1 callersFunctionzero_module
(module)
animatelcm_sd15/animatelcm/models/motion_module.py:18
Method__call__
( self, prompt: Union[str, List[str]], video_length: Optional[int], height: Op
animatelcm_sd15/animatelcm/pipelines/pipeline_animation.py:377
Method__call__
r""" The call function to the pipeline for generation. Args: image (`PIL.Image.Image` or `List[PIL.Image.Image]` or `torc
animatelcm_svd/pipeline.py:328
Method__getitem__
(self, idx)
animatelcm_svd/dataset.py:62
Method__init__
(self)
animatelcm_sd15/app-i2v.py:42
Method__init__
(self)
animatelcm_sd15/app.py:42
Method__init__
( self, num_train_timesteps: int = 1000, beta_start: float = 0.00085, beta_end
animatelcm_sd15/animatelcm/scheduler/lcm_scheduler.py:253
Method__init__
(self, alpha_cumprods, timesteps=1000, ddim_timesteps=50)
animatelcm_sd15/animatelcm/utils/lcm_utils.py:87
Method__init__
( self, vae: AutoencoderKL, text_encoder: CLIPTextModel, tokenizer: CLIPTokeni
animatelcm_sd15/animatelcm/pipelines/pipeline_animation.py:49
Method__init__
( self, sample_size: Optional[int] = None, in_channels: int = 4, out_channels:
animatelcm_sd15/animatelcm/models/unet.py:44
Method__init__
(self, in_c, out_c, down, ksize=3, sk=False, use_conv=True)
animatelcm_sd15/animatelcm/models/adapter.py:108
Method__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1)
animatelcm_sd15/animatelcm/models/adapter.py:153
Method__init__
( self, in_channels: int, temb_channels: int, dropout: float = 0.0, nu
animatelcm_sd15/animatelcm/models/unet_blocks.py:179
Method__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
animatelcm_sd15/animatelcm/models/unet_blocks.py:333
Method__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
animatelcm_sd15/animatelcm/models/unet_blocks.py:519
Method__init__
( self, in_channels: int, out_channels: int, prev_output_channel: int,
animatelcm_sd15/animatelcm/models/unet_blocks.py:629
Method__init__
( self, dim: int, num_attention_heads: int, attention_head_dim: int, d
animatelcm_sd15/animatelcm/models/attention.py:143
Method__init__
(self, in_channels: int, time_embed_dim: int, act_fn: str = "silu", out_dim: int = None, time_cond_proj_dim=No
animatelcm_sd15/animatelcm/models/embeddings.py:70
Method__init__
( self, embedding_size: int = 256, scale: float = 1.0, set_W_to_weight=True, log=True, flip_sin_to_cos
animatelcm_sd15/animatelcm/models/embeddings.py:124
Method__init__
( self, num_embed: int, height: int, width: int, embed_dim: int, )
animatelcm_sd15/animatelcm/models/embeddings.py:175
Method__init__
(self, channels, use_conv=False, out_channels=None, padding=1, name="conv")
animatelcm_sd15/animatelcm/models/resnet.py:88
Method__init__
( self, *, in_channels, out_channels=None, conv_shortcut=False,
animatelcm_sd15/animatelcm/models/resnet.py:115
Method__init__
( self, alpha: float, merge_strategy: str = "learned_with_images", rearrange_p
animatelcm_sd15/animatelcm/models/resnet.py:258
Method__init__
( self, in_channels, num_attention_heads=8, num_transformer_block=2, a
animatelcm_sd15/animatelcm/models/motion_module.py:48
Method__init__
( self, in_channels, num_attention_heads, attention_head_dim, num_lay
animatelcm_sd15/animatelcm/models/motion_module.py:85
Method__init__
( self, dim, num_attention_heads, attention_head_dim, attention_block_
animatelcm_sd15/animatelcm/models/motion_module.py:164
Method__init__
( self, attention_mode=None, cross_frame_attention_mode=None, temporal_positio
animatelcm_sd15/animatelcm/models/motion_module.py:250
Method__init__
(self, in_channels, out_channels, name)
metrics/pytorch_i3d.py:126
Method__init__
Initializes I3D model instance. Args: num_classes: The number of outputs in the logit layer (default 400, which matche
metrics/pytorch_i3d.py:197
Method__init__
( self, num_train_timesteps: int = 40, sigma_min: float = 0.002, sigma_max: fl
animatelcm_svd/animatelcm_scheduler.py:77
Method__init__
( self, video_folder, sample_size=256, sample_stride=6, sample_n_frames=16
animatelcm_svd/dataset.py:13
Method__init__
( self, vae: AutoencoderKLTemporalDecoder, image_encoder: CLIPVisionModelWithProjectio
animatelcm_svd/pipeline.py:100
Method__init__
(self, N, sigma_min, sigma_max, rho, Pmean, Pstd)
animatelcm_svd/animate_lcm_utils.py:27
Method__len__
(self)
animatelcm_sd15/animatelcm/scheduler/lcm_scheduler.py:707
Method__len__
(self)
animatelcm_svd/animatelcm_scheduler.py:467
Method__len__
(self)
animatelcm_svd/dataset.py:59
Method_execution_device
(self)
animatelcm_sd15/animatelcm/pipelines/pipeline_animation.py:148
Method_set_gradient_checkpointing
(self, module, value=False)
animatelcm_sd15/animatelcm/models/unet.py:347
Methodadd_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
animatelcm_sd15/animatelcm/scheduler/lcm_scheduler.py:660
Methodadd_noise
( self, original_samples: torch.FloatTensor, noise: torch.FloatTensor, timeste
animatelcm_svd/animatelcm_scheduler.py:438
Methodanimate
( self, lora_alpha_slider, spatial_lora_slider, prompt_textbox, negati
animatelcm_sd15/app-i2v.py:153
Methodanimate
( self, lora_alpha_slider, spatial_lora_slider, prompt_textbox, negati
animatelcm_sd15/app.py:153
Functionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
animatelcm_sd15/animatelcm/utils/lcm_utils.py:35
Functioncalculate_probabilities
(sigma_values, Pmean=0.7, Pstd=1.6)
animatelcm_svd/animate_lcm_utils.py:7
Functioncompute_fvd
(real, samples, i3d, device=torch.device('cpu'))
metrics/fvd.py:139
Functioncompute_logits
(samples, i3d, device=torch.device("cpu"))
metrics/fvd.py:132
Functionconvert_controlnet_checkpoint
( checkpoint, original_config, checkpoint_path, image_size, upcast_attention, extract_ema )
animatelcm_sd15/animatelcm/utils/convert_from_ckpt.py:935
Functionconvert_ldm_bert_checkpoint
(checkpoint, config)
animatelcm_sd15/animatelcm/utils/convert_from_ckpt.py:658
Functionconvert_open_clip_checkpoint
(checkpoint)
animatelcm_sd15/animatelcm/utils/convert_from_ckpt.py:814
Functionconvert_paint_by_example_checkpoint
(checkpoint)
animatelcm_sd15/animatelcm/utils/convert_from_ckpt.py:747
Methodcreate_custom_forward
(module, return_dict=None)
animatelcm_sd15/animatelcm/models/unet_blocks.py:459
Methodcreate_custom_forward
(module)
animatelcm_sd15/animatelcm/models/unet_blocks.py:593
Methodcreate_custom_forward
(module, return_dict=None)
animatelcm_sd15/animatelcm/models/unet_blocks.py:765
Methodcreate_custom_forward
(module)
animatelcm_sd15/animatelcm/models/unet_blocks.py:884
Functioncreate_diffusers_schedular
(original_config)
animatelcm_sd15/animatelcm/utils/convert_from_ckpt.py:300
Functioncreate_ldm_bert_config
(original_config)
animatelcm_sd15/animatelcm/utils/convert_from_ckpt.py:310
Functioncreate_vae_diffusers_config
Creates a config for the diffusers based on the config of the LDM model.
animatelcm_sd15/animatelcm/utils/convert_from_ckpt.py:276
Methodcustom_forward
(*inputs)
animatelcm_sd15/animatelcm/models/unet_blocks.py:460
Methodcustom_forward
(*inputs)
animatelcm_sd15/animatelcm/models/unet_blocks.py:594
Methodcustom_forward
(*inputs)
animatelcm_sd15/animatelcm/models/unet_blocks.py:766
Methodcustom_forward
(*inputs)
animatelcm_sd15/animatelcm/models/unet_blocks.py:885
Functionddim_inversion
(pipeline, ddim_scheduler, video_latent, num_inv_steps, prompt="")
animatelcm_sd15/animatelcm/utils/util.py:136
Methodddim_step
(self, pred_x0, pred_noise, timestep_index)
animatelcm_sd15/animatelcm/utils/lcm_utils.py:120
← previousnext →101–200 of 274, ranked by callers