MCPcopy Create free account

hub / github.com/ASLP-lab/OSUM-Pangu / functions

Functions1,198 in github.com/ASLP-lab/OSUM-Pangu

Functionrecord_gradient_hook
(grad)
wenet/finetune/lora/utils.py:103
Methodrel_shift
Compute relative positinal encoding. Args: x (torch.Tensor): Input tensor (batch, time, size). zero_triu (bool): If tr
wenet/efficient_conformer/attention.py:56
Methodrel_shift
Compute relative positinal encoding. Args: x (torch.Tensor): Input tensor (batch, time, size). zero_triu (bool): If tr
wenet/transformer/attention.py:338
Functionreplace_func
(match)
common_utils/utils4infer.py:117
Functionresample
Resample data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] resample_rate: target
wenet/dataset/process/processor_tag_think.py:1075
Functionresample
Resample data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] resample_rate: target
wenet/dataset/process/processor.py:1045
Functionresample
Resample data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] resample_rate: target
wenet/dataset/process/processor_language_think.py:1010
Functionresample
Resample data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] resample_rate: target
wenet/dataset/process/processor_tmp.py:1197
Functionrun
(prog)
tools/ssh_launcher.py:115
Functionscheduler
(opt)
wenet/utils/train_utils.py:572
Methodset_alignment_heads
(self, dump: bytes)
wenet/whisper/whisper_with_clap.py:78
Methodset_alignment_heads
(self, dump: bytes)
wenet/whisper/whisper.py:52
Methodset_epoch
(self, epoch)
wenet/dataset/dataset.py:36
Methodset_epoch
(self, epoch)
wenet/dataset/dataset.py:82
Methodset_epoch
(self, epoch)
wenet/dataset/dataset.py:191
Methodset_phase
(self, speech_phase: bool)
patches/custom_speech_ngram_blocking.py:30
Methodset_phase
(self, speech_phase: bool)
patches/custom_speech_repetition_penalty.py:9
Methodset_step
(self, step: int)
wenet/utils/scheduler.py:75
Functionshape
Change str to List[int] >>> shape('3,5') [3, 5] >>> shape(' [3, 5] ') [3, 5]
tools/merge_scp2txt.py:21
Functionshuffle
Local shuffle the data Args: data: Iterable[{key, feat, label}] shuffle_size: buffer size for shuffle Retur
wenet/dataset/process/processor_tag_think.py:1376
Functionshuffle
Local shuffle the data Args: data: Iterable[{key, feat, label}] shuffle_size: buffer size for shuffle Retur
wenet/dataset/process/processor.py:1344
Functionshuffle
Local shuffle the data Args: data: Iterable[{key, feat, label}] shuffle_size: buffer size for shuffle Retur
wenet/dataset/process/processor_language_think.py:1309
Functionshuffle
Local shuffle the data Args: data: Iterable[{key, feat, label}] shuffle_size: buffer size for shuffle Retur
wenet/dataset/process/processor_tmp.py:1496
Functionsort
Sort the data by feature length. Sort is used after shuffle and before batch, so we can group utts with similar lengths into a batch,
wenet/dataset/process/processor_tag_think.py:1400
Functionsort
Sort the data by feature length. Sort is used after shuffle and before batch, so we can group utts with similar lengths into a batch,
wenet/dataset/process/processor.py:1368
Functionsort
Sort the data by feature length. Sort is used after shuffle and before batch, so we can group utts with similar lengths into a batch,
wenet/dataset/process/processor_language_think.py:1333
Functionsort
Sort the data by feature length. Sort is used after shuffle and before batch, so we can group utts with similar lengths into a batch,
wenet/dataset/process/processor_tmp.py:1520
Functionspec_aug
Do spec augmentation Inplace operation Args: data: Iterable[{key, feat, label}] num_t_mask: number of time m
wenet/dataset/process/processor_tag_think.py:1285
Functionspec_aug
Do spec augmentation Inplace operation Args: data: Iterable[{key, feat, label}] num_t_mask: number of time m
wenet/dataset/process/processor.py:1253
Functionspec_aug
Do spec augmentation Inplace operation Args: data: Iterable[{key, feat, label}] num_t_mask: number of time m
wenet/dataset/process/processor_language_think.py:1218
Functionspec_aug
Do spec augmentation Inplace operation Args: data: Iterable[{key, feat, label}] num_t_mask: number of time m
wenet/dataset/process/processor_tmp.py:1405
Functionspec_sub
Do spec substitute Inplace operation ref: U2++, section 3.2.3 [https://arxiv.org/abs/2106.05642] Args: data: Ite
wenet/dataset/process/processor_tag_think.py:1323
Functionspec_sub
Do spec substitute Inplace operation ref: U2++, section 3.2.3 [https://arxiv.org/abs/2106.05642] Args: data: Ite
wenet/dataset/process/processor.py:1291
Functionspec_sub
Do spec substitute Inplace operation ref: U2++, section 3.2.3 [https://arxiv.org/abs/2106.05642] Args: data: Ite
wenet/dataset/process/processor_language_think.py:1256
Functionspec_sub
Do spec substitute Inplace operation ref: U2++, section 3.2.3 [https://arxiv.org/abs/2106.05642] Args: data: Ite
wenet/dataset/process/processor_tmp.py:1443
Functionspec_trim
Trim tailing frames. Inplace operation. ref: TrimTail [https://arxiv.org/abs/2211.00522] Args: data: Iterable[{key, feat
wenet/dataset/process/processor_tag_think.py:1353
Functionspec_trim
Trim tailing frames. Inplace operation. ref: TrimTail [https://arxiv.org/abs/2211.00522] Args: data: Iterable[{key, feat
wenet/dataset/process/processor.py:1321
Functionspec_trim
Trim tailing frames. Inplace operation. ref: TrimTail [https://arxiv.org/abs/2211.00522] Args: data: Iterable[{key, feat
wenet/dataset/process/processor_language_think.py:1286
Functionspec_trim
Trim tailing frames. Inplace operation. ref: TrimTail [https://arxiv.org/abs/2211.00522] Args: data: Iterable[{key, feat
wenet/dataset/process/processor_tmp.py:1473
Functionspeed_perturb
Apply speed perturb to the data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] spe
wenet/dataset/process/processor_tag_think.py:1098
Functionspeed_perturb
Apply speed perturb to the data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] spe
wenet/dataset/process/processor.py:1068
Functionspeed_perturb
Apply speed perturb to the data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] spe
wenet/dataset/process/processor_language_think.py:1033
Functionspeed_perturb
Apply speed perturb to the data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] spe
wenet/dataset/process/processor_tmp.py:1220
Functionsplit_txt2asr_tag
(text)
wenet/dataset/process/processor_tag_think.py:522
Functionsplit_txt2asr_tag
(text)
wenet/dataset/process/processor.py:533
Functionsplit_txt2asr_tag
(text)
wenet/dataset/process/processor_language_think.py:533
Functionsplit_txt2asr_tag
(text)
wenet/dataset/process/processor_tmp.py:476
Methodsymbol_table
(self)
wenet/text/hugging_face_tokenizer.py:56
Methodsymbol_table
(self)
wenet/text/whisper_tokenizer.py:101
Methodsymbol_table
(self)
wenet/text/char_tokenizer.py:79
Methodsymbol_table
(self)
wenet/text/base_tokenizer.py:40
Functiontar_file_and_group
Expand a stream of open tar files into a stream of tar file contents. And groups the file with same prefix Args: data: I
wenet/dataset/process/processor_tag_think.py:167
Functiontar_file_and_group
Expand a stream of open tar files into a stream of tar file contents. And groups the file with same prefix Args: data: I
wenet/dataset/process/processor.py:159
Functiontar_file_and_group
Expand a stream of open tar files into a stream of tar file contents. And groups the file with same prefix Args: data: I
wenet/dataset/process/processor_language_think.py:159
Functiontar_file_and_group
Expand a stream of open tar files into a stream of tar file contents. And groups the file with same prefix Args: data: I
wenet/dataset/process/processor_tmp.py:139
Functiontar_file_and_group_full_data
Expand a stream of open tar files into a stream of tar file contents. And groups the file with same prefix Args: data: I
wenet/dataset/process/processor_tag_think.py:232
Functiontar_file_and_group_full_data
Expand a stream of open tar files into a stream of tar file contents. And groups the file with same prefix Args: data: I
wenet/dataset/process/processor.py:224
Functiontar_file_and_group_full_data
Expand a stream of open tar files into a stream of tar file contents. And groups the file with same prefix Args: data: I
wenet/dataset/process/processor_language_think.py:224
Functiontar_file_and_group_full_data
Expand a stream of open tar files into a stream of tar file contents. And groups the file with same prefix Args: data: I
wenet/dataset/process/processor_tmp.py:204
Methodtext2tokens
(self, line: str)
wenet/text/paraformer_tokenizer.py:32
Methodtext2tokens
(self, line: str)
wenet/text/hugging_face_tokenizer.py:33
Methodtext2tokens
(self, line: str)
wenet/text/whisper_tokenizer.py:78
Methodtext2tokens
(self, line: str)
wenet/text/char_tokenizer.py:38
Methodtext2tokens
(self, line: str)
wenet/text/bpe_tokenizer.py:31
Methodtie_or_clone_weights
Tie or clone module weights (between word_emb and output_layer) depending of whether we are using TorchScript or not
wenet/transformer/decoder.py:490
Methodtie_or_clone_weights
(self, jit_mode: bool = True)
wenet/transformer/asr_model.py:195
Functiontoken_list2wav
(token_list, prompt_speech, wav_path, cosyvoice)
common_utils/utils4infer.py:40
Functiontokenize
Decode text to chars or BPE Inplace operation Args: tokenizer: data: Iterable[{key, wav, txt, sample_rate}]
wenet/dataset/process/processor_tag_think.py:605
Functiontokenize
Decode text to chars or BPE Inplace operation Args: tokenizer: data: Iterable[{key, wav, txt, sample_rate}]
wenet/dataset/process/processor.py:609
Functiontokenize
Decode text to chars or BPE Inplace operation Args: tokenizer: data: Iterable[{key, wav, txt, sample_rate}]
wenet/dataset/process/processor_language_think.py:609
Functiontokenize
Decode text to chars or BPE Inplace operation Args: tokenizer: data: Iterable[{key, wav, txt, sample_rate}]
wenet/dataset/process/processor_tmp.py:551
Methodtokens2ids
(self, tokens: List[str])
wenet/text/whisper_tokenizer.py:87
Methodtokens2ids
(self, tokens: List[str])
wenet/text/char_tokenizer.py:62
Methodtokens2text
(self, tokens: List[str])
wenet/text/paraformer_tokenizer.py:51
Methodtokens2text
(self, tokens: List[Type])
wenet/text/hugging_face_tokenizer.py:37
Methodtokens2text
(self, tokens: List[str])
wenet/text/whisper_tokenizer.py:82
Methodtokens2text
(self, tokens: List[str])
wenet/text/char_tokenizer.py:59
Methodtokens2text
(self, tokens: List[str])
wenet/text/bpe_tokenizer.py:48
Methodtrain
(self, mode: bool = True)
wenet/finetune/lora/layers.py:73
Methodtrain
(self, mode: bool = True)
wenet/finetune/lora/layers.py:239
Methodtrain
(self, mode=True)
wenet/finetune/lora/layers.py:308
Methodtranscribe
(self, audio_file: str, tokens_info: bool = False)
wenet/cli/paraformer_model.py:25
Methodtransducer_attention_rescoring
beam search Args: speech (torch.Tensor): (batch=1, max_len, feat_dim) speech_length (torch.Tensor): (batch, )
wenet/transducer/transducer.py:261
Functionupdate_to
(b=1, bsize=1, tsize=None)
wenet/cli/hub.py:34
Functionurl_opener
Give url or local file, return file descriptor Inplace operation. Args: data(Iterable[str]): url or local file list
wenet/dataset/process/processor_tag_think.py:121
Functionurl_opener
Give url or local file, return file descriptor Inplace operation. Args: data(Iterable[str]): url or local file list
wenet/dataset/process/processor.py:113
Functionurl_opener
Give url or local file, return file descriptor Inplace operation. Args: data(Iterable[str]): url or local file list
wenet/dataset/process/processor_language_think.py:113
Functionurl_opener
Give url or local file, return file descriptor Inplace operation. Args: data(Iterable[str]): url or local file list
wenet/dataset/process/processor_tmp.py:99
Methodvocab_size
(self)
wenet/text/hugging_face_tokenizer.py:50
Methodvocab_size
(self)
wenet/text/whisper_tokenizer.py:96
Methodvocab_size
(self)
wenet/text/base_tokenizer.py:36
Methodwarmuplr_fn
(lr, warmup_step)
wenet/utils/scheduler.py:66
Functionwenet_join
(group_join, info_dict)
wenet/utils/train_utils.py:659
Functionwrite_ark_scp
(key, mat, ark_fout, scp_out)
wenet/dataset/kaldi_io.py:550
Functionwrite_tar_file
(data_list, no_segments, tar_file, resample=16000,
tools/make_shard_list.py:31
Functionwrite_vec_flt
write_vec_flt(f, v, key='') Write a binary kaldi vector to filename or stream. Supports 32bit and 64bit floats. Arguments: file_or_fd : file
wenet/dataset/kaldi_io.py:343
Functionwrite_vec_int
write_vec_int(f, v, key='') Write a binary kaldi integer vector to filename or stream. Arguments: file_or_fd : filename or opened file descr
wenet/dataset/kaldi_io.py:225
Methodzero_pad
(self, x)
wenet/finetune/lora/layers.py:225
← previous1,101–1,198 of 1,198, ranked by callers