Skip to main content

An Agnostic Benchmark for Optical Remote Sensing Image Super-Resolution

Project description

header

An Agnostic Benchmark for Optical Remote Sensing Image Super-Resolution

PyPI conda-forge License Documentation Status Black isort


GitHub: https://github.com/csaybar/srcheck

Documentation: https://srcheck.readthedocs.io/

PyPI: https://pypi.org/project/srcheck/

Conda-forge: https://anaconda.org/conda-forge/srcheck

Tutorials: https://github.com/davemlz/srcheck/tree/master/docs/tutorials

Paper: Coming soon!


Overview

In remote sensing, image super-resolution (ISR) is a technique used to create high-resolution (HR) images from low-resolution (R) satellite images, giving a more detailed view of the Earth's surface. However, with the constant development and introduction of new ISR algorithms, it can be challenging to stay updated on the latest advancements and to evaluate their performance objectively. To address this issue, we introduce SRcheck, a Python package that provides an easy-to-use interface for comparing and benchmarking various ISR methods. SRcheck includes a range of datasets that consist of high-resolution and low-resolution image pairs, as well as a set of quantitative metrics for evaluating the performance of SISR algorithms.

Installation

Install the latest version from PyPI:

pip install srcheck

Upgrade srcheck by running:

pip install -U srcheck

Install the latest version from conda-forge:

conda install -c conda-forge srcheck

Install the latest dev version from GitHub by running:

pip install git+https://github.com/csaybar/srcheck

How does it work?

header

srcheck needs either a torch.nn.Module class or a compiled model via torch.jit.trace or torch.jit.script. The following example shows how to run the benchmarks:

import torch
import srcheck

model = torch.jit.load('/content/quantSRmodel.pt', map_location='cpu')
srcheck.benchmark(model, dataset='SPOT-50', metrics=['PSNR', 'SSIM'], type= "NoSRI")

srcheck supports two group types of metrics: (a) Surface Reflectance Integrity (SRI) and (b) No Surface Reflectance Integrity (NoSRI). This difference is due to the fact that depending on the application, developers will be interested in optimizing the "image quality" or the "image fidelity". Image fidelity refers to how closely the LR image represents the real source distribution (HR). Optimizing fidelity is crucial for applications that require preserving surface reflectance as close as possible to the original values. On the other hand, image quality refers to how pleasant the image is for the human eye. Optimizing image quality is important for creating HR image satellite base maps. The image below shows the natural trade-off that exists between these two group types of metrics.

header

But what happens if my ISR algorithm increases the image by a factor of 8, but the datasets available in srcheck do not support 8X? In that case, srcheck will automatically convert the results to the native resolution of the datasets. For example, if your algorithm increases the image by 2X, and you want to test it on SPOT-50 whose images are 10m in LR and 6m in HR, srcheck will upscale the results from 5 meters to 6m using the bilinear interpolation algorithm. Similarly, in the MUS2-50 dataset, srcheck will downscale the results from 5m to 2m. This is done in order the results can be compared with the datasets available.

header

Datasets

https://zenodo.org/record/7562334

More datasets are coming soon!

Metrics

Metrics documentation is coming soon!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

srcheck-0.1.6.tar.gz (17.8 kB view hashes)

Uploaded Source

Built Distribution

srcheck-0.1.6-py3-none-any.whl (18.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page