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
__init__
(self, filenames, mode='r')
OSUM/wenet/dataset/datapipes.py:351
Method
__init__
(self, dataset: IterDataPipe)
OSUM/wenet/dataset/datapipes.py:370
Method
__init__
(self, filenames: str, prefetch: int = 500, partition: bool
OSUM/wenet/dataset/datapipes.py:432
Method
__init__
(self, filenames: str, prefetch: int = 500, partition: bool
OSUM/wenet/dataset/datapipes.py:453
Method
__init__
(self)
OSUM/wenet/transducer/predictor.py:21
Method
__init__
(self, voca_size: int, embed_size: int, output_size: int,
OSUM/wenet/transducer/predictor.py:218
Method
__init__
(self, voca_size: int, embed_size: int, output_size: int,
OSUM/wenet/transducer/predictor.py:381
Method
__init__
(self, vocab_size: int, enc_output_size: int, pred_output_s
OSUM/wenet/transducer/joint.py:10
Method
__init__
( self, vocab_size: int, blank: int, encoder: nn.Module, predictor: Pr
OSUM/wenet/transducer/transducer.py:22
Method
__init__
( self, hyp: List[torch.Tensor], score, cache: List[torch.Tensor], )
OSUM/wenet/transducer/search/prefix_beam_search.py:11
Method
__init__
(self, encoder, predictor, joint, ctc, blank)
OSUM/wenet/transducer/search/prefix_beam_search.py:24
Method
__init__
( self, input_size: int, output_size: int = 256, attention_heads: int = 4,
OSUM/wenet/e_branchformer/encoder.py:36
Method
__init__
( self, size: int, attn: torch.nn.Module, cgmlp: torch.nn.Module, feed
OSUM/wenet/e_branchformer/encoder_layer.py:39
Method
__init__
Construct an PositionwiseFeedForward object.
OSUM/wenet/paraformer/layers.py:104
Method
__init__
Resize input in_size to size
OSUM/wenet/paraformer/layers.py:127
Method
__init__
( self, input_size: int, output_size: int = 256, attention_heads: int = 4,
OSUM/wenet/paraformer/layers.py:184
Method
__init__
(self, hidden: int, pos_clss: torch.nn.Module)
OSUM/wenet/paraformer/layers.py:305
Method
__init__
(self, size: int, self_attn: Optional[torch.nn.Module], src
OSUM/wenet/paraformer/layers.py:316
Method
__init__
( self, vocab_size: int, encoder_output_size: int, attention_heads: int = 4,
OSUM/wenet/paraformer/layers.py:383
Method
__init__
(self, idim: int, odim: int, dropout_rate: float, pos_enc_class: torch.nn.Module)
OSUM/wenet/paraformer/subsampling.py:10
Method
__init__
Construct an MultiHeadedAttention object.
OSUM/wenet/paraformer/attention.py:16
Method
__init__
(self, n_head, in_feat, n_feat, dropout_ra
OSUM/wenet/paraformer/attention.py:163
Method
__init__
(self, vocab_size: int, encoder: BaseEncoder, decoder: Tran
OSUM/wenet/paraformer/paraformer.py:112
Method
__init__
(self, normalize_length=False)
OSUM/wenet/paraformer/cif.py:211
Method
__init__
(self, depth: int, d_model: int, dropout_rate: float = 0.1,
OSUM/wenet/paraformer/embedding.py:8
Method
__init__
( self, n_kv_head: int, head_dim: int, hidden_size: int, attention_hea
OSUM/wenet/LLM/decoder.py:17
Method
__init__
( self, vocab_size: int, decoder: DecoderOnly, special_tokens: dict, t
OSUM/wenet/LLM/causallm_model.py:11
Method
__init__
(self, model_dir: str, resample_rate: int = 16000)
OSUM/wenet/cli/paraformer_model.py:16
Method
__init__
(self)
OSUM/wenet/cli/hub.py:83
Method
__init__
(self, model_dir: str, gpu: int = -1, beam: int = 5,
OSUM/wenet/cli/model.py:33
Method
__init__
( self, vocab_size: int, encoder: TransformerEncoder, decoder: TransformerDeco
OSUM/wenet/whisper/whisper_with_clap.py:32
Method
__init__
( self, vocab_size: int, encoder: TransformerEncoder, decoder: TransformerDeco
OSUM/wenet/whisper/whisper.py:30
Method
__init__
( self, vocab_size: int, encoder: TransformerEncoder, decoder:
OSUM/wenet/k2/model.py:29
Method
__init__
Wrap encoder to train using W2V-BERT's style Described in: https://arxiv.org/pdf/2108.06209v2.pdf Args: encoder
OSUM/wenet/ssl/w2vbert/w2vbert_model.py:18
Method
__init__
(self, features_dim: int = 256, num_codebooks: int = 2, num
OSUM/wenet/ssl/wav2vec2/quantizer.py:28
Method
__init__
Wrap encoder to train using wav2vec2's style Args: encoder: wenet's encoder, only support conformer and tra
OSUM/wenet/ssl/wav2vec2/wav2vec2_model.py:107
Method
__init__
( self, encoder: torch.nn.Module, num_mel_bins: int = 80, embedding_dim: int =
OSUM/wenet/ssl/bestrq/bestrq_model.py:59
Method
__init__
Construct a PositionwiseFeedForward object.
OSUM/wenet/squeezeformer/positionwise_feed_forward.py:34
Method
__init__
(self, idim: int, odim: int, pos_enc_class: torch.nn.Module
OSUM/wenet/squeezeformer/subsampling.py:39
Method
__init__
(self, kernel_size: int = 5, stride: int = 2, encoder_dim:
OSUM/wenet/squeezeformer/subsampling.py:182
Method
__init__
(self, channel: int, out_dim: int, kernel_size: int = 1,
OSUM/wenet/squeezeformer/subsampling.py:254
Method
__init__
Construct an RelPositionMultiHeadedAttention object.
OSUM/wenet/squeezeformer/attention.py:35
Method
__init__
Construct an ConvolutionModule object. Args: channels (int): The number of channels of conv layers. kernel_size (int):
OSUM/wenet/squeezeformer/convolution.py:27
Method
__init__
Construct SqueezeformerEncoder Args: input_size to use_dynamic_chunk, see in Transformer BaseEncoder. encoder_dim (in
OSUM/wenet/squeezeformer/encoder.py:37
Method
__init__
( self, in_channels: int, out_channels: int, kernel_size: _siz
OSUM/wenet/squeezeformer/conv2d.py:25
Method
__init__
( self, size: int, self_attn: torch.nn.Module, feed_forward1: Optional[nn.Modu
OSUM/wenet/squeezeformer/encoder_layer.py:40
Method
__init__
Construct an Conv2dSubsampling4 object.
OSUM/wenet/efficient_conformer/subsampling.py:34
Method
__init__
Construct an RelPositionMultiHeadedAttention object.
OSUM/wenet/efficient_conformer/attention.py:39
Method
__init__
Construct an ConvolutionModule object. Args: channels (int): The number of channels of conv layers. kernel_size (int):
OSUM/wenet/efficient_conformer/convolution.py:26
Method
__init__
Construct Efficient Conformer Encoder Args: input_size to use_dynamic_chunk, see in BaseEncoder macaron_style (bool):
OSUM/wenet/efficient_conformer/encoder.py:44
Method
__init__
Construct an EncoderLayer object.
OSUM/wenet/efficient_conformer/encoder_layer.py:44
Method
__init__
Construct a PositionwiseFeedForward object.
OSUM/wenet/transformer/positionwise_feed_forward.py:33
Method
__init__
Construct a PositionwiseFeedForward object.
OSUM/wenet/transformer/positionwise_feed_forward.py:128
Method
__init__
( self, vocab_size: int, encoder_output_size: int, attention_heads: int = 4,
OSUM/wenet/transformer/decoder.py:334
Method
__init__
Construct an DecoderLayer object.
OSUM/wenet/transformer/decoder_layer.py:44
Method
__init__
( self, vocab_size: int, encoder: BaseEncoder, decoder: TransformerDecoder,
OSUM/wenet/transformer/asr_model.py:38
Method
__init__
(self, idim: int, odim: int, dropout_rate: float, pos_enc_class: torch.nn.Module)
OSUM/wenet/transformer/subsampling.py:41
Method
__init__
Construct an linear object.
OSUM/wenet/transformer/subsampling.py:81
Method
__init__
Construct an Conv1dSubsampling2 object.
OSUM/wenet/transformer/subsampling.py:130
Method
__init__
Construct an Conv2dSubsampling4 object.
OSUM/wenet/transformer/subsampling.py:185
Method
__init__
Construct an Conv2dSubsampling6 object.
OSUM/wenet/transformer/subsampling.py:241
Method
__init__
Construct an Conv2dSubsampling8 object.
OSUM/wenet/transformer/subsampling.py:294
Method
__init__
(self, idim: int, odim: int, dropout_rate: float,
OSUM/wenet/transformer/subsampling.py:342
Method
__init__
Construct an LabelSmoothingLoss object.
OSUM/wenet/transformer/label_smoothing_loss.py:54
Method
__init__
Construct CTC module Args: odim: dimension of outputs encoder_output_size: number of encoder projection units
OSUM/wenet/transformer/ctc.py:25
Method
__init__
Args: mean (torch.Tensor): mean stats istd (torch.Tensor): inverse std, std which is 1.0 / std
OSUM/wenet/transformer/cmvn.py:20
Method
__init__
( self, dim: int, eps: float = 1e-6, add_unit_offset: bool = True, )
OSUM/wenet/transformer/norm.py:8
Method
__init__
Construct an RelPositionMultiHeadedAttention object.
OSUM/wenet/transformer/attention.py:316
Method
__init__
(self, n_head: int, n_feat: int, dropout_rate: float,
OSUM/wenet/transformer/attention.py:443
Method
__init__
(self, n_head: int, n_feat: int, dropout_rate: float,
OSUM/wenet/transformer/attention.py:527
Method
__init__
(self, n_head: int, n_feat: int, dropout_rate: float,
OSUM/wenet/transformer/attention.py:601
Method
__init__
Construct an ConvolutionModule object. Args: channels (int): The number of channels of conv layers. kernel_size (int):
OSUM/wenet/transformer/convolution.py:28
Method
__init__
Construct TransformerEncoder See Encoder for the meaning of each parameter.
OSUM/wenet/transformer/encoder.py:370
Method
__init__
Construct ConformerEncoder Args: input_size to use_dynamic_chunk, see in BaseEncoder positionwise_conv_kernel_size (i
OSUM/wenet/transformer/encoder.py:443
Method
__init__
Args: tokens: decode token list score: the total decode score of this result confidence: the total confid
OSUM/wenet/transformer/search.py:32
Method
__init__
(self, s: float = float('-inf'), ns: float = float('-inf'),
OSUM/wenet/transformer/search.py:65
Method
__init__
Initialize class.
OSUM/wenet/transformer/embedding.py:130
Method
__init__
(self, d_model: int, dropout_rate: float, max_len: int = 1500)
OSUM/wenet/transformer/embedding.py:154
Method
__init__
(self, d_model: int, dropout_rate: float, max_len: int = 448)
OSUM/wenet/transformer/embedding.py:171
Method
__init__
(self, d_model: int, dropout_rate: float)
OSUM/wenet/transformer/embedding.py:182
Method
__init__
(self, d_model: int, head_dim: int, dropout_rate: float,
OSUM/wenet/transformer/embedding.py:203
Method
__init__
Construct an EncoderLayer object.
OSUM/wenet/transformer/encoder_layer.py:44
Method
__init__
( self, vocab_size: int, encoder: TransformerEncoder, decoder: TransformerDeco
OSUM/wenet/ctl_model/asr_model_ctl.py:37
Method
__init__
Construct DualTransformerEncoder Support both the full context mode and the streaming mode separately
OSUM/wenet/ctl_model/encoder.py:29
Method
__init__
( self, r: int, lora_alpha: int, lora_dropout: float, merge_weights: b
OSUM/wenet/finetune/lora/layers.py:18
Method
__init__
(self, num_embeddings: int, embedding_dim: int, r: int = 0,
OSUM/wenet/finetune/lora/layers.py:42
Method
__init__
(self, in_features: int, out_features: int, r: int = 0,
OSUM/wenet/finetune/lora/layers.py:176
Method
__init__
(self, conv_module, in_channels, out_channels,
OSUM/wenet/finetune/lora/layers.py:267
Method
__init__
(self, *args, **kwargs)
OSUM/wenet/finetune/lora/layers.py:336
Method
__init__
(self, *args, **kwargs)
OSUM/wenet/finetune/lora/layers.py:342
Method
__init__
(self, *args, **kwargs)
OSUM/wenet/finetune/lora/layers.py:349
Method
__init__
(self, module, chunk_size=8, run_on_bpu=False)
OSUM/wenet/bin/export_onnx_bpu.py:69
Method
__init__
(self, channels)
OSUM/wenet/bin/export_onnx_bpu.py:131
Method
__init__
(self, module, is_pointwise_conv=False)
OSUM/wenet/bin/export_onnx_bpu.py:165
Method
__init__
(self, module)
OSUM/wenet/bin/export_onnx_bpu.py:216
Method
__init__
(self, module)
OSUM/wenet/bin/export_onnx_bpu.py:244
Method
__init__
(self, module, chunk_size, left_chunks)
OSUM/wenet/bin/export_onnx_bpu.py:324
Method
__init__
(self, module)
OSUM/wenet/bin/export_onnx_bpu.py:429
Method
__init__
(self, module, chunk_size, left_chunks, ln_run_on_bpu=False)
OSUM/wenet/bin/export_onnx_bpu.py:558
Method
__init__
(self, module, chunk_size, left_chunks, ln_run_on_bpu=False)
OSUM/wenet/bin/export_onnx_bpu.py:674
← previous
next →
1,101–1,200 of 1,852, ranked by callers