MCPcopy Create free account

hub / github.com/cidautai/DarkIR / functions

Functions170 in github.com/cidautai/DarkIR

Method_init_weights
(self, m)
archs/retinexformer.py:278
Methodbackward
(ctx, grad_output)
archs/arch_util.py:22
Functioncalculate_loss
Returns the calculated values of the losses for optimization. outsize_batch: if None it doen't apply the enhance loss
losses/__init__.py:54
Functioncommon_member
Returns true if the two lists (valid and training) have a common element.
data/dataset_reader/utils.py:15
Functionconv
(in_channels, out_channels, kernel_size, bias=False, padding=1, stride=1)
archs/retinexformer.py:76
Functioncreate_grid
A function to create all the grids of images to log in wandb. images: A dictionary of images
utils/utils.py:42
Functioncreate_loss
Returns the needed losses for evaluating our model
losses/__init__.py:3
Functioncreate_optim_scheduler
Returns the optim and its scheduler. opt: a dictionary of the yaml config file with the train key
archs/__init__.py:41
Functioncreate_path
Util function to add the file path of all the images to the list of names of the selected images that will form the valid ones.
data/dataset_reader/utils.py:4
Functioncrop_center
Given an image, it returns a center cropped version of size [cropx,cropy]
data/dataset_reader/datapipeline.py:14
Functiondict_constructor
(loader, node)
options/options.py:17
Functiondict_representer
(dumper, data)
options/options.py:14
Functioneval_model_two_models
This function runs over the multiple test loaders and returns the whole metrics.
utils/test_utils.py:146
Functioneval_unpaired
(rank, world_size)
testing_unpaired.py:66
Functionfind_different_keys
(dict1, dict2)
archs/__init__.py:102
Methodforward
(ctx, x, weight, bias, eps)
archs/arch_util.py:11
Methodforward
(self, x)
archs/arch_util.py:43
Methodforward
(self, x, use_adapter=False)
archs/arch_util.py:56
Methodforward
(self, input, side_loss = False, use_adapter = None)
archs/DarkIR.py:74
Methodforward
(self, x, *args, **kwargs)
archs/retinexformer.py:66
Methodforward
(self, x)
archs/retinexformer.py:72
Methodforward
(self, img)
archs/retinexformer.py:107
Methodforward
x_in: [b,h,w,c] # input_feature illu_fea: [b,h,w,c] # mask shift? 为什么是 b, h, w, c? return out: [b,h,w,c]
archs/retinexformer.py:147
Methodforward
x: [b,h,w,c] return out: [b,h,w,c]
archs/retinexformer.py:194
Methodforward
x: [b,c,h,w] illu_fea: [b,c,h,w] return out: [b,c,h,w]
archs/retinexformer.py:219
Methodforward
x: [b,c,h,w] x是feature, 不是image illu_fea: [b,c,h,w] return out: [b,c,h,w]
archs/retinexformer.py:287
Methodforward
(self, img)
archs/retinexformer.py:330
Methodforward
x: [b,c,h,w] return out:[b,c,h,w]
archs/retinexformer.py:355
Methodforward
(self, x)
archs/arch_model.py:13
Methodforward
(self, input)
archs/arch_model.py:29
Methodforward
(self, x)
archs/arch_model.py:45
Methodforward
(self, input)
archs/arch_model.py:69
Methodforward
(self, inp, adapter = None)
archs/arch_model.py:116
Methodforward
(self, inp)
archs/arch_model.py:182
Methodforward
(self, img1, img2)
data/dataset_reader/datapipeline.py:31
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
losses/loss.py:47
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
losses/loss.py:75
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
losses/loss.py:105
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
losses/loss.py:136
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
losses/loss.py:180
Methodforward
(self, X)
losses/loss.py:341
Methodforward
(self, x, y)
losses/loss.py:370
Methodforward
(self, x, y)
losses/loss.py:414
Methodforward
(self, pred, target, **kwargs)
losses/loss.py:430
Methodforward
(self, pred, target, **kwargs)
losses/loss.py:439
Methodforward
(self, X, Y)
losses/loss.py:458
Methodforward
(self, X, Y)
losses/loss.py:474
Methodforward
(self, X, Y)
losses/loss.py:487
Methodforward
(self, X, Y)
losses/loss.py:498
Methodforward
(self, gt, enhanced, scale_factor = 16)
losses/loss.py:526
Functioninference_video
Inferences the video frames and constructs a new video. The result video is a composition of the original and the process ones.
inference_video.py:127
Functioninit_wandb
Initiates wandb if needed. opt: a dictionary from the yaml config
utils/utils.py:6
Functionlecun_normal_
(tensor)
archs/retinexformer.py:56
Functionload_img
(filename)
app.py:42
Functionlog_mse_loss
(pred, target)
losses/loss.py:27
Functionlogging_dict
Creates a logging dict to log results in wandb.
utils/utils.py:62
Functionnormalize_tensor
(tensor)
inference.py:45
Functionnumber_common_keys
(dict1, dict2)
archs/__init__.py:109
Functionpredict_folder
(rank, world_size)
inference.py:87
Functionprocess_img
(image)
app.py:47
Functionrandom_sort_pairs
This function makes the same random sort to each list, so that they are sorted and the pairs are maintained.
data/dataset_reader/utils.py:27
Functionresume_model
Returns the loaded weights of model and optimizer if resume flag is True
archs/__init__.py:78
Functionrun_evaluation
(rank, world_size)
testing.py:52
Functionsave_checkpoint
Save the .pt of the model after each epoch.
archs/__init__.py:193
Functionsave_model
(model, path)
utils/test_utils.py:28
Functionsave_tensor
Save tensor as PIL image.
inference_video.py:66
Functionshift_back
(inputs, step=2)
archs/retinexformer.py:83
Functionshuffle_sampler
A function that shuffles all the Distributed samplers in the loaders.
utils/test_utils.py:32
Functionweighted_loss
Create a weighted version of a given loss function. To use this decorator, the loss function must have the signature like `loss_func(pred, ta
losses/loss_utils.py:57
Functionwrapper
(pred, target, weight=None, reduction='mean', **kwargs)
losses/loss_utils.py:89
← previous101–170 of 170, ranked by callers