MCPcopy Create free account

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

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

↓ 3 callersFunctionssim
(img1, img2)
eval/teacache/common_metrics/calculate_ssim.py:6
↓ 2 callersMethod__init__
(self)
videosys/core/mp_utils.py:63
↓ 2 callersMethod__init__
( self, model_path: str = "maxin-cn/Latte-1", # ======= distributed ======= nu
videosys/pipelines/latte/pipeline_latte.py:127
↓ 2 callersMethod__init__
( self, model_path: str = "THUDM/CogVideoX-2b", # ======= distributed ========
videosys/pipelines/cogvideox/pipeline_cogvideox.py:92
↓ 2 callersMethod__init__
( self, transformer: str = "hpcai-tech/OpenSora-STDiT-v3", vae: str = "hpcai-tech/Open
videosys/pipelines/open_sora/pipeline_open_sora.py:126
↓ 2 callersMethod__init__
( self, model_path: str = "Vchitect/Vchitect-2.0-2B", # ======= distributed ========
videosys/pipelines/vchitect/pipeline_vchitect.py:104
↓ 2 callersMethod__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = False, qk_norm:
videosys/models/modules/attentions.py:22
↓ 2 callersMethod__init__
( self, dim: int, dim_out: Optional[int] = None, mult: int = 4, dropou
videosys/models/transformers/vchitect_transformer_3d.py:192
↓ 2 callersFunction_add_prefix
Prepend each output line with process-specific prefix
videosys/core/mp_utils.py:154
↓ 2 callersFunction_chunked_feed_forward
(ff: nn.Module, hidden_states: torch.Tensor, chunk_dim: int, chunk_size: int)
videosys/models/transformers/vchitect_transformer_3d.py:33
↓ 2 callersMethod_clean_caption
(self, caption)
videosys/pipelines/latte/pipeline_latte.py:534
↓ 2 callersMethod_clean_caption
(self, caption)
videosys/pipelines/open_sora/pipeline_open_sora.py:304
↓ 2 callersMethod_clean_caption
(self, caption)
videosys/pipelines/open_sora_plan/pipeline_open_sora_plan.py:770
↓ 2 callersMethod_clear_fake_context_parallel_cache
(self)
videosys/models/autoencoders/autoencoder_kl_cogvideox.py:120
↓ 2 callersMethod_clear_fake_context_parallel_cache
(self)
videosys/models/autoencoders/autoencoder_kl_cogvideox.py:1008
↓ 2 callersMethod_decode
(self, z: torch.Tensor, return_dict: bool = True)
videosys/models/autoencoders/autoencoder_kl_cogvideox.py:1095
↓ 2 callersMethod_enqueue_task
(self, future: Union[ResultFuture, asyncio.Future], method: str, args, kwargs)
videosys/core/mp_utils.py:242
↓ 2 callersMethod_get_output_for_patched_inputs
( self, hidden_states, timestep, class_labels, embedded_timestep, num_frames, height=None, width=None
videosys/models/transformers/open_sora_plan_v120_transformer_3d.py:2067
↓ 2 callersMethod_get_sin_cos_emb
(self, t: torch.Tensor)
videosys/models/modules/embeddings.py:240
↓ 2 callersMethod_get_t5_prompt_embeds
( self, prompt: Union[str, List[str]] = None, num_videos_per_prompt: int = 1,
videosys/pipelines/cogvideox/pipeline_cogvideox.py:212
↓ 2 callersMethod_get_t5_prompt_embeds
( self, prompt: Union[str, List[str]] = None, num_images_per_prompt: int = 1,
videosys/pipelines/vchitect/pipeline_vchitect.py:282
↓ 2 callersFunction_is_tensor_video_clip
(clip)
videosys/pipelines/open_sora/data_process.py:636
↓ 2 callersFunction_set_future_result
(future: Union[ResultFuture, asyncio.Future], result: Result)
videosys/core/mp_utils.py:79
↓ 2 callersMethod_text_preprocessing
(self, text, clean_caption=False)
videosys/pipelines/latte/pipeline_latte.py:519
↓ 2 callersMethod_tile
(self, x)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:1297
↓ 2 callersMethod_tile
(self, x)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:1294
↓ 2 callersFunctionalpha_bar_fn
(t)
videosys/schedulers/scheduling_dpm_cogvideox.py:69
↓ 2 callersFunctionalpha_bar_fn
(t)
videosys/schedulers/scheduling_ddim_cogvideox.py:68
↓ 2 callersMethodapply_condition
(self, size: torch.Tensor, batch_size: int, embedder: nn.Module)
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:307
↓ 2 callersMethodapply_condition
(self, size: torch.Tensor, batch_size: int, embedder: nn.Module)
videosys/models/transformers/open_sora_plan_transformer_3d.py:320
↓ 2 callersMethodapply_rope1d
(self, tokens, pos1d, cos, sin)
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:160
↓ 2 callersMethodapply_rope1d
(self, tokens, pos1d, cos, sin)
videosys/models/transformers/open_sora_plan_transformer_3d.py:173
↓ 2 callersFunctionapply_rotary_emb
Apply rotary embeddings to input tensors using the given frequency tensor. This function applies rotary embeddings to the given query or key
videosys/models/modules/embeddings.py:367
↓ 2 callersMethodblend_h
(self, a: torch.Tensor, b: torch.Tensor, blend_extent: int)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:640
↓ 2 callersMethodblend_h
(self, a: torch.Tensor, b: torch.Tensor, blend_extent: int)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:910
↓ 2 callersMethodblend_h
(self, a: torch.Tensor, b: torch.Tensor, blend_extent: int)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:640
↓ 2 callersMethodblend_v
(self, a: torch.Tensor, b: torch.Tensor, blend_extent: int)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:632
↓ 2 callersMethodblend_v
(self, a: torch.Tensor, b: torch.Tensor, blend_extent: int)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:902
↓ 2 callersMethodblend_v
(self, a: torch.Tensor, b: torch.Tensor, blend_extent: int)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:632
↓ 2 callersFunctioncreate_custom_forward
(module)
TeaCache4ConsisID/teacache_sample_video.py:107
↓ 2 callersFunctioncreate_custom_forward
(module, return_dict=None)
TeaCache4LTX-Video/teacache_ltx.py:93
↓ 2 callersFunctioncreate_custom_forward
(module)
eval/teacache/experiments/cogvideox.py:102
↓ 2 callersFunctioncreate_custom_forward
(module)
TeaCache4Mochi/teacache_mochi.py:91
↓ 2 callersFunctioncreate_custom_forward
(module)
TeaCache4CogVideoX1.5/teacache_sample_video.py:98
↓ 2 callersFunctioncreate_logger
Create a logger that writes to a log file and stdout.
videosys/utils/logging.py:7
↓ 2 callersMethoddecode
(self, z)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:482
↓ 2 callersMethoddecode
(self, z)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:482
↓ 2 callersMethoddecode
(self, z, num_frames=None)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:672
↓ 2 callersMethoddynamic_switch
(self, attn, x, batchsize, to_spatial_shard: bool)
videosys/models/modules/attentions.py:824
↓ 2 callersMethoddynamic_switch
(self, x, to_spatial_shard: bool)
videosys/models/transformers/latte_transformer_3d.py:826
↓ 2 callersMethoddynamic_switch
(self, x, to_spatial_shard: bool)
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:1713
↓ 2 callersMethoddynamic_switch
(self, x, to_spatial_shard: bool)
videosys/models/transformers/open_sora_plan_transformer_3d.py:1723
↓ 2 callersMethoddynamic_switch
(self, x, s, t, to_spatial_shard: bool)
videosys/models/transformers/open_sora_transformer_3d.py:275
↓ 2 callersMethodencode
(self, x)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:470
↓ 2 callersMethodencode
(self, x)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:470
↓ 2 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
videosys/pipelines/latte/pipeline_latte.py:287
↓ 2 callersMethodencode_text
(self, y, mask=None)
videosys/models/transformers/open_sora_transformer_3d.py:493
↓ 2 callersFunctionfind_nearest_point
(value, point, max_value)
videosys/pipelines/open_sora/pipeline_open_sora.py:818
↓ 2 callersMethodforward
input: * tokens: batch_size x nheads x ntokens x dim * positions: batch_size x ntokens x 2 (y and x position of each
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:167
↓ 2 callersMethodforward
input: * tokens: batch_size x nheads x ntokens x dim * positions: batch_size x ntokens x 2 (y and x position of each
videosys/models/transformers/open_sora_plan_transformer_3d.py:180
↓ 2 callersMethodforward
r"""Forward method of the `CogVideoXUpBlock3D` class.
videosys/models/autoencoders/autoencoder_kl_cogvideox.py:569
↓ 2 callersMethodfrom_seqlens
Input tensors are assumed to be in shape [B, M, *]
videosys/models/modules/attentions.py:196
↓ 2 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_v110_transformer_3d.py:75
↓ 2 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_transformer_3d.py:88
↓ 2 callersFunctionget_activation_fn
(activation)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:167
↓ 2 callersMethodget_dynamic_size
(self, x)
videosys/models/transformers/open_sora_transformer_3d.py:480
↓ 2 callersMethodget_last_layer
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:626
↓ 2 callersMethodget_last_layer
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:626
↓ 2 callersFunctionget_openai_response
(sys_prompt, usr_prompt, model="gpt-4o")
videosys/pipelines/open_sora/pipeline_open_sora.py:897
↓ 2 callersMethodinitialize
(self, input)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:1194
↓ 2 callersFunctionis_odd
(n)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:75
↓ 2 callersFunctionload_prompts
(prompt_path, start_idx=None, end_idx=None)
videosys/pipelines/open_sora/pipeline_open_sora.py:662
↓ 2 callersFunctionload_video
Load a video from the given path and convert it to a PyTorch tensor.
eval/teacache/common_metrics/batch_eval.py:13
↓ 2 callersMethodmake_attn_mask
(self, attention_mask, frame, dtype)
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:2386
↓ 2 callersMethodmake_position
(self, b, t, use_image_num, h, w, device)
videosys/models/transformers/open_sora_plan_transformer_3d.py:2376
↓ 2 callersFunctionmean_flat
Take the mean over all non-batch dimensions.
videosys/schedulers/scheduling_rflow_open_sora.py:32
↓ 2 callersMethodmode
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:63
↓ 2 callersMethodnorm_encoder_hidden_states
r""" Normalize the encoder hidden states. Requires `self.norm_cross` to be specified when constructing the `Attention` class.
videosys/models/transformers/open_sora_plan_transformer_3d.py:1085
↓ 2 callersFunctionparse_args
()
eval/teacache/vbench/run_vbench.py:28
↓ 2 callersMethodprepare_attention_mask
r""" Prepare the attention mask for the attention computation. Args: attention_mask (`torch.Tensor`): The
videosys/models/transformers/open_sora_plan_transformer_3d.py:1038
↓ 2 callersFunctionprint_results
(lpips_results, psnr_results, ssim_results, gt_video_dirs, gen_video_dirs)
eval/teacache/common_metrics/batch_eval.py:104
↓ 2 callersFunctionresize_crop_to_fill
(pil_image, image_size)
videosys/pipelines/open_sora/data_process.py:742
↓ 2 callersMethodrun
(self)
setup.py:41
↓ 2 callersMethodsample
( self, model, z, model_args, y_null, device, mask=Non
videosys/schedulers/scheduling_rflow_open_sora.py:188
↓ 2 callersMethodsample
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:210
↓ 2 callersMethodtiled_decode2d
(self, z)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:735
↓ 2 callersMethodtiled_decode2d
(self, z)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:1006
↓ 2 callersMethodtiled_decode2d
(self, z)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:735
↓ 2 callersMethodtiled_encode2d
(self, x, return_moments=False)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:695
↓ 2 callersMethodtiled_encode2d
(self, x, return_moments=False)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:965
↓ 2 callersMethodtiled_encode2d
(self, x, return_moments=False)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:695
↓ 2 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
videosys/models/modules/embeddings.py:122
↓ 2 callersFunctiontimestep_transform
( t, model_kwargs, base_resolution=512 * 512, base_num_frames=1, scale=1.0, num_timest
videosys/schedulers/scheduling_rflow_open_sora.py:47
↓ 2 callersFunctiontrans
(x)
eval/teacache/common_metrics/calculate_psnr.py:19
↓ 2 callersFunctiontrans
(x)
eval/teacache/common_metrics/calculate_lpips.py:12
↓ 2 callersFunctiontrans
(x)
eval/teacache/common_metrics/calculate_ssim.py:44
↓ 2 callersMethodvae_to_diff_mask
(self, attention_mask, use_image_num)
videosys/models/transformers/open_sora_plan_transformer_3d.py:2391
↓ 1 callersFunctionOpenSoraVAE_V1_2
( micro_batch_size=4, micro_frame_size=17, from_pretrained=None, freeze_vae_2d=False, cal_
videosys/models/autoencoders/autoencoder_kl_open_sora.py:731
↓ 1 callersFunctionVAE_Temporal_SD
(**kwargs)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:474
↓ 1 callersMethod__init__
( self, dim: int, num_attention_heads: int, attention_head_dim: int, t
videosys/models/transformers/cogvideox_transformer_3d.py:214
← previousnext →101–200 of 1,040, ranked by callers