Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antgroup/echomimic_v2
/ functions
Functions
395 in github.com/antgroup/echomimic_v2
⨍
Functions
395
◇
Types & classes
84
Method
__init__
(self, n_vocab: int, n_ctx: int, n_state: int, n_head: int, n_layer: int)
src/models/whisper/whisper/model.py:175
Method
__init__
(self)
src/models/whisper/whisper/normalizers/english.py:23
Method
__init__
(self)
src/models/whisper/whisper/normalizers/english.py:450
Method
__init__
(self, remove_diacritics: bool = False, split_letters: bool = False)
src/models/whisper/whisper/normalizers/basic.py:56
Method
__init__
(self, model_det, model_pose, device="cuda")
src/models/dwpose/wholebody.py:11
Method
__init__
(self, model_det, model_pose, device='cuda')
src/models/dwpose/dwpose_detector.py:22
Method
_conv_forward
(self, x: Tensor, weight: Tensor, bias: Optional[Tensor])
src/models/whisper/whisper/model.py:42
Method
_encode_prompt
( self, prompt, device, num_videos_per_prompt, do_classifier_free_guid
src/pipelines/pipeline_echomimicv2.py:255
Method
_execution_device
(self)
src/pipelines/pipeline_echomimicv2.py:93
Method
_execution_device
(self)
src/pipelines/pipeline_echomimicv2_acc.py:93
Method
_set_gradient_checkpointing
(self, module, value=False)
src/models/transformer_3d.py:99
Method
_set_gradient_checkpointing
(self, module, value=False)
src/models/transformer_2d.py:210
Method
_set_gradient_checkpointing
(self, module, value=False)
src/models/unet_3d.py:354
Method
_set_gradient_checkpointing
(self, module, value=False)
src/models/unet_2d_condition.py:834
Method
_set_gradient_checkpointing
(self, module, value=False)
src/models/unet_3d_emo.py:354
Method
add_more_noise
(self, noisy_latents, noise, timestep, timestep_more)
src/pipelines/myschedulers.py:109
Method
all_language_codes
(self)
src/models/whisper/whisper/tokenizer.py:227
Method
all_language_tokens
(self)
src/models/whisper/whisper/tokenizer.py:215
Method
apply
(self, logits: Tensor, tokens: Tensor)
src/models/whisper/whisper/decoding.py:392
Method
apply
(self, logits: Tensor, tokens: Tensor)
src/models/whisper/whisper/decoding.py:401
Method
apply
(self, logits: Tensor, tokens: Tensor)
src/models/whisper/whisper/decoding.py:413
Function
assign_audio_to_frame
(audio_input, frame_num)
src/utils/util_emo.py:112
Function
assign_audio_to_frame_new
(audio_input, frame_num, pad_frame)
src/utils/util_emo.py:135
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/models/unet_3d.py:254
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/models/unet_2d_condition.py:673
Method
attn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/models/unet_3d_emo.py:254
Method
cleanup_caching
(self)
src/models/whisper/whisper/decoding.py:151
Method
combine_cents
(m: Match)
src/models/whisper/whisper/normalizers/english.py:411
Method
create_custom_forward
(module, return_dict=None)
src/models/transformer_2d.py:334
Method
create_custom_forward
(module, return_dict=None)
src/models/unet_2d_blocks.py:471
Method
create_custom_forward
(module, return_dict=None)
src/models/unet_2d_blocks.py:630
Method
create_custom_forward
(module)
src/models/unet_2d_blocks.py:749
Method
create_custom_forward
(module, return_dict=None)
src/models/unet_2d_blocks.py:917
Method
create_custom_forward
(module)
src/models/unet_2d_blocks.py:1051
Method
create_custom_forward
(module, return_dict=None)
src/models/unet_3d_blocks.py:416
Method
create_custom_forward
(module)
src/models/unet_3d_blocks.py:552
Method
create_custom_forward
(module, return_dict=None)
src/models/unet_3d_blocks.py:707
Method
create_custom_forward
(module)
src/models/unet_3d_blocks.py:841
Method
custom_forward
(*inputs)
src/models/transformer_2d.py:335
Method
custom_forward
(*inputs)
src/models/unet_2d_blocks.py:472
Method
custom_forward
(*inputs)
src/models/unet_2d_blocks.py:631
Method
custom_forward
(*inputs)
src/models/unet_2d_blocks.py:750
Method
custom_forward
(*inputs)
src/models/unet_2d_blocks.py:918
Method
custom_forward
(*inputs)
src/models/unet_2d_blocks.py:1052
Method
custom_forward
(*inputs)
src/models/unet_3d_blocks.py:417
Method
custom_forward
(*inputs)
src/models/unet_3d_blocks.py:553
Method
custom_forward
(*inputs)
src/models/unet_3d_blocks.py:708
Method
custom_forward
(*inputs)
src/models/unet_3d_blocks.py:842
Function
decode
Performs decoding of 30-second audio segment(s), provided as Mel spectrogram(s). Parameters ---------- model: Whisper the Wh
src/models/whisper/whisper/decoding.py:700
Method
decode_with_timestamps
Timestamp tokens are above the special tokens' id range and are ignored by `decode()`. This method decodes given tokens with timestam
src/models/whisper/whisper/tokenizer.py:143
Function
delete_additional_ckpt
(base_path, num_keep)
src/utils/util.py:35
Function
detect_language
Detect the spoken language in the audio, and return them as list of strings, along with the ids of the most probable language tokens and the
src/models/whisper/whisper/decoding.py:19
Method
disable_freeu
Disables the FreeU mechanism.
src/models/unet_2d_condition.py:862
Method
disable_vae_slicing
(self)
src/pipelines/pipeline_echomimicv2.py:77
Method
disable_vae_slicing
(self)
src/pipelines/pipeline_echomimicv2_acc.py:77
Function
draw_bodypose
(canvas, candidate, subset, score)
src/utils/dwpose_util.py:14
Function
draw_bodypose_white
(canvas, candidate, subset, score)
src/utils/dwpose_util.py:60
Function
draw_facepose
(canvas, all_lmks, all_scores)
src/utils/dwpose_util.py:134
Method
draw_pose
(self, image_size, keypoints, normed=False)
src/utils/draw_utils.py:194
Method
embed_audio
(self, mel: torch.Tensor)
src/models/whisper/whisper/model.py:239
Method
enable_freeu
r"""Enables the FreeU mechanism from https://arxiv.org/abs/2309.11497. The suffixes after the scaling factors represent the stage blocks wh
src/models/unet_2d_condition.py:838
Method
enable_sequential_cpu_offload
(self, gpu_id=0)
src/pipelines/pipeline_echomimicv2.py:80
Method
enable_sequential_cpu_offload
(self, gpu_id=0)
src/pipelines/pipeline_echomimicv2_acc.py:80
Method
enable_vae_slicing
(self)
src/pipelines/pipeline_echomimicv2.py:74
Method
enable_vae_slicing
(self)
src/pipelines/pipeline_echomimicv2_acc.py:74
Method
eot
(self)
src/models/whisper/whisper/tokenizer.py:161
Method
extra_repr
(self)
src/models/motion_module.py:307
Method
extra_repr
(self)
src/models/motion_module.py:418
Method
extract_cents
(m: Match)
src/models/whisper/whisper/normalizers/english.py:420
Method
finalize
(self, tokens: Tensor, sum_logprobs: Tensor)
src/models/whisper/whisper/decoding.py:275
Method
finalize
(self, preceding_tokens: Tensor, sum_logprobs: Tensor)
src/models/whisper/whisper/decoding.py:351
Method
fn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
src/models/unet_3d.py:263
Method
fn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionPr
src/models/unet_2d_condition.py:682
Method
fn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
src/models/unet_3d_emo.py:263
Method
fn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/models/unet_3d.py:382
Method
fn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/models/unet_2d_condition.py:727
Method
fn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/models/unet_3d_emo.py:382
Method
fn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
src/models/unet_3d.py:299
Method
fn_recursive_retrieve_slicable_dims
(module: torch.nn.Module)
src/models/unet_3d_emo.py:299
Method
fn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
src/models/unet_2d_condition.py:779
Method
fn_recursive_set_attention_slice
( module: torch.nn.Module, slice_size: List[int] )
src/models/unet_3d.py:341
Method
fn_recursive_set_attention_slice
( module: torch.nn.Module, slice_size: List[int] )
src/models/unet_2d_condition.py:821
Method
fn_recursive_set_attention_slice
( module: torch.nn.Module, slice_size: List[int] )
src/models/unet_3d_emo.py:341
Method
forward
(self, x)
src/utils/util_emo.py:18
Method
forward
( self, hidden_states, encoder_hidden_states=None, audio_cond_fea=None,
src/models/transformer_3d.py:103
Method
forward
The [`Transformer2DModel`] forward method. Args: hidden_states (`torch.LongTensor` of shape `(batch size, num latent
src/models/transformer_2d.py:214
Method
forward
r""" Args: sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor timestep (`torch.FloatTen
src/models/unet_3d.py:397
Method
forward
r""" The [`UNet2DConditionModel`] forward method. Args: sample (`torch.FloatTensor`): The noisy inpu
src/models/unet_2d_condition.py:873
Method
forward
(self, x)
src/models/wav_clip.py:24
Method
forward
(self, x)
src/models/wav_clip.py:41
Method
forward
( self, hidden_states: torch.FloatTensor, attention_mask: Optional[torch.FloatTensor]
src/models/attention.py:150
Method
forward
( self, hidden_states, encoder_hidden_states=None, audio_cond_fea = None,
src/models/attention.py:327
Method
forward
(self, conditioning)
src/models/pose_encoder.py:47
Method
forward
(self, x: torch.FloatTensor)
src/models/unet_2d_blocks.py:220
Method
forward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None )
src/models/unet_2d_blocks.py:345
Method
forward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
src/models/unet_2d_blocks.py:453
Method
forward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
src/models/unet_2d_blocks.py:607
Method
forward
( self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None,
src/models/unet_2d_blocks.py:738
Method
forward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[torch.Floa
src/models/unet_2d_blocks.py:873
Method
forward
( self, hidden_states: torch.FloatTensor, res_hidden_states_tuple: Tuple[torch.Floa
src/models/unet_2d_blocks.py:1015
← previous
next →
201–300 of 395, ranked by callers