Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supervision-0.26.0 release #1742

Draft
wants to merge 125 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
fdb036e
fix(tests): 🐞 update inference slicer tests to new overlap system for…
onuralpszr Nov 8, 2024
86f95f9
Merge pull request #1669 from roboflow/main
LinasKo Nov 12, 2024
89769e4
ci: 👷 update numpy dependency to a simplified version constraint
onuralpszr Nov 15, 2024
aec0bc3
Merge pull request #1671 from roboflow/refactor/numpy/pyproject_toml
onuralpszr Nov 18, 2024
c88de36
chore: 📦 assets extra removed and merged in to main supervision
onuralpszr Nov 18, 2024
742a824
fix: 🐛 install section removed from assets
onuralpszr Nov 18, 2024
092809b
Merge pull request #1672 from roboflow/removal/assets
LinasKo Nov 18, 2024
37b5dd4
bump version from 0.25.0 to 0.26.0rc1
LinasKo Nov 18, 2024
d9e3ee9
Merge pull request #1673 from roboflow/release/0.26.0rc1
LinasKo Nov 18, 2024
b2dc1b2
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Nov 18, 2024
284901c
Merge pull request #1662 from roboflow/fix/depricated-tests
LinasKo Nov 18, 2024
7ea4b2a
Merge pull request #1674 from roboflow/pre-commit-ci-update-config
onuralpszr Nov 19, 2024
8d18328
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Nov 18, 2024
88f113d
docs: 📝 git clone methods are extended and shallow copy method also a…
onuralpszr Nov 19, 2024
a57f4f2
docs: 📝 git clone examples with single branch and single depth added …
onuralpszr Nov 19, 2024
987a8f2
:arrow_up: Bump mkdocs-material from 9.5.44 to 9.5.45
dependabot[bot] Nov 21, 2024
9ded219
:arrow_up: Bump types-tqdm from 4.66.0.20240417 to 4.67.0.20241119
dependabot[bot] Nov 21, 2024
4b64d4d
Merge pull request #1678 from roboflow/dependabot/pip/types-tqdm-4.67…
onuralpszr Nov 21, 2024
60b9b71
Merge pull request #1677 from roboflow/dependabot/pip/mkdocs-material…
onuralpszr Nov 21, 2024
2ad5b60
:arrow_up: Bump tornado from 6.4.1 to 6.4.2 in the pip group
dependabot[bot] Nov 22, 2024
46416e4
Merge pull request #1680 from roboflow/dependabot/pip/pip-661d9d4597
onuralpszr Nov 24, 2024
e54ce38
fix: 🐞 add missing exports to __all__ in supervision module
onuralpszr Nov 24, 2024
6901709
:arrow_up: Bump ruff from 0.7.4 to 0.8.0
dependabot[bot] Nov 25, 2024
17e35e2
:arrow_up: Bump wheel from 0.45.0 to 0.45.1
dependabot[bot] Nov 25, 2024
7c57a1b
:arrow_up: Bump tqdm from 4.67.0 to 4.67.1
dependabot[bot] Nov 25, 2024
6d4b08c
Merge pull request #1684 from roboflow/dependabot/pip/ruff-0.8.0
onuralpszr Nov 25, 2024
cdf66fd
Merge pull request #1685 from roboflow/dependabot/pip/wheel-0.45.1
onuralpszr Nov 25, 2024
dd0ab6a
Merge pull request #1686 from roboflow/dependabot/pip/tqdm-4.67.1
onuralpszr Nov 25, 2024
4bfee10
docs: removed `git checkout develop`
LinasKo Nov 25, 2024
bbbb374
Merge pull request #1675 from roboflow/docs/git
LinasKo Nov 25, 2024
684522a
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Nov 25, 2024
fe93979
Merge pull request #1689 from roboflow/pre-commit-ci-update-config
onuralpszr Nov 25, 2024
7626c32
fix: 🐛 add missing exports to __all__ in supervision modules for ass…
onuralpszr Nov 25, 2024
b7e02ad
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Nov 25, 2024
a90b871
:arrow_up: Bump mkdocs-material from 9.5.45 to 9.5.46
dependabot[bot] Nov 26, 2024
7bca2fe
Merge pull request #1690 from roboflow/dependabot/pip/mkdocs-material…
onuralpszr Nov 26, 2024
b3d12ed
Update core.py
Erol444 Nov 26, 2024
02dac5a
Merge pull request #1682 from roboflow/typing/_all
LinasKo Nov 26, 2024
32eaf4e
Merge pull request #1691 from Erol444/patch-1
LinasKo Nov 26, 2024
ae9628e
fix: 🐞 add poetry lock file re-generated via poetry 1.8.4
onuralpszr Nov 27, 2024
5f0f90b
fix: 🐞 pandas 3.13 support fixed
onuralpszr Nov 27, 2024
def1cc4
ci: 👷 supervision import check and version print added
onuralpszr Nov 27, 2024
3709963
docs: 📝 update pandas version to support Python 3.13 comment added in…
onuralpszr Nov 27, 2024
fdd317e
fix: 🐞 update matplotlib version constraints for Python versions comp…
onuralpszr Nov 27, 2024
159c507
fix: 🐞 update matplotlib version constraints for Python 3.8 and 3.13 …
onuralpszr Nov 28, 2024
c0d5a7f
chore: some ci files tidied
onuralpszr Nov 28, 2024
5cd6844
Merge branch 'develop' into fix/poetry/py313
onuralpszr Nov 28, 2024
d1c8adb
How To: Benchmark Model
LinasKo Nov 22, 2024
d3f6570
Update model benchmarking guide with model running and metrics
LinasKo Nov 29, 2024
853cbc4
How to Benchmark: typos, images, Colab, correct class remap
LinasKo Nov 29, 2024
a5948c8
Merge pull request #1697 from roboflow/docs/how-to-benchmark-model
LinasKo Nov 29, 2024
228b4cf
docs: 📝 extend supervision installation methods
onuralpszr Nov 29, 2024
6889e33
Merge pull request #1696 from roboflow/docs/installations
onuralpszr Nov 29, 2024
28fa054
fix: is_empty check for filtering
souhhmm Nov 30, 2024
d229d2b
:arrow_up: Bump ruff from 0.8.0 to 0.8.1
dependabot[bot] Dec 2, 2024
93d0313
:arrow_up: Bump twine from 5.1.1 to 6.0.1
dependabot[bot] Dec 2, 2024
816a990
:arrow_up: Bump mkdocs-material from 9.5.46 to 9.5.47
dependabot[bot] Dec 2, 2024
66e02b7
:arrow_up: Bump pytest from 8.3.3 to 8.3.4
dependabot[bot] Dec 2, 2024
7939006
Merge pull request #1700 from roboflow/dependabot/pip/ruff-0.8.1
onuralpszr Dec 2, 2024
9941417
Merge pull request #1701 from roboflow/dependabot/pip/twine-6.0.1
onuralpszr Dec 2, 2024
62a396f
Merge pull request #1702 from roboflow/dependabot/pip/mkdocs-material…
onuralpszr Dec 2, 2024
1e2bdee
Merge pull request #1703 from roboflow/dependabot/pip/pytest-8.3.4
onuralpszr Dec 2, 2024
a0242b0
Merge branch 'develop' into fix/poetry/py313
onuralpszr Dec 2, 2024
eac2691
chore: 📦 lock file updated
onuralpszr Dec 2, 2024
d075eb1
Merge pull request #1693 from roboflow/fix/poetry/py313
LinasKo Dec 2, 2024
fac1581
from_inference now supports roboflow results without json()
LinasKo Dec 2, 2024
348069f
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Dec 2, 2024
3d14167
Merge pull request #1705 from roboflow/pre-commit-ci-update-config
onuralpszr Dec 2, 2024
a4dfcac
detections __getitem__: earlier check for empty detections
LinasKo Dec 3, 2024
37eadfe
test: empty detection check in getitem
souhhmm Dec 3, 2024
7141f11
detections __getitem__ test: minor class name correction
LinasKo Dec 4, 2024
ae8e6b2
Merge pull request #1698 from souhhmm/fix/xyxy-shape-crash
LinasKo Dec 4, 2024
c416474
Merge pull request #1704 from roboflow/fix/from_inference_to_support_…
LinasKo Dec 4, 2024
f3d27d8
Cap ultralytics version
LinasKo Dec 5, 2024
37943b2
:arrow_up: Bump notebook from 7.2.2 to 7.3.1
dependabot[bot] Dec 6, 2024
4c88e03
Add xyxy_to_polygons, ComparisonAnnotator
LinasKo Dec 6, 2024
34229c7
chore: poetry version updated 1.8.5, notebook,ruff,numpy package upda…
onuralpszr Dec 8, 2024
5385ca7
Merge pull request #1714 from roboflow/dependabot/pip/notebook-7.3.1
onuralpszr Dec 9, 2024
a713d36
Improving github actions
bigbitbus Dec 9, 2024
f7d7786
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Dec 9, 2024
ea3b9a5
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Dec 9, 2024
fcf8b7f
Fix Kapa widget initialization
LinasKo Dec 10, 2024
12509e7
Merge pull request #1724 from roboflow/pre-commit-ci-update-config
onuralpszr Dec 10, 2024
d519861
Merge pull request #1726 from roboflow/fix/kapa-init
LinasKo Dec 10, 2024
001f85a
Add ComparisonAnnotator docs, remove Crop & RoundBox annotator from p…
LinasKo Dec 11, 2024
0596334
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Dec 11, 2024
d061a4c
Add CropAnnotator image example
LinasKo Dec 11, 2024
1633522
Merge pull request #1716 from roboflow/feat/comparison-annotator
LinasKo Dec 11, 2024
9a4781f
Remove import check for `assets`
LinasKo Dec 11, 2024
64dc2e9
Merge pull request #1730 from roboflow/fix/remove-assets-import-check
LinasKo Dec 11, 2024
10f372f
Refactor builds
alexnorell Dec 11, 2024
7c53204
Change timeouts and bump action versions
alexnorell Dec 11, 2024
c257221
Fix EOF
alexnorell Dec 11, 2024
dab2194
Merge branch 'develop' of github.com:roboflow/supervision into sec/im…
alexnorell Dec 11, 2024
3d62caf
Update workflows
alexnorell Dec 11, 2024
40340ef
Update builds and tests
alexnorell Dec 11, 2024
517b25f
Run tests on all platforms
alexnorell Dec 11, 2024
c9ea75e
Add workflow job names
alexnorell Dec 11, 2024
47c9817
Added codeowners
bigbitbus Dec 9, 2024
06f678e
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Dec 12, 2024
e6f29a4
:arrow_up: Bump ruff from 0.8.2 to 0.8.3
dependabot[bot] Dec 13, 2024
a983132
Merge pull request #1722 from roboflow/sec/improve-github-workflow-se…
LinasKo Dec 13, 2024
b6a6746
Disable kapa until we test its functionality
LinasKo Dec 13, 2024
3c4793a
Merge pull request #1733 from roboflow/fix/remove-kappa
LinasKo Dec 13, 2024
eb3b172
feat: ✨ poetry lock file correction
onuralpszr Dec 13, 2024
a80be94
Merge pull request #1732 from roboflow/dependabot/pip/ruff-0.8.3
onuralpszr Dec 13, 2024
c894a7a
Fix release docs workflow file
alexnorell Dec 13, 2024
4fd1450
Merge pull request #1736 from roboflow/fix/release_docs
onuralpszr Dec 13, 2024
55378df
Update docs checkout to use fetch-depth: 0
alexnorell Dec 13, 2024
4b75b9b
Update the test docs action too
alexnorell Dec 13, 2024
6f55d9d
Merge pull request #1737 from roboflow/fix/release_docs
onuralpszr Dec 13, 2024
b8d62f6
Update CODEOWNERS
alexnorell Dec 13, 2024
092085e
fix: allow negative offsets in move_masks function (#1715)
Anirudh2112 Dec 14, 2024
14b3c0c
Merge pull request #1738 from roboflow/update_codeowners
onuralpszr Dec 14, 2024
b466076
making sure code works with mixed offset like [2, -2]; dostring updates
SkalskiP Dec 16, 2024
63392ab
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Dec 16, 2024
dbade52
Merge pull request #1739 from Anirudh2112/fix/move-masks-negative-offset
SkalskiP Dec 16, 2024
7c27117
Merge branch 'develop' into main
SkalskiP Dec 16, 2024
7b50eed
Merge pull request #1741 from roboflow/main
SkalskiP Dec 16, 2024
e6f0a8f
fix: 🐛 run twine via poetry run command to make sure existence of tw…
onuralpszr Dec 16, 2024
7a5672b
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Dec 16, 2024
d57078a
Merge pull request #1744 from roboflow/fix/release-twine-package
SkalskiP Dec 16, 2024
385c26a
Merge pull request #1745 from roboflow/pre-commit-ci-update-config
onuralpszr Dec 16, 2024
7c6668b
fix: 🐛 env value corrected for action to run properly
onuralpszr Dec 16, 2024
a9aad67
Merge pull request #1747 from roboflow/fix/pre-release-env
onuralpszr Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These owners will be the default owners for everything in
# the repo. They will be requested for review when someone
# opens a pull request.
* @SkalskiP @onuralpszr
6 changes: 4 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
commit-message:
prefix: ⬆️
target-branch: "develop"
# Python
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
commit-message:
prefix: ⬆️
target-branch: "develop"
37 changes: 23 additions & 14 deletions .github/workflows/clear-cache.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,42 @@

name: Clear cache

on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
schedule:
- cron: "0 0 1 * *" # Run at midnight on the first day of every month
workflow_dispatch:

# Restrict permissions by default
permissions:
actions: write
actions: write # Required for cache management

jobs:
clear-cache:
name: Clear cache
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Clear cache
uses: actions/github-script@v7
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
console.log("About to clear")
console.log("Starting cache cleanup...")
const caches = await github.rest.actions.getActionsCacheList({
owner: context.repo.owner,
repo: context.repo.repo,
})

let deletedCount = 0
for (const cache of caches.data.actions_caches) {
console.log(cache)
github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
console.log(`Deleting cache: ${cache.key} (${cache.size_in_bytes} bytes)`)
try {
await github.rest.actions.deleteActionsCacheById({
owner: context.repo.owner,
repo: context.repo.repo,
cache_id: cache.id,
})
deletedCount++
} catch (error) {
console.error(`Failed to delete cache ${cache.key}: ${error.message}`)
}
}
console.log("Clear completed")
console.log(`Cache cleanup completed. Deleted ${deletedCount} caches.`)
22 changes: 22 additions & 0 deletions .github/workflows/combine-dependabot-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Combine Dependabot PRs

on:
schedule:
- cron: "0 1 * * 3" # Wednesday at 01:00
workflow_dispatch: # allows you to manually trigger the workflow

permissions:
contents: write
pull-requests: write
checks: read

jobs:
combine-prs:
name: Combine
runs-on: ubuntu-latest
steps:
- name: combine-prs
id: combine-prs
uses: github/combine-prs@2909f404763c3177a456e052bdb7f2e85d3a7cb3 # v5.2.0
with:
labels: combined-pr
64 changes: 0 additions & 64 deletions .github/workflows/notebook-bot.yml

This file was deleted.

23 changes: 14 additions & 9 deletions .github/workflows/poetry-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ name: 🔧 Poetry Check and Installation Test Workflow
on:
push:
paths:
- 'poetry.lock'
- 'pyproject.toml'
- "poetry.lock"
- "pyproject.toml"
pull_request:
paths:
- 'poetry.lock'
- 'pyproject.toml'
- "poetry.lock"
- "pyproject.toml"
workflow_dispatch:

jobs:
poetry-tests:
name: Poetry install and check
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
Expand All @@ -20,18 +22,21 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}

- name: 📦 Install the base dependencies
run: python -m pip install --upgrade poetry
- name: 📜 Setup Poetry
uses: abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd # v3.0.1

- name: 🔍 Check the correctness of the project config
run: poetry check

- name: 🚀 Do Install the package Test
run: poetry install
run: poetry install --with dev --extras metrics

- name: 🧪 Run the Import test
run: poetry run python -c "import supervision; from supervision import assets; from supervision import metrics; print(supervision.__version__)"
53 changes: 0 additions & 53 deletions .github/workflows/publish-dev-docs.yml

This file was deleted.

62 changes: 62 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build and Publish Docs

on:
push:
branches:
- develop
workflow_dispatch:
release:
types: [published]

# Ensure only one concurrent deployment
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.ref}}
cancel-in-progress: true

# Restrict permissions by default
permissions:
contents: write # Required for committing to gh-pages
pages: write # Required for deploying to Pages
pull-requests: write # Required for PR comments

jobs:
deploy:
name: Publish Docs
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0

- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ matrix.python-version }}

- name: 📜 Setup Poetry
uses: abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd # v3.0.1

- name: 📦 Install dependencies
run: |
poetry install --with=docs

- name: ⚙️ Configure git for github-actions
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: 🚀 Deploy Development Docs
if: (github.event_name == 'push' && github.ref == 'refs/heads/develop') || github.event_name == 'workflow_dispatch'
run: |
MKDOCS_GIT_COMMITTERS_APIKEY=${{ secrets.GITHUB_TOKEN }} poetry run mike deploy --push develop

- name: 🚀 Deploy Release Docs
if: github.event_name == 'release' && github.event.action == 'published'
run: |
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
MKDOCS_GIT_COMMITTERS_APIKEY=${{ secrets.GITHUB_TOKEN }} poetry run mike deploy --push --update-aliases $latest_tag latest
55 changes: 0 additions & 55 deletions .github/workflows/publish-release-docs.yml

This file was deleted.

Loading
Loading