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 hashes)
Built Distribution
Close
Hashes for opensr_degradation-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f46944c7fec58be2aaab9f61acdde08b30aba3a832996844d76b3f578940ad1 |
|
MD5 | a0633f27a65dde102933e0455ddc1f2e |
|
BLAKE2b-256 | 620ad900a9da46095787673411b9b813cbc789add935bb68cf491db2d58f2da9 |