MCPcopy Create free account

hub / github.com/FunAudioLLM/FunMusic / functions

Functions702 in github.com/FunAudioLLM/FunMusic

Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/modules/conv.py:119
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/modules/conv.py:136
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/modules/conv.py:153
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/modules/conv.py:169
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/modules/conv.py:195
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/modules/conv.py:231
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/modules/lstm.py:31
Methodforward
Residual vector quantization on the given input tensor. Args: x (torch.Tensor): Input tensor. frame_rate (int): Sample
inspiremusic/wavtokenizer/encoder/quantization/vq.py:84
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:206
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:294
Methodforward
(self, x, n_q: tp.Optional[int] = None)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:328
Methodforward
(self, x, n_q: tp.Optional[int] = None)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:378
Methodforward
Args: y_hat (Tensor): Predicted audio waveform. y (Tensor): Ground truth audio waveform. Returns:
inspiremusic/wavtokenizer/decoder/loss.py:25
Methodforward
Args: disc_outputs (List[Tensor]): List of discriminator outputs. Returns: Tuple[Tensor, List[Tensor]]: Tupl
inspiremusic/wavtokenizer/decoder/loss.py:47
Methodforward
Args: disc_real_outputs (List[Tensor]): List of discriminator outputs for real samples. disc_generated_outputs (List[
inspiremusic/wavtokenizer/decoder/loss.py:71
Methodforward
Args: fmap_r (List[List[Tensor]]): List of feature maps from real samples. fmap_g (List[List[Tensor]]): List of featu
inspiremusic/wavtokenizer/decoder/loss.py:102
Methodforward
( self, y: torch.Tensor, y_hat: torch.Tensor, bandwidth_id: torch.Tensor = None )
inspiremusic/wavtokenizer/decoder/discriminators.py:24
Methodforward
( self, x: torch.Tensor, cond_embedding_id: torch.Tensor = None )
inspiremusic/wavtokenizer/decoder/discriminators.py:70
Methodforward
( self, y: torch.Tensor, y_hat: torch.Tensor, bandwidth_id: torch.Tensor = None )
inspiremusic/wavtokenizer/decoder/discriminators.py:122
Methodforward
( self, x: torch.Tensor, cond_embedding_id: torch.Tensor = None )
inspiremusic/wavtokenizer/decoder/discriminators.py:168
Methodforward
Compute the Inverse Short Time Fourier Transform (ISTFT) of a complex spectrogram. Args: spec (Tensor): Input complex sp
inspiremusic/wavtokenizer/decoder/spectral_ops.py:33
Methodforward
Apply the Modified Discrete Cosine Transform (MDCT) to the input audio. Args: audio (Tensor): Input audio waveform of sh
inspiremusic/wavtokenizer/decoder/spectral_ops.py:155
Methodforward
Apply the Inverse Modified Discrete Cosine Transform (IMDCT) to the input MDCT coefficients. Args: X (Tensor): Input MDC
inspiremusic/wavtokenizer/decoder/spectral_ops.py:208
Methodforward
Method to run a copy-synthesis from audio waveform. The feature extractor first processes the audio input, which is then passed throu
inspiremusic/wavtokenizer/decoder/pretrained_model.py:123
Methodforward
(self, x, temb=None)
inspiremusic/wavtokenizer/decoder/models.py:58
Methodforward
(self, x)
inspiremusic/wavtokenizer/decoder/models.py:107
Methodforward
Args: x (Tensor): Input tensor of shape (B, C, L), where B is the batch size, C denotes output features,
inspiremusic/wavtokenizer/decoder/models.py:139
Methodforward
(self, x: torch.Tensor, bandwidth_id: Optional[torch.Tensor] = None)
inspiremusic/wavtokenizer/decoder/models.py:223
Methodforward
(self, x: torch.Tensor, **kwargs)
inspiremusic/wavtokenizer/decoder/models.py:262
Methodforward
Method to run a copy-synthesis from audio waveform. The feature extractor first processes the audio input, which is then passed throu
inspiremusic/wavtokenizer/decoder/pretrained.py:169
Methodforward
(self, x: torch.Tensor, cond_embedding_id: Optional[torch.Tensor] = None)
inspiremusic/wavtokenizer/decoder/modules.py:44
Methodforward
(self, x: torch.Tensor, cond_embedding_id: torch.Tensor)
inspiremusic/wavtokenizer/decoder/modules.py:82
Methodforward
(self, x: torch.Tensor)
inspiremusic/wavtokenizer/decoder/modules.py:173
Methodforward
(self, audio_input, **kwargs)
inspiremusic/wavtokenizer/decoder/experiment.py:114
Methodforward
Args: x (Tensor): Input tensor of shape (B, L, H), where B is the batch size, L is the sequence length, a
inspiremusic/wavtokenizer/decoder/heads.py:13
Methodforward
Forward pass of the ISTFTHead module. Args: x (Tensor): Input tensor of shape (B, L, H), where B is the batch size,
inspiremusic/wavtokenizer/decoder/heads.py:43
Methodforward
Forward pass of the IMDCTSymExpHead module. Args: x (Tensor): Input tensor of shape (B, L, H), where B is the batch size
inspiremusic/wavtokenizer/decoder/heads.py:104
Methodforward
Forward pass of the IMDCTCosHead module. Args: x (Tensor): Input tensor of shape (B, L, H), where B is the batch size,
inspiremusic/wavtokenizer/decoder/heads.py:142
Methodforward
(self, x)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:58
Methodforward
(self, x)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:91
Methodforward
(self, x)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:176
Methodforward
(self, x)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:234
Methodforward
Extract features from the given audio. Args: audio (Tensor): Input audio waveform. Returns: Tensor:
inspiremusic/wavtokenizer/decoder/feature_extractors.py:38
Methodforward
(self, audio, **kwargs)
inspiremusic/wavtokenizer/decoder/feature_extractors.py:67
Methodforward
(self, audio: torch.Tensor, bandwidth_id: torch.Tensor = torch.tensor(0))
inspiremusic/wavtokenizer/decoder/feature_extractors.py:126
Methodforward
Forward function. Args: xs: input tensor (B, L, D) Returns: output tensor, (B, L, D)
inspiremusic/transformer/positionwise_feed_forward.py:47
Methodforward
Foward function. Args: xs: input tensor (B, L, D) Returns: output tensor, (B, L, D)
inspiremusic/transformer/positionwise_feed_forward.py:91
Methodforward
Forward decoder. Args: memory: encoded memory, float32 (batch, maxlen_in, feat) memory_mask: encoder memory mask, (ba
inspiremusic/transformer/decoder.py:116
Methodforward
Forward decoder. Args: memory: encoded memory, float32 (batch, maxlen_in, feat) memory_mask: encoder memory mask, (ba
inspiremusic/transformer/decoder.py:332
Methodforward
Compute decoded features. Args: tgt (torch.Tensor): Input tensor (#batch, maxlen_out, size). tgt_mask (torch.Tensor):
inspiremusic/transformer/decoder_layer.py:62
Methodforward
( self, input_ids: torch.Tensor, ilens: torch.Tensor, )
inspiremusic/transformer/qwen_encoder.py:60
Methodforward
( self, input_embeds: torch.Tensor, ilens: torch.Tensor, )
inspiremusic/transformer/qwen_encoder.py:118
Methodforward
( self, input_ids: torch.Tensor, ilens: torch.Tensor, )
inspiremusic/transformer/qwen_encoder.py:178
Methodforward
Input x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1, tim
inspiremusic/transformer/subsampling.py:45
Methodforward
Input x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1, tim
inspiremusic/transformer/subsampling.py:92
Methodforward
Subsample x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1,
inspiremusic/transformer/subsampling.py:145
Methodforward
Subsample x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1,
inspiremusic/transformer/subsampling.py:202
Methodforward
Subsample x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1,
inspiremusic/transformer/subsampling.py:256
Methodforward
Subsample x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1,
inspiremusic/transformer/subsampling.py:311
Methodforward
Input x. Args: x (torch.Tensor): Input tensor (#batch, time, idim). x_mask (torch.Tensor): Input mask (#batch, 1, tim
inspiremusic/transformer/subsampling.py:362
Methodforward
Compute loss between x and target. The model outputs and data labels tensors are flatten to (batch*seqlen, class) shape and a mask is
inspiremusic/transformer/label_smoothing_loss.py:68
Methodforward
Compute scaled dot product attention. Args: query (torch.Tensor): Query tensor (#batch, time1, size). key (torch.Tens
inspiremusic/transformer/attention.py:128
Methodforward
Compute 'Scaled Dot Product Attention' with rel. positional encoding. Args: query (torch.Tensor): Query tensor (#batch, time1, siz
inspiremusic/transformer/attention.py:249
Methodforward
Compute convolution module. Args: x (torch.Tensor): Input tensor (#batch, time, channels). mask_pad (torch.Tensor): us
inspiremusic/transformer/convolution.py:90
Methodforward
Embed positions in tensor. Args: xs: padded input tensor (B, T, D) xs_lens: input length (B) decoding_chu
inspiremusic/transformer/encoder.py:111
Methodforward
Return Swish activation function.
inspiremusic/transformer/activation.py:27
Methodforward
Forward pass of the function. Applies the function to the input elementwise. Snake ∶= x + 1/a * sin^2 (xa)
inspiremusic/transformer/activation.py:73
Methodforward
Add positional encoding. Args: x (torch.Tensor): Input. Its shape is (batch, time, ...) offset (int, torch.tensor): p
inspiremusic/transformer/embedding.py:59
Methodforward
Compute positional encoding. Args: x (torch.Tensor): Input tensor (batch, time, `*`). Returns: torch.Tensor: E
inspiremusic/transformer/embedding.py:133
Methodforward
Just return zero vector for interface compatibility
inspiremusic/transformer/embedding.py:187
Methodforward
Add positional encoding. Args: x (torch.Tensor): Input tensor (batch, time, `*`). Returns: torch.Tensor: Enc
inspiremusic/transformer/embedding.py:256
Methodforward
Compute encoded features. Args: x (torch.Tensor): (#batch, time, size) mask (torch.Tensor): Mask tensor for the input
inspiremusic/transformer/encoder_layer.py:58
Methodforward
Compute encoded features. Args: x (torch.Tensor): (#batch, time, size) mask (torch.Tensor): Mask tensor for the input
inspiremusic/transformer/encoder_layer.py:160
Methodforward
(self, x)
inspiremusic/music_tokenizer/models.py:89
Methodforward
(self, x)
inspiremusic/music_tokenizer/models.py:129
Methodforward
(self, x)
inspiremusic/music_tokenizer/models.py:177
Methodforward
(self, x)
inspiremusic/music_tokenizer/models.py:236
Methodforward
(self, y, y_hat)
inspiremusic/music_tokenizer/models.py:269
Methodforward
(self, x)
inspiremusic/music_tokenizer/models.py:300
Methodforward
(self, y, y_hat)
inspiremusic/music_tokenizer/models.py:324
Methodforward
(self, x)
inspiremusic/music_tokenizer/models.py:416
Methodforward
(self, x)
inspiremusic/music_tokenizer/models.py:449
Methodforward
(self, xin)
inspiremusic/music_tokenizer/models.py:507
Methodforward
(self, x)
inspiremusic/music_tokenizer/vqvae.py:44
Methodforward_chunk_by_chunk
Forward input chunk by chunk with chunk_size like a streaming fashion Here we should pay special attention to computation cache
inspiremusic/transformer/encoder.py:278
Methodforward_one_step
Forward one step. This is only used for decoding. Args: memory: encoded memory, float32 (batch, maxlen_in, feat)
inspiremusic/transformer/decoder.py:367
Methodforward_one_step
(self, xs, masks, cache=None)
inspiremusic/transformer/qwen_encoder.py:134
Methodfrom_pretrained0802
Class method to create a new Vocos model instance from a pre-trained model stored in the Hugging Face model hub.
inspiremusic/wavtokenizer/decoder/pretrained_model.py:102
Methodfrom_pretrained0828
Class method to create a new Vocos model instance from a pre-trained model stored in the Hugging Face model hub.
inspiremusic/wavtokenizer/decoder/pretrained_model.py:68
Methodfrom_pretrained0911
Class method to create a new Vocos model instance from a pre-trained model stored in the Hugging Face model hub.
inspiremusic/wavtokenizer/decoder/pretrained.py:127
Functionget_aac
Converts a batch of audio tensors to AAC format and then back to tensors. This function first saves the input tensor batch as WAV files, then use
inspiremusic/utils/audio_utils.py:523
Functionget_dataset_filelist
(a)
inspiremusic/music_tokenizer/meldataset.py:97
Methodget_lm_model
Return the associated LM model to improve the compression rate.
inspiremusic/wavtokenizer/encoder/model.py:199
Methodget_lr
(self)
inspiremusic/utils/scheduler.py:59
Methodget_lr
(self)
inspiremusic/utils/scheduler.py:110
Methodget_lr
(self)
inspiremusic/utils/scheduler.py:175
Methodget_lr
(self)
inspiremusic/utils/scheduler.py:257
Methodget_lr
(self)
inspiremusic/utils/scheduler.py:340
Methodget_lr
(self)
inspiremusic/utils/scheduler.py:588
Methodget_lr
(self)
inspiremusic/utils/scheduler.py:734
← previousnext →501–600 of 702, ranked by callers