-
Notifications
You must be signed in to change notification settings - Fork 32
/
pyproject.toml
59 lines (52 loc) · 1.33 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools>=70.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests*", "*clis*"]
[project]
name = "ml_mdm"
authors = [{name = "Apple"}]
readme = "README.md"
version = "1.0"
requires-python = ">3.8"
description = "A python package to simplify the creation of text conditioned image diffusion models"
dependencies = [
"dataclass-wizard",
"einops",
"fastapi>=0.109.1", # Required due to CVE-2024-24762
"gradio>=4.14", # Required due to CVE-2023-6572
"httpx==0.24.1",
"imageio[ffmpeg]",
"matplotlib",
"mlx-data",
"numpy<2",
"pytorch-model-summary",
"rotary-embedding-torch",
"simple-parsing==0.1.5",
"tensorboardX==2.6.2.2",
"tensorboard==2.16.2",
"torchinfo",
"torchmetrics[image]",
"torchvision>=0.20.1",
"transformers",
"sentencepiece",
"boto3",
"torch>=2.5.1",
"pytest",
"pytest-cov",
"pre-commit"
]
[project.optional-dependencies]
data_prep = [
"img2dataset"
]
[tool.isort]
profile = "black"
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "NUMERIC", "FIRSTPARTY", "LOCALFOLDER"]
known_numeric = ["torch", "torchvision", "numpy", "jax", "flax", "mlx"]
[tool.pytest.ini_options]
addopts = "--cov=ml_mdm -m 'not gpu'"
markers = [
"gpu" # tests that require a gpu
]