MCPcopy Create free account

hub / github.com/ali-vilab/TeaCache / functions

Functions1,040 in github.com/ali-vilab/TeaCache

↓ 254 callersMethodto
(self, device: torch.device)
videosys/models/modules/attentions.py:189
↓ 59 callersFunctionenable_pab
()
videosys/core/pab_mgr.py:188
↓ 47 callersFunctionget_pad
(name)
videosys/core/comm.py:380
↓ 45 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], **kwargs)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:120
↓ 33 callersMethodget
(self)
videosys/core/mp_utils.py:71
↓ 28 callersMethod__init__
(self, *args, **kwargs)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:869
↓ 28 callersMethod__init__
(self, *args, **kwargs)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:866
↓ 23 callersFunctionset_pad
(name: str, dim_size: int, parallel_group: dist.ProcessGroup)
videosys/core/comm.py:373
↓ 22 callersFunctiongather_sequence
(input_, process_group, dim, grad_scale=1.0, pad=0)
videosys/core/comm.py:362
↓ 21 callersFunctionsplit_sequence
(input_, process_group, dim, grad_scale=1.0, pad=0)
videosys/core/comm.py:358
↓ 20 callersMethodsplit_from_second_dim
(self, x, batch_size)
videosys/models/transformers/latte_transformer_3d.py:1472
↓ 19 callersFunctionresolve_str_to_obj
(str_val, append=True)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:86
↓ 19 callersFunctionresolve_str_to_obj
(str_val, append=True)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:505
↓ 19 callersFunctionresolve_str_to_obj
(str_val, append=True)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:86
↓ 17 callersMethoddevice
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:550
↓ 16 callersMethoddecode
(self, z, num_frames=None)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:453
↓ 15 callersMethod__init__
(self, *args, **kwargs)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:36
↓ 14 callersFunctioncreate_custom_forward
(module, return_dict=None)
TeaCache4FLUX/teacache_flux.py:134
↓ 12 callersFunctiongenerate_func
(pipeline, prompt_list, output_dir, loop: int = 5, kwargs: dict = {})
eval/teacache/experiments/utils.py:9
↓ 12 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
videosys/schedulers/scheduling_dpm_cogvideox.py:255
↓ 11 callersFunctionNormalize
(in_channels, num_groups=32)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:28
↓ 11 callersFunctionNormalize
(in_channels, num_groups=32)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:28
↓ 11 callersMethod__init__
(self, freq=10000.0, F0=1.0, scaling_factor=1.0)
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:137
↓ 11 callersMethod__init__
(self, freq=10000.0, F0=1.0, scaling_factor=1.0)
videosys/models/transformers/open_sora_plan_transformer_3d.py:150
↓ 11 callersMethodencode
(self, x)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:441
↓ 11 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
videosys/schedulers/scheduling_dpm_cogvideox.py:324
↓ 10 callersMethod__init__
(self, freq=10000.0, F0=1.0, interpolation_scale_thw=(1, 1, 1))
videosys/models/transformers/open_sora_plan_v120_transformer_3d.py:64
↓ 10 callersFunctionset_seed
(seed, dp_rank=None)
videosys/utils/utils.py:19
↓ 9 callersFunctionNormalize
(in_channels, num_groups=32)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:150
↓ 9 callersFunctionbatch_func
Apply a function to each element of a batch.
videosys/utils/utils.py:48
↓ 8 callersMethod__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
videosys/models/autoencoders/autoencoder_kl_cogvideox.py:524
↓ 8 callersMethod__init__
( self, in_out_channels=4, latent_embed_dim=512, # num channels for latent vector
videosys/models/autoencoders/autoencoder_kl_open_sora.py:180
↓ 8 callersFunctionnonlinearity
(x)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:100
↓ 7 callersFunctioncast_tuple
(t, length=1)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:1259
↓ 7 callersFunctioncast_tuple
(t, length=1)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:1256
↓ 7 callersMethodgather_from_second_dim
(self, x, batch_size)
videosys/models/transformers/latte_transformer_3d.py:1478
↓ 7 callersMethodgenerate
(self, *args, **kwargs)
videosys/core/engine.py:100
↓ 7 callersMethodget_latent_size
(self, input_size)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:424
↓ 7 callersFunctionget_mlp_output
(skip_range, timestep, block_idx: int, is_temporal=False)
videosys/core/pab_mgr.py:231
↓ 7 callersFunctionif_broadcast_mlp
(timestep: int, count: int, block_idx: int, all_timesteps, is_temporal=False)
videosys/core/pab_mgr.py:221
↓ 7 callersFunctionif_broadcast_spatial
(timestep: int, count: int)
videosys/core/pab_mgr.py:215
↓ 7 callersFunctionsave_mlp_output
(timestep: int, block_idx: int, ff_output, is_temporal=False)
videosys/core/pab_mgr.py:227
↓ 7 callersFunctionsave_video
Save a video to disk.
videosys/utils/utils.py:85
↓ 7 callersFunctiont2i_modulate
(x, shift, scale)
videosys/models/transformers/open_sora_transformer_3d.py:46
↓ 6 callersFunctionauto_grad_checkpoint
(module, *args, **kwargs)
videosys/models/transformers/open_sora_transformer_3d.py:89
↓ 6 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
videosys/models/transformers/open_sora_plan_v120_transformer_3d.py:224
↓ 6 callersFunctionget_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/ or
videosys/models/transformers/open_sora_plan_v120_transformer_3d.py:163
↓ 6 callersFunctionif_broadcast_cross
(timestep: int, count: int)
videosys/core/pab_mgr.py:203
↓ 6 callersFunctionnonlinearity
(x)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:41
↓ 6 callersFunctionnonlinearity
(x)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:41
↓ 6 callersMethodsample
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:36
↓ 5 callersMethod__init__
(self, hidden_size, frequency_embedding_size=256)
videosys/models/modules/embeddings.py:154
↓ 5 callersMethod__init__
( self, num_attention_heads: int = 16, attention_head_dim: int = 88, in_channe
videosys/models/transformers/latte_transformer_3d.py:926
↓ 5 callersFunctionall_to_all_with_pad
( input_: torch.Tensor, process_group: dist.ProcessGroup, scatter_dim: int = 2, gather_dim: in
videosys/core/comm.py:384
↓ 5 callersMethodclose
(self)
videosys/core/mp_utils.py:107
↓ 5 callersMethodenable_parallel
(self, dp_size, sp_size, enable_cp)
videosys/models/transformers/latte_transformer_3d.py:1127
↓ 5 callersFunctionget_1d_sincos_pos_embed
grid_size: int of the grid return: pos_embed: [grid_size, embed_dim] or [1+grid_size, embed_dim] (w/ or w/o cls_token)
videosys/models/transformers/open_sora_plan_v120_transformer_3d.py:202
↓ 5 callersFunctionif_broadcast_temporal
(timestep: int, count: int)
videosys/core/pab_mgr.py:209
↓ 5 callersMethodset_eval_and_device
(device: torch.device, *modules)
videosys/core/pipeline.py:15
↓ 5 callersFunctionset_pab_manager
(config: PABConfig)
videosys/core/pab_mgr.py:183
↓ 5 callersMethodset_processor
r""" Set the attention processor to use. Args: processor (`AttnProcessor`): The attention processor to us
videosys/models/transformers/open_sora_plan_transformer_3d.py:792
↓ 5 callersMethodsplit_from_second_dim
(self, x, batch_size)
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:2781
↓ 5 callersMethodsplit_from_second_dim
(self, x, batch_size)
videosys/models/transformers/open_sora_plan_transformer_3d.py:2776
↓ 5 callersMethodunpatchify
Args: x (torch.Tensor): of shape [B, N, C] Return: x (torch.Tensor): of shape [B, C_out, T, H, W]
videosys/models/transformers/open_sora_transformer_3d.py:623
↓ 5 callersFunctionupdate_steps
(steps: int)
videosys/core/pab_mgr.py:198
↓ 4 callersMethod_get_clip_prompt_embeds
( self, prompt: Union[str, List[str]], num_images_per_prompt: int = 1, device:
videosys/pipelines/vchitect/pipeline_vchitect.py:333
↓ 4 callersMethod_text_preprocessing
(self, text, clean_caption=False)
videosys/pipelines/open_sora_plan/pipeline_open_sora_plan.py:755
↓ 4 callersFunctionall_to_all_comm
(input_, process_group=None, scatter_dim=2, gather_dim=1)
videosys/core/comm.py:243
↓ 4 callersFunctioncreate_custom_forward
(module, return_dict=None)
TeaCache4TangoFlux/teacache_tango_flux.py:113
↓ 4 callersMethodenable_tiling
(self, use_tiling: bool = True)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:773
↓ 4 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
videosys/models/transformers/open_sora_plan_transformer_3d.py:128
↓ 4 callersMethodmake_attn_mask
(self, attention_mask, frame, dtype)
videosys/models/transformers/open_sora_plan_transformer_3d.py:2381
↓ 4 callersFunctionread_prompt_list
(prompt_list_path)
eval/teacache/experiments/utils.py:17
↓ 4 callersMethodt_mask_select
(self, x_mask, x, masked_x, T, S)
videosys/models/transformers/open_sora_transformer_3d.py:144
↓ 3 callersMethod__init__
( self, version: str = "v120", transformer_type: str = "29x480p", transformer:
videosys/pipelines/open_sora_plan/pipeline_open_sora_plan.py:171
↓ 3 callersMethod__init__
LlamaRMSNorm is equivalent to T5LayerNorm
videosys/models/modules/normalization.py:9
↓ 3 callersMethod__init__
(self, config)
videosys/models/transformers/open_sora_transformer_3d.py:348
↓ 3 callersFunction_gather_sequence_func
(input_, pg: dist.ProcessGroup, dim: int, pad: int)
videosys/core/comm.py:272
↓ 3 callersFunction_split_sequence_func
(input_, pg: dist.ProcessGroup, dim: int, pad: int)
videosys/core/comm.py:252
↓ 3 callersMethodadd_noise
compatible with diffusers add_noise()
videosys/schedulers/scheduling_rflow_open_sora.py:144
↓ 3 callersMethodapply_rope1d
(self, tokens, pos1d, cos, sin)
videosys/models/transformers/open_sora_plan_v120_transformer_3d.py:89
↓ 3 callersFunctioncalculate_lpips
(videos1, videos2, device)
eval/teacache/common_metrics/calculate_lpips.py:23
↓ 3 callersFunctioncalculate_psnr
(videos1, videos2)
eval/teacache/common_metrics/calculate_psnr.py:23
↓ 3 callersFunctioncalculate_ssim
(videos1, videos2)
eval/teacache/common_metrics/calculate_ssim.py:48
↓ 3 callersFunctioncast_tuple
(t, length=1)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:31
↓ 3 callersFunctioncustom_install
()
setup.py:36
↓ 3 callersMethodforward
Returns: outputs: Tensor handle: Optional[Work], if overlap is True
videosys/core/comm.py:119
↓ 3 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:115
↓ 3 callersMethodget_cos_sin
(self, D, seq_len, device, dtype, interpolation_scale=1)
videosys/models/transformers/open_sora_plan_v120_transformer_3d.py:73
↓ 3 callersMethodget_input
(self, batch, k)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:502
↓ 3 callersMethodget_input
(self, batch, k)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:502
↓ 3 callersMethodinitialize
(self, input)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:1191
↓ 3 callersFunctionload_video
Load a video from the given path and convert it to a PyTorch tensor.
eval/teacache/common_metrics/eval.py:25
↓ 3 callersFunctionretrieve_timesteps
Calls the scheduler's `set_timesteps` method and retrieves timesteps from the scheduler after the call. Handles custom timesteps. Any kwargs
videosys/pipelines/vchitect/pipeline_vchitect.py:1001
↓ 3 callersMethodsample
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:56
↓ 3 callersMethodsample
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:56
↓ 3 callersMethodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
videosys/schedulers/scheduling_dpm_cogvideox.py:238
↓ 3 callersMethodset_processor
r""" Set the attention processor to use. Args: processor (`AttnProcessor`): The attention processor to us
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:779
↓ 3 callersFunctionshift_dim
(x, src_dim=-1, dest_dim=-1, make_contiguous=True)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:1263
↓ 3 callersFunctionshift_dim
(x, src_dim=-1, dest_dim=-1, make_contiguous=True)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:1260
next →1–100 of 1,040, ranked by callers