A set of methods to emulate Sentinel-2 based on High-Resolution imagery
Project description
opensr-degradation
A set of methods to emulate Sentinel-2 based on High-Resolution imagery
Install
pip install opensr-degradation
Usage
import opensr_degradation
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.4.tar.gz
(35.0 MB
view hashes)
Built Distribution
Close
Hashes for opensr_degradation-0.9.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5222032da13092dd430aee8a8b02853b6c898676d6b0737aaeddd7e74a219ad |
|
MD5 | d822f9235f0edfeac010027ef4665ea8 |
|
BLAKE2b-256 | 4493f14e1b6c358cf84d3c3ecaf387ed20f3f3e9cf2ee48e12b689e11a37357d |