Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/csguoh/AdaptIR
/ functions
Functions
266 in github.com/csguoh/AdaptIR
⨍
Functions
266
◇
Types & classes
49
Method
forward
(self, x, x_size)
net/edt.py:590
Method
forward
(self, x)
net/edt.py:629
Method
forward
(self, x, x_size)
net/edt.py:667
Method
forward
(self, x)
net/edt.py:869
Method
forward
(self,x)
net/edt.py:976
Method
forward
(self,x)
net/edt.py:1100
Method
forward
(self,x)
net/edt.py:1119
Method
forward
(self,x)
net/edt.py:1180
Method
forward
(self, x)
net/common.py:57
Method
get_lr
(self)
utils/schedulers.py:39
Method
get_lr
(self)
utils/schedulers.py:70
Method
get_lr
(self)
utils/schedulers.py:93
Method
get_lr
(self)
utils/schedulers.py:176
Method
get_lr
(self)
utils/schedulers.py:223
Method
get_lr
Compute learning rate using chainable form of the scheduler.
utils/schedulers.py:295
Function
get_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
Method
hold
(self)
utils/val_utils.py:89
Function
images_to_video
(images_dir, name, gray=True)
utils/image_io.py:170
Function
init_random_seed
(seed=0)
utils/common.py:41
Function
init_weights
(net, init_type='normal')
utils/image_utils.py:230
Function
lanczos2
(x)
utils/imresize.py:210
Function
lanczos3
(x)
utils/imresize.py:220
Function
linear
(x)
utils/imresize.py:226
Function
linear_warmup_decay
Linear warmup for warmup_steps, optionally with cosine annealing or linear decay to 0 at total_steps.
utils/schedulers.py:350
Method
lr_scheduler_step
(self,scheduler,metric)
train.py:67
Method
lr_scheduler_step
(self,scheduler,metric)
test.py:49
Function
median
assumes C x W x H [0..1] :param img_np_list: :return:
utils/image_io.py:343
Function
mkdir
(path)
utils/common.py:16
Method
no_weight_decay
(self)
net/edt.py:847
Method
no_weight_decay_keywords
(self)
net/edt.py:851
Function
np_imresize
(im, scale_factor=None, output_shape=None, kernel=None, antialiasing=True, kernel_shift_flag=False)
utils/imresize.py:230
Function
np_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
Function
plot_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
Function
prepare_gt
loads makes it divisible :param file_name: :return: the numpy representation of the image
utils/image_io.py:275
Function
prepare_gt_img
(file_name, SOTS=True)
utils/image_io.py:20
Function
prepare_hazy_image
(file_name)
utils/image_io.py:15
Method
release
(self)
utils/val_utils.py:92
Method
reset
(self)
utils/val_utils.py:98
Function
rgb2ycbcr
same as matlab rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
utils/common.py:152
Function
save_graph
(name, graph_list, output_path="output/")
utils/image_io.py:191
Function
save_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
Function
save_heatmap
(name, image_np)
utils/image_io.py:183
Function
save_image_np
(name, image_np, output_path="output/")
utils/image_io.py:152
Function
save_image_tensor
(image_tensor, output_path="output/")
utils/image_io.py:157
Function
scandir
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
Method
set_scale
(self, s)
utils/dataset_utils.py:443
Function
setup_logger
(logger_name, save_dir, phase, level=logging.INFO, screen=False, to_file=False)
utils/common.py:25
Function
slice_image2patches
(image, patch_size=64, overlap=0)
utils/image_utils.py:68
Function
splice_patches2image
(patches, image_size, overlap=0)
utils/image_utils.py:83
Function
tensor2img
(tensor, out_type=np.uint8, min_max=(0, 1))
utils/common.py:58
Function
tensor2img
(tensor, out_type=np.uint8, min_max=(0, 1))
net/edt.py:14
Function
tensor_to_image
(tensor)
net/ipt.py:35
Function
test_hybrid_degradation
(net,dataset,scale)
test.py:124
Method
tile_degrad
(input_, tile=128, tile_overlap=0)
utils/dataset_utils.py:346
Function
torch_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
Method
training_step
(self, batch, batch_idx)
train.py:48
Method
training_step
(self, batch, batch_idx)
test.py:41
Method
update
(self, msg='In progress...')
utils/common.py:291
Function
video_to_images
(file_name, name)
utils/image_io.py:164
Function
weights_init_kaiming
(m)
utils/image_utils.py:207
Function
weights_init_normal
(m)
utils/image_utils.py:185
Function
weights_init_normal_
(m)
utils/image_utils.py:174
Function
weights_init_orthogonal
(m)
utils/image_utils.py:218
Function
weights_init_xavier
(m)
utils/image_utils.py:196
Function
ycbcr2rgb
same as matlab ycbcr2rgb Input: uint8, [0, 255] float, [0, 1]
utils/common.py:200
Function
ycbcr2rgb
same as matlab ycbcr2rgb Input: uint8, [0, 255] float, [0, 1]
utils/val_utils.py:208
← previous
201–266 of 266, ranked by callers