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)
| File | Size | Uploaded | |
|---|---|---|---|
| opensr-degradation-1.0.1.tar.gz | 35.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|