MCPcopy Create free account

hub / github.com/THUYimingLi/BackdoorBox / types & classes

Types & classes179 in github.com/THUYimingLi/BackdoorBox

↓ 49 callersClassConv2dSame
Manual convolution with same padding Although PyTorch >= 1.10.0 supports ``padding='same'`` as a keyword argument, this does not export to Co
core/attacks/ISSBA.py:88
↓ 20 callersClassLog
core/utils/log.py:1
↓ 16 callersClassDown
Downscaling with maxpool then double conv
core/models/unet.py:27
↓ 16 callersClassUp
Upscaling then double conv
core/models/unet.py:40
↓ 8 callersClassVGG
core/models/vgg.py:7
↓ 8 callersClassVGGCurve
core/models/vgg_curve.py:14
↓ 7 callersClassDoubleConv
(convolution => [BN] => ReLU) * 2
core/models/unet.py:8
↓ 7 callersClassGetPoisonedDataset
Construct a dataset. Args: data_list (list): the list of data. labels (list): the list of label.
core/attacks/ISSBA.py:49
↓ 6 callersClassConv2dBlock
The Conv2dBlock in the generator of dynamic backdoor trigger.
core/attacks/IAD.py:107
↓ 6 callersClassModifyTarget
core/attacks/BATT.py:20
↓ 5 callersClass_ResNet
core/models/resnet.py:65
↓ 5 callersClass_ResNetCurve
core/models/resnet_curve.py:80
↓ 4 callersClassGetPoisonedDataset
Construct a dataset. Args: data_list (list): the list of data. labels (list): the list of label.
core/attacks/LIRA.py:106
↓ 4 callersClassGetPoisonedDataset
Construct a dataset. Args: data_list (list): the list of data. labels (list): the list of label.
core/attacks/IAD.py:38
↓ 4 callersClassGetPoisonedDataset
Construct a dataset. Args: data_list (list): the list of data. labels (list): the list of label.
tests/test_ISSBA.py:37
↓ 4 callersClassModifyTarget
core/attacks/IAD.py:30
↓ 4 callersClassNormalize
Normalization of images. Args: dataset_name (str): the name of the dataset to be normalized. expected_values (float): the normali
core/attacks/IAD.py:58
↓ 4 callersClassOutConv
core/models/unet.py:69
↓ 3 callersClassModifyTarget
core/attacks/LabelConsistent.py:209
↓ 3 callersClassModifyTarget
core/attacks/Refool.py:26
↓ 3 callersClassModifyTarget
core/attacks/BadNets.py:199
↓ 3 callersClassModifyTarget
core/attacks/TUAP.py:202
↓ 3 callersClassModifyTarget
core/attacks/WaNet.py:209
↓ 3 callersClassModifyTarget
core/attacks/AdaptivePatch.py:199
↓ 3 callersClassModifyTarget
core/attacks/Blended.py:198
↓ 2 callersClassAddCIFAR10Trigger
Add watermarked trigger to CIFAR10 image. Args: pattern (None | torch.Tensor): shape (3, 32, 32) or (32, 32). weight (None | torc
core/attacks/TUAP.py:181
↓ 2 callersClassAddCIFAR10Trigger
Add WaNet trigger to CIFAR10 image. Args: identity_grid (orch.Tensor): the poisoned pattern shape. noise_grid (orch.Tensor): the
core/attacks/WaNet.py:172
↓ 2 callersClassAddDatasetFolderTrigger
Add watermarked trigger to DatasetFolder images. Args: pattern (torch.Tensor): shape (C, H, W) or (H, W). weight (torch.Tensor):
core/attacks/LabelConsistent.py:46
↓ 2 callersClassAddDatasetFolderTrigger
Add watermarked trigger to DatasetFolder images. Args: pattern (torch.Tensor): shape (C, H, W) or (H, W). weight (torch.Tensor):
core/attacks/TUAP.py:87
↓ 2 callersClassAddDatasetFolderTrigger
Add WaNet trigger to DatasetFolder images. Args: identity_grid (orch.Tensor): the poisoned pattern shape. noise_grid (orch.Tensor
core/attacks/WaNet.py:47
↓ 2 callersClassAddMNISTTrigger
Add watermarked trigger to MNIST image. Args: pattern (None | torch.Tensor): shape (1, 28, 28) or (28, 28). weight (None | torch.
core/attacks/TUAP.py:158
↓ 2 callersClassAddMNISTTrigger
Add WaNet trigger to MNIST image. Args: identity_grid (orch.Tensor): the poisoned pattern shape. noise_grid (orch.Tensor): the no
core/attacks/WaNet.py:134
↓ 2 callersClassAutoencoder
The generator of backdoor trigger on GTSRB.
core/attacks/LIRA.py:223
↓ 2 callersClassDenormalize
Denormalization of images. Args: dataset_name (str): the name of the dataset to be denormalized. expected_values (float): the den
core/attacks/IAD.py:82
↓ 2 callersClassGenerator
The generator of dynamic backdoor trigger. Args: dataset_name (str): the name of the dataset. out_channels (int): the output
core/attacks/IAD.py:151
↓ 2 callersClassMNISTAutoencoder
The generator of backdoor trigger on MNIST.
core/attacks/LIRA.py:126
↓ 2 callersClassMNISTBlock
core/attacks/LIRA.py:28
↓ 2 callersClassMNISTBlock
tests/test_LIRA.py:271
↓ 2 callersClassNormalize
Normalization of images. Args: dataset_name (str): the name of the dataset to be normalized. expected_values (float): the normali
core/attacks/ISSBA.py:25
↓ 2 callersClassProbTransform
The data augmentation transform by the probability. Args: f (nn.Module): the data augmentation transform operation. p (float): th
core/attacks/ISSBA.py:507
↓ 2 callersClassProbTransform
The data augmentation transform by the probability. Args: f (nn.Module): the data augmentation transform operation. p (float)
core/attacks/LIRA.py:261
↓ 2 callersClassStegaStampDecoder
The image steganography decoder to assist the training of the image steganography encoder. We implement it based on the official tensorflow versi
core/attacks/ISSBA.py:236
↓ 2 callersClassStegaStampEncoder
The image steganography encoder to implant the backdoor trigger. We implement it based on the official tensorflow version: https://github.co
core/attacks/ISSBA.py:157
↓ 2 callersClassSupConLoss
Supervised Contrastive Learning: https://arxiv.org/pdf/2004.11362.pdf. It also supports the unsupervised contrastive loss in SimCLR
core/utils/supconloss.py:11
↓ 2 callersClassTensorsDataset
A simple loading dataset - loads the tensor that are passed in input. This is the same as torch.utils.data.TensorDataset except that you can
core/defenses/ABL.py:55
↓ 2 callersClassUNet
The generator of backdoor trigger on CIFAR10.
core/attacks/LIRA.py:169
↓ 2 callersClassVGG
core/attacks/LIRA.py:66
↓ 2 callersClassVGG
tests/test_LIRA.py:34
↓ 1 callersClassAT
Paying More Attention to Attention: Improving the Performance of Convolutional Neural Netkworks via Attention Transfer https://arxiv.org/pdf/1612.
core/defenses/NAD.py:31
↓ 1 callersClassAddCIFAR10Trigger
Add watermarked trigger to CIFAR10 image. Args: pattern (None | torch.Tensor): shape (3, 32, 32) or (32, 32). weight (None | torc
core/attacks/LabelConsistent.py:171
↓ 1 callersClassAddCIFAR10Trigger
Add watermarked trigger to CIFAR10 image. Args: pattern (None | torch.Tensor): shape (3, 32, 32) or (32, 32). weight (None | torc
core/attacks/BadNets.py:161
↓ 1 callersClassAddCIFAR10Trigger
Add watermarked trigger to CIFAR10 image. Args: pattern (None | torch.Tensor): shape (3, 32, 32) or (32, 32). weight (None | torc
core/attacks/AdaptivePatch.py:161
↓ 1 callersClassAddCIFAR10Trigger
Add watermarked trigger to CIFAR10 image. Args: pattern (None | torch.Tensor): shape (3, 32, 32) or (32, 32). weight (None | torc
core/attacks/Blended.py:160
↓ 1 callersClassAddDatasetFolderTrigger
Add watermarked trigger to DatasetFolder images. Args: pattern (torch.Tensor): shape (C, H, W) or (H, W). weight (torch.Tensor):
core/attacks/BadNets.py:36
↓ 1 callersClassAddDatasetFolderTrigger
Add watermarked trigger to DatasetFolder images. Args: pattern (torch.Tensor): shape (C, H, W) or (H, W). weight (torch.Tensor):
core/attacks/AdaptivePatch.py:36
↓ 1 callersClassAddDatasetFolderTrigger
Add watermarked trigger to DatasetFolder images. Args: pattern (torch.Tensor): shape (C, H, W) or (H, W). weight (torch.Tensor):
core/attacks/Blended.py:35
↓ 1 callersClassAddMNISTTrigger
Add watermarked trigger to MNIST image. Args: pattern (None | torch.Tensor): shape (1, 28, 28) or (28, 28). weight (None | torch.
core/attacks/LabelConsistent.py:132
↓ 1 callersClassAddMNISTTrigger
Add watermarked trigger to MNIST image. Args: pattern (None | torch.Tensor): shape (1, 28, 28) or (28, 28). weight (None | torch.
core/attacks/BadNets.py:122
↓ 1 callersClassAddMNISTTrigger
Add watermarked trigger to MNIST image. Args: pattern (None | torch.Tensor): shape (1, 28, 28) or (28, 28). weight (None | torch.
core/attacks/AdaptivePatch.py:122
↓ 1 callersClassAddMNISTTrigger
Add watermarked trigger to MNIST image. Args: pattern (None | torch.Tensor): shape (1, 28, 28) or (28, 28). weight (None | torch.
core/attacks/Blended.py:121
↓ 1 callersClassAddTrigger
core/attacks/Blind.py:410
↓ 1 callersClassAutoEncoder1x28x28
Autoencoder for 1x28x28 input image. This is a reimplementation of the blog post 'Building Autoencoders in Keras', from blog `Building Autoen
core/models/autoencoder.py:5
↓ 1 callersClassAutoEncoder3x32x32
Autoencoder for 3x32x32 input image. This is modified from 'PyTorch-CIFAR-10-autoencoder', from github `PyTorch-CIFAR-10-autoencoder <https:/
core/models/autoencoder.py:49
↓ 1 callersClassBaselineMNISTNetwork
core/attacks/LIRA.py:39
↓ 1 callersClassBaselineMNISTNetwork
Baseline network for MNIST dataset. This network is the implement of baseline network for MNIST dataset, from paper `BadNets: Evaluating Back
core/models/baseline_MNIST_network.py:5
↓ 1 callersClassBaselineMNISTNetwork
tests/test_LIRA.py:282
↓ 1 callersClassBatchNorm2d_ent
core/defenses/FLARE.py:19
↓ 1 callersClassCreatePoisonedTargetDataset
core/attacks/LabelConsistent.py:401
↓ 1 callersClassCutout
Randomly mask out one or more patches from an image. Args: n_holes (int): Number of patches to cut out of each image. length (int)
tests/test_NAD.py:34
↓ 1 callersClassDeltaset
Dataset that poison original dataset by adding small perturbation (delta) to original dataset, and changing label to target label (t_lable) Thi
core/attacks/SleeperAgent.py:16
↓ 1 callersClassDiscriminator
The image steganography discriminator to assist the training of the image steganography encoder and decoder. We implement it based on the officia
core/attacks/ISSBA.py:304
↓ 1 callersClassDownSampleBlock
The DownSampleBlock in the generator of dynamic backdoor trigger.
core/attacks/IAD.py:123
↓ 1 callersClassHairEditor
core/attacks/BAAT.py:205
↓ 1 callersClassLGALoss
core/defenses/ABL.py:31
↓ 1 callersClassMNISTDiscriminator
The image steganography discriminator to assist the training of the image steganography encoder and decoder (Customized for MNIST dataset). We im
core/attacks/ISSBA.py:467
↓ 1 callersClassMNISTStegaStampDecoder
The image steganography decoder to assist the training of the image steganography encoder (Customized for MNIST dataset). We implement it based o
core/attacks/ISSBA.py:401
↓ 1 callersClassMNISTStegaStampEncoder
The image steganography encoder to implant the backdoor trigger (Customized for MNIST dataset). We implement it based on the official tensorflow
core/attacks/ISSBA.py:331
↓ 1 callersClassMaskedLayer
core/defenses/Pruning.py:17
↓ 1 callersClassModifyTarget
core/attacks/BAAT.py:73
↓ 1 callersClassModifyTarget
core/attacks/LIRA.py:98
↓ 1 callersClassNCModel
core/attacks/Blind.py:31
↓ 1 callersClassPGD
r""" PGD in the paper 'Towards Deep Learning Models Resistant to Adversarial Attacks' [https://arxiv.org/abs/1706.06083] Distance Mea
core/utils/torchattacks/attacks/pgd.py:7
↓ 1 callersClassPoisonedCIFAR10
core/attacks/LabelConsistent.py:333
↓ 1 callersClassPoisonedCIFAR10
core/attacks/Refool.py:321
↓ 1 callersClassPoisonedCIFAR10
core/attacks/BadNets.py:323
↓ 1 callersClassPoisonedCIFAR10
core/attacks/PhysicalBA.py:150
↓ 1 callersClassPoisonedCIFAR10
core/attacks/TUAP.py:381
↓ 1 callersClassPoisonedCIFAR10
core/attacks/WaNet.py:367
↓ 1 callersClassPoisonedCIFAR10
core/attacks/Blended.py:322
↓ 1 callersClassPoisonedDatasetFolder
core/attacks/LabelConsistent.py:217
↓ 1 callersClassPoisonedDatasetFolder
core/attacks/Refool.py:238
↓ 1 callersClassPoisonedDatasetFolder
core/attacks/BadNets.py:207
↓ 1 callersClassPoisonedDatasetFolder
core/attacks/PhysicalBA.py:22
↓ 1 callersClassPoisonedDatasetFolder
core/attacks/TUAP.py:210
↓ 1 callersClassPoisonedDatasetFolder
core/attacks/WaNet.py:217
↓ 1 callersClassPoisonedDatasetFolder
core/attacks/AdaptivePatch.py:207
↓ 1 callersClassPoisonedDatasetFolder
core/attacks/Blended.py:206
↓ 1 callersClassPoisonedMNIST
core/attacks/LabelConsistent.py:277
↓ 1 callersClassPoisonedMNIST
core/attacks/Refool.py:392
↓ 1 callersClassPoisonedMNIST
core/attacks/BadNets.py:267
next →1–100 of 179, ranked by callers