MCPcopy Create free account

hub / github.com/Prinsphield/DNA-GAN / functions

Functions53 in github.com/Prinsphield/DNA-GAN

↓ 12 callersMethodsplitter
(self, name, image)
model.py:133
↓ 10 callersMethodjoiner
(self, name, encode)
model.py:157
↓ 7 callersMethodleakyRelu
(self, x, alpha=0.2)
model.py:28
↓ 5 callersMethodmake_conv_bn
(self, name, X, shape, strides)
model.py:40
↓ 4 callersMethoddiscriminator
(self, name, image, label, feat_id)
model.py:98
↓ 3 callersMethodinput
(self)
dataset.py:125
↓ 3 callersFunctionint64_feature
(value)
create_tfrecords.py:14
↓ 2 callersFunctionbytes_feature
(value)
create_tfrecords.py:20
↓ 2 callersMethodmake_conv
(self, name, X, shape, strides)
model.py:31
↓ 2 callersMethodmake_deconv_bn
(self, name, X, filter_shape, out_shape, strides)
model.py:86
↓ 2 callersMethodswap_attribute
enc_Ax: a list of latent encoding of A, [enc_A1, ..., enc_An, z_A] enc_Be: a list of latent encoding of B, [enc_B1, ..., enc_Bn, z_B]
model.py:195
↓ 1 callersFunction_get_align_5p_mat23_size_256
(lm)
preprocess.py:59
↓ 1 callersFunctionalign_2p
(img, left_eye, right_eye)
preprocess.py:10
↓ 1 callersFunctionalign_face_5p
(img, landmarks)
preprocess.py:127
↓ 1 callersFunctionalign_given_lm5p
(img, lm5p, size)
preprocess.py:122
↓ 1 callersMethodbuild_model
(self)
model.py:208
↓ 1 callersFunctioncreate_tf_example
(line, attribute_name, img_dir)
create_tfrecords.py:29
↓ 1 callersMethodd_lr
(self, init_lr=0.00005, decay_rate=1, decay_step=10000, epoch=0)
dataset.py:55
↓ 1 callersMethodg_lr
(self, init_lr=0.00005, decay_rate=1, decay_step=10000, epoch=0)
dataset.py:52
↓ 1 callersFunctionget_align_5p_mat23
Align a face given 5 facial landmarks of left_eye_pupil, right_eye_pupil, nose_tip, left_mouth_corner, right_mouth_corner :param lm5p: nparra
preprocess.py:107
↓ 1 callersMethodget_filter_fn
(self, feat_id, pos)
dataset.py:122
↓ 1 callersFunctionget_representation
(img, model, model_dir, out_path)
vis.py:14
↓ 1 callersFunctioninterpolation
Input src_img: the source image that you want to change its attribute att_img: the attribute image that has certain attribute
test.py:56
↓ 1 callersFunctioninterpolation2
Input src_img: the source image that you want to change its attribute att_imgs: the attribute images that has certain attribute
test.py:96
↓ 1 callersFunctioninterpolation_matrix
Input src_img: the source image that you want to change its attribute [1, h, w, c] att_imgs: four attribute images that has certa
test.py:186
↓ 1 callersFunctionmain
()
train.py:111
↓ 1 callersFunctionmain
()
test.py:253
↓ 1 callersFunctionmain
()
create_tfrecords.py:69
↓ 1 callersFunctionmain
(data_dir, out_dir, thread_num)
preprocess.py:139
↓ 1 callersFunctionmain
()
vis.py:45
↓ 1 callersMethodmake_deconv
(self, name, X, filter_shape, out_shape, strides)
model.py:78
↓ 1 callersMethodmake_fc
(self, name, X, out_dim)
model.py:51
↓ 1 callersFunctionrun
(config, dataset, model, gpu)
train.py:14
↓ 1 callersFunctionswap_attribute
Input src_img: the source image that you want to change its attribute att_img: the attribute image that has certain attribute
test.py:16
↓ 1 callersMethodzeros_encode
enc: a list of latent encoding, [enc_1, ..., enc_n, z] enc_id: the id of the latent to be null
model.py:186
Method__init__
(self, feature_list, data_dir=config.data_dir, nhwc=config.nhwc, num_threads=config.num_threads, shuffle=confi
dataset.py:78
Method__init__
(self, feature_list, is_train=True, nhwc=config.nhwc, max_iter=config.max_iter, weight_decay=config.weight_dec
model.py:14
Functionalign_face_2p
(img, landmarks)
preprocess.py:44
Methodbase_dir
(self)
dataset.py:14
Functionbytes_list_feature
(value)
create_tfrecords.py:23
Methoddata_dir
(self)
dataset.py:18
Methodexp_dir
(self)
dataset.py:25
Methodfilter_fn
(self, feat_id, pos, image, feature_val)
dataset.py:116
Functionfloat_list_feature
(value)
create_tfrecords.py:26
Functionint64_list_feature
(value)
create_tfrecords.py:17
Functioninterpolation1_
Input src_img: the source image that you want to change its attribute att_img: the attribute image that has certain attribute
test.py:151
Methodlog_dir
(self)
dataset.py:39
Methodmake_fc_bn
(self, name, X, out_dim)
model.py:64
Methodmodel_dir
(self)
dataset.py:32
Methodparse_fn
(self, serialized_example)
dataset.py:95
Methodsample_img_dir
(self)
dataset.py:46
Functionwork
(list_id)
create_tfrecords.py:46
Functionwork
(data_dir, out_dir, landmarks, i)
preprocess.py:131