Skip to main content

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 hashes)

Uploaded Source

Built Distribution

opensr_degradation-1.0.1-py3-none-any.whl (35.0 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page