MCPcopy Create free account

hub / github.com/FunAudioLLM/FunMusic / functions

Functions702 in github.com/FunAudioLLM/FunMusic

Method__exit__
(self, *exc)
inspiremusic/metrics/passt_kld.py:54
Method__getitem__
(self, index: int)
inspiremusic/wavtokenizer/decoder/dataset.py:59
Method__getitem__
(self, index)
inspiremusic/music_tokenizer/meldataset.py:144
Method__init__
( self, channels: int, sampling_ratios: Tuple, out_channels: i
inspiremusic/flow/length_regulator.py:22
Method__init__
(self, dim: int, dim_out: int)
inspiremusic/flow/decoder.py:31
Method__init__
(self, dim: int, dim_out: int, time_emb_dim: int, groups: int = 8)
inspiremusic/flow/decoder.py:47
Method__init__
( self, in_channels: int, out_channels: int, kernel_size: int, stride:
inspiremusic/flow/decoder.py:53
Method__init__
This decoder requires an input with the same shape of the target. So, if your text content is shorter or longer than the outputs, ple
inspiremusic/flow/decoder.py:81
Method__init__
(self, input_size: int = 512, output_size: int = 128, outpu
inspiremusic/flow/flow.py:25
Method__init__
(self, in_channels, cfm_params, estimator: torch.nn.Module = None)
inspiremusic/flow/flow_matching.py:20
Method__init__
(self)
inspiremusic/utils/executor.py:27
Method__init__
(self, bits: int, fo: tp.IO[bytes])
inspiremusic/utils/binary.py:64
Method__init__
(self, bits: int, fo: tp.IO[bytes])
inspiremusic/utils/binary.py:99
Method__init__
(self, optimizer, *, warmup_steps=None, wa
inspiremusic/utils/scheduler.py:84
Method__init__
(self, optimizer, *, constant_steps=None,
inspiremusic/utils/scheduler.py:147
Method__init__
( self, optimizer, *, warmup_steps=None, warmup_ratio=None, ho
inspiremusic/utils/scheduler.py:212
Method__init__
( self, optimizer, *, warmup_steps=None, warmup_ratio=None, co
inspiremusic/utils/scheduler.py:295
Method__init__
(self, optimizer, *, max_steps, min_lr=1e-
inspiremusic/utils/scheduler.py:446
Method__init__
(self, optimizer, *, max_steps, min_lr=0,
inspiremusic/utils/scheduler.py:473
Method__init__
(self, optimizer, *, max_steps, min_lr=0,
inspiremusic/utils/scheduler.py:499
Method__init__
(self, optimizer, *, d_model, warmup_steps
inspiremusic/utils/scheduler.py:560
Method__init__
From Nemo: Implementation of the Noam Hold Annealing policy from the SqueezeFormer paper. Unlike NoamAnnealing, the
inspiremusic/utils/scheduler.py:625
Method__init__
( self, optimizer: torch.optim.Optimizer, )
inspiremusic/utils/scheduler.py:726
Method__init__
(self, args)
inspiremusic/utils/tokenizer_utils.py:95
Method__init__
(self, dim: int)
inspiremusic/llm/llm.py:29
Method__init__
(self, source, f, *args, **kw)
inspiremusic/dataset/dataset.py:28
Method__init__
(self, shuffle=True, partition=True)
inspiremusic/dataset/dataset.py:53
Method__init__
(self, lists, shuffle=True, partition=True)
inspiremusic/dataset/dataset.py:111
Method__init__
(self)
inspiremusic/metrics/passt_kld.py:44
Method__init__
( self, mpd: nn.Module, mrd: nn.Module )
inspiremusic/hifigan/discriminator.py:10
Method__init__
Multi-Resolution Discriminator module adapted from https://github.com/descriptinc/descript-audio-codec. Additionally, it allows incor
inspiremusic/hifigan/discriminator.py:33
Method__init__
(self, generator, discriminator, mel_spec_transform, multi_mel_spectral_recon_loss_weight=45,
inspiremusic/hifigan/hifigan.py:9
Method__init__
(self, num_class: int = 1, in_channels: int = 80, cond_chan
inspiremusic/hifigan/f0_predictor.py:20
Method__init__
( self, channels: int = 512, kernel_size: int = 3, dilations: List[int] = [1,
inspiremusic/hifigan/generator.py:45
Method__init__
(self, sampling_rate, upsample_scale, harmonic_num=0, sine_amp=0.1, add_noise_std=0.003, voic
inspiremusic/hifigan/generator.py:189
Method__init__
( self, in_channels: int = 80, base_channels: int = 512, nb_ha
inspiremusic/hifigan/generator.py:228
Method__init__
(self, configs: Callable, get_tokenizer: Callable, llm_mode
inspiremusic/cli/frontend.py:24
Method__init__
(self, model_dir, load_jit=True, load_onnx=False, dtype = "fp16", fast = False, fp16=True, hub="modelscope", r
inspiremusic/cli/inspiremusic.py:26
Method__init__
(self, model_name: str, model_dir: str = None, min_generate
inspiremusic/cli/inference.py:38
Method__init__
(self, llm: torch.nn.Module, flow: torch.nn.Module, music_t
inspiremusic/cli/model.py:30
Method__init__
(self, filters: int, in_channels: int = 1, out_channels: int = 1, n_ffts: tp.List[int] = [102
inspiremusic/wavtokenizer/encoder/msstftd.py:110
Method__init__
(self, encoder: m.SEANetEncoder, decoder: m.SEANetDecoder,
inspiremusic/wavtokenizer/encoder/model.py:81
Method__init__
(self, dim: int, kernel_sizes: tp.List[int] = [3, 1], dilations: tp.List[int] = [1, 1], activ
inspiremusic/wavtokenizer/encoder/modules/seanet.py:36
Method__init__
(self, channels: int = 1, dimension: int = 128, n_filters: int = 32, n_residual_layers: int = 1,
inspiremusic/wavtokenizer/encoder/modules/seanet.py:174
Method__init__
(self, normalized_shape: tp.Union[int, tp.List[int], torch.Size], **kwargs)
inspiremusic/wavtokenizer/encoder/modules/norm.py:21
Method__init__
(self, dim, hidden_scale: float = 4., num_heads: int = 8, num_layers: int = 5, max_period: fl
inspiremusic/wavtokenizer/encoder/modules/transformer.py:77
Method__init__
(self, *args, causal: bool = False, norm: str = 'none', norm_kwargs: tp.Dict[str, tp.Any] = {
inspiremusic/wavtokenizer/encoder/modules/conv.py:112
Method__init__
(self, *args, norm: str = 'none', norm_kwargs: tp.Dict[str, tp.Any] = {}, **kwargs)
inspiremusic/wavtokenizer/encoder/modules/conv.py:129
Method__init__
(self, *args, causal: bool = False, norm: str = 'none', norm_kwargs: tp.Dict[str, tp.Any] = {
inspiremusic/wavtokenizer/encoder/modules/conv.py:146
Method__init__
(self, *args, norm: str = 'none', norm_kwargs: tp.Dict[str, tp.Any] = {}, **kwargs)
inspiremusic/wavtokenizer/encoder/modules/conv.py:163
Method__init__
(self, in_channels: int, out_channels: int, kernel_size: int, stride: int = 1, causal: bool =
inspiremusic/wavtokenizer/encoder/modules/conv.py:218
Method__init__
(self, dimension: int, num_layers: int = 2, skip: bool = True)
inspiremusic/wavtokenizer/encoder/modules/lstm.py:17
Method__init__
( self, dimension: int = 256, n_q: int = 8, bins: int = 1024, decay: f
inspiremusic/wavtokenizer/encoder/quantization/vq.py:41
Method__init__
( self, dim: int, codebook_size: int, codebook_dim: tp.Optional[int] = None,
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:250
Method__init__
(self, *, num_quantizers, **kwargs)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:322
Method__init__
(self, *, num_quantizers, **kwargs)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:371
Method__init__
(self, fo: tp.IO[bytes], total_range_bits: int = 24)
inspiremusic/wavtokenizer/encoder/quantization/ac.py:96
Method__init__
(self, fo: tp.IO[bytes], total_range_bits: int = 24)
inspiremusic/wavtokenizer/encoder/quantization/ac.py:185
Method__init__
( self, sample_rate: int = 24000, n_fft: int = 1024, hop_length: int = 256, n_mels: int = 100, )
inspiremusic/wavtokenizer/decoder/loss.py:17
Method__init__
(self, periods: Tuple[int] = (2, 3, 5, 7, 11), num_embeddings: int = None)
inspiremusic/wavtokenizer/decoder/discriminators.py:20
Method__init__
Multi-Resolution Discriminator module adapted from https://github.com/mindslab-ai/univnet. Additionally, it allows incorporating cond
inspiremusic/wavtokenizer/decoder/discriminators.py:102
Method__init__
( self, resolution: Tuple[int, int, int], channels: int = 64, in_channels: int
inspiremusic/wavtokenizer/decoder/discriminators.py:142
Method__init__
(self, n_fft: int, hop_length: int, win_length: int, padding: str = "same")
inspiremusic/wavtokenizer/decoder/spectral_ops.py:22
Method__init__
(self, frame_len: int, padding: str = "same")
inspiremusic/wavtokenizer/decoder/spectral_ops.py:192
Method__init__
( self, feature_extractor: FeatureExtractor, backbone: Backbone, head: FourierHead, multip
inspiremusic/wavtokenizer/decoder/pretrained_model.py:40
Method__init__
(self, *, in_channels, out_channels=None, conv_shortcut=False, dropout, temb_channels=512)
inspiremusic/wavtokenizer/decoder/models.py:20
Method__init__
( self, input_channels: int, dim: int, intermediate_dim: int, num_laye
inspiremusic/wavtokenizer/decoder/models.py:166
Method__init__
( self, input_channels, dim, num_blocks, layer_scale_init_value=None, )
inspiremusic/wavtokenizer/decoder/models.py:251
Method__init__
(self, train_params: DataConfig, val_params: DataConfig)
inspiremusic/wavtokenizer/decoder/dataset.py:29
Method__init__
( self, feature_extractor: FeatureExtractor, backbone: Backbone, head: FourierHead, )
inspiremusic/wavtokenizer/decoder/pretrained.py:40
Method__init__
( self, dim: int, intermediate_dim: int, layer_scale_init_value: Optional[floa
inspiremusic/wavtokenizer/decoder/modules.py:21
Method__init__
(self, num_embeddings: int, embedding_dim: int, eps: float = 1e-6)
inspiremusic/wavtokenizer/decoder/modules.py:73
Method__init__
( self, feature_extractor: FeatureExtractor, backbone: Backbone, head: Fourier
inspiremusic/wavtokenizer/decoder/experiment.py:346
Method__init__
( self, dim: int, mdct_frame_len: int, padding: str = "same", sample_rate: int = None, clip_audio: boo
inspiremusic/wavtokenizer/decoder/heads.py:85
Method__init__
(self, dim: int, mdct_frame_len: int, padding: str = "same", clip_audio: bool = False)
inspiremusic/wavtokenizer/decoder/heads.py:136
Method__init__
(self, rate: int = 1, sample_rate: int = 48000)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:75
Method__init__
Complex multi-band spectrogram discriminator. Parameters ---------- window_length : int Window length of STFT.
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:111
Method__init__
Discriminator that combines multiple discriminators. Parameters ---------- rates : list, optional sampling rates
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:196
Method__init__
(self, sample_rate=24000, n_fft=1024, hop_length=256, n_mels=100, padding="center")
inspiremusic/wavtokenizer/decoder/feature_extractors.py:53
Method__init__
Construct a PositionwiseFeedForward object.
inspiremusic/transformer/positionwise_feed_forward.py:33
Method__init__
( self, vocab_size: int, encoder_output_size: int, attention_heads: int = 4,
inspiremusic/transformer/decoder.py:276
Method__init__
Construct an DecoderLayer object.
inspiremusic/transformer/decoder_layer.py:41
Method__init__
( self, input_size: int, dtype: str = "fp16", pretrain_path: s
inspiremusic/transformer/qwen_encoder.py:97
Method__init__
( self, input_size: int, dtype: str = "fp16", pretrain_path: s
inspiremusic/transformer/qwen_encoder.py:151
Method__init__
(self, idim: int, odim: int, dropout_rate: float, pos_enc_class: torch.nn.Module)
inspiremusic/transformer/subsampling.py:39
Method__init__
Construct an linear object.
inspiremusic/transformer/subsampling.py:79
Method__init__
Construct an Conv1dSubsampling2 object.
inspiremusic/transformer/subsampling.py:128
Method__init__
Construct an Conv2dSubsampling4 object.
inspiremusic/transformer/subsampling.py:183
Method__init__
Construct an Conv2dSubsampling6 object.
inspiremusic/transformer/subsampling.py:239
Method__init__
Construct an Conv2dSubsampling8 object.
inspiremusic/transformer/subsampling.py:292
Method__init__
Construct an linear object.
inspiremusic/transformer/subsampling.py:348
Method__init__
Construct an LabelSmoothingLoss object.
inspiremusic/transformer/label_smoothing_loss.py:54
Method__init__
Construct an RelPositionMultiHeadedAttention object.
inspiremusic/transformer/attention.py:209
Method__init__
Construct an ConvolutionModule object. Args: channels (int): The number of channels of conv layers. kernel_size (int):
inspiremusic/transformer/convolution.py:27
Method__init__
Construct TransformerEncoder See Encoder for the meaning of each parameter.
inspiremusic/transformer/encoder.py:344
Method__init__
Construct ConformerEncoder Args: input_size to use_dynamic_chunk, see in BaseEncoder positionwise_conv_kernel_size (i
inspiremusic/transformer/encoder.py:393
Method__init__
Initialization. INPUT: - in_features: shape of the input - alpha: trainable parameter alpha is in
inspiremusic/transformer/activation.py:50
Method__init__
Initialize class.
inspiremusic/transformer/embedding.py:129
Method__init__
(self, d_model: int, dropout_rate: float, max_len: int = 1500)
inspiremusic/transformer/embedding.py:154
Method__init__
(self, d_model: int, dropout_rate: float, max_len: int = 448)
inspiremusic/transformer/embedding.py:171
← previousnext →301–400 of 702, ranked by callers