Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Prinsphield/DNA-GAN
/ functions
Functions
53 in github.com/Prinsphield/DNA-GAN
⨍
Functions
53
◇
Types & classes
3
↓ 12 callers
Method
splitter
(self, name, image)
model.py:133
↓ 10 callers
Method
joiner
(self, name, encode)
model.py:157
↓ 7 callers
Method
leakyRelu
(self, x, alpha=0.2)
model.py:28
↓ 5 callers
Method
make_conv_bn
(self, name, X, shape, strides)
model.py:40
↓ 4 callers
Method
discriminator
(self, name, image, label, feat_id)
model.py:98
↓ 3 callers
Method
input
(self)
dataset.py:125
↓ 3 callers
Function
int64_feature
(value)
create_tfrecords.py:14
↓ 2 callers
Function
bytes_feature
(value)
create_tfrecords.py:20
↓ 2 callers
Method
make_conv
(self, name, X, shape, strides)
model.py:31
↓ 2 callers
Method
make_deconv_bn
(self, name, X, filter_shape, out_shape, strides)
model.py:86
↓ 2 callers
Method
swap_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 callers
Function
_get_align_5p_mat23_size_256
(lm)
preprocess.py:59
↓ 1 callers
Function
align_2p
(img, left_eye, right_eye)
preprocess.py:10
↓ 1 callers
Function
align_face_5p
(img, landmarks)
preprocess.py:127
↓ 1 callers
Function
align_given_lm5p
(img, lm5p, size)
preprocess.py:122
↓ 1 callers
Method
build_model
(self)
model.py:208
↓ 1 callers
Function
create_tf_example
(line, attribute_name, img_dir)
create_tfrecords.py:29
↓ 1 callers
Method
d_lr
(self, init_lr=0.00005, decay_rate=1, decay_step=10000, epoch=0)
dataset.py:55
↓ 1 callers
Method
g_lr
(self, init_lr=0.00005, decay_rate=1, decay_step=10000, epoch=0)
dataset.py:52
↓ 1 callers
Function
get_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 callers
Method
get_filter_fn
(self, feat_id, pos)
dataset.py:122
↓ 1 callers
Function
get_representation
(img, model, model_dir, out_path)
vis.py:14
↓ 1 callers
Function
interpolation
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 callers
Function
interpolation2
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 callers
Function
interpolation_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 callers
Function
main
()
train.py:111
↓ 1 callers
Function
main
()
test.py:253
↓ 1 callers
Function
main
()
create_tfrecords.py:69
↓ 1 callers
Function
main
(data_dir, out_dir, thread_num)
preprocess.py:139
↓ 1 callers
Function
main
()
vis.py:45
↓ 1 callers
Method
make_deconv
(self, name, X, filter_shape, out_shape, strides)
model.py:78
↓ 1 callers
Method
make_fc
(self, name, X, out_dim)
model.py:51
↓ 1 callers
Function
run
(config, dataset, model, gpu)
train.py:14
↓ 1 callers
Function
swap_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 callers
Method
zeros_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
Function
align_face_2p
(img, landmarks)
preprocess.py:44
Method
base_dir
(self)
dataset.py:14
Function
bytes_list_feature
(value)
create_tfrecords.py:23
Method
data_dir
(self)
dataset.py:18
Method
exp_dir
(self)
dataset.py:25
Method
filter_fn
(self, feat_id, pos, image, feature_val)
dataset.py:116
Function
float_list_feature
(value)
create_tfrecords.py:26
Function
int64_list_feature
(value)
create_tfrecords.py:17
Function
interpolation1_
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
Method
log_dir
(self)
dataset.py:39
Method
make_fc_bn
(self, name, X, out_dim)
model.py:64
Method
model_dir
(self)
dataset.py:32
Method
parse_fn
(self, serialized_example)
dataset.py:95
Method
sample_img_dir
(self)
dataset.py:46
Function
work
(list_id)
create_tfrecords.py:46
Function
work
(data_dir, out_dir, landmarks, i)
preprocess.py:131