Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

pyproject.toml 7.4 KB

You have to be logged in to leave a comment. Sign In
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
  1. # Ultralytics YOLO 🚀, AGPL-3.0 license
  2. # Overview:
  3. # This pyproject.toml file manages the build, packaging, and distribution of the Ultralytics library.
  4. # It defines essential project metadata, dependencies, and settings used to develop and deploy the library.
  5. # Key Sections:
  6. # - [build-system]: Specifies the build requirements and backend (e.g., setuptools, wheel).
  7. # - [project]: Includes details like name, version, description, authors, dependencies and more.
  8. # - [project.optional-dependencies]: Provides additional, optional packages for extended features.
  9. # - [tool.*]: Configures settings for various tools (pytest, yapf, etc.) used in the project.
  10. # Installation:
  11. # The Ultralytics library can be installed using the command: 'pip install ultralytics'
  12. # For development purposes, you can install the package in editable mode with: 'pip install -e .'
  13. # This approach allows for real-time code modifications without the need for re-installation.
  14. # Documentation:
  15. # For comprehensive documentation and usage instructions, visit: https://docs.ultralytics.com
  16. [build-system]
  17. requires = ["setuptools>=57.0.0", "wheel"]
  18. build-backend = "setuptools.build_meta"
  19. # Project settings -----------------------------------------------------------------------------------------------------
  20. [project]
  21. name = "ultralytics"
  22. dynamic = ["version"]
  23. description = "Ultralytics YOLOv8 for SOTA object detection, multi-object tracking, instance segmentation, pose estimation and image classification."
  24. readme = "README.md"
  25. requires-python = ">=3.8"
  26. license = { "text" = "AGPL-3.0" }
  27. keywords = ["machine-learning", "deep-learning", "computer-vision", "ML", "DL", "AI", "YOLO", "YOLOv3", "YOLOv5", "YOLOv8", "HUB", "Ultralytics"]
  28. authors = [
  29. { name = "Glenn Jocher" },
  30. { name = "Ayush Chaurasia" },
  31. { name = "Jing Qiu" }
  32. ]
  33. maintainers = [
  34. { name = "Glenn Jocher" },
  35. { name = "Ayush Chaurasia" },
  36. { name = "Jing Qiu" }
  37. ]
  38. classifiers = [
  39. "Development Status :: 4 - Beta",
  40. "Intended Audience :: Developers",
  41. "Intended Audience :: Education",
  42. "Intended Audience :: Science/Research",
  43. "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
  44. "Programming Language :: Python :: 3",
  45. "Programming Language :: Python :: 3.8",
  46. "Programming Language :: Python :: 3.9",
  47. "Programming Language :: Python :: 3.10",
  48. "Programming Language :: Python :: 3.11",
  49. "Programming Language :: Python :: 3.12",
  50. "Topic :: Software Development",
  51. "Topic :: Scientific/Engineering",
  52. "Topic :: Scientific/Engineering :: Artificial Intelligence",
  53. "Topic :: Scientific/Engineering :: Image Recognition",
  54. "Operating System :: POSIX :: Linux",
  55. "Operating System :: MacOS",
  56. "Operating System :: Microsoft :: Windows",
  57. ]
  58. # Required dependencies ------------------------------------------------------------------------------------------------
  59. dependencies = [
  60. "numpy>=1.23.0,<2.0.0", # temporary patch for compat errors https://github.com/ultralytics/yolov5/actions/runs/9538130424/job/26286956354
  61. "matplotlib>=3.3.0",
  62. "opencv-python>=4.6.0",
  63. "pillow>=7.1.2",
  64. "pyyaml>=5.3.1",
  65. "requests>=2.23.0",
  66. "scipy>=1.4.1",
  67. "torch>=1.8.0,<2.4.0; sys_platform == 'win32'", # Windows CPU errors https://github.com/ultralytics/ultralytics/issues/15049
  68. "torch>=1.8.0",
  69. "torchvision>=0.9.0",
  70. "tqdm>=4.64.0", # progress bars
  71. "psutil", # system utilization
  72. "py-cpuinfo", # display CPU info
  73. "pandas>=1.1.4",
  74. "seaborn>=0.11.0", # plotting
  75. "ultralytics-thop>=2.0.0", # FLOPs computation https://github.com/ultralytics/thop
  76. ]
  77. # Optional dependencies ------------------------------------------------------------------------------------------------
  78. [project.optional-dependencies]
  79. dev = [
  80. "ipython",
  81. "pytest",
  82. "pytest-cov",
  83. "coverage[toml]",
  84. "mkdocs>=1.6.0",
  85. "mkdocs-material>=9.5.9",
  86. "mkdocstrings[python]",
  87. "mkdocs-jupyter", # notebooks
  88. "mkdocs-redirects", # 301 redirects
  89. "mkdocs-ultralytics-plugin>=0.1.6", # for meta descriptions and images, dates and authors
  90. "mkdocs-macros-plugin>=1.0.5" # duplicating content (i.e. export tables) in multiple places
  91. ]
  92. export = [
  93. "onnx>=1.12.0", # ONNX export
  94. "coremltools>=7.0; platform_system != 'Windows' and python_version <= '3.11'", # CoreML supported on macOS and Linux
  95. "openvino>=2024.0.0", # OpenVINO export
  96. "tensorflow>=2.0.0", # TF bug https://github.com/ultralytics/ultralytics/issues/5161
  97. "tensorflowjs>=3.9.0", # TF.js export, automatically installs tensorflow
  98. "tensorstore>=0.1.63; platform_machine == 'aarch64' and python_version >= '3.9'", # for TF Raspberry Pi exports
  99. "keras", # not installed automatically by tensorflow>=2.16
  100. "flatbuffers>=23.5.26,<100; platform_machine == 'aarch64'", # update old 'flatbuffers' included inside tensorflow package
  101. "numpy==1.23.5; platform_machine == 'aarch64'", # fix error: `np.bool` was a deprecated alias for the builtin `bool` when using TensorRT models on NVIDIA Jetson
  102. "h5py!=3.11.0; platform_machine == 'aarch64'", # fix h5py build issues due to missing aarch64 wheels in 3.11 release
  103. ]
  104. explorer = [
  105. "lancedb", # vector search
  106. "duckdb<=0.9.2", # SQL queries, duckdb==0.10.0 bug https://github.com/ultralytics/ultralytics/pull/8181
  107. "streamlit", # visualizing with GUI
  108. ]
  109. logging = [
  110. "comet", # https://docs.ultralytics.com/integrations/comet/
  111. "tensorboard>=2.13.0",
  112. "dvclive>=2.12.0",
  113. ]
  114. extra = [
  115. "hub-sdk>=0.0.8", # Ultralytics HUB
  116. "ipython", # interactive notebook
  117. "albumentations>=1.4.6", # training augmentations
  118. "pycocotools>=2.0.7", # COCO mAP
  119. ]
  120. [project.urls]
  121. "Bug Reports" = "https://github.com/ultralytics/ultralytics/issues"
  122. "Funding" = "https://ultralytics.com"
  123. "Source" = "https://github.com/ultralytics/ultralytics/"
  124. [project.scripts]
  125. yolo = "ultralytics.cfg:entrypoint"
  126. ultralytics = "ultralytics.cfg:entrypoint"
  127. # Tools settings -------------------------------------------------------------------------------------------------------
  128. [tool.setuptools] # configuration specific to the `setuptools` build backend.
  129. packages = { find = { where = ["."], include = ["ultralytics", "ultralytics.*"] } }
  130. package-data = { "ultralytics" = ["**/*.yaml", "../tests/*.py"], "ultralytics.assets" = ["*.jpg"] }
  131. [tool.setuptools.dynamic]
  132. version = { attr = "ultralytics.__version__" }
  133. [tool.pytest.ini_options]
  134. addopts = "--doctest-modules --durations=30 --color=yes"
  135. markers = [
  136. "slow: skip slow tests unless --slow is set",
  137. ]
  138. norecursedirs = [".git", "dist", "build"]
  139. [tool.coverage.run]
  140. source = ["ultralytics/"]
  141. data_file = "tests/.coverage"
  142. omit = ["ultralytics/utils/callbacks/*"]
  143. [tool.isort]
  144. line_length = 120
  145. multi_line_output = 0
  146. [tool.yapf]
  147. based_on_style = "pep8"
  148. spaces_before_comment = 2
  149. column_limit = 120
  150. coalesce_brackets = true
  151. spaces_around_power_operator = true
  152. space_between_ending_comma_and_closing_bracket = true
  153. split_before_closing_bracket = false
  154. split_before_first_argument = false
  155. [tool.ruff]
  156. line-length = 120
  157. [tool.ruff.format]
  158. docstring-code-format = true
  159. [tool.docformatter]
  160. wrap-summaries = 120
  161. wrap-descriptions = 120
  162. pre-summary-newline = true
  163. close-quotes-on-newline = true
  164. in-place = true
  165. [tool.codespell]
  166. ignore-words-list = "crate,nd,ned,strack,dota,ane,segway,fo,gool,winn,commend,bloc,nam,afterall"
  167. skip = '*.pt,*.pth,*.torchscript,*.onnx,*.tflite,*.pb,*.bin,*.param,*.mlmodel,*.engine,*.npy,*.data*,*.csv,*pnnx*,*venv*,*translat*,__pycache__*,*.ico,*.jpg,*.png,*.mp4,*.mov,/runs,/.git,./docs/??/*.md,./docs/mkdocs_??.yml'
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...