MCPcopy Create free account

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

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

↓ 1 callersMethodbackward
Backward function for Sparse Matrix Multiplication QmK. Args: ctx: Autograd context to retrieve saved tensors.
basicsr/archs/pft_arch.py:58
↓ 1 callersMethodbackward
(ctx, grad_output)
ops_smm/test_smm_QmK.py:19
↓ 1 callersMethodbackward
(ctx, grad_output)
ops_smm/test_smm_AmV.py:28
↓ 1 callersFunctionbivariate_Gaussian
Generate a bivariate isotropic or anisotropic Gaussian kernel. In the isotropic mode, only `sig_x` is used. `sig_y` and `theta` is ignored.
basicsr/data/degradations.py:84
↓ 1 callersFunctionbivariate_generalized_Gaussian
Generate a bivariate generalized Gaussian kernel. ``Paper: Parameter Estimation For Multivariate Generalized Gaussian Distributions`` In
basicsr/data/degradations.py:112
↓ 1 callersFunctionbivariate_plateau
Generate a plateau-like anisotropic kernel. 1 / (1+x^(beta)) Reference: https://stats.stackexchange.com/questions/203629/is-there-a-plat
basicsr/data/degradations.py:143
↓ 1 callersMethodcalculate_mask
(self, x_size)
basicsr/archs/pft_arch.py:1081
↓ 1 callersFunctioncalculate_metric
Calculate metric from data and options. Args: opt (dict): Configuration. It must contain: type (str): Model type.
basicsr/metrics/__init__.py:9
↓ 1 callersFunctioncalculate_psnr
Calculate PSNR (Peak Signal-to-Noise Ratio). Reference: https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio Args: img (nda
basicsr/metrics/psnr_ssim.py:12
↓ 1 callersMethodcalculate_rpi_sa
(self)
basicsr/archs/pft_arch.py:1067
↓ 1 callersFunctioncalculate_ssim
Calculate SSIM (structural similarity). ``Paper: Image quality assessment: From error visibility to structural similarity`` The results
basicsr/metrics/psnr_ssim.py:85
↓ 1 callersFunctioncharbonnier_loss
(pred, target, eps=1e-12)
basicsr/losses/basic_loss.py:23
↓ 1 callersFunctioncheck_resume
Check resume states and pretrain_network paths. Args: opt (dict): Options. resume_iter (int): Resume iteration.
basicsr/utils/misc.py:135
↓ 1 callersFunctioncopy_opt_file
(opt_file, experiments_root)
basicsr/utils/options.py:198
↓ 1 callersFunctioncreate_train_val_dataloader
(opt, logger)
basicsr/train.py:35
↓ 1 callersFunctiondefault_init_weights
Initialize network weights. Args: module_list (list[nn.Module] | nn.Module): Modules to be initialized. scale (float): Scale
basicsr/archs/arch_util.py:18
↓ 1 callersFunctiondequantize
Dequantize an array. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clipped. max_val (scala
basicsr/utils/flow_util.py:150
↓ 1 callersFunctiondequantize_flow
Recover from quantized flow. Args: dx (ndarray): Quantized dx. dy (ndarray): Quantized dy. max_val (float): Maximum
basicsr/utils/flow_util.py:102
↓ 1 callersMethoddist_validation
(self, dataloader, current_iter, tb_logger, save_img)
basicsr/models/sr_model.py:183
↓ 1 callersFunctiongenerate_gaussian_kernel
Generate Gaussian kernel used in `duf_downsample`. Args: kernel_size (int): Kernel size. Default: 13. sigma (float): Sigma of
basicsr/data/data_util.py:307
↓ 1 callersMethodget
(self, filepath, client_key='default')
basicsr/utils/file_client.py:170
↓ 1 callersMethodget_current_learning_rate
(self)
basicsr/models/base_model.py:208
↓ 1 callersMethodget_current_log
(self)
basicsr/models/base_model.py:85
↓ 1 callersMethodget_current_visuals
(self)
basicsr/models/sr_model.py:269
↓ 1 callersFunctionget_extensions
()
ops_smm/setup.py:10
↓ 1 callersFunctionget_git_hash
()
setup.py:18
↓ 1 callersFunctionget_hash
()
setup.py:43
↓ 1 callersFunctionget_local_weights
Get local weights for generating the artifact map of LDL. It is only called by the `get_refined_artifact_map` function. Args: r
basicsr/losses/loss_util.py:99
↓ 1 callersMethodget_optimizer
(self, optim_type, params, lr, **kwargs)
basicsr/models/base_model.py:104
↓ 1 callersFunctionget_parser
(**parser_kwargs)
inference.py:24
↓ 1 callersFunctionget_position_from_periods
Get the position from a period list. It will return the index of the right-closest number in the period list. For example, the cumulative_
basicsr/models/lr_scheduler.py:36
↓ 1 callersFunctionget_requirements
(filename='requirements.txt')
setup.py:108
↓ 1 callersFunctionget_version
()
setup.py:76
↓ 1 callersFunctionimwrite
Write image to file. Args: img (ndarray): Image array to be written. file_path (str): Image file path. params (None
basicsr/utils/img_util.py:135
↓ 1 callersFunctioninit_tb_logger
(log_dir)
basicsr/utils/logger.py:119
↓ 1 callersFunctioninit_tb_loggers
(opt)
basicsr/train.py:23
↓ 1 callersMethodinit_training_settings
(self)
basicsr/models/sr_model.py:38
↓ 1 callersFunctioninit_wandb_logger
We now only use wandb to sync tensorboard log.
basicsr/utils/logger.py:126
↓ 1 callersFunctionl1_loss
(pred, target)
basicsr/losses/basic_loss.py:13
↓ 1 callersFunctionload_resume_state
(opt)
basicsr/train.py:74
↓ 1 callersFunctionmain
()
VisualAttention.py:6
↓ 1 callersFunctionmain
()
inference.py:49
↓ 1 callersFunctionmanual_backward
(grad_output, A, B, index)
ops_smm/test_smm_QmK.py:73
↓ 1 callersFunctionmanual_backward
(grad_output, A, B, index)
ops_smm/test_smm_AmV.py:94
↓ 1 callersFunctionmanual_sparse_mm
(A, B, index)
ops_smm/test_smm_QmK.py:52
↓ 1 callersFunctionmanual_sparse_mm
(A, B, index)
ops_smm/test_smm_AmV.py:66
↓ 1 callersFunctionmod_crop
Mod crop images, used during testing. Args: img (ndarray): Input image. scale (int): Scale factor. Returns: n
basicsr/data/transforms.py:6
↓ 1 callersMethodmodel_to_device
Model to device. It also warps models with DistributedDataParallel or DataParallel. Args: net (nn.Module)
basicsr/models/base_model.py:88
↓ 1 callersFunctionmse_loss
(pred, target)
basicsr/losses/basic_loss.py:18
↓ 1 callersMethodoptimize_parameters
(self, current_iter)
basicsr/models/sr_model.py:95
↓ 1 callersFunctionpaired_paths_from_folder
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:201
↓ 1 callersFunctionpaired_paths_from_lmdb
Generate paired paths from lmdb files. Contents of lmdb. Taking the `lq.lmdb` for example, the file structure is: :: lq.lmdb
basicsr/data/data_util.py:95
↓ 1 callersFunctionpaired_paths_from_meta_info_file
Generate paired paths from an meta information file. Each line in the meta information file contains the image names and image shape (usua
basicsr/data/data_util.py:157
↓ 1 callersFunctionpaired_random_crop
Paired random crop. Support Numpy array and Tensor inputs. It crops lists of lq and gt images with corresponding locations. Args:
basicsr/data/transforms.py:26
↓ 1 callersFunctionpdf2
Calculate PDF of the bivariate Gaussian distribution. Args: sigma_matrix (ndarray): with the shape (2, 2) grid (ndarray): gen
basicsr/data/degradations.py:50
↓ 1 callersMethodprint_network
Print the str and parameter number of a network. Args: net (nn.Module)
basicsr/models/base_model.py:148
↓ 1 callersFunctionquantize
Quantize an array of (-inf, inf) to [0, levels-1]. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be cl
basicsr/utils/flow_util.py:126
↓ 1 callersFunctionquantize_flow
Quantize flow to [0, 255]. After this step, the size of flow will be much smaller, and can be dumped as jpeg images. Args:
basicsr/utils/flow_util.py:76
↓ 1 callersFunctionrandom_generate_gaussian_noise
(img, sigma_range=(0, 10), gray_prob=0)
basicsr/data/degradations.py:515
↓ 1 callersFunctionrandom_generate_gaussian_noise_pt
(img, sigma_range=(0, 10), gray_prob=0)
basicsr/data/degradations.py:536
↓ 1 callersFunctionrandom_generate_poisson_noise
(img, scale_range=(0, 1.0), gray_prob=0)
basicsr/data/degradations.py:685
↓ 1 callersFunctionrandom_generate_poisson_noise_pt
(img, scale_range=(0, 1.0), gray_prob=0)
basicsr/data/degradations.py:706
↓ 1 callersFunctionread_img_worker
Read image worker. Args: path (str): Image path. key (str): Image key. compress_level (int): Compress level when enc
basicsr/utils/lmdb_util.py:135
↓ 1 callersFunctionreadme
()
setup.py:12
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are 'none', 'mean' and 'sum'
basicsr/losses/loss_util.py:6
↓ 1 callersMethodreduce_loss_dict
reduce loss dict. In distributed training, it averages the losses among different GPUs . Args: loss_dict (OrderedDi
basicsr/models/base_model.py:371
↓ 1 callersMethodreset
(self)
basicsr/data/prefetch_dataloader.py:120
↓ 1 callersMethodreset_start_time
(self)
basicsr/utils/logger.py:68
↓ 1 callersMethodresume_training
Reload the optimizers and schedulers for resumed training. Args: resume_state (dict): Resume state.
basicsr/models/base_model.py:356
↓ 1 callersMethodsave_training_state
Save training states during training, which will be used for resuming. Args: epoch (int): Current epoch.
basicsr/models/base_model.py:322
↓ 1 callersMethodset_epoch
(self, epoch)
basicsr/data/data_sampler.py:47
↓ 1 callersFunctionset_random_seed
Set random seeds.
basicsr/utils/misc.py:11
↓ 1 callersMethodsetup_optimizers
(self)
basicsr/models/sr_model.py:76
↓ 1 callersMethodsetup_schedulers
Set up schedulers.
basicsr/models/base_model.py:123
↓ 1 callersMethodtest
(self)
basicsr/models/sr_model.py:124
↓ 1 callersFunctiontest_pipeline
(root_path)
basicsr/test.py:15
↓ 1 callersFunctiontrain_pipeline
(root_path)
basicsr/train.py:97
↓ 1 callersMethodupdate_learning_rate
Update learning rate. Args: current_iter (int): Current iteration. warmup_iter (int): Warm-up iter numbers. -1 fo
basicsr/models/base_model.py:185
↓ 1 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights. Def
basicsr/losses/loss_util.py:26
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*b, window_size, window_size, c) window_size (int): Window size h (int): Height of image
basicsr/archs/pft_arch.py:186
↓ 1 callersFunctionwrite_version_py
()
setup.py:59
↓ 1 callersFunctionyaml_load
Load yaml file or string. Args: f (str): File path or a python string. Returns: dict: Loaded dict.
basicsr/utils/options.py:38
Method__call__
Format logging message. Args: log_vars (dict): It contains the following keys: epoch (int): Epoch number.
basicsr/utils/logger.py:72
Method__contains__
(self, name)
basicsr/utils/registry.py:74
Method__getitem__
(self, index)
basicsr/data/paired_image_dataset.py:64
Method__init__
(self)
basicsr/utils/diffjpeg.py:53
Method__init__
(self)
basicsr/utils/diffjpeg.py:77
Method__init__
(self)
basicsr/utils/diffjpeg.py:102
Method__init__
(self, rounding)
basicsr/utils/diffjpeg.py:155
Method__init__
(self, rounding)
basicsr/utils/diffjpeg.py:185
Method__init__
(self, rounding=torch.round)
basicsr/utils/diffjpeg.py:215
Method__init__
(self)
basicsr/utils/diffjpeg.py:251
Method__init__
(self)
basicsr/utils/diffjpeg.py:276
Method__init__
(self)
basicsr/utils/diffjpeg.py:301
Method__init__
(self)
basicsr/utils/diffjpeg.py:328
Method__init__
(self)
basicsr/utils/diffjpeg.py:352
Method__init__
(self)
basicsr/utils/diffjpeg.py:382
Method__init__
(self, rounding=torch.round)
basicsr/utils/diffjpeg.py:408
Method__init__
(self, differentiable=True)
basicsr/utils/diffjpeg.py:457
Method__init__
(self, window=200)
basicsr/utils/logger.py:12
← previousnext →101–200 of 370, ranked by callers