MCPcopy Create free account

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

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

↓ 1 callersMethodurl_opener
(self, data)
OSUM/tools/compute_shard_cmvn_stats.py:96
↓ 1 callersMethodurl_opener
(self, data)
OSUM/tools/extract_shard_data.py:50
↓ 1 callersFunctionusage
()
OSUM/tools/compute-cer.py:294
↓ 1 callersFunctionusage
()
OSUM/tools/compute-wer.py:287
↓ 1 callersMethodvc
(self, source_speech_token, flow_prompt_speech_token, prompt_speech_feat, flow_embedding, stream=False, speed=
OSUM-EChat/tts/cosyvoice/cli/model.py:286
↓ 1 callersMethodvocab_size
(self)
OSUM-EChat/wenet/text/char_tokenizer.py:75
↓ 1 callersMethodvocab_size
(self)
OSUM/wenet/text/char_tokenizer.py:75
↓ 1 callersFunctionwenet_fsdp_wrap_policy
(mode)
OSUM-EChat/wenet/utils/fsdp_utils.py:39
↓ 1 callersFunctionwenet_fsdp_wrap_policy
(mode)
OSUM/wenet/utils/fsdp_utils.py:39
↓ 1 callersFunctionwrap_cuda_model
(args, model)
OSUM-EChat/tts/cosyvoice/utils/train_utils.py:94
↓ 1 callersFunctionwrap_cuda_model
(args, model, configs=None)
OSUM-EChat/wenet/utils/train_utils.py:427
↓ 1 callersFunctionwrap_cuda_model
(args, model, configs=None)
OSUM/wenet/utils/train_utils.py:421
↓ 1 callersFunctionwrite_dict_to_scp
(dic: dict, scp_file_path: str)
OSUM-EChat/tmp.py:7
↓ 1 callersFunctionwrite_mat
write_mat(f, m, key='') Write a binary kaldi matrix to filename or stream. Supports 32bit and 64bit floats. Arguments: file_or_fd : filename o
OSUM/wenet/dataset/kaldi_io.py:558
↓ 1 callersFunctionws_rec
(data, ws_uri)
OSUM/tools/websocket/performance-ws.py:35
Method__call__
(self, input_ids, scores)
OSUM-EChat/patches/custom_speech_ngram_blocking.py:33
Method__call__
在每个时间步处理logits,对不符合条件的token设置极小的概率。 参数: input_ids (torch.Tensor): 当前输入的token ID序列 logits (torch.Tensor): 当前时间步的logit
OSUM-EChat/patches/custom_speech_ngram_blocking.py:96
Method__call__
(self, input_ids, scores)
OSUM-EChat/patches/custom_speech_repetition_penalty.py:12
Method__call__
(self, input_ids, scores)
OSUM-EChat/patches/cumstom_stop_criteria.py:9
Method__call__
(self, input_ids, scores)
OSUM-EChat/patches/cumstom_stop_criteria.py:20
Method__call__
(self, input_ids, scores)
OSUM-EChat/patches/cumstom_stop_criteria.py:34
Method__call__
(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
OSUM-EChat/patches/cumstom_stop_criteria.py:57
Method__call__
(self, input_ids, scores, **kwargs)
OSUM-EChat/patches/cumstom_stop_criteria.py:73
Method__call__
(self, input_ids, scores, **kwargs)
OSUM-EChat/patches/cumstom_stop_criteria.py:80
Method__call__
(self, batch)
OSUM/tools/compute_shard_cmvn_stats.py:41
Method__call__
(self, batch)
OSUM/tools/compute_cmvn_stats.py:25
Method__getitem__
(self, idx)
OSUM/tools/compute_cmvn_stats.py:76
Method__getstate__
(self)
OSUM-EChat/wenet/text/hugging_face_tokenizer.py:16
Method__getstate__
(self)
OSUM-EChat/wenet/text/whisper_tokenizer.py:36
Method__getstate__
(self)
OSUM/wenet/text/hugging_face_tokenizer.py:16
Method__getstate__
(self)
OSUM/wenet/text/whisper_tokenizer.py:36
Method__init__
speech_token_num: int, speech token 的数量(token_id in [0, speech_token_num) 视为 speech token) repeat_times: int, 普通 speech token 的最大允许连续
OSUM-EChat/patches/custom_speech_ngram_blocking.py:5
Method__init__
初始化OSUM_chat_LogitsProcessor。 参数: allowed_tokens (list): 允许出现在当前时间步的token的ID列表 sequence_to_match (list): 用来判断当前时间步允许
OSUM-EChat/patches/custom_speech_ngram_blocking.py:78
Method__init__
(self, *args, **kwargs)
OSUM-EChat/patches/modelling_fm_infer_gpu.py:10
Method__init__
(self, speech_token_num, penalty=1.2)
OSUM-EChat/patches/custom_speech_repetition_penalty.py:4
Method__init__
(self, config: Qwen2Config, layer_idx: int)
OSUM-EChat/patches/modelling_qwen2_infer_gpu.py:136
Method__init__
(self, config)
OSUM-EChat/patches/modelling_qwen2_infer_gpu.py:217
Method__init__
(self, text_token_num: int)
OSUM-EChat/patches/cumstom_stop_criteria.py:6
Method__init__
(self, text_token_num: int)
OSUM-EChat/patches/cumstom_stop_criteria.py:17
Method__init__
(self, text_token_num: int, text_eos_id: int)
OSUM-EChat/patches/cumstom_stop_criteria.py:30
Method__init__
(self, text_eos_id: int, speech_eos_id: int)
OSUM-EChat/patches/cumstom_stop_criteria.py:53
Method__init__
(self, max_tokens)
OSUM-EChat/patches/cumstom_stop_criteria.py:66
Method__init__
(self)
OSUM-EChat/patches/cumstom_stop_criteria.py:77
Method__init__
(self, source, f, *args, **kw)
OSUM-EChat/common_utils/fake_data/combine/dataset/dataset_no_wav.py:23
Method__init__
(self, shuffle=True, partition=True)
OSUM-EChat/common_utils/fake_data/combine/dataset/dataset_no_wav.py:47
Method__init__
(self, lists, shuffle=True, partition=True)
OSUM-EChat/common_utils/fake_data/combine/dataset/dataset_no_wav.py:106
Method__init__
( self, channels: int, sampling_ratios: Tuple, out_channels: i
OSUM-EChat/tts/cosyvoice/flow/length_regulator.py:22
Method__init__
(self, dim: int, dim_out: int)
OSUM-EChat/tts/cosyvoice/flow/decoder.py:36
Method__init__
(self, dim: int, dim_out: int, time_emb_dim: int, groups: int = 8)
OSUM-EChat/tts/cosyvoice/flow/decoder.py:52
Method__init__
( self, in_channels: int, out_channels: int, kernel_size: int, stride:
OSUM-EChat/tts/cosyvoice/flow/decoder.py:59
Method__init__
This decoder requires an input with the same shape of the target. So, if your text content is shorter or longer than the outputs, ple
OSUM-EChat/tts/cosyvoice/flow/decoder.py:88
Method__init__
(self, input_size: int = 512, output_size: int = 80, spk_em
OSUM-EChat/tts/cosyvoice/flow/flow.py:156
Method__init__
(self, in_channels, cfm_params, n_spks=1, spk_emb_dim=64, estimator: torch.nn.Module = None)
OSUM-EChat/tts/cosyvoice/flow/flow_matching.py:188
Method__init__
(self, gan: bool = False)
OSUM-EChat/tts/cosyvoice/utils/executor.py:28
Method__init__
(self, optimizer, *, warmup_steps=None, wa
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:84
Method__init__
(self, optimizer, *, constant_steps=None,
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:147
Method__init__
( self, optimizer, *, warmup_steps=None, warmup_ratio=None, ho
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:212
Method__init__
( self, optimizer, *, warmup_steps=None, warmup_ratio=None, co
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:295
Method__init__
(self, optimizer, *, max_steps, min_lr=1e-
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:446
Method__init__
(self, optimizer, *, max_steps, min_lr=0,
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:473
Method__init__
(self, optimizer, *, max_steps, min_lr=0,
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:499
Method__init__
(self, optimizer, *, d_model, warmup_steps
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:560
Method__init__
From Nemo: Implementation of the Noam Hold Annealing policy from the SqueezeFormer paper. Unlike NoamAnnealing, the
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:625
Method__init__
( self, optimizer: torch.optim.Optimizer, )
OSUM-EChat/tts/cosyvoice/utils/scheduler.py:726
Method__init__
( self, text_encoder_input_size: int, llm_input_size: int, llm
OSUM-EChat/tts/cosyvoice/llm/llm.py:27
Method__init__
(self, pretrain_path)
OSUM-EChat/tts/cosyvoice/llm/llm.py:228
Method__init__
(self, source, f, *args, **kw)
OSUM-EChat/tts/cosyvoice/dataset/dataset.py:29
Method__init__
(self, shuffle=True, partition=True)
OSUM-EChat/tts/cosyvoice/dataset/dataset.py:54
Method__init__
(self, lists, shuffle=True, partition=True)
OSUM-EChat/tts/cosyvoice/dataset/dataset.py:110
Method__init__
( self, mpd: nn.Module, mrd: nn.Module )
OSUM-EChat/tts/cosyvoice/hifigan/discriminator.py:10
Method__init__
Multi-Resolution Discriminator module adapted from https://github.com/descriptinc/descript-audio-codec. Additionally, it allows incor
OSUM-EChat/tts/cosyvoice/hifigan/discriminator.py:33
Method__init__
(self, generator, discriminator, mel_spec_transform, multi_mel_spectral_recon_loss_weight=45,
OSUM-EChat/tts/cosyvoice/hifigan/hifigan.py:10
Method__init__
(self, num_class: int = 1, in_channels: int = 80, cond_chan
OSUM-EChat/tts/cosyvoice/hifigan/f0_predictor.py:21
Method__init__
( self, channels: int = 512, kernel_size: int = 3, dilations: List[int] = [1,
OSUM-EChat/tts/cosyvoice/hifigan/generator.py:46
Method__init__
(self, sampling_rate, upsample_scale, harmonic_num=0, sine_amp=0.1, add_noise_std=0.003, voic
OSUM-EChat/tts/cosyvoice/hifigan/generator.py:190
Method__init__
( self, in_channels: int = 80, base_channels: int = 512, nb_ha
OSUM-EChat/tts/cosyvoice/hifigan/generator.py:229
Method__init__
(self, get_tokenizer: Callable, feat_extractor: Callable, c
OSUM-EChat/tts/cosyvoice/cli/frontend.py:46
Method__init__
(self, model_dir,gpu_id=0, load_jit=False, load_trt=False, fp16=False)
OSUM-EChat/tts/cosyvoice/cli/cosyvoice.py:29
Method__init__
(self, model_dir, load_jit=False, load_trt=False, fp16=False)
OSUM-EChat/tts/cosyvoice/cli/cosyvoice.py:153
Method__init__
(self, llm: torch.nn.Module, flow: torch.nn.Module, hift: t
OSUM-EChat/tts/cosyvoice/cli/model.py:34
Method__init__
(self, llm: torch.nn.Module, flow: torch.nn.Module, hift: t
OSUM-EChat/tts/cosyvoice/cli/model.py:343
Method__init__
Construct a PositionwiseFeedForward object.
OSUM-EChat/tts/cosyvoice/transformer/positionwise_feed_forward.py:33
Method__init__
( self, vocab_size: int, encoder_output_size: int, attention_heads: int = 4,
OSUM-EChat/tts/cosyvoice/transformer/decoder.py:276
Method__init__
Construct an DecoderLayer object.
OSUM-EChat/tts/cosyvoice/transformer/decoder_layer.py:41
Method__init__
(self, idim: int, odim: int, dropout_rate: float, pos_enc_class: torch.nn.Module)
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:39
Method__init__
Construct an linear object.
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:79
Method__init__
Construct an Conv1dSubsampling2 object.
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:128
Method__init__
Construct an Conv2dSubsampling4 object.
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:183
Method__init__
Construct an Conv2dSubsampling6 object.
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:239
Method__init__
Construct an Conv2dSubsampling8 object.
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:292
Method__init__
Construct an linear object.
OSUM-EChat/tts/cosyvoice/transformer/subsampling.py:348
Method__init__
Construct an LabelSmoothingLoss object.
OSUM-EChat/tts/cosyvoice/transformer/label_smoothing_loss.py:54
Method__init__
Construct an RelPositionMultiHeadedAttention object.
OSUM-EChat/tts/cosyvoice/transformer/attention.py:209
Method__init__
Construct an ConvolutionModule object. Args: channels (int): The number of channels of conv layers. kernel_size (int):
OSUM-EChat/tts/cosyvoice/transformer/convolution.py:27
Method__init__
Construct TransformerEncoder See Encoder for the meaning of each parameter.
OSUM-EChat/tts/cosyvoice/transformer/encoder.py:341
Method__init__
Construct ConformerEncoder Args: input_size to use_dynamic_chunk, see in BaseEncoder positionwise_conv_kernel_size (i
OSUM-EChat/tts/cosyvoice/transformer/encoder.py:390
Method__init__
(self, channels: int, pre_lookahead_len: int = 1)
OSUM-EChat/tts/cosyvoice/transformer/upsample_encoder.py:67
Method__init__
Args: input_size (int): input dim output_size (int): dimension of attention attention_heads (int): the nu
OSUM-EChat/tts/cosyvoice/transformer/upsample_encoder.py:101
Method__init__
Initialization. INPUT: - in_features: shape of the input - alpha: trainable parameter alpha is in
OSUM-EChat/tts/cosyvoice/transformer/activation.py:50
Method__init__
Initialize class.
OSUM-EChat/tts/cosyvoice/transformer/embedding.py:129
← previousnext →901–1,000 of 1,852, ranked by callers