MCPcopy Create free account

hub / github.com/InnerPeace-Wu/CapsNet-tensorflow / functions

Functions26 in github.com/InnerPeace-Wu/CapsNet-tensorflow

↓ 6 callersFunctionimshow_noax
show image by plt with axis off
code/utils.py:35
↓ 4 callersFunctionsquash
squash function for keep the length of capsules between 0 - 1 :arg cap_input: total input of capsules, with shape:
code/utils.py:14
↓ 3 callersMethod_reconstruct
reconstruct from digit capsules with 3 fully connected layer :param digit_caps: digit capsules with shape [None, 16]
code/CapsNet.py:196
↓ 2 callersMethod_accuracy
set up accuracy
code/CapsNet.py:391
↓ 2 callersMethod_build_net
build the graph of the network
code/CapsNet.py:318
↓ 2 callersMethodget_summary
get training summary
code/CapsNet.py:402
↓ 2 callersMethodsnapshot
save checkpoint
code/CapsNet.py:422
↓ 2 callersMethodtest
test trained model on specific dataset split
code/CapsNet.py:428
↓ 2 callersFunctiontweak_matrix
compute tweak matrix for experiment of capsule unit representations
code/utils.py:45
↓ 1 callersMethod_add_loss
add the margin loss and reconstruction loss :arg digit_caps: output of digit capsule layer, shape [None, 10, 16]
code/CapsNet.py:220
↓ 1 callersMethod_dynamic_routing
dynamic routing between capsules :arg primary_caps: primary capsules with shape [None, 1, 32 x 6 x 6, 1, 8] l
code/CapsNet.py:73
↓ 1 callersMethod_dynamic_routingV1
doing dynamic routing with for loop as static implementation :arg proir: log prior for scaling with shape [10, num_caps]
code/CapsNet.py:156
↓ 1 callersMethod_dynamic_routingV2
doing dynamic routing with tf.while_loop :arg proir: log prior for scaling with shape [10, num_caps] cap_pred
code/CapsNet.py:119
↓ 1 callersMethodadversarial_eval
advertisal test
code/CapsNet.py:534
↓ 1 callersMethodcap_tweak
capsule unit representation tweaking test
code/CapsNet.py:517
↓ 1 callersMethodeval_architecture
evaluation architecture
code/CapsNet.py:484
↓ 1 callersFunctionmain
()
code/eval.py:58
↓ 1 callersFunctionmain
()
code/train.py:46
↓ 1 callersFunctionparse_arg
parse input arguments
code/eval.py:22
↓ 1 callersFunctionparse_arg
parse input arguments
code/train.py:21
↓ 1 callersMethodreconstruct_eval
do image reconstruction and representations
code/CapsNet.py:455
↓ 1 callersMethodtrain
training process :arg data: (images, labels)
code/CapsNet.py:411
↓ 1 callersMethodtrain_architecture
creat architecture of the whole network
code/CapsNet.py:283
Method__init__
initial class with mnist dataset
code/CapsNet.py:23
Method_capsule
compute a capsule, conv op with kernel: 9x9, stride: 2, padding: VALID, output channels: 8 per capsule. As described
code/CapsNet.py:39
Methodbody
(i, prior, cap_out)
code/CapsNet.py:135