Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WeilunWang/NEGCUT
/ functions
Functions
264 in github.com/WeilunWang/NEGCUT
⨍
Functions
264
◇
Types & classes
62
Method
forward
(self, x)
models/feature_extractor.py:44
Method
forward
(self, x)
models/feature_extractor.py:55
Method
forward
(self, x, use_instance_norm=False)
models/feature_extractor.py:92
Method
forward
(self, feats, num_patches=64, patch_ids=None, return_all=False)
models/feature_extractor.py:129
Method
forward
(self, feat_q, feat_k)
models/losses.py:14
Method
forward
(self, feat_q, feat_k, neg_sample=None)
models/losses.py:65
Method
forward
(self, input)
models/stylegan_networks.py:28
Method
forward
(self, input)
models/stylegan_networks.py:82
Method
forward
(self, input)
models/stylegan_networks.py:112
Method
forward
(self, input)
models/stylegan_networks.py:133
Method
forward
(self, input)
models/stylegan_networks.py:178
Method
forward
(self, input)
models/stylegan_networks.py:217
Method
forward
(self, input)
models/stylegan_networks.py:241
Method
forward
(self, input, style)
models/stylegan_networks.py:303
Method
forward
(self, image, noise=None)
models/stylegan_networks.py:356
Method
forward
(self, input)
models/stylegan_networks.py:370
Method
forward
(self, input, style=None, noise=None)
models/stylegan_networks.py:407
Method
forward
(self, input, style, skip=None)
models/stylegan_networks.py:427
Method
forward
( self, styles, return_latents=False, inject_index=None, truncation=1,
models/stylegan_networks.py:547
Method
forward
(self, input)
models/stylegan_networks.py:685
Method
forward
(self, input, get_minibatch_features=False)
models/stylegan_networks.py:752
Method
forward
(self, input)
models/stylegan_networks.py:787
Method
forward
(self, input, layers=[], get_features=False)
models/stylegan_networks.py:834
Method
forward
(self, input)
models/stylegan_networks.py:893
Method
forward
(self, input, layers=[], encode_only=False)
models/stylegan_networks.py:904
Method
forward
(self, input, layers=[], encode_only=False)
models/generator.py:134
Method
forward
Standard forward
models/generator.py:190
Method
forward
(self, x)
models/generator.py:258
Method
generate_visuals_for_evaluation
(self, data, mode)
models/base_model.py:257
Method
get_latent
(self, input)
models/stylegan_networks.py:544
Method
get_negative_samples
(self)
models/cut_model.py:218
Method
get_negative_samples
(self)
models/negcut_model.py:284
Function
get_option_setter
Return the static method <modify_commandline_options> of the dataset class.
data/__init__.py:41
Function
get_option_setter
Return the static method <modify_commandline_options> of the model class.
models/__init__.py:48
Function
get_params
(opt, size)
data/base_dataset.py:64
Method
get_representations
(self)
models/cut_model.py:225
Method
get_representations
(self)
models/negcut_model.py:307
Function
get_scheduler
Return a learning rate scheduler Parameters: optimizer -- the optimizer of the network opt (option class) -- stores all
models/utils.py:97
Method
grad_hook
(grad)
models/base_model.py:51
Method
hook_gen
(name)
models/base_model.py:50
Function
init_func
(m)
models/utils.py:137
Method
initialize
(self, parser)
options/train_options.py:10
Method
initialize
(self, parser)
options/test_options.py:10
Function
lambda_rule
(epoch)
models/utils.py:111
Method
make_noise
(self)
models/stylegan_networks.py:525
Method
mean_latent
(self, n_latent)
models/stylegan_networks.py:536
Function
mkdirs
create empty directories if they don't exist Parameters: paths (str list) -- a list of directory paths
util/util.py:120
Method
modify_commandline_options
Add new dataset-specific options, and rewrite default values for existing options. Parameters: parser -- original option
data/base_dataset.py:34
Method
modify_commandline_options
Add new dataset-specific options, and rewrite default values for existing options. Parameters: parser -- original option
data/template_dataset.py:22
Method
modify_commandline_options
(parser, is_train=True)
models/sinnegcut_model.py:7
Method
modify_commandline_options
Add new model-specific options, and rewrite default values for existing options. Parameters: parser -- original option p
models/base_model.py:58
Method
modify_commandline_options
Configures options specific for CUT model
models/cut_model.py:21
Method
modify_commandline_options
Configures options specific for CUT model
models/negcut_model.py:22
Method
modify_commandline_options
(parser, is_train=True)
models/sincut_model.py:13
Method
modify_commandline_options
Add new model-specific options and rewrite default values for existing options. Parameters: parser -- the option parser
models/template_model.py:25
Method
optimize_parameters
Calculate losses, gradients, and update network weights; called in every training iteration
models/base_model.py:85
Method
optimize_parameters
(self)
models/negcut_model.py:125
Method
optimize_parameters
Update network weights; it will be called in every training iteration.
models/template_model.py:94
Function
print_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
Method
query
Return an image from the pool. Parameters: images: the latest generated images from the generator Returns images from th
util/image_pool.py:23
Function
save_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
Method
set_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
Method
set_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
Function
str2bool
(v)
util/util.py:13
← previous
201–264 of 264, ranked by callers