Skip to main content

Unofficial pytorch dataloader for the Sen2Venµs Super-Resolution dataset.

Project description

sen2venus-pytorch-dataset

Unofficial dataloader for the Sen2Venµs dataset, baked at CESBIO by Julien Michel, Juan Vinasco-Salinas, Jordi Inglada and Olivier Hagolle.

Overview

This package provides a simple way to download and use the Sen2Venµs dataset within the pytorch and Xarray ecosystems.

from sen2venus import Sen2VenusSite
import matplotlib.pyplot as plt

dataset = Sen2VenusSite(root='./', site_name='SUDOUE-4', load_geometry=True, subset='all')
input, target = dataset.getitem_xarray(0)
input.plot.imshow(col='band')
target.plot.imshow(col='band')
plt.show()

Matching Sentinel 2 and Venus samples

Features

  • Automatic download from zenodo: The Zenodo URLs and hashes are included. From a region name (see the list), the corresponding subset is downloaded and decompressed.

  • x2, x4 or multi-resolution dataset loading: you can pick the rgbnir or the rededge subset to load the x2 or the x4 low (Sentinel-2) and high (Venus) resolution patches, or specify all to concatenate Sentinel-2 multi-resolution bands, as in this paper.

  • inspired from existing frameworks: the Sen2Venus class is inspired from the torchsr dataset definition style and the torchvision download utility are used.

  • automatically retrieve geospatial information: includes method to convert the dataset samples to Xarray DataArrays

  • compatible with sr-pytorch-lightning: you can train your own SR model using a fork of sr-pytorch-lightning.

TODO / WIP

  • better integration of download within class instantiation - currently needs to be reinstantiated
  • multiple regions download
  • pypi publishing
  • parallel downloads
  • integration with sr-pytorch-lightning

Installation

You can install the package using pip:

git clone https://github.com/piclem/sen2venus-pytorch-dataset.git
cd sen2venus
pip install . 

(pypi publication to come later)

Documentation (WIP)

For more detailed information on the available parameters, methods, and best practices, please refer to the documentation.

Support and Issues (WIP)

If you encounter any issues, bugs, or have questions about the package, please feel free to open an issue on the GitHub repository. We appreciate your feedback!

License

This package is released under the MIT License.

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

sen2venus-pytorch-dataset-0.0.3.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

sen2venus_pytorch_dataset-0.0.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file sen2venus-pytorch-dataset-0.0.3.tar.gz.

File metadata

File hashes

Hashes for sen2venus-pytorch-dataset-0.0.3.tar.gz
Algorithm Hash digest
SHA256 06a7b6d09751420b60c5f1b88f27eadbbbd63e8f25c0f71a40901dae3acf55d0
MD5 b5238f6e1273047af4580ba933780336
BLAKE2b-256 e0e9ef3bd60df7d602610ab1f67aa769b32f23913d4a4a8360ec2ce82635a110

See more details on using hashes here.

File details

Details for the file sen2venus_pytorch_dataset-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sen2venus_pytorch_dataset-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d2a323824187687254233989fb968db85a78daba3f32cfcf660e97d7340251f2
MD5 f9bb117d454fbec8e5a193a2aee28a1a
BLAKE2b-256 385097310f4d7ea6626f385bd7c04251f7ee00e8ad3e30f8457582a55864dc56

See more details on using hashes here.

Supported by

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