MCPcopy Create free account

hub / github.com/FireRedTeam/FireRedTTS2 / functions

Functions168 in github.com/FireRedTeam/FireRedTTS2

Method__init__
( self, optimizer, warmup_steps: int, total_steps: int, decay_type: str = "linear" )
fireredtts2/llm/utils.py:25
Method__init__
( self, in_channels: int, out_channels: int = None, conv_shortcut: bool = Fals
fireredtts2/codec/decoder.py:9
Method__init__
(self, dim0: int, dim1: int)
fireredtts2/codec/decoder.py:67
Method__init__
( self, in_channels: int, out_channels: int, kernel_size: int, )
fireredtts2/codec/decoder.py:79
Method__init__
( self, in_channels: int, out_channels: int = None, dropout: float = 0.0,
fireredtts2/codec/decoder.py:106
Method__init__
( self, embed_dim: int = 1024, num_layers: int = 12, num_heads: int = 16,
fireredtts2/codec/decoder.py:176
Method__init__
( self, embed_dim: int = 1024, num_layers: int = 12, num_heads: int = 16,
fireredtts2/codec/decoder.py:226
Method__init__
(self, dim: int, n_fft: int, hop_length: int, padding: str = "same")
fireredtts2/codec/decoder.py:483
Method__init__
( self, # Transformer embed_dim: int, num_layers: int, num_heads: int,
fireredtts2/codec/decoder.py:551
Method__init__
( self, input_dim: int, codebook_size: int, codebook_dim: int, )
fireredtts2/codec/rvq.py:17
Method__init__
( self, embed_dim: int, num_heads: int, dropout: float = 0.0, bias: bo
fireredtts2/codec/whisper.py:24
Method__init__
( self, embed_dim: int, num_heads: int, ffn_dim: int = None, attn_drop
fireredtts2/codec/whisper.py:122
Method__init__
( self, num_mels: int = 128, sampling_rate: int = 16000, hop_length: int = 160
fireredtts2/codec/whisper.py:276
Method__init__
( self, # Mel extraction params num_mels: int = 128, sampling_rate: int = 1600
fireredtts2/codec/whisper.py:375
Method__init__
( self, in_dim: int, embed_dim: int, out_dim: int, num_layers: int,
fireredtts2/codec/model.py:20
Method__init__
( self, embed_dim: int = 768, avg_pooler=4, )
fireredtts2/codec/model.py:81
Method__init__
( self, ssl: PretrainedWhisperEncoder, ssl_adaptor: SslAdaptor, acoustic_encod
fireredtts2/codec/model.py:152
Method__init__
(self, codec: RedCodec)
fireredtts2/codec/model.py:198
Method__iter__
(self)
bin/finetune_example/posttrain_dataloader.py:272
Method__len__
(self)
bin/finetune_example/posttrain_dataloader.py:40
Method__len__
(self)
bin/finetune_example/posttrain_dataloader.py:284
Function_change_component_language
(lang)
gradio_demo.py:270
Function_change_prompt_input_visibility
(voice_mode)
gradio_demo.py:322
Function_init_weights
(m)
fireredtts2/llm/utils.py:207
Method_init_weights
(self, m)
fireredtts2/codec/decoder.py:599
Method_init_weights
(self, module)
fireredtts2/codec/whisper.py:263
Method_init_weights
(self, module)
fireredtts2/codec/model.py:68
Functioncollate_fn
Collate function for tokenized audio and text. Merges variable-length audio/text into a single padded tensor.
bin/finetune_example/posttrain_dataloader.py:200
Functiondialogue_synthesis_function
( target_text: str, voice_mode: Literal[0, 1] = 0, # 0 means voice clone spk1_prompt_text: str |
gradio_demo.py:153
Methodforward
Forward pass for Sesame's CSM model. This will be added to the model with `model.forward = types.MethodType(forward, model)`
fireredtts2/llm/llm.py:139
Methodforward
Args: x: shape (b, c, t)
fireredtts2/codec/decoder.py:49
Methodforward
(self, x: torch.Tensor)
fireredtts2/codec/decoder.py:72
Methodforward
(self, x: torch.Tensor)
fireredtts2/codec/decoder.py:88
Methodforward
Args: x: shape (b, c, t)
fireredtts2/codec/decoder.py:138
Methodforward
Args: x: shape (b, t, c) x_lens: shape (b,)
fireredtts2/codec/decoder.py:198
Methodforward
Args: x: shape (b, t, c) x_lens: shape (b,)
fireredtts2/codec/decoder.py:248
Methodforward
Forward pass of the ISTFTHead module. Args: x (Tensor): Input tensor of shape (B, L, H), where B is the batch size,
fireredtts2/codec/decoder.py:492
Methodforward
Args: x: shape (b, t, c) x_lens: shape (b,)
fireredtts2/codec/decoder.py:604
Methodforward
Args: attention_mask: Bool mask or float mask. Bool mask, True indicates should attend. Float mask is added to the attention scor
fireredtts2/codec/whisper.py:49
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: torch.Tensor, )
fireredtts2/codec/whisper.py:142
Methodforward
(self, audio16k: torch.Tensor, audio16k_length: torch.Tensor)
fireredtts2/codec/whisper.py:364
Methodforward
(self, audio16k: torch.Tensor, audio16k_length: torch.Tensor)
fireredtts2/codec/whisper.py:412
Methodforward
( self, hidden_states: torch.Tensor, hidden_length: torch.Tensor, )
fireredtts2/codec/model.py:53
Methodforward
(self, x: torch.Tensor, input_length: torch.Tensor)
fireredtts2/codec/model.py:107
Methodforward_chunk
(self, x: torch.Tensor, cnn_cache: torch.Tensor = None)
fireredtts2/codec/decoder.py:93
Methodforward_chunk
Args: x: shape (b, c, t) cache: shape (b, c_in+c_out, t=2)
fireredtts2/codec/decoder.py:150
Methodforward_chunk
( self, x: torch.Tensor, conv_cache1: torch.Tensor = None, conv_cache2: torch.
fireredtts2/codec/decoder.py:276
Methodforward_chunk
ISTFTHead can be adapted in streaming inference without retraining. Args: x: shape (B, T, C) cache: shape (B, N, T=3)
fireredtts2/codec/decoder.py:523
Methodforward_chunk
Args: x: input sequence at 50Hz, length should be multiples of 4
fireredtts2/codec/decoder.py:657
Methodforward_chunk
Forward self-attention with kv cache. Args: hidden_states: shape (b, t, c) kv_cache: shape (b, nh, t, c*2)
fireredtts2/codec/whisper.py:81
Methodforward_chunk
Forward self-attention with kv cache. Args: hidden_states: shape (b, t, c) kv_cache: shape (b, nh, t, c*2)
fireredtts2/codec/whisper.py:164
Methodfrom_pretrained
(cls, pretrained_path: str = None)
fireredtts2/codec/whisper.py:335
Methodgenerate_dialogue
( self, text_list, prompt_wav_list=None, prompt_text_list=None, temper
fireredtts2/fireredtts2.py:513
Methodgenerate_monologue
( self, text, prompt_wav=None, prompt_text=None, temperature=0.75, topk=20 )
fireredtts2/fireredtts2.py:327
Methodgenerate_monologue
( self, text, prompt_wav=None, prompt_text=None, temperature=0.75, topk=20 )
fireredtts2/fireredtts2.py:568
Methodget_seq_len
(self)
bin/finetune_example/posttrain_dataloader.py:43
Methodlr_lambda
(self, step: int)
fireredtts2/llm/utils.py:33
Functionprotect_float
(text)
fireredtts2/utils/spliter.py:122
Functionqwen2_1_5B
()
fireredtts2/llm/modules.py:37
Functionqwen2_200M
()
fireredtts2/llm/modules.py:5
Functionqwen2_3B
()
fireredtts2/llm/modules.py:53
Functionqwen2_500M
()
fireredtts2/llm/modules.py:21
Functionqwen2_7B
()
fireredtts2/llm/modules.py:69
Functionread_jsonl
(path)
fireredtts2/llm/utils.py:331
Functionread_test
_summary_ Args: dataset_dir (_type_): _description_
bin/finetune_example/data_preparation/step3_write_arrow.py:211
Functionsample_top_nsigma
_summary_ Args: logits (torch.Tensor): _description_ n (float): _description_ temperature (float): _description_ Ret
fireredtts2/llm/llm.py:52
Functionsplit_list_into_chunks
(lst, chunk_size)
bin/finetune_example/data_preparation/step2_extract_token.py:44
Functionunprotect_float
(text)
fireredtts2/utils/spliter.py:127
← previous101–168 of 168, ranked by callers