MCPcopy Create free account

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

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

↓ 1 callersFunctionprocess_tagged_string
处理带标签的字符串,将标签替换为对应的内容 Args: s: Returns: <tag> <tag>xxxx
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:440
↓ 1 callersFunctionprocess_tagged_string_and_delete_tag_from_txt
处理带标签的字符串,提取标签并返回标签和去除标签后的内容 Args: s: 带标签的字符串,格式如 "<tag>XXXX" Returns: 元组 (标签, 去除标签后的内容),例如 ("<tag>", "XXXX")
OSUM-EChat/wenet/dataset/process/processor.py:439
↓ 1 callersFunctionprocess_tagged_string_and_delete_tag_from_txt
处理带标签的字符串,提取标签并返回标签和去除标签后的内容 Args: s: 带标签的字符串,格式如 "<tag>XXXX" Returns: 元组 (标签, 去除标签后的内容),例如 ("<tag>", "XXXX")
OSUM-EChat/wenet/dataset/process/processor_language_think.py:442
↓ 1 callersFunctionprocess_text
(text)
OSUM/wenet/dataset/process/processor.py:541
↓ 1 callersFunctionprocess_text2
(text, task_tag)
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:58
↓ 1 callersFunctionprocess_text2
(text, task_tag)
OSUM-EChat/wenet/dataset/process/processor.py:49
↓ 1 callersFunctionprocess_text2
(text, task_tag)
OSUM-EChat/wenet/dataset/process/processor_language_think.py:49
↓ 1 callersFunctionprogress_hook
(t)
OSUM/wenet/cli/hub.py:31
↓ 1 callersFunctionquantize_vector
Symbols in comments: B: batch_size. D: latent_dim. C: num_latent_classes per group G: num of codebook groups. Args:
OSUM/wenet/ssl/bestrq/bestrq_model.py:11
↓ 1 callersFunctionrandom_sampling
(weighted_scores, decoded_tokens, sampling)
OSUM-EChat/tts/cosyvoice/utils/common.py:135
↓ 1 callersFunctionread_cntime
[cntime] = read_cntime(file_or_fd) Reads single kaldi 'Confusion Network time info', in binary format: C++ type: vector<tuple<float,float> >.
OSUM/wenet/dataset/kaldi_io.py:710
↓ 1 callersFunctionread_json_lists
(list_file)
OSUM-EChat/tts/cosyvoice/utils/file_utils.py:32
↓ 1 callersFunctionread_post
[post] = read_post(file_or_fd) Reads single kaldi 'Posterior' in binary format. The 'Posterior' is C++ type 'vector<vector<tuple<int,float> >
OSUM/wenet/dataset/kaldi_io.py:639
↓ 1 callersFunctionread_post_ark
generator(key,vec<vec<int,float>>) = read_post_ark(file) Returns generator of (key,posterior) tuples, read from ark file. file_or_fd : ark, gzi
OSUM/wenet/dataset/kaldi_io.py:616
↓ 1 callersFunctionread_seg_dict
(path)
OSUM/wenet/text/paraformer_tokenizer.py:8
↓ 1 callersFunctionread_symbol_table
(symbol_table_file)
OSUM-EChat/wenet/utils/file_utils.py:61
↓ 1 callersFunctionread_tar
(file)
OSUM/tools/analyze_dataset.py:91
↓ 1 callersFunctionread_vec_int_ark
generator(key,vec) = read_vec_int_ark(file_or_fd) Create generator of (key,vector<int>) tuples, which reads from the ark file/stream. file_or_f
OSUM/wenet/dataset/kaldi_io.py:154
↓ 1 callersFunctionreinit_lora
(model, args, configs, tokenizer, seed=777)
OSUM-EChat/wenet/utils/train_utils.py:910
↓ 1 callersFunctionreinit_lora
(model, args, configs, tokenizer, seed=777)
OSUM/wenet/utils/train_utils.py:903
↓ 1 callersMethodrel_shift
Compute relative positional encoding. Args: x (torch.Tensor): Input tensor (batch, head, time1, 2*time1-1). time1 mea
OSUM-EChat/tts/cosyvoice/transformer/attention.py:225
↓ 1 callersMethodrel_shift
Compute relative positinal encoding. Args: x (torch.Tensor): Input tensor (batch, time, size). zero_triu (bool): If tr
OSUM/wenet/squeezeformer/attention.py:73
↓ 1 callersFunctionremove_bracket
(text)
OSUM-EChat/tts/cosyvoice/utils/frontend_utils.py:33
↓ 1 callersFunctionremove_duplicates_and_blank
(hyp: List[int], blank_id: int = 0)
OSUM-EChat/wenet/utils/ctc_utils.py:23
↓ 1 callersFunctionreplace_blank
(text: str)
OSUM-EChat/tts/cosyvoice/utils/frontend_utils.py:121
↓ 1 callersFunctionreplace_corner_mark
(text)
OSUM-EChat/tts/cosyvoice/utils/frontend_utils.py:26
↓ 1 callersFunctionreplace_duplicates_with_blank
(hyp: List[int], blank_id: int = 0)
OSUM/wenet/utils/ctc_utils.py:36
↓ 1 callersFunctionreplace_keys_in_brackets
(input_str, key_value_dict)
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:429
↓ 1 callersFunctionreplace_keys_in_brackets
(input_str, key_value_dict)
OSUM-EChat/wenet/dataset/process/processor.py:410
↓ 1 callersFunctionreplace_keys_in_brackets
(input_str, key_value_dict)
OSUM-EChat/wenet/dataset/process/processor_language_think.py:413
↓ 1 callersFunctionreplace_keys_in_brackets
(input_str, key_value_dict)
OSUM/wenet/dataset/process/processor.py:571
↓ 1 callersMethodreset_encoder_parameter
(self)
OSUM/wenet/ssl/w2vbert/w2vbert_model.py:125
↓ 1 callersMethodreset_encoder_parameter
(self)
OSUM/wenet/ssl/wav2vec2/wav2vec2_model.py:184
↓ 1 callersMethodreset_encoder_parameter
(self)
OSUM/wenet/ssl/bestrq/bestrq_model.py:122
↓ 1 callersMethodreset_parameters
(self)
OSUM/wenet/finetune/lora/layers.py:66
↓ 1 callersMethodreset_parameters
(self)
OSUM/wenet/finetune/lora/layers.py:218
↓ 1 callersMethodreset_parameters
(self)
OSUM/wenet/finetune/lora/layers.py:301
↓ 1 callersFunctionreverse_pad_list
Reverse padding for the list of tensors. Args: ys_pad (tensor): The padded tensor (B, Tokenmax). ys_lens (tensor): The lens of to
OSUM-EChat/wenet/utils/common.py:244
↓ 1 callersMethodright_context
Export interface for c++ call, return right_context of the model
OSUM/wenet/transformer/asr_model.py:396
↓ 1 callersMethodsample
Sample data according to rank/world_size/num_workers Args: data(List): input data list Returns:
OSUM-EChat/common_utils/fake_data/combine/dataset/dataset_no_wav.py:83
↓ 1 callersMethodsample
Sample data according to rank/world_size/num_workers Args: data(List): input data list Returns:
OSUM-EChat/wenet/dataset/dataset.py:101
↓ 1 callersMethodsample
Sample data according to rank/world_size/num_workers Args: data(List): input data list Returns:
OSUM/wenet/dataset/dataset.py:100
↓ 1 callersMethodsample_negatives
(self, y, num, padding_count=0, speech_lengths=None)
OSUM/wenet/ctl_model/asr_model_ctl.py:203
↓ 1 callersFunctionsampler
( logits: torch.Tensor, temperatures: Union[torch.Tensor, None], top_ps: torch.Tensor, top_ks:
OSUM/wenet/LLM/sampler.py:7
↓ 1 callersFunctionsave_to_jsonl
(if_correct, wav, prompt, res)
OSUM-EChat/infer_gradio.py:235
↓ 1 callersFunctionsave_to_jsonl
(if_correct, wav, prompt, res)
OSUM/infer_gradio.py:119
↓ 1 callersFunctionseg_char
(sent)
OSUM/tools/text2token.py:31
↓ 1 callersMethodset_epoch
(self, epoch)
OSUM-EChat/common_utils/fake_data/combine/dataset/dataset_no_wav.py:110
↓ 1 callersMethodset_global_chunk_size
Used in ONNX export.
OSUM/wenet/efficient_conformer/encoder.py:220
↓ 1 callersMethodset_step
(self, step: int)
OSUM-EChat/wenet/utils/scheduler.py:721
↓ 1 callersMethodset_step
(self, step: int)
OSUM/wenet/utils/scheduler.py:721
↓ 1 callersFunctionshould_merge
(_text: str)
OSUM-EChat/tts/cosyvoice/utils/frontend_utils.py:72
↓ 1 callersMethodsimplify_forward
(self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = No
OSUM-EChat/patches/modelling_qwen2_infer_gpu.py:225
↓ 1 callersMethodsos_symbol
Export interface for c++ call, return sos symbol id of the model
OSUM-EChat/wenet/transformer/asr_model.py:402
↓ 1 callersMethodspectrogram
(self, x)
OSUM-EChat/tts/cosyvoice/hifigan/discriminator.py:107
↓ 1 callersFunctionspell_out_number
(text: str, inflect_parser)
OSUM-EChat/tts/cosyvoice/utils/frontend_utils.py:42
↓ 1 callersMethodsplit_data
(self, total_num)
OSUM/wenet/dataset/dataset.py:84
↓ 1 callersFunctionstatic_batch
Static batch the data by `batch_size` Args: data: Iterable[{key, feat, label}] batch_size: batch size Retur
OSUM-EChat/common_utils/fake_data/combine/dataset/processor_no_wav.py:303
↓ 1 callersFunctionstatic_batch
Static batch the data by `batch_size` Args: data: Iterable[{key, feat, label}] batch_size: batch size Retur
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:1360
↓ 1 callersFunctionstatic_batch
Static batch the data by `batch_size` Args: data: Iterable[{key, feat, label}] batch_size: batch size Retur
OSUM-EChat/wenet/dataset/process/processor.py:1391
↓ 1 callersFunctionstatic_batch
Static batch the data by `batch_size` Args: data: Iterable[{key, feat, label}] batch_size: batch size Retur
OSUM-EChat/wenet/dataset/process/processor_language_think.py:1272
↓ 1 callersFunctionstatic_batch
Static batch the data by `batch_size` Args: data: Iterable[{key, feat, label}] batch_size: batch size Retur
OSUM/wenet/dataset/process/processor.py:796
↓ 1 callersMethodsteps_per_second
(self, cur_step, restart=True)
OSUM-EChat/wenet/utils/common.py:350
↓ 1 callersMethodsteps_per_second
(self, cur_step, restart=True)
OSUM/wenet/utils/common.py:350
↓ 1 callersFunctionstripoff_tags
(x)
OSUM/tools/compute-cer.py:50
↓ 1 callersFunctionstripoff_tags
(x)
OSUM/tools/compute-wer.py:48
↓ 1 callersFunctionsubmit
(nworker, hostfile, port, sshport, cmd)
OSUM/tools/ssh_launcher.py:96
↓ 1 callersFunctionsubsequent_mask
Create mask for subsequent steps (size, size). This mask is used only in decoder which works in an auto-regressive mode. This means the curre
OSUM-EChat/tts/cosyvoice/utils/mask.py:54
↓ 1 callersMethodtail_process_fn
( self, hidden: torch.Tensor, alphas: torch.Tensor, token_num: Optional[torch.
OSUM/wenet/paraformer/cif.py:110
↓ 1 callersMethodtar_file_and_group
(self, sample)
OSUM/tools/compute_shard_cmvn_stats.py:116
↓ 1 callersFunctiontest_multi_turn_conversation
测试多轮对话功能
OSUM-EChat/infer_multiturn.py:18
↓ 1 callersMethodtext2tokens
(self, line: str)
OSUM-EChat/wenet/text/base_tokenizer.py:20
↓ 1 callersMethodtext2tokens
(self, line: str)
OSUM/wenet/text/base_tokenizer.py:20
↓ 1 callersFunctionth_accuracy
Calculate accuracy. Args: pad_outputs (Tensor): Prediction tensors (B * Lmax, D). pad_targets (LongTensor): Target label tensors
OSUM-EChat/tts/cosyvoice/utils/common.py:76
↓ 1 callersMethodtie_or_clone_weights
(self, jit_mode: bool = True)
OSUM-EChat/wenet/transformer/asr_model.py:195
↓ 1 callersMethodtie_or_clone_weights
(self, jit_mode: bool)
OSUM/wenet/LLM/causallm_model.py:73
↓ 1 callersFunctiontokenize
Read biasing list from the biasing list address, tokenize and convert it into token id
OSUM-EChat/wenet/utils/context_graph.py:24
↓ 1 callersFunctiontokenize
Read biasing list from the biasing list address, tokenize and convert it into token id
OSUM/wenet/utils/context_graph.py:24
↓ 1 callersMethodtokenize
(self, line: str)
OSUM-EChat/wenet/text/whisper_tokenizer.py:66
↓ 1 callersMethodtokenize
(self, line: str)
OSUM/wenet/text/whisper_tokenizer.py:66
↓ 1 callersMethodtokenize
(self, line: str)
OSUM/wenet/text/base_tokenizer.py:9
↓ 1 callersFunctiontokenize_by_seg_dict
(seg_dict, txt)
OSUM/wenet/text/tokenize_utils.py:22
↓ 1 callersMethodtokens2ids
(self, tokens: List[Type])
OSUM-EChat/wenet/text/hugging_face_tokenizer.py:42
↓ 1 callersMethodtokens2ids
(self, tokens: List[T])
OSUM-EChat/wenet/text/base_tokenizer.py:28
↓ 1 callersMethodtokens2ids
(self, tokens: List[Type])
OSUM/wenet/text/hugging_face_tokenizer.py:42
↓ 1 callersMethodtokens2ids
(self, tokens: List[T])
OSUM/wenet/text/base_tokenizer.py:28
↓ 1 callersMethodtokens2text
(self, tokens: List[T])
OSUM-EChat/wenet/text/base_tokenizer.py:24
↓ 1 callersMethodtokens2text
(self, tokens: List[T])
OSUM/wenet/text/base_tokenizer.py:24
↓ 1 callersFunctiontrace_and_print_model
(args, model)
OSUM-EChat/wenet/utils/train_utils.py:587
↓ 1 callersFunctiontrace_and_print_model
(args, model)
OSUM/wenet/utils/train_utils.py:581
↓ 1 callersMethodtrain
Train one epoch
OSUM/wenet/utils/executor.py:42
↓ 1 callersMethodtrain_one_epoc
Train one epoch
OSUM-EChat/tts/cosyvoice/utils/executor.py:35
↓ 1 callersMethodtrain_one_epoc_gan
Train one epoch
OSUM-EChat/tts/cosyvoice/utils/executor.py:84
↓ 1 callersMethodtranscribe
(self, audio_file: str, tokens_info: bool = False)
OSUM/wenet/cli/model.py:138
↓ 1 callersFunctiontrue_decode_fuc
(model, tokenizer, input_wav_path, input_prompt)
OSUM-EChat/infer_gradio.py:194
↓ 1 callersFunctiontrue_decode_fuc
(input_wav_path, input_prompt)
OSUM/infer_gradio.py:77
↓ 1 callersFunctionuint16_to_float
(value, min, range)
OSUM/wenet/dataset/kaldi_io.py:504
↓ 1 callersFunctionuint8_to_float_v2
(vec, p0, p25, p75, p100)
OSUM/wenet/dataset/kaldi_io.py:508
↓ 1 callersFunctionupdate_parameter_and_lr
(model, optimizer, scheduler, scaler, info_dict)
OSUM-EChat/wenet/utils/train_utils.py:755
↓ 1 callersFunctionupdate_parameter_and_lr
(model, optimizer, scheduler, scaler, info_dict)
OSUM/wenet/utils/train_utils.py:750
← previousnext →801–900 of 1,852, ranked by callers