MCPcopy Create free account

hub / github.com/FireRedTeam/FireRedTTS / functions

Functions342 in github.com/FireRedTeam/FireRedTTS

Method__init__
(self, in_dim, scale, learnable=False)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:509
Method__init__
( self, in_dim, vq_class="VectorQuantization", vq_config={}, tree_conf
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:538
Method__init__
( self, in_dim, out_dim, n_model_size, downsample_scales=[1, 2],
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:694
Method__init__
(self, sync=True, *args, **kwargs)
fireredtts/modules/semantic_tokenizer/ecapa_tdnn.py:260
Method__init__
( self, input_shape=None, input_size=None, eps=1e-05, momentum=0.1,
fireredtts/modules/semantic_tokenizer/ecapa_tdnn.py:326
Method__init__
( self, n_neurons, input_shape=None, input_size=None, bias=True,
fireredtts/modules/semantic_tokenizer/ecapa_tdnn.py:409
Method__init__
( self, in_channels, out_channels, kernel_size, dilation, acti
fireredtts/modules/semantic_tokenizer/ecapa_tdnn.py:472
Method__init__
( self, in_channels, out_channels, scale=8, kernel_size=3, dil
fireredtts/modules/semantic_tokenizer/ecapa_tdnn.py:520
Method__init__
(self, in_channels, se_channels, out_channels)
fireredtts/modules/semantic_tokenizer/ecapa_tdnn.py:586
Method__init__
( self, channels, attention_channels=128, global_context=True, batch_norm=True )
fireredtts/modules/semantic_tokenizer/ecapa_tdnn.py:635
Method__init__
( self, in_channels, out_channels, res2net_scale=8, se_channels=128,
fireredtts/modules/semantic_tokenizer/ecapa_tdnn.py:731
Method__init__
( self, input_size, lin_neurons=192, activation=torch.nn.ReLU, channel
fireredtts/modules/semantic_tokenizer/ecapa_tdnn.py:820
Method__init__
(self, config, path)
fireredtts/modules/semantic_tokenizer/__init__.py:10
Method__init__
( self, filter_length=1024, hop_length=200, win_length=800, n_mel_chan
fireredtts/modules/semantic_tokenizer/audio.py:39
Method__init__
(self, model_path, sampling_rate=16000)
fireredtts/modules/semantic_tokenizer/hubert.py:19
Method__init__
(self, config_path, pretrained_path, device="cuda")
fireredtts/models/fireredtts.py:18
Method__init__
(self, config)
fireredtts/models/token2audio.py:63
Method_apply_weight_norm
(m)
fireredtts/modules/acoustic_codec/bigcodec.py:505
Method_apply_weight_norm
(m)
fireredtts/modules/acoustic_codec/bigcodec.py:589
Method_basic_init
(module)
fireredtts/modules/flowmatching/estimator_dit.py:306
Method_compute_statistics
(x, m, dim=2, eps=self.eps)
fireredtts/modules/semantic_tokenizer/ecapa_tdnn.py:665
Method_remove_weight_norm
(m)
fireredtts/modules/acoustic_codec/bigcodec.py:496
Method_remove_weight_norm
(m)
fireredtts/modules/acoustic_codec/bigcodec.py:580
Method_reorder_cache
This function is used to re-order the :obj:`past_key_values` cache if :meth:`~transformers.PreTrainedModel.beam_search` or :meth:`~tr
fireredtts/modules/semantic_llm/llm_gpt2.py:133
Method_reorder_cache
This function is used to re-order the :obj:`past_key_values` cache if :meth:`~transformers.PreTrainedModel.beam_search` or :meth:`~tr
fireredtts/modules/semantic_llm/llm_gpt2.py:271
Method_sample
r""" Generates sequences of token ids for models with a language modeling head using **multinomial sampling** and can be used for text
fireredtts/modules/acoustic_llm/acoustic_llm.py:275
Methodapply_weight_norm
(self)
fireredtts/modules/acoustic_codec/bigcodec.py:504
Methodapply_weight_norm
(self)
fireredtts/modules/acoustic_codec/bigcodec.py:588
Methodcode_to_latent
(self, token, mel=None)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:871
Methodcodebook
(self)
fireredtts/modules/acoustic_codec/vector_quantization.py:515
Methoddecode
(self, embed_ind)
fireredtts/modules/acoustic_codec/vector_quantization.py:267
Methoddecode
(self, embed_ind, embed_len=None)
fireredtts/modules/acoustic_codec/vector_quantization.py:524
Methoddecode_latent
(self, latent, latent_len=None)
fireredtts/modules/acoustic_codec/vector_quantization.py:530
Functiondynamic_range_compression
(x, C=1, clip_val=1e-5)
fireredtts/modules/bigvgan/mel_spectrogram.py:7
Functiondynamic_range_compression
(x, C=1, clip_val=1e-5)
fireredtts/modules/semantic_tokenizer/audio.py:11
Functiondynamic_range_decompression
(x, C=1)
fireredtts/modules/semantic_tokenizer/audio.py:15
Methodencode
(self, x, x_len=None)
fireredtts/modules/acoustic_codec/vector_quantization.py:518
Methodextract
(self, wavs, wav_lengths, spk)
fireredtts/models/token2audio.py:104
Functionflatten
(x, x_len)
fireredtts/modules/acoustic_codec/vector_quantization.py:16
Methodforward
( self, input_ids=None, past_key_values=None, attention_mask=None, tok
fireredtts/modules/acoustic_llm/acoustic_llm.py:172
Methodforward
(self, x)
fireredtts/modules/acoustic_llm/acoustic_llm.py:499
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:121
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:144
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:189
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:245
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:312
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:337
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:363
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:396
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:419
Methodforward
(self, wav, wav_length)
fireredtts/modules/acoustic_codec/bigcodec.py:435
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:491
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/bigcodec.py:566
Methodforward
(self, x, x_len, enable_vq=True, update_codebook=True, masking=False)
fireredtts/modules/acoustic_codec/vector_quantization.py:165
Methodforward
(self, x, x_len, enable_vq=True, update_codebook=True)
fireredtts/modules/acoustic_codec/vector_quantization.py:321
Methodforward
( self, x, x_len, enable_vq=True, update_codebook=True, return
fireredtts/modules/acoustic_codec/vector_quantization.py:543
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/alias_free_torch/resample.py:29
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/alias_free_torch/resample.py:55
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/alias_free_torch/filter.py:92
Methodforward
(self, x)
fireredtts/modules/acoustic_codec/alias_free_torch/act.py:27
Methodforward
(self, x)
fireredtts/modules/bigvgan/bigvgan.py:136
Methodforward
(self, x)
fireredtts/modules/bigvgan/bigvgan.py:222
Methodforward
(self, x)
fireredtts/modules/bigvgan/bigvgan.py:333
Methodforward
Forward pass of the function. Applies the function to the input elementwise. Snake ∶= x + 1/a * sin^2 (xa)
fireredtts/modules/bigvgan/activations.py:51
Methodforward
Forward pass of the function. Applies the function to the input elementwise. SnakeBeta := x + 1/b * sin^2 (xa)
fireredtts/modules/bigvgan/activations.py:113
Methodforward
(self, x)
fireredtts/modules/bigvgan/alias_free_torch/resample.py:28
Methodforward
(self, x)
fireredtts/modules/bigvgan/alias_free_torch/resample.py:54
Methodforward
(self, x)
fireredtts/modules/bigvgan/alias_free_torch/filter.py:91
Methodforward
(self, x)
fireredtts/modules/bigvgan/alias_free_torch/act.py:24
Methodforward
Args: x(torch.Tensor): shape (b, t, c) attn_mask(torch.Tensor): shape (b, t, t)
fireredtts/modules/flowmatching/estimator_dit.py:76
Methodforward
(self, t)
fireredtts/modules/flowmatching/estimator_dit.py:148
Methodforward
(self, x: torch.Tensor)
fireredtts/modules/flowmatching/estimator_dit.py:161
Methodforward
(self, x: torch.Tensor)
fireredtts/modules/flowmatching/estimator_dit.py:176
Methodforward
Args: x: shape (b, t, c) mask: shape (b, t, 1)
fireredtts/modules/flowmatching/estimator_dit.py:208
Methodforward
Args x: shape (b, t, c) c: shape (b, 1, c) attn_mask: shape (b, t, t), bool type attention mask conv_m
fireredtts/modules/flowmatching/estimator_dit.py:239
Methodforward
(self, x, c)
fireredtts/modules/flowmatching/estimator_dit.py:270
Methodforward
Args: x: shape (b, c, t) c: aux condition, shape (b, c, t) t: shape (b,) attn_mask: (b, t, t)
fireredtts/modules/flowmatching/estimator_dit.py:330
Methodforward
Args: query (torch.Tensor): shape (b, t1, c). key (torch.Tensor): shape (b, t2, c). value (torch.Tensor):
fireredtts/modules/flowmatching/upsample_encoder.py:118
Methodforward
Add positional encoding. Args: x (torch.Tensor): Input tensor (batch, time, `*`). Returns: torch.Tensor: Enc
fireredtts/modules/flowmatching/upsample_encoder.py:230
Methodforward
(self, inputs: torch.Tensor, input_lengths: torch.Tensor)
fireredtts/modules/flowmatching/upsample_encoder.py:294
Methodforward
inputs: (batch_size, seq_len, channels)
fireredtts/modules/flowmatching/upsample_encoder.py:316
Methodforward
Forward function. Args: xs: input tensor (B, L, D) Returns: output tensor, (B, L, D)
fireredtts/modules/flowmatching/upsample_encoder.py:361
Methodforward
Input x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1, time
fireredtts/modules/flowmatching/upsample_encoder.py:394
Methodforward
Args: x: shape (b, t, c) mask: self-attention padded mask, shape (b, 1, t) or (b, t, t) pos_emb: relative
fireredtts/modules/flowmatching/upsample_encoder.py:451
Methodforward
Args: xs: shape (b, t, c) xs_lens: shape (b,) attn_mask1: (token level) shape (b, t, t) attn_
fireredtts/modules/flowmatching/upsample_encoder.py:580
Methodforward
( self, input_ids=None, past_key_values=None, attention_mask=None, tok
fireredtts/modules/semantic_llm/llm_gpt2.py:59
Methodforward
( self, input_ids=None, past_key_values=None, attention_mask=None, tok
fireredtts/modules/semantic_llm/llm_gpt2.py:195
Methodforward
(self, x)
fireredtts/modules/semantic_llm/llm_gpt2.py:300
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:51
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:147
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:167
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:190
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:211
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:255
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:310
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:364
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:390
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:412
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:434
Methodforward
(self, x)
fireredtts/modules/semantic_tokenizer/semantic_tokenizer.py:459
← previousnext →201–300 of 342, ranked by callers