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.1.tar.gz
(35.0 MB
view details)
Built Distribution
File details
Details for the file opensr-degradation-1.0.1.tar.gz
.
File metadata
- Download URL: opensr-degradation-1.0.1.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 | 7072997e235fd6729d5918a199276d19da82cf8cb2cb296d6cfd22e0c7a36d21 |
|
MD5 | 9c29e5c013c86caacc1ad4c9152675a4 |
|
BLAKE2b-256 | 7071a6a13bc9f3e87e51dd429cedd37cd7ef3802e46a6e1d9459353bea094882 |
File details
Details for the file opensr_degradation-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: opensr_degradation-1.0.1-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 | 7b1c8027b74aaac0b15cccfc981b8e784dbae147fcb478cd35b83e66870ea516 |
|
MD5 | 9468e54faeef35ae5755523cfaf3e0be |
|
BLAKE2b-256 | 5ba33b320a96047a2296b6c09ae970ef73e1c851c23e0c8d9e510ed1efbcf3c1 |