MCPcopy Create free account

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

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

Methodforward
(self, x)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:1634
Methodforward
(self, x)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:121
Methodforward
(self, x)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:154
Methodforward
(self, x)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:258
Methodforward
(self, x)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:355
Methodforward
(self, x, sample_posterior=True)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:464
Methodforward
(self, x, decode_only=False, **kwargs)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:697
Methodfrom_native_module
(module, *args, **kwargs)
videosys/core/shardformer/t5/modeling.py:30
Methodfrom_pretrained_2d
(cls, pretrained_model_path, subfolder=None, **kwargs)
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:2768
Methodfrom_pretrained_2d
(cls, pretrained_model_path, subfolder=None, **kwargs)
videosys/models/transformers/open_sora_plan_transformer_3d.py:2763
Methodfrom_pretrained_temporal
(cls, pretrained_model_path, torch_dtype, logger, subfolder=None, tp_size=1)
videosys/models/transformers/vchitect_transformer_3d.py:596
Methodfuse_qkv_projections
r"""Enables fused QKV projections.
videosys/pipelines/cogvideox/pipeline_cogvideox.py:437
Methodfuse_qkv_projections
Enables fused QKV projections. For self-attention modules, all projection matrices (i.e., query, key, value) are fused. For cross-att
videosys/models/transformers/vchitect_transformer_3d.py:442
Methodgenerate
Function invoked when calling the pipeline for generation. Latte can only generate video of 16 frames 512x512. Args:
videosys/pipelines/latte/pipeline_latte.py:675
Methodgenerate
Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
videosys/pipelines/cogvideox/pipeline_cogvideox.py:490
Methodgenerate
Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
videosys/pipelines/open_sora/pipeline_open_sora.py:427
Methodgenerate
Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
videosys/pipelines/open_sora_plan/pipeline_open_sora_plan.py:911
Methodgenerate
r""" Function invoked when calling the pipeline for generation. Args: prompt (`str` or `List[str]`, *optional*):
videosys/pipelines/vchitect/pipeline_vchitect.py:712
Methodget_attention_scores
r""" Compute the attention scores. Args: query (`torch.Tensor`): The query tensor. key (`torch.Tensor`): The
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:978
Methodget_attention_scores
r""" Compute the attention scores. Args: query (`torch.Tensor`): The query tensor. key (`torch.Tensor`): The
videosys/models/transformers/open_sora_plan_transformer_3d.py:991
Functionget_closest_ratio
(height: float, width: float, ratios: dict)
videosys/pipelines/open_sora/data_process.py:451
Methodget_decoder
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:854
Methodget_encoder
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:849
Functionget_eval_save_path_name
( save_dir, id, # add id parameter sample_name=None, # prefix sample_idx=None, # sample ind
videosys/pipelines/open_sora/pipeline_open_sora.py:687
Methodget_fsdp_wrap_module_list
(self)
videosys/models/transformers/vchitect_transformer_3d.py:592
Methodget_last_layer
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:896
Methodget_latent_size
(self, input_size)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:540
Methodget_latent_size
(self, input_size)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:577
Methodget_latent_size
(self, input_size)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:706
Methodget_processor
r""" Get the attention processor in use. Args: return_deprecated_lora (`bool`, *optional*, defaults to `False`):
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:814
Functionget_save_path_name
( save_dir, sample_name=None, # prefix sample_idx=None, # sample index prompt=None, # used
videosys/pipelines/open_sora/pipeline_open_sora.py:669
Methodget_spatial_mlp_outputs
(self)
videosys/core/pab_mgr.py:176
Methodget_temporal_last_layer
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:719
Methodget_temporal_mlp_outputs
(self)
videosys/core/pab_mgr.py:179
Methodget_velocity
(self, sample: torch.Tensor, noise: torch.Tensor, timesteps: torch.IntTensor)
videosys/schedulers/scheduling_dpm_cogvideox.py:463
Methodget_velocity
(self, sample: torch.Tensor, noise: torch.Tensor, timesteps: torch.IntTensor)
videosys/schedulers/scheduling_ddim_cogvideox.py:423
Functiongetae_wrapper
deprecation
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:849
Functiongetae_wrapper
deprecation
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:846
Methodguidance_scale
(self)
videosys/pipelines/cogvideox/pipeline_cogvideox.py:478
Methodguidance_scale
(self)
videosys/pipelines/vchitect/pipeline_vchitect.py:684
Functionhas_openai_key
()
videosys/pipelines/open_sora/pipeline_open_sora.py:941
Methodhead_to_batch_dim
r""" Reshape the tensor from `[batch_size, seq_len, dim]` to `[batch_size, seq_len, heads, dim // heads]` `heads` is the number of hea
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:955
Methodhead_to_batch_dim
r""" Reshape the tensor from `[batch_size, seq_len, dim]` to `[batch_size, seq_len, heads, dim // heads]` `heads` is the number of hea
videosys/models/transformers/open_sora_plan_transformer_3d.py:968
Functioni2v_generate
r""" Generates video frames from input image and text prompt using diffusion process. Args: input_prompt (`str`):
TeaCache4Wan2.1/teacache_generate.py:213
Functioninitialize
( rank=0, world_size=1, init_method=None, )
videosys/core/parallel_mgr.py:37
Methodinterrupt
(self)
videosys/pipelines/cogvideox/pipeline_cogvideox.py:486
Methodinterrupt
(self)
videosys/pipelines/vchitect/pipeline_vchitect.py:707
Methodintervals
(self)
videosys/models/modules/attentions.py:192
Methodjoint_attention_kwargs
(self)
videosys/pipelines/vchitect/pipeline_vchitect.py:699
Methodkl
(self, other=None)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:60
Methodkl
(self, other=None)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:214
Methodkl
(self, other=None)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:60
Methodkl
(self, other=None)
videosys/models/autoencoders/autoencoder_kl_open_sora.py:41
Functionload_videos
(directory, video_ids, file_extension)
eval/teacache/common_metrics/eval.py:13
Functionmake_attn
(in_channels, attn_type="vanilla")
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:1069
Functionmake_attn
(in_channels, attn_type="vanilla")
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:1066
Functionmerge_args
Merge two argparse Namespace objects.
videosys/utils/utils.py:62
Functionmodel_sharding
(model: torch.nn.Module)
videosys/core/comm.py:15
Methodmodule_policy
(self)
videosys/core/shardformer/t5/policy.py:14
Methodnll
(self, sample, dims=[1, 2, 3])
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:76
Methodnll
(self, sample, dims=[1, 2, 3])
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:230
Methodnll
(self, sample, dims=[1, 2, 3])
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:76
Methodnll
(self, sample, dims=[1, 2, 3, 4])
videosys/models/autoencoders/autoencoder_kl_open_sora.py:57
Functionnoop_no_sync
()
TeaCache4Wan2.1/teacache_generate.py:136
Methodnum_timesteps
(self)
videosys/pipelines/cogvideox/pipeline_cogvideox.py:482
Methodnum_timesteps
(self)
videosys/pipelines/vchitect/pipeline_vchitect.py:703
Methodnum_training_steps
Total training steps inferred from datamodule and devices.
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v110.py:103
Methodnum_training_steps
Total training steps inferred from datamodule and devices.
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:167
Methodnum_training_steps
Total training steps inferred from datamodule and devices.
videosys/models/autoencoders/autoencoder_kl_open_sora_plan.py:103
Methodon_train_start
(self)
videosys/models/autoencoders/autoencoder_kl_open_sora_plan_v120.py:893
Methodpreprocess
(self)
videosys/core/shardformer/t5/policy.py:11
Functionpreprocess_eval_video
(eval_video, generated_video_shape)
eval/teacache/common_metrics/eval.py:53
Methodprocess
(text: str)
videosys/pipelines/latte/pipeline_latte.py:523
Methodprocess
(text: str)
videosys/pipelines/open_sora_plan/pipeline_open_sora_plan.py:759
Functionrefine_prompts_by_openai
(prompts)
videosys/pipelines/open_sora/pipeline_open_sora.py:945
Functionrequires_grad
Set requires_grad flag for all parameters in a model.
videosys/utils/utils.py:11
Methodreverse
(self, x, t, h, w)
videosys/models/transformers/open_sora_plan_v120_transformer_3d.py:830
Methodrun
(self)
setup.py:47
Methodrun
(self)
setup.py:53
Methodrun
(self)
videosys/core/mp_utils.py:99
Methodrun
(self)
videosys/core/mp_utils.py:120
Functionsave_sample
Args: x (Tensor): shape [C, T, H, W]
videosys/pipelines/open_sora/data_process.py:502
Methodsave_video
(self, video, output_path)
videosys/pipelines/latte/pipeline_latte.py:950
Methodsave_video
(self, video, output_path)
videosys/pipelines/cogvideox/pipeline_cogvideox.py:757
Methodsave_video
(self, video, output_path)
videosys/pipelines/open_sora/pipeline_open_sora.py:658
Methodsave_video
(self, video, output_path)
videosys/pipelines/open_sora_plan/pipeline_open_sora_plan.py:1192
Methodsave_video
(self, video, output_path)
videosys/pipelines/vchitect/pipeline_vchitect.py:996
Methodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
videosys/schedulers/scheduling_ddim_cogvideox.py:237
Methodset_attention_slice
r""" Set the slice size for attention computation. Args: slice_size (`int`): The slice size for attention
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:751
Methodset_attention_slice
r""" Set the slice size for attention computation. Args: slice_size (`int`): The slice size for attention
videosys/models/transformers/open_sora_plan_transformer_3d.py:764
Methodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int = 0)
videosys/models/transformers/open_sora_plan_v120_transformer_3d.py:1317
Methodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int = 0)
videosys/models/transformers/latte_transformer_3d.py:346
Methodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int)
videosys/models/transformers/latte_transformer_3d.py:675
Methodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int)
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:1532
Methodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int = 0)
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:1905
Methodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int)
videosys/models/transformers/open_sora_plan_transformer_3d.py:1542
Methodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int = 0)
videosys/models/transformers/open_sora_plan_transformer_3d.py:1915
Methodset_last_out
(self, last_out: torch.Tensor)
videosys/models/transformers/latte_transformer_3d.py:672
Methodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`)
videosys/schedulers/scheduling_ddim_cogvideox.py:254
Methodset_use_memory_efficient_attention_xformers
r""" Set whether to use memory efficient attention from `xformers` or not. Args: use_memory_efficient_attention_xformers
videosys/models/transformers/open_sora_plan_v110_transformer_3d.py:620
← previousnext →901–1,000 of 1,040, ranked by callers