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
horizontal_shift
(self, x)
transferattack/input_transformation/sia.py:49
Function
identity
(x)
transferattack/input_transformation/ops.py:211
Function
identity
(x)
transferattack/input_transformation/l2t.py:76
Method
image_editing_sample
(self, img, bs_id=0, tag=None)
defense/diffpure/runners/diffpure_ode.py:183
Method
image_editing_sample
(self, img, bs_id=0, tag=None)
defense/diffpure/runners/diffpure_guided.py:41
Method
image_editing_sample
(self, img, bs_id=0, tag=None)
defense/diffpure/runners/diffpure_sde.py:197
Method
image_editing_sample
(self, img, bs_id=0, tag=None)
defense/diffpure/runners/diffpure_ldsde.py:203
Function
imagenet_denormalize
(x)
transferattack/advanced_objective/p2fa.py:13
Function
imagenet_normalize
(x)
transferattack/advanced_objective/p2fa.py:9
Function
inc_res_v2
(*args, **kwargs)
transferattack/model_related/dhf_networks/inc_res_v2.py:153
Function
inception_resnet_v2
(**kwargs)
transferattack/model_related/ghost_networks/inc_res_v2.py:366
Function
info
(*args)
defense/diffpure/guided_diffusion/logger.py:266
Function
init
(shape, dtype=dtype, device=device)
defense/diffpure/score_sde/models/layers.py:66
Method
input_diversity
(img)
transferattack/model_related/llta_networks/llta.py:217
Method
is_sqr
(n)
transferattack/gradient/anda.py:55
Method
is_vb
(self)
defense/diffpure/guided_diffusion/gaussian_diffusion.py:105
Function
load_attack_class
(attack_name)
transferattack/__init__.py:157
Function
load_checkpoint
(model, checkpoint_path, use_ema=False, strict=True)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/helpers.py:42
Function
load_data
For a dataset, create a generator over (images, kwargs) pairs. Each images is an NCHW float tensor, and the kwargs dict contains zero or
defense/diffpure/guided_diffusion/image_datasets.py:19
Function
load_model
(args)
transferattack/model_related/qaa_utils/utils.py:123
Method
load_model
(self, model_name)
transferattack/model_related/mta.py:40
Method
load_model
(self, model_name)
transferattack/model_related/dsm.py:44
Method
load_model
Override for MetaSSA
transferattack/model_related/metassa.py:43
Method
load_model
The model Loading stage, overridden for MA attack Prioritize the model in torchvision.models, then timm.models Arguments
transferattack/model_related/ma.py:52
Method
load_model
(self, model_name)
transferattack/model_related/ags.py:44
Method
load_model
(self, model_name)
transferattack/model_related/ghost.py:46
Method
load_model
(self, model_name)
transferattack/model_related/ghost.py:71
Method
load_model
(self, model_name)
transferattack/model_related/ghost.py:95
Method
load_model
(self, model_name)
transferattack/model_related/ghost.py:119
Method
load_model
(self, model_name)
transferattack/model_related/ghost.py:143
Method
load_model
(self, model_name)
transferattack/model_related/ghost.py:167
Method
load_model
(self, model_name)
transferattack/model_related/ghost.py:190
Method
load_model
(self, model_name)
transferattack/model_related/ghost.py:214
Method
load_model
(self, model_name)
transferattack/model_related/setr.py:37
Method
load_model
(self, model_name)
transferattack/model_related/dhf.py:48
Method
load_model
(self, model_name)
transferattack/model_related/dhf.py:113
Method
load_model
(self, model_name)
transferattack/model_related/dhf.py:178
Method
load_model
(self, model_name)
transferattack/model_related/dhf.py:243
Method
load_model
(self, model_name)
transferattack/model_related/dhf.py:310
Method
load_model
(self, model_name)
transferattack/model_related/dhf.py:375
Method
load_model
(self, model_name)
transferattack/model_related/dhf.py:440
Method
load_model
(self, model_name)
transferattack/model_related/ana.py:105
Method
load_model
(self, model_name)
transferattack/model_related/qaa.py:53
Method
load_model
(self, model_name)
transferattack/model_related/sapr.py:39
Method
load_model
(self, model_name)
transferattack/model_related/pna_patchout.py:69
Method
load_model
(self, model_name)
transferattack/model_related/bpa.py:44
Method
load_model
(self, model_name)
transferattack/model_related/dra.py:42
Method
load_model
(self, model_name)
transferattack/model_related/llta_networks/llta.py:70
Method
load_model
(self, model_name)
transferattack/generation/ltp.py:38
Method
load_model
(self, model_name)
transferattack/ensemble/lgv.py:41
Method
load_model
(self, model_name, **kwargs)
transferattack/ensemble/sasd_ws.py:43
Method
load_model
(self, model_name)
transferattack/ensemble/mba.py:40
Method
load_model
(self, model_name)
transferattack/advanced_objective/yaila/yaila.py:36
Method
load_single_model
(model_name)
transferattack/attack.py:51
Method
load_single_model
(model_name)
transferattack/input_transformation/lpm.py:60
Function
load_state_dict
Load a PyTorch file without redundant fetches across MPI ranks.
defense/diffpure/guided_diffusion/dist_util.py:62
Function
logkv_mean
The same as logkv(), but if called many times, values averaged.
defense/diffpure/guided_diffusion/logger.py:229
Function
logkvs
Log a dictionary of key-value pairs
defense/diffpure/guided_diffusion/logger.py:236
Method
loss_function
Get the loss function
transferattack/gradient/mef.py:46
Function
make_Gamma_Wrap
(arch)
transferattack/model_related/llta_networks/models/__init__.py:57
Method
make_hook
(n)
transferattack/advanced_objective/mfaa.py:133
Function
make_layer
(block, n_layers)
defense/nrp/modules/module_util.py:28
Function
make_model
(arch)
transferattack/model_related/llta_networks/models/__init__.py:70
Method
marginal_prob
(self, x, t)
defense/diffpure/score_sde/sde_lib.py:149
Method
marginal_prob
(self, x, t)
defense/diffpure/score_sde/sde_lib.py:200
Method
marginal_prob
(self, x, t)
defense/diffpure/score_sde/sde_lib.py:241
Method
mlp_ATT
(module, grad_in, grad_out)
transferattack/model_related/att.py:153
Method
mlp_add_pit
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:184
Method
mlp_add_vis
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:280
Method
mlp_add_vit
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:85
Method
mlp_record_pit_stage
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:142
Method
mlp_record_vis_stage
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:250
Method
mlp_record_vit_stage
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:64
Method
mlp_tgr
(module, grad_in, grad_out, gamma)
transferattack/model_related/tgr.py:157
Method
mutation
(self)
transferattack/input_transformation/lpm.py:280
Method
myfunc
(x, img=data, label=label)
transferattack/input_transformation/lpm.py:94
Function
naive_downsample_2d
(x, factor=2)
defense/diffpure/score_sde/models/up_or_down_sampling.py:74
Function
naive_upsample_2d
(x, factor=2)
defense/diffpure/score_sde/models/up_or_down_sampling.py:67
Function
ncsn_conv1x1
1x1 convolution. Same as NCSNv1/v2.
defense/diffpure/score_sde/models/layers.py:44
Method
no_weight_decay
(self)
transferattack/model_related/setr_networks/t2t_vit_ghost.py:156
Method
no_weight_decay
(self)
transferattack/model_related/setr_networks/t2t_vit_se.py:129
Method
no_weight_decay
(self)
transferattack/model_related/setr_networks/tnt.py:199
Method
no_weight_decay
(self)
transferattack/model_related/setr_networks/swin_transformer.py:511
Method
no_weight_decay
(self)
transferattack/model_related/setr_networks/t2t_vit.py:146
Method
no_weight_decay
(self)
transferattack/model_related/setr_networks/t2t_vit_dense.py:132
Method
no_weight_decay
(self)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/ViT_LRP.py:302
Method
no_weight_decay_keywords
(self)
transferattack/model_related/setr_networks/swin_transformer.py:515
Method
norm_grad
(g)
transferattack/model_related/ana.py:147
Method
norm_record_pit
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:235
Method
norm_record_vis
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:288
Method
norm_record_vit
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:127
Function
ode_func
(t, x)
defense/diffpure/score_sde/sampling.py:466
Function
ode_sampler
The probability flow ODE sampler with black-box ODE solver. Args: model: A score model. z: If present, generate samples from latent c
defense/diffpure/score_sde/sampling.py:449
Method
op_num
(self)
transferattack/input_transformation/ops.py:64
Function
optimization_manager
Returns an optimize_fn based on `config`.
defense/diffpure/score_sde/losses.py:38
Method
p_mean_variance
( self, model, *args, **kwargs )
defense/diffpure/guided_diffusion/respace.py:96
Method
p_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
defense/diffpure/guided_diffusion/gaussian_diffusion.py:449
Function
parse
(x)
transferattack/model_related/ata_vit_utils/Transformer_Explainability/baselines/ViT/layer_helpers.py:10
Function
pc_sampler
The PC sampler funciton. Args: model: A score model. Returns: Samples, number of function evaluations.
defense/diffpure/score_sde/sampling.py:390
Method
pool_record_pit
(module, grad_in, grad_out, gamma)
transferattack/model_related/vdc.py:135
← previous
next →
2,001–2,100 of 2,264, ranked by callers