Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LetheSec/PLG-MI-Attack
/ functions
Functions
329 in github.com/LetheSec/PLG-MI-Attack
⨍
Functions
329
◇
Types & classes
88
Function
calc_center
(feat, iden, path="feature")
baselines/utils.py:387
Function
calc_feat
(img)
baselines/utils.py:337
Function
calc_knn
(feat, iden, path="feature")
baselines/utils.py:400
Function
calc_psnr
(img1, img2)
baselines/utils.py:364
Function
calculate_activation_statistics
Calculation of the statistics used by the FID. Params: -- images : Numpy array of dimension (n_images, 3, hi, wi). The values
baselines/metrics/fid.py:112
Function
calculate_activation_statistics
Calculation of the statistics used by the FID. Params: -- images : Numpy array of dimension (n_images, 3, hi, wi). The values
metrics/fid.py:112
Function
calculate_frechet_distance
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2
baselines/metrics/fid.py:59
Function
calculate_frechet_distance
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2
metrics/fid.py:59
Function
completion_network_loss
(input, output, mask)
baselines/losses.py:5
Method
conv_ln_lrelu
(in_dim, out_dim, k, s, p)
baselines/discri.py:42
Method
conv_ln_lrelu
(in_dim, out_dim, k, s, p)
baselines/discri.py:82
Method
conv_ln_lrelu
(in_dim, out_dim)
baselines/discri.py:135
Method
conv_ln_lrelu
(in_dim, out_dim)
baselines/discri.py:161
Method
conv_ln_lrelu
(in_dim, out_dim)
baselines/discri.py:186
Function
crop
* inputs: - x (torch.Tensor, required) A torch tensor of shape (N, C, H, W) is assumed. - area (sequence, require
baselines/utils.py:248
Function
cross_entropy_loss
(out, iden)
losses.py:16
Method
dconv_bn_relu
(in_dim, out_dim)
baselines/generator.py:9
Method
dconv_bn_relu
(in_dim, out_dim)
baselines/generator.py:38
Function
evaluate
Evaluate in the training process.
evaluation.py:173
Method
forward
(self, x)
baselines/facenet.py:19
Method
forward
(self, x)
baselines/facenet.py:44
Method
forward
(self, input)
baselines/facenet.py:55
Method
forward
(self, x)
baselines/facenet.py:81
Method
forward
(self, x)
baselines/facenet.py:105
Method
forward
(self, x)
baselines/facenet.py:130
Method
forward
(self, x)
baselines/facenet.py:203
Method
forward
(self, x)
baselines/facenet.py:260
Method
forward
(self, x)
baselines/utils.py:62
Method
forward
(self, x)
baselines/utils.py:441
Method
forward
(self, mask, gen, images)
baselines/losses.py:20
Method
forward
(self, out, gt)
baselines/losses.py:27
Method
forward
(self, x)
baselines/discri.py:19
Method
forward
(self, x)
baselines/discri.py:57
Method
forward
(self, x)
baselines/discri.py:96
Method
forward
(self, x)
baselines/discri.py:117
Method
forward
(self, x)
baselines/discri.py:148
Method
forward
(self, x)
baselines/discri.py:176
Method
forward
(self, x)
baselines/discri.py:199
Method
forward
(self, x)
baselines/discri.py:222
Method
forward
(self, input)
baselines/discri.py:251
Method
forward
(self, input)
baselines/classify.py:15
Method
forward
(self, x)
baselines/classify.py:28
Method
forward
(self, x)
baselines/classify.py:49
Method
forward
(self, x, mode="train")
baselines/classify.py:78
Method
forward
(self, out, gt, mode="reg")
baselines/classify.py:106
Method
forward
(self, out, gt)
baselines/classify.py:117
Method
forward
(self, x)
baselines/classify.py:138
Method
forward
(self, x)
baselines/classify.py:162
Method
forward
(self, x)
baselines/classify.py:186
Method
forward
(self, x)
baselines/classify.py:212
Method
forward
(self, x)
baselines/classify.py:245
Method
forward
(self, x)
baselines/classify.py:279
Method
forward
(self, input)
baselines/evolve.py:12
Method
forward
(self, x)
baselines/evolve.py:38
Method
forward
(self, x)
baselines/evolve.py:62
Method
forward
(self, x)
baselines/evolve.py:87
Method
forward
(self, x)
baselines/evolve.py:154
Method
forward
(self, x)
baselines/evolve.py:218
Method
forward
Get Inception feature maps Parameters ---------- inp : torch.autograd.Variable Input tensor of shape Bx3xHxW. Val
baselines/inception.py:108
Method
forward
(self, x)
baselines/generator.py:27
Method
forward
(self, x)
baselines/generator.py:55
Method
forward
(self, x)
baselines/generator.py:134
Method
forward
(self, x)
baselines/generator.py:207
Method
forward
(self, x)
baselines/generator.py:234
Method
forward
(self, inp)
baselines/generator.py:264
Method
forward
(self, input, c, **kwargs)
links/conditional_batchnorm.py:57
Method
forward
Get Inception feature maps Parameters ---------- inp : torch.autograd.Variable Input tensor of shape Bx3xHxW. Val
models/__init__.py:108
Method
forward
Get Inception feature maps Parameters ---------- inp : torch.autograd.Variable Input tensor of shape Bx3xHxW. Val
models/inception.py:108
Method
forward
(self, input)
models/classifiers/classifier.py:15
Method
forward
(self, x)
models/classifiers/classifier.py:28
Method
forward
(self, x)
models/classifiers/classifier.py:49
Method
forward
(self, x, mode="train")
models/classifiers/classifier.py:78
Method
forward
(self, out, gt, mode="reg")
models/classifiers/classifier.py:106
Method
forward
(self, out, gt)
models/classifiers/classifier.py:117
Method
forward
(self, x)
models/classifiers/classifier.py:138
Method
forward
(self, x)
models/classifiers/classifier.py:162
Method
forward
(self, x)
models/classifiers/classifier.py:186
Method
forward
(self, x)
models/classifiers/classifier.py:212
Method
forward
(self, input)
models/classifiers/evolve.py:12
Method
forward
(self, x)
models/classifiers/evolve.py:38
Method
forward
(self, x)
models/classifiers/evolve.py:62
Method
forward
(self, x)
models/classifiers/evolve.py:87
Method
forward
(self, x)
models/classifiers/evolve.py:154
Method
forward
(self, x)
models/classifiers/evolve.py:218
Method
forward
(self, x, y=None)
models/discriminators/snresnet64.py:41
Method
forward
(self, x, y=None)
models/discriminators/snresnet64.py:87
Method
forward
(self, x)
models/discriminators/resblocks.py:38
Method
forward
(self, x)
models/discriminators/resblocks.py:73
Method
forward
(self, z, y=None, **kwargs)
models/generators/resnet64.py:43
Method
forward
(self, x, y=None, z=None, **kwargs)
models/generators/resblocks.py:47
Function
gen_hole_area
* inputs: - size (sequence, required) A sequence of length 2 (W, H) is assumed. (W, H) is the size of hol
baselines/utils.py:229
Function
generate_images
Generate images. Priority: num_classes > class_id. Args: gen (nn.Module): generator. device (torch.device) batch_siz
utils.py:17
Function
get_center_mask
(img_size, bs)
baselines/utils.py:265
Function
get_model
(attack_name, classes)
baselines/utils.py:348
Function
get_private_feats
Get the features of private data on the evaluation model, and save as file. :param E: Evaluation model :param private_feats_path: save pa
evaluation.py:67
Function
get_train_mask
(img_size, bs)
baselines/utils.py:275
Function
gradient_penalty
(x, y)
baselines/KED_MI.py:35
Function
l2_norm
(input, axis=1)
baselines/facenet.py:59
Function
l2_norm
(input, axis=1)
baselines/evolve.py:16
Function
l2_norm
(input, axis=1)
models/classifiers/evolve.py:16
← previous
next →
201–300 of 329, ranked by callers