MCPcopy Create free account

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

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

↓ 1 callersFunctioncontain_oov
Check if all the given tokens are in token symbol table. Args: token_sym_table: Token symbol table that contains all the valid toke
OSUM/tools/k2/prepare_char.py:122
↓ 1 callersFunctioncontains_chinese
(text)
OSUM-EChat/tts/cosyvoice/utils/frontend_utils.py:21
↓ 1 callersFunctionconvert_onnx_to_trt
(trt_model, onnx_model, fp16)
OSUM-EChat/tts/cosyvoice/utils/file_utils.py:50
↓ 1 callersFunctionconvert_to_wenet_json_cmvn
(paraformer_cmvn_path, wenet_cmvn_path: str)
OSUM/wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:77
↓ 1 callersFunctionconvert_to_wenet_state_dict
(whisper_state_dict, wenet_state_dict_path)
OSUM-EChat/wenet/whisper/convert_whisper_to_wenet_config_and_ckpt.py:191
↓ 1 callersFunctionconvert_to_wenet_state_dict
(args, wenet_model_path)
OSUM/wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:174
↓ 1 callersFunctionconvert_to_wenet_state_dict
(whisper_state_dict, wenet_state_dict_path)
OSUM/wenet/whisper/convert_whisper_to_wenet_config_and_ckpt.py:191
↓ 1 callersFunctionconvert_to_wenet_state_dict
(w2vbert_conformer_state_dict, wenet_state_dict_path)
OSUM/wenet/ssl/w2vbert/convert_w2vbert_to_wenet_config_and_ckpt.py:118
↓ 1 callersFunctionconvert_to_wenet_tokenizer_conf
(symbol_table_path, seg_dict, configs, output_path)
OSUM/wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:84
↓ 1 callersFunctionconvert_to_wenet_units
NOTE(xcsong): The "units.txt" file is solely for adapting to the training API of Wenet and for quickly checking the corresponding tex
OSUM-EChat/wenet/whisper/convert_whisper_to_wenet_config_and_ckpt.py:245
↓ 1 callersFunctionconvert_to_wenet_units
NOTE(xcsong): The "units.txt" file is solely for adapting to the training API of Wenet and for quickly checking the corresponding tex
OSUM/wenet/whisper/convert_whisper_to_wenet_config_and_ckpt.py:245
↓ 1 callersFunctionconvert_to_wenet_yaml
(tokenizer, dims, wenet_yaml_path: str)
OSUM-EChat/wenet/whisper/convert_whisper_to_wenet_config_and_ckpt.py:45
↓ 1 callersFunctionconvert_to_wenet_yaml
(configs, wenet_yaml_path: str, fields_to_keep: List[str])
OSUM/wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:99
↓ 1 callersFunctionconvert_to_wenet_yaml
(tokenizer, dims, wenet_yaml_path: str)
OSUM/wenet/whisper/convert_whisper_to_wenet_config_and_ckpt.py:45
↓ 1 callersMethodctc_activation
Export interface for c++ call, apply linear transform and log softmax before ctc Args: xs (torch.Tensor): encoder out
OSUM/wenet/transformer/asr_model.py:457
↓ 1 callersFunctionctc_greedy_search
(ctc_probs: torch.Tensor, ctc_lens: torch.Tensor, blank_id: int =
OSUM-EChat/wenet/transformer/search.py:107
↓ 1 callersMethodctc_logprobs
(self, encoder_out: torch.Tensor, blank_penalty: float = 0.0,
OSUM-EChat/wenet/transformer/asr_model.py:297
↓ 1 callersMethodcv
Cross validation on
OSUM-EChat/wenet/utils/executor.py:146
↓ 1 callersFunctiondefault_cluster
(word)
OSUM/tools/compute-cer.py:254
↓ 1 callersFunctiondefault_cluster
(word)
OSUM/tools/compute-wer.py:247
↓ 1 callersMethoddetokenize
(self, ids: List[int])
OSUM-EChat/wenet/text/whisper_tokenizer.py:72
↓ 1 callersMethoddetokenize
(self, ids: List[int])
OSUM/wenet/text/whisper_tokenizer.py:72
↓ 1 callersFunctiondistort_wav_conf
(x, distort_type, distort_conf, rate=0.1)
OSUM/wenet/dataset/wav_distortion.py:290
↓ 1 callersFunctiondistort_wav_conf_and_save
(distort_type, distort_conf, rate, wav_in, wav_out)
OSUM/wenet/dataset/wav_distortion.py:316
↓ 1 callersFunctiondo_asr
(model, feat, feat_lens)
OSUM-EChat/infer_with_shards_or_raw.py:66
↓ 1 callersFunctiondo_compute_acc
计算正确率和错误率,并列出混淆矩阵 :return:
OSUM/tools/compute-acc.py:79
↓ 1 callersFunctiondo_convert_tartype2tardata_combine_type
10 batch , 1 worker : 15.9s, nvidia-smi 在8卡使用 10batch, 10worker: 16.02s, nvidia-smi 在8卡使用 10 batch ,10worker , 310tar: 17.46s, 10 bat
OSUM-EChat/common_utils/fake_data/combine/do_convert_tar_type2tardata_combine_type.py:14
↓ 1 callersFunctiondo_decode
(model, tokenizer, input_wav_path, input_prompt)
OSUM-EChat/infer_gradio.py:229
↓ 1 callersFunctiondo_decode
(input_wav_path, input_prompt)
OSUM/infer_runtime.py:54
↓ 1 callersFunctiondo_distribute_datalist_for_conbine_type
(data_list_path_or_list, output_dir, task_tag=None,tar_dir = None)
OSUM-EChat/common_utils/fake_data/combine/do_convert_tar_type2tardata_combine_type.py:82
↓ 1 callersFunctiondo_get_fake_file
()
OSUM-EChat/wenet/dataset/dataset.py:333
↓ 1 callersFunctiondo_make_shards_common
(jsonl_file, shards_dir, num_utts_per_shard=1000, prefix='shard', resample=16000, num_threads=32, do_recover=T
OSUM-EChat/common_utils/fake_data/shard/do_make_shard_from_raw.py:145
↓ 1 callersFunctiondo_resample
...
OSUM-EChat/common_utils/utils4infer.py:50
↓ 1 callersFunctiondo_resample
(input_wav_path, output_wav_path)
OSUM/infer_runtime.py:39
↓ 1 callersFunctiondo_resample
(input_wav_path, output_wav_path)
OSUM/infer_gradio.py:63
↓ 1 callersFunctiondo_s2s
(model, input_wav_path)
OSUM-EChat/infer_runtime.py:105
↓ 1 callersFunctiondo_s2s
(model, input_wav_path, input_prompt, profile=False)
OSUM-EChat/infer_gradio.py:170
↓ 1 callersFunctiondo_s2s_think
(model, input_wav_path)
OSUM-EChat/infer_runtime.py:117
↓ 1 callersFunctiondo_s2s_think
(model, input_wav_path, input_prompt, profile=False)
OSUM-EChat/infer_gradio.py:182
↓ 1 callersFunctiondo_s2t4chat
(model, input_wav_path, input_prompt, profile=False)
OSUM-EChat/infer_gradio.py:120
↓ 1 callersFunctiondo_s2t4chat_think
(model, input_wav_path, input_prompt, profile=False)
OSUM-EChat/infer_gradio.py:132
↓ 1 callersFunctiondo_s2t_chat_no_think
(model, input_wav_path)
OSUM-EChat/infer_runtime.py:55
↓ 1 callersFunctiondo_s2t_chat_think
(model, input_wav_path)
OSUM-EChat/infer_runtime.py:67
↓ 1 callersMethoddo_select_iter
(self, datasets)
OSUM-EChat/wenet/dataset/dataset.py:210
↓ 1 callersFunctiondo_showing_confusion_matrix
可视化混淆矩阵的函数 :param labels: 标签序列,类型为列表等可迭代对象 :param matrix: 代表混淆矩阵的二维列表,元素为整数,形状应为(len(labels), len(labels))
OSUM/tools/compute-acc.py:36
↓ 1 callersFunctiondo_t2s
(model, text_for_tts)
OSUM-EChat/infer_runtime.py:80
↓ 1 callersFunctiondo_t2s
(model, input_prompt, text_for_tts, profile=False)
OSUM-EChat/infer_gradio.py:145
↓ 1 callersFunctiondo_t2t
(model, question_txt, profile=False)
OSUM-EChat/infer_gradio.py:158
↓ 1 callersFunctiondo_t2t_chat
(model, question_txt)
OSUM-EChat/infer_runtime.py:93
↓ 1 callersFunctiondownload
download from url to dest
OSUM/wenet/cli/hub.py:25
↓ 1 callersMethoddropout_complex
(self, x)
OSUM-EChat/wenet/transformer/embedding.py:253
↓ 1 callersMethoddropout_complex
(self, x)
OSUM/wenet/transformer/embedding.py:253
↓ 1 callersFunctiondynamic_batch
Dynamic batch the data until the total frames in batch reach `max_frames_in_batch` Args: data: Iterable[{key, feat, labe
OSUM-EChat/common_utils/fake_data/combine/dataset/processor_no_wav.py:323
↓ 1 callersFunctiondynamic_batch
Dynamic batch the data until the total frames in batch reach `max_frames_in_batch` Args: data: Iterable[{key, feat, labe
OSUM-EChat/tts/cosyvoice/dataset/processor.py:316
↓ 1 callersFunctiondynamic_batch
Dynamic batch the data until the total frames in batch reach `max_frames_in_batch` Args: data: Iterable[{key, feat, labe
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:1434
↓ 1 callersFunctiondynamic_batch
Dynamic batch the data until the total frames in batch reach `max_frames_in_batch` Args: data: Iterable[{key, feat, labe
OSUM-EChat/wenet/dataset/process/processor.py:1465
↓ 1 callersFunctiondynamic_batch
Dynamic batch the data until the total frames in batch reach `max_frames_in_batch` Args: data: Iterable[{key, feat, labe
OSUM-EChat/wenet/dataset/process/processor_language_think.py:1346
↓ 1 callersFunctiondynamic_batch
Dynamic batch the data until the total frames in batch reach `max_frames_in_batch` Args: data: Iterable[{key, feat, labe
OSUM/wenet/dataset/process/processor.py:816
↓ 1 callersMethodeos_symbol
Export interface for c++ call, return eos symbol id of the model
OSUM-EChat/wenet/transformer/asr_model.py:408
↓ 1 callersFunctionexist_or_not
(i, match_pos)
OSUM/tools/text2token.py:19
↓ 1 callersFunctionexport_ctc
(asr_model, args)
OSUM/wenet/bin/export_onnx_cpu.py:274
↓ 1 callersFunctionexport_decoder
(asr_model, args)
OSUM/wenet/bin/export_onnx_cpu.py:324
↓ 1 callersFunctionexport_decoder
(asr_model, args)
OSUM/wenet/bin/export_onnx_bpu.py:1036
↓ 1 callersFunctionexport_encoder
(asr_model, args)
OSUM/wenet/bin/export_onnx_cpu.py:79
↓ 1 callersFunctionexport_rescoring_decoder
(model, configs, args, logger, decoder_onnx_path, decoder_fastertransformer)
OSUM/wenet/bin/export_onnx_gpu.py:988
↓ 1 callersFunctionextract_answer
(s)
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:420
↓ 1 callersFunctionextract_answer
(s)
OSUM-EChat/wenet/dataset/process/processor.py:401
↓ 1 callersFunctionextract_answer
(s)
OSUM-EChat/wenet/dataset/process/processor_language_think.py:404
↓ 1 callersFunctionextract_dict
(configs, wenet_dict_path: str)
OSUM/wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:65
↓ 1 callersFunctionextract_first_content
(s)
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:405
↓ 1 callersFunctionextract_first_content
(s)
OSUM-EChat/wenet/dataset/process/processor.py:386
↓ 1 callersFunctionextract_first_content
(s)
OSUM-EChat/wenet/dataset/process/processor_language_think.py:389
↓ 1 callersFunctionfilter_modules
(model_state_dict, modules)
OSUM-EChat/wenet/utils/checkpoint.py:87
↓ 1 callersFunctionfilter_modules
(model_state_dict, modules)
OSUM/wenet/utils/checkpoint.py:76
↓ 1 callersFunctionfilter_state_dict
(model_state_dict, checkpoint_state_dict)
OSUM-EChat/wenet/utils/checkpoint.py:26
↓ 1 callersMethodfinalize
When reaching the end of the decoded sequence, we need to finalize the matching, the purpose is to subtract the added bonus score for the
OSUM-EChat/wenet/utils/context_graph.py:249
↓ 1 callersMethodfinalize
When reaching the end of the decoded sequence, we need to finalize the matching, the purpose is to subtract the added bonus score for the
OSUM/wenet/utils/context_graph.py:249
↓ 1 callersFunctionfind_available_ports
(ip, port_num=1, port=9091, port_end=9999)
OSUM/tools/ssh_launcher.py:64
↓ 1 callersMethodforward
(self, x: torch.Tensor)
OSUM-EChat/tts/cosyvoice/flow/decoder.py:30
↓ 1 callersMethodforward
Forward diffusion Args: mu (torch.Tensor): output of encoder shape: (batch_size, n_feats, mel_timesteps)
OSUM-EChat/tts/cosyvoice/flow/flow_matching.py:37
↓ 1 callersMethodforward
(self, x: torch.Tensor)
OSUM/wenet/bin/export_onnx_bpu.py:110
↓ 1 callersMethodforward
Identity with 4-D dataflow, input == output. Args: x (torch.Tensor): (batch, in_channel, 1, time) Returns: (t
OSUM/wenet/bin/export_onnx_bpu.py:151
↓ 1 callersMethodforward
Linear with 4-D dataflow. Args: x (torch.Tensor): (batch, in_channel, 1, time) Returns: (torch.Tensor): (batch
OSUM/wenet/bin/export_onnx_bpu.py:203
↓ 1 callersMethodforward
Subsample x with 4-D dataflow. Args: x (torch.Tensor): Input tensor (#batch, 1, mel_dim, time). Returns: torc
OSUM/wenet/bin/export_onnx_bpu.py:300
↓ 1 callersMethodforward
Compute scaled dot product attention. Args: q (torch.Tensor): Query tensor (#batch, size, 1, chunk_size). k (torch.Te
OSUM/wenet/bin/export_onnx_bpu.py:371
↓ 1 callersMethodforward
Compute convolution module. Args: x (torch.Tensor): Input tensor (#batch, channels, 1, chunk_size). cache (torch.Tenso
OSUM/wenet/bin/export_onnx_bpu.py:490
↓ 1 callersMethodforward
Forward function. Args: xs: input tensor (B, D, 1, L) Returns: output tensor, (B, D, 1, L)
OSUM/wenet/bin/export_onnx_bpu.py:543
↓ 1 callersMethodforward
Compute encoded features. Args: x (torch.Tensor): (#batch, size, 1, chunk_size) att_mask (torch.Tensor): Mask tensor
OSUM/wenet/bin/export_onnx_bpu.py:622
↓ 1 callersMethodforward
Forward just one chunk Args: xs (torch.Tensor): chunk input, with shape (b=1, 1, time, mel-dim), where `time ==
OSUM/wenet/bin/export_onnx_bpu.py:741
↓ 1 callersMethodforward
frame activations, without softmax. Args: Tensor x: 4d tensor (B, hidden_dim, 1, chunk_size) Returns: torch.T
OSUM/wenet/bin/export_onnx_bpu.py:840
↓ 1 callersMethodforward_attention
Compute attention context vector. Args: value (torch.Tensor): Transformed value, size (#batch, n_head, time2, d_k
OSUM-EChat/tts/cosyvoice/transformer/attention.py:82
↓ 1 callersMethodforward_attention
Compute attention context vector. Args: value (torch.Tensor): Transformed value, size (#batch, n_head, time2, d_k
OSUM/wenet/efficient_conformer/attention.py:127
↓ 1 callersMethodforward_attention_decoder
Export interface for c++ call, forward decoder with multiple hypothesis from ctc prefix beam search and one encoder output Args:
OSUM-EChat/wenet/transformer/asr_model.py:481
↓ 1 callersMethodforward_attention_decoder
Export interface for c++ call, forward decoder with multiple hypothesis from ctc prefix beam search and one encoder output Args:
OSUM/wenet/transformer/asr_model.py:481
↓ 1 callersMethodforward_chunk
Forward just one chunk Args: xs (torch.Tensor): chunk input, with shape (b=1, time, mel-dim), where `time == (ch
OSUM/wenet/squeezeformer/encoder.py:265
↓ 1 callersMethodforward_chunk
Forward just one chunk Args: xs (torch.Tensor): chunk input offset (int): current offset in encoder output time stam
OSUM/wenet/efficient_conformer/encoder.py:300
↓ 1 callersMethodforward_chunk
Chunk-based context mode Frontend + Encoder + Decoder + Calc loss Args: speech: (Batch, Length, ...) speech_l
OSUM/wenet/ctl_model/asr_model_ctl.py:154
↓ 1 callersMethodforward_chunk_by_chunk
Forward input chunk by chunk with chunk_size like a streaming fashion Here we should pay special attention to computation cache
OSUM-EChat/wenet/transformer/encoder.py:306
↓ 1 callersMethodforward_chunk_by_chunk
Forward input chunk by chunk with chunk_size like a streaming fashion Here we should pay special attention to computation cache
OSUM/wenet/transformer/encoder.py:304
↓ 1 callersMethodforward_decoder_one_step
( self, encoder_x: torch.Tensor, pre_t: torch.Tensor, cache: List[torch.Tensor] )
OSUM/wenet/transducer/search/prefix_beam_search.py:31
← previousnext →501–600 of 1,852, ranked by callers