Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SonyCSLParis/Comparing-Representations-for-Audio-Synthesis-using-GANs
/ functions
Functions
319 in github.com/SonyCSLParis/Comparing-Representations-for-Audio-Synthesis-using-GANs
⨍
Functions
319
◇
Types & classes
49
Method
__init__
(self, dimLatent, scaleDepth, outputShape,
pg_gan/custom_layers.py:539
Method
__init__
r""" Args: attribKeysOrder (dict): dictionary containing the all the possible categories of t
pg_gan/ac_criterion.py:15
Method
__init__
r""" Args: - pathdb (string): path to the directorty containing the image dataset. - useGPU (bool): set to
pg_gan/gan_trainer.py:21
Method
__init__
(self, num_classes=128, aux_logits=True, transform_input=False)
evaluation/train_inception_model.py:21
Method
__init__
(self, classifier)
evaluation/metrics/inception_score.py:8
Method
__init__
(self, model, n_gen=20, get_avg=False)
evaluation/gen_tests/generation_tests.py:8
Method
__len__
(self)
data/nsynth.py:83
Method
__repr__
(self)
data/audio_transforms.py:209
Method
addNewScales
(self, configNewScales)
pg_gan/progressive_gan_trainer.py:297
Method
addScale
r""" Add a new scale to the model. The output resolution becomes twice bigger.
pg_gan/progressive_gan.py:142
Function
bce_loss
(pi, x)
evaluation/train_inception_model.py:117
Function
buildDictStats
(inputDict, classList)
data/db_stats.py:16
Function
buildMaskSplit
r""" Build a 8bits mask that split a full input latent vector into two intermediate latent vectors: one for the shape network and one for the
utils/product_module.py:3
Method
buildNoiseDataWithConstraints
(self, n, labels)
pg_gan/base_GAN.py:394
Method
build_cqt_nsgt_pipeline
(self)
data/preprocessing.py:262
Method
build_cqt_pipeline
(self)
data/preprocessing.py:232
Method
build_mel_pipeline
(self)
data/preprocessing.py:141
Method
build_mfcc_pipeline
(self)
data/preprocessing.py:183
Method
build_specgrams_pipeline
(self)
data/preprocessing.py:127
Method
build_stft_pipeline
(self)
data/preprocessing.py:116
Method
build_waveform_pipeline
(self)
data/preprocessing.py:101
Function
complex_to_lin
(x)
data/audio_transforms.py:7
Method
countParams
(self)
pg_gan/base_GAN.py:606
Method
count_att
(att_dict)
data/nsynth.py:221
Method
cqt
(x)
data/preprocessing.py:236
Function
extract_save_rainbowgram
(audio, path, name)
utils/utils.py:450
Function
fade_out
Applies fade out at the end of an audio vector x
data/audio_transforms.py:16
Method
filter_files
(self, files)
data/nsynth.py:302
Function
fold_cqt
(x)
data/audio_transforms.py:32
Method
forward
(self, x, test_all_scales=False)
pg_gan/progressive_conv_net.py:208
Method
forward
(self, x, getFeature = False)
pg_gan/progressive_conv_net.py:424
Method
forward
(self, x, epsilon=1e-8)
pg_gan/custom_layers.py:14
Method
forward
(self, x, *args)
pg_gan/custom_layers.py:113
Method
forward
(self, input)
pg_gan/custom_layers.py:187
Method
forward
(self, input)
pg_gan/custom_layers.py:220
Method
forward
(self, input)
pg_gan/custom_layers.py:254
Method
forward
(self, input, style)
pg_gan/custom_layers.py:278
Method
forward
(self, input, style)
pg_gan/custom_layers.py:305
Method
forward
(self, input)
pg_gan/custom_layers.py:363
Method
forward
(self, input)
pg_gan/custom_layers.py:380
Method
forward
(self, image, noise)
pg_gan/custom_layers.py:393
Method
forward
(self, image, noise)
pg_gan/custom_layers.py:404
Method
forward
(x, *args)
pg_gan/custom_layers.py:445
Method
forward
(self, input, style, noise)
pg_gan/custom_layers.py:472
Method
forward
(self, input, style, noise)
pg_gan/custom_layers.py:520
Method
forward
(self, x)
pg_gan/custom_layers.py:576
Method
forward
(self, x)
evaluation/train_inception_model.py:59
Function
gaussian
(d, var=16.)
evaluation/metrics/maximum_mean_discrepancy.py:15
Function
generate
(parser)
evaluation/gen_tests/interpolation.py:11
Function
generate
(parser)
evaluation/gen_tests/random.py:11
Function
generate
(parser)
evaluation/gen_tests/scale.py:10
Function
generate
(parser)
evaluation/gen_tests/from_midi.py:23
Method
getCriterion
r""" Given an input tensor and its targeted status (detected as real or detected as fake) build the associated loss Args:
pg_gan/base_loss_criterions.py:18
Method
getCriterion
(self, input, status)
pg_gan/base_loss_criterions.py:65
Method
getCriterion
(self, input, status)
pg_gan/base_loss_criterions.py:83
Method
getCriterion
(self, input, status)
pg_gan/base_loss_criterions.py:101
Method
getCriterion
r""" Compute the conditional loss between the network's output and the target. This loss, L, is the sum of the losses Lc of the catego
pg_gan/ac_criterion.py:208
Method
getDataset
(self, scale, size=None)
pg_gan/progressive_gan_trainer.py:320
Method
getDefaultConfig
(self)
pg_gan/progressive_gan_trainer.py:25
Function
getNameAndPackage
(strCode)
utils/utils.py:121
Method
getNetD
(self)
pg_gan/progressive_gan.py:106
Method
getNetG
(self)
pg_gan/progressive_gan.py:81
Method
getOptimizerD
(self)
pg_gan/progressive_gan.py:127
Method
getOptimizerG
(self)
pg_gan/progressive_gan.py:135
Method
getPredictionLabels
(self, outputD)
pg_gan/ac_criterion.py:180
Method
getSize
r""" Get output image size (W, H)
pg_gan/progressive_gan.py:180
Function
getVal
(kwargs, key, default)
utils/utils.py:230
Method
get_labels
(self, batch_size)
data/nsynth.py:275
Method
get_rand_gaussian_outlier
(ndim)
evaluation/gen_tests/generation_tests.py:101
Method
icqt
(x)
data/preprocessing.py:242
Method
imel
(x)
data/preprocessing.py:151
Method
inScaleUpdate
(self, iter, scale, input_real)
pg_gan/progressive_gan_trainer.py:181
Method
in_reshape
(x)
data/preprocessing.py:108
Method
index_to_labels
(self, idx_batch)
data/nsynth.py:384
Method
initModel
r""" Initialize the GAN model.
pg_gan/progressive_gan_trainer.py:89
Method
init_transform_pipeline
Function that initializes the transformation pipeline Args: transform (str): name of the transformation
data/preprocessing.py:77
Function
instantaneous_freq
(specgrams)
data/audio_transforms.py:231
Function
inv_instantanteous_freq
(x)
data/audio_transforms.py:224
Function
inverse_multiquadratics
:param d: (num_samples x, num_samples y) :param var: :return:
evaluation/metrics/maximum_mean_discrepancy.py:19
Method
istft
(x)
data/preprocessing.py:354
Method
label_to_instrument
(self, label)
data/nsynth.py:397
Method
label_to_source
(self, label)
data/nsynth.py:400
Function
lin_to_complex
(x)
data/audio_transforms.py:10
Method
loader
(x)
data/preprocessing.py:303
Function
loadmodule
r""" A dirty hack to load a module from a string input Args: package (string): package name name (string): module name R
utils/utils.py:337
Method
mel
(x)
data/preprocessing.py:142
Function
norm_audio
(x)
data/audio_transforms.py:70
Method
optimizeParameters
(self, input_batch, inputLabels, fakeLabels=None)
pg_gan/progressive_gan.py:367
Method
optimizeParameters2
r""" Update the discrimator D using the given "real" inputs. Args: input (torch.tensor): input batch of real data
pg_gan/progressive_gan.py:390
Method
out_reshape
(x)
data/preprocessing.py:110
Function
parse_config_name
r""" Parse a file name with the given pattern: pattern = ($model_name)_train_config.json Raise an error if the pattern doesn't match
utils/utils.py:168
Function
phase_diff
(ph)
data/audio_transforms.py:221
Function
polynomial_mmd_averages
(codes_g, codes_r, n_subsets=50, subset_size=1000, ret_var=True, output=sys.stdout
evaluation/metrics/kernel_inception_distance.py:6
Function
prepareClassifier
(module, outFeatures)
utils/utils.py:100
Function
printProgressBar
Call in a loop to create terminal progress bar @params: iteration - Required : current iteration (Int) total - Requi
utils/utils.py:257
Method
readTrainConfig
r""" Load a permanent configuration describing a models. The variables described in this file are constant through the training.
pg_gan/progressive_gan_trainer.py:97
Method
read_item
(self, item_path)
data/nsynth.py:282
Function
remove_ph
(spectrum)
data/audio_transforms.py:218
Method
resetVisualization
(self, nDataVisualization)
pg_gan/gan_trainer.py:247
Function
safe_exp_spec
(x)
data/audio_transforms.py:101
← previous
next →
201–300 of 319, ranked by callers