MCPcopy Create free account

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

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

Method__init__
(self, opt, start_iter=1, tb_logger=None)
basicsr/utils/logger.py:58
Method__init__
(self, server_list_cfg, client_cfg, sys_path=None)
basicsr/utils/file_client.py:29
Method__init__
(self, db_paths, client_keys='default', readonly=True,
basicsr/utils/file_client.py:91
Method__init__
(self, backend='disk', **kwargs)
basicsr/utils/file_client.py:162
Method__init__
(self, radius=50, sigma=0)
basicsr/utils/img_process_util.py:65
Method__init__
Args: name (str): the name of this registry
basicsr/utils/registry.py:30
Method__init__
(self, lmdb_path, map_size=1024**4, batch=5000, compress_level=1)
basicsr/utils/lmdb_util.py:170
Method__init__
(self, hidden_features, kernel_size=5)
basicsr/archs/pft_arch.py:141
Method__init__
(self, in_features, hidden_features=None, out_features=None, kernel_size=5, act_layer=nn.GELU)
basicsr/archs/pft_arch.py:156
Method__init__
(self, dim, layer_id, window_size, num_heads, num_topk, qkv_bias=True)
basicsr/archs/pft_arch.py:215
Method__init__
(self, dim, block_id, layer_id, input_reso
basicsr/archs/pft_arch.py:388
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
basicsr/archs/pft_arch.py:510
Method__init__
(self, dim, input_resolution, idx, layer_i
basicsr/archs/pft_arch.py:568
Method__init__
(self, dim, idx, layer_id, input_resolutio
basicsr/archs/pft_arch.py:658
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
basicsr/archs/pft_arch.py:738
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
basicsr/archs/pft_arch.py:780
Method__init__
(self, scale, num_feat)
basicsr/archs/pft_arch.py:809
Method__init__
(self, scale, num_feat, num_out_ch, input_resolution=None)
basicsr/archs/pft_arch.py:847
Method__init__
(self, num_feat=64, res_scale=1, pytorch_init=False)
basicsr/archs/arch_util.py:75
Method__init__
(self, dataset, num_replicas, rank, ratio=1)
basicsr/data/data_sampler.py:21
Method__init__
(self, opt)
basicsr/data/paired_image_dataset.py:38
Method__init__
(self, generator, num_prefetch_queue)
basicsr/data/prefetch_dataloader.py:17
Method__init__
(self, num_prefetch_queue, **kwargs)
basicsr/data/prefetch_dataloader.py:53
Method__init__
(self, loader, opt)
basicsr/data/prefetch_dataloader.py:94
Method__init__
(self, opt)
basicsr/models/sr_model.py:18
Method__init__
(self, opt)
basicsr/models/base_model.py:16
Method__init__
(self, optimizer, periods, restart_weights=(1, ), eta_min=0, last_epoch=-1)
basicsr/models/lr_scheduler.py:77
Method__init__
(self, loss_weight=1.0, reduction='mean')
basicsr/losses/basic_loss.py:65
Method__init__
(self, loss_weight=1.0, reduction='mean', toY=False)
basicsr/losses/basic_loss.py:86
Method__init__
(self, loss_weight=1.0, reduction='mean', eps=1e-12)
basicsr/losses/basic_loss.py:127
Method__init__
(self, loss_weight=1.0, reduction='mean')
basicsr/losses/basic_loss.py:154
Method__iter__
(self)
basicsr/utils/registry.py:77
Method__iter__
(self)
basicsr/data/data_sampler.py:29
Method__iter__
(self)
basicsr/data/prefetch_dataloader.py:57
Method__len__
(self)
basicsr/data/data_sampler.py:44
Method__len__
(self)
basicsr/data/paired_image_dataset.py:106
Method__next__
(self)
basicsr/data/prefetch_dataloader.py:29
Method_init_weights
(self, m)
basicsr/archs/pft_arch.py:1030
Method_transform
(v, op)
basicsr/models/sr_model.py:140
Functionadd_gaussian_noise
Add Gaussian noise. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. sigma (float): Noise scale
basicsr/data/degradations.py:438
Functionadd_gaussian_noise_pt
Add Gaussian noise (PyTorch version). Args: img (Tensor): Shape (b, c, h, w), range[0, 1], float32. scale (float | Tensor): N
basicsr/data/degradations.py:492
Functionadd_poisson_noise
Add poisson noise. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. scale (float): Noise scale.
basicsr/data/degradations.py:586
Functionadd_poisson_noise_pt
Add poisson noise to a batch of images (PyTorch version). Args: img (Tensor): Input image, shape (b, c, h, w), range [0, 1], float32.
basicsr/data/degradations.py:657
Methodbackward
Backward function for Sparse Matrix Multiplication AmV. Args: ctx: Autograd context to retrieve saved tensors.
basicsr/archs/pft_arch.py:116
Functionbgr2ycbcr
Convert a BGR image to YCbCr image. The bgr version of rgb2ycbcr. It implements the ITU-R BT.601 conversion for standard-definition t
basicsr/utils/matlab_functions.py:214
Functioncallback
get the image data and update pbar.
basicsr/utils/lmdb_util.py:81
Functioncdf2
Calculate the CDF of the standard bivariate Gaussian distribution. Used in skewed Gaussian distribution. Args: d_matrix (ndar
basicsr/data/degradations.py:66
Functioncircular_lowpass_kernel
2D sinc filter Reference: https://dsp.stackexchange.com/questions/58301/2-d-circularly-symmetric-low-pass-filter Args: cutoff (
basicsr/data/degradations.py:389
Functioncreate_lmdb_for_SIDD
()
basicsr/utils/create_lmdb.py:94
Functioncreate_lmdb_for_gopro
()
basicsr/utils/create_lmdb.py:54
Functioncreate_lmdb_for_rain13k
()
basicsr/utils/create_lmdb.py:80
Functioncreate_lmdb_for_reds
()
basicsr/utils/create_lmdb.py:32
Functioncrop_border
Crop borders of images. Args: imgs (list[ndarray] | ndarray): Images with shape (h, w, c). crop_border (int): Crop border for
basicsr/utils/img_util.py:156
Methoddeco
(func_or_class)
basicsr/utils/registry.py:54
Functiondict_constructor
(loader, node)
basicsr/utils/options.py:30
Functiondict_representer
(dumper, data)
basicsr/utils/options.py:27
Functiondiff_round
Differentiable rounding function
basicsr/utils/diffjpeg.py:26
Functionduf_downsample
Downsamping with Gaussian kernel used in the DUF official code. Args: x (Tensor): Frames to be downsampled, with shape (b, t, c, h, w)
basicsr/data/data_util.py:325
Methodextra_repr
(self)
basicsr/archs/pft_arch.py:350
Methodextra_repr
(self)
basicsr/archs/pft_arch.py:540
Methodextra_repr
(self)
basicsr/archs/pft_arch.py:627
Methodfeed_data
(self, data)
basicsr/models/base_model.py:24
Methodflops
(self, n)
basicsr/archs/pft_arch.py:353
Methodflops
(self, input_resolution=None)
basicsr/archs/pft_arch.py:483
Methodflops
(self, input_resolution=None)
basicsr/archs/pft_arch.py:543
Methodflops
(self, input_resolution=None)
basicsr/archs/pft_arch.py:630
Methodflops
(self, input_resolution=None)
basicsr/archs/pft_arch.py:717
Methodflops
(self, input_resolution=None)
basicsr/archs/pft_arch.py:762
Methodflops
(self, input_resolution=None)
basicsr/archs/pft_arch.py:797
Methodflops
(self, input_resolution)
basicsr/archs/pft_arch.py:826
Methodflops
(self, input_resolution)
basicsr/archs/pft_arch.py:855
Functionflow_warp
Warp an image or feature map with optical flow. Args: x (Tensor): Tensor with size (n, c, h, w). flow (Tensor): Tensor with s
basicsr/archs/arch_util.py:113
Functionflowread
Read an optical flow map. Args: flow_path (ndarray or str): Flow path. quantize (bool): whether to read quantized pair, if se
basicsr/utils/flow_util.py:7
Functionflowwrite
Write optical flow to file. If the flow is not quantized, it will be saved as a .flo file losslessly, otherwise a jpeg image which is loss
basicsr/utils/flow_util.py:45
Methodforward
Args: image(Tensor): batch x 3 x height x width Returns: Tensor: batch x height x width x 3
basicsr/utils/diffjpeg.py:60
Methodforward
Args: image(tensor): batch x height x width x 3 Returns: y(tensor): batch x height x width
basicsr/utils/diffjpeg.py:80
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x h*w/64 x h x w
basicsr/utils/diffjpeg.py:106
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:134
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:160
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:190
Methodforward
Args: image(tensor): batch x 3 x height x width Returns: dict(tensor): Compressed tensor with batch x h
basicsr/utils/diffjpeg.py:222
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:255
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:280
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:310
Methodforward
Args: patches(tensor) batch x height*width/64, height x width height(int) width(int) Retur
basicsr/utils/diffjpeg.py:331
Methodforward
Args: y(tensor): y channel image cb(tensor): cb channel cr(tensor): cr channel Returns:
basicsr/utils/diffjpeg.py:355
Methodforward
Args: image(tensor): batch x height x width x 3 Returns: Tensor: batch x 3 x height x width
basicsr/utils/diffjpeg.py:389
Methodforward
Args: compressed(dict(tensor)): batch x h*w/64 x 8 x 8 imgh(int) imgw(int) factor(float)
basicsr/utils/diffjpeg.py:417
Methodforward
Args: x (Tensor): Input image, bchw, rgb, [0, 1] quality(float): Quality factor for jpeg compression scheme.
basicsr/utils/diffjpeg.py:467
Methodforward
(self, img, weight=0.5, threshold=10)
basicsr/utils/img_process_util.py:74
Methodforward
Forward function for Sparse Matrix Multiplication QmK. Args: ctx: Autograd context to save tensors for backward computat
basicsr/archs/pft_arch.py:37
Methodforward
Forward function for Sparse Matrix Multiplication AmV. Args: ctx: Autograd context to save tensors for backward computat
basicsr/archs/pft_arch.py:95
Methodforward
(self, x, x_size)
basicsr/archs/pft_arch.py:149
Methodforward
(self, x, x_size)
basicsr/archs/pft_arch.py:165
Methodforward
r""" Args: qkvp (Tensor): Input tensor containing query, key, value tokens, and LePE positional encoding matrix with shape (num_window
basicsr/archs/pft_arch.py:240
Methodforward
(self, x, pfa_list, x_size, params)
basicsr/archs/pft_arch.py:438
Methodforward
x: b, h*w, c
basicsr/archs/pft_arch.py:517
Methodforward
(self, x, pfa_list, x_size, params)
basicsr/archs/pft_arch.py:615
Methodforward
(self, x, pfa_list, x_size, params)
basicsr/archs/pft_arch.py:713
Methodforward
(self, x)
basicsr/archs/pft_arch.py:756
← previousnext →201–300 of 370, ranked by callers