MCPcopy Create free account

hub / github.com/chenhaoxing/HDNet / functions

Functions124 in github.com/chenhaoxing/HDNet

Methodget_image_paths
Return image paths that are used to load current data
models/base_model.py:111
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:63
Functionget_scheduler
Return a learning rate scheduler Parameters: optimizer -- the optimizer of the network opt (option class) -- stores all
models/networks.py:64
Functioninit_func
(m)
models/networks.py:112
Methodinitialize
(self, parser)
options/train_options.py:10
Functionlambda_rule
(epoch)
models/networks.py:78
Functionmkdirs
create empty directories if they don't exist Parameters: paths (str list) -- a list of directory paths
util/util.py:83
Methodmodify_commandline_options
Add new dataset-specific options, and rewrite default values for existing options. Parameters: parser -- original option
data/base_dataset.py:33
Methodmodify_commandline_options
Add new model-specific options, and rewrite default values for existing options. Parameters: parser -- original option p
models/base_model.py:46
Methodoptimize_parameters
(self)
models/hdnet_model.py:59
Functionparse_args
()
util/config.py:52
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:67
MethodprocessImage
(self, x, mask, background=None)
models/networks.py:327
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
Functionremove_spectral_norm
r"""Removes the spectral normalization reparameterization from a module. Args: module (Module): containing module name (str, optio
util/spectral_norm.py:249
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:49
Methodset_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input (dict): include the data itsel
models/hdnet_model.py:33
Methodset_requires_grad
Set requies_grad=Fasle for all the networks to avoid unnecessary computations Parameters: nets (network list) -- a list of netwo
models/base_model.py:217
Functionsetup_seed
(seed)
train_evaluate.py:16
Functionspectral_norm
r"""Applies spectral normalization to a parameter in the given module. .. math:: \mathbf{W}_{SN} = \dfrac{\mathbf{W}}{\sigma(\mathbf{W})},
util/spectral_norm.py:205
Methodsymbolic
(g, x, kernel, groups)
models/drconv.py:35
Functiontarget_decay
(epoch)
models/networks.py:83
Functiontensor2im
Converts a Tensor array into a numpy image array. Parameters: input_image (tensor) -- the input image tensor array imtype (type)
util/util.py:9
← previous101–124 of 124, ranked by callers