MCPcopy Create free account

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

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

Method__init__
(self, d_model: int, dropout_rate: float, max_len: int = 1500)
OSUM-EChat/tts/cosyvoice/transformer/embedding.py:154
Method__init__
(self, d_model: int, dropout_rate: float, max_len: int = 448)
OSUM-EChat/tts/cosyvoice/transformer/embedding.py:171
Method__init__
(self, d_model: int, dropout_rate: float)
OSUM-EChat/tts/cosyvoice/transformer/embedding.py:182
Method__init__
Construct an PositionalEncoding object.
OSUM-EChat/tts/cosyvoice/transformer/embedding.py:215
Method__init__
Construct an EncoderLayer object.
OSUM-EChat/tts/cosyvoice/transformer/encoder_layer.py:40
Method__init__
(self, token_path, skip_special_tokens=True)
OSUM-EChat/tts/cosyvoice/tokenizer/tokenizer.py:242
Method__init__
Create a ContextState. Args: id: The node id, only for visualization now. A node is in [0, graph.num_nodes).
OSUM-EChat/wenet/utils/context_graph.py:63
Method__init__
Initialize a ContextGraph with the given ``context_score``. A root node will be created (**NOTE:** the token of root is hardcoded to -1).
OSUM-EChat/wenet/utils/context_graph.py:115
Method__init__
(self, global_step: int = 0, device: torch.device = torch.device("cpu"))
OSUM-EChat/wenet/utils/executor.py:34
Method__init__
(self, optimizer, *, warmup_steps=None, wa
OSUM-EChat/wenet/utils/scheduler.py:89
Method__init__
(self, optimizer, *, constant_steps=None,
OSUM-EChat/wenet/utils/scheduler.py:152
Method__init__
( self, optimizer, *, warmup_steps=None, warmup_ratio=None, ho
OSUM-EChat/wenet/utils/scheduler.py:217
Method__init__
( self, optimizer, *, warmup_steps=None, warmup_ratio=None, co
OSUM-EChat/wenet/utils/scheduler.py:300
Method__init__
(self, optimizer, *, max_steps, min_lr=1e-
OSUM-EChat/wenet/utils/scheduler.py:451
Method__init__
(self, optimizer, *, max_steps, min_lr=0,
OSUM-EChat/wenet/utils/scheduler.py:478
Method__init__
(self, optimizer, *, max_steps, min_lr=0,
OSUM-EChat/wenet/utils/scheduler.py:504
Method__init__
(self, optimizer, *, d_model, warmup_steps
OSUM-EChat/wenet/utils/scheduler.py:565
Method__init__
From Nemo: Implementation of the Noam Hold Annealing policy from the SqueezeFormer paper. Unlike NoamAnnealing, the
OSUM-EChat/wenet/utils/scheduler.py:631
Method__init__
(self, step=0.0)
OSUM-EChat/wenet/utils/common.py:343
Method__init__
(self, source, f, *args, **kw)
OSUM-EChat/wenet/dataset/dataset.py:29
Method__init__
(self, shuffle=True, partition=True, split_num=1,multi_num=1)
OSUM-EChat/wenet/dataset/dataset.py:54
Method__init__
(self, lists, shuffle=True, partition=True, split_num=1)
OSUM-EChat/wenet/dataset/dataset.py:163
Method__init__
(self,s2t_dataset,t2s_dataset,s2s_dataset,t2t_dataset, weight_num:List[int])
OSUM-EChat/wenet/dataset/dataset.py:183
Method__init__
(self, encoder, encoder_output_dim, llm_path,
OSUM-EChat/wenet/osum_echat/llmasr_model_instruct_version.py:25
Method__init__
Construct an Conv1dSubsampling object.
OSUM-EChat/wenet/osum_echat/downsampler.py:49
Method__init__
Construct an Conv1dSubsampling object.
OSUM-EChat/wenet/osum_echat/downsampler.py:90
Method__init__
Construct an Conv1dSubsampling object.
OSUM-EChat/wenet/osum_echat/downsampler.py:126
Method__init__
( self, enc_out_dim: int = 512, llm_embed_dim: int = 4096, kernel_size: int =
OSUM-EChat/wenet/osum_echat/downsampler.py:154
Method__init__
( self, vocab_size: int, encoder: TransformerEncoder, decoder: TransformerDeco
OSUM-EChat/wenet/whisper/whisper_with_clap.py:32
Method__init__
( self, vocab_size: int, encoder: TransformerEncoder, decoder: TransformerDeco
OSUM-EChat/wenet/whisper/whisper.py:30
Method__init__
Construct a PositionwiseFeedForward object.
OSUM-EChat/wenet/transformer/positionwise_feed_forward.py:33
Method__init__
Construct a PositionwiseFeedForward object.
OSUM-EChat/wenet/transformer/positionwise_feed_forward.py:128
Method__init__
( self, vocab_size: int, encoder_output_size: int, attention_heads: int = 4,
OSUM-EChat/wenet/transformer/decoder.py:334
Method__init__
Construct an DecoderLayer object.
OSUM-EChat/wenet/transformer/decoder_layer.py:44
Method__init__
( self, vocab_size: int, encoder: BaseEncoder, decoder: TransformerDecoder,
OSUM-EChat/wenet/transformer/asr_model.py:38
Method__init__
(self, idim: int, odim: int, dropout_rate: float, pos_enc_class: torch.nn.Module)
OSUM-EChat/wenet/transformer/subsampling.py:41
Method__init__
Construct an linear object.
OSUM-EChat/wenet/transformer/subsampling.py:81
Method__init__
Construct an Conv1dSubsampling2 object.
OSUM-EChat/wenet/transformer/subsampling.py:130
Method__init__
Construct an Conv2dSubsampling4 object.
OSUM-EChat/wenet/transformer/subsampling.py:188
Method__init__
Construct an Conv2dSubsampling6 object.
OSUM-EChat/wenet/transformer/subsampling.py:244
Method__init__
Construct an Conv2dSubsampling8 object.
OSUM-EChat/wenet/transformer/subsampling.py:297
Method__init__
(self, idim: int, odim: int, dropout_rate: float,
OSUM-EChat/wenet/transformer/subsampling.py:345
Method__init__
Construct an LabelSmoothingLoss object.
OSUM-EChat/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-EChat/wenet/transformer/ctc.py:24
Method__init__
Args: mean (torch.Tensor): mean stats istd (torch.Tensor): inverse std, std which is 1.0 / std
OSUM-EChat/wenet/transformer/cmvn.py:20
Method__init__
( self, dim: int, eps: float = 1e-6, add_unit_offset: bool = True, )
OSUM-EChat/wenet/transformer/norm.py:8
Method__init__
Construct an RelPositionMultiHeadedAttention object.
OSUM-EChat/wenet/transformer/attention.py:316
Method__init__
(self, n_head: int, n_feat: int, dropout_rate: float,
OSUM-EChat/wenet/transformer/attention.py:443
Method__init__
(self, n_head: int, n_feat: int, dropout_rate: float,
OSUM-EChat/wenet/transformer/attention.py:527
Method__init__
(self, n_head: int, n_feat: int, dropout_rate: float,
OSUM-EChat/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-EChat/wenet/transformer/convolution.py:28
Method__init__
Construct TransformerEncoder See Encoder for the meaning of each parameter.
OSUM-EChat/wenet/transformer/encoder.py:372
Method__init__
Construct TransformerEncoder See Encoder for the meaning of each parameter.
OSUM-EChat/wenet/transformer/encoder.py:445
Method__init__
Construct ConformerEncoder Args: input_size to use_dynamic_chunk, see in BaseEncoder positionwise_conv_kernel_size (i
OSUM-EChat/wenet/transformer/encoder.py:580
Method__init__
Args: tokens: decode token list score: the total decode score of this result confidence: the total confid
OSUM-EChat/wenet/transformer/search.py:32
Method__init__
(self, s: float = float('-inf'), ns: float = float('-inf'),
OSUM-EChat/wenet/transformer/search.py:65
Method__init__
Initialize class.
OSUM-EChat/wenet/transformer/embedding.py:130
Method__init__
(self, d_model: int, dropout_rate: float, max_len: int = 30000)
OSUM-EChat/wenet/transformer/embedding.py:154
Method__init__
(self, d_model: int, dropout_rate: float, max_len: int = 448)
OSUM-EChat/wenet/transformer/embedding.py:171
Method__init__
(self, d_model: int, dropout_rate: float)
OSUM-EChat/wenet/transformer/embedding.py:182
Method__init__
(self, d_model: int, head_dim: int, dropout_rate: float,
OSUM-EChat/wenet/transformer/embedding.py:203
Method__init__
Construct an EncoderLayer object.
OSUM-EChat/wenet/transformer/encoder_layer.py:44
Method__init__
(self, model: Union[str, PathLike], *args, **kwargs)
OSUM-EChat/wenet/text/hugging_face_tokenizer.py:8
Method__init__
( self, multilingual: bool, num_languages: int = 99, language: Optional[str] =
OSUM-EChat/wenet/text/whisper_tokenizer.py:10
Method__init__
( self, symbol_table: Union[str, PathLike, Dict], non_lang_syms: Optional[Union[str, P
OSUM-EChat/wenet/text/char_tokenizer.py:11
Method__init__
( self, bpe_model: Union[PathLike, str], symbol_table: Union[str, PathLike, Dict],
OSUM-EChat/wenet/text/bpe_tokenizer.py:9
Method__init__
(self, feat_dim, resample_rate)
OSUM/tools/compute_shard_cmvn_stats.py:37
Method__init__
(self, file_list)
OSUM/tools/compute_shard_cmvn_stats.py:80
Method__init__
(self, feat_dim, resample_rate)
OSUM/tools/compute_cmvn_stats.py:20
Method__init__
(self, data_file)
OSUM/tools/compute_cmvn_stats.py:66
Method__init__
(self)
OSUM/tools/compute-cer.py:93
Method__init__
(self, file_list, flag)
OSUM/tools/extract_shard_data.py:33
Method__init__
(self)
OSUM/tools/compute-wer.py:87
Method__init__
Create a ContextState. Args: id: The node id, only for visualization now. A node is in [0, graph.num_nodes).
OSUM/wenet/utils/context_graph.py:63
Method__init__
Initialize a ContextGraph with the given ``context_score``. A root node will be created (**NOTE:** the token of root is hardcoded to -1).
OSUM/wenet/utils/context_graph.py:115
Method__init__
(self, global_step: int = 0, device: torch.device = torch.device("cpu"))
OSUM/wenet/utils/executor.py:34
Method__init__
(self, optimizer, *, warmup_steps=None, wa
OSUM/wenet/utils/scheduler.py:89
Method__init__
(self, optimizer, *, constant_steps=None,
OSUM/wenet/utils/scheduler.py:152
Method__init__
( self, optimizer, *, warmup_steps=None, warmup_ratio=None, ho
OSUM/wenet/utils/scheduler.py:217
Method__init__
( self, optimizer, *, warmup_steps=None, warmup_ratio=None, co
OSUM/wenet/utils/scheduler.py:300
Method__init__
(self, optimizer, *, max_steps, min_lr=1e-
OSUM/wenet/utils/scheduler.py:451
Method__init__
(self, optimizer, *, max_steps, min_lr=0,
OSUM/wenet/utils/scheduler.py:478
Method__init__
(self, optimizer, *, max_steps, min_lr=0,
OSUM/wenet/utils/scheduler.py:504
Method__init__
(self, optimizer, *, d_model, warmup_steps
OSUM/wenet/utils/scheduler.py:565
Method__init__
From Nemo: Implementation of the Noam Hold Annealing policy from the SqueezeFormer paper. Unlike NoamAnnealing, the
OSUM/wenet/utils/scheduler.py:631
Method__init__
(self, step=0.0)
OSUM/wenet/utils/common.py:343
Method__init__
( self, size: int, kernel_size: int, dropout_rate: float, use_linear_a
OSUM/wenet/branchformer/cgmlp.py:33
Method__init__
(self, p: List[float], modules=None)
OSUM/wenet/branchformer/encoder.py:168
Method__init__
( self, size: int, attn: Optional[torch.nn.Module], cgmlp: Optional[torch.nn.M
OSUM/wenet/branchformer/encoder_layer.py:41
Method__init__
(self, source, f, *args, **kw)
OSUM/wenet/dataset/dataset.py:28
Method__init__
(self, shuffle=True, partition=True, split_num=1,multi_num=1)
OSUM/wenet/dataset/dataset.py:53
Method__init__
(self, lists, shuffle=True, partition=True, split_num=1)
OSUM/wenet/dataset/dataset.py:133
Method__init__
(self, dataset: IterDataPipe, fn: Callable, input_col=None,
OSUM/wenet/dataset/datapipes.py:37
Method__init__
( self, dataset: IterDataPipe, elem_length_func, bucket_boundaries: List[int],
OSUM/wenet/dataset/datapipes.py:66
Method__init__
( self, dataset: IterDataPipe, key_func, window_size_func, wrapper_cla
OSUM/wenet/dataset/datapipes.py:105
Method__init__
(self, dataset: IterDataPipe, window_class, wrapper_class)
OSUM/wenet/dataset/datapipes.py:188
Method__init__
( self, dataset: IterDataPipe, buffer_size: int = 500, )
OSUM/wenet/dataset/datapipes.py:219
Method__init__
(self, dataset: IterDataPipe, count: int = -1)
OSUM/wenet/dataset/datapipes.py:262
Method__init__
(self, dataset: IterDataPipe, partition: bool = False)
OSUM/wenet/dataset/datapipes.py:282
Method__init__
( self, source_datapipes: List[IterDataPipe], weights: Optional[List[float]] = None,
OSUM/wenet/dataset/datapipes.py:309
← previousnext →1,001–1,100 of 1,852, ranked by callers