Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HaohanWang/HFC
/ functions
Functions
47 in github.com/HaohanWang/HFC
⨍
Functions
47
◇
Types & classes
6
↓ 11 callers
Function
generateDataWithDifferentFrequencies_3Channel
(Images, r)
utility/frequencyHelper.py:66
↓ 7 callers
Function
oneHotRepresentation
(y, num=10)
scripts/resnet.py:176
↓ 5 callers
Function
create_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 callers
Function
getSaveName
(args)
scripts/resnet.py:25
↓ 4 callers
Method
get_next_batch
(self, batch_size, multiple_passes=False, reshuffle_after_pass=True)
scripts/resnet.py:137
↓ 4 callers
Function
residual_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 callers
Function
fftshift
(img)
utility/frequencyHelper.py:10
↓ 3 callers
Function
ifftshift
(img)
utility/frequencyHelper.py:18
↓ 2 callers
Method
_load_datafile
(filename)
scripts/resnet.py:79
↓ 2 callers
Function
batch_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 callers
Function
bn_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 callers
Function
distance3
(a, b)
scripts/resnet.py:745
↓ 2 callers
Function
loadDataCifar10
()
utility/dataLoader.py:14
↓ 2 callers
Method
loadWeights
(self, session, args)
scripts/resnet.py:412
↓ 2 callers
Function
load_datafile
(filename)
utility/frequencyHelper.py:92
↓ 2 callers
Function
mask_radial
(img, r)
utility/frequencyHelper.py:29
↓ 2 callers
Method
perturb
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 callers
Function
attackAModelCIFAR
(x, logits, maximumPixel, XTest, yTest)
utility/attackHelper.py:10
↓ 1 callers
Function
attackModel
(args)
scripts/resnet.py:724
↓ 1 callers
Function
conv_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 callers
Function
distance
(i, j, imageSize, r)
utility/frequencyHelper.py:22
↓ 1 callers
Method
evaluate
(self, x)
scripts/resnet.py:376
↓ 1 callers
Function
fft
(img)
utility/frequencyHelper.py:6
↓ 1 callers
Function
fft
(img)
scripts/resnet.py:185
↓ 1 callers
Function
generateSmoothKernel
(data, r)
utility/frequencyHelper.py:38
↓ 1 callers
Function
ifft
(img)
utility/frequencyHelper.py:14
↓ 1 callers
Function
loadDataCifar10AdvFast
(saveName)
utility/dataLoader.py:20
↓ 1 callers
Function
main
(args)
scripts/resnet.py:801
↓ 1 callers
Function
oneHotRepresentation
(y, num=10)
utility/dataLoader.py:5
↓ 1 callers
Function
output_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 callers
Function
predictAdvDataModelComparisions
(args)
scripts/resnet.py:744
↓ 1 callers
Function
train
(args)
scripts/resnet.py:428
↓ 1 callers
Function
trainMadry
(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
Function
activation_summary
:param x: A Tensor :return: Add histogram summary and scalar summary of the sparsity of the tensor
scripts/resnet.py:214
Function
bias_variable
(shape)
scripts/resnet.py:198
Function
conv2d
(x, W)
scripts/resnet.py:203
Function
fftshift
(img)
scripts/resnet.py:189
Function
generateDataWithDifferentFrequencies_GrayScale
(Images, r)
utility/frequencyHelper.py:55
Method
get_next_batch
(self, batch_size, multiple_passes=False, reshuffle_after_pass=True)
scripts/resnet.py:169
Function
max_pool_2x2
(x)
scripts/resnet.py:207
Function
weight_variable
(shape)
scripts/resnet.py:193