MCPcopy Create free account

hub / github.com/csguoh/AdaptIR / functions

Functions266 in github.com/csguoh/AdaptIR

Methodforward
(self, x, x_size)
net/edt.py:590
Methodforward
(self, x)
net/edt.py:629
Methodforward
(self, x, x_size)
net/edt.py:667
Methodforward
(self, x)
net/edt.py:869
Methodforward
(self,x)
net/edt.py:976
Methodforward
(self,x)
net/edt.py:1100
Methodforward
(self,x)
net/edt.py:1119
Methodforward
(self,x)
net/edt.py:1180
Methodforward
(self, x)
net/common.py:57
Methodget_lr
(self)
utils/schedulers.py:39
Methodget_lr
(self)
utils/schedulers.py:70
Methodget_lr
(self)
utils/schedulers.py:93
Methodget_lr
(self)
utils/schedulers.py:176
Methodget_lr
(self)
utils/schedulers.py:223
Methodget_lr
Compute learning rate using chainable form of the scheduler.
utils/schedulers.py:295
Functionget_params
Returns parameters that we want to optimize over. :param opt_over: comma separated list, e.g. "net,input" or "net" :param net: network
utils/image_io.py:85
Methodhold
(self)
utils/val_utils.py:89
Functionimages_to_video
(images_dir, name, gray=True)
utils/image_io.py:170
Functioninit_random_seed
(seed=0)
utils/common.py:41
Functioninit_weights
(net, init_type='normal')
utils/image_utils.py:230
Functionlanczos2
(x)
utils/imresize.py:210
Functionlanczos3
(x)
utils/imresize.py:220
Functionlinear
(x)
utils/imresize.py:226
Functionlinear_warmup_decay
Linear warmup for warmup_steps, optionally with cosine annealing or linear decay to 0 at total_steps.
utils/schedulers.py:350
Methodlr_scheduler_step
(self,scheduler,metric)
train.py:67
Methodlr_scheduler_step
(self,scheduler,metric)
test.py:49
Functionmedian
assumes C x W x H [0..1] :param img_np_list: :return:
utils/image_io.py:343
Functionmkdir
(path)
utils/common.py:16
Methodno_weight_decay
(self)
net/edt.py:847
Methodno_weight_decay_keywords
(self)
net/edt.py:851
Functionnp_imresize
(im, scale_factor=None, output_shape=None, kernel=None, antialiasing=True, kernel_shift_flag=False)
utils/imresize.py:230
Functionnp_to_torch
Converts image in numpy.array to torch.Tensor. From C x W x H [0..1] to C x W x H [0..1] :param img_np: :return:
utils/image_utils.py:244
Functionplot_image_grid
Draws images in a grid Args: images_np: list of images, each image is np.array of size 3xHxW or 1xHxW nrow: how many images
utils/image_io.py:127
Functionprepare_gt
loads makes it divisible :param file_name: :return: the numpy representation of the image
utils/image_io.py:275
Functionprepare_gt_img
(file_name, SOTS=True)
utils/image_io.py:20
Functionprepare_hazy_image
(file_name)
utils/image_io.py:15
Methodrelease
(self)
utils/val_utils.py:92
Methodreset
(self)
utils/val_utils.py:98
Functionrgb2ycbcr
same as matlab rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
utils/common.py:152
Functionsave_graph
(name, graph_list, output_path="output/")
utils/image_io.py:191
Functionsave_graphs
:param name: :param dict graph_dict: a dict from the name of the list to the list itself. :return:
utils/image_io.py:225
Functionsave_heatmap
(name, image_np)
utils/image_io.py:183
Functionsave_image_np
(name, image_np, output_path="output/")
utils/image_io.py:152
Functionsave_image_tensor
(image_tensor, output_path="output/")
utils/image_io.py:157
Functionscandir
Scan a directory to find the interested files. Args: dir_path (str): Path of the directory. suffix (str | tuple(str), optional):
utils/common.py:310
Methodset_scale
(self, s)
utils/dataset_utils.py:443
Functionsetup_logger
(logger_name, save_dir, phase, level=logging.INFO, screen=False, to_file=False)
utils/common.py:25
Functionslice_image2patches
(image, patch_size=64, overlap=0)
utils/image_utils.py:68
Functionsplice_patches2image
(patches, image_size, overlap=0)
utils/image_utils.py:83
Functiontensor2img
(tensor, out_type=np.uint8, min_max=(0, 1))
utils/common.py:58
Functiontensor2img
(tensor, out_type=np.uint8, min_max=(0, 1))
net/edt.py:14
Functiontensor_to_image
(tensor)
net/ipt.py:35
Functiontest_hybrid_degradation
(net,dataset,scale)
test.py:124
Methodtile_degrad
(input_, tile=128, tile_overlap=0)
utils/dataset_utils.py:346
Functiontorch_to_np
Converts an image in torch.Tensor format to np.array. From 1 x C x W x H [0..1] to C x W x H [0..1] :param img_var: :return:
utils/image_utils.py:256
Methodtraining_step
(self, batch, batch_idx)
train.py:48
Methodtraining_step
(self, batch, batch_idx)
test.py:41
Methodupdate
(self, msg='In progress...')
utils/common.py:291
Functionvideo_to_images
(file_name, name)
utils/image_io.py:164
Functionweights_init_kaiming
(m)
utils/image_utils.py:207
Functionweights_init_normal
(m)
utils/image_utils.py:185
Functionweights_init_normal_
(m)
utils/image_utils.py:174
Functionweights_init_orthogonal
(m)
utils/image_utils.py:218
Functionweights_init_xavier
(m)
utils/image_utils.py:196
Functionycbcr2rgb
same as matlab ycbcr2rgb Input: uint8, [0, 255] float, [0, 1]
utils/common.py:200
Functionycbcr2rgb
same as matlab ycbcr2rgb Input: uint8, [0, 255] float, [0, 1]
utils/val_utils.py:208
← previous201–266 of 266, ranked by callers