forked from phamquiluan/ResidualMaskingNetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·51 lines (45 loc) · 1.3 KB
/
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
46
47
48
49
50
51
import os
from setuptools import find_packages, setup
version = None
with open("README.md") as ref:
data = ref.readlines()[5]
version_prefix = "version-v"
version = data[data.find(version_prefix) + len(version_prefix) : data.find("-blue")]
assert version is not None, data
cwd = os.path.dirname(os.path.abspath(__file__))
version_path = os.path.join(cwd, "rmn", "version.py")
with open(version_path, "w") as ref:
ref.write(f"__version__ = '{version}'\n")
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
setup(
name="rmn",
description="Facial Expression Recognition using Residual Masking Network",
url="https://github.com/phamquiluan/ResidualMaskingNetwork",
long_description=long_description,
long_description_content_type="text/markdown",
version=version,
author="Luan Pham",
author_email="[email protected]",
packages=find_packages(
exclude=[
"docs",
"tests",
"env",
"script",
"trainers",
"utils",
"pretrained_ckpt",
]
),
include_package_data=True,
install_requires=[
"numpy",
"opencv-python",
"torch",
"torchvision",
"requests",
"pytorchcv",
"tqdm",
],
)