Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Trustworthy-AI-Group/TransferAttack
/ functions
Functions
2,264 in github.com/Trustworthy-AI-Group/TransferAttack
⨍
Functions
2,264
◇
Types & classes
551
Method
forward
(self, logits)
transferattack/input_transformation/everywhere.py:220
Method
forward
(self, logits)
transferattack/input_transformation/everywhere.py:231
Method
forward
The general attack procedure Arguments: data: (N, C, H, W) tensor for input images labels: (N,) tensor for g
transferattack/input_transformation/ssm.py:57
Method
forward
The general attack procedure Arguments: data (N, C, H, W): tensor for input images labels (N,): tensor for g
transferattack/input_transformation/pam.py:88
Method
forward
(self, x)
transferattack/input_transformation/pam.py:229
Method
forward
(self, logits, labels)
transferattack/input_transformation/pam.py:250
Method
forward
The general attack procedure Arguments: data: (N, C, H, W) tensor for input images labels: (N,) tensor for g
transferattack/input_transformation/ssm_with_tricks.py:73
Method
forward
The general attack procedure Arguments: data: (N, C, H, W) tensor for input images labels: (N,) tensor for g
transferattack/input_transformation/ssm_with_tricks.py:284
Method
forward
The general attack procedure Arguments: data: (N, C, H, W) tensor for input images labels: (N,) tensor for gr
transferattack/input_transformation/lpm.py:77
Method
forward
(self, data, label, **kwargs)
transferattack/input_transformation/sid.py:163
Method
forward
The general attack procedure Arguments: data (N, C, H, W): tensor for input images labels (N
transferattack/input_transformation/l2t.py:464
Method
forward
The general attack procedure Arguments: data (N, C, H, W): tensor for input images labels (N,): tensor for g
transferattack/input_transformation/odi/odi.py:152
Method
forward
(self, logits)
transferattack/input_transformation/odi/odi.py:198
Function
forward_hook
(self, input, output)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/modules/layers_ours.py:16
Method
forward_hook
(module, input, output)
transferattack/input_transformation/su.py:88
Function
func_wrapper
(*args, **kwargs)
defense/diffpure/guided_diffusion/logger.py:319
Function
fused_bias_act
defense/diffpure/score_sde/op/fused_bias_act.cpp:19
Method
g
Create the diffusion function g(1-t) (by t' = 1 - t) sdeint only support a 2D tensor (batch_size, c*h*w)
defense/diffpure/runners/diffpure_sde.py:140
Method
generate_cam_attn
(self, input, index=None)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_explanation_generator.py:50
Method
generate_rollout
(self, input, start_layer=0)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_explanation_generator.py:74
Function
get_Gaussian_kernel
(nsig, kernlen)
transferattack/model_related/llta_networks/models/utils.py:31
Method
get_children
(model: torch.nn.Module)
transferattack/advanced_objective/cfm.py:189
Method
get_children
(model: torch.nn.Module)
transferattack/advanced_objective/ftm.py:178
Method
get_children
(model: torch.nn.Module)
transferattack/input_transformation/everywhere.py:76
Method
get_classifier
(self)
transferattack/model_related/ghost_networks/inc_res_v2.py:327
Method
get_classifier
(self)
transferattack/model_related/setr_networks/t2t_vit_ghost.py:159
Method
get_classifier
(self)
transferattack/model_related/setr_networks/t2t_vit_se.py:132
Method
get_classifier
(self)
transferattack/model_related/setr_networks/tnt.py:202
Method
get_classifier
(self)
transferattack/model_related/setr_networks/swin_transformer.py:518
Method
get_classifier
(self)
transferattack/model_related/setr_networks/t2t_vit.py:149
Method
get_classifier
(self)
transferattack/model_related/setr_networks/t2t_vit_dense.py:135
Function
get_dataset
Return the dataset as a PyTorch Dataset object
defense/rs/datasets.py:16
Function
get_ddpm_params
Get betas and alphas --- parameters used in the original DDPM paper.
defense/diffpure/score_sde/models/utils.py:62
Function
get_dir
Get directory that log files are being written to. will be None if there is no output directory (i.e., if you didn't call start)
defense/diffpure/guided_diffusion/logger.py:289
Method
get_factors
Generate the sampling factors
transferattack/gradient/emifgsm.py:40
Method
get_fea
(module, input, output)
transferattack/model_related/att.py:185
Method
get_grad
Overridden for TIM attack.
transferattack/input_transformation/tim.py:68
Method
get_grad
(self, loss, delta, **kwargs)
transferattack/input_transformation/idaa.py:153
Method
get_inp_grad
(self)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:288
Method
get_logit_loss
Logit loss for targeted attack. Please refer to the paper for more details.
transferattack/gradient/rap.py:53
Method
get_loss
The loss calculation, which is overrideen because of emsemble-loss.
transferattack/model_related/setr.py:62
Method
get_loss
Calculate the loss
transferattack/input_transformation/sim.py:42
Method
get_loss
Calculate the loss
transferattack/input_transformation/maskblock.py:54
Method
get_loss
Calculate the loss
transferattack/input_transformation/sia.py:102
Method
get_loss
Calculate the loss
transferattack/input_transformation/bsr.py:69
Method
get_loss
Calculate the loss
transferattack/input_transformation/admix.py:47
Method
get_mid_output
(model_, input_, o)
transferattack/model_related/ags.py:94
Method
get_mid_output
(model_, input_, o)
transferattack/advanced_objective/fft.py:239
Method
get_mid_output
(model_, input_, o)
transferattack/advanced_objective/ila.py:88
Method
get_mid_output
(model_, input_, o)
transferattack/advanced_objective/tap.py:87
Method
get_mid_output
(model, input, output)
transferattack/advanced_objective/aa.py:101
Function
get_model
()
defense/hgd/res152_wide.py:40
Function
get_model
()
defense/hgd/v3.py:19
Function
get_model
()
defense/hgd/resnext101.py:21
Function
get_model
()
defense/hgd/inres.py:40
Method
get_model
(self)
transferattack/generation/aim.py:46
Function
get_model_names
()
defense/at/lib/utils.py:70
Function
get_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the lim
defense/diffpure/guided_diffusion/gaussian_diffusion.py:26
Function
get_network
(config)
defense/diffpure/score_sde/models/ncsnv2.py:31
Function
get_num_classes
Return the number of classes in the dataset.
defense/rs/datasets.py:24
Method
get_params
(self)
transferattack/generation/aim.py:43
Function
get_sampling_fn
Create a sampling function. Args: config: A `ml_collections.ConfigDict` object that contains all configuration information. sde: A `sde_lib
defense/diffpure/score_sde/sampling.py:80
Function
get_step_fn
Create a one-step training/evaluation function. Args: sde: An `sde_lib.SDE` object that represents the forward SDE. optimize_fn: An optimiz
defense/diffpure/score_sde/losses.py:151
Function
get_timestep_embedding
(timesteps, embedding_dim, max_positions=10000)
defense/diffpure/score_sde/models/layers.py:515
Method
get_timing_stats
Get timing statistics
transferattack/gradient/foolmix.py:430
Method
get_v
(self)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:114
Method
get_v_cam
(self)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:123
Function
get_weight
Get/create weight tensor for a convolution or fully-connected layer.
defense/diffpure/score_sde/models/up_or_down_sampling.py:22
Function
getkvs
()
defense/diffpure/guided_diffusion/logger.py:251
Function
ghost_inception_resnet_v2
r"""InceptionResnetV2 model architecture from the `"InceptionV4, Inception-ResNet..." <https://arxiv.org/abs/1602.07261>` paper.
transferattack/model_related/ghost_networks/inc_res_v2.py:371
Function
ghost_inception_v3
Inception v3 model architecture from `Rethinking the Inception Architecture for Computer Vision <http://arxiv.org/abs/1512.00567>`_. ..
transferattack/model_related/ghost_networks/inc_v3.py:129
Function
ghost_resnet101
ResNet-101 from `Deep Residual Learning for Image Recognition <https://arxiv.org/pdf/1512.03385.pdf>`__. .. note:: The bottleneck of Torch
transferattack/model_related/ghost_networks/resnet.py:749
Function
ghost_resnet152
ResNet-152 from `Deep Residual Learning for Image Recognition <https://arxiv.org/pdf/1512.03385.pdf>`__. .. note:: The bottleneck of Torch
transferattack/model_related/ghost_networks/resnet.py:781
Function
ghost_resnet18
ResNet-18 from `Deep Residual Learning for Image Recognition <https://arxiv.org/pdf/1512.03385.pdf>`__. Args: weights (:class:`~torchvisi
transferattack/model_related/ghost_networks/resnet.py:665
Function
ghost_resnet34
ResNet-34 from `Deep Residual Learning for Image Recognition <https://arxiv.org/pdf/1512.03385.pdf>`__. Args: weights (:class:`~torchvisi
transferattack/model_related/ghost_networks/resnet.py:691
Function
ghost_resnet50
ResNet-50 from `Deep Residual Learning for Image Recognition <https://arxiv.org/pdf/1512.03385.pdf>`__. .. note:: The bottleneck of TorchV
transferattack/model_related/ghost_networks/resnet.py:717
Function
ghost_resnext101_32x8d
ResNeXt-101 32x8d model from `Aggregated Residual Transformation for Deep Neural Networks <https://arxiv.org/abs/1611.05431>`_. Args:
transferattack/model_related/ghost_networks/resnet.py:843
Function
ghost_resnext101_64x4d
ResNeXt-101 64x4d model from `Aggregated Residual Transformation for Deep Neural Networks <https://arxiv.org/abs/1611.05431>`_. Args:
transferattack/model_related/ghost_networks/resnet.py:873
Function
ghost_resnext50_32x4d
ResNeXt-50 32x4d model from `Aggregated Residual Transformation for Deep Neural Networks <https://arxiv.org/abs/1611.05431>`_. Args:
transferattack/model_related/ghost_networks/resnet.py:813
Function
ghost_wide_resnet101_2
Wide ResNet-101-2 model from `Wide Residual Networks <https://arxiv.org/abs/1605.07146>`_. The model is the same as ResNet except for the bot
transferattack/model_related/ghost_networks/resnet.py:937
Function
ghost_wide_resnet50_2
Wide ResNet-50-2 model from `Wide Residual Networks <https://arxiv.org/abs/1605.07146>`_. The model is the same as ResNet except for the bott
transferattack/model_related/ghost_networks/resnet.py:903
Method
gkern
(self, kernlen=15, nsig=3)
transferattack/gradient/fgsra.py:125
Method
gkern
(kernlen=15, nsig=3)
transferattack/ensemble/sasd_ws.py:62
Method
gkern
(kernlen=15, nsig=3)
transferattack/input_transformation/su.py:112
Method
hook
(module, input, output)
transferattack/model_related/fdap.py:44
Method
hook
(self, module, input, output)
transferattack/advanced_objective/p2fa.py:70
Method
hook
(self, module, input, output)
transferattack/advanced_objective/bfa.py:53
Method
hook
(m, i, o)
transferattack/advanced_objective/mfaa.py:134
Method
hook_fn
(module, input, output)
transferattack/advanced_objective/cfm.py:235
Method
hook_fn
(module, input, output)
transferattack/advanced_objective/ftm.py:220
Method
hook_fn
(module, input, output)
transferattack/input_transformation/everywhere.py:122
Function
hook_ilout
(module, input, output)
transferattack/advanced_objective/ilpd.py:99
Function
hook_pd
(module, input, output)
transferattack/advanced_objective/ilpd.py:104
Function
horizontal_flip
(x)
transferattack/input_transformation/ops.py:168
Function
horizontal_flip
(x)
transferattack/input_transformation/l2t.py:57
Method
horizontal_flip
(self, x)
transferattack/gradient/mumodig.py:172
Method
horizontal_flip
(self, x)
transferattack/input_transformation/sia.py:57
Function
horizontal_shift
(x)
transferattack/input_transformation/ops.py:160
Function
horizontal_shift
(x)
transferattack/input_transformation/l2t.py:49
Method
horizontal_shift
(self, x)
transferattack/gradient/mumodig.py:164
← previous
next →
1,901–2,000 of 2,264, ranked by callers