MCPcopy Create free account

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

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

Methodpool_record_vis
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:243
Functionpreview_model
(model: nn.Module)
transferattack/model_related/dhf_networks/utils.py:106
Methodprior_logp
Compute log-density of the prior distribution. Useful for computing the log-likelihood via probability flow ODE. Args: z: latent code
defense/diffpure/score_sde/sde_lib.py:48
Methodprior_logp
(self, z)
defense/diffpure/score_sde/sde_lib.py:158
Methodprior_logp
(self, z)
defense/diffpure/score_sde/sde_lib.py:209
Methodprior_logp
(self, z)
defense/diffpure/score_sde/sde_lib.py:249
Methodprior_sampling
(self, shape)
defense/diffpure/score_sde/sde_lib.py:155
Methodprior_sampling
(self, shape)
defense/diffpure/score_sde/sde_lib.py:206
Methodprior_sampling
(self, shape)
defense/diffpure/score_sde/sde_lib.py:246
Methodprocess_xstart
(x)
defense/diffpure/guided_diffusion/gaussian_diffusion.py:301
Functionprofile
Usage: @profile("my_func") def my_func(): code
defense/diffpure/guided_diffusion/logger.py:311
Methodq_ATT
(module, grad_in, grad_out)
transferattack/model_related/att.py:109
Methodq_tgr
(module, grad_in, grad_out, gamma)
transferattack/model_related/tgr.py:100
Methodrandom_affine
(self, x)
transferattack/gradient/mumodig.py:179
Methodrandom_resize_and_pad
(self, x, img_large_size = 245, **kwargs)
transferattack/gradient/mumodig.py:186
Methodrandom_rotate
(self, x)
transferattack/gradient/mumodig.py:175
Methodranking
(self)
transferattack/input_transformation/lpm.py:239
Functionregister_corrector
A decorator for registering corrector classes.
defense/diffpure/score_sde/sampling.py:53
Functionregister_model
A decorator for registering model classes.
defense/diffpure/score_sde/models/utils.py:26
Functionregister_predictor
A decorator for registering predictor classes.
defense/diffpure/score_sde/sampling.py:34
Methodrelprop
(self, cam, **kwargs)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:154
Methodrelprop
(self, cam, **kwargs)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:203
Methodrelprop
(self, cam, **kwargs)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:238
Methodrelprop
(self, cam=None,method="transformer_attribution", is_ablation=False, start_layer=0, **kwargs)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:324
Methodrelprop
(self, R, alpha)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/modules/layers_ours.py:45
Methodrelprop
(self, R, alpha)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/modules/layers_ours.py:49
Methodrelprop
(self, R, alpha)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/modules/layers_ours.py:136
Methodrelprop
(self, R, alpha)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/modules/layers_ours.py:160
Methodrelprop
(self, R, alpha)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/modules/layers_ours.py:176
Methodrelprop
(self, R, alpha)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/modules/layers_ours.py:189
Methodrelprop
(self, R, alpha)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/modules/layers_ours.py:195
Methodrelprop
(self, R, alpha)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/modules/layers_ours.py:208
Methodrelprop
(self, R, alpha)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/modules/layers_ours.py:242
Methodremove_hooks
(self)
transferattack/advanced_objective/cfm.py:296
Functionreset
()
defense/diffpure/guided_diffusion/logger.py:487
Methodreset
(self)
transferattack/generation/diffattack.py:668
Methodreset_classifier
(self, num_classes, global_pool='avg')
transferattack/model_related/ghost_networks/inc_res_v2.py:330
Methodreset_classifier
(self, num_classes, global_pool='')
transferattack/model_related/setr_networks/t2t_vit_ghost.py:162
Methodreset_classifier
(self, num_classes, global_pool='')
transferattack/model_related/setr_networks/t2t_vit_se.py:135
Methodreset_classifier
(self, num_classes, global_pool='')
transferattack/model_related/setr_networks/tnt.py:205
Methodreset_classifier
(self, num_classes, global_pool='')
transferattack/model_related/setr_networks/swin_transformer.py:521
Methodreset_classifier
(self, num_classes, global_pool='')
transferattack/model_related/setr_networks/t2t_vit.py:152
Methodreset_classifier
(self, num_classes, global_pool='')
transferattack/model_related/setr_networks/t2t_vit_dense.py:138
Methodreset_counter
(self)
defense/diffpure/diffpure.py:64
Functionresnet
Constructs a ResNet model.
defense/rs/archs/cifar_resnet.py:159
Functionresnet101
r"""ResNet-101 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (
transferattack/model_related/llta_networks/models/decayresnet.py:359
Functionresnet152
r"""ResNet-152 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (
transferattack/model_related/llta_networks/models/decayresnet.py:371
Functionresnet18
r"""ResNet-18 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (b
transferattack/model_related/llta_networks/models/decayresnet.py:323
Functionresnet34
r"""ResNet-34 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>'_ Args: pretrained (bo
transferattack/model_related/qaa_utils/archs/apot/resnet.py:290
Functionresnet34
r"""ResNet-34 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (b
transferattack/model_related/llta_networks/models/decayresnet.py:335
Functionresume_checkpoint
(model, checkpoint_path, optimizer=None, loss_scaler=None, log_info=True)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/helpers.py:47
Methodrigid_transform
(self, vs, rot, trans)
transferattack/input_transformation/odi/odi.py:485
Functionrotate135
(x)
transferattack/input_transformation/l2t.py:63
Functionrotate180
(x)
transferattack/input_transformation/l2t.py:69
Methodrotate180
(self, x)
transferattack/input_transformation/sia.py:60
Functionrotate45
(x)
transferattack/input_transformation/l2t.py:60
Functionrotate90
(x)
transferattack/input_transformation/l2t.py:66
Methodrun_loop
(self)
defense/diffpure/guided_diffusion/train_util.py:161
Methodsample_like
(self, input_tensor)
transferattack/model_related/llta_networks/models/utils.py:14
Methodsave_attn_gradients
(self, attn_gradients)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:126
Methodsave_checkpoint
(rate, params)
defense/diffpure/guided_diffusion/train_util.py:241
Methodsave_ckpt
(self, ckpt: Union[str, Path])
transferattack/generation/aim.py:37
Functionsave_images
(output_dir, adversaries, filenames)
transferattack/utils.py:63
Functionsave_images
save the adversarial images :param adv: adversarial images in [0, 1] :param i: batch index of images :return:
transferattack/model_related/qaa_utils/utils.py:66
Functionsave_img
(output_path,img)
defense/rs/datasets.py:139
Methodsave_inp_grad
(self,grad)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:285
Methodscale
(self, x)
transferattack/input_transformation/sia.py:63
Methodscale
(self, x)
transferattack/input_transformation/ssm_with_tricks.py:321
Functionscale_module
Scale the parameters of a module and return it.
defense/diffpure/guided_diffusion/nn.py:85
Functionscoped_configure
(dir=None, format_strs=None, comm=None)
defense/diffpure/guided_diffusion/logger.py:495
Methodsde
Create the drift and diffusion functions for the reverse SDE/ODE.
defense/diffpure/score_sde/sde_lib.py:101
Methodsde
(self, x, t)
defense/diffpure/score_sde/sde_lib.py:143
Methodsde
(self, x, t)
defense/diffpure/score_sde/sde_lib.py:193
Methodsde
(self, x, t)
defense/diffpure/score_sde/sde_lib.py:234
Methodselection
greedy selection
transferattack/input_transformation/lpm.py:291
Methodset_adv_gen
(self)
transferattack/generation/aim.py:259
Functionset_comm
(comm)
defense/diffpure/guided_diffusion/logger.py:285
Methodset_dhf_params
(self, if_dhf: bool, update_mf: bool, dhf_indicator: Tensor)
transferattack/model_related/dhf_networks/utils.py:19
Functionset_level
Set logging threshold on current logger.
defense/diffpure/guided_diffusion/logger.py:278
Methodset_tag
(self, tag=None)
defense/diffpure/diffpure.py:67
Functionsetup_dist
Setup a distributed process group.
defense/diffpure/guided_diffusion/dist_util.py:29
Functionshared_corrector_update_fn
A wrapper tha configures and returns the update function of correctors.
defense/diffpure/score_sde/sampling.py:344
Functionshared_predictor_update_fn
A wrapper that configures and returns the update function of predictors.
defense/diffpure/score_sde/sampling.py:333
Methodshow_params
(self)
transferattack/model_related/qaa_utils/archs/apot/quant_layer.py:210
Methodshow_params
(self)
transferattack/model_related/qaa_utils/archs/apot/resnet.py:264
Functionsmall_patch16_224_hierarchical
(pretrained=False, **kwargs)
transferattack/model_related/setr_networks/deit_ensemble.py:123
Functionsr_create_model_and_diffusion
( large_size, small_size, class_cond, learn_sigma, num_channels, num_res_blocks, n
defense/diffpure/guided_diffusion/script_util.py:288
Functionsr_model_and_diffusion_defaults
()
defense/diffpure/guided_diffusion/script_util.py:277
Functionstep_fn
Running one step of training or evaluation. This function will undergo `jax.lax.scan` so that multiple steps can be pmapped and jit-compiled toge
defense/diffpure/score_sde/losses.py:177
Functionstr2bool
(v)
defense/diffpure/utils.py:105
Functionstr2bool
https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse
defense/diffpure/guided_diffusion/script_util.py:449
Methodsummary_val
(k, v)
defense/diffpure/guided_diffusion/logger.py:180
Functionswin_base_patch4_window12_384
Swin-B @ 384x384, pretrained ImageNet-22k, fine tune 1k
transferattack/model_related/setr_networks/swin_transformer.py:577
Functionswin_base_patch4_window12_384_in22k
Swin-B @ 384x384, trained ImageNet-22k
transferattack/model_related/setr_networks/swin_transformer.py:631
Functionswin_base_patch4_window7_224
Swin-B @ 224x224, pretrained ImageNet-22k, fine tune 1k
transferattack/model_related/setr_networks/swin_transformer.py:586
Functionswin_base_patch4_window7_224_in22k
Swin-B @ 224x224, trained ImageNet-22k
transferattack/model_related/setr_networks/swin_transformer.py:640
Functionswin_large_patch4_window12_384
Swin-L @ 384x384, pretrained ImageNet-22k, fine tune 1k
transferattack/model_related/setr_networks/swin_transformer.py:595
Functionswin_large_patch4_window12_384_in22k
Swin-L @ 384x384, trained ImageNet-22k
transferattack/model_related/setr_networks/swin_transformer.py:649
Functionswin_large_patch4_window7_224
Swin-L @ 224x224, pretrained ImageNet-22k, fine tune 1k
transferattack/model_related/setr_networks/swin_transformer.py:604
Functionswin_large_patch4_window7_224_in22k
Swin-L @ 224x224, trained ImageNet-22k
transferattack/model_related/setr_networks/swin_transformer.py:658
← previousnext →2,101–2,200 of 2,264, ranked by callers