MCPcopy Create free account

hub / github.com/THUYimingLi/BackdoorBox / functions

Functions664 in github.com/THUYimingLi/BackdoorBox

Method__call__
(self, y_target)
tests/test_BAAT.py:73
Method__call__
Args: img (Tensor): Tensor image of size (C, H, W). Returns: Tensor: Image with n_holes of dimension length x
tests/test_NAD.py:44
Method__getitem__
(self, index)
core/defenses/ABL.py:82
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/LabelConsistent.py:254
Method__getitem__
(self, index)
core/attacks/LabelConsistent.py:313
Method__getitem__
(self, index)
core/attacks/LabelConsistent.py:369
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/LabelConsistent.py:424
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/Refool.py:296
Method__getitem__
(self, index)
core/attacks/Refool.py:369
Method__getitem__
(self, index)
core/attacks/Refool.py:440
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/BATT.py:61
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/BATT.py:123
Method__getitem__
(self, index)
core/attacks/BATT.py:184
Method__getitem__
(self, index)
core/attacks/BATT.py:242
Method__getitem__
(self, index)
core/attacks/BATT.py:303
Method__getitem__
(self, index)
core/attacks/BATT.py:361
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/BadNets.py:244
Method__getitem__
(self, index)
core/attacks/BadNets.py:303
Method__getitem__
(self, index)
core/attacks/BadNets.py:359
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/PhysicalBA.py:66
Method__getitem__
(self, index)
core/attacks/PhysicalBA.py:133
Method__getitem__
(self, index)
core/attacks/PhysicalBA.py:194
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/TUAP.py:273
Method__getitem__
(self, index)
core/attacks/TUAP.py:361
Method__getitem__
(self, index)
core/attacks/TUAP.py:447
Method__getitem__
(self, index)
core/attacks/ISSBA.py:63
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/WaNet.py:265
Method__getitem__
(self, index)
core/attacks/WaNet.py:342
Method__getitem__
(self, index)
core/attacks/WaNet.py:414
Method__getitem__
(self, index)
core/attacks/LIRA.py:120
Method__getitem__
(self, index)
core/attacks/IAD.py:52
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/AdaptivePatch.py:258
Method__getitem__
(self, index)
core/attacks/AdaptivePatch.py:333
Method__getitem__
(self, index)
core/attacks/AdaptivePatch.py:389
Method__getitem__
(self, idx)
core/attacks/SleeperAgent.py:30
Method__getitem__
Args: index (int): Index Returns: tuple: (sample, target) where target is class_index of the target class.
core/attacks/Blended.py:243
Method__getitem__
(self, index)
core/attacks/Blended.py:302
Method__getitem__
(self, index)
core/attacks/Blended.py:358
Method__getitem__
(self, index)
tests/test_ISSBA.py:51
Method__init__
(self, log_path)
core/utils/log.py:2
Method__init__
(self, temperature=0.07, contrast_mode='all', base_temperature=0.07)
core/utils/supconloss.py:14
Method__init__
r""" Initializes internal attack state. Arguments: name (str) : name of an attack. model (torch.nn.Module): mo
core/utils/torchattacks/attack.py:13
Method__init__
(self, model, eps=0.3, alpha=2 / 255, steps=40, random_start=False)
core/utils/torchattacks/attacks/pgd.py:31
Method__init__
(self, model, n=5, xi=0.6, T = 0.9, scale=1.5, valset=None, seed=666, deterministic=False)
core/defenses/IBD_PSC.py:42
Method__init__
(self, autoencoder, pretrain=None, seed=0,
core/defenses/AutoEncoderDefense.py:38
Method__init__
(self, model, loss, power, beta=[],
core/defenses/NAD.py:74
Method__init__
(self, base, mask)
core/defenses/Pruning.py:18
Method__init__
(self, model, loss, seed=0, target_lab
core/defenses/Spectral.py:49
Method__init__
The local gradient ascent (LGA) loss used in first phrase (called pre-isolation phrase) in ABL. Args: loss (nn.Module): Loss for
core/defenses/ABL.py:32
Method__init__
(self, data_tensor, target_tensor=None, transforms=None, target_transforms=None)
core/defenses/ABL.py:63
Method__init__
(self, seed=0, deterministic=False)
core/defenses/base.py:19
Method__init__
(self, unet, model, pretrain=None, arr_pat
core/defenses/REFINE.py:44
Method__init__
(self, model, scale_set=None, threshold=None, valset=None, seed=666, deterministic=False)
core/defenses/SCALE_UP.py:21
Method__init__
(self, model, loss, beta, cutmix_prob,
core/defenses/CutMix.py:41
Method__init__
(self, num_features)
core/defenses/FLARE.py:20
Method__init__
(self, train_dataset=None, test_dataset=None, model=None,
core/defenses/FineTuning.py:51
Method__init__
(self, size_map, pad, seed=0, deterministi
core/defenses/ShrinkPad.py:48
Method__init__
(self, start_point, end_point, base_model,
core/defenses/MCR.py:100
Method__init__
(self, pattern, weight)
core/attacks/LabelConsistent.py:54
Method__init__
(self, pattern, weight)
core/attacks/LabelConsistent.py:140
Method__init__
(self, pattern, weight)
core/attacks/LabelConsistent.py:179
Method__init__
(self, y_target)
core/attacks/LabelConsistent.py:210
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/LabelConsistent.py:218
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/LabelConsistent.py:278
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/LabelConsistent.py:334
Method__init__
(self, target_adv_dataset, poisoned_set, pattern,
core/attacks/LabelConsistent.py:402
Method__init__
(self, train_dataset, test_dataset, model,
core/attacks/LabelConsistent.py:481
Method__init__
(self, size)
core/attacks/Blind.py:32
Method__init__
(self, pattern, alpha)
core/attacks/Blind.py:411
Method__init__
(self, y_target)
core/attacks/Refool.py:27
Method__init__
(self, total_num, reflection_cadidates, max_image_size=560, ghost_rate=0.49, alpha_b=-1., offset=(0, 0), sigma
core/attacks/Refool.py:46
Method__init__
Args: reflection_cadidates (List of numpy.ndarray of shape (H, W, C) or (H, W)) max_image_size (int): max(Height, Wei
core/attacks/Refool.py:239
Method__init__
(self, benign_dataset, y_target, poisoned_rate, poisoned_transform_index, \ poisoned_target_t
core/attacks/Refool.py:322
Method__init__
(self, benign_dataset, y_target, poisoned_rate, poisoned_transform_index, \ poisoned_targe
core/attacks/Refool.py:393
Method__init__
(self, y_target)
core/attacks/BATT.py:21
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/BATT.py:28
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/BATT.py:90
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/BATT.py:152
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/BATT.py:210
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/BATT.py:269
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/BATT.py:329
Method__init__
(self)
core/attacks/BadNets.py:21
Method__init__
(self, pattern, weight)
core/attacks/BadNets.py:44
Method__init__
(self, pattern, weight)
core/attacks/BadNets.py:130
Method__init__
(self, pattern, weight)
core/attacks/BadNets.py:169
Method__init__
(self, y_target)
core/attacks/BadNets.py:200
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/BadNets.py:208
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/BadNets.py:268
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/BadNets.py:324
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/PhysicalBA.py:23
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/PhysicalBA.py:91
Method__init__
(self, benign_dataset, y_target, poisoned_rate,
core/attacks/PhysicalBA.py:151
Method__init__
(self, train_dataset, test_dataset, model, loss, schedule=None, seed=0, deterministic=False)
core/attacks/base.py:60
Method__init__
(self, y_target)
core/attacks/BAAT.py:74
Method__init__
(self, checkpoint_dir: str, attribute_description: Any, size: int = 256)
core/attacks/BAAT.py:89
Method__init__
( self, checkpoint_dir: str, attribute_description: Dict[str, str], size: int
core/attacks/BAAT.py:206
Method__init__
( self, checkpoint_dir: str, attribute_description: Union[str, Path], decoder_
core/attacks/BAAT.py:342
Method__init__
(self)
core/attacks/TUAP.py:30
Method__init__
(self, pattern, mask)
core/attacks/TUAP.py:95
Method__init__
(self, pattern, mask)
core/attacks/TUAP.py:166
← previousnext →301–400 of 664, ranked by callers