Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InnerPeace-Wu/CapsNet-tensorflow
/ functions
Functions
26 in github.com/InnerPeace-Wu/CapsNet-tensorflow
⨍
Functions
26
◇
Types & classes
1
↓ 6 callers
Function
imshow_noax
show image by plt with axis off
code/utils.py:35
↓ 4 callers
Function
squash
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 callers
Method
_reconstruct
reconstruct from digit capsules with 3 fully connected layer :param digit_caps: digit capsules with shape [None, 16]
code/CapsNet.py:196
↓ 2 callers
Method
_accuracy
set up accuracy
code/CapsNet.py:391
↓ 2 callers
Method
_build_net
build the graph of the network
code/CapsNet.py:318
↓ 2 callers
Method
get_summary
get training summary
code/CapsNet.py:402
↓ 2 callers
Method
snapshot
save checkpoint
code/CapsNet.py:422
↓ 2 callers
Method
test
test trained model on specific dataset split
code/CapsNet.py:428
↓ 2 callers
Function
tweak_matrix
compute tweak matrix for experiment of capsule unit representations
code/utils.py:45
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
adversarial_eval
advertisal test
code/CapsNet.py:534
↓ 1 callers
Method
cap_tweak
capsule unit representation tweaking test
code/CapsNet.py:517
↓ 1 callers
Method
eval_architecture
evaluation architecture
code/CapsNet.py:484
↓ 1 callers
Function
main
()
code/eval.py:58
↓ 1 callers
Function
main
()
code/train.py:46
↓ 1 callers
Function
parse_arg
parse input arguments
code/eval.py:22
↓ 1 callers
Function
parse_arg
parse input arguments
code/train.py:21
↓ 1 callers
Method
reconstruct_eval
do image reconstruction and representations
code/CapsNet.py:455
↓ 1 callers
Method
train
training process :arg data: (images, labels)
code/CapsNet.py:411
↓ 1 callers
Method
train_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
Method
body
(i, prior, cap_out)
code/CapsNet.py:135