MCPcopy Create free account

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

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

Methodbeam_search
beam search Args: speech (torch.Tensor): (batch=1, max_len, feat_dim) speech_length (torch.Tensor): (batch, )
OSUM/wenet/transducer/transducer.py:215
Methodcache_to_batch
(self, cache: List[List[torch.Tensor]])
OSUM/wenet/transducer/predictor.py:36
Methodcache_to_batch
Args: cache : [[history_1], [history_2], [history3]...] Returns: new_caceh: [history], histo
OSUM/wenet/transducer/predictor.py:276
Methodcache_to_batch
Args: cache : [[history_1], [history_2], [history3]...] Returns: new_caceh: [history], histo
OSUM/wenet/transducer/predictor.py:423
Functioncausal_or_lookahead_mask
Create mask (B, T, T) with history or future or both, this is for causal or noncausal streaming encoder Args: mask (torch.Tensor):
OSUM-EChat/wenet/utils/mask.py:307
Functioncausal_or_lookahead_mask
Create mask (B, T, T) with history or future or both, this is for causal or noncausal streaming encoder Args: mask (torch.Tensor):
OSUM/wenet/utils/mask.py:307
Methodchange_max_tokens
(self, max_tokens)
OSUM-EChat/patches/cumstom_stop_criteria.py:70
Functioncheck_txt_format
(s)
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:98
Functioncheck_txt_format
(s)
OSUM-EChat/wenet/dataset/process/processor_language_think.py:86
Functioncheck_wav_format
(s)
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:90
Functioncheck_wav_format
(s)
OSUM-EChat/wenet/dataset/process/processor_language_think.py:79
Functioncleanup
(proc, cmd)
OSUM/wenet/dataset/kaldi_io.py:96
Functioncompute_f0
Extract f0 Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
OSUM-EChat/tts/cosyvoice/dataset/processor.py:182
Functioncompute_fbank
Extract fbank Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
OSUM-EChat/tts/cosyvoice/dataset/processor.py:160
Functioncompute_fbank
Extract fbank Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:1058
Functioncompute_fbank
Extract fbank Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
OSUM-EChat/wenet/dataset/process/processor.py:1086
Functioncompute_fbank
Extract fbank Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
OSUM-EChat/wenet/dataset/process/processor_language_think.py:972
Functioncompute_fbank
Extract fbank Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
OSUM/wenet/dataset/process/processor.py:420
Functioncompute_log_mel_spectrogram
Extract log mel spectrogram, modified from openai-whisper, see: - https://github.com/openai/whisper/blob/main/whisper/audio.py - http
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:1163
Functioncompute_log_mel_spectrogram
Extract log mel spectrogram, modified from openai-whisper, see: - https://github.com/openai/whisper/blob/main/whisper/audio.py - http
OSUM-EChat/wenet/dataset/process/processor.py:1189
Functioncompute_log_mel_spectrogram
Extract log mel spectrogram, modified from openai-whisper, see: - https://github.com/openai/whisper/blob/main/whisper/audio.py - http
OSUM-EChat/wenet/dataset/process/processor_language_think.py:1075
Functioncompute_log_mel_spectrogram
Extract log mel spectrogram, modified from openai-whisper, see: - https://github.com/openai/whisper/blob/main/whisper/audio.py - http
OSUM/wenet/dataset/process/processor.py:491
Functioncompute_mask_indices
( size: torch.Size, mask_prob: float, mask_length: int, min_masks: int = 0,
OSUM/wenet/ssl/bestrq/mask.py:13
Functioncompute_mfcc
Extract mfcc Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:1091
Functioncompute_mfcc
Extract mfcc Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
OSUM-EChat/wenet/dataset/process/processor.py:1119
Functioncompute_mfcc
Extract mfcc Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
OSUM-EChat/wenet/dataset/process/processor_language_think.py:1005
Functioncompute_mfcc
Extract mfcc Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
OSUM/wenet/dataset/process/processor.py:453
Functionconvert_ckpt_to_pt
(pt_dir_path)
OSUM-EChat/common_utils/convert_ckpt_dir_to_pt.py:11
Functionconvert_to_wenet_yaml
(wenet_yaml_path: str)
OSUM/wenet/ssl/w2vbert/convert_w2vbert_to_wenet_config_and_ckpt.py:8
Methodctc_activation
Export interface for c++ call, apply linear transform and log softmax before ctc Args: xs (torch.Tensor): encoder out
OSUM-EChat/wenet/transformer/asr_model.py:457
Methoddecode
(self, tokens)
OSUM-EChat/tts/cosyvoice/tokenizer/tokenizer.py:268
Methoddecode
( self, methods: List[str], speech: torch.Tensor, speech_lengths: torch.Tensor
OSUM/wenet/paraformer/paraformer.py:356
Methoddetokenize
(self, ids: List[int])
OSUM-EChat/wenet/text/base_tokenizer.py:14
Functiondistort_chain
(x, funcs, rate=0.8)
OSUM/wenet/dataset/wav_distortion.py:280
Functiondo_compute_log_mel_spectrogram
(waveform, n_fft=400, hop_length=160, nu
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:1129
Functiondo_compute_log_mel_spectrogram
(waveform,n_fft=400, hop_length=160, num_mel_b
OSUM-EChat/wenet/dataset/process/processor_language_think.py:1043
Functiondo_convert_num2text
将数字字符串转换为中文数字 Args: num_str: 数字字符串 Returns: 转换后的中文数字字符串
OSUM-EChat/wenet/osum_echat/utils4llmasr.py:401
Functiondownload_audio
(input_wav_path)
OSUM-EChat/infer_gradio.py:246
Functiondownload_audio
(input_wav_path)
OSUM/infer_gradio.py:133
Methodencode
(self, text, **kwargs)
OSUM-EChat/tts/cosyvoice/tokenizer/tokenizer.py:263
Methodespnet_initialization_fn
(self)
OSUM/wenet/branchformer/cgmlp.py:79
Functionexpand_dialogue_to_prefixes
Expand each multi-turn sample into a sequence of prefix sub-samples to achieve progressive training from single-turn to multi-turn.
OSUM-EChat/wenet/dataset/process/processor.py:521
Functionexport_offline_encoder
(model, configs, args, logger, encoder_onnx_path)
OSUM/wenet/bin/export_onnx_gpu.py:746
Functionexport_online_encoder
(model, configs, args, logger, encoder_onnx_path)
OSUM/wenet/bin/export_onnx_gpu.py:830
Functionextract_all_contents
(s)
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:414
Functionextract_all_contents
(s)
OSUM-EChat/wenet/dataset/process/processor.py:395
Functionextract_all_contents
(s)
OSUM-EChat/wenet/dataset/process/processor_language_think.py:398
Functionfence_distortion
(x)
OSUM/wenet/dataset/wav_distortion.py:173
Functionfilter
Filter sample according to feature and label length Inplace operation. Args:: data: Iterable[{key, wav, label, sample_ra
OSUM-EChat/tts/cosyvoice/dataset/processor.py:59
Functionfilter
Filter sample according to feature and label length Inplace operation. Args:: data: Iterable[{key, wav, label, sample_ra
OSUM-EChat/wenet/dataset/process/processor_tag_think.py:830
Functionfilter
Filter sample according to feature and label length Inplace operation. Args:: data: Iterable[{key, wav, label, sample_ra
OSUM-EChat/wenet/dataset/process/processor.py:860
Functionfilter
Filter sample according to feature and label length Inplace operation. Args:: data: Iterable[{key, wav, label, sample_ra
OSUM-EChat/wenet/dataset/process/processor_language_think.py:746
Functionfilter
Filter sample according to feature and label length Inplace operation. Args:: data: Iterable[{key, wav, label, sample_ra
OSUM/wenet/dataset/process/processor.py:284
Functionforce_align
ctc forced alignment. Args: torch.Tensor ctc_probs: hidden state sequence, 2d tensor (T, D) torch.Tensor y: id sequence tensor 1d
OSUM-EChat/wenet/utils/ctc_utils.py:106
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
OSUM-EChat/patches/modelling_qwen2_infer_gpu.py:71
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
OSUM-EChat/patches/modelling_qwen2_infer_gpu.py:151
Methodforward
(self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = No
OSUM-EChat/patches/modelling_qwen2_infer_gpu.py:259
Methodforward
(self, x, ylens=None)
OSUM-EChat/tts/cosyvoice/flow/length_regulator.py:44
Methodforward
(self, x: torch.Tensor, mask: torch.Tensor)
OSUM-EChat/tts/cosyvoice/flow/decoder.py:46
Methodforward
(self, x: torch.Tensor)
OSUM-EChat/tts/cosyvoice/flow/decoder.py:81
Methodforward
Forward pass of the UNet1DConditional model. Args: x (torch.Tensor): shape (batch_size, in_channels, time) mask (_typ
OSUM-EChat/tts/cosyvoice/flow/decoder.py:217
Methodforward
( self, batch: dict, device: torch.device, )
OSUM-EChat/tts/cosyvoice/flow/flow.py:60
Methodforward
Forward diffusion Args: mu (torch.Tensor): output of encoder shape: (batch_size, n_feats, mel_timesteps)
OSUM-EChat/tts/cosyvoice/flow/flow_matching.py:193
Methodforward
Args: text: (B, L, D) text_lengths: (B,) audio: (B, T, N) or (B, T) audio_lengths: (B,)
OSUM-EChat/tts/cosyvoice/llm/llm.py:91
Methodforward
(self, y: torch.Tensor, y_hat: torch.Tensor)
OSUM-EChat/tts/cosyvoice/hifigan/discriminator.py:17
Methodforward
( self, y: torch.Tensor, y_hat: torch.Tensor, bandwidth_id: torch.Tensor = None )
OSUM-EChat/tts/cosyvoice/hifigan/discriminator.py:53
Methodforward
(self, x: torch.Tensor, cond_embedding_id: torch.Tensor = None)
OSUM-EChat/tts/cosyvoice/hifigan/discriminator.py:119
Methodforward
( self, batch: dict, device: torch.device, )
OSUM-EChat/tts/cosyvoice/hifigan/hifigan.py:22
Methodforward
(self, x: torch.Tensor)
OSUM-EChat/tts/cosyvoice/hifigan/f0_predictor.py:53
Methodforward
(self, x: torch.Tensor)
OSUM-EChat/tts/cosyvoice/hifigan/generator.py:92
Methodforward
:param f0: [B, 1, sample_len], Hz :return: [B, 1, sample_len]
OSUM-EChat/tts/cosyvoice/hifigan/generator.py:139
Methodforward
Sine_source, noise_source = SourceModuleHnNSF(F0_sampled) F0_sampled (batchsize, length, 1) Sine_source (batchsize, length, 1
OSUM-EChat/tts/cosyvoice/hifigan/generator.py:205
Methodforward
( self, batch: dict, device: torch.device, )
OSUM-EChat/tts/cosyvoice/hifigan/generator.py:384
Methodforward
Forward function. Args: xs: input tensor (B, L, D) Returns: output tensor, (B, L, D)
OSUM-EChat/tts/cosyvoice/transformer/positionwise_feed_forward.py:47
Methodforward
Foward function. Args: xs: input tensor (B, L, D) Returns: output tensor, (B, L, D)
OSUM-EChat/tts/cosyvoice/transformer/positionwise_feed_forward.py:91
Methodforward
Forward decoder. Args: memory: encoded memory, float32 (batch, maxlen_in, feat) memory_mask: encoder memory mask, (ba
OSUM-EChat/tts/cosyvoice/transformer/decoder.py:116
Methodforward
Forward decoder. Args: memory: encoded memory, float32 (batch, maxlen_in, feat) memory_mask: encoder memory mask, (ba
OSUM-EChat/tts/cosyvoice/transformer/decoder.py:332
Methodforward
Compute decoded features. Args: tgt (torch.Tensor): Input tensor (#batch, maxlen_out, size). tgt_mask (torch.Tensor):
OSUM-EChat/tts/cosyvoice/transformer/decoder_layer.py:62
Methodforward
Input x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1, tim
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:45
Methodforward
Input x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1, tim
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:92
Methodforward
Subsample x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1,
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:145
Methodforward
Subsample x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1,
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:202
Methodforward
Subsample x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1,
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:256
Methodforward
Subsample x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1,
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:311
Methodforward
Input x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1, tim
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:362
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-EChat/tts/cosyvoice/transformer/label_smoothing_loss.py:68
Methodforward
Compute scaled dot product attention. Args: query (torch.Tensor): Query tensor (#batch, time1, size). key (torch.Tens
OSUM-EChat/tts/cosyvoice/transformer/attention.py:129
Methodforward
Compute 'Scaled Dot Product Attention' with rel. positional encoding. Args: query (torch.Tensor): Query tensor (#batch, time1, siz
OSUM-EChat/tts/cosyvoice/transformer/attention.py:249
Methodforward
Compute convolution module. Args: x (torch.Tensor): Input tensor (#batch, time, channels). mask_pad (torch.Tensor): us
OSUM-EChat/tts/cosyvoice/transformer/convolution.py:90
Methodforward
Embed positions in tensor. Args: xs: padded input tensor (B, T, D) xs_lens: input length (B) decoding_chu
OSUM-EChat/tts/cosyvoice/transformer/encoder.py:111
Methodforward
(self, inputs: torch.Tensor, input_lengths: torch.Tensor)
OSUM-EChat/tts/cosyvoice/transformer/upsample_encoder.py:59
Methodforward
inputs: (batch_size, seq_len, channels)
OSUM-EChat/tts/cosyvoice/transformer/upsample_encoder.py:81
Methodforward
Embed positions in tensor. Args: xs: padded input tensor (B, T, D) xs_lens: input length (B) decoding_chu
OSUM-EChat/tts/cosyvoice/transformer/upsample_encoder.py:237
Methodforward
Return Swish activation function.
OSUM-EChat/tts/cosyvoice/transformer/activation.py:27
Methodforward
Forward pass of the function. Applies the function to the input elementwise. Snake ∶= x + 1/a * sin^2 (xa)
OSUM-EChat/tts/cosyvoice/transformer/activation.py:73
Methodforward
Add positional encoding. Args: x (torch.Tensor): Input. Its shape is (batch, time, ...) offset (int, torch.tensor): p
OSUM-EChat/tts/cosyvoice/transformer/embedding.py:59
Methodforward
Compute positional encoding. Args: x (torch.Tensor): Input tensor (batch, time, `*`). Returns: torch.Tensor: E
OSUM-EChat/tts/cosyvoice/transformer/embedding.py:133
Methodforward
Just return zero vector for interface compatibility
OSUM-EChat/tts/cosyvoice/transformer/embedding.py:187
Methodforward
Add positional encoding. Args: x (torch.Tensor): Input tensor (batch, time, `*`). Returns: torch.Tensor: Enc
OSUM-EChat/tts/cosyvoice/transformer/embedding.py:256
Methodforward
Compute encoded features. Args: x (torch.Tensor): (#batch, time, size) mask (torch.Tensor): Mask tensor for the input
OSUM-EChat/tts/cosyvoice/transformer/encoder_layer.py:58
← previousnext →1,301–1,400 of 1,852, ranked by callers