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

Install with:

pip install sen2venus-pytorch-dataset

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:

pip install sen2venus-pytorch-dataset

or if you want to clone it first (e.g. to try out the examples):

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

📖 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.4.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for sen2venus-pytorch-dataset-0.0.4.tar.gz
Algorithm Hash digest
SHA256 bf932d0c9bf2714a73c8875af9956b46de356fed28c611251f3d34f3d5789372
MD5 034e0f38732cd31ae62577c51c8a3d7e
BLAKE2b-256 273bebfa3ed5a4869c51a1ec481a0b446e70067557648dd1af81169684c37ddd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sen2venus_pytorch_dataset-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d554ad2f9f0ee0ab5c073b1cfa35fb757137c2e9ef7b1c7a7c8be4bedaf0c7b1
MD5 20153ec8c557ae6d061b2af12ef06ebb
BLAKE2b-256 7a3b07390b31a572ae049d9ca266cfe632faac2d5364636b09d52314a4236531

See more details on using hashes here.

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