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
146 lines (131 loc) · 3.65 KB
/
pyproject.toml
File metadata and controls
146 lines (131 loc) · 3.65 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
140
141
142
143
144
145
146
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "rfdetr"
version = "1.5.1"
description = "RF-DETR"
readme = "README.md"
authors = [
{name = "Roboflow, Inc", email = "develop@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 = [
"requests",
"pycocotools",
"torch>=2.0.0",
"torchvision>=0.14.0",
"scipy",
"tqdm",
"transformers>=5.0.0",
"peft",
"rf100vl",
"pydantic",
"supervision",
"matplotlib",
"roboflow",
"albumentations>=1.0.0,<2.0.0"
]
[project.optional-dependencies]
onnxexport = [
"onnx>=1.16.0,<1.20",
"onnxsim<0.6.0", # TODO: onnxsim 0.6.0+ hangs on install
"onnx_graphsurgeon",
"onnxruntime",
"polygraphy"
]
metrics = [
"tensorboard>=2.13.0",
"wandb",
"mlflow",
"clearml"
]
plus = ["rfdetr_plus>=1.0.1, <2.0.0"]
[dependency-groups]
build = [
"twine>=5.1.1",
"wheel>=0.40",
"build>=0.10"
]
tests = [
"pytest>=7.2.2,<9",
"pytest-cov>=4,<8",
"pytest-xdist>=3.6.1,<4",
"pytest-rerunfailures>=10,<15",
]
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",
"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]
where = ["src"]
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", # run doctests from all modules
]
pythonpath = ["src"]
markers = [
"gpu: tests that require GPU or are slow on CPU",
]
[tool.codespell]
skip = "*.pth"