MCPcopy Create free account

hub / github.com/WeilunWang/NEGCUT / functions

Functions264 in github.com/WeilunWang/NEGCUT

Methodforward
(self, x)
models/feature_extractor.py:44
Methodforward
(self, x)
models/feature_extractor.py:55
Methodforward
(self, x, use_instance_norm=False)
models/feature_extractor.py:92
Methodforward
(self, feats, num_patches=64, patch_ids=None, return_all=False)
models/feature_extractor.py:129
Methodforward
(self, feat_q, feat_k)
models/losses.py:14
Methodforward
(self, feat_q, feat_k, neg_sample=None)
models/losses.py:65
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
Methodforward
(self, input, layers=[], encode_only=False)
models/generator.py:134
Methodforward
Standard forward
models/generator.py:190
Methodforward
(self, x)
models/generator.py:258
Methodgenerate_visuals_for_evaluation
(self, data, mode)
models/base_model.py:257
Methodget_latent
(self, input)
models/stylegan_networks.py:544
Methodget_negative_samples
(self)
models/cut_model.py:218
Methodget_negative_samples
(self)
models/negcut_model.py:284
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
Methodget_representations
(self)
models/cut_model.py:225
Methodget_representations
(self)
models/negcut_model.py:307
Functionget_scheduler
Return a learning rate scheduler Parameters: optimizer -- the optimizer of the network opt (option class) -- stores all
models/utils.py:97
Methodgrad_hook
(grad)
models/base_model.py:51
Methodhook_gen
(name)
models/base_model.py:50
Functioninit_func
(m)
models/utils.py:137
Methodinitialize
(self, parser)
options/train_options.py:10
Methodinitialize
(self, parser)
options/test_options.py:10
Functionlambda_rule
(epoch)
models/utils.py:111
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
(parser, is_train=True)
models/sinnegcut_model.py:7
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:21
Methodmodify_commandline_options
Configures options specific for CUT model
models/negcut_model.py:22
Methodmodify_commandline_options
(parser, is_train=True)
models/sincut_model.py:13
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
Methodoptimize_parameters
Calculate losses, gradients, and update network weights; called in every training iteration
models/base_model.py:85
Methodoptimize_parameters
(self)
models/negcut_model.py:125
Methodoptimize_parameters
Update network weights; it will be called in every training iteration.
models/template_model.py:94
Functionprint_numpy
Print the mean, min, max, median, std, and size of a numpy array Parameters: val (bool) -- if print the values of the numpy array
util/util.py:104
Methodquery
Return an image from the pool. Parameters: images: the latest generated images from the generator Returns images from th
util/image_pool.py:23
Functionsave_image
Save a numpy image to the disk Parameters: image_numpy (numpy array) -- input numpy array image_path (str) -- the path o
util/util.py:84
Methodset_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input (dict): includes the data its
models/base_model.py:71
Methodset_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input: a dictionary that contains t
models/template_model.py:72
Functionstr2bool
(v)
util/util.py:13
← previous201–264 of 264, ranked by callers