Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ashafahi/inceptionv3-transferLearn-poison
/ functions
Functions
20 in github.com/ashafahi/inceptionv3-transferLearn-poison
⨍
Functions
20
◇
Types & classes
0
↓ 4 callers
Function
encode_one_hot
(nclasses,y)
make_graph_for_warm_and_cold.py:82
↓ 4 callers
Function
encode_one_hot
(nclasses,y)
util_one_shot_kill_attack.py:435
↓ 2 callers
Function
clean_data
this method takes the data input images and removes those that do not have a 3rd dimension to prevent issues with inception and returns the
util_one_shot_kill_attack.py:46
↓ 2 callers
Function
create_graph
Creates a graph from saved GraphDef file and returns a saver.
util_one_shot_kill_attack.py:74
↓ 2 callers
Function
get_feat_reps
Returns the feature representation of some images by looking at the penultimate layer of inception-v3 Parameters ---------- X : ndarr
util_one_shot_kill_attack.py:87
↓ 2 callers
Function
load_images_from_directory
Returns an numpy array of the images in a folder directory Parameters ---------- Specie : string just the name of the class -
util_one_shot_kill_attack.py:24
↓ 2 callers
Function
train_last_layer_of_inception
This function does training for the last layer of inception-v3. It either performs a cold start in which it starts from a pre-saved graph or
util_one_shot_kill_attack.py:443
↓ 1 callers
Function
adam_one_step
(sess,grad_op,m,v,t,currentImage,featRepTarget,tarFeatRepPL,inputCastImgTensor,learning_rate,beta_1=0.9, beta_
util_one_shot_kill_attack.py:233
↓ 1 callers
Function
add_evaluation_step
Inserts the operations we need to evaluate the accuracy of our results. Args: graph: Container for the existing model's Graph. Returns:
make_graph_for_warm_and_cold.py:66
↓ 1 callers
Function
add_final_training_ops
Adds a new softmax and fully-connected layer for training. We need to retrain the top layer to identify our new classes, so this function adds
make_graph_for_warm_and_cold.py:42
↓ 1 callers
Function
closest_to_target_from_class
Returns an index within the allTestFeatReps matrix for which is the closes to the target in feature spacee and belongs to the base class Par
util_one_shot_kill_attack.py:399
↓ 1 callers
Function
create_graph
Creates a graph from saved GraphDef file and returns a saver.
make_graph_for_warm_and_cold.py:30
↓ 1 callers
Function
do_backward
helper function doing the backward step in the FWD-BCKWD splitting algorithm
util_one_shot_kill_attack.py:249
↓ 1 callers
Function
do_forward
helper function doing the forward step in the FWD-BCKWD splitting algorithm
util_one_shot_kill_attack.py:243
↓ 1 callers
Function
do_optimization
Returns the poison image and the difference between the poison and target in feature space. Parameters ---------- targetImg : ndarray
util_one_shot_kill_attack.py:259
↓ 1 callers
Function
do_train
(sess,saver,X_input, Y_input, X_validation, Y_validation)
make_graph_for_warm_and_cold.py:85
↓ 1 callers
Function
id_duplicates_of_training_from_test
Returns the ids for the duplicates of training in test Parameters ---------- X_test : ndarray the feature represenatons of th
util_one_shot_kill_attack.py:128
↓ 1 callers
Function
iterate_mini_batches
(X_input,Y_input,batch_size)
make_graph_for_warm_and_cold.py:77
↓ 1 callers
Function
iterate_mini_batches
(X_input,Y_input,batch_size)
util_one_shot_kill_attack.py:438
↓ 1 callers
Function
load_bottleNeckTensor_data
Returns the train-test splits of images and their feature representations. Parameters ---------- directory : string, optional
util_one_shot_kill_attack.py:159