MCPcopy Create free account

hub / github.com/SCLBD/MCG-Blackbox / functions

Functions327 in github.com/SCLBD/MCG-Blackbox

Method__init__
(self, factor)
models/modules.py:309
Method__init__
(self, num_channels)
models/modules.py:348
Method__init__
(self, in_channels, out_channels)
models/modules.py:432
Method__init__
(self, in_channels, out_channels)
models/modules.py:444
Method__len__
(self)
data/datasets.py:37
Method__setattr__
(self, name: str, value: Any)
utils/commons.py:51
Methodadd
(self, current_count, success)
utils/attack_count.py:18
Methodadd
(self, images, logits)
utils/buffer.py:31
Functionask_yes_no
Ask the user the question until the user inputs a valid answer.
utils/commons.py:169
Methodattack
(self, model, image, label)
attacks/ifgsm_attack.py:78
Methodattack
(self, loss_func, x, y, init=None, buffer=None, **kwargs)
attacks/square.py:50
Methodattack
:param loss: Target Black-box model loss function :param x: Benign image :param y: Label :param init: Initialization
attacks/base_attack.py:58
Methodattack
(self, loss_func, x, y, init=None, buffer=None, **kwargs)
attacks/signhunter.py:18
Functionattacker_init
(args)
utils/attack_init.py:61
Functionbuffer_init
(args)
utils/attack_init.py:81
Functionbuild_graph
(fn)
utils/finetune.py:51
Methodcheck
(model, image, label)
trainners/MetaLearner.py:212
Methodcheck
(self)
utils/buffer.py:37
Methodclear
(self)
utils/buffer.py:106
Functionconstruct_class_by_name
Finds the python class with the given name and constructs it with the given arguments.
utils/commons.py:303
Functioncopy_files_and_create_dirs
Takes in a list of tuples of (src, dst) paths and copies files. Will create all necessary directories.
utils/commons.py:364
Functiondata_init
(args)
utils/attack_init.py:20
Methoddecode
(self, x, mean_input=None, logs_input=None, eps_std=1.0, return_prob=False, zs=None, no_norm=False)
models/cglow.py:278
Functiondownsample_dct
(im)
models/cglow.py:58
Functioneliminate_error
(x)
utils/surrogate_trainer.py:4
Methodencode
(self, x=0.0, y=None, eps_std=1.0, return_z=False)
models/cglow.py:307
Functionformat_time
Convert the seconds to human readable string with days, hours, minutes and seconds.
utils/commons.py:141
Functionformat_time_brief
Convert the seconds to human readable string with days, hours, minutes and seconds.
utils/commons.py:155
Methodforward
(self, x)
utils/load_models.py:177
Methodforward
(self, x)
utils/load_models.py:205
Methodforward
(self, x)
surro_models/cifar10_models/pyramidnet.py:28
Methodforward
(self, x)
surro_models/cifar10_models/pyramidnet.py:76
Methodforward
(self, x)
surro_models/cifar10_models/pyramidnet.py:206
Methodforward
(self, x)
surro_models/cifar10_models/lenet.py:14
Methodforward
(self, x)
surro_models/cifar10_models/resnext.py:31
Methodforward
(self, x)
surro_models/cifar10_models/resnext.py:65
Methodforward
(self, x)
surro_models/cifar10_models/pnasnet.py:20
Methodforward
(self, x)
surro_models/cifar10_models/pnasnet.py:33
Methodforward
(self, x)
surro_models/cifar10_models/pnasnet.py:56
Methodforward
(self, x)
surro_models/cifar10_models/pnasnet.py:100
Methodforward
(self, x)
surro_models/cifar10_models/senet.py:29
Methodforward
(self, x)
surro_models/cifar10_models/senet.py:62
Methodforward
(self, x)
surro_models/cifar10_models/senet.py:100
Methodforward
(self, x)
surro_models/cifar10_models/dpn.py:27
Methodforward
(self, x)
surro_models/cifar10_models/dpn.py:61
Methodforward
(self, x)
surro_models/cifar10_models/densenet.py:17
Methodforward
(self, x)
surro_models/cifar10_models/densenet.py:30
Methodforward
(self, x)
surro_models/cifar10_models/densenet.py:75
Methodforward
(self, x)
surro_models/cifar10_models/wrn.py:22
Methodforward
(self, x)
surro_models/cifar10_models/wrn.py:42
Methodforward
(self, x)
surro_models/cifar10_models/wrn.py:77
Methodforward
(self, x)
surro_models/cifar10_models/mobilenet.py:20
Methodforward
(self, x)
surro_models/cifar10_models/mobilenet.py:46
Methodforward
Channel shuffle: [N,C,H,W] -> [N,g,C/g,H,W] -> [N,C/g,g,H,w] -> [N,C,H,W]
surro_models/cifar10_models/shufflenetv2.py:15
Methodforward
(self, x)
surro_models/cifar10_models/shufflenetv2.py:27
Methodforward
(self, x)
surro_models/cifar10_models/shufflenetv2.py:48
Methodforward
(self, x)
surro_models/cifar10_models/shufflenetv2.py:82
Methodforward
(self, x)
surro_models/cifar10_models/shufflenetv2.py:121
Methodforward
(self, x)
surro_models/cifar10_models/vgg.py:20
Methodforward
Channel shuffle: [N,C,H,W] -> [N,g,C/g,H,W] -> [N,C/g,g,H,w] -> [N,C,H,W]
surro_models/cifar10_models/shufflenet.py:15
Methodforward
(self, x)
surro_models/cifar10_models/shufflenet.py:41
Methodforward
(self, x)
surro_models/cifar10_models/shufflenet.py:75
Methodforward
(self, x)
surro_models/cifar10_models/mobilenetv2.py:32
Methodforward
(self, x)
surro_models/cifar10_models/mobilenetv2.py:69
Methodforward
(self, x)
surro_models/cifar10_models/preact_resnet.py:28
Methodforward
(self, x)
surro_models/cifar10_models/preact_resnet.py:55
Methodforward
(self, x)
surro_models/cifar10_models/preact_resnet.py:85
Methodforward
(self, x)
surro_models/cifar10_models/resnet.py:31
Methodforward
(self, x)
surro_models/cifar10_models/resnet.py:58
Methodforward
(self, x)
surro_models/cifar10_models/resnet.py:88
Methodforward
(self, x)
surro_models/cifar10_models/googlenet.py:48
Methodforward
(self, x)
surro_models/cifar10_models/googlenet.py:82
Methodforward
(self, x, y, logdet=None, reverse=False)
models/cglow.py:27
Methodforward
(self, x, y, logdet=0.0, reverse=False, eps_std=1.0)
models/cglow.py:142
Methodforward
(self, x=0.0, y=None, eps_std=1.0, reverse=False)
models/cglow.py:246
Methodforward
(self, x, y, logdet=0, reverse=False)
models/modules.py:108
Methodforward
(self, x, y, logdet=None, reverse=False)
models/modules.py:194
Methodforward
(self, input)
models/modules.py:233
Methodforward
(self, input)
models/modules.py:254
Methodforward
(self, x, y, logdet=0.0, reverse=False)
models/modules.py:284
Methodforward
(self, input, logdet=None, reverse=False)
models/modules.py:313
Methodforward
(self, input, logdet=0., reverse=False, eps_std=None, z2=None)
models/modules.py:360
Methodforward
(self, input)
models/modules.py:437
Functionfreeze_part_parameters
(model_name, model)
utils/load_models.py:31
Functiongenerate
(images, latent)
models/flow_latent.py:51
Methodget_all_counts
(self)
utils/attack_count.py:49
Functionget_dtype_and_ctype
Given a type name string (or an object having a __name__ attribute), return matching Numpy and ctypes types that have the same size in bytes.
utils/commons.py:203
Methodget_item
(self, ix)
utils/buffer.py:138
Methodget_lamda
(self)
utils/surrogate_trainer.py:23
Functionget_module_dir_by_obj_name
Get the directory path of the module containing the given object name.
utils/commons.py:308
Functionget_top_level_function_name
Return the fully-qualified name of a top-level function.
utils/commons.py:319
Functionhook_cb
(fn)
utils/finetune.py:25
Functionis_bad_grad
(grad_output)
utils/finetune.py:33
Functionis_difficult
(id)
data/data_prehandle.py:39
Functionis_pickleable
(obj: Any)
utils/commons.py:226
Functionlist_dir_recursively_with_ignore
List all files recursively in a given directory while ignoring given file and directory names. Returns list of tuples containing both absolute and
utils/commons.py:331
Functionlog_init
(args)
utils/attack_init.py:99
Methodloss_function
(images, latent, labels)
attacks/cgattack.py:32
Functionmake_dot
()
utils/finetune.py:39
Functionmodel_init
(args)
utils/attack_init.py:35
← previousnext →201–300 of 327, ranked by callers