MCPcopy Create free account

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

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

Methodforward
Compute loss between x and target. The model outputs and data labels tensors are flatten to (batch*seqlen, class) shape and a mask is
OSUM/wenet/transformer/label_smoothing_loss.py:68
Methodforward
Return Swish activation function.
OSUM/wenet/transformer/swish.py:25
Methodforward
Return Swish activation function.
OSUM/wenet/transformer/swish.py:32
Methodforward
Calculate CTC loss. Args: hs_pad: batch of padded hidden state sequences (B, Tmax, D) hlens: batch of lengths of hidd
OSUM/wenet/transformer/ctc.py:51
Methodforward
Args: x (torch.Tensor): (batch, max_len, feat_dim) Returns: (torch.Tensor): normalized feature
OSUM/wenet/transformer/cmvn.py:36
Methodforward
(self, x)
OSUM/wenet/transformer/norm.py:22
Methodforward
Compute scaled dot product attention. Args: query (torch.Tensor): Query tensor (#batch, time1, size). key (torch.Tens
OSUM/wenet/transformer/attention.py:247
Methodforward
Compute 'Scaled Dot Product Attention' with rel. positional encoding. Args: query (torch.Tensor): Query tensor (#batch, time1, siz
OSUM/wenet/transformer/attention.py:364
Methodforward
( self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, m
OSUM/wenet/transformer/attention.py:456
Methodforward
( self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, m
OSUM/wenet/transformer/attention.py:558
Methodforward
Compute rope scaled dot product attention. Args: query (torch.Tensor): Query tensor (#batch, time1, size). key (torch
OSUM/wenet/transformer/attention.py:616
Methodforward
Compute convolution module. Args: x (torch.Tensor): Input tensor (#batch, time, channels). mask_pad (torch.Tensor): us
OSUM/wenet/transformer/convolution.py:95
Methodforward
Embed positions in tensor. Args: xs: padded input tensor (B, T, D) xs_lens: input length (B) decoding_chu
OSUM/wenet/transformer/encoder.py:124
Methodforward
Add positional encoding. Args: x (torch.Tensor): Input. Its shape is (batch, time, ...) offset (int, torch.tensor): p
OSUM/wenet/transformer/embedding.py:61
Methodforward
Compute positional encoding. Args: x (torch.Tensor): Input tensor (batch, time, `*`). Returns: torch.Tensor: E
OSUM/wenet/transformer/embedding.py:134
Methodforward
Just return zero vector for interface compatibility
OSUM/wenet/transformer/embedding.py:187
Methodforward
( self, x: torch.Tensor, offset: Union[int, torch.Tensor] = 0)
OSUM/wenet/transformer/embedding.py:218
Methodforward
Compute encoded features. Args: x (torch.Tensor): (#batch, time, size) mask (torch.Tensor): Mask tensor for the input
OSUM/wenet/transformer/encoder_layer.py:73
Methodforward
Compute encoded features. Args: x (torch.Tensor): (#batch, time, size) mask (torch.Tensor): Mask tensor for the input
OSUM/wenet/transformer/encoder_layer.py:188
Methodforward
( self, batch: dict, device: torch.device, )
OSUM/wenet/ctl_model/asr_model_ctl.py:71
Methodforward
(self, x: torch.Tensor)
OSUM/wenet/finetune/lora/layers.py:90
Methodforward
(self, x: torch.Tensor)
OSUM/wenet/finetune/lora/layers.py:254
Methodforward
(self, x)
OSUM/wenet/finetune/lora/layers.py:325
Methodforward
CMVN with 4-D dataflow. Args: x (torch.Tensor): (batch, 1, mel_dim, time) Returns: (torch.Tensor): normalized
OSUM/wenet/bin/export_onnx_bpu.py:225
Methodforward
Encoder Args: speech: (Batch, Length, ...) speech_lengths: (Batch, ) Returns: encoder_out: B x T x
OSUM/wenet/bin/export_onnx_gpu.py:50
Methodforward
Streaming Encoder Args: xs (torch.Tensor): chunk input, with shape (b, time, mel-dim), where `time == (chunk_size
OSUM/wenet/bin/export_onnx_gpu.py:104
Methodforward
Streaming Encoder Args: xs (torch.Tensor): chunk input, with shape (b, time, mel-dim), where `time == (chunk_size
OSUM/wenet/bin/export_onnx_gpu.py:267
Methodforward
Streaming Encoder Args: chunk_xs (torch.Tensor): chunk input, with shape (b, time, mel-dim), where `time == (chunk
OSUM/wenet/bin/export_onnx_gpu.py:457
Methodforward
Encoder Args: encoder_out: B x T x F encoder_lens: B hyps_pad_sos_eos: B x beam x (T2+1),
OSUM/wenet/bin/export_onnx_gpu.py:645
Methodforward
Args: x: (B, T, idim) Returns:
OSUM/wenet/llm_asr/downsampler.py:25
Methodforward
Args: x: (B, T, idim) Returns:
OSUM/wenet/llm_asr/downsampler.py:64
Methodforward
Args: x: (B, T, idim) Returns:
OSUM/wenet/llm_asr/downsampler.py:102
Methodforward
Args: x: (B, T, idim) Returns:
OSUM/wenet/llm_asr/downsampler.py:140
Methodforward
x: B, T, enc_out_dim mask: (B, T) or (B, 1, T)
OSUM/wenet/llm_asr/downsampler.py:191
Methodforward
(self, batch, device, )
OSUM/wenet/llm_asr/llmasr_model.py:161
Methodforward_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/tts/cosyvoice/transformer/encoder.py:275
Methodforward_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/squeezeformer/encoder.py:406
Methodforward_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/efficient_conformer/encoder.py:464
Methodforward_encoder_chunk
Export interface for c++ call, give input chunk xs, and return output from time 0 to current chunk. Args: xs (torch.
OSUM-EChat/wenet/transformer/asr_model.py:414
Methodforward_encoder_chunk
( self, xs: torch.Tensor, offset: int, required_cache_size: int, att_c
OSUM/wenet/transducer/transducer.py:444
Methodforward_encoder_chunk
( self, xs: torch.Tensor, offset: int, required_cache_size: int, att_c
OSUM/wenet/paraformer/paraformer.py:303
Methodforward_full
( self, xs: torch.Tensor, xs_lens: torch.Tensor, decoding_chunk_size: int = 0,
OSUM/wenet/ctl_model/encoder.py:76
Methodforward_full
( self, xs: torch.Tensor, xs_lens: torch.Tensor, decoding_chunk_size: int = 0,
OSUM/wenet/ctl_model/encoder.py:155
Methodforward_joint_step
(self, enc_out: torch.Tensor, pred_out: torch.Tensor)
OSUM/wenet/transducer/transducer.py:466
Methodforward_layers
(self, xs: torch.Tensor, chunk_masks: torch.Tensor, pos_emb: torch.Tensor,
OSUM/wenet/paraformer/layers.py:276
Methodforward_layers_checkpointed
(self, xs: torch.Tensor, chunk_masks: torch.Tensor,
OSUM/wenet/paraformer/layers.py:286
Methodforward_one_step
Forward one step. This is only used for decoding. Args: memory: encoded memory, float32 (batch, maxlen_in, feat)
OSUM-EChat/tts/cosyvoice/transformer/decoder.py:367
Methodforward_one_step
Search the graph with given state and token. Args: state: The given token containing trie node to start. toke
OSUM-EChat/wenet/utils/context_graph.py:212
Methodforward_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:465
Methodforward_one_step
Search the graph with given state and token. Args: state: The given token containing trie node to start. toke
OSUM/wenet/utils/context_graph.py:212
Methodforward_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:465
Methodforward_predictor_init_state
(self)
OSUM/wenet/transducer/transducer.py:471
Methodforward_predictor_step
( self, xs: torch.Tensor, cache: List[torch.Tensor] )
OSUM/wenet/transducer/transducer.py:457
Methodforward_step
( self, input: torch.Tensor, padding: torch.Tensor, cache: List[torch.Tensor] )
OSUM/wenet/transducer/predictor.py:52
Methodforward_step
forward step for inference Args: input (torch.Tensor): [batch_size, time_step=1] padding (torch.Tensor): [batch_size,
OSUM/wenet/transducer/predictor.py:332
Methodforward_step
forward step for inference Args: input (torch.Tensor): [batch_size, time_step=1] padding (torch.Tensor): [batch_size,
OSUM/wenet/transducer/predictor.py:472
Functionfreeze_modules
(model, args)
OSUM-EChat/wenet/utils/train_utils.py:902
Functionfreeze_modules
(model, args)
OSUM/wenet/utils/train_utils.py:895
Functiongain_db
(x)
OSUM/wenet/dataset/wav_distortion.py:256
Functiongen_ctc_peak_time
(hyp: List[int], blank_id: int = 0)
OSUM-EChat/wenet/utils/ctc_utils.py:51
Methodgen_frame_alignments
(self, alphas: torch.Tensor = None, encoder_sequence
OSUM/wenet/paraformer/cif.py:144
Functiongen_timestamps_from_peak
Args: peaks: ctc peaks time stamp max_duration: max_duration of the sentence frame_rate: frame rate of every time stamp,
OSUM-EChat/wenet/utils/ctc_utils.py:63
Methodgenerate
( self, wavs, wavs_len, prompt, )
OSUM/wenet/llm_asr/llmasr_model.py:228
Functionget_blank_id
(configs, symbol_table)
OSUM-EChat/wenet/utils/ctc_utils.py:122
Methodget_embedding_from_text
(self, text)
OSUM/wenet/llm_asr/llmasr_model.py:292
Methodget_embeds_from_wav_path
(self, wav_path)
OSUM/wenet/llm_asr/llmasr_model.py:302
Methodget_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:59
Methodget_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:110
Methodget_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:175
Methodget_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:257
Methodget_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:340
Methodget_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:588
Methodget_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:734
Methodget_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:57
Methodget_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:115
Methodget_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:180
Methodget_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:262
Methodget_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:345
Methodget_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:594
Methodget_lr
(self)
OSUM/wenet/utils/scheduler.py:57
Methodget_lr
(self)
OSUM/wenet/utils/scheduler.py:115
Methodget_lr
(self)
OSUM/wenet/utils/scheduler.py:180
Methodget_lr
(self)
OSUM/wenet/utils/scheduler.py:262
Methodget_lr
(self)
OSUM/wenet/utils/scheduler.py:345
Methodget_lr
(self)
OSUM/wenet/utils/scheduler.py:594
Functionget_prompt_by_task
根据task给定指定的prompt, 并实现prompt的多样随意性 Args: task_name: Returns:
OSUM-EChat/wenet/osum_echat/utils4llmasr.py:62
Functionget_prompt_by_task
根据task给定指定的prompt, 并实现prompt的多样随意性 Args: task_name: Returns:
OSUM/wenet/llm_asr/utils4llmasr.py:58
Functionget_qwen_tokenizer
( token_path: str, skip_special_tokens: bool )
OSUM-EChat/tts/cosyvoice/tokenizer/tokenizer.py:275
Functionget_subsample
(config)
OSUM-EChat/wenet/utils/common.py:294
Functiongoogle_apply_rotary_emb
Applies the rotary embedding to the query and key tensors.
OSUM-EChat/wenet/utils/rope_utils.py:18
Functiongoogle_apply_rotary_emb
Applies the rotary embedding to the query and key tensors.
OSUM/wenet/utils/rope_utils.py:18
Methodgreedy_search
greedy search Args: speech (torch.Tensor): (batch=1, max_len, feat_dim) speech_length (torch.Tensor): (batch, )
OSUM/wenet/transducer/transducer.py:397
Functionhandle_submit
(selected_model_name, input_wav_path, task_choice, custom_prompt, tts_text, t2t_text, pr
OSUM-EChat/infer_gradio.py:325
Functionhandle_submit
(input_wav_path, input_prompt)
OSUM/infer_gradio.py:129
Methodhidden_size
(self)
OSUM/wenet/LLM/decoder.py:160
Methodhlg_onebest
( self, speech: torch.Tensor, speech_lengths: torch.Tensor, decoding_chunk_siz
OSUM/wenet/k2/model.py:142
Methodhlg_rescore
( self, speech: torch.Tensor, speech_lengths: torch.Tensor, decoding_chunk_siz
OSUM/wenet/k2/model.py:186
Methodids2tokens
(self, ids: List[int])
OSUM-EChat/wenet/text/hugging_face_tokenizer.py:46
Methodids2tokens
(self, ids: List[int])
OSUM-EChat/wenet/text/whisper_tokenizer.py:92
Methodids2tokens
(self, ids: List[int])
OSUM-EChat/wenet/text/char_tokenizer.py:71
← previousnext →1,501–1,600 of 1,852, ranked by callers