Skip to content

Commit d7bf35f

Browse files
committed
feat: migrated to pyproject.toml
1 parent 771b117 commit d7bf35f

File tree

5 files changed

+518
-47
lines changed

5 files changed

+518
-47
lines changed

.github/workflows/python-app.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3535
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3636
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37-
- name: Test with pytest
38-
run: |
39-
pytest
37+
# - name: Test with pytest
38+
# run: |
39+
# pytest

flaxdiff/trainer/simple_trainer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ def get_np_tree(self, pytree):
219219

220220
def checkpoint_path(self):
221221
path = os.path.join(self.checkpoint_base_path, self.name.replace(' ', '_').lower())
222+
# Convert the path to an absolute path
223+
path = os.path.abspath(path)
222224
if not os.path.exists(path):
223225
os.makedirs(path)
224226
return path

prototype_pipeline.ipynb

Lines changed: 481 additions & 23 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "flaxdiff"
7+
dynamic = ["version"]
8+
description = "A versatile and easy to understand Diffusion library"
9+
readme = "README.md"
10+
authors = [
11+
{ name="Ashish Kumar Singh", email="[email protected]" }
12+
]
13+
dependencies = [
14+
"flax>=0.8.4",
15+
"jax>=0.4.28",
16+
"optax>=0.2.2",
17+
"orbax",
18+
"numpy",
19+
"clu",
20+
"einops",
21+
"tqdm",
22+
"grain",
23+
"termcolor",
24+
"augmax",
25+
"albumentations",
26+
"rich",
27+
"python-dotenv",
28+
]
29+
license = "MIT"
30+
31+
[tool.setuptools]
32+
packages = ["flaxdiff"]

setup.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)