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-0.9.5.tar.gz
(35.0 MB
view details)
Built Distribution
File details
Details for the file opensr-degradation-0.9.5.tar.gz
.
File metadata
- Download URL: opensr-degradation-0.9.5.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 | 3a6128a77cb3ecf52e83064a3dc6a9931180567edc0701738f7297f8ed839cc9 |
|
MD5 | 221c6a8df7cd2b374b37cfed72d7ad20 |
|
BLAKE2b-256 | e7271de10668eef7b5d1902be193c5b53493115a43fc5475c9639100edbc1b63 |
File details
Details for the file opensr_degradation-0.9.5-py3-none-any.whl
.
File metadata
- Download URL: opensr_degradation-0.9.5-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 | e24c3d270d779c5540cfbc5c9cd7e56904dcf59ffbd2197c54970a5b63d05c49 |
|
MD5 | da1210981a174cd75fa72d580f184c00 |
|
BLAKE2b-256 | bd68eef178da540dcc9c5b79c935e391d99f3b777e7794d8fe12fcd3b8da56f2 |