Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rongjiehuang/Multi-Singer
/ functions
Functions
243 in github.com/Rongjiehuang/Multi-Singer
⨍
Functions
243
◇
Types & classes
41
↓ 1 callers
Method
remove_weight_norm
Remove weight normalization module from all of the layers.
models/Discriminator.py:99
↓ 1 callers
Method
run
Run training.
train.py:86
↓ 1 callers
Function
save_to_file
(data, path)
frontend/audio_world_process.py:22
↓ 1 callers
Method
similarity_matrix
Computes the similarity matrix according the section 2.1 of GE2E. :param embeds: the embeddings as a tensor of shape (speakers_per_b
encoder/model.py:104
↓ 1 callers
Function
wav_to_mel_spectrogram
Derives a mel spectrogram ready to be used by the encoder from a preprocessed audio waveform. Note: this not a log-mel spectrogram. wav:
encoder/audio.py:61
↓ 1 callers
Function
wav_to_mel_spectrogram_torch
Derives a mel spectrogram ready to be used by the encoder from a preprocessed audio waveform. Note: this not a log-mel spectrogram. wav:
encoder/audio.py:105
↓ 1 callers
Function
world_feature_extract
WORLD feature extraction Args: queue (multiprocessing.Queue): the queue to store the file name of utterance wav_list (list): list
frontend/audio_world_process.py:173
↓ 1 callers
Function
write2file
(values, config, outdir)
preprocess.py:73
Method
__call__
(self, batch)
datasets/collater.py:55
Method
__call__
(self, batch)
datasets/collater.py:145
Method
__getitem__
Get ndarray for a given key.
utils/utils.py:186
Method
__getitem__
Get ndarray for a given key.
utils/utils.py:249
Method
__getitem__
(self, index)
encoder/data_objects/speaker_verification_dataset.py:23
Method
__getitem__
Get specified idx items. Args: idx (int): Index of the item. Returns: str: Utterance id (only in return_utt_
datasets/audio_mel_dataset.py:111
Method
__getitem__
Get specified idx items. Args: idx (int): Index of the item. Returns: str: Utterance id (only in return_utt_
datasets/audio_mel_dataset.py:205
Method
__getitem__
Get specified idx items. Args: idx (int): Index of the item. Returns: str: Utterance id (only in return_utt_
datasets/audio_mel_dataset.py:294
Method
__init__
Initialize trainer. Args: steps (int): Initial global steps. epochs (int): Initial global epochs. data_lo
train.py:45
Method
__init__
Initialize HDF5 scp loader. Args: feats_scp (str): Kaldi-style feats.scp file with hdf5 format. default_hdf5_path (st
utils/utils.py:166
Method
__init__
Initialize npy scp loader. Args: feats_scp (str): Kaldi-style feats.scp file with npy format.
utils/utils.py:231
Method
__init__
(self, root, name)
encoder/preprocess.py:15
Method
__init__
(self, device, loss_device)
encoder/model.py:13
Method
__init__
(self, env_name=None, update_every=10, server="http://localhost", disabled=False)
encoder/visualizations.py:28
Method
__init__
(self, speakers: List[Speaker], utterances_per_speaker: int, n_frames: int)
encoder/data_objects/speaker_batch.py:6
Method
__init__
(self, root: Path)
encoder/data_objects/speaker.py:7
Method
__init__
(self, frames_fpath, wave_fpath)
encoder/data_objects/utterance.py:5
Method
__init__
(self, source)
encoder/data_objects/random_cycler.py:12
Method
__init__
(self, dataset, speakers_per_batch, utterances_per_speaker, sampler=None, batch_sampler=None
encoder/data_objects/speaker_verification_dataset.py:35
Method
__init__
Initilize PQMF module. The cutoff_ratio and beta parameters are optimized for #subbands = 4. See dicussion in https://github.com/kan-
layers/pqmf.py:61
Method
__init__
Initialize 1x1 Conv1d module.
layers/residual_block.py:32
Method
__init__
Initialize ResidualBlock module. Args: kernel_size (int): Kernel size of dilation convolution layer. residual_channel
layers/residual_block.py:42
Method
__init__
Initialize ResidualBlock module. Args: kernel_size (int): Kernel size of dilation convolution layer. residual_channel
layers/residual_block.py:136
Method
__init__
Initialize ResidualStack module. Args: kernel_size (int): Kernel size of dilation convolution layer. channels (int):
layers/residual_stack.py:16
Method
__init__
Initialize Stretch2d module. Args: x_scale (int): X scaling factor (Time axis in spectrogram). y_scale (int): Y scali
layers/upsample.py:19
Method
__init__
Initialize upsampling network module. Args: upsample_scales (list): List of upsampling scales. nonlinear_activation (
layers/upsample.py:64
Method
__init__
Initialize convolution + upsampling network module. Args: upsample_scales (list): List of upsampling scales. nonlinea
layers/upsample.py:128
Method
__init__
Initialize CausalConvTranspose1d module.
layers/causal_conv.py:39
Method
__init__
Initialize TFReflectionPad1d module. Args: padding_size (int): Padding size.
layers/tf_layers.py:14
Method
__init__
Initialize TFConvTranspose1d( module. Args: channels (int): Number of channels. kernel_size (int): kernel size.
layers/tf_layers.py:41
Method
__init__
Initilize RAdam optimizer.
optimizers/radam.py:17
Method
__init__
Initialize customized collater for PyTorch DataLoader. Args: batch_max_steps (int): The maximum length of input signal in batch.
datasets/collater.py:20
Method
__init__
Initialize customized collater for PyTorch DataLoader. Args: batch_max_steps (int): The maximum length of input signal in batch.
datasets/collater.py:110
Method
__init__
Initialize dataset. Args: root_dir (str): Root directory including dumped files. audio_query (str): Query to find aud
datasets/audio_mel_dataset.py:25
Method
__init__
Initialize dataset. Args: root_dir (str): Root directory including dumped files. audio_query (str): Query to find aud
datasets/audio_mel_dataset.py:157
Method
__init__
Initialize dataset. Args: root_dir (str): Root directory including dumped files. mel_query (str): Query to find featu
datasets/audio_mel_dataset.py:245
Method
__init__
Initialize SingerConditional Discriminator module.
models/Discriminator.py:114
Method
__init__
(self, in_channels=1, out_channels=4, kernel_sizes=[7, 5],
models/Generator.py:238
Method
__init__
Initilize spectral convergence loss module.
losses/stft_loss.py:45
Method
__init__
Initilize los STFT magnitude loss module.
losses/stft_loss.py:66
Method
__init__
Initialize Multi resolution STFT loss module. Args: fft_sizes (list): List of FFT sizes. hop_sizes (list): List of ho
losses/stft_loss.py:123
Method
__iter__
Return the iterator of the scp file.
utils/utils.py:203
Method
__iter__
Return the iterator of the scp file.
utils/utils.py:257
Method
__len__
Return the length of the scp file.
utils/utils.py:199
Method
__len__
Return the length of the scp file.
utils/utils.py:253
Method
__len__
(self)
encoder/data_objects/speaker_verification_dataset.py:20
Method
__len__
Return dataset length. Returns: int: The length of dataset.
datasets/audio_mel_dataset.py:145
Method
__len__
Return dataset length. Returns: int: The length of dataset.
datasets/audio_mel_dataset.py:232
Method
__len__
Return dataset length. Returns: int: The length of dataset.
datasets/audio_mel_dataset.py:321
Method
__next__
(self)
encoder/data_objects/random_cycler.py:35
Method
__setstate__
Set state.
optimizers/radam.py:23
Method
_adjust_length
Adjust the audio and feature lengths. Note: Basically we assume that the length of x and c are adjusted through prepr
train.py:497
Method
_apply_weight_norm
(m)
models/Discriminator.py:92
Method
_apply_weight_norm
(m)
models/Generator.py:215
Method
_apply_weight_norm
(m)
models/Generator.py:370
Function
_merge_feat
merge acoustic features 最终生成的特征为[lf0, lf0与delta的卷积, lf0与acc的卷积, mgc, mgc与delta的卷积, mgc与acc的卷积, bap, bap与delta的卷积, bap与acc的卷积, vuv]
frontend/audio_world_process.py:92
Method
_remove_weight_norm
(m)
models/Discriminator.py:101
Method
_remove_weight_norm
(m)
models/Generator.py:204
Method
_remove_weight_norm
(m)
models/Generator.py:359
Method
call
Calculate forward propagation. Args: x (Tensor): Input tensor (B, T, 1, C). Returns: Tensor: Padded tensor (
layers/tf_layers.py:25
Method
call
Calculate forward propagation. Args: x (Tensor): Input tensor (B, T, 1, C). Returns: Tensors: Output tensor
layers/tf_layers.py:60
Method
call
Calculate forward propagation. Args: x (Tensor): Input tensor (B, T, 1, C). Returns: Tensor: Output tensor (
layers/tf_layers.py:115
Method
collate
(self, speakers)
encoder/data_objects/speaker_verification_dataset.py:54
Function
decode_mu_law
(y, mu, from_labels=True)
frontend/audio_preprocess.py:249
Function
download_pretrained_model
Download pretrained model form google drive. Args: tag (str): Pretrained model tag. download_dir (str): Directory to save downloa
utils/utils.py:319
Function
dynamic_range_compression
PARAMS ------ C: compression factor
frontend/audio_preprocess.py:304
Function
dynamic_range_decompression
PARAMS ------ C: compression factor used to compress
frontend/audio_preprocess.py:312
Function
embed_speaker
(wavs, **kwargs)
encoder/inference.py:288
Function
embed_utterance_torch_perceptual
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:247
Function
embed_utterance_torch_preprocess
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:150
Function
encode_mu_law
(x, mu)
frontend/audio_preprocess.py:244
Function
extract_feats
(wav, outdir, utt_id, config)
preprocess.py:29
Function
extract_feats
(world_analysis, wav_dir, feat_dir, filename, mgc_dim=60)
frontend/audio_world_process.py:83
Function
f0_to_coarse
(f0, f0_min=35, f0_max=1400, f0_bin = 256)
frontend/audio_preprocess.py:354
Function
float_2_label
(x, bits)
frontend/audio_preprocess.py:256
Method
forward
Calculate forward propagation. Args: x (Tensor): Input tensor (B, residual_channels, T). c (Tensor): Local conditioni
layers/residual_block.py:91
Method
forward
Calculate forward propagation. Args: x (Tensor): Input tensor (B, residual_channels, T). c (Tensor): Local conditioni
layers/residual_block.py:191
Method
forward
Calculate forward propagation. Args: c (Tensor): Input tensor (B, channels, T). Returns: Tensor: Output tens
layers/residual_stack.py:65
Method
forward
Calculate forward propagation. Args: x (Tensor): Input tensor (B, C, F, T). Returns: Tensor: Interpolated te
layers/upsample.py:33
Method
forward
Calculate forward propagation. Args: c : Input tensor (B, C, T). Returns: Tensor: Upsampled tensor (B, C, T'
layers/upsample.py:106
Method
forward
Calculate forward propagation. Args: c : Input tensor (B, C, T'). Returns: Tensor: Upsampled tensor (B, C, T
layers/upsample.py:167
Method
forward
Calculate forward propagation. Args: x (Tensor): Input tensor (B, in_channels, T). Returns: Tensor: Output t
layers/causal_conv.py:23
Method
forward
Calculate forward propagation. Args: x (Tensor): Input tensor (B, in_channels, T_in). Returns: Tensor: Outpu
layers/causal_conv.py:46
Method
forward
Calculate forward propagation. Args: x (Tensor): Input noise signal (B, 1, T). Returns: Tensor: Output tenso
models/Discriminator.py:76
Method
forward
Calculate forward propagation. Args: x (Tensor): Input noise signal (B, 1, T). embed (Tensor): Local conditioning aux
models/Discriminator.py:192
Method
forward
(self, x, c)
models/Generator.py:321
Method
forward
Calculate forward propagation. Args: x_mag (Tensor): Magnitude spectrogram of predicted signal (B, #frames, #freq_bins).
losses/stft_loss.py:49
Method
forward
Calculate forward propagation. Args: x_mag (Tensor): Magnitude spectrogram of predicted signal (B, #frames, #freq_bins).
losses/stft_loss.py:70
Method
forward
Calculate forward propagation. Args: x (Tensor): Predicted signal (B, T). y (Tensor): Groundtruth signal (B, T).
losses/stft_loss.py:100
Method
forward
Calculate forward propagation. Args: x (Tensor): Predicted signal (B, T). y (Tensor): Groundtruth signal (B, T).
losses/stft_loss.py:145
Method
forward_perceptual
Computes the embeddings of a batch of utterance spectrograms. :param utterances: batch of mel-scale filterbanks of same duration as
encoder/model.py:65
Method
get_path
Get hdf5 file path for a given key.
utils/utils.py:182
← previous
next →
101–200 of 243, ranked by callers