-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (61 loc) · 1.92 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import codecs
import os
import os.path
import setuptools
with open("requirements.txt") as fh:
requirements = [line.strip() for line in fh.readlines()]
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
franka_requires = [
"spatialmath-rospy",
"robot_io",
"pyrealsense2",
"roboticstoolbox-python",
]
diffusion_requires = [
"einops==0.4.1",
"diffusers==0.11.1",
]
maniskill_requires = [
"maniskill2",
]
rlbench_requires = [
"rlbench",
]
setuptools.setup(
name="tapas_gmm",
version=get_version("tapas_gmm/__init__.py"),
author="Jan Ole von Hartz",
description="PyTorch implementation of TAPAS GMM",
long_description=read("README.md"),
url="http://tapas-gmm.cs.uni-freiburg.de",
install_requires=requirements,
extras_require={
"franka": franka_requires,
"diffusion": diffusion_requires,
"maniskill": maniskill_requires,
"rlbench": rlbench_requires,
},
packages=setuptools.find_packages(),
python_requires=">=3.10",
entry_points={
"console_scripts": [
"tapas-bc = tapas_gmm.behavior_cloning:entry_point",
"tapas-collect = tapas_gmm.collect_data:entry_point",
"tapas-collect-rlbench = tapas_gmm.collect_rlbench:entry_point",
"tapas-embed = tapas_gmm.embed_trajectories:entry_point",
"tapas-eval = tapas_gmm.evaluate:entry_point",
"tapas-kp-encode = tapas_gmm.kp_encode_trajectories:entry_point",
"tapas-pretrain = tapas_gmm.pretrain:entry_point",
]
},
)