Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ASLP-lab/OSUM
/ functions
Functions
1,852 in github.com/ASLP-lab/OSUM
⨍
Functions
1,852
◇
Types & classes
348
Method
forward
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
Method
forward
Return Swish activation function.
OSUM/wenet/transformer/swish.py:25
Method
forward
Return Swish activation function.
OSUM/wenet/transformer/swish.py:32
Method
forward
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
Method
forward
Args: x (torch.Tensor): (batch, max_len, feat_dim) Returns: (torch.Tensor): normalized feature
OSUM/wenet/transformer/cmvn.py:36
Method
forward
(self, x)
OSUM/wenet/transformer/norm.py:22
Method
forward
Compute scaled dot product attention. Args: query (torch.Tensor): Query tensor (#batch, time1, size). key (torch.Tens
OSUM/wenet/transformer/attention.py:247
Method
forward
Compute 'Scaled Dot Product Attention' with rel. positional encoding. Args: query (torch.Tensor): Query tensor (#batch, time1, siz
OSUM/wenet/transformer/attention.py:364
Method
forward
( self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, m
OSUM/wenet/transformer/attention.py:456
Method
forward
( self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, m
OSUM/wenet/transformer/attention.py:558
Method
forward
Compute rope scaled dot product attention. Args: query (torch.Tensor): Query tensor (#batch, time1, size). key (torch
OSUM/wenet/transformer/attention.py:616
Method
forward
Compute convolution module. Args: x (torch.Tensor): Input tensor (#batch, time, channels). mask_pad (torch.Tensor): us
OSUM/wenet/transformer/convolution.py:95
Method
forward
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
Method
forward
Add positional encoding. Args: x (torch.Tensor): Input. Its shape is (batch, time, ...) offset (int, torch.tensor): p
OSUM/wenet/transformer/embedding.py:61
Method
forward
Compute positional encoding. Args: x (torch.Tensor): Input tensor (batch, time, `*`). Returns: torch.Tensor: E
OSUM/wenet/transformer/embedding.py:134
Method
forward
Just return zero vector for interface compatibility
OSUM/wenet/transformer/embedding.py:187
Method
forward
( self, x: torch.Tensor, offset: Union[int, torch.Tensor] = 0)
OSUM/wenet/transformer/embedding.py:218
Method
forward
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
Method
forward
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
Method
forward
( self, batch: dict, device: torch.device, )
OSUM/wenet/ctl_model/asr_model_ctl.py:71
Method
forward
(self, x: torch.Tensor)
OSUM/wenet/finetune/lora/layers.py:90
Method
forward
(self, x: torch.Tensor)
OSUM/wenet/finetune/lora/layers.py:254
Method
forward
(self, x)
OSUM/wenet/finetune/lora/layers.py:325
Method
forward
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
Method
forward
Encoder Args: speech: (Batch, Length, ...) speech_lengths: (Batch, ) Returns: encoder_out: B x T x
OSUM/wenet/bin/export_onnx_gpu.py:50
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
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
Method
forward
Args: x: (B, T, idim) Returns:
OSUM/wenet/llm_asr/downsampler.py:25
Method
forward
Args: x: (B, T, idim) Returns:
OSUM/wenet/llm_asr/downsampler.py:64
Method
forward
Args: x: (B, T, idim) Returns:
OSUM/wenet/llm_asr/downsampler.py:102
Method
forward
Args: x: (B, T, idim) Returns:
OSUM/wenet/llm_asr/downsampler.py:140
Method
forward
x: B, T, enc_out_dim mask: (B, T) or (B, 1, T)
OSUM/wenet/llm_asr/downsampler.py:191
Method
forward
(self, batch, device, )
OSUM/wenet/llm_asr/llmasr_model.py:161
Method
forward_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
Method
forward_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
Method
forward_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
Method
forward_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
Method
forward_encoder_chunk
( self, xs: torch.Tensor, offset: int, required_cache_size: int, att_c
OSUM/wenet/transducer/transducer.py:444
Method
forward_encoder_chunk
( self, xs: torch.Tensor, offset: int, required_cache_size: int, att_c
OSUM/wenet/paraformer/paraformer.py:303
Method
forward_full
( self, xs: torch.Tensor, xs_lens: torch.Tensor, decoding_chunk_size: int = 0,
OSUM/wenet/ctl_model/encoder.py:76
Method
forward_full
( self, xs: torch.Tensor, xs_lens: torch.Tensor, decoding_chunk_size: int = 0,
OSUM/wenet/ctl_model/encoder.py:155
Method
forward_joint_step
(self, enc_out: torch.Tensor, pred_out: torch.Tensor)
OSUM/wenet/transducer/transducer.py:466
Method
forward_layers
(self, xs: torch.Tensor, chunk_masks: torch.Tensor, pos_emb: torch.Tensor,
OSUM/wenet/paraformer/layers.py:276
Method
forward_layers_checkpointed
(self, xs: torch.Tensor, chunk_masks: torch.Tensor,
OSUM/wenet/paraformer/layers.py:286
Method
forward_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
Method
forward_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
Method
forward_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
Method
forward_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
Method
forward_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
Method
forward_predictor_init_state
(self)
OSUM/wenet/transducer/transducer.py:471
Method
forward_predictor_step
( self, xs: torch.Tensor, cache: List[torch.Tensor] )
OSUM/wenet/transducer/transducer.py:457
Method
forward_step
( self, input: torch.Tensor, padding: torch.Tensor, cache: List[torch.Tensor] )
OSUM/wenet/transducer/predictor.py:52
Method
forward_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
Method
forward_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
Function
freeze_modules
(model, args)
OSUM-EChat/wenet/utils/train_utils.py:902
Function
freeze_modules
(model, args)
OSUM/wenet/utils/train_utils.py:895
Function
gain_db
(x)
OSUM/wenet/dataset/wav_distortion.py:256
Function
gen_ctc_peak_time
(hyp: List[int], blank_id: int = 0)
OSUM-EChat/wenet/utils/ctc_utils.py:51
Method
gen_frame_alignments
(self, alphas: torch.Tensor = None, encoder_sequence
OSUM/wenet/paraformer/cif.py:144
Function
gen_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
Method
generate
( self, wavs, wavs_len, prompt, )
OSUM/wenet/llm_asr/llmasr_model.py:228
Function
get_blank_id
(configs, symbol_table)
OSUM-EChat/wenet/utils/ctc_utils.py:122
Method
get_embedding_from_text
(self, text)
OSUM/wenet/llm_asr/llmasr_model.py:292
Method
get_embeds_from_wav_path
(self, wav_path)
OSUM/wenet/llm_asr/llmasr_model.py:302
Method
get_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:59
Method
get_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:110
Method
get_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:175
Method
get_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:257
Method
get_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:340
Method
get_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:588
Method
get_lr
(self)
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:734
Method
get_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:57
Method
get_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:115
Method
get_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:180
Method
get_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:262
Method
get_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:345
Method
get_lr
(self)
OSUM-EChat/wenet/utils/scheduler.py:594
Method
get_lr
(self)
OSUM/wenet/utils/scheduler.py:57
Method
get_lr
(self)
OSUM/wenet/utils/scheduler.py:115
Method
get_lr
(self)
OSUM/wenet/utils/scheduler.py:180
Method
get_lr
(self)
OSUM/wenet/utils/scheduler.py:262
Method
get_lr
(self)
OSUM/wenet/utils/scheduler.py:345
Method
get_lr
(self)
OSUM/wenet/utils/scheduler.py:594
Function
get_prompt_by_task
根据task给定指定的prompt, 并实现prompt的多样随意性 Args: task_name: Returns:
OSUM-EChat/wenet/osum_echat/utils4llmasr.py:62
Function
get_prompt_by_task
根据task给定指定的prompt, 并实现prompt的多样随意性 Args: task_name: Returns:
OSUM/wenet/llm_asr/utils4llmasr.py:58
Function
get_qwen_tokenizer
( token_path: str, skip_special_tokens: bool )
OSUM-EChat/tts/cosyvoice/tokenizer/tokenizer.py:275
Function
get_subsample
(config)
OSUM-EChat/wenet/utils/common.py:294
Function
google_apply_rotary_emb
Applies the rotary embedding to the query and key tensors.
OSUM-EChat/wenet/utils/rope_utils.py:18
Function
google_apply_rotary_emb
Applies the rotary embedding to the query and key tensors.
OSUM/wenet/utils/rope_utils.py:18
Method
greedy_search
greedy search Args: speech (torch.Tensor): (batch=1, max_len, feat_dim) speech_length (torch.Tensor): (batch, )
OSUM/wenet/transducer/transducer.py:397
Function
handle_submit
(selected_model_name, input_wav_path, task_choice, custom_prompt, tts_text, t2t_text, pr
OSUM-EChat/infer_gradio.py:325
Function
handle_submit
(input_wav_path, input_prompt)
OSUM/infer_gradio.py:129
Method
hidden_size
(self)
OSUM/wenet/LLM/decoder.py:160
Method
hlg_onebest
( self, speech: torch.Tensor, speech_lengths: torch.Tensor, decoding_chunk_siz
OSUM/wenet/k2/model.py:142
Method
hlg_rescore
( self, speech: torch.Tensor, speech_lengths: torch.Tensor, decoding_chunk_siz
OSUM/wenet/k2/model.py:186
Method
ids2tokens
(self, ids: List[int])
OSUM-EChat/wenet/text/hugging_face_tokenizer.py:46
Method
ids2tokens
(self, ids: List[int])
OSUM-EChat/wenet/text/whisper_tokenizer.py:92
Method
ids2tokens
(self, ids: List[int])
OSUM-EChat/wenet/text/char_tokenizer.py:71
← previous
next →
1,501–1,600 of 1,852, ranked by callers