Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VDIGPKU/CMUA-Watermark
/ functions
Functions
574 in github.com/VDIGPKU/CMUA-Watermark
⨍
Functions
574
◇
Types & classes
111
↓ 1 callers
Function
get_data_iters
(conf, gpus)
HiSD/core/utils.py:22
↓ 1 callers
Method
get_image_dir
Return the directory that stores images
AttentionGAN/util/html.py:35
↓ 1 callers
Method
get_image_paths
Return image paths that are used to load current data
AttentionGAN/models/base_model.py:112
↓ 1 callers
Function
get_inception_probs
(batch_size, images, inception_images, logits)
AttentionGAN/scripts/GAN_Metrics-Tensorflow/inception_score.py:27
↓ 1 callers
Function
get_inception_score
(batch_size, images, inception_images, logits, splits=10)
AttentionGAN/scripts/GAN_Metrics-Tensorflow/inception_score.py:45
↓ 1 callers
Method
get_num_adain_params
(self, model)
HiSD/core/networks.py:205
↓ 1 callers
Method
get_target_tensor
Create label tensors with the same size as the input. Parameters: prediction (tensor) - - tpyically the prediction from a discrim
AttentionGAN/AttentionGAN-geo/networks.py:244
↓ 1 callers
Method
get_target_tensor
Create label tensors with the same size as the input. Parameters: prediction (tensor) - - tpyically the prediction from a discrim
AttentionGAN/models/networks.py:244
↓ 1 callers
Method
gradient_penalty
Compute gradient penalty: (L2_norm(dy/dx) - 1)**2.
attentiongan_solver.py:132
↓ 1 callers
Method
gradient_penalty
Compute gradient penalty: (L2_norm(dy/dx) - 1)**2.
AttentionGAN/AttentionGAN_v1_multi/solver.py:132
↓ 1 callers
Function
inception_logits
(images, num_splits = 1)
AttentionGAN/scripts/GAN_Metrics-Tensorflow/inception_score.py:12
↓ 1 callers
Function
inception_score
()
AttentionGAN/scripts/GAN_Metrics-Tensorflow/main.py:6
↓ 1 callers
Function
init_Attack
(args_attack)
universal_attack.py:55
↓ 1 callers
Function
init_Attack
(args_attack)
universal_attack_nni.py:50
↓ 1 callers
Function
init_Attack
(args_attack)
universal_attack_inference_one_image.py:48
↓ 1 callers
Function
init_Attack
(args_attack)
universal_attack_inference.py:55
↓ 1 callers
Function
init_attGAN
(args_attack)
model_data_prepare.py:45
↓ 1 callers
Function
init_attack_data
(args_attack, attgan_args)
model_data_prepare.py:70
↓ 1 callers
Function
init_attentiongan
(args_attack, test_dataloader)
model_data_prepare.py:66
↓ 1 callers
Function
init_inference_data
(args_attack, attgan_args)
model_data_prepare.py:83
↓ 1 callers
Function
init_stargan
(args_attack, test_dataloader)
model_data_prepare.py:62
↓ 1 callers
Function
init_weights
Initialize network weights. Parameters: net (network) -- network to be initialized init_type (str) -- the name of an initializa
AttentionGAN/AttentionGAN-geo/networks.py:68
↓ 1 callers
Function
init_weights
Initialize network weights. Parameters: net (network) -- network to be initialized init_type (str) -- the name of an initializa
AttentionGAN/models/networks.py:68
↓ 1 callers
Method
initialize
Define the common options that are used in both training and test.
AttentionGAN/options/base_options.py:20
↓ 1 callers
Function
is_image_file
(filename)
AttentionGAN/data/image_folder.py:19
↓ 1 callers
Function
kernel_inception_distance
()
AttentionGAN/scripts/GAN_Metrics-Tensorflow/main.py:50
↓ 1 callers
Method
load_data
(self)
AttentionGAN/data/__init__.py:81
↓ 1 callers
Method
load_networks
Load all the networks from the disk. Parameters: epoch (int) -- current epoch; used in the file name '%s_net_%s.pth' % (epoch, na
AttentionGAN/models/base_model.py:175
↓ 1 callers
Function
main
(config)
stargan/main.py:11
↓ 1 callers
Function
main
(config)
AttentionGAN/AttentionGAN_v1_multi/main.py:11
↓ 1 callers
Method
optimize_parameters
Calculate losses, gradients, and update network weights; called in every training iteration
AttentionGAN/models/base_model.py:74
↓ 1 callers
Function
parse
(args=None)
universal_attack.py:39
↓ 1 callers
Function
parse
(args=None)
universal_attack_nni.py:39
↓ 1 callers
Function
parse
(args=None)
universal_attack_inference_one_image.py:41
↓ 1 callers
Function
parse
(args=None)
model_data_prepare.py:39
↓ 1 callers
Function
parse
(args=None)
universal_attack_inference.py:39
↓ 1 callers
Function
parse
(args=None)
AttGAN/train.py:29
↓ 1 callers
Function
parse
(args=None)
AttGAN/test.py:23
↓ 1 callers
Function
parse
(args=None)
AttGAN/test_slide.py:23
↓ 1 callers
Function
parse
(args=None)
AttGAN/attack_attgan.py:26
↓ 1 callers
Function
parse
(args=None)
AttGAN/test_multi.py:23
↓ 1 callers
Method
perturb
Vanilla Attack.
AttGAN/attacks.py:39
↓ 1 callers
Method
perturb
Vanilla Attack.
AttentionGAN/AttentionGAN_v1_multi/attacks.py:36
↓ 1 callers
Method
plot_current_losses
display the current losses on visdom display: dictionary of error labels and values Parameters: epoch (int) -- current
AttentionGAN/util/visualizer.py:185
↓ 1 callers
Function
preds2score
(preds, splits=10)
AttentionGAN/scripts/GAN_Metrics-Tensorflow/inception_score.py:36
↓ 1 callers
Function
prepare_HiSD
()
HiSD/inference.py:25
↓ 1 callers
Function
prepare_sub_folder
(output_directory)
HiSD/core/utils.py:65
↓ 1 callers
Method
preprocess
Preprocess the CelebA attribute file.
data.py:48
↓ 1 callers
Method
preprocess
Preprocess the CelebA attribute file.
stargan/data_loader.py:31
↓ 1 callers
Method
preprocess
Preprocess the CelebA attribute file.
AttentionGAN/AttentionGAN_v1_multi/data_loader.py:31
↓ 1 callers
Method
print_current_losses
print current losses on console; also save the losses to the disk Parameters: epoch (int) -- current epoch iters (int
AttentionGAN/util/visualizer.py:211
↓ 1 callers
Method
print_networks
Print the total number of parameters in the network and (if verbose) network architecture Parameters: verbose (bool) -- if verbos
AttentionGAN/models/base_model.py:200
↓ 1 callers
Method
print_options
Print and save options It will print both current options and default values(if different). It will save options into a text file / [
AttentionGAN/options/base_options.py:89
↓ 1 callers
Method
reset
Reset the self.saved status
AttentionGAN/util/visualizer.py:93
↓ 1 callers
Method
reset_parameters
(self)
AttGAN/switchable_norm.py:23
↓ 1 callers
Method
reset_parameters
(self)
AttGAN/switchable_norm.py:87
↓ 1 callers
Method
reset_parameters
(self)
AttGAN/switchable_norm.py:168
↓ 1 callers
Method
resume
(self, checkpoint_dir, hyperparameters)
HiSD/core/trainer.py:212
↓ 1 callers
Method
save
(self, snapshot_dir, iterations)
HiSD/core/trainer.py:242
↓ 1 callers
Method
saveG
(self, path)
AttGAN/attgan.py:281
↓ 1 callers
Function
save_images
Save images to the disk. Parameters: webpage (the HTML class) -- the HTML webpage class that stores these imaegs (see html.py for more de
AttentionGAN/util/visualizer.py:16
↓ 1 callers
Method
say
(self, **kwargs)
AttGAN/helpers.py:33
↓ 1 callers
Method
scalar_summary
Add scalar summary.
AttentionGAN/AttentionGAN_v1_multi/logger.py:11
↓ 1 callers
Function
search
()
universal_attack_nni.py:55
↓ 1 callers
Method
set_lr
(self, lr)
AttGAN/attgan.py:162
↓ 1 callers
Method
test
Forward function used in test time. This function wraps <forward> function in no_grad() so we don't save intermediate steps for backprop
AttentionGAN/models/base_model.py:98
↓ 1 callers
Method
test
Translate images using StarGAN trained on a single dataset.
AttentionGAN/AttentionGAN_v1_multi/solver.py:540
↓ 1 callers
Method
test_multi
Translate images using StarGAN trained on multiple datasets.
stargan_solver.py:1274
↓ 1 callers
Method
test_multi
Translate images using StarGAN trained on multiple datasets.
stargan/solver.py:1274
↓ 1 callers
Method
test_universal_attack
Universal Attack by Huang Hao
stargan/solver.py:1029
↓ 1 callers
Function
trace_sqrt_product
Find the trace of the positive sqrt of product of covariance matrices. '_symmetric_matrix_square_root' only works for symmetric matrices, so we
AttentionGAN/scripts/GAN_Metrics-Tensorflow/frechet_kernel_Inception_distance.py:43
↓ 1 callers
Method
train
Train StarGAN within a single dataset.
AttentionGAN/AttentionGAN_v1_multi/solver.py:186
↓ 1 callers
Method
trainD
(self, img_a, att_a, att_a_, att_b, att_b_)
AttGAN/attgan.py:197
↓ 1 callers
Method
trainG
(self, img_a, att_a, att_a_, att_b, att_b_)
AttGAN/attgan.py:168
↓ 1 callers
Method
train_adv_both
G+D Adversarial Training for StarGAN with both Discriminator and Generator, within a single dataset.
stargan/solver.py:569
↓ 1 callers
Method
train_multi
Vanilla Training for StarGAN with multiple datasets.
stargan_solver.py:738
↓ 1 callers
Method
train_multi
Vanilla Training for StarGAN with multiple datasets.
stargan/solver.py:738
↓ 1 callers
Method
universal_perturb
Vanilla Attack.
stargan/attacks.py:73
↓ 1 callers
Method
universal_perturb_HiSD
(self, X_nat, transform, F, T, G, E, device, reference, y, gen)
HiSD/attacks.py:46
↓ 1 callers
Function
update_average
(model_tgt, model_src, beta=0.99)
HiSD/core/trainer.py:18
↓ 1 callers
Method
update_learning_rate
Update learning rates for all the networks; called at the end of every epoch
AttentionGAN/models/base_model.py:116
↓ 1 callers
Method
update_lr
Decay learning rates of the generator and discriminator.
attentiongan_solver.py:115
↓ 1 callers
Method
update_lr
Decay learning rates of the generator and discriminator.
AttentionGAN/AttentionGAN_v1_multi/solver.py:115
↓ 1 callers
Method
weight_init
(self, mean, std)
AttentionGAN/AttentionGAN-geo/networks.py:533
↓ 1 callers
Method
weight_init
(self, mean, std)
AttentionGAN/models/networks.py:533
↓ 1 callers
Function
weights_init
(init_type='gaussian')
HiSD/core/utils.py:95
↓ 1 callers
Function
write_2images
(image_outputs, display_image_num, image_directory, postfix)
HiSD/core/utils.py:60
↓ 1 callers
Function
write_loss
(iterations, trainer, train_writer)
HiSD/core/utils.py:76
Method
__call__
(self, x)
evaluate.py:24
Method
__call__
(self, iterable)
AttGAN/helpers.py:29
Method
__call__
Calculate loss given Discriminator's output and grount truth labels. Parameters: prediction (tensor) - - tpyically the prediction
AttentionGAN/AttentionGAN-geo/networks.py:261
Method
__call__
Calculate loss given Discriminator's output and grount truth labels. Parameters: prediction (tensor) - - tpyically the prediction
AttentionGAN/models/networks.py:261
Method
__getattr__
(self,name)
universal_attack.py:31
Method
__getattr__
(self,name)
universal_attack_nni.py:31
Method
__getattr__
(self,name)
universal_attack_inference_one_image.py:33
Method
__getattr__
(self,name)
model_data_prepare.py:31
Method
__getattr__
(self,name)
universal_attack_inference.py:31
Method
__getitem__
(self, index)
data.py:69
Method
__getitem__
Return one image and its corresponding attribute label.
stargan/data_loader.py:59
Method
__getitem__
(self, index)
AttGAN/data.py:30
← previous
next →
201–300 of 574, ranked by callers