EUROSAT dataset loaders
Project description
EUROSAT deel dataset plugin
This project implements the EUROSAT dataset plugin for the DEEL dataset manager.
A deel dataset plugin is an extension of the Dataset class defined in the DEEL dataset manager project.
It allows to access to specific dataset files using the load method and other defined modes.
EUROSAT dataset plugin use the default mode pathto load EuroSAT.zip using the http protocol.
Installation
The latest release can be installed from pypi. All needed python packages will also be installed as a dependency.
pip install eurosat-dataset
Otherwize the ssh or HTTPS version should work but you will have to enter your credentials manually:
# SSH version (with proper SSH key setup):
pip install git+ssh://git@github.com:deel-ai/eurosat_dataset.git
# HTTPS version:
pip install git+https://github.com/deel-ai/eurosat_dataset.git
Note: EUROSAT dataset loading name is eurosat.
Examples of usage
Basic usage
To load EUROSAT dataset, you can simply do:
import deel.datasets
# Load the default mode of eurosat dataset:
eurosat_data_path = deel.datasets.load("eurosat")
The deel.datasets.load function is the basic entry to access the datasets.
By passing with_info=True, extra information can be retrieved as a python
dictionary. Information are not standardized, so each dataset may provide
different ones:
The mode argument can be used to load different "version" of the dataset. By default,
only the path mode is available and will return the path to the local folder
containing the dataset.
Command line utilities
The deel-datasets package comes with some command line utilities that can be accessed using:
python -m deel.datasets ARGS...
The --help option can be used to view the full capabilities of the command line program.
By default, the program uses the configuration at $HOME/.deel/config.yml, but the -c
argument can be used to specified a custom configuration file.
The following commands are available (not exhaustive):
list— List the available datasets. If the configuration specify a remote provider (e.g., WebDAV), this will list the datasets available remotely. To list the dataset already downloaded, you can use the--localoption.
$ python -m deel.datasets list
Listing datasets at https://datasets.deel.ai:
dataset-a: 3.0.1 [latest], 3.0.0
dataset-b: 1.0 [latest]
dataset-c: 1.0 [latest]
$ python -m deel.datasets list --local
Listing datasets at /local_path_to/datasets:
dataset-a: 3.0.1 [latest], 3.0.0
eurosat: 1.0.0 [latest]
-
download NAME[:VERSION]— Download the specified dataset. If the configuration does not specify a remote provider, this does nothing except outputing some information. The:VERSIONcan be omitted, in which case:latestis implied. To force the re-download of a dataset, the--forceoption can be used.Example
$ python -m deel.datasets download eurosat
Fetching eurosat...
EuroSAT.zip: 100%|██████████████████████████████████████████████████| 89.9M/89.9M [00:56<00:00, 1.67Mbytes/s]
Dataset eurosat loaded and stored at '/home/justin.plakoo/.deel/datasets/eurosat/1.0.0'.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eurosat-dataset-0.0.2.tar.gz.
File metadata
- Download URL: eurosat-dataset-0.0.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abc681125804d34ebe73591859b7205807bbfbf26d8ed3f00e363c50d6cb010f
|
|
| MD5 |
a0ae1295da5c9cbbce9fe42efe1401e3
|
|
| BLAKE2b-256 |
88d25da0abf8305419e230c321d7f7874a40912da083c86c0aa219fdab53de7e
|
File details
Details for the file eurosat_dataset-0.0.2-py3-none-any.whl.
File metadata
- Download URL: eurosat_dataset-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50720423478f1ae21d4a4c703e049f5cd56013220ce0bbe200cff5f0bc00ba75
|
|
| MD5 |
9f7801a23d3a7676cb9ba0654a8dd5c3
|
|
| BLAKE2b-256 |
9afad1fdbeac9addc1425b48e4d9e0fb32740590e44af5227483abecc3fda0d1
|