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
↓ 2 callers
Function
create_model
Create a model given the option. This function warps the class CustomDatasetDataLoader. This is the main interface between this package and '
AttentionGAN/models/__init__.py:54
↓ 2 callers
Method
decode
(self, zs, a)
AttGAN/attgan.py:65
↓ 2 callers
Method
encode
(self, x)
AttGAN/attgan.py:57
↓ 2 callers
Function
find_dataset_using_name
Import the module "data/[dataset_name]_dataset.py". In the file, the class called DatasetNameDataset() will be instantiated. It has to be a s
AttentionGAN/data/__init__.py:18
↓ 2 callers
Function
find_model_using_name
Import the module "models/[model_name]_model.py". In the file, the class called DatasetNameModel() will be instantiated. It has to be a subcl
AttentionGAN/models/__init__.py:25
↓ 2 callers
Function
frechet_classifier_distance_from_activations
Classifier distance for evaluating a generative model. This methods computes the Frechet classifier distance from activations of real imag
AttentionGAN/scripts/GAN_Metrics-Tensorflow/frechet_kernel_Inception_distance.py:84
↓ 2 callers
Method
get_current_visuals
Return visualization images. train.py will display these images with visdom, and save the images to a HTML
AttentionGAN/models/base_model.py:127
↓ 2 callers
Function
get_loader
Build and return a data loader.
stargan/data_loader.py:72
↓ 2 callers
Function
get_loader
Build and return a data loader.
AttentionGAN/AttentionGAN_v1_multi/data_loader.py:71
↓ 2 callers
Function
get_model_list
(dirname, key)
HiSD/core/utils.py:84
↓ 2 callers
Function
get_norm_layer
Return a normalization layer Parameters: norm_type (str) -- the name of the normalization layer: batch | instance | none For BatchNo
AttentionGAN/AttentionGAN-geo/networks.py:19
↓ 2 callers
Function
get_norm_layer
Return a normalization layer Parameters: norm_type (str) -- the name of the normalization layer: batch | instance | none For BatchNo
AttentionGAN/models/networks.py:19
↓ 2 callers
Function
get_transform
(opt, params=None, grayscale=False, method=Image.BICUBIC, convert=True)
AttentionGAN/data/base_dataset.py:81
↓ 2 callers
Function
init_net
Initialize a network: 1. register CPU/GPU device (with multi-GPU support); 2. initialize the network weights Parameters: net (network)
AttentionGAN/AttentionGAN-geo/networks.py:102
↓ 2 callers
Function
init_net
Initialize a network: 1. register CPU/GPU device (with multi-GPU support); 2. initialize the network weights Parameters: net (network)
AttentionGAN/models/networks.py:102
↓ 2 callers
Function
kernel_classifier_distance_and_std_from_activations
Kernel "classifier" distance for evaluating a generative model. This methods computes the kernel classifier distance from activations of r
AttentionGAN/scripts/GAN_Metrics-Tensorflow/frechet_kernel_Inception_distance.py:167
↓ 2 callers
Method
load_model_weights
(self, model, path)
stargan_solver.py:154
↓ 2 callers
Method
load_model_weights
(self, model, path)
stargan/solver.py:154
↓ 2 callers
Method
log
(self, losses=None, images=None)
AttentionGAN/AttentionGAN-v1/utils.py:38
↓ 2 callers
Function
mkdir
create a single empty directory if it didn't exist Parameters: path (str) -- a single directory path
AttentionGAN/util/util.py:89
↓ 2 callers
Function
normal_init
(m, mean, std)
AttentionGAN/AttentionGAN-geo/networks.py:545
↓ 2 callers
Function
normal_init
(m, mean, std)
AttentionGAN/models/networks.py:545
↓ 2 callers
Method
parse
Parse our options, create checkpoints directory suffix, and set up gpu device.
AttentionGAN/options/base_options.py:114
↓ 2 callers
Method
print_network
Print out the network information.
attentiongan_solver.py:93
↓ 2 callers
Method
print_network
Print out the network information.
AttentionGAN/AttentionGAN_v1_multi/solver.py:93
↓ 2 callers
Method
push_and_pop
(self, data)
AttentionGAN/AttentionGAN-v1/utils.py:92
↓ 2 callers
Method
reset_grad
Reset the gradient buffers.
attentiongan_solver.py:122
↓ 2 callers
Method
reset_grad
Reset the gradient buffers.
AttentionGAN/AttentionGAN_v1_multi/solver.py:122
↓ 2 callers
Method
restore_model
Restore the trained generator and discriminator.
attentiongan_solver.py:102
↓ 2 callers
Method
restore_model
Restore the trained generator and discriminator.
AttentionGAN/AttentionGAN_v1_multi/solver.py:102
↓ 2 callers
Method
set_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input (dict): includes the data its
AttentionGAN/models/base_model.py:60
↓ 2 callers
Method
setup
Load and print networks; create schedulers Parameters: opt (Option class) -- stores all the experiment flags; needs to be a subcl
AttentionGAN/models/base_model.py:78
↓ 2 callers
Function
tensor2image
(tensor)
AttentionGAN/AttentionGAN-v1/utils.py:18
↓ 2 callers
Function
tile_like
(x, target)
HiSD/core/networks.py:392
↓ 2 callers
Method
universal_perturb
Vanilla Attack.
AttGAN/attacks.py:72
↓ 2 callers
Method
universal_perturb_HiSD
(self, X_nat, transform, F, T, G, E, reference, y, gen, mask)
attacks.py:191
↓ 2 callers
Method
universal_perturb_attentiongan
Vanilla Attack.
attacks.py:151
↓ 2 callers
Method
universal_perturb_attgan
Vanilla Attack.
attacks.py:80
↓ 2 callers
Method
universal_perturb_stargan
Vanilla Attack.
attacks.py:114
↓ 1 callers
Function
PIL_to_cv2
(image)
stargan/noise.py:6
↓ 1 callers
Function
__crop
(img, pos, size)
AttentionGAN/data/base_dataset.py:135
↓ 1 callers
Function
__flip
(img, flip)
AttentionGAN/data/base_dataset.py:144
↓ 1 callers
Method
__init__
(self, hyperparameters)
HiSD/core/trainer.py:27
↓ 1 callers
Function
__make_power_2
(img, base, method=Image.BICUBIC)
AttentionGAN/data/base_dataset.py:115
↓ 1 callers
Method
__patch_instance_norm_state_dict
Fix InstanceNorm checkpoints incompatibility (prior to 0.4)
AttentionGAN/models/base_model.py:161
↓ 1 callers
Function
__print_size_warning
Print warning information about image size(only print once)
AttentionGAN/data/base_dataset.py:150
↓ 1 callers
Function
__scale_width
(img, target_width, method=Image.BICUBIC)
AttentionGAN/data/base_dataset.py:126
↓ 1 callers
Function
__write_images
(image_outputs, display_image_num, file_name)
HiSD/core/utils.py:53
↓ 1 callers
Method
_check_input_dim
(self, input)
AttGAN/switchable_norm.py:29
↓ 1 callers
Method
_check_input_dim
(self, input)
AttGAN/switchable_norm.py:97
↓ 1 callers
Method
_check_input_dim
(self, input)
AttGAN/switchable_norm.py:178
↓ 1 callers
Method
_download_data
(self, dataset_url, save_path)
AttentionGAN/util/get_data.py:56
↓ 1 callers
Function
_generate_conv2d_from_smoothing_kernel
(kernel)
stargan/defenses/smoothing.py:90
↓ 1 callers
Function
_generate_conv2d_from_smoothing_kernel
(kernel)
AttGAN/defenses/smoothing.py:90
↓ 1 callers
Function
_generate_gaussian_kernel
(sigma, channels, kernel_size=None)
stargan/defenses/smoothing.py:108
↓ 1 callers
Function
_generate_gaussian_kernel
(sigma, channels, kernel_size=None)
AttGAN/defenses/smoothing.py:108
↓ 1 callers
Method
_get_options
(r)
AttentionGAN/util/get_data.py:40
↓ 1 callers
Function
_meshgrid
(vecx, vecy)
stargan/defenses/smoothing.py:135
↓ 1 callers
Function
_meshgrid
(vecx, vecy)
AttGAN/defenses/smoothing.py:135
↓ 1 callers
Method
_present_options
(self)
AttentionGAN/util/get_data.py:46
↓ 1 callers
Function
_round_to_odd
(f)
stargan/defenses/smoothing.py:131
↓ 1 callers
Function
_round_to_odd
(f)
AttGAN/defenses/smoothing.py:131
↓ 1 callers
Function
add_normalization_1d
(layers, fn, n_out)
AttGAN/nn.py:14
↓ 1 callers
Method
assign_adain_params
(self, adain_params, model)
HiSD/core/networks.py:196
↓ 1 callers
Method
backward_D_A
Calculate GAN loss for discriminator D_A
AttentionGAN/AttentionGAN-geo/attention_gan_model.py:125
↓ 1 callers
Method
backward_D_A
Calculate GAN loss for discriminator D_A
AttentionGAN/models/attention_gan_model.py:119
↓ 1 callers
Method
backward_D_A
Calculate GAN loss for discriminator D_A
AttentionGAN/models/attention_gan1_model.py:147
↓ 1 callers
Method
backward_D_B
Calculate GAN loss for discriminator D_B
AttentionGAN/AttentionGAN-geo/attention_gan_model.py:130
↓ 1 callers
Method
backward_D_B
Calculate GAN loss for discriminator D_B
AttentionGAN/models/attention_gan_model.py:124
↓ 1 callers
Method
backward_D_B
Calculate GAN loss for discriminator D_B
AttentionGAN/models/attention_gan1_model.py:152
↓ 1 callers
Method
backward_G
Calculate the loss for generators G_A and G_B
AttentionGAN/AttentionGAN-geo/attention_gan_model.py:135
↓ 1 callers
Method
backward_G
Calculate the loss for generators G_A and G_B
AttentionGAN/models/attention_gan_model.py:129
↓ 1 callers
Method
backward_G
Calculate the loss for generators G_A and G_B
AttentionGAN/models/attention_gan1_model.py:157
↓ 1 callers
Method
build_conv_block
(self, dim, norm_layer, use_dropout)
AttentionGAN/AttentionGAN-v1/models.py:63
↓ 1 callers
Method
build_conv_block
Construct a convolutional block. Parameters: dim (int) -- the number of channels in the conv layer. padding
AttentionGAN/AttentionGAN-geo/networks.py:564
↓ 1 callers
Method
build_conv_block
Construct a convolutional block. Parameters: dim (int) -- the number of channels in the conv layer. padding
AttentionGAN/models/networks.py:564
↓ 1 callers
Method
build_model
Create a generator and a discriminator.
stargan_solver.py:90
↓ 1 callers
Method
build_model
Create a generator and a discriminator.
attentiongan_solver.py:76
↓ 1 callers
Method
build_model
Create a generator and a discriminator.
stargan/solver.py:90
↓ 1 callers
Method
build_model
Create a generator and a discriminator.
AttentionGAN/AttentionGAN_v1_multi/solver.py:76
↓ 1 callers
Method
build_tensorboard
Build a tensorboard logger.
stargan_solver.py:165
↓ 1 callers
Method
build_tensorboard
Build a tensorboard logger.
attentiongan_solver.py:110
↓ 1 callers
Method
build_tensorboard
Build a tensorboard logger.
stargan/solver.py:165
↓ 1 callers
Method
build_tensorboard
Build a tensorboard logger.
AttentionGAN/AttentionGAN_v1_multi/solver.py:110
↓ 1 callers
Method
calc_dis_loss_fake_cyc
(self, x, s, y, i, j)
HiSD/core/networks.py:61
↓ 1 callers
Method
calc_dis_loss_fake_trg
(self, x, s, y, i, j)
HiSD/core/networks.py:56
↓ 1 callers
Method
calc_dis_loss_real
(self, x, s, y, i, j)
HiSD/core/networks.py:46
↓ 1 callers
Method
calc_gen_loss_fake_cyc
(self, x, s, y, i, j)
HiSD/core/networks.py:78
↓ 1 callers
Method
calc_gen_loss_fake_trg
(self, x, s, y, i, j)
HiSD/core/networks.py:73
↓ 1 callers
Method
calc_gen_loss_real
(self, x, s, y, i, j)
HiSD/core/networks.py:66
↓ 1 callers
Method
dis_losses
(self, x, x_trg, x_cyc, s, s_trg, y, i, j, j_trg)
HiSD/core/trainer.py:92
↓ 1 callers
Method
display_current_results
Display current results on visdom; save current results to an HTML file. Parameters: visuals (OrderedDict) - - dictionary of imag
AttentionGAN/util/visualizer.py:104
↓ 1 callers
Method
forward
Run forward pass; called by both functions <optimize_parameters> and <test>.
AttentionGAN/AttentionGAN-geo/attention_gan_model.py:88
↓ 1 callers
Method
forward
Run forward pass; called by both functions <optimize_parameters> and <test>.
AttentionGAN/models/attention_gan_model.py:84
↓ 1 callers
Method
forward
Run forward pass; called by both functions <optimize_parameters> and <test>.
AttentionGAN/models/base_model.py:69
↓ 1 callers
Method
forward
Run forward pass; called by both functions <optimize_parameters> and <test>.
AttentionGAN/models/attention_gan1_model.py:110
↓ 1 callers
Function
frechet_inception_distance
()
AttentionGAN/scripts/GAN_Metrics-Tensorflow/main.py:25
↓ 1 callers
Method
gather_options
Initialize our parser with basic options(only once). Add additional model-specific and dataset-specific options. These options are def
AttentionGAN/options/base_options.py:61
↓ 1 callers
Method
gen_losses
(self, x, y, i, j, j_trg)
HiSD/core/trainer.py:43
↓ 1 callers
Method
get_current_losses
Return traning losses / errors. train.py will print out these errors on console, and save them to a file
AttentionGAN/models/base_model.py:135
← previous
next →
101–200 of 574, ranked by callers