MCPcopy Create free account

hub / github.com/Trustworthy-AI-Group/TransferAttack / functions

Functions2,264 in github.com/Trustworthy-AI-Group/TransferAttack

Functionswin_tiny_patch4_window7_224
Swin-T @ 224x224, trained ImageNet-1k
transferattack/model_related/setr_networks/swin_transformer.py:622
Functionsync_params
Synchronize a sequence of Tensors across ranks from rank 0.
defense/diffpure/guided_diffusion/dist_util.py:85
Methodtheoretical_pdf
(self,dx, m)
transferattack/gradient/liboost.py:43
Functiontiny_patch16_224_hierarchical
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/deit_ensemble.py:107
Functiontnt_b_patch16_224
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/tnt.py:242
Functiontnt_s_patch16_224
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/tnt.py:231
Methodtraining_losses
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x ...
defense/diffpure/guided_diffusion/gaussian_diffusion.py:752
Methodtraining_losses
( self, model, *args, **kwargs )
defense/diffpure/guided_diffusion/respace.py:101
Methodtransform
look ahead for NI-FGSM
transferattack/gradient/vnifgsm.py:37
Methodtransform
look ahead for NI-FGSM
transferattack/gradient/nifgsm.py:35
Methodtransform
Admix the input for Admix Attack
transferattack/input_transformation/mfi.py:160
Methodtransform
Random transform the input images
transferattack/input_transformation/dim.py:42
Methodtransform
Scale the input for SIM
transferattack/input_transformation/sim.py:36
Methodtransform
(self, x, **kwargs)
transferattack/input_transformation/maskblock.py:40
Methodtransform
Scale the input for BSR
transferattack/input_transformation/sia.py:96
Methodtransform
Scale the input for BSR
transferattack/input_transformation/bsr.py:63
Methodtransform
Admix the input for Admix Attack
transferattack/input_transformation/admix.py:40
Functiontrun_off_dhf_update_mf_setting
(model: nn.Module)
transferattack/model_related/dhf_networks/utils.py:93
Functionturn_on_dhf_attack_setting
(model: nn.Module, dhf_indicator: Tensor)
transferattack/model_related/dhf_networks/utils.py:99
Functionturn_on_dhf_update_mf_setting
(model: nn.Module)
transferattack/model_related/dhf_networks/utils.py:85
Methoduniform_random_like
(x, minval, maxval)
transferattack/model_related/dhf_networks/utils.py:41
Methodupdate_delta
(self, delta, data, grad, alpha, **kwargs)
transferattack/gradient/ifgssm.py:55
Methodupdate_fn
One update of the predictor. Args: x: A PyTorch tensor representing the current state t: A Pytorch tensor representing the current ti
defense/diffpure/score_sde/sampling.py:137
Methodupdate_fn
One update of the corrector. Args: x: A PyTorch tensor representing the current state t: A PyTorch tensor representing the current ti
defense/diffpure/score_sde/sampling.py:162
Methodupdate_fn
(self, x, t)
defense/diffpure/score_sde/sampling.py:181
Methodupdate_fn
(self, x, t)
defense/diffpure/score_sde/sampling.py:235
Methodupdate_fn
(self, x, t)
defense/diffpure/score_sde/sampling.py:262
Methodupdate_fn
(self, x, t)
defense/diffpure/score_sde/sampling.py:299
Functionupdate_state_dict
(state_dict, idx_start=9)
defense/diffpure/utils.py:116
Methodupdate_with_all_losses
(self, ts, losses)
defense/diffpure/guided_diffusion/resample.py:151
Functionupfirdn2d
defense/diffpure/score_sde/op/upfirdn2d.cpp:20
Functionupsample_2d
r"""Upsample a batch of 2D images with the given filter. Accepts a batch of 2D images of the shape `[N, C, H, W]` or `[N, H, W, C]` and upsam
defense/diffpure/score_sde/models/up_or_down_sampling.py:203
Methodv_ATT
(module, grad_in, grad_out)
transferattack/model_related/att.py:120
Methodv_tgr
(module, grad_in, grad_out, gamma)
transferattack/model_related/tgr.py:107
Functionvalidate
(val_loader, model, criterion, configs, logger)
defense/at/lib/validation.py:89
Functionvalidate_pgd
(val_loader, model, criterion, K, step, configs, logger)
defense/at/lib/validation.py:8
Functionvertical_flip
(x)
transferattack/input_transformation/ops.py:165
Functionvertical_flip
(x)
transferattack/input_transformation/l2t.py:54
Methodvertical_flip
(self, x)
transferattack/gradient/mumodig.py:169
Methodvertical_flip
(self, x)
transferattack/input_transformation/sia.py:54
Functionvertical_shift
(x)
transferattack/input_transformation/ops.py:155
Functionvertical_shift
(x)
transferattack/input_transformation/l2t.py:44
Methodvertical_shift
(self, x)
transferattack/gradient/mumodig.py:159
Methodvertical_shift
(self, x)
transferattack/input_transformation/sia.py:44
Functionvit_base_patch16_224
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/vit.py:87
Functionvit_base_patch16_224
(pretrained=False, **kwargs)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:410
Functionvit_base_patch16_384
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/vit.py:99
Functionvit_base_patch32_384
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/vit.py:110
Functionvit_forward_features
Modified Vision Transformer forward_features method Adds support for robust tokens injection
transferattack/model_related/ll2s.py:286
Functionvit_large_patch16_224
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/vit.py:121
Functionvit_large_patch16_224
(pretrained=False, **kwargs)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:419
Functionvit_large_patch16_384
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/vit.py:132
Functionvit_large_patch32_384
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/vit.py:143
Functionvit_small_patch16_224
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/vit.py:75
Functionwarn
(*args)
defense/diffpure/guided_diffusion/logger.py:270
Methodweights
(self)
defense/diffpure/guided_diffusion/resample.py:74
Methodweights
(self)
defense/diffpure/guided_diffusion/resample.py:142
Functionweights_init_normal
(m)
transferattack/generation/ltp.py:82
Functionweights_init_normal
(m)
transferattack/generation/ada.py:78
Methodwritekvs
(self, kvs)
defense/diffpure/guided_diffusion/logger.py:56
Methodwritekvs
(self, kvs)
defense/diffpure/guided_diffusion/logger.py:110
Methodwritekvs
(self, kvs)
defense/diffpure/guided_diffusion/logger.py:127
Methodwritekvs
(self, kvs)
defense/diffpure/guided_diffusion/logger.py:179
Methodwriteseq
(self, seq)
defense/diffpure/guided_diffusion/logger.py:92
← previous2,201–2,264 of 2,264, ranked by callers