MCPcopy Create free account

hub / github.com/CVL-UESTC/PFT-SR / types & classes

Types & classes61 in github.com/CVL-UESTC/PFT-SR

↓ 5 callersClassRegistry
The registry that provides name -> object mapping, to support third-party users' custom modules. To create a registry (e.g. a backbo
basicsr/utils/registry.py:4
↓ 3 callersClassPFT
r""" PFT A PyTorch impl of : `Progressive Focused Transformer for Single Image Super-Resolution`. Args: img_size (int | tuple(int
basicsr/archs/pft_arch.py:862
↓ 2 callersClassAvgTimer
basicsr/utils/logger.py:10
↓ 2 callersClassPatchEmbed
r""" Image to Patch Embedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
basicsr/archs/pft_arch.py:727
↓ 2 callersClassPatchUnEmbed
r""" Image to Patch Unembedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
basicsr/archs/pft_arch.py:769
↓ 2 callersClassdwconv
basicsr/archs/pft_arch.py:140
↓ 1 callersClassBasicBlock
A basic PFT Block for one stage. Args: dim (int): Number of input channels. input_resolution (tuple[int]): Input resolution.
basicsr/archs/pft_arch.py:549
↓ 1 callersClassBlockMerging
Merge patches into image
basicsr/utils/diffjpeg.py:324
↓ 1 callersClassBlockSplitting
Splitting image into patches
basicsr/utils/diffjpeg.py:98
↓ 1 callersClassCDequantize
Dequantize CbCr channel
basicsr/utils/diffjpeg.py:272
↓ 1 callersClassCPUPrefetcher
CPU prefetcher. Args: loader: Dataloader.
basicsr/data/prefetch_dataloader.py:61
↓ 1 callersClassCQuantize
JPEG Quantization for CbCr channels Args: rounding(function): rounding function to use
basicsr/utils/diffjpeg.py:178
↓ 1 callersClassCUDAPrefetcher
CUDA prefetcher. Reference: https://github.com/NVIDIA/apex/issues/304# It may consume more GPU memory. Args: loader: Dat
basicsr/data/prefetch_dataloader.py:82
↓ 1 callersClassChromaSubsampling
Chroma subsampling on CbCr channels
basicsr/utils/diffjpeg.py:73
↓ 1 callersClassChromaUpsampling
Upsample chroma layers
basicsr/utils/diffjpeg.py:348
↓ 1 callersClassCompressJpeg
Full JPEG compression algorithm Args: rounding(function): rounding function to use
basicsr/utils/diffjpeg.py:208
↓ 1 callersClassConvFFN
basicsr/archs/pft_arch.py:155
↓ 1 callersClassDCT8x8
Discrete Cosine Transformation
basicsr/utils/diffjpeg.py:121
↓ 1 callersClassDeCompressJpeg
Full JPEG decompression algorithm Args: rounding(function): rounding function to use
basicsr/utils/diffjpeg.py:401
↓ 1 callersClassDiffJPEG
This JPEG algorithm result is slightly different from cv2. DiffJPEG supports batch processing. Args: differentiable(bool): If Tru
basicsr/utils/diffjpeg.py:449
↓ 1 callersClassEnlargedSampler
Sampler that restricts data loading to a subset of the dataset. Modified from torch.utils.data.distributed.DistributedSampler Support enla
basicsr/data/data_sampler.py:6
↓ 1 callersClassFileClient
A general file client to access files in different backend. The client loads a file or text in a specified backend from its path and return
basicsr/utils/file_client.py:145
↓ 1 callersClassMessageLogger
Message logger for printing. Args: opt (dict): Config. It contains the following keys: name (str): Exp name.
basicsr/utils/logger.py:45
↓ 1 callersClassPFTB
Adaptive Token Dictionary Block (PFTB). Args: dim (int): Number of input channels. input_resolution (tuple[int]): Input resolutio
basicsr/archs/pft_arch.py:638
↓ 1 callersClassPFTransformerLayer
r""" PFT Transformer Layer Args: dim (int): Number of input channels. idx (int): Layer index. input_resolution (tuple
basicsr/archs/pft_arch.py:369
↓ 1 callersClassPrefetchDataLoader
Prefetch version of dataloader. Reference: https://github.com/IgorSusmelj/pytorch-styleguide/issues/5# TODO: Need to test on single
basicsr/data/prefetch_dataloader.py:39
↓ 1 callersClassPrefetchGenerator
A general prefetch generator. Reference: https://stackoverflow.com/questions/7323664/python-generator-pre-fetch Args: generator
basicsr/data/prefetch_dataloader.py:7
↓ 1 callersClassRGB2YCbCrJpeg
Converts RGB image to YCbCr
basicsr/utils/diffjpeg.py:49
↓ 1 callersClassSparseMMLayer
ops_smm/test_smm_QmK.py:30
↓ 1 callersClassSparseMMLayer
ops_smm/test_smm_AmV.py:42
↓ 1 callersClassUpsample
Upsample module. Args: scale (int): Scale factor. Supported scales: 2^n and 3. num_feat (int): Channel number of intermediate fea
basicsr/archs/pft_arch.py:801
↓ 1 callersClassUpsampleOneStep
UpsampleOneStep module (the difference with Upsample is that it always only has 1conv + 1pixelshuffle) Used in lightweight SR to save parameter
basicsr/archs/pft_arch.py:837
↓ 1 callersClassWindowAttention
r""" Shifted Window-based Multi-head Self-Attention (MSA). Args: dim (int): Number of input channels. layer_id (int): Index o
basicsr/archs/pft_arch.py:202
↓ 1 callersClassYCbCr2RGBJpeg
Converts YCbCr image to RGB JPEG
basicsr/utils/diffjpeg.py:378
↓ 1 callersClassYDequantize
Dequantize Y channel
basicsr/utils/diffjpeg.py:247
↓ 1 callersClassYQuantize
JPEG Quantization for Y channel Args: rounding(function): rounding function to use
basicsr/utils/diffjpeg.py:148
↓ 1 callersClassiDCT8x8
Inverse discrete Cosine Transformation
basicsr/utils/diffjpeg.py:297
ClassBaseModel
Base model.
basicsr/models/base_model.py:13
ClassBaseStorageBackend
Abstract class of storage backends. All backends need to implement two apis: ``get()`` and ``get_text()``. ``get()`` reads the file as a byt
basicsr/utils/file_client.py:4
ClassCharbonnierLoss
Charbonnier loss (one variant of Robust L1Loss, a differentiable variant of L1Loss). Described in "Deep Laplacian Pyramid Networks for Fas
basicsr/losses/basic_loss.py:113
ClassCosineAnnealingRestartLR
Cosine annealing with restarts learning rate scheme. An example of config: periods = [10, 10, 10, 10] restart_weights = [1, 0.5, 0.5
basicsr/models/lr_scheduler.py:57
ClassHardDiskBackend
Raw hard disks storage backend.
basicsr/utils/file_client.py:57
ClassL1Loss
L1 (mean absolute error, MAE) loss. Args: loss_weight (float): Loss weight for L1 loss. Default: 1.0. reduction (str): Specif
basicsr/losses/basic_loss.py:28
ClassLmdbBackend
Lmdb storage backend. Args: db_paths (str | list[str]): Lmdb database paths. client_keys (str | list[str]): Lmdb client keys. D
basicsr/utils/file_client.py:73
ClassLmdbMaker
LMDB Maker. Args: lmdb_path (str): Lmdb save path. map_size (int): Map size for lmdb env. Default: 1024 ** 4, 1TB. b
basicsr/utils/lmdb_util.py:159
ClassMSELoss
MSE (L2) loss. Args: loss_weight (float): Loss weight for MSE loss. Default: 1.0. reduction (str): Specifies the reduction to
basicsr/losses/basic_loss.py:56
ClassMemcachedBackend
Memcached storage backend. Attributes: server_list_cfg (str): Config file for memcached server list. client_cfg (str): Config f
basicsr/utils/file_client.py:20
ClassMultiStepRestartLR
MultiStep with restarts learning rate scheme. Args: optimizer (torch.nn.optimizer): Torch optimizer. milestones (list): Iter
basicsr/models/lr_scheduler.py:6
ClassPFTModel
basicsr/models/pft_model.py:9
ClassPSNRLoss
basicsr/losses/basic_loss.py:84
ClassPairedImageDataset
Paired image dataset for image restoration. Read LQ (Low Quality, e.g. LR (Low Resolution), blurry, noisy, etc) and GT image pairs. Ther
basicsr/data/paired_image_dataset.py:11
ClassPatchMerging
r""" Patch Merging Layer. Args: input_resolution (tuple[int]): Resolution of input feature. dim (int): Number of input channels.
basicsr/archs/pft_arch.py:501
ClassResidualBlockNoBN
Residual block without BN. Args: num_feat (int): Channel number of intermediate features. Default: 64. res_scale
basicsr/archs/arch_util.py:64
ClassSMM_AmV
A custom PyTorch autograd Function for sparse matrix multiplication (SMM) between an activation matrix (A) and a value matrix (V), guided by
basicsr/archs/pft_arch.py:80
ClassSMM_QmK
A custom PyTorch autograd Function for sparse matrix multiplication (SMM) of query (Q) and key (K) matrices, based on given sparse indices.
basicsr/archs/pft_arch.py:22
ClassSRModel
Base SR model for single image super-resolution.
basicsr/models/sr_model.py:15
ClassSparseMM
ops_smm/test_smm_QmK.py:11
ClassSparseMMFunction
ops_smm/test_smm_AmV.py:18
ClassUSMSharp
basicsr/utils/img_process_util.py:63
ClassUpsample
Upsample module. Args: scale (int): Scale factor. Supported scales: 2^n and 3. num_feat (int): Channel number of intermediate
basicsr/archs/arch_util.py:91
ClassWeightedTVLoss
Weighted TV loss. Args: loss_weight (float): Loss weight. Default: 1.0.
basicsr/losses/basic_loss.py:147