MCPcopy Create free account

hub / github.com/HaohanWang/HFC / functions

Functions47 in github.com/HaohanWang/HFC

↓ 11 callersFunctiongenerateDataWithDifferentFrequencies_3Channel
(Images, r)
utility/frequencyHelper.py:66
↓ 7 callersFunctiononeHotRepresentation
(y, num=10)
scripts/resnet.py:176
↓ 5 callersFunctioncreate_variables
:param name: A string. The name of the new variable :param shape: A list of dimensions :param initializer: User Xavier as default. :p
scripts/resnet.py:224
↓ 5 callersFunctiongetSaveName
(args)
scripts/resnet.py:25
↓ 4 callersMethodget_next_batch
(self, batch_size, multiple_passes=False, reshuffle_after_pass=True)
scripts/resnet.py:137
↓ 4 callersFunctionresidual_block
Defines a residual block in ResNet :param input_layer: 4D tensor :param output_channel: int. return_tensor.get_shape().as_list()[-1] = ou
scripts/resnet.py:313
↓ 3 callersFunctionfftshift
(img)
utility/frequencyHelper.py:10
↓ 3 callersFunctionifftshift
(img)
utility/frequencyHelper.py:18
↓ 2 callersMethod_load_datafile
(filename)
scripts/resnet.py:79
↓ 2 callersFunctionbatch_normalization_layer
Helper function to do batch normalziation :param input_layer: 4D tensor :param dimension: input_layer.get_shape().as_list()[-1]. The dept
scripts/resnet.py:255
↓ 2 callersFunctionbn_relu_conv_layer
A helper function to batch normalize, relu and conv the input layer sequentially :param input_layer: 4D tensor :param filter_shape: list.
scripts/resnet.py:294
↓ 2 callersFunctiondistance3
(a, b)
scripts/resnet.py:745
↓ 2 callersFunctionloadDataCifar10
()
utility/dataLoader.py:14
↓ 2 callersMethodloadWeights
(self, session, args)
scripts/resnet.py:412
↓ 2 callersFunctionload_datafile
(filename)
utility/frequencyHelper.py:92
↓ 2 callersFunctionmask_radial
(img, r)
utility/frequencyHelper.py:29
↓ 2 callersMethodperturb
Given a set of examples (x_nat, y), returns a set of adversarial examples within epsilon of x_nat in l_infinity norm.
utility/pgd_attack.py:42
↓ 1 callersFunctionattackAModelCIFAR
(x, logits, maximumPixel, XTest, yTest)
utility/attackHelper.py:10
↓ 1 callersFunctionattackModel
(args)
scripts/resnet.py:724
↓ 1 callersFunctionconv_bn_relu_layer
A helper function to conv, batch normalize and relu the input tensor sequentially :param input_layer: 4D tensor :param filter_shape: list
scripts/resnet.py:275
↓ 1 callersFunctiondistance
(i, j, imageSize, r)
utility/frequencyHelper.py:22
↓ 1 callersMethodevaluate
(self, x)
scripts/resnet.py:376
↓ 1 callersFunctionfft
(img)
utility/frequencyHelper.py:6
↓ 1 callersFunctionfft
(img)
scripts/resnet.py:185
↓ 1 callersFunctiongenerateSmoothKernel
(data, r)
utility/frequencyHelper.py:38
↓ 1 callersFunctionifft
(img)
utility/frequencyHelper.py:14
↓ 1 callersFunctionloadDataCifar10AdvFast
(saveName)
utility/dataLoader.py:20
↓ 1 callersFunctionmain
(args)
scripts/resnet.py:801
↓ 1 callersFunctiononeHotRepresentation
(y, num=10)
utility/dataLoader.py:5
↓ 1 callersFunctionoutput_layer
:param input_layer: 2D tensor :param num_labels: int. How many output labels in total? (10 for cifar10 and 100 for cifar100) :return: out
scripts/resnet.py:240
↓ 1 callersFunctionpredictAdvDataModelComparisions
(args)
scripts/resnet.py:744
↓ 1 callersFunctiontrain
(args)
scripts/resnet.py:428
↓ 1 callersFunctiontrainMadry
(args)
scripts/resnet.py:606
Method__init__
Attack parameter initialization. The attack performs k steps of size a, while always staying within epsilon from the initial point.
utility/pgd_attack.py:15
Method__init__
(self, path)
scripts/resnet.py:50
Method__init__
(self, raw_cifar10data, sess, model)
scripts/resnet.py:103
Method__init__
(self, xs, ys)
scripts/resnet.py:130
Method__init__
(self, raw_datasubset, sess, x_input_placeholder, augmented)
scripts/resnet.py:162
Method__init__
(self, x, y, conf)
scripts/resnet.py:359
Functionactivation_summary
:param x: A Tensor :return: Add histogram summary and scalar summary of the sparsity of the tensor
scripts/resnet.py:214
Functionbias_variable
(shape)
scripts/resnet.py:198
Functionconv2d
(x, W)
scripts/resnet.py:203
Functionfftshift
(img)
scripts/resnet.py:189
FunctiongenerateDataWithDifferentFrequencies_GrayScale
(Images, r)
utility/frequencyHelper.py:55
Methodget_next_batch
(self, batch_size, multiple_passes=False, reshuffle_after_pass=True)
scripts/resnet.py:169
Functionmax_pool_2x2
(x)
scripts/resnet.py:207
Functionweight_variable
(shape)
scripts/resnet.py:193