MCPcopy Create free account

hub / github.com/dinhquy94/face-antispoofing-using-mobileNet / functions

Functions45 in github.com/dinhquy94/face-antispoofing-using-mobileNet

↓ 15 callersMethod__add_to_nodes
(self, nodes)
model.py:268
↓ 13 callersFunctiondepthwise_separable_conv2d
Implementation of depthwise separable 2D convolution operator as in MobileNet paper
layers.py:143
↓ 6 callersFunction__variable_summaries
Attach a lot of summaries to a Tensor (for TensorBoard visualization). :param var: variable to be summarized :return: None
layers.py:324
↓ 3 callersFunction__variable_with_weight_decay
Create a variable with L2 Regularization (Weight Decay) :param kernel_shape: the size of the convolving weight kernel. :param initializer
layers.py:306
↓ 3 callersFunctionconv2d
This block is responsible for a convolution 2D layer followed by optional (non-linearity, dropout, max-pooling). Note that: "is_training" sho
layers.py:42
↓ 2 callersMethodadd_summary
Add the summaries to tensorboard :param step: :param summaries_dict: :param summaries_merged: :return:
summarizer.py:30
↓ 2 callersMethodgenerate_batch
Generate batch from X_train/X_test and y_train/y_test using a python DataGenerator
data_loader.py:45
↓ 2 callersMethodsave_model
Save Model Checkpoint :return:
train.py:36
↓ 2 callersMethodtest
(self, test_type='val')
train.py:137
↓ 1 callersMethod__build
(self)
model.py:56
↓ 1 callersFunction__conv2d_p
Convolution 2D Wrapper :param name: (string) The name scope provided by the upper tf.name_scope('name') as scope. :param x: (tf.tensor) T
layers.py:7
↓ 1 callersFunction__dense_p
Fully connected layer :param name: (string) The name scope provided by the upper tf.name_scope('name') as scope. :param x: (tf.tensor) Th
layers.py:168
↓ 1 callersFunction__depthwise_conv2d_p
(name, x, w=None, kernel_size=(3, 3), padding='SAME', stride=(1, 1), initializer=tf.c
layers.py:100
↓ 1 callersMethod__init_global_epoch
Create a global epoch tensor to totally save the process of the training :return:
model.py:272
↓ 1 callersMethod__init_global_step
Create a global step variable to be a reference to the number of iterations :return:
model.py:282
↓ 1 callersMethod__init_input
(self)
model.py:36
↓ 1 callersMethod__init_mean
(self)
model.py:48
↓ 1 callersMethod__init_model
(self)
train.py:30
↓ 1 callersMethod__init_network
(self)
model.py:64
↓ 1 callersMethod__init_output
(self)
model.py:229
↓ 1 callersMethod__init_summaries
Create the summary part of the graph :return:
summarizer.py:19
↓ 1 callersMethod__load_model
(self)
train.py:45
↓ 1 callersMethod__restore
(self, file_name, sess)
model.py:250
↓ 1 callersFunctionavg_pool_2d
Average pooling 2D Wrapper :param x: (tf.tensor) The input to the layer (N,H,W,C). :param size: (tuple) This specifies the si
layers.py:289
↓ 1 callersFunctioncreate_experiment_dirs
Create Directories of a regular tensorflow experiment directory :param exp_dir: :return summary_dir, checkpoint_dir:
utils.py:49
↓ 1 callersFunctiondepthwise_conv2d
Implementation of depthwise 2D convolution wrapper
layers.py:121
↓ 1 callersFunctiondropout
Dropout special layer
layers.py:244
↓ 1 callersFunctionflatten
Flatten a (N,H,W,C) input into (N,D) output. Used for fully connected layers after conolution layers :param x: (tf.tensor) representing input
layers.py:260
↓ 1 callersFunctionget_files
()
data_loader.py:101
↓ 1 callersMethodload_data
(self)
data_loader.py:27
↓ 1 callersFunctionload_obj
(name)
utils.py:71
↓ 1 callersMethodload_pretrained_weights
(self, sess)
model.py:265
↓ 1 callersFunctionmain
()
main.py:9
↓ 1 callersFunctionmax_pool_2d
Max pooling 2D Wrapper :param x: (tf.tensor) The input to the layer (N,H,W,C). :param size: (tuple) This specifies the size of the filter
layers.py:274
↓ 1 callersFunctionparse_args
Parse the arguments of the program :return: (config_args) :rtype: tuple
utils.py:11
↓ 1 callersMethodtrain
(self)
train.py:59
Method__init__
(self, sess, model, data, summarizer)
train.py:10
Method__init__
(self, sess, summary_dir)
summarizer.py:7
Method__init__
(self, batch_size, shuffle=False)
data_loader.py:10
Method__init__
(self, args)
model.py:13
Functioncalculate_flops
()
utils.py:81
Functiondense
This block is responsible for a fully connected followed by optional (non-linearity, dropout, max-pooling). Note that: "is_training" should b
layers.py:192
Functiondropout_no_keep
()
layers.py:85
Functiondropout_with_keep
()
layers.py:82
Functionsave_obj
(obj, name)
utils.py:76