MCPcopy Create free account

hub / github.com/1038lab/ComfyUI-FireRedTTS / functions

Functions144 in github.com/1038lab/ComfyUI-FireRedTTS

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
Methoddecode_one_token
Decode one single token to audio. Args: token: (B=1, nq, L=1) Returns: audio: (B=1, t)
fireredtts2/codec/model.py:327
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:145
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 sc
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: to
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,
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, temperature, topk, S1=None, S1_text="", S2=None, S2_text="")
AILab_FireRedTTS.py:228
Methodgenerate_dialogue
( self, text_list, prompt_wav_list=None, prompt_text_list=None, t
fireredtts2/fireredtts2.py:346
Methodgenerate_monologue
(self, text, temperature, topk, prompt_wav=None, prompt_text="")
AILab_FireRedTTS.py:313
Methodgenerate_monologue
( self, text, prompt_wav=None, prompt_text=None, temperature=0.75, topk=20 )
fireredtts2/fireredtts2.py:406
Functionget_grad_norm
(model)
fireredtts2/llm/utils.py:280
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:295
Functionsample_top_nsigma
_summary_ Args: logits (torch.Tensor): _description_ n (float): _description_ temperature (float): _description_
fireredtts2/llm/llm.py:52
Functionsummarize
( writer, global_step, scalars={}, histograms={}, images={}, audios={}, aud
fireredtts2/llm/utils.py:261
Functionunprotect_float
(text)
fireredtts2/utils/spliter.py:127
← previous101–144 of 144, ranked by callers