MCPcopy Create free account

hub / github.com/MoonInTheRiver/DiffSinger / functions

Functions694 in github.com/MoonInTheRiver/DiffSinger

↓ 37 callersMethodsize
Return an example's size as a float or tuple. This value is used when filtering a dataset with ``--max-positions``.
tasks/base_task.py:54
↓ 26 callersMethodupdate
(self, val, n=1)
utils/__init__.py:38
↓ 21 callersMethodget_model
(self)
utils/pl_utils.py:469
↓ 18 callersMethodpad
(self)
utils/text_encoder.py:278
↓ 15 callersFunctionnsw_test_case
(raw_text)
utils/text_norm.py:712
↓ 14 callersMethod_extract_pattern
Parameters ---------- pattern : regex to extract pattern inc : increment of line count after extraction Retur
data_gen/tts/data_gen_utils.py:208
↓ 13 callersFunctiondenorm_f0
(f0, uv, hparams, pitch_padding=None, min=None, max=None)
utils/pitch_utils.py:63
↓ 12 callersFunctionget_padding
(kernel_size, dilation=1)
modules/hifigan/hifigan.py:26
↓ 11 callersFunctionextract
(a, t, x_shape)
usr/diff/diffusion.py:155
↓ 11 callersFunctionextract
(a, t, x_shape)
usr/diff/shallow_diffusion_tts.py:155
↓ 10 callersMethod__init__
(self, *args)
modules/commons/common_layers.py:11
↓ 8 callersFunctionLinear
(in_features, out_features, bias=True)
modules/commons/common_layers.py:80
↓ 8 callersMethod__init__
(self, dim, dim_out, groups=8)
usr/diff/diffusion.py:103
↓ 8 callersMethod__init__
(self, dim, dim_out, groups=8)
usr/diff/shallow_diffusion_tts.py:103
↓ 7 callersMethod__init__
(self, h, channels, kernel_size=3, dilation=(1, 3, 5))
modules/hifigan/hifigan.py:31
↓ 7 callersMethod__init__
Construct an LayerNorm object.
modules/fastspeech/tts_modules.py:43
↓ 7 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,
utils/text_encoder.py:46
↓ 7 callersFunctionnum2chn
(number_string, numbering_type=NUMBERING_TYPES[1], big=False, traditional=False, alt_zero=False, a
utils/text_norm.py:319
↓ 7 callersMethodplot_mel
(self, batch_idx, spec, spec_out, name=None)
tasks/tts/fs2.py:289
↓ 7 callersFunctionset_hparams
(config='', exp_name='', hparams_str='', print_hparams=True, global_hparams=True)
utils/hparams.py:23
↓ 6 callersFunctionConv1d
(*args, **kwargs)
usr/diff/net.py:47
↓ 6 callersFunctionEmbedding
(num_embeddings, embedding_dim, padding_idx=None)
modules/commons/common_layers.py:62
↓ 6 callersFunctionis_sil_phoneme
(p)
data_gen/tts/data_gen_utils.py:346
↓ 6 callersMethodkeys
Return the keys of the scp file.
modules/parallel_wavegan/utils/utils.py:167
↓ 6 callersMethodprocess_data
(self, prefix)
data_gen/tts/base_binarizer.py:123
↓ 6 callersMethodstep
(self, num_updates)
utils/training_utils.py:16
↓ 6 callersMethodwav2spec
(wav_fn, return_linear=False)
vocoders/pwg.py:106
↓ 5 callersFunctionLayerNorm
(normalized_shape, eps=1e-5, elementwise_affine=True, export=False)
modules/commons/common_layers.py:70
↓ 5 callersMethod__init__
(self, samp_rate, harmonic_num=0, sine_amp=0.1, noise_std=0.003, voiced_thre
modules/parallel_wavegan/models/source.py:25
↓ 5 callersMethodcardinal2chntext
(self)
utils/text_norm.py:431
↓ 5 callersFunctionf0_to_coarse
(f0)
utils/pitch_utils.py:22
↓ 5 callersMethodis_function_implemented
(self, f_name)
utils/pl_utils.py:1606
↓ 5 callersMethodl1_loss
(self, decoder_output, target)
tasks/tts/fs2.py:158
↓ 5 callersMethodload_ckpt
(self, ckpt_base_dir, current_model_name=None, model_name='model', force=True, strict=True)
tasks/base_task.py:108
↓ 5 callersMethodnormalize
(self, remove_punc=True)
utils/text_norm.py:619
↓ 5 callersMethodstart
(cls)
tasks/base_task.py:220
↓ 5 callersMethodtraining_step
(self, sample, batch_idx, optimizer_idx=-1)
tasks/base_task.py:126
↓ 4 callersMethod_f02uv
(self, f0)
modules/parallel_wavegan/models/source.py:38
↓ 4 callersMethod_in_proj
(self, input, start=0, end=None)
modules/commons/common_layers.py:454
↓ 4 callersMethodadd_energy_loss
(self, energy_pred, energy, losses)
tasks/tts/fs2.py:279
↓ 4 callersFunctionchn2num
(chinese_string, numbering_type=NUMBERING_TYPES[1])
utils/text_norm.py:233
↓ 4 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
utils/text_encoder.py:62
↓ 4 callersFunctionf0_to_figure
(f0_gt, f0_cwt=None, f0_pred=None)
utils/plot.py:45
↓ 4 callersFunctionget_lf0_cwt
input: signal of shape (N) output: Wavelet_lf0 of shape(10, N), scales of shape(10)
utils/cwt.py:53
↓ 4 callersFunctionget_pitch
:param wav_data: [T] :param mel: [T, 80] :param hparams: :return:
data_gen/tts/data_gen_utils.py:150
↓ 4 callersMethodnorm_spec
(self, x)
usr/diff/shallow_diffusion_tts.py:343
↓ 4 callersFunctionread_hdf5
Read hdf5 dataset. Args: hdf5_name (str): Filename of hdf5 file. hdf5_path (str): Dataset name in hdf5 file. Return:
modules/parallel_wavegan/utils/utils.py:39
↓ 4 callersMethodreduce_distributed_output
(self, output, num_gpus)
utils/pl_utils.py:1050
↓ 4 callersMethodremove_weight_norm
Remove weight normalization module from all of the layers.
modules/parallel_wavegan/models/parallel_wavegan.py:173
↓ 4 callersFunctionstft
Perform STFT and convert to magnitude spectrogram. Args: x (Tensor): Input signal tensor (B, T). fft_size (int): FFT size.
modules/parallel_wavegan/losses/stft_loss.py:12
↓ 4 callersMethodtest_step
(self, sample, batch_idx)
usr/diffsinger_task.py:191
↓ 4 callersMethodvalidation_step
(self, sample, batch_idx)
usr/task.py:63
↓ 3 callersMethod__init__
(self, in_dims=80)
usr/diff/net.py:82
↓ 3 callersMethod__init__
(self, in_dim=80, out_dim=256, kernel=5, n_layers=3, strides=None)
modules/fastspeech/pe.py:8
↓ 3 callersMethod__init__
Initialize Conv2d module.
modules/parallel_wavegan/layers/upsample.py:50
↓ 3 callersMethod__init__
Initialize STFT loss module.
modules/parallel_wavegan/losses/stft_loss.py:79
↓ 3 callersMethod__init__
(self, date=None, chntext=None)
utils/text_norm.py:508
↓ 3 callersMethodadd_dur_loss
:param dur_pred: [B, T], float, log scale :param mel2ph: [B, T] :param txt_tokens: [B, T] :param losses: :re
tasks/tts/fs2.py:177
↓ 3 callersMethodadd_f0_loss
(self, p_pred, f0, uv, losses, nonpadding)
tasks/tts/fs2.py:254
↓ 3 callersMethodadd_pitch_loss
(self, output, sample, losses)
tasks/tts/fs2.py:221
↓ 3 callersMethodbuild_dataloader
(self, dataset, shuffle, max_tokens=None, max_sentences=None, required_batch_size_mul
tasks/tts/tts.py:49
↓ 3 callersMethodcopy_trainer_model_properties
(self, model)
utils/pl_utils.py:776
↓ 3 callersMethodcreate
(cls, index, value, numbering_type=NUMBERING_TYPES[1], small_unit=False)
utils/text_norm.py:94
↓ 3 callersFunctioncreate_window
(window_size, channel)
modules/commons/ssim.py:324
↓ 3 callersMethodcwt2f0_norm
(self, cwt_spec, mean, std, mel2ph)
usr/diff/diffusion.py:326
↓ 3 callersMethodcwt2f0_norm
(self, cwt_spec, mean, std, mel2ph)
modules/fastspeech/fs2.py:239
↓ 3 callersMethodeos
(self)
utils/text_encoder.py:281
↓ 3 callersMethodfinalize
(self)
utils/indexed_datasets.py:52
↓ 3 callersFunctionget_cont_lf0
(f0, frame_period=5.0)
utils/cwt.py:46
↓ 3 callersFunctionget_vocoder_cls
(hparams)
vocoders/base_vocoder.py:11
↓ 3 callersMethodin_proj_v
(self, value)
modules/commons/common_layers.py:444
↓ 3 callersFunctionmel2ph_to_dur
(mel2ph, T_txt, max_dur=None)
modules/fastspeech/tts_modules.py:242
↓ 3 callersMethodplot_wav
(self, batch_idx, gt_wav, wav_out, is_mel=False, gt_f0=None, f0=None, name=None)
usr/diffspeech_task.py:112
↓ 3 callersMethodq_sample
(self, x_start, t, noise=None)
usr/diff/shallow_diffusion_tts.py:286
↓ 3 callersMethodrun_model
(self, model, sample, return_output=False, infer=False)
usr/task.py:26
↓ 3 callersMethodspec2wav
(self, mel, **kwargs)
usr/singingvocoder/highgan.py:45
↓ 2 callersMethod__init__
Initialize Conv1d module.
modules/parallel_wavegan/layers/residual_block.py:18
↓ 2 callersMethod__init__
Initialize TFResidualStack module. Args: kernel_size (int): Kernel size. channles (int): Number of channels.
modules/parallel_wavegan/layers/tf_layers.py:77
↓ 2 callersMethod__init__
Initialize Parallel WaveGAN Generator module. Args: in_channels (int): Number of input channels. out_channels (int):
modules/parallel_wavegan/models/parallel_wavegan.py:24
↓ 2 callersMethod__init__
Initialize MelGANGenerator module. Args: in_channels (int): Number of input channels. out_channels (int): Number of o
modules/parallel_wavegan/models/melgan.py:21
↓ 2 callersMethod_f02sine
f0_values: (batchsize, length, dim) where dim indicates fundamental tone and overtones
modules/parallel_wavegan/models/source.py:44
↓ 2 callersMethod_forward
(self, xs, x_masks=None, is_inference=False)
modules/fastspeech/tts_modules.py:106
↓ 2 callersMethod_get_item
(self, index)
tasks/tts/pe.py:41
↓ 2 callersMethod_init_vocab
Initialize vocabulary with tokens from token_generator.
utils/text_encoder.py:261
↓ 2 callersFunction_ssim
(img1, img2, window, window_size, channel, size_average=True)
modules/commons/ssim.py:331
↓ 2 callersMethodadd_item
(self, item)
utils/indexed_datasets.py:47
↓ 2 callersMethodadd_tqdm_metrics
(self, metrics)
utils/pl_utils.py:938
↓ 2 callersMethodafter_infer
(self, predictions)
tasks/tts/fs2.py:365
↓ 2 callersMethodbuild_model
(self)
tasks/base_task.py:105
↓ 2 callersFunctionbuild_phone_encoder
(data_dir)
data_gen/tts/data_gen_utils.py:340
↓ 2 callersMethodbuild_spk_map
(self)
data_gen/tts/base_binarizer.py:71
↓ 2 callersMethodconfigure_optimizers
(self)
tasks/base_task.py:201
↓ 2 callersFunctioncopy_tensor
(src, dst)
utils/__init__.py:49
↓ 2 callersFunctioncreate_system
根据数字系统类型返回创建相应的数字系统,默认为 mid NUMBERING_TYPES = ['low', 'mid', 'high']: 中文数字系统类型 low: '兆' = '亿' * '十' = $10^{9}$, '京' = '兆' * '十', et
utils/text_norm.py:191
↓ 2 callersFunctioncwt2f0
(cwt_spec, mean, std, cwt_scales)
utils/cwt.py:135
↓ 2 callersFunctiondefault
(val, d)
usr/diff/diffusion.py:22
↓ 2 callersFunctiondefault
(val, d)
usr/diff/shallow_diffusion_tts.py:22
↓ 2 callersMethoddenorm_spec
(self, x)
usr/diff/shallow_diffusion_tts.py:346
↓ 2 callersMethoddigit2chntext
(self)
utils/text_norm.py:447
↓ 2 callersMethodevaluate
Run evaluation code. :param model: PT model :param dataloaders: list of PT dataloaders :param max_batches: Scalar :pa
utils/pl_utils.py:1146
next →1–100 of 694, ranked by callers