MCPcopy Create free account

hub / github.com/NVlabs/DiffPure / functions

Functions875 in github.com/NVlabs/DiffPure

↓ 1 callersFunctionprofile_kv
(scopename)
guided_diffusion/logger.py:302
↓ 1 callersMethodproject_params
Projects the params to be within lp_bound (according to an lp) of the identity map. First thing we do is clip the params to be
stadv_eot/recoloradv/color_transformers.py:255
↓ 1 callersMethodproject_params
Projects the params to be within lp_bound (according to an lp) of the identity map. First thing we do is clip the params to be
stadv_eot/recoloradv/mister_ed/spatial_transformers.py:260
↓ 1 callersMethodpurify
(self, x)
bpda_eot/bpda_eot_attack.py:38
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of dif
guided_diffusion/gaussian_diffusion.py:179
↓ 1 callersFunctionrandom_crop_arr
(pil_image, image_size, min_crop_frac=0.8, max_crop_frac=1.0)
guided_diffusion/image_datasets.py:154
↓ 1 callersFunctionremove_prefix
(s, prefix)
data/datasets.py:28
↓ 1 callersMethodreset
(self)
stadv_eot/recoloradv/mister_ed/utils/pytorch_utils.py:124
↓ 1 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the original op
score_sde/models/ema.py:84
↓ 1 callersFunctionrestore_checkpoint
(ckpt_dir, state, device)
runners/diffpure_ode.py:43
↓ 1 callersFunctionrestore_checkpoint
(ckpt_dir, state, device)
runners/diffpure_sde.py:42
↓ 1 callersFunctionrestore_checkpoint
(ckpt_dir, state, device)
runners/diffpure_ldsde.py:42
↓ 1 callersFunctionrobustness_eval
(args, config)
eval_sde_adv_bpda.py:177
↓ 1 callersFunctionrobustness_eval
(args, config)
eval_sde_adv.py:211
↓ 1 callersFunctionrun_attack_with_random_targets
Runs an attack with targets randomly selected from all classes besides the correct one. The attack should be a function from (inputs, labels)
stadv_eot/attacks.py:24
↓ 1 callersMethodrun_step
(self, batch, cond)
guided_diffusion/train_util.py:180
↓ 1 callersFunctionsafe_tensor
Returns a tensor of an entity, which may or may not already be a tensor
stadv_eot/recoloradv/mister_ed/utils/pytorch_utils.py:94
↓ 1 callersMethodsave_minibatch
Assigns a random name to this minibatch and saves the examples and labels in two separate files: <random_name>.examples.npy a
stadv_eot/recoloradv/mister_ed/utils/checkpoints.py:195
↓ 1 callersMethodset_comm
(self, comm)
guided_diffusion/logger.py:393
↓ 1 callersFunctionset_global_gpu
Sets the environment variable 'MISTER_ED_GPU'. Defaults to using gpu if cuda is available ARGS: manual : bool - we set the 'MISTE
stadv_eot/recoloradv/mister_ed/utils/pytorch_utils.py:48
↓ 1 callersMethodset_level
(self, level)
guided_diffusion/logger.py:390
↓ 1 callersMethodsetup
(self, originals)
stadv_eot/recoloradv/perturbations.py:60
↓ 1 callersMethodsetup
(self, originals)
stadv_eot/recoloradv/mister_ed/adversarial_perturbations.py:561
↓ 1 callersMethodsetup
(self, x)
stadv_eot/recoloradv/mister_ed/adversarial_perturbations.py:696
↓ 1 callersFunctionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
guided_diffusion/respace.py:15
↓ 1 callersFunctionsr_create_model
( large_size, small_size, num_channels, num_res_blocks, learn_sigma, class_cond, u
guided_diffusion/script_util.py:342
↓ 1 callersMethodstAdv_norm
Computes the norm used in "Spatially Transformed Adversarial Examples"
stadv_eot/recoloradv/mister_ed/spatial_transformers.py:147
↓ 1 callersFunctionstate_dict_to_master_params
(model, state_dict, use_fp16)
guided_diffusion/fp16_util.py:124
↓ 1 callersMethodstate_dict_to_master_params
(self, state_dict)
guided_diffusion/fp16_util.py:239
↓ 1 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be temp
score_sde/models/ema.py:74
↓ 1 callersMethodtweak_lambdas
Modifies the constant scaling that we keep to weight f_adv vs D(.) in our loss function. IF the attack was successful
stadv_eot/recoloradv/mister_ed/adversarial_attacks.py:528
↓ 1 callersMethodupdate
(self, val, n=1)
stadv_eot/recoloradv/mister_ed/utils/pytorch_utils.py:130
↓ 1 callersFunctionupdate_ema
Update target parameters to be closer to those of source parameters using an exponential moving average. :param target_params: the targe
guided_diffusion/nn.py:63
↓ 1 callersMethodupdate_fn
(self, x, t)
score_sde/sampling.py:195
↓ 1 callersMethodupdate_fn
(self, x, t)
score_sde/sampling.py:249
↓ 1 callersMethodupdate_fn
(self, x, t)
score_sde/sampling.py:329
↓ 1 callersMethodupdate_with_all_losses
Update the reweighting using losses from a model. Sub-classes should override this method to update the reweighting using lo
guided_diffusion/resample.py:115
↓ 1 callersMethodupdate_with_local_losses
Update the reweighting using losses from a model. Call this method from each rank with a batch of timesteps and the correspo
guided_diffusion/resample.py:79
↓ 1 callersFunctionupfirdn2d_native
( input, kernel, up_x, up_y, down_x, down_y, pad_x0, pad_x1, pad_y0, pad_y1 )
score_sde/op/upfirdn2d.py:167
↓ 1 callersFunctionupsample_conv_2d
Fused `upsample_2d()` followed by `tf.nn.conv2d()`. Padding is performed only once at the beginning, not between the operations. The f
score_sde/models/up_or_down_sampling.py:80
↓ 1 callersMethodvalidation_loop
Prints out validation values interim for use in iterative techniques ARGS: new_examples: Variable (NxCxHxW) - [0.0, 1.0] images t
stadv_eot/recoloradv/mister_ed/adversarial_attacks.py:136
↓ 1 callersFunctionvariance_scaling
Ported from JAX.
score_sde/models/layers.py:54
↓ 1 callersMethodvesde_update_fn
(self, x, t)
score_sde/sampling.py:213
↓ 1 callersMethodvpsde_fn
(self, t, x)
runners/diffpure_ode.py:84
↓ 1 callersMethodvpsde_fn
(self, t, x)
runners/diffpure_sde.py:86
↓ 1 callersMethodvpsde_update_fn
(self, x, t)
score_sde/sampling.py:225
↓ 1 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
guided_diffusion/resample.py:43
↓ 1 callersMethodwritekvs
(self, kvs)
guided_diffusion/logger.py:35
↓ 1 callersMethodwriteseq
(self, seq)
guided_diffusion/logger.py:40
↓ 1 callersFunctionzero_grad
(model_params)
guided_diffusion/fp16_util.py:141
↓ 1 callersMethodzero_grad
(self)
guided_diffusion/fp16_util.py:181
FunctionPYBIND11_MODULE
score_sde/op/fused_bias_act.cpp:27
FunctionPYBIND11_MODULE
score_sde/op/upfirdn2d.cpp:29
MethodT
End time of the SDE.
score_sde/sde_lib.py:29
MethodT
(self)
score_sde/sde_lib.py:98
MethodT
(self)
score_sde/sde_lib.py:140
MethodT
(self)
score_sde/sde_lib.py:190
MethodT
(self)
score_sde/sde_lib.py:231
FunctionWideResNet_70_16
()
classifiers/cifar10_resnet.py:193
Method__call__
(self, x)
stadv_eot/recoloradv/mister_ed/adversarial_perturbations.py:74
Method__call__
(self, *args)
stadv_eot/recoloradv/mister_ed/adversarial_perturbations.py:410
Method__call__
(self, var)
stadv_eot/recoloradv/mister_ed/utils/pytorch_utils.py:519
Method__call__
(self, x, ts, **kwargs)
guided_diffusion/respace.py:131
Method__enter__
(self)
utils.py:57
Method__exit__
(self, exc_type: Any, exc_value: Any, traceback: Any)
utils.py:60
Method__getattribute__
(self, name)
stadv_eot/recoloradv/mister_ed/adversarial_perturbations.py:383
Method__getitem__
(self, index)
data/datasets.py:92
Method__getitem__
(self, idx)
data/datasets.py:180
Method__getitem__
(self, idx)
guided_diffusion/image_datasets.py:111
Method__init__
(self, args, config)
eval_sde_adv_bpda.py:32
Method__init__
(self, resnet)
utils.py:145
Method__init__
(self, args, config)
eval_sde_adv.py:35
Method__init__
(self, in_channels, with_conv)
ddpm/unet_ddpm.py:45
Method__init__
(self, in_channels, with_conv)
ddpm/unet_ddpm.py:64
Method__init__
(self, *, in_channels, out_channels=None, conv_shortcut=False, dropout, temb_channels=512)
ddpm/unet_ddpm.py:86
Method__init__
(self, in_channels)
ddpm/unet_ddpm.py:146
Method__init__
(self, args, config, device=None)
runners/diffpure_ddpm.py:58
Method__init__
(self, args, config, device=None)
runners/diffpure_ode.py:135
Method__init__
(self, args, config, device=None, model_dir='pretrained/guided_diffusion')
runners/diffpure_guided.py:18
Method__init__
(self, args, config, device=None)
runners/diffpure_sde.py:151
Method__init__
(self, args, config, device=None)
runners/diffpure_ldsde.py:152
Method__init__
(self, model, adv_eps=8.0/255, eot_defense_reps=150, eot_attack_reps=15)
bpda_eot/bpda_eot_attack.py:21
Method__init__
(self, size, fan_in, gain=np.sqrt(2), bias=True)
classifiers/attribute_net.py:18
Method__init__
(self, in_channels, out_channels, kernel_size, padding=0, bias=True, gain=np.sqrt(2))
classifiers/attribute_net.py:41
Method__init__
(self, in_channels, out_channels, bias=True, gain=np.sqrt(2))
classifiers/attribute_net.py:56
Method__init__
(self, in_channels, out_channels, kernel_size, act=nn.LeakyReLU(0.2), bias=True)
classifiers/attribute_net.py:67
Method__init__
(self, factor=2)
classifiers/attribute_net.py:79
Method__init__
(self, in_channels, conv0_channels, conv1_channels, kernel_size, padding, bias=True, act=nn.L
classifiers/attribute_net.py:88
Method__init__
(self, group_size=4)
classifiers/attribute_net.py:113
Method__init__
(self, in_channels, dense0_feat, dense1_feat, out_feat, pool_size=2, act=nn.LeakyReLU(0.2), u
classifiers/attribute_net.py:133
Method__init__
(self, in_planes, planes, stride=1)
classifiers/cifar10_resnet.py:20
Method__init__
(self, in_planes, out_planes, stride, dropRate=0.0)
classifiers/cifar10_resnet.py:95
Method__init__
(self, nb_layers, in_planes, out_planes, block, stride, dropRate=0.0)
classifiers/cifar10_resnet.py:123
Method__init__
(self, depth=28, num_classes=10, widen_factor=10, sub_block1=False, dropRate=0.0, bias_last=True)
classifiers/cifar10_resnet.py:140
Method__init__
(self, classifier_name, ckpt_path=None, device='cuda')
classifiers/attribute_classifier.py:59
Method__init__
(self, model, threat_model, randomize=False, perturbation_norm_loss=False, lr=0.001, random_t
stadv_eot/attacks.py:50
Method__init__
(self, **kwargs)
stadv_eot/recoloradv/color_transformers.py:42
Method__init__
(self, *args, **kwargs)
stadv_eot/recoloradv/color_transformers.py:97
Method__init__
(self, kr=0.299, kg=0.587, kb=0.114, luma_factor=1, chroma_factor=1)
stadv_eot/recoloradv/color_spaces.py:60
Method__init__
(self, up_white=0.1978, vp_white=0.4683, y_white=1, eps=1e-10)
stadv_eot/recoloradv/color_spaces.py:225
← previousnext →301–400 of 875, ranked by callers