Skip to content

Commit bcb26f9

Browse files
authored
Merge pull request #663 from roboflow/develop
`supervision-0.17.1` release
2 parents 36ab9dc + ee697ca commit bcb26f9

File tree

14 files changed

+659
-617
lines changed

14 files changed

+659
-617
lines changed

.github/requirements-dev.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: actions/setup-python@v4
20+
- uses: actions/setup-python@v5
2121
with:
2222
python-version: 3.x
2323
- run: pip install mkdocs-material

.github/workflows/publish-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: 🐍 Set up Python 3.8 environment for build
22-
uses: actions/setup-python@v4
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: "3.8"
2525

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
ref: ${{ github.head_ref }}
2323
- name: 🐍 Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

.github/workflows/test-min.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: 🛎️ Checkout
1515
uses: actions/checkout@v4
1616
- name: 🐍 Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
# id based on python version
1919
id: python-setup
2020
with:

.github/workflows/test.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,21 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: ["3.8", "3.9", "3.10","3.11"]
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1313
steps:
1414
- name: 🛎️ Checkout
1515
uses: actions/checkout@v4
1616
- name: 🐍 Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v4
18-
# id based on python version
19-
id: python-setup
17+
uses: actions/setup-python@v5
2018
with:
2119
python-version: ${{ matrix.python-version }}
2220
check-latest: true
23-
cache: 'pip'
24-
cache-dependency-path: '**/requirements-dev.txt'
2521

2622
- name: 📦 Install dependencies
2723
run: |
2824
python -m pip install --upgrade pip
29-
pip install -r .github/requirements-dev.txt
25+
pip install .
26+
pip install pytest
3027
3128
- name: 🧪 Test
3229
run: "python -m pytest ./test"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
## 💻 install
3232

3333
Pip install the supervision package in a
34-
[**3.11>=Python>=3.8**](https://www.python.org/) environment.
34+
[**Python>=3.8**](https://www.python.org/) environment.
3535

3636
```bash
3737
pip install supervision

demo.ipynb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
"output_type": "stream",
227227
"text": [
228228
"\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/45.4 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m45.4/45.4 kB\u001b[0m \u001b[31m3.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
229-
"\u001b[?25h0.16.0\n"
229+
"\u001b[?25h0.17.0\n"
230230
]
231231
}
232232
],
@@ -803,6 +803,15 @@
803803
"**NOTE:** During our demo, we will need some example videos."
804804
]
805805
},
806+
{
807+
"cell_type": "code",
808+
"execution_count": null,
809+
"metadata": {},
810+
"outputs": [],
811+
"source": [
812+
"!pip install -q supervision[assets]"
813+
]
814+
},
806815
{
807816
"cell_type": "code",
808817
"execution_count": 63,
@@ -831,9 +840,7 @@
831840
},
832841
"outputs": [],
833842
"source": [
834-
"%cd {HOME}/videos\n",
835-
"\n",
836-
"!wget --load-cookies /tmp/cookies.txt \"https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1pz68D1Gsx80MoPg-_q-IbEdESEmyVLm-' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\\1\\n/p')&id=1pz68D1Gsx80MoPg-_q-IbEdESEmyVLm-\" -O vehicle-counting.mp4 && rm -rf /tmp/cookies.txt"
843+
"%cd {HOME}/videos"
837844
]
838845
},
839846
{
@@ -844,7 +851,9 @@
844851
},
845852
"outputs": [],
846853
"source": [
847-
"VIDEO_PATH = f\"{HOME}/videos/vehicle-counting.mp4\""
854+
"from supervision.assets import download_assets, VideoAssets\n",
855+
"download_assets(VideoAssets.VEHICLES)\n",
856+
"VIDEO_PATH = f\"{HOME}/videos/vehicle.mp4\""
848857
]
849858
},
850859
{

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ We write your reusable computer vision tools. Whether you need to load your data
1616
## 💻 Install
1717

1818
You can install `supervision` with pip in a
19-
[**3.11>=Python>=3.8**](https://www.python.org/) environment.
19+
[**Python>=3.8**](https://www.python.org/) environment.
2020

2121
!!! example "pip install (recommended)"
2222

examples/tracking/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ detection and Supervision for tracking and annotation.
99
pip install -r requirements.txt
1010
```
1111

12+
## ⚙️ run
13+
14+
```bash
15+
python script.py \
16+
--source_weights_path yolov8s.pt \
17+
--source_video_path input.mp4 \
18+
--target_video_path tracking_result.mp4
19+
```
20+
21+
1222
## ⚙️ parameters
1323

1424
| parameter | required | description |

0 commit comments

Comments
 (0)