MCPcopy Create free account

hub / github.com/JeremyCCHsu/tf-vaegan / functions

Functions29 in github.com/JeremyCCHsu/tf-vaegan

↓ 3 callersFunctionfind_files
Recursively finds all files matching the pattern.
iohandler/datareader.py:6
↓ 3 callersFunctionfit_the_shape
(x_, shape)
validate.py:59
↓ 2 callersMethoddecode
(self, z, y=None, tanh=False)
model/vaegan.py:264
↓ 2 callersFunctionimg_reader
output: [batch_size, h, w, c] images, scaled to [0., 1.] ***[BUG] shuffle=False doesn't seem to work correctly!!! *****
iohandler/datareader.py:16
↓ 2 callersFunctionsave
Save a model to logdir/model.ckpt-[step]
util/wrapper.py:6
↓ 1 callersFunctionGaussianKLD
Kullback-Leibler divergence of two Gaussians *Assuming that each dimension is independent mu: mean lv: log variance
util/layer.py:16
↓ 1 callersFunctionGaussianLogDensity
(x, mu, log_var, name='GaussianLogDensity')
util/layer.py:6
↓ 1 callersFunctionGaussianSampleLayer
(z_mu, z_lv, name='GaussianSampleLayer')
util/layer.py:32
↓ 1 callersFunctionSingleFileReader
(filename, shape, rtype='tanh', ext='jpg')
validate.py:33
↓ 1 callersMethod_sanity_check
(self)
model/vaegan.py:30
↓ 1 callersMethodencode
(self, x)
model/vaegan.py:260
↓ 1 callersFunctionget_default_logdir
(logdir_root)
train.py:129
↓ 1 callersFunctionget_optimization_ops
[TODO] Although most of the trainer structures are the same, I think we have to use different training scripts for VAE- and DC-GAN
train.py:94
↓ 1 callersMethodinterpolate
Interpolation from the latent space
model/vaegan.py:267
↓ 1 callersFunctionload
Try to load model form a dir (search for the newest checkpoint)
util/wrapper.py:20
↓ 1 callersMethodloss
(self, x)
model/vaegan.py:159
↓ 1 callersFunctionmain
()
validate.py:69
↓ 1 callersFunctionmain
Note: 1. The input is rescaled to [-1, 1] (img_reader: rtype)
train.py:163
↓ 1 callersMethodsample
Generate fake samples given `z` if z is not given or is an `int`, this fcn generates (z=128) samples
model/vaegan.py:247
↓ 1 callersFunctionvalidate_log_dirs
(args)
train.py:133
↓ 1 callersFunctionvisualize_interpolation
(sess, x_interp, N=8, filename=None)
train.py:74
↓ 1 callersFunctionvisualize_random_samples
(sess, xh, n=8, filename=None)
train.py:56
MethodL2norm
(x)
model/vaegan.py:274
Method__init__
(self, arch, is_training=False)
model/vaegan.py:14
Method_discriminator
(self, x, is_training)
model/vaegan.py:115
Method_encoder
(self, x, is_training)
model/vaegan.py:37
Method_generator
(self, z, is_training)
model/vaegan.py:73
Functionlrelu
Leaky ReLU
util/layer.py:39
Methodmean_sigmoid_cross_entropy_with_logits
truth: 0. or 1.
model/vaegan.py:160