Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
86 lines (83 loc) · 2.54 KB
/
Copy pathsetup.py
File metadata and controls
86 lines (83 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
from setuptools import setup, find_packages
TEST_REQUIREMENTS = [
"pytest>=8.0.0,<10.0",
"pytest-cov>=7.0.0,<8.0",
"coverage[toml]>=7.10.6,<8.0",
]
# read the contents of README file
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
setup(
name="opensr-model",
version="1.2.2",
author="Simon Donike, Cesar Aybar, Luis Gomez Chova, Freddie Kalaitzis",
author_email="accounts@donike.net",
description="ESA OpenSR Diffusion model package for Super-Resolution of Sentinel-2 Imagery",
url="https://opensr.eu",
project_urls={"Source Code": "https://github.com/ESAopenSR/opensr-model"},
license="MIT",
python_requires=">=3.12",
packages=find_packages(),
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=[
"numpy>=1.26.0",
"einops>=0.7.0",
"rasterio>=1.4.0",
"tqdm>=4.66.0",
"torch>=2.2.0",
"diffusers>=0.30.3",
"scikit-image>=0.22.0",
"pytorch-lightning>=2.2.0,<3.0",
"requests>=2.31.0",
"omegaconf>=2.3.0",
"matplotlib>=3.8.0",
],
extras_require={
"dpm": [], # Compatibility alias; Diffusers is now a base dependency.
"train": [
"Pillow>=10.2.0",
"tacoreader>=2.4.0,<3.0",
"pandas>=2.2.0",
"fsspec>=2024.2.0",
"torchmetrics>=1.3.0",
"torchvision>=0.17.0",
"lpips>=0.1.4",
"tensorboard>=2.16.0",
],
"wandb": [
"wandb>=0.17.0",
],
"test": TEST_REQUIREMENTS,
"dev": [
*TEST_REQUIREMENTS,
"black==26.10.1",
"pre-commit>=4.0.0,<5.0",
],
"hpc": [
"PyYAML>=6.0",
"pyproj>=3.4",
"pyshp>=2.3.1",
"rioxarray>=0.15",
"shapely>=2.0.2",
"cubo>=0.3",
"opensr-utils>=1.0.0",
],
},
entry_points={
"console_scripts": [
"opensr-hpc=deployment.opensr_hpc.cli:main",
"opensr-train=opensr_model.training.cli:main",
"opensr-train-autoencoder=opensr_model.training.cli:autoencoder_main",
"opensr-train-diffusion=opensr_model.training.cli:diffusion_main",
],
},
package_data={
"opensr_model": [
"configs/*.yaml",
"configs/training_configs/train_*.yaml",
"configs/training_configs/*.json",
],
"deployment.opensr_hpc": ["slurm/*.sh"],
},
)