MCPcopy Create free account

hub / github.com/CVL-UESTC/PFT-SR / functions

Functions370 in github.com/CVL-UESTC/PFT-SR

Methodforward
(self, x, x_size)
basicsr/archs/pft_arch.py:793
Methodforward
(self, x)
basicsr/archs/pft_arch.py:1102
Methodforward
(self, x)
basicsr/archs/arch_util.py:85
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth
basicsr/losses/basic_loss.py:73
Methodforward
(self, pred, target)
basicsr/losses/basic_loss.py:95
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth
basicsr/losses/basic_loss.py:136
Methodforward
(self, pred, weight=None)
basicsr/losses/basic_loss.py:159
Methodforward
(ctx, A, B, index)
ops_smm/test_smm_QmK.py:13
Methodforward
(self, A, B, index)
ops_smm/test_smm_QmK.py:31
Methodforward
(ctx, A, B, index)
ops_smm/test_smm_AmV.py:20
Methodforward
(self, A, B, index)
ops_smm/test_smm_AmV.py:43
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:43
Methodget
(self, filepath)
basicsr/utils/file_client.py:12
Methodget
(self, filepath)
basicsr/utils/file_client.py:46
Methodget
(self, filepath)
basicsr/utils/file_client.py:60
Methodget
Get values according to the filepath from one lmdb named client_key. Args: filepath (str | obj:`Path`): Here, filepath is the lm
basicsr/utils/file_client.py:126
Methodget_current_time
(self)
basicsr/utils/logger.py:38
Methodget_current_visuals
(self)
basicsr/models/base_model.py:30
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:27
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:86
Functionget_refined_artifact_map
Calculate the artifact map of LDL (Details or Artifacts: A Locally Discriminative Learning Approach to Realistic Image Super-Resolution. In CVPR
basicsr/losses/loss_util.py:121
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:16
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:53
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:66
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:141
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:178
Functionimg_rotate
Rotate image. Args: img (ndarray): Image to be rotated. angle (float): Rotation angle in degrees. Positive values mean
basicsr/data/transforms.py:161
Functionimresize
imresize function same as MATLAB. It now only supports bicubic. The same scale applies for both height and width. Args: im
basicsr/utils/matlab_functions.py:86
Functionmake_layer
Make layers by stacking the same blocks. Args: basic_block (nn.module): nn.module class for basic block. num_basic_block (int
basicsr/archs/arch_util.py:48
Functionmaster_only
(func)
basicsr/utils/dist_util.py:74
Methodnext
(self)
basicsr/data/prefetch_dataloader.py:72
Methodno_weight_decay
(self)
basicsr/archs/pft_arch.py:1040
Methodno_weight_decay_keywords
(self)
basicsr/archs/pft_arch.py:1044
Methodoptimize_parameters
(self)
basicsr/models/base_model.py:27
Functionpaired_paths_from_folder2
Generate paired paths from folders. Args: folders (list[str]): A list of folder path. The order of list should be [input_
basicsr/data/data_util.py:236
Functionparse
(x)
basicsr/archs/arch_util.py:301
Functionpaths_from_folder
Generate paths from folder. Args: folder (str): Folder path. Returns: list[str]: Returned path list.
basicsr/data/data_util.py:276
Functionpaths_from_lmdb
Generate paths from lmdb. Args: folder (str): Folder path. Returns: list[str]: Returned path list.
basicsr/data/data_util.py:291
Functionpixel_unshuffle
Pixel unshuffle. Args: x (Tensor): Input feature with shape (b, c, hh, hw). scale (int): Downsample ratio. Returns:
basicsr/archs/arch_util.py:186
Functionrandom_add_gaussian_noise
(img, sigma_range=(0, 1.0), gray_prob=0, clip=True, rounds=False)
basicsr/data/degradations.py:524
Functionrandom_add_gaussian_noise_pt
(img, sigma_range=(0, 1.0), gray_prob=0, clip=True, rounds=False)
basicsr/data/degradations.py:544
Functionrandom_add_jpg_compression
Randomly add JPG compression artifacts. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. quality
basicsr/data/degradations.py:750
Functionrandom_add_poisson_noise
(img, scale_range=(0, 1.0), gray_prob=0, clip=True, rounds=False)
basicsr/data/degradations.py:694
Functionrandom_add_poisson_noise_pt
(img, scale_range=(0, 1.0), gray_prob=0, clip=True, rounds=False)
basicsr/data/degradations.py:714
Functionrandom_mixed_kernels
Randomly generate mixed kernels. Args: kernel_list (tuple): a list name of kernel types, support ['iso', 'aniso', 'skew',
basicsr/data/degradations.py:324
Functionread_data_from_tensorboard
Get raw data (steps and values) from tensorboard events. Args: log_path (str): Path to the tensorboard log. tag (str): tag to
basicsr/utils/plot_util.py:4
Functionread_data_from_txt_1v
Read data from txt with 1 returned values. Args: path (str): path to the txt file. pattern (str): re (regular expression) pat
basicsr/utils/plot_util.py:48
Functionread_data_from_txt_2v
Read data from txt with 2 returned values (usually [step, value]). Args: path (str): path to the txt file. pattern (str): re
basicsr/utils/plot_util.py:23
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. r
basicsr/data/data_util.py:11
Methodregister
Register the given object under the the name `obj.__name__`. Can be used as either a decorator or not. See docstring of th
basicsr/utils/registry.py:46
Methodreset
(self)
basicsr/data/prefetch_dataloader.py:78
Functionresize_flow
Resize a flow according to ratio or shape. Args: flow (Tensor): Precomputed flow. shape [N, 2, H, W]. size_type (str): 'ratio
basicsr/archs/arch_util.py:147
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.6
basicsr/utils/color_util.py:5
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.6
basicsr/utils/matlab_functions.py:181
Methodrun
(self)
basicsr/data/prefetch_dataloader.py:24
Functionscandir_SIDD
Scan a directory to find the interested files. Args: dir_path (str): Path of the directory. keywords (str | tuple(str), optiona
basicsr/utils/misc.py:94
Functionsizeof_fmt
Get human readable file size. Args: size (int): File size. suffix (str): Suffix. Default: 'B'. Return: str: F
basicsr/utils/misc.py:168
Functionsmooth_data
Smooth data using 1st-order IIR low-pass filter (what tensorflow does). Reference: https://github.com/tensorflow/tensorboard/blob/f801ebf1f9fb
basicsr/utils/plot_util.py:68
Functiontensor2img_fast
This implementation is slightly faster than tensor2img. It now only supports torch tensor with shape (1, c, h, w). Args: tensor (
basicsr/utils/img_util.py:97
Methodtest
(self)
basicsr/models/pft_model.py:23
Methodtest_selfensemble
(self)
basicsr/models/sr_model.py:135
Functionusm_sharp
USM sharpening. Input image: I; Blurry image: B. 1. sharp = I + weight * (I - B) 2. Mask = 1 if abs(I - B) > threshold, else: 0
basicsr/utils/img_process_util.py:34
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,
basicsr/losses/loss_util.py:58
Functionworker_init_fn
(worker_id, num_workers, rank, seed)
basicsr/data/__init__.py:97
Functionwrapper
(*args, **kwargs)
basicsr/utils/dist_util.py:77
Functionwrapper
(pred, target, weight=None, reduction='mean', **kwargs)
basicsr/losses/loss_util.py:90
Functionycbcr2bgr
Convert a YCbCr image to BGR image. The bgr version of ycbcr2rgb. It implements the ITU-R BT.601 conversion for standard-definition t
basicsr/utils/color_util.py:100
Functionycbcr2bgr
Convert a YCbCr image to BGR image. The bgr version of ycbcr2rgb. It implements the ITU-R BT.601 conversion for standard-definition t
basicsr/utils/matlab_functions.py:276
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
basicsr/utils/color_util.py:71
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
basicsr/utils/matlab_functions.py:247
← previous301–370 of 370, ranked by callers