MCPcopy Create free account

hub / github.com/andabi/deep-voice-conversion / functions

Functions88 in github.com/andabi/deep-voice-conversion

↓ 5 callersMethodset_hparam_yaml
(self, case, default_file='hparams/default.yaml', user_file='hparams/hparams.yaml')
hparam.py:56
↓ 3 callersFunctioncbhg
(input, num_banks, hidden_units, num_highway_blocks, norm_type='bn', is_training=True, scope="cbhg")
modules.py:304
↓ 3 callersFunctionconv1d
Args: inputs: A 3-D tensor with shape of [batch, time, depth]. filters: An int. Number of outputs (=activation maps) size: An i
modules.py:131
↓ 3 callersMethodget_data
(self)
data_load.py:32
↓ 2 callersFunction_get_mfcc_and_spec
(wav, preemphasis_coeff, n_fft, win_length, hop_length)
data_load.py:138
↓ 2 callersFunctionamp2db
(amp)
audio.py:266
↓ 2 callersFunctiondb2amp
(db)
audio.py:270
↓ 2 callersFunctiondenormalize_db
Denormalize the normalized values to be original dB-scaled value. :param norm_db: Normalized spectrogram. :param max_db: Maximum dB.
audio.py:286
↓ 2 callersFunctioninv_preemphasis
Invert the pre-emphasized waveform to the original waveform. Parameters ---------- preem_wav : np.ndarray [shape=(n,)] The p
audio.py:231
↓ 2 callersFunctionload_hparam
(filename)
hparam.py:7
↓ 2 callersFunctionload_vocab
()
data_load.py:170
↓ 2 callersMethodnetwork
(self, x_mfcc, is_training)
models.py:50
↓ 2 callersFunctionnormalize
Applies {batch|layer} normalization. Args: inputs: A tensor with 2 or more dimensions, where the first dimension has `batch_siz
modules.py:37
↓ 2 callersFunctionnormalize_0_1
(values, max, min)
utils.py:33
↓ 2 callersFunctionpreemphasis
Emphasize high frequency range of the waveform by increasing power(squared amplitude). Parameters ---------- wav : np.ndarray [shape
audio.py:210
↓ 2 callersFunctionprenet
Prenet for Encoder and Decoder. Args: inputs: A 3D tensor of shape [N, T, hp.embed_size]. is_training: A boolean. scope: Optiona
modules.py:259
↓ 2 callersFunctionspec2wav
Get a waveform from the magnitude spectrogram by Griffin-Lim Algorithm. Parameters ---------- mag : np.ndarray [shape=(1 + n_fft/2,
audio.py:164
↓ 1 callersMethod_auto_setting
(self, case)
hparam.py:64
↓ 1 callersMethodacc
(self)
models.py:76
↓ 1 callersFunctionconv1d_banks
Applies a series of conv1d separately. Args: inputs: A 3d tensor with shape of [N, T, C] K: An int. The size of conv1d banks. Tha
modules.py:173
↓ 1 callersFunctionconvert
(predictor, df)
convert.py:44
↓ 1 callersFunctiondo_convert
(args, logdir1, logdir2)
convert.py:85
↓ 1 callersFunctioneval
(logdir)
eval1.py:27
↓ 1 callersFunctioneval
(logdir1, logdir2)
eval2.py:25
↓ 1 callersFunctionget_arguments
()
eval1.py:60
↓ 1 callersFunctionget_arguments
()
train2.py:76
↓ 1 callersFunctionget_arguments
()
train1.py:63
↓ 1 callersFunctionget_arguments
()
eval2.py:54
↓ 1 callersFunctionget_arguments
()
convert.py:131
↓ 1 callersFunctionget_eval_input_names
()
eval1.py:19
↓ 1 callersFunctionget_eval_input_names
()
eval2.py:17
↓ 1 callersFunctionget_eval_input_names
()
convert.py:77
↓ 1 callersFunctionget_eval_output_names
()
eval1.py:23
↓ 1 callersFunctionget_eval_output_names
()
eval2.py:21
↓ 1 callersFunctionget_eval_output_names
()
convert.py:81
↓ 1 callersFunctionget_mfccs_and_phones
This is applied in `train1` or `test1` phase.
data_load.py:66
↓ 1 callersFunctionget_mfccs_and_spectrogram
This is applied in `train2`, `test2` or `convert` phase.
data_load.py:115
↓ 1 callersFunctiongru
Applies a GRU. Args: inputs: A 3d tensor with shape of [N, T, C]. num_units: An int. The number of hidden units. bidirectio
modules.py:196
↓ 1 callersFunctionhighwaynet
Highway networks, see https://arxiv.org/abs/1505.00387 Args: inputs: A 3D tensor of shape [N, T, W]. num_units: An int or `None`. Spe
modules.py:279
↓ 1 callersFunctionlinear_to_mel
Convert a linear-spectrogram to mel-spectrogram. :param linear: Linear-spectrogram. :param sr: Sample rate. :param n_fft: FFT window
audio.py:252
↓ 1 callersMethodloss
(self)
models.py:68
↓ 1 callersMethodloss
(self)
models.py:152
↓ 1 callersFunctionmerge_dict
(user, default)
hparam.py:17
↓ 1 callersMethodnetwork
(self, ppgs, is_training)
models.py:131
↓ 1 callersFunctionnormalize_db
Normalize dB-scaled spectrogram values to be in range of 0~1. :param db: Decibel-scaled spectrogram. :param max_db: Maximum dB. :para
audio.py:274
↓ 1 callersFunctionplot_confusion_matrix
Parameters: correct_labels : These are your true classification categories. predict_labels : T
utils.py:43
↓ 1 callersFunctionread_wav
(path, sr, duration=None, mono=True)
audio.py:12
↓ 1 callersFunctionremove_all_files
(path)
utils.py:27
↓ 1 callersFunctiontrain
(args, logdir1, logdir2)
train2.py:25
↓ 1 callersFunctiontrain
(args, logdir)
train1.py:23
↓ 1 callersFunctionwav2melspec
(wav, sr, n_fft, win_length, hop_length, n_mels, time_first=True, **kwargs)
audio.py:325
↓ 1 callersFunctionwav2melspec_db
(wav, sr, n_fft, win_length, hop_length, n_mels, normalize=False, max_db=None, min_db=None,
audio.py:339
↓ 1 callersFunctionwav2spec
Get magnitude and phase spectrogram from waveforms. Parameters ---------- wav : np.ndarray [shape=(n,)] The real-valued wave
audio.py:122
↓ 1 callersFunctionwav_random_crop
(wav, sr, duration)
data_load.py:52
Method__call__
(self, n_prefetch=1000, n_thread=1)
data_load.py:23
Method__init__
Args: var_regex (string): regular expression to match variable to update. verbose (bool): whether to print warning ab
tensorpack_extension.py:43
Method__init__
(self, data_path, batch_size)
data_load.py:19
Method__init__
(self)
models.py:17
Method__init__
(self, dct=None)
hparam.py:39
Method__init__
(self)
hparam.py:49
Method_build_graph
(self, inputs)
models.py:24
Method_build_graph
(self, inputs)
models.py:93
Method_get_inputs
(self)
models.py:20
Method_get_inputs
(self)
models.py:86
Method_get_optimizer
(self)
models.py:45
Method_get_optimizer
(self)
models.py:117
Method_process
(self, grads)
tensorpack_extension.py:53
Function_split_path
Split path to basename, filename and extension. For example, 'a/b/c.wav' => ('a/b', 'c', 'wav') :param path: file path :return: basename,
audio.py:111
Functionattention_decoder
Applies a GRU to `inputs`, while attending `memory`. Args: inputs: A 3d tensor with shape of [N, T', C']. Decoder inputs. memory: A 3d
modules.py:230
Functioncrop_random_wav
Randomly cropped a part in a wav file. :param wav: a waveform :param length: length to be randomly cropped. :return: a randomly cropp
audio.py:60
Functiondenormalize_0_1
(normalized, max, min)
utils.py:38
Functiondynamic_range_compression
Execute dynamic range compression(https://en.wikipedia.org/wiki/Dynamic_range_compression) to dB. :param db: Decibel-scaled magnitudes :p
audio.py:298
Functionembed
Embeds a given tensor. Args: inputs: A `Tensor` with type `int32` or `int64` containing the ids to be looked up in `lookup ta
modules.py:9
Functionemphasize_magnitude
Emphasize a magnitude spectrogram by applying power function. This is used for removing noise. :param mag: magnitude spectrogram. :param
audio.py:314
Functionfix_length
(wav, length)
audio.py:54
Methodget_data
(self)
data_load.py:40
Functionload_data
(mode)
data_load.py:46
Functionmp3_to_wav
Read mp3 file from source path, convert it to wav and write it to target path. Necessary libraries: ffmpeg, libav. :param src_path: sou
audio.py:80
Functionprepro_audio
Read a wav, change sample rate, format, and average decibel and write to target path. :param source_path: source wav file path :param tar
audio.py:93
Functionread_mfcc
(prefix)
audio.py:21
Functionread_spectrogram
(prefix)
audio.py:32
Functionsplit_path
'a/b/c.wav' => ('a/b', 'c', 'wav') :param path: filepath = 'a/b/c.wav' :return: basename, filename, and extension = ('a/b', 'c', 'wav')
utils.py:16
Functionsplit_wav
(wav, top_db)
audio.py:43
Functiontrim_wav
(wav)
audio.py:49
Functionwav2mfcc
(wav, sr, n_fft, win_length, hop_length, n_mels, n_mfccs, preemphasis_coeff=0.97, time_first=True,
audio.py:357
Functionwrite_mfcc
(prefix, mfcc)
audio.py:27
Functionwrite_spectrogram
(prefix, spec)
audio.py:38
Functionwrite_wav
(wav, sr, path, format='wav', subtype='PCM_16')
audio.py:17