Skip to content

Commit bc91ce1

Browse files
committed
Updates to make torchcfm pip installable
1 parent 734a711 commit bc91ce1

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,5 @@ slurm*.out
171171
*.jpg
172172

173173
notebooks/figures/
174+
175+
.DS_Store

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ scipy
88
scikit-learn
99
scprep
1010
scanpy
11-
timm
1211
torchdyn>=1.0.7 # 1.0.4 is broken on pypi
1312
pot
14-
torchdiffeq==0.2.3
13+
torchdiffeq
1514
absl-py
1615
clean-fid

setup.py

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,36 @@
44

55
from setuptools import find_packages, setup
66

7+
install_requires = [
8+
"torch>=1.11.0",
9+
"torchvision>=0.11.0",
10+
"lightning-bolts",
11+
"matplotlib",
12+
"numpy",
13+
"scipy",
14+
"scikit-learn",
15+
"scprep",
16+
"scanpy",
17+
"torchdyn",
18+
"pot",
19+
"torchdiffeq",
20+
"absl-py",
21+
"clean-fid",
22+
]
23+
724
version_py = os.path.join(os.path.dirname(__file__), "torchcfm", "version.py")
825
version = open(version_py).read().strip().split("=")[-1].replace('"', "").strip()
26+
readme = open("README.md").read()
927
setup(
1028
name="torchcfm",
1129
version=version,
1230
description="Conditional Flow Matching for Fast Continuous Normalizing Flow Training.",
13-
author="Alexander Tong",
31+
author="Alexander Tong, Kilian Fatras",
1432
author_email="alexandertongdev@gmail.com",
1533
url="https://github.com/atong01/conditional-flow-matching",
16-
install_requires=["torch", "pot", "numpy", "torchdyn"],
34+
install_requires=install_requires,
35+
license="MIT",
36+
long_description=readme,
37+
long_description_content_type="text/markdown",
1738
packages=find_packages(),
1839
)

0 commit comments

Comments
 (0)