MCPcopy Create free account

hub / github.com/FireRedTeam/FireRedTTS / functions

Functions342 in github.com/FireRedTeam/FireRedTTS

↓ 1 callersMethodinit_gpt_for_inference
_summary_ Args: kv_cache (bool, optional): _description_. Defaults to True. use_deepspeed (bool, optional): _descript
fireredtts/modules/semantic_llm/llm_gpt2.py:445
↓ 1 callersMethodinitialize_weights
(self)
fireredtts/modules/flowmatching/estimator_dit.py:304
↓ 1 callersFunctionis_upper_eng_and_digit
(text)
fireredtts/modules/text_normalizer/utils.py:104
↓ 1 callersFunctionis_valid_char
(char)
fireredtts/modules/text_normalizer/utils.py:108
↓ 1 callersFunctionlaplace_smoothing
(x, n_categories: int, epsilon: float = 1e-5)
fireredtts/modules/acoustic_codec/vector_quantization.py:28
↓ 1 callersFunctionmel_spectrogram
( y, n_fft, num_mels, sampling_rate, hop_size, win_size, fmin, fmax, center=False )
fireredtts/modules/bigvgan/mel_spectrogram.py:24
↓ 1 callersMethodposition_encoding
For getting encoding in a streaming fashion Attention!!!!! we apply dropout only once at the whole utterance level in a none
fireredtts/modules/flowmatching/upsample_encoder.py:246
↓ 1 callersMethodpost_init_gpt2_config
(self, use_deepspeed=False, kv_cache=True, half=False)
fireredtts/modules/acoustic_llm/acoustic_llm.py:652
↓ 1 callersMethodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, **kwargs)
fireredtts/modules/acoustic_llm/acoustic_llm.py:148
↓ 1 callersFunctionpreprocess_text
(sentence)
fireredtts/modules/text_normalizer/normalize.py:15
↓ 1 callersMethodquantize
( self, inp, inp_len, enable_vq=True, update_codebook=True, return_pre_quant=False )
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:588
↓ 1 callersMethodreconstruct_wav
(self, token=None, quant=None, spk=None)
fireredtts/modules/acoustic_codec/bigcodec.py:682
↓ 1 callersMethodrel_shift
Compute relative positional encoding. Args: x (torch.Tensor): Input tensor (batch, head, time1, 2*time1-1). time1 mea
fireredtts/modules/flowmatching/upsample_encoder.py:94
↓ 1 callersMethodremove_weight_norm
(self)
fireredtts/modules/bigvgan/bigvgan.py:361
↓ 1 callersMethodreplace_
(self, samples, mask, dists=None)
fireredtts/modules/acoustic_codec/vector_quantization.py:89
↓ 1 callersMethodreset_parameters
(self)
fireredtts/modules/acoustic_codec/bigcodec.py:511
↓ 1 callersMethodreset_parameters
(self)
fireredtts/modules/acoustic_codec/bigcodec.py:595
↓ 1 callersFunctionrettt
(sentence)
fireredtts/modules/text_normalizer/normalize.py:68
↓ 1 callersFunctionsample_vectors
(samples, num: int)
fireredtts/modules/acoustic_codec/vector_quantization.py:38
↓ 1 callersMethodserialize
(self, tokens, token_lens)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:647
↓ 1 callersFunctionsinc
Implementation of sinc, i.e. sin(pi * x) / (pi * x) __Warning__: Different to julius.sinc, the input is multiplied by `pi`!
fireredtts/modules/acoustic_codec/alias_free_torch/filter.py:15
↓ 1 callersFunctionsinc
Implementation of sinc, i.e. sin(pi * x) / (pi * x) __Warning__: Different to julius.sinc, the input is multiplied by `pi`!
fireredtts/modules/bigvgan/alias_free_torch/filter.py:14
↓ 1 callersFunctionspectral_normalize_torch
(magnitudes)
fireredtts/modules/bigvgan/mel_spectrogram.py:15
↓ 1 callersFunctionspectral_normalize_torch
(magnitudes)
fireredtts/modules/semantic_tokenizer/audio.py:27
↓ 1 callersMethodstore_mel_emb
(self, mel_emb)
fireredtts/modules/acoustic_llm/acoustic_llm.py:142
↓ 1 callersMethodstore_mel_parallel_emb
(self, mel_emb)
fireredtts/modules/acoustic_llm/acoustic_llm.py:145
↓ 1 callersFunctionstrip_kaomoji
(text)
fireredtts/modules/text_normalizer/utils.py:92
↓ 1 callersFunctiontext_split
(text)
fireredtts/modules/text_normalizer/utils.py:158
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
fireredtts/modules/flowmatching/estimator_dit.py:128
↓ 1 callersFunctionzh_text_split
(text, length=80)
fireredtts/modules/text_normalizer/utils.py:132
Method__call__
( self, input_ids: torch.LongTensor, scores: torch.FloatTensor )
fireredtts/modules/acoustic_llm/acoustic_llm.py:46
Method__call__
( self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs )
fireredtts/modules/acoustic_llm/acoustic_llm.py:81
Method__call__
( self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs )
fireredtts/modules/acoustic_llm/acoustic_llm.py:96
Method__call__
( self, input_ids: torch.LongTensor, scores: torch.FloatTensor )
fireredtts/modules/acoustic_llm/acoustic_llm.py:113
Method__call__
Args: audio(torch.Tensor): shape (1, t) Returns: mel(torch.Tensor): shape (1, num_mels, t')
fireredtts/modules/bigvgan/mel_spectrogram.py:89
Method__call__
(self, wavs, wav_lengths)
fireredtts/modules/semantic_tokenizer/__init__.py:25
Method__init__
( self, penalty: float = 2.0, n_heads: int = 4, n_frames: int = -1, start_index=0 )
fireredtts/modules/acoustic_llm/acoustic_llm.py:33
Method__init__
(self, running_steps, start_index=0)
fireredtts/modules/acoustic_llm/acoustic_llm.py:77
Method__init__
(self, eos_token_id, delay_steps)
fireredtts/modules/acoustic_llm/acoustic_llm.py:92
Method__init__
(self, suppressed_ids=[])
fireredtts/modules/acoustic_llm/acoustic_llm.py:110
Method__init__
( self, config, gpt, text_pos_emb, embeddings, norm, linear, kv_cache=True )
fireredtts/modules/acoustic_llm/acoustic_llm.py:123
Method__init__
(self, seq_len, model_dim, init=0.02)
fireredtts/modules/acoustic_llm/acoustic_llm.py:494
Method__init__
(self)
fireredtts/modules/text_normalizer/normalize.py:113
Method__init__
( self, *args, causal: bool = False, norm: str = "none", norm_kwargs:
fireredtts/modules/acoustic_codec/bigcodec.py:108
Method__init__
( self, *args, causal: bool = False, norm: str = "none", norm_kwargs:
fireredtts/modules/acoustic_codec/bigcodec.py:129
Method__init__
( self, in_channels: int, out_channels: int, kernel_size: int, stride:
fireredtts/modules/acoustic_codec/bigcodec.py:216
Method__init__
( self, in_features, alpha=1.0, alpha_trainable=True, alpha_logscale=False )
fireredtts/modules/acoustic_codec/bigcodec.py:292
Method__init__
(self, dim: int = 16, dilation: int = 1, causal: bool = False)
fireredtts/modules/acoustic_codec/bigcodec.py:325
Method__init__
( self, dim: int = 16, stride: int = 1, dilations=(1, 3, 9), causal: bool = False )
fireredtts/modules/acoustic_codec/bigcodec.py:343
Method__init__
( self, input_dim: int = 16, output_dim: int = 8, stride: int = 1, dil
fireredtts/modules/acoustic_codec/bigcodec.py:369
Method__init__
( self, dimension: int, num_layers: int = 2, bidirectional: bool = False,
fireredtts/modules/acoustic_codec/bigcodec.py:402
Method__init__
(self, source_sr=24000, target_sr=24000)
fireredtts/modules/acoustic_codec/bigcodec.py:430
Method__init__
( self, ngf=48, use_rnn=True, rnn_bidirectional=False, rnn_num_layers=
fireredtts/modules/acoustic_codec/bigcodec.py:444
Method__init__
( self, in_channels=1024, upsample_initial_channel=1536, ngf=48, use_r
fireredtts/modules/acoustic_codec/bigcodec.py:517
Method__init__
( self, n_model_size: int, encoder_config: dict, decoder_config: dict,
fireredtts/modules/acoustic_codec/bigcodec.py:601
Method__init__
( self, dim: Union[int, list], codebook_size: list, n_groups: int = 1,
fireredtts/modules/acoustic_codec/vector_quantization.py:234
Method__init__
( self, dim: int, codebook_size: Union[int, list], codebook_dim: Union[int, li
fireredtts/modules/acoustic_codec/vector_quantization.py:464
Method__init__
(self, ratio=2, kernel_size=None)
fireredtts/modules/acoustic_codec/alias_free_torch/resample.py:42
Method__init__
( self, cutoff=0.5, half_width=0.6, stride: int = 1, padding: bool = T
fireredtts/modules/acoustic_codec/alias_free_torch/filter.py:65
Method__init__
( self, activation, up_ratio: int = 2, down_ratio: int = 2, up_kernel_
fireredtts/modules/acoustic_codec/alias_free_torch/act.py:9
Method__init__
( self, channels, kernel_size=3, dilation=(1, 3, 5), activation=None,
fireredtts/modules/bigvgan/bigvgan.py:22
Method__init__
( self, channels, kernel_size=3, dilation=(1, 3), activation=None,
fireredtts/modules/bigvgan/bigvgan.py:155
Method__init__
Initialization. INPUT: - in_features: shape of the input - alpha - trainable parameter that controls frequenc
fireredtts/modules/bigvgan/activations.py:83
Method__init__
( self, num_mels: int = 80, n_fft: int = 1920, hop_size: int = 480, wi
fireredtts/modules/bigvgan/mel_spectrogram.py:68
Method__init__
(self, ratio=2, kernel_size=None)
fireredtts/modules/bigvgan/alias_free_torch/resample.py:41
Method__init__
( self, cutoff=0.5, half_width=0.6, stride: int = 1, padding: bool = T
fireredtts/modules/bigvgan/alias_free_torch/filter.py:64
Method__init__
( self, activation, up_ratio: int = 2, down_ratio: int = 2, up_kernel_
fireredtts/modules/bigvgan/alias_free_torch/act.py:8
Method__init__
( self, dim: int, num_heads: int = 8, head_dim: int = 64,
fireredtts/modules/flowmatching/estimator_dit.py:40
Method__init__
(self, hidden_size, frequency_embedding_size=256)
fireredtts/modules/flowmatching/estimator_dit.py:116
Method__init__
(self, dim0: int, dim1: int)
fireredtts/modules/flowmatching/estimator_dit.py:156
Method__init__
( self, in_channels: int, out_channels: int, kernel_size: int, )
fireredtts/modules/flowmatching/estimator_dit.py:167
Method__init__
(self, in_channels: int, out_channels: int, kernel_size: in
fireredtts/modules/flowmatching/estimator_dit.py:183
Method__init__
(self, hidden_size, num_heads, head_dim, mlp_ratio=4.0, **block_kwargs)
fireredtts/modules/flowmatching/estimator_dit.py:224
Method__init__
(self, hidden_size, out_channels)
fireredtts/modules/flowmatching/estimator_dit.py:261
Method__init__
( self, in_channels: int, out_channels: int, mlp_ratio: float = 4.0, d
fireredtts/modules/flowmatching/estimator_dit.py:281
Method__init__
( self, # Basic in-out spk_channels: int, spk_enc_channels: int, # out channe
fireredtts/modules/flowmatching/flow.py:39
Method__init__
(self, config)
fireredtts/modules/flowmatching/__init__.py:7
Method__init__
(self, n_head: int, n_feat: int, dropout_rate: float,
fireredtts/modules/flowmatching/upsample_encoder.py:11
Method__init__
Multi-Head Attention layer with relative position encoding. Paper: https://arxiv.org/abs/1901.02860 Args: n_head (int): Th
fireredtts/modules/flowmatching/upsample_encoder.py:72
Method__init__
Construct an PositionalEncoding object.
fireredtts/modules/flowmatching/upsample_encoder.py:189
Method__init__
(self, channels: int, pre_lookahead_len: int = 1)
fireredtts/modules/flowmatching/upsample_encoder.py:302
Method__init__
Construct a PositionwiseFeedForward object.
fireredtts/modules/flowmatching/upsample_encoder.py:347
Method__init__
Construct an linear object.
fireredtts/modules/flowmatching/upsample_encoder.py:379
Method__init__
Construct an EncoderLayer object.
fireredtts/modules/flowmatching/upsample_encoder.py:432
Method__init__
( self, # Common input_size: int = 512, output_size: int = 512, num_bl
fireredtts/modules/flowmatching/upsample_encoder.py:489
Method__init__
(self, config, gpt, pos_emb, embeddings, norm, linear, kv_cache)
fireredtts/modules/semantic_llm/llm_gpt2.py:16
Method__init__
(self, config, gpt, pos_emb, embeddings, norm, linear, kv_cache)
fireredtts/modules/semantic_llm/llm_gpt2.py:152
Method__init__
(self, seq_len, model_dim, init=0.02, relative=False)
fireredtts/modules/semantic_llm/llm_gpt2.py:291
Method__init__
( self, normalized_shape: tp.Union[int, tp.List[int], torch.Size], **kwargs )
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:46
Method__init__
( self, *args, causal: bool = False, norm: str = "none", norm_kwargs:
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:134
Method__init__
( self, *args, norm: str = "none", norm_kwargs: tp.Dict[str, tp.Any] = {},
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:155
Method__init__
( self, *args, causal: bool = False, norm: str = "none", norm_kwargs:
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:175
Method__init__
( self, *args, norm: str = "none", norm_kwargs: tp.Dict[str, tp.Any] = {},
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:198
Method__init__
( self, in_channels: int, out_channels: int, kernel_size: int, stride:
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:219
Method__init__
( self, in_channels: int, out_channels: int, kernel_size: int, stride:
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:282
Method__init__
(self, in_channels, out_channels, kernel_size=3, groups=1)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:369
Method__init__
(self, out_channels, stride)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:395
Method__init__
(self, in_channels, stride)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:417
Method__init__
(self, C, D, strides=[2, 2], checkpointing=True)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:439
Method__init__
(self, C, D, H, strides=[2, 2], checkpointing=True)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:470
← previousnext →101–200 of 342, ranked by callers