MCPcopy Create free account

hub / github.com/SonyCSLParis/Comparing-Representations-for-Audio-Synthesis-using-GANs / functions

Functions319 in github.com/SonyCSLParis/Comparing-Representations-for-Audio-Synthesis-using-GANs

↓ 30 callersFunctionmkdir_in_path
(path, dirname)
utils/utils.py:17
↓ 20 callersMethod__init__
(self)
pg_gan/custom_layers.py:184
↓ 15 callersMethodbuildNoiseData
r""" Build a batch of latent vectors for the generator. Args: n_samples (int): number of vector in the batch
pg_gan/base_GAN.py:364
↓ 14 callersMethodload
r""" Load a model saved with the @method save() function Args: - path (string): file where the model is stored
pg_gan/base_GAN.py:496
↓ 13 callersMethodgetOriginalG
r""" Retrieve the original G network. Use this function when you want to modify G after the initialization
pg_gan/base_GAN.py:402
↓ 10 callersFunctionGPU_is_available
()
utils/utils.py:384
↓ 10 callersMethodgetCriterion
(self, input, status)
pg_gan/base_loss_criterions.py:44
↓ 9 callersFunction_sqn
(arr)
evaluation/metrics/kernel_inception_distance.py:40
↓ 9 callersFunctionlist_files_abs_path
(dir_path, format='.wav')
utils/utils.py:35
↓ 9 callersMethodtest
r""" Generate some data given the input latent vector. Args: input (torch.tensor): input latent vector
pg_gan/base_GAN.py:156
↓ 8 callersMethodgetOriginalD
r""" Retrieve the original D network. Use this function when you want to modify D after the initialization
pg_gan/base_GAN.py:411
↓ 7 callersMethod_add_audio_loader
(self)
data/preprocessing.py:302
↓ 7 callersMethod_add_fade_out
(self)
data/preprocessing.py:314
↓ 7 callersMethod_add_norm
(self)
data/preprocessing.py:320
↓ 7 callersMethod_add_signal_zeropadding
(self)
data/preprocessing.py:327
↓ 7 callersMethodclassificationPenalty
r""" Compute the classification penalty associated with the current output Args: - outputD (tensor): discriminato
pg_gan/base_GAN.py:581
↓ 7 callersFunctionparse_state_name
r""" Parse a file name with the given pattern: pattern = ($model_name)_s($scale)_i($iteration).pt Returns: None if the path doesn't fulfi
utils/utils.py:138
↓ 7 callersMethodreshape
(x)
data/preprocessing.py:159
↓ 6 callersFunctionfiniteCheck
(parameters)
utils/utils.py:87
↓ 5 callersMethod_init_stft_params
(self)
data/preprocessing.py:339
↓ 5 callersFunctioncheckexists_mkdir
(path)
utils/utils.py:10
↓ 5 callersMethodget_preprocessor
(self, compose=True)
data/preprocessing.py:51
↓ 5 callersFunctionload_model_checkp
(dir, iteration=None, scale=None, **kwargs)
utils/utils.py:390
↓ 5 callersMethodload_state_dict
r""" Load a model saved with the @method save() function Args: - in_state (dict): state dict containing the model
pg_gan/base_GAN.py:517
↓ 5 callersMethodsetNewAlpha
r""" Update the value of the merging factor alpha Args: - alpha (float): merging factor, must be in [0, 1]
pg_gan/progressive_conv_net.py:184
↓ 4 callersMethodget_postprocessor
(self, compose=True)
data/preprocessing.py:55
↓ 4 callersFunctionloadStateDictCompatible
r""" Load the input state dict to the module except for the weights corresponding to one of the forbidden layers
utils/utils.py:304
↓ 4 callersMethodsave
r""" Save the model at the given location. All parameters included in the self.config class will be saved as well. Args:
pg_gan/base_GAN.py:470
↓ 4 callersMethodupdateSolversDevice
r""" Move the current networks and solvers to the GPU. This function must be called each time netG or netD is modified
pg_gan/base_GAN.py:341
↓ 3 callersFunctionWGANGPGradientPenalty
r""" Gradient penalty as described in "Improved Training of Wasserstein GANs" https://arxiv.org/pdf/1704.00028.pdf Args: - i
pg_gan/gradient_losses.py:3
↓ 3 callersMethod__init__
(self, device)
pg_gan/base_loss_criterions.py:38
↓ 3 callersMethod_add_ifreq
(self)
data/preprocessing.py:381
↓ 3 callersMethod_add_log_mag
(self)
data/preprocessing.py:375
↓ 3 callersMethod_add_mag_phase
(self)
data/preprocessing.py:362
↓ 3 callersMethodaddScale
r""" Add a new scale to the model. Increasing the output resolution by a factor 2 Args: - depthNewScale (int): de
pg_gan/progressive_conv_net.py:152
↓ 3 callersMethodbuildAvG
r""" Create and upload a moving average generator.
pg_gan/base_GAN.py:174
↓ 3 callersFunctioncompute_kernel
(x, y, k)
evaluation/metrics/maximum_mean_discrepancy.py:3
↓ 3 callersMethodgetInputDim
r""" Size of the latent vector given by self.buildRandomCriterionTensor
pg_gan/ac_criterion.py:167
↓ 3 callersFunctionread_json
(path)
utils/utils.py:22
↓ 3 callersFunctionsaveAudioBatch
(data, path, basename, sr=16000, overwrite=False)
utils/utils.py:466
↓ 3 callersMethodupscale
(self, x, size)
pg_gan/progressive_conv_net.py:202
↓ 2 callersMethod__init__
(self, data_path, output_path, size, _form
data/nsynth.py:23
↓ 2 callersMethod_add_rm_dc
(self)
data/preprocessing.py:369
↓ 2 callersMethod_add_stft
(self)
data/preprocessing.py:347
↓ 2 callersFunctionbuildKeyOrder
r""" If the dataset is labelled, give the order in which the attributes are given Args: - shiftAttrib (dict): order of each category
data/db_stats.py:27
↓ 2 callersMethoddownScale
(self, x, size=0)
pg_gan/progressive_conv_net.py:420
↓ 2 callersFunctionfilter_keys_in_strings
(strings, keys)
utils/utils.py:38
↓ 2 callersMethodgetDefaultConfig
(self)
pg_gan/gan_trainer.py:244
↓ 2 callersMethodgetKeyOrders
r""" If the dataset is labelled, give the order in which the attributes are given Returns: A dictionary output[k
data/nsynth.py:310
↓ 2 callersFunctiongetLastCheckPoint
r""" Get the last checkpoint of the model with name @param name detected in the directory (@param dir) Returns: trainConfig, pathMode
utils/utils.py:184
↓ 2 callersMethodgetMiniBatchSize
(self, scale)
pg_gan/gan_trainer.py:308
↓ 2 callersMethodgetNetD
r""" The discrimator should be defined here.
pg_gan/base_GAN.py:426
↓ 2 callersMethodgetNetG
r""" The generator should be defined here.
pg_gan/base_GAN.py:420
↓ 2 callersMethodgetScore
(self, eps=1e-06)
evaluation/metrics/inception_score.py:31
↓ 2 callersFunctionget_filename
(abs_path)
utils/utils.py:41
↓ 2 callersMethodinitDecisionLayer
(self, sizeDecisionLayer)
pg_gan/progressive_conv_net.py:413
↓ 2 callersMethodinitFormatLayer
r""" The format layer represents the first weights applied to the latent vector. It converts a 1xdimLatent input into a 4 x 4 x scales
pg_gan/progressive_conv_net.py:100
↓ 2 callersMethodinitModel
r""" Initialize the GAN model.
pg_gan/gan_trainer.py:130
↓ 2 callersMethodinitializeClassificationCriterion
r""" For labelled datasets: initialize the classification criterion.
pg_gan/base_GAN.py:307
↓ 2 callersFunctioninterpolate_batch
(x, y, steps)
evaluation/gen_tests/from_midi.py:15
↓ 2 callersFunctionloadPartOfStateDict
r""" Load the input state dict to the module except for the weights corresponding to one of the forbidden layers
utils/utils.py:286
↓ 2 callersFunctionmag_to_complex
(x)
data/audio_transforms.py:82
↓ 2 callersFunctionmmd
(z_tilde, z, kernel='imq')
evaluation/metrics/maximum_mean_discrepancy.py:13
↓ 2 callersFunctionnum_flat_features
(x)
utils/utils.py:249
↓ 2 callersMethodoptimizeParameters
r""" Update the discrimator D using the given "real" inputs. Args: input (torch.tensor): input batch of real data
pg_gan/base_GAN.py:186
↓ 2 callersMethodreadTrainConfig
r""" Load a permanent configuration describing a models. The variables described in this file are constant through the training.
pg_gan/gan_trainer.py:171
↓ 2 callersMethodregister_G_grads
(self)
pg_gan/base_GAN.py:640
↓ 2 callersMethodresetRunningLosses
(self)
pg_gan/gan_trainer.py:145
↓ 2 callersFunctionsafe_exp
(x)
data/audio_transforms.py:113
↓ 2 callersFunctionsafe_log
(x)
data/audio_transforms.py:87
↓ 2 callersMethodscaleSanityCheck
(self)
pg_gan/progressive_gan_trainer.py:120
↓ 2 callersMethodset_transform
(self, transform)
data/nsynth.py:122
↓ 2 callersMethodtrain
r""" Launch the training. This one will stop if a divergent behavior is detected. Returns: - True if the trainin
pg_gan/progressive_gan_trainer.py:217
↓ 2 callersMethodupdateAlphaJumps
r""" Given the number of iterations between two updates of alpha at each scale and the number of updates per scale, build the effectiv
pg_gan/progressive_gan_trainer.py:140
↓ 2 callersFunctionupdateConfig
r""" Update a configuration with the fields of another given configuration
utils/config.py:41
↓ 2 callersMethodupdateWithMiniBatch
(self, ref)
evaluation/metrics/inception_score.py:15
↓ 1 callersMethod__init__
Creates a data manager @arg
data/preprocessing.py:28
↓ 1 callersMethod__init__
r""" Build a generator for a progressive GAN model Args: - dimLatent (int): dimension of the latent vector -
pg_gan/progressive_conv_net.py:13
↓ 1 callersMethod_complex_to_lin
(self)
data/preprocessing.py:323
↓ 1 callersFunction_mmd2_and_variance
(K_XX, K_XY, K_YY, unit_diagonal=False, mmd_est='unbiased', block_size=1024,
evaluation/metrics/kernel_inception_distance.py:45
↓ 1 callersMethodaddScale
(self, depthNewScale)
pg_gan/progressive_conv_net.py:368
↓ 1 callersMethodaddStartingScales
r""" If a starting scale is defined other than 0, this method adds to the network the first 0-startingScale blocks.
pg_gan/progressive_gan_trainer.py:206
↓ 1 callersMethodbuildLatentCriterion
(self, targetCat, skipAtts=False)
pg_gan/ac_criterion.py:145
↓ 1 callersMethodbuildRandomCriterionTensor
r""" Build a batch of vectors with a random combination of the values of the existing classes Args: sizeBatch (in
pg_gan/ac_criterion.py:108
↓ 1 callersMethodcount_attributes
(self)
data/nsynth.py:220
↓ 1 callersMethodfilter_files
(self)
data/nsynth.py:133
↓ 1 callersFunctionfilter_files_in_path
(dir_path, format='.wav')
utils/utils.py:32
↓ 1 callersMethodgenerateConstraintsFromVector
(self, n, labels)
pg_gan/ac_criterion.py:86
↓ 1 callersFunctiongetClassStats
(inputDict, className)
data/db_stats.py:1
↓ 1 callersFunctiongetConfigFromDict
r""" Using a new configuration dictionary and a default configuration setup an object with the given configuration. for example, if you h
utils/config.py:13
↓ 1 callersFunctiongetConfigOverrideFromParser
(parsedArgs, defaultConfig)
utils/config.py:84
↓ 1 callersMethodgetDBLoader
r""" Load the training dataset for the given scale. Args: - scale (int): scale at which we are working Returns:
pg_gan/gan_trainer.py:319
↓ 1 callersMethodgetDataset
(self)
pg_gan/gan_trainer.py:341
↓ 1 callersFunctiongetDictFromConfig
r""" Retrieve all the members of obj which are also members of referenceConfig and dump them into a dictionnary If printDefault is activa
utils/config.py:97
↓ 1 callersFunctiongetLayerNormalizationFactor
r""" Get He's constant for the given layer https://www.cv-foundation.org/openaccess/content_iccv_2015/papers/He_Delving_Deep_into_ICCV_2015_pa
pg_gan/custom_layers.py:38
↓ 1 callersFunctiongetMinOccurence
(inputDict, value, default)
utils/utils.py:109
↓ 1 callersMethodgetOptimizerD
r""" Optimizer of the discriminator.
pg_gan/base_GAN.py:432
↓ 1 callersMethodgetOptimizerG
r""" Optimizer of the generator.
pg_gan/base_GAN.py:438
↓ 1 callersMethodgetOutputSize
r""" Get the size of the generated image.
pg_gan/progressive_conv_net.py:139
↓ 1 callersMethodgetStateDict
r""" Get the model's parameters
pg_gan/base_GAN.py:444
next →1–100 of 319, ranked by callers