-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (37 loc) · 958 Bytes
/
setup.py
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
# setup.py for SEnSeIv2
from setuptools import setup, find_packages
import os
REQUIRED = [
"huggingface-hub >= 0.17",
"numpy",
"matplotlib >= 3.6.2",
"pyyaml >= 6.0",
"rasterio >= 1.3.4",
"scikit-image >= 0.19.3",
"segmentation-models-pytorch == 0.3.2",
"six",
"torchmetrics >= 1.1",
"transformers >= 4.34.0",
"wandb >= 0.15.12"
]
def package_files(directory):
paths = []
for (r, d, f) in os.walk(directory):
for filename in f:
paths.append(os.path.join('..', r, filename))
return paths
# extra_files = package_files('hf_models')
setup(
name='senseiv2',
packages=find_packages(exclude=['hf_models/*']),
# package_data={'': extra_files},
entry_points={
'console_scripts': [
'senseiv2 = senseiv2.inference:main'
]
},
version='0.1',
description='SEnSeIv2',
author='Alistair Francis',
install_requires=REQUIRED,
)