MCPcopy Create free account

hub / github.com/ace-step/ACE-Step / functions

Functions375 in github.com/ace-step/ACE-Step

↓ 1 callersMethodcleanup_memory
Clean up GPU and CPU memory to prevent VRAM overflow during multiple generations.
acestep/pipeline_ace_step.py:142
↓ 1 callersMethodcollate_fn
Collate function for DataLoader Args: batch: List of examples Returns: dict: Collated batch with pa
acestep/text2music_dataset.py:588
↓ 1 callersFunctioncompute_value
Compute the value. When current unit is larger than previous unit, current unit * all previous units will be used as all previous uni
acestep/models/lyrics_utils/zh_num2words.py:619
↓ 1 callersMethodconstruct_lyrics
(self, candidate_lyric_chunk)
trainer.py:769
↓ 1 callersFunctioncorrect_symbols
一百八 to 一百八十 一亿一千三百万 to 一亿 一千万 三百万
acestep/models/lyrics_utils/zh_num2words.py:587
↓ 1 callersFunctioncreate_dataset
(data_dir="./data", repeat_count=2000, output_name="zh_lora_dataset")
convert2hf_dataset.py:5
↓ 1 callersFunctioncreate_text2music_ui
( gr, text2music_process_func, sample_data_func=None, load_data_func=None, )
acestep/ui/components.py:89
↓ 1 callersFunctioncross_norm
(hidden_states, controlnet_input)
acestep/models/ace_step_transformer.py:32
↓ 1 callersMethoddate2chntext
(self)
acestep/models/lyrics_utils/zh_num2words.py:864
↓ 1 callersMethoddecode
( self, hidden_states: torch.Tensor, attention_mask: torch.Tensor, encoder_hid
acestep/models/ace_step_transformer.py:414
↓ 1 callersMethoddecode
(self, seq, skip_special_tokens=False)
acestep/models/lyrics_utils/lyric_tokenizer.py:704
↓ 1 callersMethoddecode_overlap
Decodes latents into waveforms using an overlapped DCAE and Vocoder.
acestep/music_dcae/music_dcae_pipeline.py:147
↓ 1 callersMethoddiffusion_process
( self, duration, encoder_text_hidden_states, text_attention_mask, spe
trainer-api.py:76
↓ 1 callersMethoddiffusion_process
( self, duration, encoder_text_hidden_states, text_attention_mask, spe
trainer.py:617
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). This is the same as the DropConnect impl I created for E
acestep/music_dcae/music_vocoder.py:33
↓ 1 callersMethodencode
(self, audios, audio_lengths=None, sr=None)
acestep/music_dcae/music_dcae_pipeline.py:77
↓ 1 callersMethodencode
( self, encoder_text_hidden_states: Optional[torch.Tensor] = None, text_attention_mask
acestep/models/ace_step_transformer.py:376
↓ 1 callersMethodflowedit_diffusion_process
( self, encoder_text_hidden_states, text_attention_mask, speaker_embds,
acestep/pipeline_ace_step.py:566
↓ 1 callersMethodforward_layers
( self, xs: torch.Tensor, chunk_masks: torch.Tensor, pos_emb: torch.Tensor,
acestep/models/lyrics_utils/lyric_encoder.py:1013
↓ 1 callersMethodforward_layers_checkpointed
( self, xs: torch.Tensor, chunk_masks: torch.Tensor, pos_emb: torch.Tensor,
acestep/models/lyrics_utils/lyric_encoder.py:1025
↓ 1 callersMethodforward_lyric_encoder
( self, lyric_token_idx: Optional[torch.LongTensor] = None, lyric_mask: Optional[torch
acestep/models/ace_step_transformer.py:363
↓ 1 callersMethodforward_mel
(self, audios)
acestep/music_dcae/music_dcae_pipeline.py:68
↓ 1 callersMethodfraction2chntext
(self)
acestep/models/lyrics_utils/zh_num2words.py:826
↓ 1 callersMethodgenerate_audio
( self, prompt: str, duration: int, infer_steps: int, guidance_scale:
trainer-api.py:155
↓ 1 callersMethodget_audio
Load and preprocess audio file Args: item: Dataset item containing filename Returns: torch.Tensor o
acestep/text2music_dataset.py:388
↓ 1 callersMethodget_full_features
Get full features for a dataset index Args: idx: Dataset index Returns: dict: Dictionary of feature
acestep/text2music_dataset.py:522
↓ 1 callersMethodget_lang
Detect the language of a text Args: text: Input text Returns: tuple: (primary_language, language_se
acestep/text2music_dataset.py:231
↓ 1 callersMethodget_lang
(self, text)
acestep/pipeline_ace_step.py:426
↓ 1 callersFunctionget_same_padding
( kernel_size: Union[int, Tuple[int, ...]], )
acestep/models/attention.py:66
↓ 1 callersMethodget_scheduler
(self)
trainer.py:407
↓ 1 callersMethodget_sd3_sigmas
(self, timesteps, device, n_dim=4, dtype=torch.float32)
trainer.py:458
↓ 1 callersFunctionget_spacy_lang
(lang)
acestep/models/lyrics_utils/lyric_tokenizer.py:23
↓ 1 callersMethodget_speaker_emb_file
Load speaker embedding file Args: speaker_emb_path: Path to speaker embedding file Returns: torch.T
acestep/text2music_dataset.py:371
↓ 1 callersMethodget_text_embeddings
(self, texts, device, text_max_length=256)
trainer-api.py:61
↓ 1 callersMethodget_text_embeddings
(self, texts, device, text_max_length=256)
trainer.py:299
↓ 1 callersMethodget_text_embeddings_null
( self, texts, text_max_length=256, tau=0.01, l_min=8, l_max=10 )
acestep/pipeline_ace_step.py:349
↓ 1 callersMethodget_timestep
(self, bsz, device)
trainer.py:468
↓ 1 callersFunctionget_value
(value_string, use_zeros=True)
acestep/models/lyrics_utils/zh_num2words.py:660
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
acestep/schedulers/scheduling_flow_match_heun_discrete.py:183
↓ 1 callersMethodinfer_mert_ssl
(self, target_wavs, wav_lengths)
trainer.py:145
↓ 1 callersMethodinfer_mhubert_ssl
(self, target_wavs, wav_lengths)
trainer.py:223
↓ 1 callersFunctioninitialize_pipeline
(checkpoint_path: str, bf16: bool, torch_compile: bool, device_id: int)
infer-api.py:41
↓ 1 callersFunctionis_silent_audio
Determine if an audio is silent and should be discarded Args: audio_tensor: torch.Tensor from torchaudio, shape (num_channels, num_s
acestep/text2music_dataset.py:21
↓ 1 callersFunctionjapanese_cleaners
(text, katsu)
acestep/models/lyrics_utils/lyric_tokenizer.py:609
↓ 1 callersFunctionkorean_transliterate
(text)
acestep/models/lyrics_utils/lyric_tokenizer.py:615
↓ 1 callersMethodlatents2audio
( self, latents, target_wav_duration_second=30, sample_rate=48000, sav
acestep/pipeline_ace_step.py:1362
↓ 1 callersMethodload_audio
(self, audio_path)
acestep/music_dcae/music_dcae_pipeline.py:62
↓ 1 callersMethodload_lora
(self, lora_name_or_path, lora_weight)
acestep/pipeline_ace_step.py:1428
↓ 1 callersMethodload_quantized_checkpoint
(self, checkpoint_dir=None)
acestep/pipeline_ace_step.py:280
↓ 1 callersFunctionmain
(checkpoint_path, bf16, torch_compile, cpu_offload, overlapped_decode, device_id, output_path)
infer.py:51
↓ 1 callersFunctionmain
()
convert2hf_dataset.py:40
↓ 1 callersFunctionmain
(args)
trainer.py:820
↓ 1 callersFunctionmain
Main function to launch the ACE Step pipeline demo.
acestep/gui.py:50
↓ 1 callersFunctionmain
()
acestep/language_segmentation/LangSegment.py:992
↓ 1 callersMethodmoney2chntext
(self)
acestep/models/lyrics_utils/zh_num2words.py:901
↓ 1 callersFunctionmultilingual_cleaners
(text, lang)
acestep/models/lyrics_utils/lyric_tokenizer.py:565
↓ 1 callersFunctionnormalize_nsw
(raw_text)
acestep/models/lyrics_utils/zh_num2words.py:928
↓ 1 callersFunctionoptimized_scale
(positive_flat, negative_flat)
acestep/apg_guidance.py:77
↓ 1 callersMethodpack_batch
Pack a batch of examples Args: batch: List of examples Returns: dict: Packed batch
acestep/text2music_dataset.py:569
↓ 1 callersMethodpercentage2chntext
(self)
acestep/models/lyrics_utils/zh_num2words.py:924
↓ 1 callersMethodplot_step
(self, batch, batch_idx)
trainer.py:777
↓ 1 callersMethodposition_encoding
For getting encoding in a streaming fashion Attention!!!!! we apply dropout only once at the whole utterance level in a none
acestep/models/lyrics_utils/lyric_encoder.py:787
↓ 1 callersMethodpredict_step
(self, batch)
trainer.py:715
↓ 1 callersMethodpreprocess_text
(self, txt, lang)
acestep/models/lyrics_utils/lyric_tokenizer.py:663
↓ 1 callersFunctionprintList
功能:打印数组结果 기능: 어레이 결과 인쇄 機能:配列結果を印刷 Function: Print array results
acestep/language_segmentation/LangSegment.py:976
↓ 1 callersMethodprocess
Process a dataset item into model-ready features Args: item: Dataset item Returns: list: List of pr
acestep/text2music_dataset.py:437
↓ 1 callersFunctionproject
( v0: torch.Tensor, # [B, C, H, W] v1: torch.Tensor, # [B, C, H, W] dims=[-1, -2], )
acestep/apg_guidance.py:14
↓ 1 callersMethodrel_shift
Compute relative positional encoding. Args: x (torch.Tensor): Input tensor (batch, head, time1, 2*time1-1). time1 mea
acestep/models/lyrics_utils/lyric_encoder.py:348
↓ 1 callersFunctionremove_erhua
去除儿化音词中的儿: 他女儿在那边儿 -> 他女儿在那边
acestep/models/lyrics_utils/zh_num2words.py:1019
↓ 1 callersFunctionremove_space
(text)
acestep/models/lyrics_utils/zh_num2words.py:1046
↓ 1 callersMethodremove_weight_norm
(self)
acestep/music_dcae/music_vocoder.py:361
↓ 1 callersMethodrun_step
(self, batch, batch_idx)
trainer.py:488
↓ 1 callersMethodsample
(self, lora_name_or_path=None)
acestep/data_sampler.py:20
↓ 1 callersFunctionsample_data
(json_data)
infer.py:8
↓ 1 callersMethodsave_wav_file
( self, target_wav, idx, save_path=None, sample_rate=48000, format="wav" )
acestep/pipeline_ace_step.py:1390
↓ 1 callersMethodsetup_full
Load and prepare the dataset Args: train: Whether this is a training dataset shuffle: Whether to shuffle the
acestep/text2music_dataset.py:207
↓ 1 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
acestep/schedulers/scheduling_flow_match_euler_discrete.py:244
↓ 1 callersFunctionstring2symbols
(chinese_string, system)
acestep/models/lyrics_utils/zh_num2words.py:579
↓ 1 callersFunctiont2i_modulate
(x, shift, scale)
acestep/models/attention.py:62
↓ 1 callersFunctiontest_abbreviations_multilingual
()
acestep/models/lyrics_utils/lyric_tokenizer.py:886
↓ 1 callersFunctiontest_expand_numbers_multilingual
()
acestep/models/lyrics_utils/lyric_tokenizer.py:747
↓ 1 callersFunctiontest_symbols_multilingual
()
acestep/models/lyrics_utils/lyric_tokenizer.py:945
↓ 1 callersMethodtext2music_diffusion_process
( self, duration, encoder_text_hidden_states, text_attention_mask, spe
acestep/pipeline_ace_step.py:811
↓ 1 callersMethodtime_shift
(self, mu: float, sigma: float, t: torch.Tensor)
acestep/schedulers/scheduling_flow_match_euler_discrete.py:173
↓ 1 callersMethodtime_shift
(self, mu: float, sigma: float, t: torch.Tensor)
acestep/schedulers/scheduling_flow_match_pingpong.py:173
↓ 1 callersMethodto_chinese_currency
(self, num: str)
acestep/language_segmentation/LangSegment.py:247
↓ 1 callersMethodto_chinese_date
(self, num: str)
acestep/language_segmentation/LangSegment.py:260
↓ 1 callersMethodto_chinese_telephone
(self, num: str)
acestep/language_segmentation/LangSegment.py:240
↓ 1 callersMethodtokenize_lyrics
Tokenize lyrics into token indices Args: lyrics: Lyrics text debug: Whether to print debug information
acestep/text2music_dataset.py:254
↓ 1 callersMethodtokenize_lyrics_map
Process and tokenize lyrics in a dataset item Args: item: Dataset item containing lyrics debug: Whether to p
acestep/text2music_dataset.py:339
↓ 1 callersMethodunpatchfy
( self, hidden_states: torch.Tensor, width: int, )
acestep/models/ace_step_transformer.py:110
↓ 1 callersFunctionval2list
Repeat `val` for `repeat_time` times and return the list or val if list/tuple.
acestep/models/attention.py:43
↓ 1 callersFunctionverbalize_cardinal
(value_string: str)
acestep/language_segmentation/utils/num.py:277
Method__call__
( self, format: str = "wav", audio_duration: float = 60.0, prompt: str = None,
acestep/pipeline_ace_step.py:1445
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
acestep/models/customer_attention_processor.py:64
Method__call__
( self, attn: Attention, hidden_states: torch.FloatTensor, encoder_hidden_stat
acestep/models/customer_attention_processor.py:288
Method__call__
(self, text)
acestep/models/lyrics_utils/zh_num2words.py:1083
Method__enter__
(self)
acestep/cpu_offload.py:12
Method__exit__
(self, *args)
acestep/cpu_offload.py:17
Method__getitem__
Get item at index with error handling Args: idx: Dataset index Returns: dict: Example features
acestep/text2music_dataset.py:653
← previousnext →101–200 of 375, ranked by callers