MCPcopy Create free account

hub / github.com/Rongjiehuang/Multi-Singer / functions

Functions243 in github.com/Rongjiehuang/Multi-Singer

↓ 11 callersMethodupdate
(self, loss, eer, step)
encoder/visualizations.py:102
↓ 11 callersMethodwrite_line
(self, line)
encoder/preprocess.py:32
↓ 10 callersFunctionread_hdf5
Read hdf5 dataset. Args: hdf5_name (str): Filename of hdf5 file. hdf5_path (str): Dataset name in hdf5 file. Return:
utils/utils.py:65
↓ 8 callersMethodstep
Run one step.
optimizers/radam.py:27
↓ 6 callersFunction_conv1d
convolve each column in data_matrix with kernel 类似CNN的那种1d卷积
frontend/audio_world_process.py:64
↓ 6 callersMethodkeys
Return the keys of the scp file.
utils/utils.py:261
↓ 6 callersMethodsave
(self)
encoder/visualizations.py:175
↓ 6 callersFunctionwrite_hdf5
Write dataset to hdf5. Args: hdf5_name (str): Hdf5 dataset filename. hdf5_path (str): Dataset path in hdf5. write_data (n
utils/utils.py:92
↓ 4 callersFunctionfind_files
Find files recursively. Args: root_dir (str): Root root_dir to find. query (str): Query to find. include_root_dir (bool):
utils/utils.py:43
↓ 3 callersMethod__init__
Initialize Conv1d module.
layers/residual_block.py:18
↓ 3 callersMethod__init__
Initialize Conv2d module.
layers/upsample.py:50
↓ 3 callersMethod__init__
Initialize STFT loss module.
losses/stft_loss.py:87
↓ 3 callersFunction_init_preprocess_dataset
(dataset_name, datasets_root, out_dir)
encoder/preprocess.py:53
↓ 3 callersFunction_preprocess_speaker_dirs
(speaker_dirs, dataset_name, datasets_root, out_dir, extension, skip_existing, lo
encoder/preprocess.py:61
↓ 3 callersFunction_stft
(y, hparams)
frontend/audio_preprocess.py:103
↓ 3 callersFunctioncompute_partial_slices
Computes where to split an utterance waveform and its corresponding mel spectrogram to obtain partial utterances of <partial_utterance_n_fra
encoder/inference.py:98
↓ 3 callersFunctionembed_frames_batch
Computes embeddings for a batch of mel spectrogram. :param frames_batch: a batch mel of spectrogram as a numpy array of float32 of shape
encoder/inference.py:82
↓ 3 callersFunctionload_from_file
(path, dimension)
frontend/audio_world_process.py:14
↓ 3 callersMethodremove_weight_norm
Remove weight normalization module from all of the layers.
models/Generator.py:202
↓ 3 callersFunctionsync
(device: torch.device)
encoder/train.py:9
↓ 3 callersFunctionsync
(device: torch.device)
encoder/plot_umap.py:9
↓ 2 callersMethod__init__
Initialize TFResidualStack module. Args: kernel_size (int): Kernel size. channles (int): Number of channels.
layers/tf_layers.py:77
↓ 2 callersFunction_amp_to_db
(x, hparams)
frontend/audio_preprocess.py:135
↓ 2 callersFunction_build_mel_basis
(hparams)
frontend/audio_preprocess.py:115
↓ 2 callersFunction_db_to_amp
(x)
frontend/audio_preprocess.py:140
↓ 2 callersFunction_denormalize
(D, hparams)
frontend/audio_preprocess.py:161
↓ 2 callersFunction_griffin_lim
librosa implementation of Griffin-Lim Based on https://github.com/librosa/librosa/issues/434
frontend/audio_preprocess.py:90
↓ 2 callersFunction_istft
(y, hparams)
frontend/audio_preprocess.py:107
↓ 2 callersFunction_normalize
(S, hparams)
frontend/audio_preprocess.py:144
↓ 2 callersMethod_write_to_tensorboard
Write to tensorboard.
train.py:468
↓ 2 callersMethoddo_gradient_ops
(self)
encoder/model.py:33
↓ 2 callersMethoddraw_projections
(self, embeds, utterances_per_speaker, step, out_fpath=None, max_speakers=10)
encoder/visualizations.py:155
↓ 2 callersFunctionembed_frames_batch_torch
Computes embeddings for a batch of mel spectrogram. :param frames_batch: a batch mel of spectrogram as Tensor (batch_size, n_frames, n_c
encoder/inference.py:51
↓ 2 callersMethodforward
Computes the embeddings of a batch of utterance spectrograms. :param utterances: batch of mel-scale filterbanks of same dura
encoder/model.py:41
↓ 2 callersFunctionget_hop_size
(hparams)
frontend/audio_preprocess.py:70
↓ 2 callersFunctioninv_preemphasis
(wav, k)
frontend/audio_preprocess.py:41
↓ 2 callersMethodload_checkpoint
Load checkpoint. Args: checkpoint_path (str): Checkpoint path to be loaded. load_only_params (bool): Whether to load
train.py:136
↓ 2 callersMethodlog_dataset
(self, dataset: SpeakerVerificationDataset)
encoder/visualizations.py:80
↓ 2 callersMethodlog_implementation
(self, params)
encoder/visualizations.py:89
↓ 2 callersMethodlog_params
(self)
encoder/visualizations.py:65
↓ 2 callersMethodloss
Computes the softmax loss according the section 2.1 of GE2E. :param embeds: the embeddings as a tensor of shape (speakers_pe
encoder/model.py:148
↓ 2 callersFunctionlow_pass_filter
Low pass filter Args: x (ndarray): Waveform sequence fs (int): Sampling frequency cutoff (float): Cutoff frequency of low
frontend/audio_world_process.py:244
↓ 2 callersFunctionpreemphasis
(wav, k)
frontend/audio_preprocess.py:37
↓ 2 callersMethodsample
(self, count: int)
encoder/data_objects/random_cycler.py:18
↓ 2 callersMethodsave_checkpoint
Save checkpoint. Args: checkpoint_path (str): Checkpoint path to be saved.
train.py:102
↓ 2 callersFunctionsimple_table
(item_tuples)
utils/utils.py:351
↓ 2 callersFunctionstft
Perform STFT and convert to magnitude spectrogram. Args: x (Tensor): Input signal tensor (B, T). fft_size (int): FFT size.
losses/stft_loss.py:15
↓ 2 callersMethodsynthesis
Synthesis with PQMF. Args: x (Tensor): Input tensor (B, subbands, T // subbands). Returns: Tensor: Output te
layers/pqmf.py:121
↓ 1 callersMethod__init__
(self, datasets_root: Path)
encoder/data_objects/speaker_verification_dataset.py:11
↓ 1 callersMethod__init__
Initialize CausalConv1d module.
layers/causal_conv.py:15
↓ 1 callersMethod__init__
Initialize Unconditional Discriminator module. Args: in_channels (int): Number of input channels. out_channels (int):
models/Discriminator.py:17
↓ 1 callersMethod__init__
Initialize Generator module. Args: in_channels (int): Number of input channels. out_channels (int): Number of output
models/Generator.py:22
↓ 1 callersMethod_check_eval_interval
(self)
train.py:479
↓ 1 callersMethod_check_log_interval
(self)
train.py:483
↓ 1 callersMethod_check_save_interval
(self)
train.py:473
↓ 1 callersMethod_check_train_finish
(self)
train.py:493
↓ 1 callersMethod_eval_epoch
Evaluate model one epoch.
train.py:382
↓ 1 callersMethod_eval_step
Evaluate model one step.
train.py:302
↓ 1 callersMethod_genearete_and_save_intermediate_result
Generate and save intermediate result.
train.py:419
↓ 1 callersMethod_get_receptive_field_size
(layers, stacks, kernel_size, dilation=lambda x: 2 ** x)
models/Generator.py:223
↓ 1 callersMethod_get_receptive_field_size
(layers, stacks, kernel_size, dilation=lambda x: 2 ** x)
models/Generator.py:378
↓ 1 callersFunction_lf02vuv
generate vuv feature by interpolating lf0
frontend/audio_world_process.py:26
↓ 1 callersFunction_linear_to_mel
(spectogram, hparams)
frontend/audio_preprocess.py:121
↓ 1 callersMethod_load_utterances
(self)
encoder/data_objects/speaker.py:13
↓ 1 callersMethod_log_params
(self)
encoder/preprocess.py:24
↓ 1 callersFunction_mel_to_linear
(mel_spectrogram, hparams)
frontend/audio_preprocess.py:128
↓ 1 callersMethod_train_epoch
Train model one epoch.
train.py:276
↓ 1 callersMethod_train_step
Train model one step.
train.py:159
↓ 1 callersMethodadd_sample
(self, **kwargs)
encoder/preprocess.py:35
↓ 1 callersMethodanalysis
Analysis with PQMF. Args: x (Tensor): Input tensor (B, 1, T). Returns: Tensor: Output tensor (B, subbands, T
layers/pqmf.py:108
↓ 1 callersMethodapply_weight_norm
Apply weight normalization module from all of the layers.
models/Discriminator.py:90
↓ 1 callersMethodapply_weight_norm
Apply weight normalization module from all of the layers.
models/Generator.py:213
↓ 1 callersMethodapply_weight_norm
Apply weight normalization module from all of the layers.
models/Generator.py:368
↓ 1 callersFunctionconvert_continuos_f0
Convert F0 to continuous F0 Args: f0 (ndarray): original f0 sequence with the shape (T) Return: (ndarray): continuous f0 with
frontend/audio_world_process.py:212
↓ 1 callersFunctiondesign_prototype_filter
Design prototype filter for PQMF. This method is based on `A Kaiser window approach for the design of prototype filters of cosine modulated f
layers/pqmf.py:15
↓ 1 callersFunctionembed_frames_batch_torch_perceptual
Computes embeddings for a batch of mel spectrogram. :param frames_batch: a batch mel of spectrogram as Tensor (batch_size, n_frames, n_c
encoder/inference.py:67
↓ 1 callersFunctionembed_utterance_torch
Computes an embedding for a single utterance. # TODO: handle multiple wavs to benefit from batching on GPU :param wav: a preprocessed (s
encoder/inference.py:199
↓ 1 callersMethodfinalize
(self)
encoder/preprocess.py:41
↓ 1 callersFunctionfind_f0
(mags)
frontend/audio_preprocess.py:338
↓ 1 callersMethodforward
Calculate forward propagation. Args: x (Tensor): Input noise signal (B, 1, T). c (Tensor): Local conditioning auxilia
models/Generator.py:139
↓ 1 callersMethodforward_perceptual2
Computes the embeddings of a batch of utterance spectrograms. :param utterances: batch of mel-scale filterbanks of same duration as
encoder/model.py:86
↓ 1 callersMethodget_frames
(self)
encoder/data_objects/utterance.py:9
↓ 1 callersMethodget_logs
(self)
encoder/data_objects/speaker_verification_dataset.py:26
↓ 1 callersMethodinference
Perform inference. Args: c (Union[Tensor, ndarray]): Local conditioning auxiliary features (T' ,C). x (Union[Tensor,
models/Generator.py:176
↓ 1 callersMethodkeys
Return the keys of the scp file.
utils/utils.py:207
↓ 1 callersFunctionlabel_2_float
(x, bits)
frontend/audio_preprocess.py:261
↓ 1 callersFunctionload_model
Load trained model. Args: checkpoint (str): Checkpoint path. config (dict): Configuration dict. Return: torch.nn.Mod
utils/utils.py:271
↓ 1 callersFunctionlogmelfilterbank
(audio, config, eps=1e-10)
frontend/audio_preprocess.py:201
↓ 1 callersFunctionmain
Run training process.
train.py:515
↓ 1 callersFunctionmain
Run preprocessing process.
preprocess.py:93
↓ 1 callersFunctionmain
Run decoding process.
inference.py:23
↓ 1 callersFunctionmain
Launch distributed processes.
distributed/launch.py:71
↓ 1 callersFunctionmoving_average
(array, width)
encoder/audio.py:152
↓ 1 callersFunctionnormalize
(S)
preprocess.py:25
↓ 1 callersFunctionnormalize_volume
(wav, target_dBFS, increase_only=False, decrease_only=False)
encoder/audio.py:168
↓ 1 callersFunctionnormalize_volume_torch
(wav, target_dBFS, increase_only=False, decrease_only=False)
encoder/audio.py:177
↓ 1 callersFunctionnum_frames
Compute number of time frames of spectrogram
frontend/audio_preprocess.py:265
↓ 1 callersFunctionparse_args
Parse arguments.
distributed/launch.py:17
↓ 1 callersFunctionpitchfeats
(wav,hparams)
frontend/audio_preprocess.py:321
↓ 1 callersMethodrandom_partial
Samples a batch of <count> unique partial utterances from the disk in a way that all utterances come up at least once every two cycl
encoder/data_objects/speaker.py:20
next →1–100 of 243, ranked by callers