Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dinhquy94/face-antispoofing-using-mobileNet
/ functions
Functions
45 in github.com/dinhquy94/face-antispoofing-using-mobileNet
⨍
Functions
45
◇
Types & classes
4
↓ 15 callers
Method
__add_to_nodes
(self, nodes)
model.py:268
↓ 13 callers
Function
depthwise_separable_conv2d
Implementation of depthwise separable 2D convolution operator as in MobileNet paper
layers.py:143
↓ 6 callers
Function
__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 callers
Function
__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 callers
Function
conv2d
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 callers
Method
add_summary
Add the summaries to tensorboard :param step: :param summaries_dict: :param summaries_merged: :return:
summarizer.py:30
↓ 2 callers
Method
generate_batch
Generate batch from X_train/X_test and y_train/y_test using a python DataGenerator
data_loader.py:45
↓ 2 callers
Method
save_model
Save Model Checkpoint :return:
train.py:36
↓ 2 callers
Method
test
(self, test_type='val')
train.py:137
↓ 1 callers
Method
__build
(self)
model.py:56
↓ 1 callers
Function
__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 callers
Function
__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 callers
Function
__depthwise_conv2d_p
(name, x, w=None, kernel_size=(3, 3), padding='SAME', stride=(1, 1), initializer=tf.c
layers.py:100
↓ 1 callers
Method
__init_global_epoch
Create a global epoch tensor to totally save the process of the training :return:
model.py:272
↓ 1 callers
Method
__init_global_step
Create a global step variable to be a reference to the number of iterations :return:
model.py:282
↓ 1 callers
Method
__init_input
(self)
model.py:36
↓ 1 callers
Method
__init_mean
(self)
model.py:48
↓ 1 callers
Method
__init_model
(self)
train.py:30
↓ 1 callers
Method
__init_network
(self)
model.py:64
↓ 1 callers
Method
__init_output
(self)
model.py:229
↓ 1 callers
Method
__init_summaries
Create the summary part of the graph :return:
summarizer.py:19
↓ 1 callers
Method
__load_model
(self)
train.py:45
↓ 1 callers
Method
__restore
(self, file_name, sess)
model.py:250
↓ 1 callers
Function
avg_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 callers
Function
create_experiment_dirs
Create Directories of a regular tensorflow experiment directory :param exp_dir: :return summary_dir, checkpoint_dir:
utils.py:49
↓ 1 callers
Function
depthwise_conv2d
Implementation of depthwise 2D convolution wrapper
layers.py:121
↓ 1 callers
Function
dropout
Dropout special layer
layers.py:244
↓ 1 callers
Function
flatten
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 callers
Function
get_files
()
data_loader.py:101
↓ 1 callers
Method
load_data
(self)
data_loader.py:27
↓ 1 callers
Function
load_obj
(name)
utils.py:71
↓ 1 callers
Method
load_pretrained_weights
(self, sess)
model.py:265
↓ 1 callers
Function
main
()
main.py:9
↓ 1 callers
Function
max_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 callers
Function
parse_args
Parse the arguments of the program :return: (config_args) :rtype: tuple
utils.py:11
↓ 1 callers
Method
train
(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
Function
calculate_flops
()
utils.py:81
Function
dense
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
Function
dropout_no_keep
()
layers.py:85
Function
dropout_with_keep
()
layers.py:82
Function
save_obj
(obj, name)
utils.py:76