MCPcopy Create free account

hub / github.com/FunAudioLLM/FunMusic / functions

Functions702 in github.com/FunAudioLLM/FunMusic

Method__init__
(self, d_model: int, dropout_rate: float)
inspiremusic/transformer/embedding.py:182
Method__init__
Construct an PositionalEncoding object.
inspiremusic/transformer/embedding.py:215
Method__init__
Construct an EncoderLayer object.
inspiremusic/transformer/encoder_layer.py:40
Method__init__
(self, training_files, segment_size, n_fft,
inspiremusic/music_tokenizer/meldataset.py:106
Method__init__
(self, h, channels, kernel_size=3, dilation=(1, 3, 5))
inspiremusic/music_tokenizer/models.py:32
Method__init__
(self, h, channels, kernel_size=3, dilation=(1, 3))
inspiremusic/music_tokenizer/models.py:106
Method__init__
(self, h)
inspiremusic/music_tokenizer/models.py:142
Method__init__
(self, period, kernel_size=5, stride=3, use_spectral_norm=False)
inspiremusic/music_tokenizer/models.py:206
Method__init__
(self)
inspiremusic/music_tokenizer/models.py:259
Method__init__
(self, use_spectral_norm=False)
inspiremusic/music_tokenizer/models.py:286
Method__init__
(self)
inspiremusic/music_tokenizer/models.py:314
Method__init__
(self, n_e, e_dim)
inspiremusic/music_tokenizer/models.py:444
Method__init__
(self, h)
inspiremusic/music_tokenizer/models.py:459
Method__init__
(self, *args, **kwargs)
inspiremusic/music_tokenizer/env.py:20
Method__init__
(self, config_path, ckpt_path, with_encoder=False)
inspiremusic/music_tokenizer/vqvae.py:26
Method__init__
( self, token_path: str, skip_special_tokens: bool = True, )
inspiremusic/text/tokenizer.py:32
Method__iter__
Return an iterator over the source dataset processed by the given processor.
inspiremusic/dataset/dataset.py:38
Method__iter__
(self)
inspiremusic/dataset/dataset.py:118
Method__len__
(self)
inspiremusic/wavtokenizer/decoder/dataset.py:56
Method__len__
(self)
inspiremusic/music_tokenizer/meldataset.py:225
Method__repr__
(self)
inspiremusic/utils/scheduler.py:56
Method_get_constant_lr
(self, step)
inspiremusic/utils/scheduler.py:539
Method_get_lr
(self, step)
inspiremusic/utils/scheduler.py:459
Method_get_lr
(self, step)
inspiremusic/utils/scheduler.py:486
Method_get_lr
(self, step)
inspiremusic/utils/scheduler.py:512
Method_get_lr
(self, step)
inspiremusic/utils/scheduler.py:693
Method_get_warmup_lr
(self, step)
inspiremusic/utils/scheduler.py:532
Method_init_weights
(self, m)
inspiremusic/wavtokenizer/decoder/models.py:218
Function_poly_decay
(initial_lr, step, decay_steps, power, min_lr, cycle)
inspiremusic/utils/scheduler.py:421
Methodadd_images
Log a scalar variable.
inspiremusic/utils/tokenizer_utils.py:157
Methodadd_scalars
Log a scalar variable.
inspiremusic/utils/tokenizer_utils.py:145
Functionalign_trans_scp_file
(trans, scp)
inspiremusic/utils/utils.py:26
Functionapply_weight_norm
(m)
inspiremusic/utils/tokenizer_utils.py:187
Functionaudio_process_dataset_and_dataloader
(args, configs)
inspiremusic/utils/data_utils.py:19
Functionaverage_metrics
Average a dictionary of metrics across all workers, using the optional `count` as unnormalized weight.
inspiremusic/wavtokenizer/encoder/distrib.py:112
Functionbatch
Wrapper for static/dynamic batch
inspiremusic/dataset/processor.py:438
Methodbatch_inference
( self, text: torch.Tensor, text_len: torch.Tensor, audio_toke
inspiremusic/llm/llm.py:389
Methodbin_search
(low_idx: int, high_idx: int)
inspiremusic/wavtokenizer/encoder/quantization/ac.py:235
Functionbroadcast_tensors
Broadcast the tensors from the given parameters to all workers. This can be used to ensure that all workers have the same model to start with.
inspiremusic/wavtokenizer/encoder/distrib.py:55
Functionbuild_env
(config, config_name, path)
inspiremusic/music_tokenizer/env.py:25
Functioncaras_sampling
(weighted_scores, decoded_tokens, top_p=0.8, top_k=25, win_size=10, tau_r=0.1)
inspiremusic/utils/common.py:162
Functionclap_score
Cosine similarity is computed between the LAION-CLAP text embedding of the given prompt and the LAION-CLAP audio embedding of the generated
inspiremusic/metrics/clap_score.py:33
Functionclean_lyrics
(data, mode="train")
inspiremusic/dataset/processor.py:58
Methodcodebook
(self)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:279
Methodcodes_to_features
Transforms an input sequence of discrete tokens (codes) into feature embeddings using the feature extractor's codebook weights.
inspiremusic/wavtokenizer/decoder/pretrained_model.py:166
Functioncollate_fn
(batch)
inspiremusic/wavtokenizer/decoder/dataset.py:24
Functioncompute_fbank
Extract fbank Args: data: Iterable[{key, wav, label, sample_rate}] Returns: Iterable[{key, feat, label}]
inspiremusic/dataset/processor.py:249
Methodconfigure_optimizers
(self)
inspiremusic/wavtokenizer/decoder/experiment.py:86
Functionconvert_audio
(wav: torch.Tensor, sr: int, target_sr: int, target_channels: int)
inspiremusic/wavtokenizer/encoder/utils.py:79
Functioncut_by_length
(data, max_length=8000, num_times=4, mode="train")
inspiremusic/dataset/processor.py:77
Methoddecode
Decode the given codes to the quantized representation.
inspiremusic/wavtokenizer/encoder/quantization/vq.py:168
Methoddecode
(self, embed_ind)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:288
Methoddecode
(self, q_indices: torch.Tensor)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:358
Methoddecode
(self, q_indices: torch.Tensor)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:415
Methoddelta
Return the current range width.
inspiremusic/wavtokenizer/encoder/quantization/ac.py:107
Methoddelta
(self)
inspiremusic/wavtokenizer/encoder/quantization/ac.py:198
Functiondemo_inspiremusic_con
(text, audio, model_name, chorus, output_sample_rate, max_generate_audio_seconds)
app.py:145
Functiondemo_inspiremusic_t2m
(text, model_name, chorus, output_sample_rate, max_generate_audio_seconds)
app.py:136
Functiondynamic_range_compression
(x, C=1, clip_val=1e-5)
inspiremusic/utils/audio_utils.py:63
Functiondynamic_range_compression
(x, C=1, clip_val=1e-5)
inspiremusic/music_tokenizer/meldataset.py:29
Functiondynamic_range_decompression
(x, C=1)
inspiremusic/utils/audio_utils.py:67
Functiondynamic_range_decompression
(x, C=1)
inspiremusic/music_tokenizer/meldataset.py:32
Methodencode
Encode a given input tensor with the specified frame rate at the given bandwidth. The RVQ encode method sets the appropriate number of quantiz
inspiremusic/wavtokenizer/encoder/quantization/vq.py:159
Methodencode
(self, x)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:282
Methodencode
(self, x: torch.Tensor, n_q: tp.Optional[int] = None)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:346
Methodencode
(self, x: torch.Tensor, n_q: tp.Optional[int] = None)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:403
Methodencode
(self, audio_input: torch.Tensor, **kwargs: Any)
inspiremusic/wavtokenizer/decoder/pretrained_model.py:143
Methodencode
(self, audio_input: torch.Tensor, **kwargs: Any)
inspiremusic/wavtokenizer/decoder/pretrained.py:189
Methodencode
(self, line: str, **kwargs)
inspiremusic/text/abs_tokenizer.py:32
Methodencodec_model_24khz
Return the pretrained causal 24khz model.
inspiremusic/wavtokenizer/encoder/model.py:264
Methodencodec_model_48khz
Return the pretrained 48khz model.
inspiremusic/wavtokenizer/encoder/model.py:284
Functionf32_pcm
Convert audio to float 32 bits PCM format. Args: wav (torch.tensor): Input wav tensor Returns: same wav in float32 PCM fo
inspiremusic/utils/audio_utils.py:404
Functionfade_in_out
(fade_in_mel, fade_out_mel, window)
inspiremusic/utils/common.py:193
Functionfilter
Filter sample according to feature and label length Inplace operation. Args:: data: Iterable[{key, wav, label, sample_ra
inspiremusic/dataset/processor.py:90
Methodforward
(self, x, ylens=None)
inspiremusic/flow/length_regulator.py:44
Methodforward
(self, x: torch.Tensor, mask: torch.Tensor)
inspiremusic/flow/decoder.py:41
Methodforward
(self, x: torch.Tensor)
inspiremusic/flow/decoder.py:75
Methodforward
Forward pass of the UNet1DConditional model. Args: x (torch.Tensor): shape (batch_size, in_channels, time) mask (_typ
inspiremusic/flow/decoder.py:202
Methodforward
( self, batch: dict, device: torch.device, )
inspiremusic/flow/flow.py:68
Methodforward
(self, x: Tensor)
inspiremusic/llm/llm.py:33
Methodforward
Args: text: (B, L, D) text_lengths: (B,) audio: (B, T, N) or (B, T) audio_lengths: (B,)
inspiremusic/llm/llm.py:189
Methodforward
(self, y: torch.Tensor, y_hat: torch.Tensor)
inspiremusic/hifigan/discriminator.py:17
Methodforward
( self, y: torch.Tensor, y_hat: torch.Tensor, bandwidth_id: torch.Tensor = None )
inspiremusic/hifigan/discriminator.py:53
Methodforward
(self, x: torch.Tensor, cond_embedding_id: torch.Tensor = None)
inspiremusic/hifigan/discriminator.py:119
Methodforward
( self, batch: dict, device: torch.device, )
inspiremusic/hifigan/hifigan.py:21
Methodforward
(self, x: torch.Tensor)
inspiremusic/hifigan/f0_predictor.py:52
Methodforward
(self, x: torch.Tensor)
inspiremusic/hifigan/generator.py:91
Methodforward
:param f0: [B, 1, sample_len], Hz :return: [B, 1, sample_len]
inspiremusic/hifigan/generator.py:138
Methodforward
Sine_source, noise_source = SourceModuleHnNSF(F0_sampled) F0_sampled (batchsize, length, 1) Sine_source (batchsize, length, 1
inspiremusic/hifigan/generator.py:204
Methodforward
( self, batch: dict, device: torch.device, )
inspiremusic/hifigan/generator.py:383
Methodforward
(self, x: torch.Tensor)
inspiremusic/wavtokenizer/encoder/msstftd.py:86
Methodforward
(self, x: torch.Tensor)
inspiremusic/wavtokenizer/encoder/msstftd.py:122
Methodforward
Args: indices (torch.Tensor): indices from the previous time step. Indices should be 1 + actual index in the code
inspiremusic/wavtokenizer/encoder/model.py:46
Methodforward
(self, x: torch.Tensor)
inspiremusic/wavtokenizer/encoder/model.py:189
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/modules/seanet.py:62
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/modules/seanet.py:143
Methodforward
(self, z)
inspiremusic/wavtokenizer/encoder/modules/seanet.py:236
Methodforward
(self, x)
inspiremusic/wavtokenizer/encoder/modules/norm.py:24
Methodforward
(self, x: torch.Tensor, x_past: torch.Tensor, past_context: int)
inspiremusic/wavtokenizer/encoder/modules/transformer.py:31
Methodforward
(self, x: torch.Tensor, states: tp.Optional[tp.List[torch.Tensor]] = None, off
inspiremusic/wavtokenizer/encoder/modules/transformer.py:101
← previousnext →401–500 of 702, ranked by callers