MCPcopy Create free account

hub / github.com/LynnHo/EigenGAN-Tensorflow / functions

Functions236 in github.com/LynnHo/EigenGAN-Tensorflow

Functionalign_crop_opencv
Align and crop a face image by landmarks. Arguments: img : Face image to be aligned and cropped. src_landmarks
scripts/cropper.py:4
Functionalign_crop_skimage
Align and crop a face image by landmarks. Arguments: img : Face image to be aligned and cropped. src_landmarks
scripts/cropper.py:72
Functionargs
Parse args using the global parser.
pylib/argument.py:48
Functionargs
Parse args using the global parser.
scripts/pylib/argument.py:48
Functionargs_from_xxx
Load args from xxx ignoring type and choices with default still valid. Parameters ---------- parser: function Should return a dic
pylib/argument.py:55
Functionargs_from_xxx
Load args from xxx ignoring type and choices with default still valid. Parameters ---------- parser: function Should return a dic
scripts/pylib/argument.py:55
Functionargument
Wrap argparse.add_argument.
pylib/argument.py:34
Functionargument
Wrap argparse.add_argument.
scripts/pylib/argument.py:34
Functionaverage_gradients
Calculate the average gradient for each shared variable across all towers. Note that this function provides a synchronization point across all to
tflib/distribute/distribute.py:43
Methodcall
(self, x, dim_10=4, fc_dim=1024, n_downsamplings=6,
module.py:11
Methodcall
(self, zs, eps, dim_10=4, n_channels=3, weigh
module.py:46
Functioncenter_crop
(image, size)
tflib/image/image.py:8
Functioncenter_loss
(features, labels, num_classes, alpha=0.5, updates_collections=tf.GraphKeys.UPDATE_OPS, scope=None)
tflib/deep_learning/losses.py:4
Functionchange_ext
(path, ext)
pylib/path.py:47
Functionchange_ext
(path, ext)
scripts/pylib/path.py:47
Functioncolor_jitter
Color jitter. Examples -------- >>> color_jitter(img, 25, 0.2, 0.2, 0.1)
tflib/image/image.py:17
Functionconvolution
(inputs, num_outputs, kernel_size, stride=1, p
tflib/deep_learning/layers.py:67
Functioncount_parameters
(variables)
tflib/utils/utils.py:138
Functioncreate_summary_image_v2
(name_data_dict, logdir, step,
tflib/utils/summary.py:102
Functioncreate_summary_statistic_v2
(name_data_dict, logdir, step,
tflib/utils/summary.py:77
Functioncv2im
Transform opencv images to [-1.0, 1.0].
scripts/imlib/dtype.py:49
Functioncv2im
Transform opencv images to [-1.0, 1.0].
imlib/dtype.py:49
Functiondecorator
(f)
pylib/timer.py:81
Functiondecorator
(f)
scripts/pylib/timer.py:81
Functiondirectory
(path)
pylib/path.py:31
Functiondirectory
(path)
scripts/pylib/path.py:31
Functiondisk_image_batch_dataset
Batch dataset of disk image for PNG and JPEG. Parameters ---------- img_paths : 1d-tensor/ndarray/list of str labels : nested structu
tflib/data/dataset.py:110
Methodelapsed
Return the current elapsed time since last (re)start.
pylib/timer.py:55
Methodelapsed
Return the current elapsed time since last (re)start.
scripts/pylib/timer.py:55
Methodexisting_modules
(cls)
tflib/deep_learning/module.py:11
Functionext
(path)
pylib/path.py:39
Functionext
(path)
scripts/pylib/path.py:39
Functionfilter2d_v1
(image, kernel, normalize_kernel=True, data_format=None)
tflib/image/filter.py:4
Functionfilter2d_v2
(image, kernel, normalize_kernel=True, data_format=None)
tflib/image/filter.py:16
Functionfloat2im
Transform images from [0.0, 1.0] to [-1.0, 1.0] of float64.
scripts/imlib/dtype.py:37
Functionfloat2im
Transform images from [0.0, 1.0] to [-1.0, 1.0] of float64.
imlib/dtype.py:37
Functionfully_connected
(inputs, num_outputs, activation_fn=None, normaliz
tflib/deep_learning/layers.py:10
Functiong_loss_fn_theoretical
(f_logit)
tfprob/gan/loss.py:65
Functiong_loss_fn_tricky
(f_logit)
tfprob/gan/loss.py:69
Functiongaussian_filter2d
(image, kernel_radias, std, normalize_kernel=True, data_format=None)
tflib/image/filter.py:47
Functiongenerator_batch_dataset
(generator, batch_size, output_types,
tflib/data/dataset.py:48
Functionget_adversarial_losses_fn
(mode)
tfprob/gan/loss.py:151
Functionget_available_gpus
()
tflib/distribute/distribute.py:6
Functionget_collection
(key, includes='', includes_combine_type='or', exclud
tflib/utils/collection.py:51
Functionget_fan
(weights, mode='fan_in')
tflib/deep_learning/utils.py:61
Functionget_feature_norm
(norm, training, updates_collections=None)
tflib/deep_learning/utils.py:13
Functionget_initializer
(activation_fn_or_name, activation_params=None, mode='fan_in', distribution='truncated_normal', seed=None, dty
tflib/deep_learning/utils.py:82
Functionget_weight_norm
(norm, training, transposed=False)
tflib/deep_learning/utils.py:28
Functionglob
(dir, pats, recursive=False)
pylib/path.py:79
Functionglob
(dir, pats, recursive=False)
scripts/pylib/path.py:79
Functiongrad
(dy)
tflib/deep_learning/learning_rate.py:7
Functiongradient_penalty
(f, real, fake, gp_mode, sample_mode)
tfprob/gan/gradient_penalty.py:50
Functiongram_schmidt
Gram-Schmidt process. Modified from https://stackoverflow.com/questions/48119473. Parameters ---------- vectors: 2D tensor - [v1, v2,
tflib/ops/ops.py:34
Functiongraph_per_gpu
(x_r, zs, eps)
train.py:120
Functiongrid_merge
Merge the grid as an image.
scripts/imlib/transform.py:103
Functiongrid_merge
Merge the grid as an image.
imlib/transform.py:103
Functiongrid_split
Split the image into a grid.
scripts/imlib/transform.py:88
Functiongrid_split
Split the image into a grid.
imlib/transform.py:88
Functionim2cv
Transform images from [-1.0, 1.0] to opencv images.
scripts/imlib/dtype.py:65
Functionim2cv
Transform images from [-1.0, 1.0] to opencv images.
imlib/dtype.py:65
Functionim2float
Transform images from [-1.0, 1.0] to [0.0, 1.0] of float64.
scripts/imlib/dtype.py:55
Functionim2float
Transform images from [-1.0, 1.0] to [0.0, 1.0] of float64.
imlib/dtype.py:55
Functionimcrop
Crop an image with padding non-exisiting range. Parameters ---------- pad_mode: To be passed to skimage.util.pad as `mode` parame
scripts/imlib/transform.py:16
Functionimcrop
Crop an image with padding non-exisiting range. Parameters ---------- pad_mode: To be passed to skimage.util.pad as `mode` parame
imlib/transform.py:16
Functionimmerge
Merge images to an image with (n_rows * h) * (n_cols * w). Parameters ---------- images : numpy.array or object which can be converted to
scripts/imlib/transform.py:51
Functionimmerge
Merge images to an image with (n_rows * h) * (n_cols * w). Parameters ---------- images : numpy.array or object which can be converted to
imlib/transform.py:51
Functionimread
Return a float64 image in [-1.0, 1.0]. Parameters ---------- kwargs: To be passed to skimage.io.imread.
imlib/basic.py:7
Functionimshow
Show a [-1.0, 1.0] image.
scripts/imlib/basic.py:42
Functionimshow
Show a [-1.0, 1.0] image.
imlib/basic.py:42
Functionimwrite
Save a [-1.0, 1.0] image. Parameters ---------- quality: Quality for JEPG format. plugin_args: To be passed to skimag
imlib/basic.py:28
Functioninit
Run codes that are commonly used by LynnHo.
tflib/utils/utils.py:5
Functionload_json
(path, **kwargs)
pylib/serialization.py:29
Functionload_json
(path, **kwargs)
scripts/pylib/serialization.py:29
Functionload_pickle
(path, **kwargs)
pylib/serialization.py:58
Functionload_pickle
(path, **kwargs)
scripts/pylib/serialization.py:58
Functionload_yaml
(path, **kwargs)
pylib/serialization.py:44
Functionload_yaml
(path, **kwargs)
scripts/pylib/serialization.py:44
Functionlr_mult
(x, alpha)
tflib/deep_learning/learning_rate.py:4
Functionmake_dataset
(img_dir, batch_size, load_size=286, crop_size=256,
data.py:7
Functionmake_resettable
(metric_fn, scope=None)
tflib/deep_learning/metrics.py:11
Functionmap_fn_
(*args)
tflib/data/dataset.py:141
Functionmatch
(dir, pats, recursive=False)
pylib/path.py:87
Functionmatch
(dir, pats, recursive=False)
scripts/pylib/path.py:87
Functionminmax_norm
(x, epsilon=1e-12)
tflib/ops/ops.py:26
Functionmkdir
(paths)
pylib/path.py:16
Functionmkdir
(paths)
scripts/pylib/path.py:16
Functionmodulated_convolution2d
(inputs, num_outputs, kernel_size,
tflib/deep_learning/layers_deprecated.py:55
Functionname
(path)
pylib/path.py:35
Functionname
(path)
scripts/pylib/path.py:35
Functionname_ext
(path)
pylib/path.py:43
Functionname_ext
(path)
scripts/pylib/path.py:43
Methodnontrainable_variables
(self)
tflib/deep_learning/module.py:86
Methodorthogonal_regularizer
(U)
module.py:67
Functionparameter_server_strategy_run
(devices, fn, split_args, split_kwargs=None)
tflib/distribute/distribute.py:27
Functionprefix_now
(path, fmt="%Y-%m-%d-%H:%M:%S", sep='-')
pylib/path.py:71
Functionprefix_now
(path, fmt="%Y-%m-%d-%H:%M:%S", sep='-')
scripts/pylib/path.py:71
Functionprint_tensor
(tensors)
tflib/utils/utils.py:145
Functionrandom_grayscale
(image, p=0.1)
tflib/image/image.py:42
Functionrandom_rotate
(images, max_degrees, interpolation='BILINEAR')
tflib/image/image.py:48
Functionreceptive_field
(convnet_fn)
tflib/utils/utils.py:97
← previousnext →101–200 of 236, ranked by callers