MCPcopy Create free account

hub / github.com/cidautai/DarkIR / functions

Functions170 in github.com/cidautai/DarkIR

↓ 14 callersMethod__init__
(self, loss_weight=1.0, data_range = 1.)
losses/loss.py:425
↓ 14 callersFunctioncheck_paths
check if all the image routes are correct
data/dataset_reader/utils.py:45
↓ 9 callersMethodpad
(self, img)
data/dataset_reader/datapipeline.py:46
↓ 7 callersMethod__init__
( self, dim, dim_head=64, heads=8, num_blocks=2,
archs/retinexformer.py:204
↓ 7 callersFunctionflatten_list_comprehension
(matrix)
data/dataset_reader/utils.py:42
↓ 6 callersFunctionparse
Creates a dictionary from the config yaml file.
options/options.py:27
↓ 4 callersMethod__init__
(self, nc, expand = 2)
archs/arch_model.py:38
↓ 4 callersFunctioncleanup
()
utils/test_utils.py:19
↓ 4 callersFunctioncreate_model
Creates the model. opt: a dictionary from the yaml config key network
archs/__init__.py:8
↓ 4 callersFunctioncreate_one_grid
A function to create a grid of images to log in wandb.
utils/utils.py:26
↓ 4 callersFunctionl1_loss
(pred, target)
losses/loss.py:18
↓ 4 callersFunctionsetup
(rank, world_size, Master_port = '12355')
utils/test_utils.py:14
↓ 3 callersFunctionSSIM_loss
(pred_img, real_img, data_range)
losses/loss.py:420
↓ 3 callersFunctionmse_loss
(pred, target)
losses/loss.py:23
↓ 3 callersFunctionreduce_tensor
(tensor, world_size)
utils/test_utils.py:22
↓ 2 callersMethodconv_gauss
(self, img)
losses/loss.py:400
↓ 2 callersFunctioncreate_test_data
opt: a dictionary from the yaml config key datasets
data/__init__.py:12
↓ 2 callersFunctioneval_one_loader
(model, test_loader, metrics, rank=0, world_size = 1, eta = False)
utils/test_utils.py:41
↓ 2 callersFunctioneval_one_loader_two_models
(model1, model2, test_loader, metrics, devices = ['cuda:0', 'cuda:1'], eta = False)
utils/test_utils.py:103
↓ 2 callersMethodget_fft_amplitude
(self, inp)
losses/loss.py:149
↓ 2 callersMethodlaplacian_kernel
(self, current)
losses/loss.py:405
↓ 2 callersFunctionmain_dataset_all_lol
(rank = 1, test_path='../../data/datasets/', batch_size_test=1, verbose=False, num_work
data/dataset_reader/dataset_all_LOL.py:13
↓ 2 callersFunctionmain_dataset_dicm
(rank = 1, test_path='../../data/datasets/DICM', batch_size_
data/dataset_reader/dataset_dicm.py:14
↓ 2 callersFunctionmain_dataset_exdark
(rank = 1, test_path='../../data/datasets/ExDark', batch_siz
data/dataset_reader/dataset_exdark.py:14
↓ 2 callersFunctionmain_dataset_lime
(rank = 1, test_path='../../data/datasets/LIME', batch_size_
data/dataset_reader/dataset_lime.py:14
↓ 2 callersFunctionmain_dataset_lolblur
(rank = 1, test_path='../../data/datasets/LOLBlur/test', bat
data/dataset_reader/dataset_LOLBlur.py:14
↓ 2 callersFunctionmain_dataset_mef
(rank = 1, test_path='../../data/datasets/MEF', batch_size_t
data/dataset_reader/dataset_mef.py:14
↓ 2 callersFunctionmain_dataset_npe
(rank = 1, test_path='../../data/datasets/NPE', batch_size_t
data/dataset_reader/dataset_npe.py:14
↓ 2 callersFunctionmain_dataset_real_LSRW
(rank = 1, test_path='../../data/datasets', batch_size_test=1, verbose=False, num_worke
data/dataset_reader/dataset_real_LSRW.py:13
↓ 2 callersFunctionmain_dataset_realblur_night
(rank = 1, test_path='../../data/datasets/RealBlur-Night', b
data/dataset_reader/dataset_realblur_night.py:14
↓ 2 callersFunctionmain_dataset_vv
(rank = 1, test_path='../../data/datasets/VV', batch_size_te
data/dataset_reader/dataset_vv.py:14
↓ 2 callersFunctionnorm_cdf
(x)
archs/retinexformer.py:13
↓ 2 callersMethodpad
(self, img)
data/dataset_reader/datapipeline.py:88
↓ 2 callersFunctiontrunc_normal_
(tensor, mean=0., std=1., a=-2., b=2.)
archs/retinexformer.py:31
↓ 1 callersFunctionOrderedYaml
yaml orderedDict support
options/options.py:10
↓ 1 callersMethod__init__
(self, channels, eps=1e-6)
archs/arch_util.py:37
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
archs/retinexformer.py:12
↓ 1 callersFunctionapply_model
Apply the inference over each specific frame. If resize = True, resizes before inference.
inference_video.py:103
↓ 1 callersFunctionarray_to_tensor
Transform from numpy array [H,W,C] to torch tensor [B,C,H,W]
inference_video.py:40
↓ 1 callersFunctioncharbonnier_loss
(pred, target, eps=1e-12)
losses/loss.py:32
↓ 1 callersMethodcheck_image_size
(self, x)
archs/DarkIR.py:109
↓ 1 callersMethodcheck_image_size
(self, x)
archs/retinexformer.py:367
↓ 1 callersFunctioncreate_losses
(list_of_losses = ['musiq', 'niqe', 'nrqm', 'brisque'], rank=0)
testing_unpaired.py:57
↓ 1 callersFunctioncreate_path_models
Creates a set of paths to save the model based on the config file.
utils/utils.py:101
↓ 1 callersFunctioneval_model
This function runs over the multiple test loaders and returns the whole metrics.
utils/test_utils.py:81
↓ 1 callersMethodget_params
(self, img, output_size)
data/dataset_reader/datapipeline.py:75
↓ 1 callersFunctionload_model
(model, path_weights)
testing.py:35
↓ 1 callersFunctionload_model
Load the weights of the model.
inference_video.py:87
↓ 1 callersFunctionload_model
(model, path_weights)
inference.py:69
↓ 1 callersFunctionload_model
(rank, model, path_weights)
testing_unpaired.py:44
↓ 1 callersFunctionload_optim
Loads the values of the optimizer picking only the weights that are in the new model.
archs/__init__.py:69
↓ 1 callersFunctionload_weights
Loads the weights of a pretrained model, picking only the weights that are in the new model.
archs/__init__.py:58
↓ 1 callersFunctionmain
()
testing.py:79
↓ 1 callersFunctionmain
()
inference_video.py:186
↓ 1 callersFunctionmain
()
inference.py:141
↓ 1 callersFunctionmain
()
testing_unpaired.py:127
↓ 1 callersFunctionnormalize_tensor
Normalize tensor to the range [0,1]
inference_video.py:57
↓ 1 callersFunctionpad_tensor
Pad the tensor to be multiple of some number (its size).
inference_video.py:76
↓ 1 callersFunctionpad_tensor
pad the tensor to be multiple of some number
inference.py:59
↓ 1 callersFunctionpad_tensor
Pad the tensor to be multiple of some number (its size).
testing_unpaired.py:32
↓ 1 callersFunctionpath_to_tensor
(path)
inference.py:40
↓ 1 callersFunctionpsnr_loss
(pred, target)
losses/loss.py:36
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are 'none', 'mean' and 'sum'.
losses/loss_utils.py:5
↓ 1 callersFunctionsave_tensor
(tensor, path)
inference.py:52
↓ 1 callersFunctiontensor_to_array
Transform from torch tensor [B,C,H,W] to numpy array [H,W,C].
inference_video.py:48
↓ 1 callersFunctionvariance_scaling_
(tensor, scale=1.0, mode='fan_in', distribution='normal')
archs/retinexformer.py:36
↓ 1 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights. Default
losses/loss_utils.py:25
Method__call__
(self, img1, img2)
data/dataset_reader/datapipeline.py:64
Method__getitem__
Given a (random) index. The dataloader selects the corresponding image path, and loads the image. Then it returns the image, after ap
data/dataset_reader/datapipeline.py:129
Method__init__
(self, *args)
archs/arch_util.py:52
Method__init__
(self, img_channel=3, width=32, middle_blk_num_enc=2, mid
archs/DarkIR.py:13
Method__init__
(self, dim, fn)
archs/retinexformer.py:61
Method__init__
( self, n_fea_middle, n_fea_in=4, n_fea_out=3)
archs/retinexformer.py:96
Method__init__
( self, dim, dim_head=64, heads=8, )
archs/retinexformer.py:126
Method__init__
(self, dim, mult=4)
archs/retinexformer.py:183
Method__init__
(self, in_dim=3, out_dim=3, dim=31, level=2, num_blocks=[2, 4, 4])
archs/retinexformer.py:234
Method__init__
(self, in_channels=3, out_channels=3, n_feat=31, level=2, num_blocks=[1, 1, 1])
archs/retinexformer.py:325
Method__init__
(self, in_channels=3, out_channels=3, n_feat=40, stage=1, num_blocks=[1,2,2])
archs/retinexformer.py:344
Method__init__
(self, c, ffn_channel = None)
archs/arch_model.py:19
Method__init__
(self, c, DW_Expand, dilation = 1)
archs/arch_model.py:61
Method__init__
(self, c, DW_Expand=2, FFN_Expand=2, dilations = [1], extra_depth_wise = False)
archs/arch_model.py:77
Method__init__
(self, c, DW_Expand=2, dilations = [1], extra_depth_wise = False)
archs/arch_model.py:146
Method__init__
(self)
data/dataset_reader/datapipeline.py:27
Method__init__
(self, size)
data/dataset_reader/datapipeline.py:58
Method__init__
- images_high: list of RGB images of normal-light used for training or testing the model - images_low: list of RGB images of low-ligh
data/dataset_reader/datapipeline.py:101
Method__init__
(self, loss_weight=1.0)
losses/loss.py:43
Method__init__
(self, loss_weight=1.0, reduction='mean')
losses/loss.py:66
Method__init__
(self, loss_weight=1.0, reduction='mean')
losses/loss.py:96
Method__init__
(self, loss_weight = 0.01, criterion ='l2', reduction = 'mean')
losses/loss.py:121
Method__init__
(self, loss_weight=1.0, reduction='mean', eps=1e-12)
losses/loss.py:170
Method__init__
(self, requires_grad=False)
losses/loss.py:319
Method__init__
(self, loss_weight=1.0, criterion = 'l1', reduction='mean')
losses/loss.py:352
Method__init__
(self, rank, loss_weight=1.0, criterion = 'l2',reduction='mean')
losses/loss.py:380
Method__init__
(self, loss_weight=1.0, data_range = 1.)
losses/loss.py:434
Method__init__
(self)
losses/loss.py:454
Method__init__
(self, loss_weight=1.0, gamma1 = 0.4, gamma2 = 0.2, gamma3 = 0.2, gamma4 = 0.2)
losses/loss.py:466
Method__init__
(self, loss_weight=1.0, gamma1 = 0.5, gamma2 = 0.3, gamma3 = 0.2)
losses/loss.py:480
Method__init__
(self, loss_weight=1.0, gamma1 = 1.0)
losses/loss.py:493
Method__init__
(self, loss_weight=1.0, criterion = 'l1', reduction='mean')
losses/loss.py:508
Method__len__
(self)
data/dataset_reader/datapipeline.py:126
next →1–100 of 170, ranked by callers