Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FunAudioLLM/FunMusic
/ functions
Functions
702 in github.com/FunAudioLLM/FunMusic
⨍
Functions
702
◇
Types & classes
154
↓ 1 callers
Method
forward_layers
(self, x: torch.Tensor, tgt_mask: torch.Tensor, memory: torch.Tensor,
inspiremusic/transformer/decoder.py:169
↓ 1 callers
Method
forward_layers
(self, xs: torch.Tensor, chunk_masks: torch.Tensor, pos_emb: torch.Tensor,
inspiremusic/transformer/encoder.py:166
↓ 1 callers
Method
forward_layers_checkpointed
(self, x: torch.Tensor, tgt_mask: torch.Tensor,
inspiremusic/transformer/decoder.py:178
↓ 1 callers
Method
forward_layers_checkpointed
(self, xs: torch.Tensor, chunk_masks: torch.Tensor,
inspiremusic/transformer/encoder.py:174
↓ 1 callers
Method
from_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 callers
Method
from_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 callers
Function
generator_loss
(disc_outputs)
inspiremusic/music_tokenizer/models.py:366
↓ 1 callers
Method
generator_loss
(self, fake, real)
inspiremusic/wavtokenizer/decoder/loss.py:146
↓ 1 callers
Function
get_args
()
inspiremusic/cli/inference.py:222
↓ 1 callers
Function
get_args
()
inspiremusic/bin/train.py:39
↓ 1 callers
Function
get_args
()
inspiremusic/bin/export_onnx.py:43
↓ 1 callers
Function
get_args
()
inspiremusic/bin/flow_only_infer.py:30
↓ 1 callers
Function
get_args
()
inspiremusic/bin/export_jit.py:29
↓ 1 callers
Function
get_args
()
inspiremusic/bin/inference.py:34
↓ 1 callers
Function
get_rank
()
inspiremusic/utils/tokenizer_utils.py:49
↓ 1 callers
Function
gradient_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 callers
Function
hint_once
(content, uid, rank=None)
inspiremusic/utils/hinter.py:8
↓ 1 callers
Method
infer
(self, audio_input: torch.Tensor, **kwargs: Any)
inspiremusic/wavtokenizer/decoder/pretrained.py:201
↓ 1 callers
Method
infer
(self, audio: torch.Tensor, bandwidth_id: torch.Tensor)
inspiremusic/wavtokenizer/decoder/feature_extractors.py:152
↓ 1 callers
Method
inference
(self, task: str = 'text-to-music', text: str = None, au
inspiremusic/cli/inference.py:104
↓ 1 callers
Function
init_dataset_and_dataloader
(args, configs)
inspiremusic/utils/train_utils.py:61
↓ 1 callers
Function
init_distributed
(args)
inspiremusic/utils/train_utils.py:47
↓ 1 callers
Method
init_embed_
(self, data)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:141
↓ 1 callers
Function
init_optimizer_and_scheduler
(args, configs, model)
inspiremusic/utils/train_utils.py:121
↓ 1 callers
Function
init_summarywriter
(args)
inspiremusic/utils/train_utils.py:155
↓ 1 callers
Method
initialize_weights
(self)
inspiremusic/flow/decoder.py:188
↓ 1 callers
Function
inspiremusic_join
(group_join, info_dict)
inspiremusic/utils/train_utils.py:185
↓ 1 callers
Function
int16_to_float32
(x)
inspiremusic/metrics/clap_score.py:25
↓ 1 callers
Function
is_primary
()
inspiremusic/utils/tokenizer_utils.py:45
↓ 1 callers
Function
keep_harmony
(next_token, current_chord)
inspiremusic/utils/common.py:106
↓ 1 callers
Function
keep_rhythm
(next_token, current_time_signature)
inspiremusic/utils/common.py:100
↓ 1 callers
Function
kmeans
(samples, num_clusters: int, num_iters: int = 10)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:74
↓ 1 callers
Function
laplace_smoothing
(x, n_categories: int, epsilon: float = 1e-5)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:53
↓ 1 callers
Function
load_wav
(full_path, sr)
inspiremusic/music_tokenizer/meldataset.py:25
↓ 1 callers
Method
log_info
(self, info, check_primary=True)
inspiremusic/utils/tokenizer_utils.py:127
↓ 1 callers
Function
log_per_save
(writer, info_dict)
inspiremusic/utils/train_utils.py:295
↓ 1 callers
Function
main
()
app.py:154
↓ 1 callers
Function
main
(args)
tools/extract_acoustic_token.py:27
↓ 1 callers
Function
main
(args)
tools/extract_semantic_token.py:27
↓ 1 callers
Function
main
(args)
tools/extract_embedding.py:23
↓ 1 callers
Function
main
(args)
tools/extract_speech_token.py:25
↓ 1 callers
Function
main
()
inspiremusic/cli/inference.py:275
↓ 1 callers
Function
main
()
inspiremusic/bin/train.py:111
↓ 1 callers
Function
main
()
inspiremusic/bin/export_onnx.py:54
↓ 1 callers
Function
main
()
inspiremusic/bin/flow_only_infer.py:55
↓ 1 callers
Function
main
()
inspiremusic/bin/export_jit.py:40
↓ 1 callers
Function
main
()
inspiremusic/bin/inference.py:74
↓ 1 callers
Function
main
()
examples/music_generation/local/prepare_data.py:13
↓ 1 callers
Function
make_attn
(in_channels, attn_type="vanilla")
inspiremusic/wavtokenizer/decoder/models.py:129
↓ 1 callers
Function
mel_loss
(real_speech, generated_speech, mel_transforms)
inspiremusic/utils/losses.py:14
↓ 1 callers
Function
normalize_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 callers
Method
output_size
(self)
inspiremusic/transformer/encoder.py:108
↓ 1 callers
Method
pad_to_period
(self, x)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:53
↓ 1 callers
Method
pad_unpad_sequence
(self, sos_eos_emb, embeddings, text_token, text_token_len, task_id_emb, audio_toke
inspiremusic/llm/llm.py:153
↓ 1 callers
Function
parse_trans
(line)
tools/make_parquet_list.py:78
↓ 1 callers
Method
position_encoding
(self, offset: Union[int, torch.Tensor], size: int)
inspiremusic/transformer/subsampling.py:30
↓ 1 callers
Method
position_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 callers
Method
preprocess
(self, y)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:227
↓ 1 callers
Function
process_audio
(file_path, target_sample_rate=24000)
inspiremusic/utils/audio_utils.py:50
↓ 1 callers
Method
pull
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 callers
Method
push
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 callers
Method
rel_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 callers
Function
relieve_repetition
(weighted_scores, recent_tokens, repetition_penalty=1.2)
inspiremusic/utils/common.py:112
↓ 1 callers
Function
remove_bracket
(text)
inspiremusic/utils/frontend_utils.py:32
↓ 1 callers
Method
remove_weight_norm
(self)
inspiremusic/music_tokenizer/models.py:434
↓ 1 callers
Method
replace_
(self, samples, mask)
inspiremusic/wavtokenizer/encoder/quantization/core_vq.py:153
↓ 1 callers
Function
replace_blank
(text: str)
inspiremusic/utils/frontend_utils.py:117
↓ 1 callers
Function
replace_corner_mark
(text)
inspiremusic/utils/frontend_utils.py:25
↓ 1 callers
Function
safe_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 callers
Function
save_config_to_yaml
(config, path)
inspiremusic/utils/tokenizer_utils.py:64
↓ 1 callers
Function
save_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 callers
Function
save_model
(model, model_name, info_dict)
inspiremusic/utils/train_utils.py:163
↓ 1 callers
Function
should_merge
(_text: str)
inspiremusic/utils/frontend_utils.py:71
↓ 1 callers
Method
solve_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 callers
Function
spectral_normalize_torch
(magnitudes)
inspiremusic/utils/audio_utils.py:79
↓ 1 callers
Function
spectral_normalize_torch
(magnitudes)
inspiremusic/music_tokenizer/meldataset.py:41
↓ 1 callers
Method
spectrogram
(self, x)
inspiremusic/hifigan/discriminator.py:107
↓ 1 callers
Method
spectrogram
(self, x: torch.Tensor)
inspiremusic/wavtokenizer/decoder/discriminators.py:190
↓ 1 callers
Method
spectrogram
(self, x)
inspiremusic/wavtokenizer/decoder/discriminator_dac.py:159
↓ 1 callers
Function
spell_out_number
(text: str, inflect_parser)
inspiremusic/utils/frontend_utils.py:41
↓ 1 callers
Function
subsequent_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 callers
Function
symexp
(x: torch.Tensor)
inspiremusic/wavtokenizer/decoder/heads.py:7
↓ 1 callers
Function
test
()
inspiremusic/utils/binary.py:126
↓ 1 callers
Function
test
()
inspiremusic/wavtokenizer/encoder/msstftd.py:132
↓ 1 callers
Function
test
()
inspiremusic/wavtokenizer/encoder/model.py:304
↓ 1 callers
Function
test
()
inspiremusic/wavtokenizer/encoder/modules/seanet.py:241
↓ 1 callers
Function
test
()
inspiremusic/wavtokenizer/encoder/quantization/ac.py:263
↓ 1 callers
Method
text2tokens
(self, line: str)
inspiremusic/text/abs_tokenizer.py:23
↓ 1 callers
Function
th_accuracy
Calculate accuracy. Args: pad_outputs (Tensor): Prediction tensors (B * Lmax, D). pad_targets (LongTensor): Target label tensors
inspiremusic/utils/common.py:71
↓ 1 callers
Function
tiny
Compute the tiny-value corresponding to an input's data type.
inspiremusic/utils/audio_utils.py:177
↓ 1 callers
Method
train_one_epoch
Train one epoch
inspiremusic/utils/executor.py:40
↓ 1 callers
Method
training_step
(self, batch, batch_idx, optimizer_idx, **kwargs)
inspiremusic/wavtokenizer/decoder/experiment.py:121
↓ 1 callers
Function
trim_audio
(audio_file, cut_seconds=5)
app.py:97
↓ 1 callers
Function
update_parameter_and_lr
(model, optimizer, scheduler, info_dict, scaler=None)
inspiremusic/utils/train_utils.py:243
↓ 1 callers
Function
upsample
Resample data. Inplace operation. Args: data: Iterable[{key, wav, label, sample_rate}] resample_rate: target
inspiremusic/dataset/processor.py:214
↓ 1 callers
Method
validation_epoch_end
(self, outputs)
inspiremusic/wavtokenizer/decoder/experiment.py:272
↓ 1 callers
Method
validation_step
(self, batch, batch_idx, **kwargs)
inspiremusic/wavtokenizer/decoder/experiment.py:227
↓ 1 callers
Function
wrap_cuda_model
(args, model)
inspiremusic/utils/train_utils.py:105
↓ 1 callers
Function
write_args
(args, path)
inspiremusic/utils/tokenizer_utils.py:79
Method
__enter__
(self)
inspiremusic/metrics/passt_kld.py:47
← previous
next →
201–300 of 702, ranked by callers