Skip to main content

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)

Metadata

Release files for opensr-degradation 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opensr-degradation 1.0.1
File Size Uploaded
opensr-degradation-1.0.1.tar.gz 35.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for opensr-degradation 1.0.1
File Interpreter ABI Platform
opensr_degradation-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 70.1 MB

Release files / opensr-degradation-1.0.1.tar.gz

Download URL opensr-degradation-1.0.1.tar.gz
Size 35.0 MB
Tags Source
SHA-256 checksum
How to use checksums
7072997e235fd6729d5918a199276d19da82cf8cb2cb296d6cfd22e0c7a36d21
BLAKE2b-256 checksum
How to use checksums
7071a6a13bc9f3e87e51dd429cedd37cd7ef3802e46a6e1d9459353bea094882
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / opensr_degradation-1.0.1-py3-none-any.whl

Download URL opensr_degradation-1.0.1-py3-none-any.whl
Size 35.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7b1c8027b74aaac0b15cccfc981b8e784dbae147fcb478cd35b83e66870ea516
BLAKE2b-256 checksum
How to use checksums
5ba33b320a96047a2296b6c09ae970ef73e1c851c23e0c8d9e510ed1efbcf3c1
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page