ARES
2.0.0
Tutorials
Attacking Image Classification Models
Attacking Object Detection Models
Robust Training for Image Classification
API Docs
ares.attack package
ares.attack.detection package
ares.defense package
ares.dataset package
ares.model package
ares.utils package
ARES
Index
Index
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
J
|
K
|
L
|
M
|
N
|
P
|
R
|
S
|
T
|
U
|
V
|
W
_
__init__() (ares.attack.autoattack.autoattack.AutoAttack method)
(ares.attack.bim.BIM method)
(ares.attack.boundary.BoundaryAttack method)
(ares.attack.cw.CW method)
(ares.attack.deepfool.DeepFool method)
(ares.attack.detection.attacker.UniversalAttacker method)
(ares.attack.detection.custom.coco_dataset.CocoDataset method)
(ares.attack.detection.custom.coco_metric.CocoMetric method)
(ares.attack.detection.custom.detector.CustomDetector method)
(ares.attack.detection.custom.detector.DataPreprocessor method)
(ares.attack.detection.custom.lr_scheduler.ALRS method)
(ares.attack.detection.custom.lr_scheduler.CosineLR method)
(ares.attack.detection.custom.lr_scheduler.ExponentialLR method)
(ares.attack.detection.custom.lr_scheduler.MultiStepLR method)
(ares.attack.detection.custom.lr_scheduler.PlateauLR method)
(ares.attack.detection.custom.lr_scheduler.warmupALRS method)
(ares.attack.detection.patch.patch_applier.PatchApplier method)
(ares.attack.detection.patch.patch_transform.Compose method)
(ares.attack.detection.patch.patch_transform.MedianPool2d method)
(ares.attack.detection.patch.patch_transform.RandomJitter method)
(ares.attack.detection.patch.patch_transform.ScalePatchesToBoxes method)
(ares.attack.detection.trainer.Trainer method)
(ares.attack.detection.utils.EnableLossCal method)
(ares.attack.di_fgsm.DI2FGSM method)
(ares.attack.evolutionary.Evolutionary method)
(ares.attack.fgsm.FGSM method)
(ares.attack.mim.MIM method)
(ares.attack.nattack.Nattack method)
(ares.attack.nes.NES method)
(ares.attack.si_ni_fgsm.SI_NI_FGSM method)
(ares.attack.spsa.SPSA method)
(ares.attack.tim.TIFGSM method)
(ares.attack.tta.TTA method)
(ares.attack.vmi_fgsm.VMI_fgsm method)
(ares.dataset.imagenet_dataset.ImageNetDataset method)
(ares.defense.bit_depth_reduction.BitDepthReduction method)
(ares.defense.jpeg_compression.Jpeg_compression method)
(ares.defense.randomization.Randomization method)
(ares.model.cifar10_cls.CifarCLS method)
(ares.model.imagenet_cls.ImageNetCLS method)
(ares.model.preact_resnet.PreActBlock method)
(ares.model.preact_resnet.PreActBottleneck method)
(ares.model.preact_resnet.PreActResNet method)
(ares.model.resnet.ResNet method)
(ares.model.vit_mae.VisionTransformer method)
(ares.model.wideresnet.BasicBlock method)
(ares.model.wideresnet.NetworkBlock method)
(ares.model.wideresnet.WideResNet method)
(ares.utils.adv.AttackerStep method)
(ares.utils.adv.PgdAttackEps method)
(ares.utils.logger.PrintFormatter method)
(ares.utils.metrics.AverageMeter method)
(ares.utils.model.NormalizeByChannelMeanStd method)
(ares.utils.model.SwitchableBatchNorm2d method)
A
accuracy() (in module ares.utils.metrics)
adv_generator() (in module ares.utils.adv)
after_epoch() (ares.attack.detection.trainer.Trainer method)
after_train() (ares.attack.detection.trainer.Trainer method)
all_reduce() (in module ares.attack.detection.utils)
ALRS (class in ares.attack.detection.custom.lr_scheduler)
ANN_ID_UNIQUE (ares.attack.detection.custom.coco_dataset.CocoDataset attribute)
apply_patch() (ares.attack.detection.patch.patch_applier.PatchApplier method)
ares.attack.autoattack.autoattack
module
ares.attack.bim
module
ares.attack.boundary
module
ares.attack.cw
module
ares.attack.deepfool
module
ares.attack.detection.attacker
module
ares.attack.detection.custom.coco_dataset
module
ares.attack.detection.custom.coco_metric
module
ares.attack.detection.custom.detector
module
ares.attack.detection.custom.lr_scheduler
module
ares.attack.detection.patch.patch_applier
module
ares.attack.detection.patch.patch_transform
module
ares.attack.detection.trainer
module
ares.attack.detection.utils
module
ares.attack.di_fgsm
module
ares.attack.evolutionary
module
ares.attack.fgsm
module
ares.attack.mim
module
ares.attack.nattack
module
ares.attack.nes
module
ares.attack.PGD
module
ares.attack.SGM
module
ares.attack.si_ni_fgsm
module
ares.attack.spsa
module
ares.attack.tim
module
ares.attack.tta
module
ares.attack.vmi_fgsm
module
ares.dataset.cifar_dataset
module
ares.dataset.imagenet_dataset
module
ares.defense.bit_depth_reduction
module
ares.defense.jpeg_compression
module
ares.defense.randomization
module
ares.model.cifar10_cls
module
ares.model.imagenet_cls
module
ares.model.preact_resnet
module
ares.model.resnet
module
ares.model.resnet_denoise
module
ares.model.vit_mae
module
ares.model.wideresnet
module
ares.utils.adv
module
ares.utils.dataset
module
ares.utils.dist
module
ares.utils.logger
module
ares.utils.loss
module
ares.utils.metrics
module
ares.utils.model
module
ares.utils.registry
module
atanh() (ares.attack.cw.CW method)
(ares.attack.nattack.Nattack method)
attack_detection_forward() (ares.attack.bim.BIM method)
(ares.attack.di_fgsm.DI2FGSM method)
(ares.attack.fgsm.FGSM method)
(ares.attack.mim.MIM method)
(ares.attack.si_ni_fgsm.SI_NI_FGSM method)
(ares.attack.tim.TIFGSM method)
(ares.attack.vmi_fgsm.VMI_fgsm method)
AttackerStep (class in ares.utils.adv)
AutoAttack (class in ares.attack.autoattack.autoattack)
AverageMeter (class in ares.utils.metrics)
B
BasicBlock (class in ares.model.wideresnet)
batch_attack() (ares.utils.adv.PgdAttackEps method)
bbox_predict() (ares.attack.detection.attacker.UniversalAttacker method)
before_epoch() (ares.attack.detection.trainer.Trainer method)
before_eval() (ares.attack.detection.trainer.Trainer method)
before_start() (ares.attack.detection.trainer.Trainer method)
before_train() (ares.attack.detection.trainer.Trainer method)
BIM (class in ares.attack.bim)
bit_depth_reduction() (ares.defense.bit_depth_reduction.BitDepthReduction method)
BitDepthReduction (class in ares.defense.bit_depth_reduction)
boundary() (ares.attack.boundary.BoundaryAttack method)
BoundaryAttack (class in ares.attack.boundary)
build_dataset() (in module ares.utils.dataset)
build_loss() (in module ares.utils.loss)
build_loss_scaler() (in module ares.utils.loss)
build_lr_scheduler() (in module ares.attack.detection.custom.lr_scheduler)
build_model() (in module ares.utils.model)
build_optimizer() (in module ares.attack.detection.utils)
build_transforms() (ares.attack.detection.patch.patch_applier.PatchApplier method)
C
ce_loss() (ares.attack.tta.TTA method)
cifar10() (in module ares.dataset.cifar_dataset)
CifarCLS (class in ares.model.cifar10_cls)
clamp() (in module ares.utils.adv)
clean_accuracy() (ares.attack.autoattack.autoattack.AutoAttack method)
clip_eta() (ares.attack.nattack.Nattack method)
(ares.attack.nes.NES method)
(ares.attack.spsa.SPSA method)
COCOAPI (ares.attack.detection.custom.coco_dataset.CocoDataset attribute)
CocoDataset (class in ares.attack.detection.custom.coco_dataset)
CocoMetric (class in ares.attack.detection.custom.coco_metric)
Compose (class in ares.attack.detection.patch.patch_transform)
compute_metrics() (ares.attack.detection.custom.coco_metric.CocoMetric method)
config() (ares.utils.adv.PgdAttackEps method)
convert_switchablebn_model() (in module ares.utils.model)
Cos_dis() (in module ares.attack.tta)
CosineLR (class in ares.attack.detection.custom.lr_scheduler)
create_preact_res18() (in module ares.model.preact_resnet)
create_wres28_10() (in module ares.model.wideresnet)
create_wres34_10() (in module ares.model.wideresnet)
create_wres34_10_fn() (in module ares.model.wideresnet)
CustomDetector (class in ares.attack.detection.custom.detector)
CustomFormatter (class in ares.utils.logger)
CutOut (class in ares.attack.detection.patch.patch_transform)
CW (class in ares.attack.cw)
D
DataPreprocessor (class in ares.attack.detection.custom.detector)
DeepFool (class in ares.attack.deepfool)
deepfool() (ares.attack.deepfool.DeepFool method)
default_prefix (ares.attack.detection.custom.coco_metric.CocoMetric attribute)
denormalize() (in module ares.attack.detection.utils)
(in module ares.utils.model)
DI2FGSM (class in ares.attack.di_fgsm)
distributed_init() (in module ares.utils.dist)
E
EnableLossCal (class in ares.attack.detection.utils)
eval() (ares.attack.detection.attacker.UniversalAttacker method)
(ares.attack.detection.trainer.Trainer method)
eval_clean() (ares.attack.detection.trainer.Trainer method)
Evolutionary (class in ares.attack.evolutionary)
evolutionary() (ares.attack.evolutionary.Evolutionary method)
expansion (ares.model.preact_resnet.PreActBlock attribute)
(ares.model.preact_resnet.PreActBottleneck attribute)
ExponentialLR (class in ares.attack.detection.custom.lr_scheduler)
extra_repr() (ares.utils.model.NormalizeByChannelMeanStd method)
F
FGSM (class in ares.attack.fgsm)
filter_data() (ares.attack.detection.custom.coco_dataset.CocoDataset method)
filter_loss() (ares.attack.detection.attacker.UniversalAttacker method)
filter_state_dict() (in module ares.model.cifar10_cls)
flush() (ares.utils.logger.PrintFormatter method)
format() (ares.utils.logger.CustomFormatter method)
format_print (class in ares.utils.logger)
forward() (ares.attack.detection.attacker.UniversalAttacker method)
(ares.attack.detection.custom.detector.DataPreprocessor method)
(ares.attack.detection.patch.patch_applier.PatchApplier method)
(ares.model.cifar10_cls.CifarCLS method)
(ares.model.imagenet_cls.ImageNetCLS method)
(ares.model.preact_resnet.PreActBlock method)
(ares.model.preact_resnet.PreActBottleneck method)
(ares.model.preact_resnet.PreActResNet method)
(ares.model.resnet.ResNet method)
(ares.model.wideresnet.BasicBlock method)
(ares.model.wideresnet.NetworkBlock method)
(ares.model.wideresnet.WideResNet method)
(ares.utils.model.NormalizeByChannelMeanStd method)
(ares.utils.model.SwitchableBatchNorm2d method)
forward_features() (ares.model.vit_mae.VisionTransformer method)
freeze_layers() (ares.attack.detection.attacker.UniversalAttacker method)
G
get_attack() (ares.utils.registry.Registry class method)
get_init_noise() (ares.attack.boundary.BoundaryAttack method)
(ares.attack.evolutionary.Evolutionary method)
get_logits() (ares.attack.autoattack.autoattack.AutoAttack method)
get_lr_scheduler() (ares.utils.registry.Registry class method)
get_model() (ares.utils.registry.Registry class method)
get_path() (ares.utils.registry.Registry class method)
get_seed() (ares.attack.autoattack.autoattack.AutoAttack method)
get_transform() (ares.utils.registry.Registry class method)
get_word_size() (in module ares.attack.detection.utils)
gkern() (ares.attack.tim.TIFGSM method)
(in module ares.attack.tta)
global_forward() (ares.attack.detection.attacker.UniversalAttacker method)
H
HiddenPrints (class in ares.attack.detection.utils)
I
ImageNetCLS (class in ares.model.imagenet_cls)
ImageNetDataset (class in ares.dataset.imagenet_dataset)
init_for_global_attack() (ares.attack.detection.attacker.UniversalAttacker method)
init_for_patch_attack() (ares.attack.detection.attacker.UniversalAttacker method)
init_patch() (ares.attack.detection.attacker.UniversalAttacker method)
input_diversity() (ares.attack.di_fgsm.DI2FGSM method)
(ares.attack.tim.TIFGSM method)
(ares.attack.tta.TTA method)
input_transform() (ares.defense.randomization.Randomization method)
is_adversarial() (ares.attack.nattack.Nattack method)
is_distributed() (in module ares.attack.detection.utils)
is_main_process() (in module ares.attack.detection.utils)
J
Jpeg_compression (class in ares.defense.jpeg_compression)
jpegcompression() (ares.defense.jpeg_compression.Jpeg_compression method)
K
kernel_generation() (ares.attack.tim.TIFGSM method)
L
LinfStep (class in ares.utils.adv)
LinfStepEps (class in ares.utils.adv)
list_attacks() (ares.utils.registry.Registry class method)
list_lr_schedulers() (ares.utils.registry.Registry class method)
list_models() (ares.utils.registry.Registry class method)
list_transforms() (ares.utils.registry.Registry class method)
lkern() (ares.attack.tim.TIFGSM method)
load() (ares.model.cifar10_cls.CifarCLS method)
(ares.model.imagenet_cls.ImageNetCLS method)
load_data_list() (ares.attack.detection.custom.coco_dataset.CocoDataset method)
load_detector_weight() (ares.attack.detection.attacker.UniversalAttacker method)
load_patch() (ares.attack.detection.attacker.UniversalAttacker method)
load_pretrained_21k() (in module ares.utils.model)
logits_loss() (ares.attack.tta.TTA method)
loss() (ares.attack.detection.custom.detector.CustomDetector method)
loss_adv() (in module ares.utils.loss)
M
main_only() (in module ares.attack.detection.utils)
mapping (ares.utils.registry.Registry attribute)
margin_loss() (in module ares.utils.loss)
MedianPool2d (class in ares.attack.detection.patch.patch_transform)
METAINFO (ares.attack.detection.custom.coco_dataset.CocoDataset attribute)
MIM (class in ares.attack.mim)
mkdirs_if_not_exists() (in module ares.attack.detection.utils)
modify_test_pipeline() (in module ares.attack.detection.utils)
modify_train_pipeline() (in module ares.attack.detection.utils)
module
ares.attack.autoattack.autoattack
ares.attack.bim
ares.attack.boundary
ares.attack.cw
ares.attack.deepfool
ares.attack.detection.attacker
ares.attack.detection.custom.coco_dataset
ares.attack.detection.custom.coco_metric
ares.attack.detection.custom.detector
ares.attack.detection.custom.lr_scheduler
ares.attack.detection.patch.patch_applier
ares.attack.detection.patch.patch_transform
ares.attack.detection.trainer
ares.attack.detection.utils
ares.attack.di_fgsm
ares.attack.evolutionary
ares.attack.fgsm
ares.attack.mim
ares.attack.nattack
ares.attack.nes
ares.attack.PGD
ares.attack.SGM
ares.attack.si_ni_fgsm
ares.attack.spsa
ares.attack.tim
ares.attack.tta
ares.attack.vmi_fgsm
ares.dataset.cifar_dataset
ares.dataset.imagenet_dataset
ares.defense.bit_depth_reduction
ares.defense.jpeg_compression
ares.defense.randomization
ares.model.cifar10_cls
ares.model.imagenet_cls
ares.model.preact_resnet
ares.model.resnet
ares.model.resnet_denoise
ares.model.vit_mae
ares.model.wideresnet
ares.utils.adv
ares.utils.dataset
ares.utils.dist
ares.utils.logger
ares.utils.loss
ares.utils.metrics
ares.utils.model
ares.utils.registry
MultiStepLR (class in ares.attack.detection.custom.lr_scheduler)
N
Nattack (class in ares.attack.nattack)
nattack() (ares.attack.nattack.Nattack method)
nattack_loss() (in module ares.attack.nattack)
NES (class in ares.attack.nes)
nes() (ares.attack.nes.NES method)
nes_gradient() (ares.attack.nes.NES method)
NetworkBlock (class in ares.model.wideresnet)
normalize() (in module ares.attack.detection.utils)
normalize_fn() (in module ares.utils.model)
NormalizeByChannelMeanStd (class in ares.utils.model)
P
pad_patches_boxes() (ares.attack.detection.patch.patch_applier.PatchApplier method)
parse_data_info() (ares.attack.detection.custom.coco_dataset.CocoDataset method)
patch_forward() (ares.attack.detection.attacker.UniversalAttacker method)
PatchApplier (class in ares.attack.detection.patch.patch_applier)
perturbation() (ares.attack.boundary.BoundaryAttack method)
PgdAttackEps (class in ares.utils.adv)
PlateauLR (class in ares.attack.detection.custom.lr_scheduler)
po_trip_loss() (ares.attack.tta.TTA method)
Poincare_dis() (in module ares.attack.tta)
PreActBlock (class in ares.model.preact_resnet)
PreActBottleneck (class in ares.model.preact_resnet)
PreActResNet (class in ares.model.preact_resnet)
predict() (ares.attack.detection.custom.detector.CustomDetector method)
PrintFormatter (class in ares.utils.logger)
project() (ares.utils.adv.AttackerStep method)
(ares.utils.adv.LinfStep method)
(ares.utils.adv.LinfStepEps method)
R
random_perturb() (ares.utils.adv.AttackerStep method)
(ares.utils.adv.LinfStep method)
(ares.utils.adv.LinfStepEps method)
random_resize_pad() (ares.defense.randomization.Randomization method)
random_seed() (in module ares.utils.dist)
random_shift() (ares.attack.detection.patch.patch_transform.ScalePatchesToBoxes method)
random_uniform() (ares.utils.adv.LinfStep method)
RandomHorizontalFlip (class in ares.attack.detection.patch.patch_transform)
Randomization (class in ares.defense.randomization)
RandomJitter (class in ares.attack.detection.patch.patch_transform)
register_attack() (ares.utils.registry.Registry class method)
register_lr_scheduler() (ares.utils.registry.Registry class method)
register_model() (ares.utils.registry.Registry class method)
register_path() (ares.utils.registry.Registry class method)
register_transform() (ares.utils.registry.Registry class method)
Registry (class in ares.utils.registry)
replace_best() (in module ares.utils.adv)
replace_best_reverse() (in module ares.utils.adv)
reset() (ares.utils.metrics.AverageMeter method)
ResNet (class in ares.model.resnet)
resnet101() (in module ares.model.resnet)
resnet152() (in module ares.model.resnet)
resnet152_fd() (in module ares.model.resnet_denoise)
resnet18() (in module ares.model.resnet)
resnet34() (in module ares.model.resnet)
resnet50() (in module ares.model.resnet)
resnext101_32x8d() (in module ares.model.resnet)
resnext50_32x4d() (in module ares.model.resnet)
resolve_amp() (in module ares.utils.loss)
run_epoch() (ares.attack.detection.trainer.Trainer method)
run_standard_evaluation() (ares.attack.autoattack.autoattack.AutoAttack method)
run_standard_evaluation_individual() (ares.attack.autoattack.autoattack.AutoAttack method)
S
save_images() (in module ares.attack.detection.utils)
save_patch() (ares.attack.detection.attacker.UniversalAttacker method)
save_patches_to_images() (in module ares.attack.detection.utils)
scale() (in module ares.attack.nattack)
scale_lr() (ares.attack.detection.trainer.Trainer method)
scale_to_tanh() (ares.attack.nattack.Nattack method)
ScalePatchesToBoxes (class in ares.attack.detection.patch.patch_transform)
set_gt_ann_empty() (ares.attack.detection.attacker.UniversalAttacker method)
set_version() (ares.attack.autoattack.autoattack.AutoAttack method)
setup_for_distributed() (in module ares.utils.dist)
setup_logger() (in module ares.utils.logger)
SI_NI_FGSM (class in ares.attack.si_ni_fgsm)
SPSA (class in ares.attack.spsa)
spsa() (ares.attack.spsa.SPSA method)
step() (ares.attack.detection.custom.lr_scheduler.ALRS method)
(ares.attack.detection.custom.lr_scheduler.CosineLR method)
(ares.attack.detection.custom.lr_scheduler.ExponentialLR method)
(ares.attack.detection.custom.lr_scheduler.MultiStepLR method)
(ares.attack.detection.custom.lr_scheduler.PlateauLR method)
(ares.attack.detection.custom.lr_scheduler.warmupALRS method)
(ares.utils.adv.AttackerStep method)
(ares.utils.adv.LinfStep method)
(ares.utils.adv.LinfStepEps method)
summarize() (ares.attack.detection.custom.coco_metric.CocoMetric method)
SwitchableBatchNorm2d (class in ares.utils.model)
T
TI_tta() (in module ares.attack.tta)
TIFGSM (class in ares.attack.tim)
to_image() (ares.utils.adv.AttackerStep method)
train() (ares.attack.detection.attacker.UniversalAttacker method)
(ares.attack.detection.trainer.Trainer method)
Trainer (class in ares.attack.detection.trainer)
TTA (class in ares.attack.tta)
tv_loss() (in module ares.attack.detection.utils)
U
ukern() (ares.attack.tim.TIFGSM method)
UniversalAttacker (class in ares.attack.detection.attacker)
update() (ares.utils.metrics.AverageMeter method)
update_lr() (ares.attack.detection.custom.lr_scheduler.ALRS method)
(ares.attack.detection.custom.lr_scheduler.warmupALRS method)
V
VisionTransformer (class in ares.model.vit_mae)
vit_base_patch16() (in module ares.model.vit_mae)
vit_large_patch16() (in module ares.model.vit_mae)
VMI_fgsm (class in ares.attack.vmi_fgsm)
W
warmupALRS (class in ares.attack.detection.custom.lr_scheduler)
wide_resnet101_2() (in module ares.model.resnet)
wide_resnet50_2() (in module ares.model.resnet)
wide_resnet50_3() (in module ares.model.resnet)
wide_resnet50_4() (in module ares.model.resnet)
wide_resnet50_5() (in module ares.model.resnet)
wide_resnet50_6() (in module ares.model.resnet)
WideResNet (class in ares.model.wideresnet)
write() (ares.utils.logger.PrintFormatter method)