Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ASLP-lab/OSUM-Pangu
/ functions
Functions
1,198 in github.com/ASLP-lab/OSUM-Pangu
⨍
Functions
1,198
◇
Types & classes
199
Function
record_gradient_hook
(grad)
wenet/finetune/lora/utils.py:103
Method
rel_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
Method
rel_shift
Compute relative positinal encoding. Args: x (torch.Tensor): Input tensor (batch, time, size). zero_triu (bool): If tr
wenet/transformer/attention.py:338
Function
replace_func
(match)
common_utils/utils4infer.py:117
Function
resample
Resample data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] resample_rate: target
wenet/dataset/process/processor_tag_think.py:1075
Function
resample
Resample data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] resample_rate: target
wenet/dataset/process/processor.py:1045
Function
resample
Resample data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] resample_rate: target
wenet/dataset/process/processor_language_think.py:1010
Function
resample
Resample data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] resample_rate: target
wenet/dataset/process/processor_tmp.py:1197
Function
run
(prog)
tools/ssh_launcher.py:115
Function
scheduler
(opt)
wenet/utils/train_utils.py:572
Method
set_alignment_heads
(self, dump: bytes)
wenet/whisper/whisper_with_clap.py:78
Method
set_alignment_heads
(self, dump: bytes)
wenet/whisper/whisper.py:52
Method
set_epoch
(self, epoch)
wenet/dataset/dataset.py:36
Method
set_epoch
(self, epoch)
wenet/dataset/dataset.py:82
Method
set_epoch
(self, epoch)
wenet/dataset/dataset.py:191
Method
set_phase
(self, speech_phase: bool)
patches/custom_speech_ngram_blocking.py:30
Method
set_phase
(self, speech_phase: bool)
patches/custom_speech_repetition_penalty.py:9
Method
set_step
(self, step: int)
wenet/utils/scheduler.py:75
Function
shape
Change str to List[int] >>> shape('3,5') [3, 5] >>> shape(' [3, 5] ') [3, 5]
tools/merge_scp2txt.py:21
Function
shuffle
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
Function
shuffle
Local shuffle the data Args: data: Iterable[{key, feat, label}] shuffle_size: buffer size for shuffle Retur
wenet/dataset/process/processor.py:1344
Function
shuffle
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
Function
shuffle
Local shuffle the data Args: data: Iterable[{key, feat, label}] shuffle_size: buffer size for shuffle Retur
wenet/dataset/process/processor_tmp.py:1496
Function
sort
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
Function
sort
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
Function
sort
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
Function
sort
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
Function
spec_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
Function
spec_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
Function
spec_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
Function
spec_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
Function
spec_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
Function
spec_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
Function
spec_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
Function
spec_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
Function
spec_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
Function
spec_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
Function
spec_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
Function
spec_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
Function
speed_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
Function
speed_perturb
Apply speed perturb to the data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] spe
wenet/dataset/process/processor.py:1068
Function
speed_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
Function
speed_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
Function
split_txt2asr_tag
(text)
wenet/dataset/process/processor_tag_think.py:522
Function
split_txt2asr_tag
(text)
wenet/dataset/process/processor.py:533
Function
split_txt2asr_tag
(text)
wenet/dataset/process/processor_language_think.py:533
Function
split_txt2asr_tag
(text)
wenet/dataset/process/processor_tmp.py:476
Method
symbol_table
(self)
wenet/text/hugging_face_tokenizer.py:56
Method
symbol_table
(self)
wenet/text/whisper_tokenizer.py:101
Method
symbol_table
(self)
wenet/text/char_tokenizer.py:79
Method
symbol_table
(self)
wenet/text/base_tokenizer.py:40
Function
tar_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
Function
tar_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
Function
tar_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
Function
tar_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
Function
tar_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
Function
tar_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
Function
tar_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
Function
tar_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
Method
text2tokens
(self, line: str)
wenet/text/paraformer_tokenizer.py:32
Method
text2tokens
(self, line: str)
wenet/text/hugging_face_tokenizer.py:33
Method
text2tokens
(self, line: str)
wenet/text/whisper_tokenizer.py:78
Method
text2tokens
(self, line: str)
wenet/text/char_tokenizer.py:38
Method
text2tokens
(self, line: str)
wenet/text/bpe_tokenizer.py:31
Method
tie_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
Method
tie_or_clone_weights
(self, jit_mode: bool = True)
wenet/transformer/asr_model.py:195
Function
token_list2wav
(token_list, prompt_speech, wav_path, cosyvoice)
common_utils/utils4infer.py:40
Function
tokenize
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
Function
tokenize
Decode text to chars or BPE Inplace operation Args: tokenizer: data: Iterable[{key, wav, txt, sample_rate}]
wenet/dataset/process/processor.py:609
Function
tokenize
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
Function
tokenize
Decode text to chars or BPE Inplace operation Args: tokenizer: data: Iterable[{key, wav, txt, sample_rate}]
wenet/dataset/process/processor_tmp.py:551
Method
tokens2ids
(self, tokens: List[str])
wenet/text/whisper_tokenizer.py:87
Method
tokens2ids
(self, tokens: List[str])
wenet/text/char_tokenizer.py:62
Method
tokens2text
(self, tokens: List[str])
wenet/text/paraformer_tokenizer.py:51
Method
tokens2text
(self, tokens: List[Type])
wenet/text/hugging_face_tokenizer.py:37
Method
tokens2text
(self, tokens: List[str])
wenet/text/whisper_tokenizer.py:82
Method
tokens2text
(self, tokens: List[str])
wenet/text/char_tokenizer.py:59
Method
tokens2text
(self, tokens: List[str])
wenet/text/bpe_tokenizer.py:48
Method
train
(self, mode: bool = True)
wenet/finetune/lora/layers.py:73
Method
train
(self, mode: bool = True)
wenet/finetune/lora/layers.py:239
Method
train
(self, mode=True)
wenet/finetune/lora/layers.py:308
Method
transcribe
(self, audio_file: str, tokens_info: bool = False)
wenet/cli/paraformer_model.py:25
Method
transducer_attention_rescoring
beam search Args: speech (torch.Tensor): (batch=1, max_len, feat_dim) speech_length (torch.Tensor): (batch, )
wenet/transducer/transducer.py:261
Function
update_to
(b=1, bsize=1, tsize=None)
wenet/cli/hub.py:34
Function
url_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
Function
url_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
Function
url_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
Function
url_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
Method
vocab_size
(self)
wenet/text/hugging_face_tokenizer.py:50
Method
vocab_size
(self)
wenet/text/whisper_tokenizer.py:96
Method
vocab_size
(self)
wenet/text/base_tokenizer.py:36
Method
warmuplr_fn
(lr, warmup_step)
wenet/utils/scheduler.py:66
Function
wenet_join
(group_join, info_dict)
wenet/utils/train_utils.py:659
Function
write_ark_scp
(key, mat, ark_fout, scp_out)
wenet/dataset/kaldi_io.py:550
Function
write_tar_file
(data_list, no_segments, tar_file, resample=16000,
tools/make_shard_list.py:31
Function
write_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
Function
write_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
Method
zero_pad
(self, x)
wenet/finetune/lora/layers.py:225
← previous
1,101–1,198 of 1,198, ranked by callers