MCPcopy Create free account

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

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

↓ 4 callersMethod__init__
(self, encoder: BaseEncoder, ctc: CTC, beam_size: int = 10)
OSUM/wenet/bin/export_onnx_gpu.py:44
↓ 4 callersMethod__init__
( self, enc_out_dim: int = 512, llm_embed_dim: int = 4096, kernel_size: int =
OSUM/wenet/llm_asr/downsampler.py:154
↓ 4 callersFunction_download_fn
(output_dir, name, renmae: Optional[str] = None, version: s
OSUM/wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:220
↓ 4 callersMethod_extract_speech_token
(self, speech)
OSUM-EChat/tts/cosyvoice/cli/frontend.py:101
↓ 4 callersMethod_forward_encoder
( self, speech: torch.Tensor, speech_lengths: torch.Tensor, decoding_chunk_siz
OSUM/wenet/transformer/asr_model.py:271
↓ 4 callersMethod_update_kv_and_cache
( self, k: torch.Tensor, v: torch.Tensor, cache: T_CACHE,
OSUM-EChat/wenet/transformer/attention.py:180
↓ 4 callersMethod_update_kv_and_cache
( self, k: torch.Tensor, v: torch.Tensor, cache: T_CACHE,
OSUM/wenet/transformer/attention.py:180
↓ 4 callersFunctionadd_whisper_tokens
Add whisper-style tokens. ([PREV] -> [previous text tokens or hotwords]).optional -- ┌-----------------------------------------------------
OSUM-EChat/wenet/utils/common.py:159
↓ 4 callersFunctionadd_whisper_tokens
Add whisper-style tokens. ([PREV] -> [previous text tokens or hotwords]).optional -- ┌-----------------------------------------------------
OSUM/wenet/utils/common.py:159
↓ 4 callersMethodapply
(self, f)
OSUM-EChat/tts/cosyvoice/dataset/dataset.py:47
↓ 4 callersFunctionbatch_forward
(model, batch, scaler, info_dict)
OSUM-EChat/tts/cosyvoice/utils/train_utils.py:238
↓ 4 callersFunctionctc_prefix_beam_search
Returns: List[List[List[int]]]: nbest result for each utterance
OSUM/wenet/transformer/search.py:125
↓ 4 callersMethodcv
Cross validation on
OSUM-EChat/tts/cosyvoice/utils/executor.py:143
↓ 4 callersFunctiondo_format_shard_manifest4one
(input_shards_path, tmp_file_path=None)
OSUM-EChat/common_utils/utils4infer.py:80
↓ 4 callersMethodforward_attention
Compute attention context vector. Args: value (torch.Tensor): Transformed value, size (#batch, ..., n_head, time2
OSUM-EChat/wenet/transformer/attention.py:133
↓ 4 callersMethodforward_attention
Compute attention context vector. Args: value (torch.Tensor): Transformed value, size (#batch, n_head, time2, d_k
OSUM/wenet/squeezeformer/attention.py:99
↓ 4 callersMethodforward_chunk
Forward just one chunk Args: xs (torch.Tensor): chunk input, with shape (b=1, time, mel-dim), where `time == (ch
OSUM/wenet/transformer/encoder.py:206
↓ 4 callersMethodforward_qkv
Transform query, key and value. Args: query (torch.Tensor): Query tensor (#batch, ..., time1, size). key (torch.Tenso
OSUM-EChat/wenet/transformer/attention.py:109
↓ 4 callersMethodforward_step
Args: input (torch.Tensor): [batch_size, time_step=1] padding (torch.Tensor): [batch_size,1], 1 is padding value
OSUM/wenet/transducer/predictor.py:185
↓ 4 callersMethodfrontend_zero_shot
(self, tts_text, prompt_text, prompt_speech_16k, resample_rate)
OSUM-EChat/tts/cosyvoice/cli/frontend.py:186
↓ 4 callersFunctiongenerate_amp_mask
Generate amplitude domain mask randomly in [-100db, 0db] Args: mask_num: the slot number of the mask Returns: A list of tupl
OSUM/wenet/dataset/wav_distortion.py:123
↓ 4 callersFunctionget_question_prompt_by_task
(task_tag)
OSUM-EChat/wenet/osum_echat/wav_instrcut_tools.py:86
↓ 4 callersFunctionget_question_wav_path_by_task
(task_tag)
OSUM-EChat/wenet/osum_echat/wav_instrcut_tools.py:97
↓ 4 callersFunctionget_test_conf
(config_path)
OSUM-EChat/common_utils/utils4infer.py:128
↓ 4 callersFunctionlog_per_step
(writer, info_dict)
OSUM-EChat/tts/cosyvoice/utils/train_utils.py:301
↓ 4 callersFunctionlrs_to_str
(lrs: List)
OSUM-EChat/wenet/utils/common.py:336
↓ 4 callersFunctionlrs_to_str
(lrs: List)
OSUM/wenet/utils/common.py:336
↓ 4 callersFunctionmake_amp_mask
Get a amplitude domain mask from db domain mask Args: db_mask: Optional. A list of tuple. if None, using default value. Returns:
OSUM/wenet/dataset/wav_distortion.py:105
↓ 4 callersFunctionoverride_config
(configs, override_list)
OSUM/wenet/utils/config.py:18
↓ 4 callersMethodreset_parameters
(self)
OSUM/wenet/finetune/lora/layers.py:137
↓ 4 callersMethodsampling_ids
( self, weighted_scores: torch.Tensor, decoded_tokens: List, s
OSUM-EChat/tts/cosyvoice/llm/llm.py:141
↓ 4 callersMethodstart
(self)
OSUM-EChat/wenet/utils/common.py:347
↓ 4 callersFunctiontest
(xlist, blist, rtol=1e-3, atol=1e-5, tolerate_small_mismatch=True)
OSUM/wenet/bin/export_onnx_gpu.py:735
↓ 4 callersMethodtrain
(self, mode: bool = True)
OSUM/wenet/finetune/lora/layers.py:147
↓ 3 callersFunctionDataset
Construct dataset from arguments We have two shuffle stage in the Dataset. The first is global shuffle at shard tar/raw file level.
OSUM-EChat/tts/cosyvoice/dataset/dataset.py:126
↓ 3 callersMethod__init__
(self, samp_rate, harmonic_num=0, sine_amp=0.1, noise_std=0.003, voiced_thre
OSUM-EChat/tts/cosyvoice/hifigan/generator.py:123
↓ 3 callersMethod__init__
Args: input_size (int): input dim output_size (int): dimension of attention attention_heads (int): the nu
OSUM-EChat/wenet/transformer/encoder.py:40
↓ 3 callersMethod__init__
(self, voca_size: int, embed_size: int, output_size: int,
OSUM/wenet/transducer/predictor.py:62
↓ 3 callersMethod__init__
(self, channel: int, out_dim: int, kernel_size: int = 5,
OSUM/wenet/squeezeformer/subsampling.py:109
↓ 3 callersMethod_extract_speech_feat
(self, speech)
OSUM-EChat/tts/cosyvoice/cli/frontend.py:124
↓ 3 callersMethod_extract_spk_embedding
(self, speech)
OSUM-EChat/tts/cosyvoice/cli/frontend.py:113
↓ 3 callersMethod_forward_encoder
( self, speech: torch.Tensor, speech_lengths: torch.Tensor, decoding_chunk_siz
OSUM/wenet/paraformer/paraformer.py:276
↓ 3 callersMethod_get_linear_warmup_with_cosine_annealing_lr
(self, step)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:543
↓ 3 callersMethod_get_linear_warmup_with_cosine_annealing_lr
(self, step)
OSUM-EChat/wenet/utils/scheduler.py:548
↓ 3 callersMethod_get_linear_warmup_with_cosine_annealing_lr
(self, step)
OSUM/wenet/utils/scheduler.py:548
↓ 3 callersMethod_get_warmup_lr
(self, step)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:128
↓ 3 callersMethod_get_warmup_lr
(self, step)
OSUM-EChat/wenet/utils/scheduler.py:133
↓ 3 callersMethod_get_warmup_lr
(self, step)
OSUM/wenet/utils/scheduler.py:133
↓ 3 callersFunctionadd_optional_chunk_mask
Apply optional mask for encoder. Args: xs (torch.Tensor): padded input, (B, L, D), L for max length mask (torch.Tensor): mask fo
OSUM/wenet/utils/mask.py:126
↓ 3 callersFunctionadd_sos_eos
Add <sos> and <eos> labels. Args: ys_pad (torch.Tensor): batch of padded target sequences (B, Lmax) sos (int): index of <sos>
OSUM-EChat/wenet/utils/common.py:113
↓ 3 callersMethodargmax
argmax of frame activations Args: torch.Tensor hs_pad: 3d tensor (B, Tmax, eprojs) Returns: torch.Tensor: arg
OSUM-EChat/wenet/transformer/ctc.py:131
↓ 3 callersFunctionbatch_backward
(model, scaler, info_dict)
OSUM-EChat/tts/cosyvoice/utils/train_utils.py:259
↓ 3 callersMethodcalculate_downsampling_factor
(self, i: int)
OSUM/wenet/efficient_conformer/encoder.py:237
↓ 3 callersMethodcalculate_downsampling_factor
(self, i: int)
OSUM/wenet/bin/export_onnx_gpu.py:450
↓ 3 callersFunctioncompute_mask_indices_v2
( shape, padding_mask, mask_prob: float, mask_length: int, mask_type:
OSUM/wenet/ssl/bestrq/mask.py:58
↓ 3 callersMethodcopy_context
(self, prefix_score)
OSUM-EChat/wenet/transformer/search.py:95
↓ 3 callersMethodcopy_context
(self, prefix_score)
OSUM/wenet/transformer/search.py:95
↓ 3 callersFunctiondo_embedding_for_two_embeds
Args: input_token_ids: (B, Lmax) ,其词表范围是[0, vocab_size1+vocab_size2) dividing_id: int, 第一个词表的个数 embedding1: nn.Embedding
OSUM-EChat/wenet/osum_echat/utils4llmasr.py:376
↓ 3 callersFunctiondo_s2t
(model, input_wav_path, input_prompt, profile=False)
OSUM-EChat/infer_gradio.py:107
↓ 3 callersMethodeos_symbol
Export interface for c++ call, return eos symbol id of the model
OSUM/wenet/transformer/asr_model.py:408
↓ 3 callersFunctionf
(name_idx=name_idx)
OSUM/tools/latency_metrics.py:264
↓ 3 callersMethodforward
( self, hidden, target_label: Optional[torch.Tensor] = None, mask: torch.Tenso
OSUM/wenet/paraformer/cif.py:55
↓ 3 callersMethodforward_one_step
(self, xs, masks, cache=None)
OSUM-EChat/tts/cosyvoice/llm/llm.py:232
↓ 3 callersMethodforward_one_step
Forward one step. This is only used for decoding. Args: memory: encoded memory, float32 (batch, maxlen_in, feat)
OSUM-EChat/wenet/transformer/decoder.py:226
↓ 3 callersMethodforward_one_step
Forward one step. This is only used for decoding. Args: memory: encoded memory, float32 (batch, maxlen_in, feat)
OSUM/wenet/transformer/decoder.py:226
↓ 3 callersMethodgenerate
Generates responses for given prompts using Gemma model.
OSUM/wenet/LLM/causallm_model.py:84
↓ 3 callersFunctionget_blank_id
(configs, symbol_table)
OSUM/wenet/utils/ctc_utils.py:122
↓ 3 callersMethodget_embedding_from_wav
return: wav_embedding: (b, l, v) wav_mask: (b, l), wav为有效值的位置为true
OSUM/wenet/llm_asr/llmasr_model.py:276
↓ 3 callersMethodget_label_embedding
(self, labels, labels_lengths, unk_id=7672)
OSUM-EChat/wenet/osum_echat/llmasr_model_instruct_version.py:200
↓ 3 callersFunctioninit_dataset
(dataset_type, data_type, data_list_file, tokenizer: Option
OSUM/wenet/utils/init_dataset.py:16
↓ 3 callersMethodinit_match_found
初始化match_found标志。
OSUM-EChat/patches/custom_speech_ngram_blocking.py:90
↓ 3 callersFunctionload_checkpoint
(model: torch.nn.Module, path: str)
OSUM-EChat/wenet/utils/checkpoint.py:37
↓ 3 callersFunctionlog_per_step
(writer, info_dict, timer: Optional[StepTimer] = None)
OSUM-EChat/wenet/utils/train_utils.py:817
↓ 3 callersFunctionlog_per_step
(writer, info_dict, timer: Optional[StepTimer] = None)
OSUM/wenet/utils/train_utils.py:812
↓ 3 callersFunctionmake_streaming_mode_from_s2s
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:227
↓ 3 callersFunctionmask_finished_preds
If a sequence is finished, all of its branch should be <eos> Args: pred (torch.Tensor): A int array with shape (batch_si
OSUM/wenet/utils/mask.py:288
↓ 3 callersFunctionmask_finished_scores
If a sequence is finished, we only allow one alive branch. This function aims to give one branch a zero score and the rest -inf score. A
OSUM/wenet/utils/mask.py:258
↓ 3 callersFunctionmask_to_bias
(mask: torch.Tensor, dtype: torch.dtype)
OSUM-EChat/tts/cosyvoice/utils/common.py:158
↓ 3 callersMethodmerge_AB
(self)
OSUM/wenet/finetune/lora/layers.py:233
↓ 3 callersMethodoutput_size
(self)
OSUM-EChat/tts/cosyvoice/transformer/encoder.py:108
↓ 3 callersFunctionread_symbol_table
(symbol_table_file)
OSUM/wenet/utils/file_utils.py:61
↓ 3 callersMethodremove_weight_norm
(self)
OSUM-EChat/tts/cosyvoice/hifigan/generator.py:101
↓ 3 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/wenet/utils/common.py:244
↓ 3 callersMethodscore
(self)
OSUM-EChat/wenet/transformer/search.py:83
↓ 3 callersMethodscore
(self)
OSUM/wenet/transformer/search.py:83
↓ 3 callersFunctionscripting
(model)
OSUM/wenet/bin/export_ipex.py:33
↓ 3 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/wenet/utils/mask.py:52
↓ 3 callersFunctionth_accuracy
Calculate accuracy. Args: pad_outputs (Tensor): Prediction tensors (B * Lmax, D). pad_targets (LongTensor): Target label tensors
OSUM-EChat/wenet/utils/common.py:272
↓ 3 callersMethodtimes
(self)
OSUM-EChat/wenet/transformer/search.py:89
↓ 3 callersMethodtimes
(self)
OSUM/wenet/transformer/search.py:89
↓ 3 callersMethodtoken2wav
(self, token, prompt_token, prompt_feat, embedding, uuid, token_offset, finalize=False, speed=1.0)
OSUM-EChat/tts/cosyvoice/cli/model.py:380
↓ 3 callersFunctionupdate_parameter_and_lr
(model, optimizer, scheduler, scaler, info_dict)
OSUM-EChat/tts/cosyvoice/utils/train_utils.py:273
↓ 3 callersMethodviterbi_score
(self)
OSUM-EChat/wenet/transformer/search.py:86
↓ 3 callersMethodviterbi_score
(self)
OSUM/wenet/transformer/search.py:86
↓ 2 callersFunctionApplyPadding
Args: input: [bs, max_time_step, dim] padding: [bs, max_time_step]
OSUM/wenet/transducer/predictor.py:8
↓ 2 callersMethod__init__
(self, config: Qwen2Config, layer_idx: Optional[int] = None)
OSUM-EChat/patches/modelling_qwen2_infer_gpu.py:33
↓ 2 callersMethod__init__
( self, llm_input_size: int, llm_output_size: int, speech_toke
OSUM-EChat/tts/cosyvoice/llm/llm.py:248
↓ 2 callersMethod__init__
( self, window_length: int, num_embeddings: Optional[int] = None, channels: in
OSUM-EChat/tts/cosyvoice/hifigan/discriminator.py:73
↓ 2 callersMethod__init__
Args: input_size (int): input dim output_size (int): dimension of attention attention_heads (int): the nu
OSUM-EChat/tts/cosyvoice/transformer/encoder.py:39
↓ 2 callersMethod__init__
(self, channels: int, out_channels: int, stride: int = 2)
OSUM-EChat/tts/cosyvoice/transformer/upsample_encoder.py:51
← previousnext →101–200 of 1,852, ranked by callers