MCPcopy Create free account

hub / github.com/JunlinHan/DCLGAN / functions

Functions313 in github.com/JunlinHan/DCLGAN

Method__len__
(self)
data/image_folder.py:65
Method__len__
Return the total number of images.
data/template_dataset.py:73
Method__len__
Return the total number of images in the dataset.
data/single_dataset.py:38
Method__patch_instance_norm_state_dict
Fix InstanceNorm checkpoints incompatibility (prior to 0.4)
models/base_model.py:182
Function__print_size_warning
Print warning information about image size(only print once)
data/base_dataset.py:223
Method__repr__
(self)
models/stylegan_networks.py:191
Method__repr__
(self)
models/stylegan_networks.py:229
Method__repr__
(self)
models/stylegan_networks.py:297
Method_cosine_simililarity
(self, x, y)
models/patchnce.py:27
Functioncal_gradient_penalty
Calculate the gradient penalty loss, used in WGAN-GP paper https://arxiv.org/abs/1704.00028 Arguments: netD (network) -- dis
models/networks.py:423
Functioncopyconf
(default_opt, **kwargs)
util/util.py:24
Functioncorrect_resize
(t, size, mode=Image.BICUBIC)
util/util.py:157
Functioncorrect_resize_label
(t, size)
util/util.py:143
Methoddata_dependent_initialize
The feature network netF is defined in terms of the shape of the intermediate, extracted features of the encoder portion of netG. Bec
models/simdcl_model.py:124
Methoddata_dependent_initialize
(self, data)
models/base_model.py:109
Methoddata_dependent_initialize
The feature network netF is defined in terms of the shape of the intermediate, extracted features of the encoder portion of netG. Bec
models/cut_model.py:84
Methoddata_dependent_initialize
The feature network netF is defined in terms of the shape of the intermediate, extracted features of the encoder portion of netG. Bec
models/fastcut_model.py:88
Functiondefault_loader
(path)
data/image_folder.py:36
Functiondefine_D
Create a discriminator Parameters: input_nc (int) -- the number of channels in input images ndf (int) -- the number
models/networks.py:289
Functiondefine_F
(input_nc, netF, norm='batch', use_dropout=False, init_type='normal', init_gain=0.02, no_antialias=False, gpu_
models/networks.py:271
Functiondefine_G
Create a generator Parameters: input_nc (int) -- the number of channels in input images output_nc (int) -- the number of channels
models/networks.py:218
Functiondiagnose_network
Calculate and print the mean of average absolute(gradients) Parameters: net (torch network) -- Torch network name (str) -- the na
util/util.py:65
Methoddict_grad_hook_factory
(add_func=lambda x: x)
models/base_model.py:47
Functionfind_class_in_module
(target_cls_name, module)
util/util.py:31
Methodforward
(self, feat_q, feat_k)
models/patchnce.py:34
Methodforward
(self, feat_q, feat_k)
models/patchnce.py:60
Methodforward
(self, inp)
models/networks.py:53
Methodforward
(self, x)
models/networks.py:69
Methodforward
(self, inp)
models/networks.py:88
Methodforward
(self, x)
models/networks.py:109
Methodforward
(self, x)
models/networks.py:466
Methodforward
(self, x)
models/networks.py:479
Methodforward
(self, x)
models/networks.py:490
Methodforward
(self, x)
models/networks.py:513
Methodforward
(self, x, use_instance_norm=False)
models/networks.py:551
Methodforward
(self, feats, num_patches=64, patch_ids=None)
models/networks.py:588
Methodforward
(self, image, style=None, nce_layers=[], encode_only=False)
models/networks.py:633
Methodforward
(self, x)
models/networks.py:682
Methodforward
(self, x, nce_layers=[], encode_only=False)
models/networks.py:707
Methodforward
(self, x, y=None)
models/networks.py:737
Methodforward
(self, x, y=None)
models/networks.py:768
Methodforward
(self, x)
models/networks.py:787
Methodforward
(self, x)
models/networks.py:810
Methodforward
(self, x)
models/networks.py:862
Methodforward
(self, x)
models/networks.py:907
Methodforward
(self, x)
models/networks.py:931
Methodforward
(self, input, layers=[], encode_only=False)
models/networks.py:1015
Methodforward
Standard forward
models/networks.py:1093
Methodforward
Standard forward
models/networks.py:1146
Methodforward
Forward function (with skip connections)
models/networks.py:1205
Methodforward
Standard forward
models/networks.py:1238
Methodforward
(self, x)
models/networks.py:1306
Methodforward
Standard forward.
models/networks.py:1366
Methodforward
Standard forward.
models/networks.py:1398
Methodforward
(self, input)
models/networks.py:1409
Methodforward
(self, x)
models/networks.py:1424
Methodforward
(self, input)
models/stylegan_networks.py:28
Methodforward
(self, input)
models/stylegan_networks.py:82
Methodforward
(self, input)
models/stylegan_networks.py:112
Methodforward
(self, input)
models/stylegan_networks.py:133
Methodforward
(self, input)
models/stylegan_networks.py:178
Methodforward
(self, input)
models/stylegan_networks.py:217
Methodforward
(self, input)
models/stylegan_networks.py:241
Methodforward
(self, input, style)
models/stylegan_networks.py:303
Methodforward
(self, image, noise=None)
models/stylegan_networks.py:356
Methodforward
(self, input)
models/stylegan_networks.py:370
Methodforward
(self, input, style=None, noise=None)
models/stylegan_networks.py:407
Methodforward
(self, input, style, skip=None)
models/stylegan_networks.py:427
Methodforward
( self, styles, return_latents=False, inject_index=None, truncation=1,
models/stylegan_networks.py:547
Methodforward
(self, input)
models/stylegan_networks.py:685
Methodforward
(self, input, get_minibatch_features=False)
models/stylegan_networks.py:752
Methodforward
(self, input)
models/stylegan_networks.py:787
Methodforward
(self, input, layers=[], get_features=False)
models/stylegan_networks.py:834
Methodforward
(self, input)
models/stylegan_networks.py:893
Methodforward
(self, input, layers=[], encode_only=False)
models/stylegan_networks.py:904
Methodgenerate_visuals_for_evaluation
(self, data, mode)
models/dcl_model.py:259
Methodgenerate_visuals_for_evaluation
(self, data, mode)
models/simdcl_model.py:289
Methodgenerate_visuals_for_evaluation
(self, data, mode)
models/base_model.py:257
Methodget_latent
(self, input)
models/stylegan_networks.py:544
Functionget_option_setter
Return the static method <modify_commandline_options> of the dataset class.
data/__init__.py:41
Functionget_option_setter
Return the static method <modify_commandline_options> of the model class.
models/__init__.py:48
Functionget_params
(opt, size)
data/base_dataset.py:64
Functionget_scheduler
Return a learning rate scheduler Parameters: optimizer -- the optimizer of the network opt (option class) -- stores all
models/networks.py:134
Methodgrad_hook
(grad)
models/base_model.py:51
Methodhook_gen
(name)
models/base_model.py:50
Functioninit_func
(m)
models/networks.py:174
Methodinitialize
(self, parser)
options/train_options.py:10
Methodinitialize
(self, parser)
options/test_options.py:10
Functionlambda_rule
(epoch)
models/networks.py:148
Methodmake_noise
(self)
models/stylegan_networks.py:525
Methodmean_latent
(self, n_latent)
models/stylegan_networks.py:536
Functionmkdirs
create empty directories if they don't exist Parameters: paths (str list) -- a list of directory paths
util/util.py:120
Methodmodify_commandline_options
Add new dataset-specific options, and rewrite default values for existing options. Parameters: parser -- original option
data/base_dataset.py:34
Methodmodify_commandline_options
Add new dataset-specific options, and rewrite default values for existing options. Parameters: parser -- original option
data/template_dataset.py:22
Methodmodify_commandline_options
Configures options specific for DCLGAN
models/dcl_model.py:16
Methodmodify_commandline_options
Configures options specific for SIMDCL.
models/simdcl_model.py:17
Methodmodify_commandline_options
Add new dataset-specific options, and rewrite default values for existing options. Parameters: parser -- original optio
models/cycle_gan_model.py:18
Methodmodify_commandline_options
Add new model-specific options, and rewrite default values for existing options. Parameters: parser -- original option p
models/base_model.py:58
Methodmodify_commandline_options
Configures options specific for CUT model
models/cut_model.py:19
Methodmodify_commandline_options
Add new model-specific options and rewrite default values for existing options. Parameters: parser -- the option parser
models/template_model.py:25
← previousnext →201–300 of 313, ranked by callers