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()
✅ 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 therededge
subset to load the x2 or the x4 low (Sentinel-2) and high (Venus) resolution patches, or specifyall
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
DataArray
s -
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sen2venus-pytorch-dataset-0.0.4.tar.gz
.
File metadata
- Download URL: sen2venus-pytorch-dataset-0.0.4.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf932d0c9bf2714a73c8875af9956b46de356fed28c611251f3d34f3d5789372 |
|
MD5 | 034e0f38732cd31ae62577c51c8a3d7e |
|
BLAKE2b-256 | 273bebfa3ed5a4869c51a1ec481a0b446e70067557648dd1af81169684c37ddd |
File details
Details for the file sen2venus_pytorch_dataset-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: sen2venus_pytorch_dataset-0.0.4-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d554ad2f9f0ee0ab5c073b1cfa35fb757137c2e9ef7b1c7a7c8be4bedaf0c7b1 |
|
MD5 | 20153ec8c557ae6d061b2af12ef06ebb |
|
BLAKE2b-256 | 7a3b07390b31a572ae049d9ca266cfe632faac2d5364636b09d52314a4236531 |