MCPcopy Create free account

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

Functions1,852 in github.com/ASLP-lab/OSUM

Methodids2tokens
(self, ids: List[int])
OSUM/wenet/text/hugging_face_tokenizer.py:46
Methodids2tokens
(self, ids: List[int])
OSUM/wenet/text/whisper_tokenizer.py:92
Methodids2tokens
(self, ids: List[int])
OSUM/wenet/text/char_tokenizer.py:71
Methodinference
(self, x1, x2, mel_len1, mel_len2, input_frame_rate=50)
OSUM-EChat/tts/cosyvoice/flow/length_regulator.py:52
Methodinference
(self, token, token_len, prompt_token,
OSUM-EChat/tts/cosyvoice/flow/flow.py:105
Methodinference
(self, token, token_len, prompt_token,
OSUM-EChat/tts/cosyvoice/flow/flow.py:194
Methodinference
( self, text: torch.Tensor, text_len: torch.Tensor, prompt_tex
OSUM-EChat/tts/cosyvoice/llm/llm.py:159
Methodinference
(self, speech_feat: torch.Tensor, cache_source: torch.Tensor = torch.zeros(1, 1, 0))
OSUM-EChat/tts/cosyvoice/hifigan/generator.py:401
Methodinference_cross_lingual
(self, tts_text, prompt_speech_16k, stream=False, speed=1.0, text_frontend=True)
OSUM-EChat/tts/cosyvoice/cli/cosyvoice.py:115
Methodinference_instruct
(self, tts_text, spk_id, instruct_text, stream=False, speed=1.0, text_frontend=True)
OSUM-EChat/tts/cosyvoice/cli/cosyvoice.py:126
Methodinference_instruct
(self, *args, **kwargs)
OSUM-EChat/tts/cosyvoice/cli/cosyvoice.py:184
Methodinference_instruct2
(self, tts_text, instruct_text, prompt_speech_16k, stream=False, speed=1.0, text_frontend=True)
OSUM-EChat/tts/cosyvoice/cli/cosyvoice.py:187
Methodinference_sft
(self, tts_text, spk_id, stream=False, speed=1.0, text_frontend=True)
OSUM-EChat/tts/cosyvoice/cli/cosyvoice.py:67
Methodinference_vc
(self, source_speech_16k, prompt_speech_16k, stream=False, speed=1.0)
OSUM-EChat/tts/cosyvoice/cli/cosyvoice.py:141
Methodinference_zero_shot
(self, tts_text, prompt_text, prompt_speech_16k, stream=False, speed=1.0, text_frontend=True, token_list=None)
OSUM-EChat/tts/cosyvoice/cli/cosyvoice.py:78
Functioninit_dataset
(data_type, data_list_file, conf=None, partition=True)
OSUM/wenet/ssl/init_dataset.py:156
Functioninit_model
(args, configs)
OSUM/wenet/utils/init_model.py:192
Methodinit_state
(self, batch_size: int, device: torch.device, method:
OSUM/wenet/transducer/predictor.py:24
Functioninit_weights
(m, mean=0.0, std=0.01)
OSUM-EChat/tts/cosyvoice/utils/common.py:102
Methodinitlr_fn
(lr)
OSUM-EChat/wenet/utils/scheduler.py:63
Methodinitlr_fn
(lr)
OSUM/wenet/utils/scheduler.py:63
Functioninsert_at_position
将 item_str 插入到 lst 的第 position 个位置(1-based), 若 lst 长度不足则以 "-1" 填充至目标长度后再插入。
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:70
Functioninsert_at_position
将 item_str 插入到 lst 的第 position 个位置(1-based), 若 lst 长度不足则以 "-1" 填充至目标长度后再插入。
OSUM-EChat/wenet/dataset/process/processor_language_think.py:60
Functioninsert_blank
Insert blank token between every two label token.
OSUM-EChat/wenet/utils/ctc_utils.py:96
Functioninsert_blank
Insert blank token between every two label token.
OSUM/wenet/utils/ctc_utils.py:96
Methodis_bidirectional_decoder
Returns: torch.Tensor: decoder output
OSUM-EChat/wenet/transformer/asr_model.py:470
Methodis_multilingual
(self)
OSUM-EChat/wenet/whisper/whisper_with_clap.py:82
Methodis_multilingual
(self)
OSUM-EChat/wenet/whisper/whisper.py:56
Methodis_multilingual
(self)
OSUM/wenet/whisper/whisper_with_clap.py:82
Methodis_multilingual
(self)
OSUM/wenet/whisper/whisper.py:56
Functionjag_distortion
(x)
OSUM/wenet/dataset/wav_distortion.py:219
Functionjob
(utt_list, parquet_file, utt2parquet_file, spk2parquet_file)
OSUM-EChat/tts/tools/make_parquet_list.py:26
Methodkeys
(self)
OSUM/tools/compute-wer.py:239
Methodlist_available_spks
(self)
OSUM-EChat/tts/cosyvoice/cli/cosyvoice.py:63
Functionllama_apply_rotary_emb
(x: torch.Tensor, freqs_cis: torch.Tensor)
OSUM-EChat/wenet/utils/rope_utils.py:29
Functionllama_apply_rotary_emb
(x: torch.Tensor, freqs_cis: torch.Tensor)
OSUM/wenet/utils/rope_utils.py:29
Methodllm_job
(self, text, prompt_text, llm_prompt_speech_token, llm_embedding, uuid)
OSUM-EChat/tts/cosyvoice/cli/model.py:110
Methodload_jit
(self, flow_encoder_model)
OSUM-EChat/tts/cosyvoice/cli/model.py:376
Functionload_model
(model_dir: str = None, gpu: int = -1, device: str = "cpu")
OSUM/wenet/cli/paraformer_model.py:71
Functionlora_state_dict
(model: nn.Module, bias: str = 'none')
OSUM/wenet/finetune/lora/utils.py:79
Functionmake_non_pad_mask
Make mask tensor containing indices of non-padded part. The sequences in a batch may have different lengths. To enable batch computing, paddi
OSUM-EChat/wenet/utils/mask.py:230
Functionmake_shards_common
(jsonl_file, shards_dir, num_utts_per_shard=1000, prefix='shards', resample=16000, num_threads=32)
OSUM/tools/make_shard_list_osum.py:115
Functionmake_streaming_mode_from_s2s4think
Args: text_tokens_padded: (B, Lmax) text_tokens_lens: (B,) speech_tokens_padded: (B, Lmax2) speech_tokens_lens:
OSUM-EChat/wenet/osum_echat/utils4llmasr.py:288
Functionmake_streaming_mode_from_s2s_old
Args: text_tokens_padded: (B, Lmax) text_tokens_lens: (B,) speech_tokens_padded: (B, Lmax2) speech_tokens_lens:
OSUM-EChat/wenet/osum_echat/utils4llmasr.py:159
Functionmax_distortion
(x)
OSUM/wenet/dataset/wav_distortion.py:93
Functionmerge_labels_with_valid_adjacent
合并两组标签,有效特征紧邻拼接,无效特征后移 Args: labels_embeds1 (Tensor): 标签1嵌入,形状 (B, L1, D) labels_target1 (Tensor): 标签1目标,形状 (B, L1) l
OSUM-EChat/wenet/osum_echat/utils4llmasr.py:81
Functionmiddle_handler
(data,)
OSUM-EChat/common_utils/fake_data/combine/dataset/processor_no_wav.py:162
Functionnew_gelu_func
(x: torch.Tensor)
OSUM-EChat/wenet/transformer/swish.py:36
Functionnew_gelu_func
(x: torch.Tensor)
OSUM/wenet/transformer/swish.py:36
Methodnum_languages
(self)
OSUM-EChat/wenet/whisper/whisper_with_clap.py:86
Methodnum_languages
(self)
OSUM-EChat/wenet/whisper/whisper.py:60
Methodnum_languages
(self)
OSUM/wenet/whisper/whisper_with_clap.py:86
Methodnum_languages
(self)
OSUM/wenet/whisper/whisper.py:60
Methodoutput_size
(self)
OSUM-EChat/tts/cosyvoice/transformer/upsample_encoder.py:234
Methodoutput_size
(self)
OSUM/wenet/transducer/predictor.py:41
Methodoutput_size
(self)
OSUM/wenet/transducer/predictor.py:244
Methodoutput_size
(self)
OSUM/wenet/transducer/predictor.py:407
Functionpad_list
Perform padding for the list of tensors. Args: xs (List): List of Tensors [(T_1, `*`), (T_2, `*`), ..., (T_B, `*`)]. pad_value (f
OSUM-EChat/tts/cosyvoice/utils/common.py:27
Functionpadding
Padding the data into training data Args: data: Iterable[List[{key, feat, label}]] Returns: Iterable[Tuple(
OSUM-EChat/common_utils/fake_data/combine/dataset/processor_no_wav.py:361
Functionpadding
Padding the data into training data Args: data: Iterable[List[{key, feat, label}]] Returns: Iterable[Tuple(
OSUM-EChat/tts/cosyvoice/dataset/processor.py:359
Functionpadding
Padding the data into training data Args: data: Iterable[List[{key, feat, label}]] Returns: Iterable[Tuple(
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:1734
Functionpadding
Padding the data into training data Args: data: Iterable[List[{key, feat, label}]] Returns: Iterable[Tuple(
OSUM-EChat/wenet/dataset/process/processor.py:1764
Functionpadding
Padding the data into training data Args: data: Iterable[List[{key, feat, label}]] Returns: Iterable[Tuple(
OSUM-EChat/wenet/dataset/process/processor_language_think.py:1645
Functionpadding
Padding the data into training data Args: data: Iterable[List[{key, feat, label}]] Returns: Iterable[Tuple(
OSUM/wenet/dataset/process/processor.py:922
Functionpadding
Padding the data into training data Args: data: List[{key, feat, label} Returns: Tuple(keys, feats, labels,
OSUM/wenet/ssl/init_dataset.py:10
Functionparquet_opener
Give url or local file, return file descriptor Inplace operation. Args: data(Iterable[str]): url or local file list
OSUM-EChat/tts/cosyvoice/dataset/processor.py:29
Functionparse_embedding
Parse utt_embedding/spk_embedding Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{k
OSUM-EChat/tts/cosyvoice/dataset/processor.py:207
Functionparse_raw
Parse key/wav/txt from json line Args: data: Iterable[str], str is a json line has key/wav/txt Returns: Ite
OSUM-EChat/common_utils/fake_data/combine/dataset/processor_no_wav.py:133
Functionparse_raw
Parse key/wav/txt from json line Args: data: Iterable[str], str is a json line has key/wav/txt Returns: Ite
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:308
Functionparse_raw
Parse key/wav/txt from json line Args: data: Iterable[str], str is a json line has key/wav/txt Returns: Ite
OSUM-EChat/wenet/dataset/process/processor.py:289
Functionparse_raw
Parse key/wav/txt from json line Args: data: Iterable[str], str is a json line has key/wav/txt Returns: Ite
OSUM-EChat/wenet/dataset/process/processor_language_think.py:292
Functionparse_raw
Parse key/wav/txt from json line Args: data: Iterable[str], str is a json line has key/wav/txt Returns: Ite
OSUM/wenet/dataset/process/processor.py:227
Functionparse_speaker
(data, speaker_table_path)
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:352
Functionparse_speaker
(data, speaker_table_path)
OSUM-EChat/wenet/dataset/process/processor.py:333
Functionparse_speaker
(data, speaker_table_path)
OSUM-EChat/wenet/dataset/process/processor_language_think.py:336
Functionparse_speaker
(data, speaker_table_path)
OSUM/wenet/dataset/process/processor.py:271
Functionpoly_distortion
(x)
OSUM/wenet/dataset/wav_distortion.py:47
Methodposition_encoding
(self, offset: Union[int, torch.Tensor], size: int)
OSUM-EChat/tts/cosyvoice/transformer/embedding.py:196
Methodposition_encoding
(self, offset: Union[int, torch.Tensor], size: int)
OSUM-EChat/wenet/transformer/subsampling.py:396
Methodposition_encoding
(self, offset: Union[int, torch.Tensor], size: int)
OSUM-EChat/wenet/transformer/embedding.py:196
Methodposition_encoding
(self, offset: Union[int, torch.Tensor], size: int)
OSUM/wenet/paraformer/subsampling.py:46
Methodposition_encoding
(self, offset: Union[int, torch.Tensor], size: int)
OSUM/wenet/transformer/subsampling.py:393
Methodposition_encoding
(self, offset: Union[int, torch.Tensor], size: int)
OSUM/wenet/transformer/embedding.py:196
Methodprepare_inputs_for_generation
Mainly add static cache support
OSUM-EChat/patches/modelling_qwen2_infer_gpu.py:330
Functionprocess_tagged_string
处理带标签的字符串,将标签替换为对应的内容 Args: s: Returns: <tag> <tag>xxxx
OSUM-EChat/wenet/dataset/process/processor.py:421
Functionprocess_tagged_string
处理带标签的字符串,将标签替换为对应的内容 Args: s: Returns: <tag> <tag>xxxx
OSUM-EChat/wenet/dataset/process/processor_language_think.py:424
Functionprocess_text
(text)
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:47
Functionprocess_text
(text)
OSUM-EChat/wenet/dataset/process/processor.py:39
Functionprocess_text
(text)
OSUM-EChat/wenet/dataset/process/processor_language_think.py:39
Functionras_sampling
(weighted_scores, decoded_tokens, sampling, top_p=0.8, top_k=25, win_size=10, tau_r=0.1)
OSUM-EChat/tts/cosyvoice/utils/common.py:109
Functionread_ali_ark
Alias to 'read_vec_int_ark()'
OSUM/wenet/dataset/kaldi_io.py:149
Functionread_cnet_ark
Alias of function 'read_post_ark()', 'cnet' = confusion network
OSUM/wenet/dataset/kaldi_io.py:611
Functionread_cntime_ark
generator(key,vec<tuple<float,float>>) = read_cntime_ark(file_or_fd) Returns generator of (key,cntime) tuples, read from ark file. file_or_fd :
OSUM/wenet/dataset/kaldi_io.py:687
Functionread_mat_ark
generator(key,mat) = read_mat_ark(file_or_fd) Returns generator of (key,matrix) tuples, read from ark file/stream. file_or_fd : scp, gzipped sc
OSUM/wenet/dataset/kaldi_io.py:409
Functionread_mat_scp
generator(key,mat) = read_mat_scp(file_or_fd) Returns generator of (key,matrix) tuples, read according to kaldi scp. file_or_fd : scp, gzipped
OSUM/wenet/dataset/kaldi_io.py:387
Functionread_seg_dict
(path)
OSUM-EChat/wenet/text/paraformer_tokenizer.py:7
Functionread_segments_as_bool_vec
[ bool_vec ] = read_segments_as_bool_vec(segments_file) using kaldi 'segments' file for 1 wav, format : '<utt> <rec> <t-beg> <t-end>' - t-beg,
OSUM/wenet/dataset/kaldi_io.py:753
Functionread_vec_flt_ark
generator(key,vec) = read_vec_flt_ark(file_or_fd) Create generator of (key,vector<float>) tuples, reading from an ark file/stream. file_or_fd :
OSUM/wenet/dataset/kaldi_io.py:287
Functionread_vec_flt_scp
generator(key,mat) = read_vec_flt_scp(file_or_fd) Returns generator of (key,vector) tuples, read according to kaldi scp. file_or_fd : scp, gzip
OSUM/wenet/dataset/kaldi_io.py:265
Functionread_vec_int_scp
generator(key,vec) = read_vec_int_scp(file_or_fd) Returns generator of (key,vector<int>) tuples, read according to kaldi scp. file_or_fd : scp,
OSUM/wenet/dataset/kaldi_io.py:173
← previousnext →1,601–1,700 of 1,852, ranked by callers