-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
78 lines (67 loc) · 2.85 KB
/
setup.py
File metadata and controls
78 lines (67 loc) · 2.85 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
# ---------------------------------------------------------------------
# Deployment files only (models and utilities)
# ---------------------------------------------------------------------
import os
import re
import setuptools
# ---------------------------------------------------------------------
BASE_DIR = os.path.dirname(__file__)
VERSION_RE = re.compile(r'''__version__ = ['"]([0-9.]+)['"]''')
def get_version():
init = open(os.path.join(BASE_DIR, "bfcnn", "__init__.py")).read()
return VERSION_RE.search(init).group(1)
with open("README.md") as f:
readme = f.read()
with open("LICENSE") as f:
licence_text = f.read()
# ---------------------------------------------------------------------
setuptools.setup(
name="bfcnn",
version=get_version(),
python_requires=">=3.6",
description="Bias Free Convolutional Neural Network "
"for blind image denoising",
long_description=readme,
author="Nikolas Markou",
author_email="nikolas.markou@electiconsulting.com",
license=licence_text,
packages=setuptools.find_packages(
exclude=[
"tests",
"images",
"notebooks"
]),
install_requires=[
"numpy",
"pandas",
"setuptools",
"scikit-learn",
"Pillow>=8.1.2",
"tensorflow>=2.10.0",
"matplotlib>=3.3.4",
"tensorflow-addons",
],
url="https://github.com/NikolasMarkou/blind_image_denoising",
include_package_data=True,
package_data={
"bfcnn": [
"configs/*.json",
# resnet_color_1x6_bn_16x3x3_256x256_l1_relu
"pretrained/resnet_color_1x6_bn_16x3x3_256x256_l1_relu/model.tflite",
"pretrained/resnet_color_1x6_bn_16x3x3_256x256_l1_relu/pipeline.json",
"pretrained/resnet_color_1x6_bn_16x3x3_256x256_l1_relu/saved_model/saved_model.pb",
"pretrained/resnet_color_1x6_bn_16x3x3_256x256_l1_relu/saved_model/variables/**",
# resnet_color_1x12_bn_16x3x3_256x256_l1_relu
"pretrained/resnet_color_1x12_bn_16x3x3_256x256_l1_relu/model.tflite",
"pretrained/resnet_color_1x12_bn_16x3x3_256x256_l1_relu/pipeline.json",
"pretrained/resnet_color_1x12_bn_16x3x3_256x256_l1_relu/saved_model/saved_model.pb",
"pretrained/resnet_color_1x12_bn_16x3x3_256x256_l1_relu/saved_model/variables/**",
# resnet_color_1x18_bn_16x3x3_256x256_l1_relu
"pretrained/resnet_color_1x18_bn_16x3x3_256x256_l1_relu/model.tflite",
"pretrained/resnet_color_1x18_bn_16x3x3_256x256_l1_relu/pipeline.json",
"pretrained/resnet_color_1x18_bn_16x3x3_256x256_l1_relu/saved_model/saved_model.pb",
"pretrained/resnet_color_1x18_bn_16x3x3_256x256_l1_relu/saved_model/variables/**"
]
},
)
# ---------------------------------------------------------------------