A set of methods to emulate Sentinel-2 based on High-Resolution imagery
Project description
opensr-degradation
Install
pip install opensr-degradation
Usage
import opensr_degradation
import torch
degradation_model = opensr_degradation.pipe(
sensor="naip_d",
add_noise=True,
params={
"method": [
"identity",
"gamma_lognormal",
"gamma_multivariate_normal",
"unet_histogram_matching",
"vae_histogram_matching",
],
"device": "cuda",
"seed": 42,
"percentiles": [10, 25, 50, 75, 90],
},
)
image = torch.rand(4, 256, 256)
lr, hr = degradation_model(image)
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
opensr-degradation-1.0.0.tar.gz
(35.0 MB
view details)
Built Distribution
File details
Details for the file opensr-degradation-1.0.0.tar.gz
.
File metadata
- Download URL: opensr-degradation-1.0.0.tar.gz
- Upload date:
- Size: 35.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/7.0.1 keyring/24.3.1 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.31.0 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff7d7175a50e113a2bc6557f2390e225a67e7a16a33d969b9d49a4375640dab9 |
|
MD5 | 5aa63c418a9c0e39ba370dd7ed0b7480 |
|
BLAKE2b-256 | 0a49350e8688ef26c739a0f59f5309d27e172263872f06afd63561ceae650f3e |
File details
Details for the file opensr_degradation-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: opensr_degradation-1.0.0-py3-none-any.whl
- Upload date:
- Size: 35.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/7.0.1 keyring/24.3.1 pkginfo/1.9.6 readme-renderer/34.0 requests-toolbelt/1.0.0 requests/2.31.0 rfc3986/1.5.0 tqdm/4.66.1 urllib3/1.26.5 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f46944c7fec58be2aaab9f61acdde08b30aba3a832996844d76b3f578940ad1 |
|
MD5 | a0633f27a65dde102933e0455ddc1f2e |
|
BLAKE2b-256 | 620ad900a9da46095787673411b9b813cbc789add935bb68cf491db2d58f2da9 |