MCPcopy Create free account

hub / github.com/FunAudioLLM/FunMusic / functions

Functions702 in github.com/FunAudioLLM/FunMusic

↓ 1 callersMethodforward_layers
(self, x: torch.Tensor, tgt_mask: torch.Tensor, memory: torch.Tensor,
inspiremusic/transformer/decoder.py:169
↓ 1 callersMethodforward_layers
(self, xs: torch.Tensor, chunk_masks: torch.Tensor, pos_emb: torch.Tensor,
inspiremusic/transformer/encoder.py:166
↓ 1 callersMethodforward_layers_checkpointed
(self, x: torch.Tensor, tgt_mask: torch.Tensor,
inspiremusic/transformer/decoder.py:178
↓ 1 callersMethodforward_layers_checkpointed
(self, xs: torch.Tensor, chunk_masks: torch.Tensor,
inspiremusic/transformer/encoder.py:174
↓ 1 callersMethodfrom_hparams
Class method to create a new Vocos model instance from hyperparameters stored in a yaml configuration file.
inspiremusic/wavtokenizer/decoder/pretrained.py:49
↓ 1 callersMethodfrom_hparams0828
Class method to create a new Vocos model instance from hyperparameters stored in a yaml configuration file.
inspiremusic/wavtokenizer/decoder/pretrained_model.py:53
↓ 1 callersFunctiongenerator_loss
(disc_outputs)
inspiremusic/music_tokenizer/models.py:366
↓ 1 callersMethodgenerator_loss
(self, fake, real)
inspiremusic/wavtokenizer/decoder/loss.py:146
↓ 1 callersFunctionget_args
()
inspiremusic/cli/inference.py:222
↓ 1 callersFunctionget_args
()
inspiremusic/bin/train.py:39
↓ 1 callersFunctionget_args
()
inspiremusic/bin/export_onnx.py:43
↓ 1 callersFunctionget_args
()
inspiremusic/bin/flow_only_infer.py:30
↓ 1 callersFunctionget_args
()
inspiremusic/bin/export_jit.py:29
↓ 1 callersFunctionget_args
()
inspiremusic/bin/inference.py:34
↓ 1 callersFunctionget_rank
()
inspiremusic/utils/tokenizer_utils.py:49
↓ 1 callersFunctiongradient_norm
Compute the gradient norm. Args: model (Module): PyTorch model. norm_type (float, optional): Type of the norm. Defaults to 2
inspiremusic/wavtokenizer/decoder/helpers.py:58
↓ 1 callersFunctionhint_once
(content, uid, rank=None)
inspiremusic/utils/hinter.py:8
↓ 1 callersMethodinfer
(self, audio_input: torch.Tensor, **kwargs: Any)
inspiremusic/wavtokenizer/decoder/pretrained.py:201
↓ 1 callersMethodinfer
(self, audio: torch.Tensor, bandwidth_id: torch.Tensor)
inspiremusic/wavtokenizer/decoder/feature_extractors.py:152
↓ 1 callersMethodinference
(self, task: str = 'text-to-music', text: str = None, au
inspiremusic/cli/inference.py:104
↓ 1 callersFunctioninit_dataset_and_dataloader
(args, configs)
inspiremusic/utils/train_utils.py:61
↓ 1 callersFunctioninit_distributed
(args)
inspiremusic/utils/train_utils.py:47
↓ 1 callersMethodinit_embed_
(self, data)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:141
↓ 1 callersFunctioninit_optimizer_and_scheduler
(args, configs, model)
inspiremusic/utils/train_utils.py:121
↓ 1 callersFunctioninit_summarywriter
(args)
inspiremusic/utils/train_utils.py:155
↓ 1 callersMethodinitialize_weights
(self)
inspiremusic/flow/decoder.py:188
↓ 1 callersFunctioninspiremusic_join
(group_join, info_dict)
inspiremusic/utils/train_utils.py:185
↓ 1 callersFunctionint16_to_float32
(x)
inspiremusic/metrics/clap_score.py:25
↓ 1 callersFunctionis_primary
()
inspiremusic/utils/tokenizer_utils.py:45
↓ 1 callersFunctionkeep_harmony
(next_token, current_chord)
inspiremusic/utils/common.py:106
↓ 1 callersFunctionkeep_rhythm
(next_token, current_time_signature)
inspiremusic/utils/common.py:100
↓ 1 callersFunctionkmeans
(samples, num_clusters: int, num_iters: int = 10)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:74
↓ 1 callersFunctionlaplace_smoothing
(x, n_categories: int, epsilon: float = 1e-5)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:53
↓ 1 callersFunctionload_wav
(full_path, sr)
inspiremusic/music_tokenizer/meldataset.py:25
↓ 1 callersMethodlog_info
(self, info, check_primary=True)
inspiremusic/utils/tokenizer_utils.py:127
↓ 1 callersFunctionlog_per_save
(writer, info_dict)
inspiremusic/utils/train_utils.py:295
↓ 1 callersFunctionmain
()
app.py:154
↓ 1 callersFunctionmain
(args)
tools/extract_acoustic_token.py:27
↓ 1 callersFunctionmain
(args)
tools/extract_semantic_token.py:27
↓ 1 callersFunctionmain
(args)
tools/extract_embedding.py:23
↓ 1 callersFunctionmain
(args)
tools/extract_speech_token.py:25
↓ 1 callersFunctionmain
()
inspiremusic/cli/inference.py:275
↓ 1 callersFunctionmain
()
inspiremusic/bin/train.py:111
↓ 1 callersFunctionmain
()
inspiremusic/bin/export_onnx.py:54
↓ 1 callersFunctionmain
()
inspiremusic/bin/flow_only_infer.py:55
↓ 1 callersFunctionmain
()
inspiremusic/bin/export_jit.py:40
↓ 1 callersFunctionmain
()
inspiremusic/bin/inference.py:74
↓ 1 callersFunctionmain
()
examples/music_generation/local/prepare_data.py:13
↓ 1 callersFunctionmake_attn
(in_channels, attn_type="vanilla")
inspiremusic/wavtokenizer/decoder/models.py:129
↓ 1 callersFunctionmel_loss
(real_speech, generated_speech, mel_transforms)
inspiremusic/utils/losses.py:14
↓ 1 callersFunctionnormalize_loudness
Normalize an input signal to a user loudness in dB LKFS. Audio loudness is defined according to the ITU-R BS.1770-4 recommendation. Args:
inspiremusic/utils/audio_utils.py:244
↓ 1 callersMethodoutput_size
(self)
inspiremusic/transformer/encoder.py:108
↓ 1 callersMethodpad_to_period
(self, x)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:53
↓ 1 callersMethodpad_unpad_sequence
(self, sos_eos_emb, embeddings, text_token, text_token_len, task_id_emb, audio_toke
inspiremusic/llm/llm.py:153
↓ 1 callersFunctionparse_trans
(line)
tools/make_parquet_list.py:78
↓ 1 callersMethodposition_encoding
(self, offset: Union[int, torch.Tensor], size: int)
inspiremusic/transformer/subsampling.py:30
↓ 1 callersMethodposition_encoding
For getting encoding in a streaming fashion Attention!!!!! we apply dropout only once at the whole utterance level in a none
inspiremusic/transformer/embedding.py:272
↓ 1 callersMethodpreprocess
(self, y)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:227
↓ 1 callersFunctionprocess_audio
(file_path, target_sample_rate=24000)
inspiremusic/utils/audio_utils.py:50
↓ 1 callersMethodpull
Pull a single value from the stream, potentially reading some extra bytes from the underlying file-object. Returns `None` whe
inspiremusic/utils/binary.py:106
↓ 1 callersMethodpush
Push a new value to the stream. This will immediately write as many uint8 as possible to the underlying file-object.
inspiremusic/utils/binary.py:70
↓ 1 callersMethodrel_shift
Compute relative positional encoding. Args: x (torch.Tensor): Input tensor (batch, head, time1, 2*time1-1). time1 mea
inspiremusic/transformer/attention.py:225
↓ 1 callersFunctionrelieve_repetition
(weighted_scores, recent_tokens, repetition_penalty=1.2)
inspiremusic/utils/common.py:112
↓ 1 callersFunctionremove_bracket
(text)
inspiremusic/utils/frontend_utils.py:32
↓ 1 callersMethodremove_weight_norm
(self)
inspiremusic/music_tokenizer/models.py:434
↓ 1 callersMethodreplace_
(self, samples, mask)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:153
↓ 1 callersFunctionreplace_blank
(text: str)
inspiremusic/utils/frontend_utils.py:117
↓ 1 callersFunctionreplace_corner_mark
(text)
inspiremusic/utils/frontend_utils.py:25
↓ 1 callersFunctionsafe_log
Computes the element-wise logarithm of the input tensor with clipping to avoid near-zero values. Args: x (Tensor): Input tensor.
inspiremusic/wavtokenizer/decoder/feature_extractors.py:13
↓ 1 callersFunctionsave_config_to_yaml
(config, path)
inspiremusic/utils/tokenizer_utils.py:64
↓ 1 callersFunctionsave_figure_to_numpy
Save a matplotlib figure to a numpy array. Args: fig (Figure): Matplotlib figure object. Returns: ndarray: Numpy array
inspiremusic/wavtokenizer/decoder/helpers.py:10
↓ 1 callersFunctionsave_model
(model, model_name, info_dict)
inspiremusic/utils/train_utils.py:163
↓ 1 callersFunctionshould_merge
(_text: str)
inspiremusic/utils/frontend_utils.py:71
↓ 1 callersMethodsolve_euler
Fixed euler solver for ODEs. Args: x (torch.Tensor): random noise t_span (torch.Tensor): n_timesteps interpol
inspiremusic/flow/flow_matching.py:56
↓ 1 callersFunctionspectral_normalize_torch
(magnitudes)
inspiremusic/utils/audio_utils.py:79
↓ 1 callersFunctionspectral_normalize_torch
(magnitudes)
inspiremusic/music_tokenizer/meldataset.py:41
↓ 1 callersMethodspectrogram
(self, x)
inspiremusic/hifigan/discriminator.py:107
↓ 1 callersMethodspectrogram
(self, x: torch.Tensor)
inspiremusic/wavtokenizer/decoder/discriminators.py:190
↓ 1 callersMethodspectrogram
(self, x)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:159
↓ 1 callersFunctionspell_out_number
(text: str, inflect_parser)
inspiremusic/utils/frontend_utils.py:41
↓ 1 callersFunctionsubsequent_mask
Create mask for subsequent steps (size, size). This mask is used only in decoder which works in an auto-regressive mode. This means the curre
inspiremusic/utils/mask.py:53
↓ 1 callersFunctionsymexp
(x: torch.Tensor)
inspiremusic/wavtokenizer/decoder/heads.py:7
↓ 1 callersFunctiontest
()
inspiremusic/utils/binary.py:126
↓ 1 callersFunctiontest
()
inspiremusic/wavtokenizer/encoder/msstftd.py:132
↓ 1 callersFunctiontest
()
inspiremusic/wavtokenizer/encoder/model.py:304
↓ 1 callersFunctiontest
()
inspiremusic/wavtokenizer/encoder/modules/seanet.py:241
↓ 1 callersFunctiontest
()
inspiremusic/wavtokenizer/encoder/quantization/ac.py:263
↓ 1 callersMethodtext2tokens
(self, line: str)
inspiremusic/text/abs_tokenizer.py:23
↓ 1 callersFunctionth_accuracy
Calculate accuracy. Args: pad_outputs (Tensor): Prediction tensors (B * Lmax, D). pad_targets (LongTensor): Target label tensors
inspiremusic/utils/common.py:71
↓ 1 callersFunctiontiny
Compute the tiny-value corresponding to an input's data type.
inspiremusic/utils/audio_utils.py:177
↓ 1 callersMethodtrain_one_epoch
Train one epoch
inspiremusic/utils/executor.py:40
↓ 1 callersMethodtraining_step
(self, batch, batch_idx, optimizer_idx, **kwargs)
inspiremusic/wavtokenizer/decoder/experiment.py:121
↓ 1 callersFunctiontrim_audio
(audio_file, cut_seconds=5)
app.py:97
↓ 1 callersFunctionupdate_parameter_and_lr
(model, optimizer, scheduler, info_dict, scaler=None)
inspiremusic/utils/train_utils.py:243
↓ 1 callersFunctionupsample
Resample data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] resample_rate: target
inspiremusic/dataset/processor.py:214
↓ 1 callersMethodvalidation_epoch_end
(self, outputs)
inspiremusic/wavtokenizer/decoder/experiment.py:272
↓ 1 callersMethodvalidation_step
(self, batch, batch_idx, **kwargs)
inspiremusic/wavtokenizer/decoder/experiment.py:227
↓ 1 callersFunctionwrap_cuda_model
(args, model)
inspiremusic/utils/train_utils.py:105
↓ 1 callersFunctionwrite_args
(args, path)
inspiremusic/utils/tokenizer_utils.py:79
Method__enter__
(self)
inspiremusic/metrics/passt_kld.py:47
← previousnext →201–300 of 702, ranked by callers