forked from roboflow/rf-detr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (124 loc) · 3.72 KB
/
pyproject.toml
File metadata and controls
139 lines (124 loc) · 3.72 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "rfdetr"
version = "1.4.1"
description = "RF-DETR"
readme = "README.md"
authors = [
{name = "Roboflow, Inc", email = "peter@roboflow.com"}
]
license = {text = "Apache License 2.0"}
requires-python = ">=3.10"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS"
]
keywords = ["machine-learning", "deep-learning", "vision", "ML", "DL", "AI", "DETR", "RF-DETR", "Roboflow"]
dependencies = [
"pycocotools",
"torch>=1.13.0,<=2.8.0", # TODO: Torch >=2.9.0 is excluded due to known issues. PRs that help lift this restriction are welcome.
"torchvision>=0.14.0",
"scipy",
"tqdm",
"numpy",
"transformers>4.0.0, <5.0.0",
"peft",
"polygraphy",
"rf100vl",
"pydantic",
"supervision",
"matplotlib",
"roboflow",
"pillow-avif-plugin<1.5.3" # TODO: # Temporary pin. pillow-avif-plugin 1.5.3 fails to install in CI due to a broken wheel. Remove once the upstream issue is fixed.
]
[project.optional-dependencies]
onnxexport = [
"onnx",
"onnxsim",
"onnx_graphsurgeon",
"onnxruntime"
]
metrics = [
"tensorboard>=2.13.0",
"wandb"
]
[dependency-groups]
build = [
"twine>=5.1.1",
"wheel>=0.40",
"build>=0.10"
]
tests = [
"pytest>=7.2.2,<9",
"pytest-cov>=4,<8",
]
docs = [
"mkdocs-material[imaging]>=9.7",
"mkdocstrings>=0.25.2,<0.30.0",
"mkdocstrings-python>=1.10.9",
"mike>=2.0.0",
"mkdocs-jupyter>=0.24.3",
"mkdocs-git-committers-plugin-2>=2.4.1; python_version >= '3.8' and python_version < '4'",
"mkdocs-git-revision-date-localized-plugin>=1.2.4"
]
[project.urls]
Homepage = "https://github.com/roboflow/rf-detr"
[project.scripts]
rfdetr = "rfdetr.cli.main:trainer"
[tool.setuptools.packages.find]
include = ["rfdetr*"]
[tool.setuptools]
include-package-data = false
[tool.setuptools.package-data]
rfdetr = ["py.typed", "models/backbone/dinov2_configs/*.json"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
]
extend-select = [
"I", # isort
]
ignore = [
"E501", # todo: will be fixed with enabling ruff-format
"E722", # todo: Do not use bare `except`
"E741", # todo: Ambiguous variable name: `...`
"F401", # todo: `...` imported but unused; consider removing, adding to `__all__`, or using a redundant alias
"F403", # todo: `from ... import *` used; unable to detect undefined names
"F405", # todo: `...` may be undefined, or defined from star imports
"E721", # todo: Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
"F821", # todo: Undefined name `...`
]
[tool.pytest.ini_options]
addopts = [
"-v", # verbose output
"--color=yes", # colored output
# "--doctest-modules", # TODO: run doctests from all modules
]
markers = [
"gpu: tests that require GPU or are slow on CPU",
]
[tool.codespell]
skip = "*.pth"