Skip to content

Commit 4f79d29

Browse files
authored
supervision-0.13.0 release
`supervision-0.13.0` release
2 parents 800e39d + d866236 commit 4f79d29

File tree

26 files changed

+1784
-177
lines changed

26 files changed

+1784
-177
lines changed

ā€ŽCONTRIBUTING.mdā€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ Before you contribute a new feature, consider submitting an Issue to discuss the
2424

2525
## How to Contribute Changes
2626

27-
First, fork this repository to your own GitHub account. Create a new branch that describes your changes (i.e. `line-counter-docs`). Push your changes to the branch on your fork and then submit a pull request to this repository.
27+
First, fork this repository to your own GitHub account. Create a new branch that describes your changes (i.e. `line-counter-docs`). Push your changes to the branch on your fork and then submit a pull request to `develop` branch of this repository.
2828

2929
When creating new functions, please ensure you have the following:
3030

3131
1. Docstrings for the function and all parameters.
3232
2. Unit tests for the function.
3333
3. Examples in the documentation for the function.
3434
4. Created an entry in our docs to autogenerate the documentation for the function.
35+
5. Please share google colab with minimal code to test new feature or reproduce PR whenever it is possible. Please ensure that google colab can be accessed without any issue.
3536

3637
All pull requests will be reviewed by the maintainers of the project. We will provide feedback and ask for changes if necessary.
3738

@@ -48,4 +49,4 @@ So far, **there is no types checking with mypy**. See [issue](https://github.com
4849

4950
## 🧪 tests
5051

51-
[`pytests`](https://docs.pytest.org/en/7.1.x/) is used to run our tests.
52+
[`pytests`](https://docs.pytest.org/en/7.1.x/) is used to run our tests.

ā€ŽREADME.mdā€Ž

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Pip install the supervision package in a
3131
pip install supervision[desktop]
3232
```
3333

34-
Read more about desktop, headless and local installation in our [guide](https://roboflow.github.io/supervision/).
34+
Read more about desktop, headless, and local installation in our [guide](https://roboflow.github.io/supervision/).
3535

3636
## šŸ”„ quickstart
3737

@@ -52,7 +52,7 @@ Read more about desktop, headless and local installation in our [guide](https://
5252
<details close>
5353
<summary>šŸ‘‰ more detections utils</summary>
5454

55-
- Easily switch inference pipeline between supported object detection / instance segmentation models
55+
- Easily switch inference pipeline between supported object detection/instance segmentation models
5656

5757
```python
5858
>>> import supervision as sv
@@ -107,7 +107,7 @@ Read more about desktop, headless and local installation in our [guide](https://
107107
<details close>
108108
<summary>šŸ‘‰ more dataset utils</summary>
109109

110-
- Load object detection / instance segmentation datasets in one of supported formats
110+
- Load object detection/instance segmentation datasets in one of the supported formats
111111

112112
```python
113113
>>> dataset = sv.DetectionDataset.from_yolo(
@@ -138,7 +138,7 @@ Read more about desktop, headless and local installation in our [guide](https://
138138
[ 20.154999, 347.825 , 416.125 , 915.895 ]], dtype=float32)
139139
```
140140

141-
- Split dataset for training, testing and validation
141+
- Split dataset for training, testing, and validation
142142

143143
```python
144144
>>> train_dataset, test_dataset = dataset.split(split_ratio=0.7)
@@ -148,7 +148,7 @@ Read more about desktop, headless and local installation in our [guide](https://
148148
(700, 150, 150)
149149
```
150150

151-
- Merge multiple datasets together
151+
- Merge multiple datasets
152152

153153
```python
154154
>>> ds_1 = sv.DetectionDataset(...)
@@ -170,7 +170,7 @@ Read more about desktop, headless and local installation in our [guide](https://
170170
['cat', 'dog', 'person']
171171
```
172172

173-
- Save object detection / instance segmentation datasets in one of supported formats
173+
- Save object detection/instance segmentation datasets in one of the supported formats
174174

175175
```python
176176
>>> dataset.as_yolo(
@@ -203,15 +203,15 @@ Read more about desktop, headless and local installation in our [guide](https://
203203
... )
204204
```
205205

206-
- Load classification datasets in one of supported formats
206+
- Load classification datasets in one of the supported formats
207207

208208
```python
209209
>>> cs = sv.ClassificationDataset.from_folder_structure(
210210
... root_directory_path='...'
211211
... )
212212
```
213213

214-
- Save classification datasets in one of supported formats
214+
- Save classification datasets in one of the supported formats
215215

216216
```python
217217
>>> cs.as_folder_structure(
@@ -245,6 +245,30 @@ array([
245245
])
246246
```
247247

248+
<details close>
249+
<summary>šŸ‘‰ more metrics</summary>
250+
251+
- Mean average precision (mAP) for object detection tasks.
252+
253+
```python
254+
>>> import supervision as sv
255+
256+
>>> dataset = sv.DetectionDataset.from_yolo(...)
257+
258+
>>> def callback(image: np.ndarray) -> sv.Detections:
259+
... ...
260+
261+
>>> mean_average_precision = sv.MeanAveragePrecision.benchmark(
262+
... dataset = dataset,
263+
... callback = callback
264+
... )
265+
266+
>>> mean_average_precision.map50_95
267+
0.433
268+
```
269+
270+
</details>
271+
248272
## šŸŽ¬ tutorials
249273

250274
<p align="left">

ā€Ždocs/changelog.mdā€Ž

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
### 0.13.0 <small>August 8, 2023</small>
2+
3+
- Added [#236](https://github.com/roboflow/supervision/pull/236): support for mean average precision (mAP) for object detection models with [`sv.MeanAveragePrecision`](https://roboflow.github.io/supervision/metrics/detection/#meanaverageprecision).
4+
5+
```python
6+
>>> import supervision as sv
7+
>>> from ultralytics import YOLO
8+
9+
>>> dataset = sv.DetectionDataset.from_yolo(...)
10+
11+
>>> model = YOLO(...)
12+
>>> def callback(image: np.ndarray) -> sv.Detections:
13+
... result = model(image)[0]
14+
... return sv.Detections.from_yolov8(result)
15+
16+
>>> mean_average_precision = sv.MeanAveragePrecision.benchmark(
17+
... dataset = dataset,
18+
... callback = callback
19+
... )
20+
21+
>>> mean_average_precision.map50_95
22+
0.433
23+
```
24+
25+
- Added [#256](https://github.com/roboflow/supervision/pull/256): support for ByteTrack for object tracking with [`sv.ByteTrack`](https://roboflow.github.io/supervision/tracker/core/#bytetrack).
26+
27+
- Added [#222](https://github.com/roboflow/supervision/pull/222): [`sv.Detections.from_ultralytics`](https://roboflow.github.io/supervision/detection/core/#supervision.detection.core.Detections.from_ultralytics) to enable seamless integration with [Ultralytics](https://github.com/ultralytics/ultralytics) framework. This will enable you to use `supervision` with all [models](https://docs.ultralytics.com/models/) that Ultralytics supports.
28+
29+
!!! warning
30+
31+
[`sv.Detections.from_yolov8`](https://roboflow.github.io/supervision/detection/core/#supervision.detection.core.Detections.from_yolov8) is now deprecated and will be removed with `supervision-0.15.0` release.
32+
33+
- Added [#191](https://github.com/roboflow/supervision/pull/191): [`sv.Detections.from_paddledet`](https://roboflow.github.io/supervision/detection/core/#supervision.detection.core.Detections.from_paddledet) to enable seamless integration with [PaddleDetection](https://github.com/PaddlePaddle/PaddleDetection) framework.
34+
35+
- Added [#245](https://github.com/roboflow/supervision/pull/245): support for loading PASCAL VOC segmentation datasets with [`sv.DetectionDataset.`](https://roboflow.github.io/supervision/dataset/core/#supervision.dataset.core.DetectionDataset.from_pascal_voc).
36+
137
### 0.12.0 <small>July 24, 2023</small>
238

339
!!! warning

ā€Ždocs/metrics/detection.mdā€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66
## ConfusionMatrix
77

88
:::supervision.metrics.detection.ConfusionMatrix
9+
10+
## MeanAveragePrecision
11+
12+
:::supervision.metrics.detection.MeanAveragePrecision

ā€Ždocs/tracker/core.mdā€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## ByteTrack
2+
3+
:::supervision.tracker.byte_tracker.core.ByteTrack
4+

ā€Žmkdocs.ymlā€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ nav:
3737
- Utils: detection/utils.md
3838
- Tools:
3939
- Polygon Zone: detection/tools/polygon_zone.md
40+
- Trackers:
41+
- Core: tracker/core.md
4042
- Dataset:
4143
- Core: dataset/core.md
4244
- Metrics:

0 commit comments

Comments
Ā (0)
⚔