Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chenhaoxing/HDNet
/ functions
Functions
124 in github.com/chenhaoxing/HDNet
⨍
Functions
124
◇
Types & classes
22
Method
get_image_paths
Return image paths that are used to load current data
models/base_model.py:111
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:63
Function
get_scheduler
Return a learning rate scheduler Parameters: optimizer -- the optimizer of the network opt (option class) -- stores all
models/networks.py:64
Function
init_func
(m)
models/networks.py:112
Method
initialize
(self, parser)
options/train_options.py:10
Function
lambda_rule
(epoch)
models/networks.py:78
Function
mkdirs
create empty directories if they don't exist Parameters: paths (str list) -- a list of directory paths
util/util.py:83
Method
modify_commandline_options
Add new dataset-specific options, and rewrite default values for existing options. Parameters: parser -- original option
data/base_dataset.py:33
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:46
Method
optimize_parameters
(self)
models/hdnet_model.py:59
Function
parse_args
()
util/config.py:52
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:67
Method
processImage
(self, x, mask, background=None)
models/networks.py:327
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
remove_spectral_norm
r"""Removes the spectral normalization reparameterization from a module. Args: module (Module): containing module name (str, optio
util/spectral_norm.py:249
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:49
Method
set_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
Method
set_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
Function
setup_seed
(seed)
train_evaluate.py:16
Function
spectral_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
Method
symbolic
(g, x, kernel, groups)
models/drconv.py:35
Function
target_decay
(epoch)
models/networks.py:83
Function
tensor2im
Converts a Tensor array into a numpy image array. Parameters: input_image (tensor) -- the input image tensor array imtype (type)
util/util.py:9
← previous
101–124 of 124, ranked by callers