MCPcopy Create free account

hub / github.com/conan7882/adversarial-autoencoders / functions

Functions121 in github.com/conan7882/adversarial-autoencoders

↓ 11 callersMethodsetup
(self, epoch_val, batch_size, **kwargs)
src/dataflow/mnist.py:139
↓ 10 callersMethodset_is_training
(self, is_training=True)
src/models/base.py:13
↓ 8 callersFunctiondisplay
(global_step, step, scaler_sum_list, name_list, collection
src/helper/trainer.py:15
↓ 8 callersMethodnext_batch_dict
(self)
src/dataflow/mnist.py:37
↓ 6 callersMethodgenerate_samples
(self, sess, plot_size, manifold=False, file_id=None)
src/helper/generator.py:67
↓ 6 callersFunctionget_args
()
experiment/aae_mnist.py:22
↓ 5 callersMethodsize
(self)
src/dataflow/mnist.py:120
↓ 4 callersMethoddecoder
(self, inputs)
src/models/aae.py:202
↓ 4 callersFunctionget_args
()
experiment/vae_mnist.py:27
↓ 4 callersFunctionget_shape4D
Return a 4D shape Args: in_val (int or list with length 2) Returns: list with length 4
src/models/layers.py:12
↓ 4 callersMethodlatent_discriminator
(self, inputs)
src/models/aae.py:238
↓ 4 callersFunctionread_train_data
Function for load training data If n_use_label or n_use_sample is not None, samples will be randomly picked to have a balanced number of ex
experiment/aae_mnist.py:79
↓ 4 callersMethodviz_2Dlatent_variable
modify from: https://github.com/fastforwardlabs/vae-tf/blob/master/plot.py#L45
src/helper/visualizer.py:20
↓ 3 callersMethod_suffle_files
(self)
src/dataflow/mnist.py:112
↓ 3 callersMethodcreate_generate_model
(self, b_size)
src/models/vae.py:24
↓ 3 callersMethodcreate_generate_model
create samping model in fig 1 and 3 in the paper
src/models/aae.py:164
↓ 3 callersMethodcreate_train_model
create training model in fig 1, 3 and 6 in the paper
src/models/aae.py:110
↓ 3 callersMethodencoder
(self, inputs)
src/models/aae.py:195
↓ 3 callersMethodget_cls_loss
(self)
src/models/aae.py:392
↓ 3 callersFunctionget_shape2D
Return a 2D shape Args: in_val (int or list with length 2) Returns: list with length 2
src/models/layers.py:23
↓ 3 callersFunctionread_valid_data
Function for load validation data
experiment/aae_mnist.py:104
↓ 3 callersFunctionsample
(x, y, mode_id, n_mode)
src/models/distribution.py:26
↓ 3 callersMethodvalid_epoch
(self, sess, dataflow=None, moniter_generation=False, summary_writer=None)
src/helper/trainer.py:393
↓ 3 callersMethodviz_samples
(self, sess, random_code, plot_size, file_id=None)
src/helper/generator.py:107
↓ 2 callersMethod_create_generate_input
create input for sampling model in fig 1, 3 and 6 in the paper
src/models/aae.py:138
↓ 2 callersMethod_create_train_input
create input for training model in fig 1, 3, 6 and 8 in the paper
src/models/aae.py:57
↓ 2 callersMethodcat_discriminator
(self, inputs)
src/models/aae.py:245
↓ 2 callersMethodcls_layer
estimate digit label for semi-supervised model
src/models/aae.py:215
↓ 2 callersMethodcreate_generate_style_model
create samping model in fig 6 in the paper
src/models/aae.py:148
↓ 2 callersMethodcreate_train_model
(self)
src/models/vae.py:36
↓ 2 callersMethoddecoder
(self, inputs)
src/models/vae.py:81
↓ 2 callersMethodget_cls_accuracy
(self)
src/models/aae.py:399
↓ 2 callersMethodget_reconstruction_loss
(self)
src/models/aae.py:313
↓ 2 callersMethodsample_latent
(self, encoder_out)
src/models/aae.py:222
↓ 2 callersMethodsample_style
(self, sess, plot_size, n_sample=10, file_id=None)
src/helper/generator.py:29
↓ 2 callersMethodtrain_z_gan_epoch
(self, sess, ae_dropout=1.0, summary_writer=None)
src/helper/trainer.py:247
↓ 1 callersMethod_create_cls_input
create input for testing model in fig 8 in the paper
src/models/aae.py:174
↓ 1 callersMethod_create_generate_input
(self)
src/models/vae.py:30
↓ 1 callersMethod_create_train_input
(self)
src/models/vae.py:44
↓ 1 callersMethod_get_cls_loss
(self)
src/models/aae.py:380
↓ 1 callersMethod_get_loss
(self)
src/models/base.py:23
↓ 1 callersMethod_get_optimizer
(self)
src/models/base.py:33
↓ 1 callersMethod_get_reconstruction_loss
(self)
src/models/aae.py:305
↓ 1 callersMethod_load_files
(self, name, n_use_label, n_use_sample)
src/dataflow/mnist.py:42
↓ 1 callersFunctionbatch_flatten
Flatten the tensor except the first dimension.
src/models/layers.py:39
↓ 1 callersMethodcreate_semisupervised_test_model
create testing model in fig 8 in the paper
src/models/aae.py:182
↓ 1 callersMethodcreate_semisupervised_train_model
create training model in fig 8 in the paper
src/models/aae.py:71
↓ 1 callersMethodencoder
(self)
src/models/vae.py:51
↓ 1 callersFunctiongenerate
function for sampling images from trained model
experiment/aae_mnist.py:281
↓ 1 callersFunctiongenerate
()
experiment/vae_mnist.py:107
↓ 1 callersMethodget_cat_discrimator_train_op
(self)
src/models/aae.py:361
↓ 1 callersMethodget_cat_generator_train_op
(self)
src/models/aae.py:340
↓ 1 callersMethodget_cls_train_op
(self)
src/models/aae.py:371
↓ 1 callersMethodget_generate_summary
(self)
src/models/aae.py:252
↓ 1 callersMethodget_latent_discrimator_train_op
(self)
src/models/aae.py:351
↓ 1 callersMethodget_latent_generator_train_op
(self)
src/models/aae.py:329
↓ 1 callersMethodget_loss
(self)
src/models/base.py:16
↓ 1 callersMethodget_optimizer
(self)
src/models/base.py:26
↓ 1 callersMethodget_reconstruction_train_op
(self)
src/models/aae.py:320
↓ 1 callersFunctionget_rng
This function is copied from `tensorpack <https://github.com/ppwwyyxx/tensorpack/blob/master/tensorpack/utils/utils.py>`__. Get a good RN
src/utils/dataflow.py:14
↓ 1 callersMethodget_train_summary
(self)
src/models/vae.py:140
↓ 1 callersMethodget_valid_summary
(self)
src/models/vae.py:132
↓ 1 callersFunctioninterpolate
(plot_size=20, interpolate_range=[-3, 3, -3, 3])
src/models/distribution.py:10
↓ 1 callersMethodnext_batch
(self)
src/dataflow/mnist.py:123
↓ 1 callersMethodreset_epochs_completed
(self, epoch_val)
src/dataflow/mnist.py:162
↓ 1 callersMethodreset_state
(self)
src/dataflow/mnist.py:165
↓ 1 callersMethodsample_latent
(self)
src/models/vae.py:65
↓ 1 callersFunctionsemisupervised_train
Function for semisupervised training (Fig 8 in the paper) Validation will be processed after each epoch of training Loss of each modules wi
experiment/aae_mnist.py:114
↓ 1 callersMethodset_batch_size
(self, batch_size)
src/dataflow/mnist.py:159
↓ 1 callersFunctionsupervised_train
Function for supervised training (Fig 6 in the paper) Validation will be processed after each epoch of training. Loss of each modules will b
experiment/aae_mnist.py:161
↓ 1 callersFunctiontest
()
experiment/vae_mnist.py:161
↓ 1 callersFunctiontrain
Function for unsupervised training and incorporate label info in adversarial regularization (Fig 1 and 3 in the paper) Validati
experiment/aae_mnist.py:214
↓ 1 callersFunctiontrain
()
experiment/vae_mnist.py:57
↓ 1 callersMethodtrain_epoch
(self, sess, summary_writer=None)
src/helper/trainer.py:350
↓ 1 callersMethodtrain_semisupervised_epoch
(self, sess, ae_dropout=1.0, summary_writer=None)
src/helper/trainer.py:120
↓ 1 callersMethodvalid_semisupervised_epoch
(self, sess, dataflow, summary_writer=None)
src/helper/trainer.py:90
↓ 1 callersFunctionvisualize
function for visualize latent space of trained model when ncode = 2
experiment/aae_mnist.py:311
↓ 1 callersFunctionvisualize
()
experiment/vae_mnist.py:126
Method__init__
(self, name, data_dir='', n_use_label=None, n_use_sample=None, batch_dict_name=None, shuffle=
src/dataflow/mnist.py:19
Method__init__
(self, model, save_path=None)
src/helper/visualizer.py:14
Method__init__
(self, generate_model, distr_type='gaussian', n_labels=None, use_label=False, save_path=None)
src/helper/generator.py:16
Method__init__
(self, train_model, generate_model, train_data, cls_valid_model=None, distr_type='gaussian',
src/helper/trainer.py:37
Method__init__
(self, im_size=[28, 28], n_code=1000, n_channel=1, wd=0)
src/models/vae.py:17
Method__init__
Args: im_size (int or list of length 2): size of input image n_channel (int): number of input image chann
src/models/aae.py:17
Method_get_loss
(self)
src/models/vae.py:105
Method_get_optimizer
(self)
src/models/vae.py:129
Functionassert_len
(check_list)
src/utils/utils.py:13
Methodbatch_size
(self)
src/dataflow/mnist.py:152
Functionconv
(filter_size, out_dim, layer_dict, inputs=None, pretrained_dict=None,
src/models/layers.py:217
Functiondecoder_CNN
(inputs, is_training, out_channel=1, wd=0, bn=False, name='decoder_CNN', init_w=tf.keras.initi
src/models/modules.py:78
Functiondecoder_FC
(inputs, is_training, n_hidden=1000, nl=tf.nn.relu, keep_prob=0.5, wd=0, name='decoder_FC', ini
src/models/modules.py:26
Functiondiagonal_gaussian
(batch_size, n_dim, mean=0, var=1.)
src/models/distribution.py:48
Functiondiscriminator_FC
(inputs, is_training, n_hidden=1000, nl=tf.nn.relu, wd=0, name='discriminator_FC', init_w
src/models/modules.py:42
Functiondrop_out
(layer_dict, is_training, inputs=None, keep_prob=0.5)
src/models/layers.py:309
Functionencoder_CNN
(inputs, is_training, wd=0, bn=False, name='encoder_CNN', init_w=tf.keras.initializers.he_norm
src/models/modules.py:57
Functionencoder_FC
(inputs, is_training, n_hidden=1000, nl=tf.nn.relu, keep_prob=0.5, wd=0, name='encoder_FC', ini
src/models/modules.py:10
Methodepochs_completed
(self)
src/dataflow/mnist.py:156
Functiongaussian
(batch_size, n_dim, mean=0, var=1.)
src/models/distribution.py:44
Functiongaussian_mixture
(batch_size, n_dim=2, n_labels=10, x_var=0.5, y_var=0.1, label_indices=None)
src/models/distribution.py:55
Functionget_file_list
(file_dir, file_ext, sub_name=None)
src/utils/dataflow.py:31
next →1–100 of 121, ranked by callers