MCPcopy Create free account

hub / github.com/AIGC-Audio/AudioGPT / functions

Functions2,752 in github.com/AIGC-Audio/AudioGPT

↓ 587 callersMethodappend
(self, iteration, statistics, data_type)
audio_detection/audio_infer/utils/utilities.py:152
↓ 220 callersMethodsize
Return an example's size as a float or tuple. This value is used when filtering a dataset with ``--max-positions``.
NeuralSeq/tasks/base_task.py:54
↓ 157 callersMethodload
load network parameters from model_dir/model_name.suffix.net :param model_dir: directory to load the model from :param suffix
mono2binaural/src/utils.py:54
↓ 148 callersMethodupdate
(self, val, n=1)
NeuralSeq/utils/__init__.py:38
↓ 127 callersFunction_load_metrics
(filename, sample_rate, window_size, hop_size, mel_bins, fmin, fmax, data_type, model_type, loss_typ
audio_detection/audio_infer/utils/plot_statistics.py:120
↓ 101 callersMethodregister_buffer
(self, name, attr)
text_to_audio/Make_An_Audio/ldm/models/diffusion/ddim.py:20
↓ 68 callersMethodkeys
Return the keys of the scp file.
NeuralSeq/modules/parallel_wavegan/utils/utils.py:167
↓ 58 callersMethodpad
(self)
NeuralSeq/utils/text_encoder.py:278
↓ 54 callersFunctionConv1d
(*args, **kwargs)
NeuralSeq/modules/diff/net.py:47
↓ 43 callersMethodclip
Ramdom clip x to win_length. Args: x (tensor) : (B, c_in, T, n_bins). cond (tensor) : (B, T, H). x_len (te
text_to_audio/Make_An_Audio/ldm/modules/discriminator/multi_window_disc.py:124
↓ 42 callersMethoddecode
(self, x_latent, cond, t_start, unconditional_guidance_scale=1.0, unconditional_conditioning=None,
text_to_audio/Make_An_Audio/ldm/models/diffusion/ddim.py:244
↓ 41 callersMethodload_state_dict
(self, state_dict)
audio_to_text/captioning/utils/train_util.py:118
↓ 37 callersMethodsave
save the network to model_dir/model_name.suffix.net :param model_dir: directory to save the model to :param suffix: suffix to
mono2binaural/src/utils.py:21
↓ 35 callersMethodfrom_pretrained
(cls, name="vggishish_lpaps")
text_to_audio/Make_An_Audio/ldm/modules/losses_audio/lpaps.py:39
↓ 28 callersMethod__init__
(self, inputdim, outputdim,time_resolution, **kwargs)
audio_detection/target_sound_detection/src/models.py:837
↓ 27 callersFunction_load_metrics0
(filename, sample_rate, window_size, hop_size, mel_bins, fmin, fmax, data_type, model_type, loss_type, b
audio_detection/audio_infer/utils/plot_statistics.py:17
↓ 27 callersMethodq_sample
(self, x_start, t, noise=None)
text_to_audio/Make_An_Audio/ldm/models/diffusion/ddpm.py:272
↓ 25 callersMethoddump
(self)
audio_detection/audio_infer/utils/utilities.py:156
↓ 25 callersFunctioninstantiate_from_config
(config,reload=False)
text_to_audio/Make_An_Audio/ldm/util.py:111
↓ 22 callersFunctioncreate_folder
(fd)
audio_detection/audio_infer/utils/utilities.py:13
↓ 22 callersMethoddecode
Transform a sequence of int ids into a human-readable string. EOS is not expected in ids. Args: ids: list of integers to be
NeuralSeq/utils/text_encoder.py:62
↓ 22 callersMethodencode
Transform a human-readable string into a sequence of int ids. The ids should be in the range [num_reserved_ids, vocab_size). Ids [0,
NeuralSeq/utils/text_encoder.py:46
↓ 21 callersMethodget_model
(self)
NeuralSeq/utils/pl_utils.py:469
↓ 21 callersFunctionload_statistics
(statistics_path)
audio_detection/audio_infer/utils/plot_for_paper.py:16
↓ 20 callersFunctiondenorm_f0
(f0, uv, hparams, pitch_padding=None, min=None, max=None)
NeuralSeq/utils/pitch_utils.py:63
↓ 20 callersMethodspec2wav
(self, mel, **kwargs)
NeuralSeq/vocoders/pwg.py:82
↓ 19 callersMethodema_scope
(self, context=None)
text_to_audio/Make_An_Audio/ldm/models/diffusion/ddpm.py:170
↓ 19 callersFunctionextract_into_tensor
(a, t, x_shape)
text_to_audio/Make_An_Audio/ldm/modules/diffusionmodules/util.py:96
↓ 18 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
text_to_audio/Make_An_Audio/ldm/modules/diffusionmodules/util.py:218
↓ 16 callersFunctionexists
(val)
text_to_audio/Make_An_Audio/ldm/modules/x_transformer.py:54
↓ 16 callersFunctionis_sil_phoneme
(p)
NeuralSeq/data_gen/tts/data_gen_utils.py:351
↓ 16 callersMethodstep
(self, num_updates)
NeuralSeq/utils/training_utils.py:16
↓ 15 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx=None)
NeuralSeq/modules/commons/common_layers.py:62
↓ 15 callersMethod__init__
(self, *, ch, out_ch, ch_mult=(1,2,4,8), num_res_blocks, attn_resolutions, dropout=0.0, resam
text_to_audio/Make_An_Audio/ldm/modules/diffusionmodules/model.py:217
↓ 15 callersFunctionnsw_test_case
(raw_text)
NeuralSeq/utils/text_norm.py:712
↓ 15 callersMethodplot_mel
(self, batch_idx, spec, spec_out, name=None)
NeuralSeq/tasks/tts/fs2.py:287
↓ 14 callersMethod__init__
(self, dims)
audio_to_text/captioning/models/encoder.py:124
↓ 14 callersMethod_extract_pattern
Parameters ---------- pattern : regex to extract pattern inc : increment of line count after extraction Retur
NeuralSeq/data_gen/tts/data_gen_utils.py:208
↓ 14 callersFunctionget_pitch
:param wav_data: [T] :param mel: [T, 80] :param hparams: :return:
NeuralSeq/data_gen/tts/data_gen_utils.py:150
↓ 14 callersFunctioninit_layer
Initialize a Linear or Convolutional layer.
sound_extraction/model/modules.py:431
↓ 13 callersFunctionLinear
(in_features, out_features, bias=True)
NeuralSeq/modules/commons/common_layers.py:79
↓ 13 callersMethod__init__
(self, sample_rate, window_size, hop_size, mel_bins, fmin, fmax, classes_num)
audio_detection/audio_infer/pytorch/models.py:142
↓ 13 callersFunction_load_metrics_classwise
(filename, sample_rate, window_size, hop_size, mel_bins, fmin, fmax, data_type, model_type, loss_type, b
audio_detection/audio_infer/utils/plot_statistics.py:76
↓ 13 callersMethodencode
(self, x)
text_to_audio/Make_An_Audio/ldm/models/autoencoder.py:96
↓ 13 callersFunctionextract
(a, t, x_shape)
NeuralSeq/modules/diff/shallow_diffusion_tts.py:32
↓ 13 callersMethodnormalize
(self, remove_punc=True)
NeuralSeq/utils/text_norm.py:619
↓ 13 callersMethodregister_buffer
(self, name, attr)
text_to_audio/Make_An_Audio/ldm/models/diffusion/plms.py:18
↓ 13 callersMethodsample
(self, batch_size=16, return_intermediates=False)
text_to_audio/Make_An_Audio/ldm/models/diffusion/ddpm.py:266
↓ 13 callersFunctionset_hparams
(config='', exp_name='', hparams_str='', print_hparams=True, global_hparams=True)
NeuralSeq/utils/hparams.py:23
↓ 12 callersMethod__init__
(self, kernel_size, dilation)
NeuralSeq/modules/GenerSpeech/model/prosody_util.py:276
↓ 12 callersMethod__init__
(self, emb_dim, vocab_size, fc_emb_dim, attn_emb_dim, dropout, d_model, **kwargs)
audio_to_text/captioning/models/decoder.py:48
↓ 12 callersMethod__init__
(self, in_channels, out_channels, kernel_size, activation, momentum)
sound_extraction/model/modules.py:8
↓ 12 callersMethod__init__
(self, value, fn)
text_to_audio/Make_An_Audio/ldm/modules/x_transformer.py:118
↓ 12 callersMethoddecode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
text_to_audio/Make_An_Audio/ldm/models/diffusion/ddpm_audio.py:352
↓ 12 callersFunctionget_padding
(kernel_size, dilation=1)
NeuralSeq/modules/hifigan/hifigan.py:26
↓ 12 callersFunctionget_padding
(kernel_size, dilation=1)
text_to_audio/Make_An_Audio/vocoder/hifigan/modules.py:13
↓ 12 callersFunctionget_padding
(kernel_size, dilation=1)
text_to_audio/Make_An_Audio/vocoder/bigvgan/models.py:27
↓ 12 callersMethodinverse
(self, magnitude, phase)
sound_extraction/utils/stft.py:118
↓ 12 callersMethodtokenize
(self, caption)
sound_extraction/model/text_encoder.py:29
↓ 11 callersMethod__init__
(self, n_embed, n_layer, vocab_size=30522, max_seq_len=77, device="cuda",use_tokenizer=True,
text_to_audio/Make_An_Audio/ldm/modules/encoders/modules.py:83
↓ 11 callersMethodclip
Ramdom clip x to win_length. Args: x (tensor) : (B, c_in, T, n_bins). cond (tensor) : (B, T, H). x_len (te
NeuralSeq/modules/syntaspeech/multi_window_disc.py:81
↓ 11 callersFunctionextract
(a, t, x_shape)
NeuralSeq/modules/diff/diffusion.py:156
↓ 11 callersFunctioninit_layer
Initialize a Linear or Convolutional layer.
text_to_audio/Make_An_Audio/ldm/modules/encoders/open_clap/pann_model.py:17
↓ 11 callersMethodl1_loss
(self, decoder_output, target)
NeuralSeq/tasks/tts/fs2.py:156
↓ 11 callersMethodstate_dict
(self)
audio_to_text/captioning/utils/train_util.py:115
↓ 10 callersFunctionLayerNorm
(normalized_shape, eps=1e-5, elementwise_affine=True, export=False)
NeuralSeq/modules/commons/common_layers.py:70
↓ 10 callersFunctionNormalize
(in_channels, num_groups=32)
text_to_audio/Make_An_Audio/ldm/modules/diffusionmodules/model.py:38
↓ 10 callersMethod__init__
(self, in_channels, hidden_channels, kernel_size,
NeuralSeq/modules/GenerSpeech/model/glow_modules.py:497
↓ 10 callersMethod__init__
(self, in_channels, out_channels, filter_channels, kernel_size, p_dropout=0., activation=None)
NeuralSeq/modules/commons/rel_transformer.py:241
↓ 10 callersMethod__init__
(self, *args)
NeuralSeq/modules/commons/common_layers.py:11
↓ 10 callersMethoddecode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
text_to_audio/Make_An_Audio/ldm/models/diffusion/ddpm.py:704
↓ 10 callersMethodinference
(self, text)
audio-chatgpt.py:117
↓ 10 callersFunctionnonlinearity
(x)
text_to_audio/Make_An_Audio/ldm/modules/diffusionmodules/model.py:33
↓ 10 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
text_to_audio/Make_An_Audio/ldm/modules/diffusionmodules/util.py:199
↓ 9 callersMethod__init__
(self, hidden_size, num_layers, ffn_kernel_size=9, dropout=0.0, num_heads=2, use_pos_embed=Tr
NeuralSeq/modules/commons/transformer.py:653
↓ 9 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1)
text_to_audio/Make_An_Audio/ldm/modules/diffusionmodules/openaimodel.py:100
↓ 9 callersFunctiondefault
(val, d)
text_to_audio/Make_An_Audio/ldm/util.py:90
↓ 9 callersFunctionexists
(x)
text_to_audio/Make_An_Audio/ldm/util.py:86
↓ 9 callersMethodload_state_dict
(self, state)
audio_detection/audio_infer/utils/data_generator.py:169
↓ 9 callersFunctionlog_txt_as_img
(wh, xc, size=10)
text_to_audio/Make_An_Audio/ldm/util.py:50
↓ 9 callersMethodout2mel
(self, out)
NeuralSeq/modules/fastspeech/fs2.py:235
↓ 9 callersMethodsample
(self)
text_to_audio/Make_An_Audio/ldm/modules/distributions/distributions.py:17
↓ 9 callersMethodstart
(cls)
NeuralSeq/tasks/base_task.py:221
↓ 9 callersMethodstate_dict
(self)
audio_detection/audio_infer/utils/data_generator.py:163
↓ 9 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
text_to_audio/Make_An_Audio/ldm/modules/encoders/open_clap/htsat.py:202
↓ 8 callersMethod__init__
(self, dim, dim_out, groups=8)
NeuralSeq/modules/diff/diffusion.py:104
↓ 8 callersMethod__init__
Construct an LayerNorm object.
NeuralSeq/modules/fastspeech/tts_modules.py:43
↓ 8 callersFunctionconv_conv_block
(in_channel, out_channel)
audio_to_text/captioning/models/encoder.py:223
↓ 8 callersMethodcwt2f0_norm
(self, cwt_spec, mean, std, mel2ph)
NeuralSeq/modules/fastspeech/fs2.py:228
↓ 8 callersMethoddecode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
text_to_audio/Make_An_Audio/ldm/models/diffusion/ddpm_audio_inpaint.py:348
↓ 8 callersMethodget_learned_conditioning
(self, c)
text_to_audio/Make_An_Audio/ldm/models/diffusion/ddpm_audio.py:166
↓ 8 callersFunctionlinear
Create a linear module.
text_to_audio/Make_An_Audio/ldm/modules/diffusionmodules/util.py:231
↓ 8 callersMethodload_ckpt
(self, ckpt_base_dir, current_model_name=None, model_name='model', force=True, strict=True)
NeuralSeq/tasks/base_task.py:109
↓ 8 callersMethodmeshgrid
(self, h, w)
text_to_audio/Make_An_Audio/ldm/models/diffusion/ddpm.py:562
↓ 8 callersFunctionspec_to_figure
(spec, vmin=None, vmax=None)
NeuralSeq/utils/plot.py:8
↓ 8 callersFunctionsqueeze
(x, x_mask=None, n_sqz=2)
NeuralSeq/modules/GenerSpeech/model/glow_modules.py:742
↓ 8 callersMethodtransform
(self, input_data)
sound_extraction/utils/stft.py:88
↓ 7 callersMethod__init__
(self, h, channels, kernel_size=3, dilation=(1, 3, 5))
NeuralSeq/modules/hifigan/hifigan.py:31
↓ 7 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
text_to_audio/Make_An_Audio/ldm/modules/encoders/open_clap/htsat.py:149
↓ 7 callersMethod__init__
( self, embed_dim: int, audio_cfg: CLAPAudioCfp, text_cfg: CLAPTextCfg,
text_to_audio/Make_An_Audio/ldm/modules/encoders/open_clap/model.py:423
next →1–100 of 2,752, ranked by callers