MCPcopy Create free account

hub / github.com/HPLQAQ/SAM-Deblur / functions

Functions372 in github.com/HPLQAQ/SAM-Deblur

Methodforward
(self, x)
basicsr/models/archs/restormer_arch.py:54
Methodforward
(self, x)
basicsr/models/archs/restormer_arch.py:68
Methodforward
(self, x)
basicsr/models/archs/restormer_arch.py:88
Methodforward
(self, x)
basicsr/models/archs/restormer_arch.py:111
Methodforward
(self, x)
basicsr/models/archs/restormer_arch.py:146
Methodforward
(self, x)
basicsr/models/archs/restormer_arch.py:162
Methodforward
(self, x)
basicsr/models/archs/restormer_arch.py:178
Methodforward
(self, x)
basicsr/models/archs/restormer_arch.py:188
Methodforward
(self, inp_img)
basicsr/models/archs/restormer_arch.py:245
Methodforward
(self, inp)
basicsr/models/archs/Baseline_arch.py:58
Methodforward
(self, inp)
basicsr/models/archs/Baseline_arch.py:131
Methodforward
(self, inp, masks)
basicsr/models/archs/SegNAFNet_arch.py:127
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
basicsr/models/losses/losses.py:50
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
basicsr/models/losses/losses.py:79
Methodforward
(self, pred, target)
basicsr/models/losses/losses.py:101
Methodfree_dlib_gpu_memory
(self)
basicsr/utils/face_util.py:53
Functiongenerate_frame_indices
Generate an index list for reading `num_frames` frames from a sequence of images. Args: crt_idx (int): Current center index.
basicsr/data/data_util.py:41
Methodget
(self, filepath)
basicsr/utils/file_client.py:20
Methodget
(self, filepath)
basicsr/utils/file_client.py:55
Methodget
(self, filepath)
basicsr/utils/file_client.py:69
Methodget
Get values according to the filepath from one lmdb named client_key. Args: filepath (str | obj:`Path`): Here, filepath is the lmd
basicsr/utils/file_client.py:137
Methodget_face_landmarks_5
(self)
basicsr/utils/face_util.py:95
Methodget_face_landmarks_68
Get 68 densemarks for cropped images. Should only have one face at most in the cropped image.
basicsr/utils/face_util.py:102
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:40
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:71
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:94
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:177
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:24
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:62
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:75
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:152
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:191
Functionimg_rotate
Rotate image. Args: img (ndarray): Image to be rotated. angle (float): Rotation angle in degrees. Positive values mean
basicsr/data/transforms.py:227
Functionimresize
imresize function same as MATLAB. It now only supports bicubic. The same scale applies for both height and width. Args: img (Ten
basicsr/utils/matlab_functions.py:94
Methodinit_dlib
Initialize the dlib detectors and predictors.
basicsr/utils/face_util.py:47
Functionload_patched_inception_v3
(device='cuda', resize_input=True, normalize_input
basicsr/metrics/fid.py:16
Functionmake_layer
Make layers by stacking the same blocks. Args: basic_block (nn.module): nn.module class for basic block. num_basic_block (int): n
basicsr/models/archs/arch_util.py:55
Functionmask_collate_fn
(batch)
basicsr/train.py:96
Functionmaster_only
(func)
basicsr/utils/dist_util.py:82
Functionmeasure_inference_speed
(model, data, max_iter=200, log_interval=50)
basicsr/models/archs/arch_util.py:313
Methodmixup
(self, target, input_)
basicsr/models/image_clean_model.py:31
Methodnext
(self)
basicsr/data/prefetch_dataloader.py:80
Methodnondist_validation
(self, *args, **kwargs)
basicsr/models/image_restoration_model.py:391
Methodoptimize_parameters
(self, current_iter)
basicsr/models/image_clean_model.py:149
Methodoptimize_parameters
(self, current_iter, tb_logger)
basicsr/models/image_restoration_model.py:192
Methodpad_test
(self, window_size)
basicsr/models/image_clean_model.py:175
Functionpadding_with_mask
(img_lq, img_gt, img_mask, gt_size)
basicsr/data/paired_image_group_mask_dataset.py:257
Functionpaired_random_crop_hw
Paired random crop. It crops lists of lq and gt images with corresponding locations. Args: img_gts (list[ndarray] | ndarray): GT ima
basicsr/data/transforms.py:95
Functionpaired_random_crop_with_mask
(img_gts, img_lqs, img_masks, gt_patch_size, scale, gt_path)
basicsr/data/paired_image_group_mask_dataset.py:288
Methodpaste_faces_to_input_image
(self, save_path)
basicsr/utils/face_util.py:179
Functionpaths_from_folder
Generate paths from folder. Args: folder (str): Folder path. Returns: list[str]: Returned path list.
basicsr/data/data_util.py:259
Functionpaths_from_lmdb
Generate paths from lmdb. Args: folder (str): Folder path. Returns: list[str]: Returned path list.
basicsr/data/data_util.py:274
Functionpixel_unshuffle
Pixel unshuffle. Args: x (Tensor): Input feature with shape (b, c, hh, hw). scale (int): Downsample ratio. Returns:
basicsr/models/archs/arch_util.py:217
Functionprepare_for_ssim
(img, k)
basicsr/metrics/psnr_ssim.py:127
Functionprepare_for_ssim_rgb
(img, k)
basicsr/metrics/psnr_ssim.py:141
Functionread_img_seq
Read a sequence of images from a given folder path. Args: path (list[str] | str): List of image paths or image folder path. requi
basicsr/data/data_util.py:17
Methodreset
(self)
basicsr/data/prefetch_dataloader.py:86
Functionresize_flow
Resize a flow according to ratio or shape. Args: flow (Tensor): Precomputed flow. shape [N, 2, H, W]. size_type (str): 'ratio' or
basicsr/models/archs/arch_util.py:170
Functionrgb2ycbcr
Convert a RGB image to YCbCr image. This function produces the same results as Matlab's `rgb2ycbcr` function. It implements the ITU-R BT.601
basicsr/utils/matlab_functions.py:179
Methodrun
(self)
basicsr/data/prefetch_dataloader.py:31
Methodsave
(self, epoch, current_iter)
basicsr/models/image_clean_model.py:319
Methodsave
(self, epoch, current_iter)
basicsr/models/image_restoration_model.py:423
Functionscandir_SIDD
Scan a directory to find the interested files. Args: dir_path (str): Path of the directory. keywords (str | tuple(str), optional)
basicsr/utils/misc.py:101
Methodwarp_crop_faces
Get affine matrix, warp and cropped faces. Also get inverse affine matrix for post-processing.
basicsr/utils/face_util.py:138
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
basicsr/models/losses/loss_util.py:63
Functionworker
Worker for each process. Args: path (str): Image path. opt (dict): Configuration dict. It contains: crop_size (int):
scripts/data_preparation/crop_masks.py:88
Functionworker
Worker for each process. Args: path (str): Image path. opt (dict): Configuration dict. It contains: crop_size (int):
scripts/data_preparation/crop_gopro.py:71
Functionworker_init_fn
(worker_id, num_workers, rank, seed)
basicsr/data/__init__.py:134
Functionwrapper
(*args, **kwargs)
basicsr/utils/dist_util.py:85
Functionwrapper
(pred, target, weight=None, reduction='mean', **kwargs)
basicsr/models/losses/loss_util.py:95
Functionycbcr2bgr
Convert a YCbCr image to BGR image. The bgr version of ycbcr2rgb. It implements the ITU-R BT.601 conversion for standard-definition telev
basicsr/utils/matlab_functions.py:279
Functionycbcr2rgb
Convert a YCbCr image to RGB image. This function produces the same results as Matlab's ycbcr2rgb function. It implements the ITU-R BT.601 co
basicsr/utils/matlab_functions.py:247
← previous301–372 of 372, ranked by callers