BigEarthNet Patch Interface
A simple interface class that includes all the relevant information about BigEarthNet patches.
A common issue when using a BigEarthNet archive is that the code to load a patch is
- Slow
- The necessary libraries to load the data have complex dependencies and cause issues with popular deep-learning libraries
- The issue is often caused by a binary mismatch between the underlying
numpyversions
- The issue is often caused by a binary mismatch between the underlying
- Hard to understand how to access the optimized data
A popular approach is to use the key-value storage LMDB. The patch names are set as keys, and the value is somehow encoded. Decoding the values is a common source of bugs when different deep-learning libraries are used.
The goal of this repository is to alleviate this issue.
The actual image data will be encoded as numpy arrays to support the most popular deep-learning libraries.
Usually, these arrays can be loaded without copying the underlying data.
The provided patch interface will define a Python class containing the relevant bands, encoded as an np.ndarray, and may include some metadata.
The interface class allows for fast introspection, validation, and data loading.
It is easier to convert this intermediate data format to a more deep-learning optimized format or use the class itself for embedding in a key-value storage format like LMDB. Please refer to the official {{BenEncoder}} documentation for details on how to generate various output formats.
In general, the encoding pipeline is as follows:
- Convert the BigEarthNet patches into numpy arrays
- Use these arrays to initialize the interface class
- Provide any additional metadata information to the interface
- Serialize/convert the data to the desired output format
The decoder should be as simple as possible with minimal dependencies. Ideally, the correct usage of the decoder should also be depicted in the corresponding {{BenEncoder}} section.
:::{note} This interface is tightly coupled with the {{BenEncoder}} libary!
The main reason for providing this interface as a standalone package is to minimize the required dependencies of a user that wants to load/use already encoded patches. Creating the interface from the raw data requires heavy libraries that often cause binary conflicts. The interface class can be installed as a standalone library and only requires the (easier to install) decoder libraries.
:::
Metadata
Release files for bigearthnet-patch-interface 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bigearthnet-patch-interface-0.1.2.tar.gz | 139.0 kB | Without provenance | Details for bigearthnet-patch-interface-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bigearthnet_patch_interface-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for bigearthnet_patch_interface-0.1.2-py3-none-any.whl |
Total release size: 280.0 kB
Release files / bigearthnet-patch-interface-0.1.2.tar.gz
| Download URL | bigearthnet-patch-interface-0.1.2.tar.gz |
|---|---|
| Size | 139.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f31a3ab3504ed5e72462e517aca804fce5aad2f3499fcc451ad75198e429bcc3
|
|
BLAKE2b-256 checksum How to use checksums |
eb7578db9ade30aecdde99c75259812a5f5e1dc50391e169437c6544a54d84eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.1.5 CPython/3.8.14
|
Release files / bigearthnet_patch_interface-0.1.2-py3-none-any.whl
| Download URL | bigearthnet_patch_interface-0.1.2-py3-none-any.whl |
|---|---|
| Size | 140.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1dc1a5401b9e29c6d3b0de32f5b032762a6c6b13e1404970e6b33557df2eb384
|
|
BLAKE2b-256 checksum How to use checksums |
4215ea719235134ea5ead52d650b01ff7cd3f68f1618d9009b5c68a93aeb3009
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.1.5 CPython/3.8.14
|
Security for bigearthnet-patch-interface 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.