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.24.0 release #1573

Merged
merged 226 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
226 commits
Select commit Hold shift + click to select a range
71164fd
feat(LineZonaAnnotator): Add support for non-horizontal lines
jcruz-ferreyra Feb 5, 2024
2a5dc67
Merge branch 'develop' into lc/diagonal_support
jcruz-ferreyra Apr 5, 2024
a7c00ca
Merge branch 'develop' into lc/diagonal_support
jcruz-ferreyra Apr 22, 2024
cbec7f8
Merge branch 'develop' into lc/diagonal_support
jcruz-ferreyra May 2, 2024
ac6dd7b
Merge branch 'develop' into lc/diagonal_support
jcruz-ferreyra May 31, 2024
c1e4d79
Merge branch 'develop' into lc/diagonal_support
jcruz-ferreyra Jun 6, 2024
86d15c6
Merge branch 'develop' into lc/diagonal_support
jcruz-ferreyra Jun 10, 2024
aed3feb
New cookbook: Small Object Detection with SAHI
ediardo Aug 26, 2024
3b5b870
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Aug 26, 2024
e6686ba
chore: get secret from userdata (colab)
ediardo Aug 26, 2024
3653755
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Aug 27, 2024
cd2fd0d
chore: added images, fixed typos
ediardo Aug 27, 2024
d6ebc43
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Aug 27, 2024
5cda6e3
chore: delete all outputs
ediardo Aug 27, 2024
4356a90
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Aug 27, 2024
48a1f04
fix: link to colab
ediardo Aug 27, 2024
ab983bb
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Aug 27, 2024
6c03451
chore: fix typo
ediardo Aug 27, 2024
1f21354
chore: rename file, format code
ediardo Aug 27, 2024
838b8c3
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Aug 27, 2024
fb25fda
chore: comments
ediardo Aug 27, 2024
2e55149
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Aug 27, 2024
3ddc4bd
Merge pull request #1489 from roboflow/main
LinasKo Aug 28, 2024
b4b941f
hotfix: mAP docs
LinasKo Aug 28, 2024
a7debec
fix: correct typo in URL
CharlesCNorton Aug 28, 2024
c1e249e
Chore: make it lean
ediardo Aug 29, 2024
c7c02bb
Merge pull request #1490 from CharlesCNorton/patch-1
LinasKo Aug 29, 2024
a298ceb
:arrow_up: Bump jupyterlab from 4.2.4 to 4.2.5
dependabot[bot] Aug 29, 2024
9b52d62
Merge branch 'develop' into docs/cookbook-sahi
onuralpszr Aug 29, 2024
418ec5b
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Aug 29, 2024
a937fa5
Merge pull request #1491 from roboflow/dependabot/pip/jupyterlab-4.2.5
onuralpszr Aug 29, 2024
fab89d2
:arrow_up: Bump ruff from 0.6.2 to 0.6.3
dependabot[bot] Aug 30, 2024
80567df
fix: fix test warnings
Kadermiyanyedi Aug 30, 2024
e805212
Merge pull request #1493 from roboflow/dependabot/pip/ruff-0.6.3
onuralpszr Aug 30, 2024
3c41c97
fix: fix typos
Kadermiyanyedi Aug 30, 2024
1ed7825
Merge pull request #1495 from Kadermiyanyedi/fix-typos
onuralpszr Aug 30, 2024
b06d979
Merge pull request #1494 from Kadermiyanyedi/fix-test-warnings
onuralpszr Aug 30, 2024
d396882
:arrow_up: Bump mkdocs-material from 9.5.33 to 9.5.34
dependabot[bot] Sep 2, 2024
a6e0177
:arrow_up: Bump mkdocstrings from 0.25.2 to 0.26.0
dependabot[bot] Sep 2, 2024
db79350
Merge pull request #1498 from roboflow/dependabot/pip/mkdocstrings-0.…
onuralpszr Sep 2, 2024
4e9aec6
Merge pull request #1497 from roboflow/dependabot/pip/mkdocs-material…
onuralpszr Sep 2, 2024
54278ea
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Sep 2, 2024
96bdcb3
Merge pull request #1499 from roboflow/pre-commit-ci-update-config
onuralpszr Sep 2, 2024
5467db4
101 AP algo: do not interpollate precision
LinasKo Sep 3, 2024
7a1c314
Fix typo, false positives -> false negatives
LinasKo Sep 4, 2024
621f8e4
Merge pull request #1500 from roboflow/fix/101-coco-algorithm
SkalskiP Sep 4, 2024
e529892
bump version from `0.23.0` to `0.24.0rc1`
SkalskiP Sep 4, 2024
b25f0b1
:arrow_up: Bump cryptography from 43.0.0 to 43.0.1
dependabot[bot] Sep 4, 2024
9410f03
Merge pull request #1501 from roboflow/dependabot/pip/cryptography-43…
onuralpszr Sep 4, 2024
323e758
Add `oriented_box_iou_batch` function to detection.utils
patel-zeel Sep 5, 2024
8a912c5
:arrow_up: Bump ruff from 0.6.3 to 0.6.4
dependabot[bot] Sep 6, 2024
370e80d
:arrow_up: Bump types-requests from 2.32.0.20240712 to 2.32.0.20240905
dependabot[bot] Sep 6, 2024
26987d7
Merge pull request #1503 from roboflow/dependabot/pip/ruff-0.6.4
onuralpszr Sep 6, 2024
f20a314
Merge pull request #1504 from roboflow/dependabot/pip/types-requests-…
onuralpszr Sep 6, 2024
b987f98
:arrow_up: Bump build from 1.2.1 to 1.2.2
dependabot[bot] Sep 9, 2024
06f6286
:arrow_up: Bump mkdocstrings from 0.26.0 to 0.26.1
dependabot[bot] Sep 9, 2024
2f942d2
:arrow_up: Bump tox from 4.18.0 to 4.18.1
dependabot[bot] Sep 9, 2024
ce53f6c
:arrow_up: Bump mkdocs-git-revision-date-localized-plugin
dependabot[bot] Sep 9, 2024
a20d784
:arrow_up: Bump types-requests from 2.32.0.20240905 to 2.32.0.20240907
dependabot[bot] Sep 9, 2024
cceecb0
Merge pull request #1509 from roboflow/dependabot/pip/types-requests-…
onuralpszr Sep 9, 2024
ea4bc3f
Merge pull request #1505 from roboflow/dependabot/pip/build-1.2.2
onuralpszr Sep 9, 2024
23ce82f
Merge pull request #1506 from roboflow/dependabot/pip/mkdocstrings-0.…
onuralpszr Sep 9, 2024
a063f0a
Merge pull request #1507 from roboflow/dependabot/pip/tox-4.18.1
onuralpszr Sep 9, 2024
f5c5001
Merge pull request #1508 from roboflow/dependabot/pip/mkdocs-git-revi…
onuralpszr Sep 9, 2024
a9fe5cc
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Sep 9, 2024
9203116
Merge pull request #1510 from roboflow/pre-commit-ci-update-config
onuralpszr Sep 10, 2024
c30c9f4
:arrow_up: Bump pytest from 8.3.2 to 8.3.3
dependabot[bot] Sep 11, 2024
675d3e5
Merge pull request #1511 from roboflow/dependabot/pip/pytest-8.3.3
onuralpszr Sep 11, 2024
abec8da
:arrow_up: Bump mkdocs-git-revision-date-localized-plugin
dependabot[bot] Sep 13, 2024
ade8976
Merge pull request #1512 from roboflow/dependabot/pip/mkdocs-git-revi…
onuralpszr Sep 13, 2024
ef52dff
feat: ✨ from_easyocr detection added
onuralpszr Sep 15, 2024
6e07b17
feat: ✨ from_easyocr paragraph mode support added
onuralpszr Sep 15, 2024
d5efa5d
:arrow_up: Bump types-requests from 2.32.0.20240907 to 2.32.0.20240914
dependabot[bot] Sep 16, 2024
c9159f9
:arrow_up: Bump ruff from 0.6.4 to 0.6.5
dependabot[bot] Sep 16, 2024
30f75bd
Merge pull request #1516 from roboflow/dependabot/pip/types-requests-…
onuralpszr Sep 16, 2024
cbd62ef
Merge pull request #1517 from roboflow/dependabot/pip/ruff-0.6.5
onuralpszr Sep 16, 2024
3cf9634
WIP: F1 score
LinasKo Sep 16, 2024
4919b84
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Sep 16, 2024
d9b297a
Merge pull request #1518 from roboflow/pre-commit-ci-update-config
onuralpszr Sep 16, 2024
0ddb62d
:arrow_up: Bump types-pyyaml from 6.0.12.20240808 to 6.0.12.20240917
dependabot[bot] Sep 18, 2024
00cba6e
:arrow_up: Bump tox from 4.18.1 to 4.19.0
dependabot[bot] Sep 18, 2024
96b8d53
Merge pull request #1519 from roboflow/dependabot/pip/types-pyyaml-6.…
onuralpszr Sep 18, 2024
b9e9ada
Add F1 Score, remove dead code, list TODOs for mAP
LinasKo Sep 18, 2024
d25016e
Typo: mAP in F1 score class
LinasKo Sep 18, 2024
420b832
Merge pull request #1520 from roboflow/dependabot/pip/tox-4.19.0
onuralpszr Sep 18, 2024
9d2dc08
Change mAP result to match F1 result
LinasKo Sep 18, 2024
95add36
Fix broken or outdated links
LinasKo Sep 18, 2024
685929f
feat: ✨ initial ncnn detection support added
onuralpszr Sep 18, 2024
1b7344d
refactor: remove missing elapsed time and add interactive before/afte…
onuralpszr Sep 6, 2024
ef2b604
Merge pull request #1483 from ediardo/docs/cookbook-sahi
onuralpszr Sep 18, 2024
128358f
:arrow_up: Bump mkdocs-material from 9.5.34 to 9.5.35
dependabot[bot] Sep 19, 2024
32d22ef
Merge pull request #1525 from roboflow/dependabot/pip/mkdocs-material…
onuralpszr Sep 19, 2024
1f0c278
refactor: ✨ ruff rules enabled and fixed and code refactor made
onuralpszr Sep 19, 2024
2961045
Add opacity to PolygonZoneAnnotator
grzegorz-roboflow Sep 19, 2024
1c30493
Docstring
grzegorz-roboflow Sep 19, 2024
79858ad
Move opacity handling to utils/draw; extend PolygonZoneAnnotator to d…
grzegorz-roboflow Sep 19, 2024
f307f98
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Sep 19, 2024
7ad0bc3
Adjust docstrings
grzegorz-roboflow Sep 19, 2024
ebdada9
chore: 🧹 old black config removed
onuralpszr Sep 19, 2024
14fc6c2
Merge pull request #1529 from roboflow/chore/black-config-cleanup
LinasKo Sep 19, 2024
c532758
Merge pull request #1523 from roboflow/fix/fix-broken-links
LinasKo Sep 19, 2024
9be2fdf
fix: 🐞 removal of opencv-python-headless package
onuralpszr Sep 19, 2024
4644f21
docs: 📝 documentation adjusment for installations
onuralpszr Sep 19, 2024
c9fa3d6
Merge branch 'develop' into feature/pip-package-configuration
onuralpszr Sep 19, 2024
784191a
Merge pull request #1530 from roboflow/feature/pip-package-configuration
LinasKo Sep 19, 2024
1a870b9
fix: 🐞 empty image detection error corrected
onuralpszr Sep 18, 2024
6acfdbf
Add obb_iou_batch to __init__ and docs
LinasKo Sep 19, 2024
a34f0e9
refactor: ♻️ update Edges type from List to Tuple for better performance
onuralpszr Sep 19, 2024
e3eeb5f
Merge pull request #1526 from roboflow/formatting/ruff-rules
LinasKo Sep 19, 2024
887bb7c
Merge branch 'roboflow:develop' into feat/oriented_box_iou_batch
patel-zeel Sep 19, 2024
85e053e
Merge branch 'develop' into feature/add-opacity-to-polygon-zone-annot…
LinasKo Sep 19, 2024
81ee4f1
Add draw_filled_polygon to docs, fix a few docstring types
LinasKo Sep 19, 2024
fdda725
Merge pull request #1527 from roboflow/feature/add-opacity-to-polygon…
LinasKo Sep 19, 2024
dc07f13
:arrow_up: Bump tox from 4.19.0 to 4.20.0
dependabot[bot] Sep 20, 2024
c94cfe2
Merge pull request #1532 from roboflow/dependabot/pip/tox-4.20.0
onuralpszr Sep 20, 2024
9d15492
Merge branch 'develop' into lc/diagonal_support
LinasKo Sep 20, 2024
d85ceb0
Fix incorrect types
LinasKo Sep 20, 2024
3c79677
Flip text if it is upside-down
LinasKo Sep 20, 2024
6713523
Disable alignment to line by default, move arguments around
LinasKo Sep 20, 2024
7f85963
Add F1 to docs, rewrite the docstrings
LinasKo Sep 20, 2024
9a56513
adds basic workflow to try supervision annotators on annotators doc page
joaomarcoscrs Sep 20, 2024
2759beb
better copy
joaomarcoscrs Sep 20, 2024
d208250
reduces border-radius
joaomarcoscrs Sep 20, 2024
7de1f58
Merge branch 'develop' into feat/f1-metric
LinasKo Sep 20, 2024
fa8378e
Merge pull request #1521 from roboflow/feat/f1-metric
LinasKo Sep 20, 2024
6551fd6
:arrow_up: Bump mkdocs-material from 9.5.35 to 9.5.36
dependabot[bot] Sep 23, 2024
e10caa2
:arrow_up: Bump ruff from 0.6.5 to 0.6.7
dependabot[bot] Sep 23, 2024
5d9d744
Merge pull request #1538 from roboflow/dependabot/pip/mkdocs-material…
onuralpszr Sep 23, 2024
f8397bd
Merge pull request #1539 from roboflow/dependabot/pip/ruff-0.6.7
onuralpszr Sep 23, 2024
fef9f10
fix: 🐞 ncnn xywh and conf types corrected to float32
onuralpszr Sep 23, 2024
856c72e
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Sep 23, 2024
504fc59
ncnn docstring change + sneaky from_transformers tidy-up
LinasKo Sep 23, 2024
130308c
Merge pull request #1524 from roboflow/detection/ncnn
LinasKo Sep 23, 2024
47a7f92
from_easy_ocr: cast results to float, remove class_id
LinasKo Sep 23, 2024
270b5f5
Update annotator errors, suggesting fixes
LinasKo Sep 23, 2024
5ea6d95
Merge branch 'develop' into detection/easyocr
LinasKo Sep 23, 2024
d01e76a
easy_ocr: docstring explaining usage
LinasKo Sep 23, 2024
f221019
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Sep 23, 2024
943a214
fix regression: ncnn docs
LinasKo Sep 23, 2024
c211453
Merge pull request #1515 from roboflow/detection/easyocr
LinasKo Sep 23, 2024
0d86159
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Sep 23, 2024
65f606e
Merge pull request #1541 from roboflow/pre-commit-ci-update-config
onuralpszr Sep 23, 2024
1b6fd01
Fix arrya shapes in OBB IoU docstring
LinasKo Sep 24, 2024
787bbda
ci: 👷 pypi username - password swap with token
onuralpszr Sep 24, 2024
a29d959
Fix OBB shape when computing object size
LinasKo Sep 24, 2024
93190b2
Merge pull request #1502 from patel-zeel/feat/oriented_box_iou_batch
LinasKo Sep 24, 2024
9bbd81e
Link to Workflows in the first paragraph
LinasKo Sep 24, 2024
d88d8ed
Factorization, simplifaction, speedup
LinasKo Sep 25, 2024
f8b60ea
Further simplification & speedup
LinasKo Sep 25, 2024
60c5292
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Sep 25, 2024
6fbabee
Make color hashable, use cache for label images
LinasKo Sep 25, 2024
5f86dbe
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Sep 25, 2024
c1444c6
Futher LineZone code tidy-up
LinasKo Sep 25, 2024
356a86a
Ruff formatting
LinasKo Sep 25, 2024
7b22cfa
Bugfix: basic label would always have background box
LinasKo Sep 25, 2024
d6d3213
Move methods around, rename some variables
LinasKo Sep 25, 2024
ebd5e06
Make sure text is always displayed upright
LinasKo Sep 25, 2024
156dbd5
New docstring for LineZoneAnnotator
LinasKo Sep 25, 2024
4722459
:arrow_up: Bump mkdocs-material from 9.5.36 to 9.5.37
dependabot[bot] Sep 26, 2024
d4eb957
Merge pull request #1544 from roboflow/dependabot/pip/mkdocs-material…
onuralpszr Sep 26, 2024
db0d965
Fix: incorrect label rotation
LinasKo Sep 26, 2024
fedc1a4
fix: InferenceSlicer overlap_ratio_wh argument changed to None by def…
tibeoh Sep 26, 2024
4a95aaa
Fix basic_label offset
LinasKo Sep 26, 2024
c81aec9
Docstrings update
LinasKo Sep 26, 2024
e63611d
Merge pull request #854 from jcruz-ferreyra/lc/diagonal_support
LinasKo Sep 26, 2024
d50c51f
Update supervision docs on PyPi, add Linas as maintainer
LinasKo Sep 26, 2024
06d1640
Fix documentation issues
LinasKo Sep 26, 2024
f499430
Fix mkdocs autorefs depreacation warnings
LinasKo Sep 26, 2024
363aa06
feat: add __len__ to ColorPalette
ethanwhite Sep 26, 2024
9522ac9
Merge pull request #1550 from ethanwhite/feat/colorpalette-len
LinasKo Sep 26, 2024
58a9588
chore: 🧹 split mkdocstring and mkdocstring-python package
onuralpszr Sep 26, 2024
39d0e65
:arrow_up: Bump ruff from 0.6.7 to 0.6.8
dependabot[bot] Sep 27, 2024
20c5f8d
:arrow_up: Bump mkdocs-material from 9.5.37 to 9.5.38
dependabot[bot] Sep 27, 2024
dec2920
Add repo of the day badge to readme
LinasKo Sep 27, 2024
c3b9db0
Merge pull request #1551 from roboflow/dependabot/pip/ruff-0.6.8
onuralpszr Sep 27, 2024
9ddbad2
Merge pull request #1552 from roboflow/dependabot/pip/mkdocs-material…
onuralpszr Sep 27, 2024
36f0755
Merge pull request #1533 from roboflow/demo-annotators-with-workflows
LinasKo Sep 27, 2024
78f17cb
chore: 🧹 clean up documentation and improve formatting
onuralpszr Sep 27, 2024
5b39c81
Merge branch 'develop' into docs/mkdocs-cleanup
onuralpszr Sep 27, 2024
103669b
docs: 📝 minor adjustments on readme and changelog
onuralpszr Sep 27, 2024
b45bee0
Merge pull request #1549 from roboflow/docs/mkdocs-cleanup
onuralpszr Sep 27, 2024
31a3cca
ci: 👷 trusted publisher configuration added
onuralpszr Sep 26, 2024
1860fdb
Merge pull request #1542 from roboflow/ci/pypi-configs
LinasKo Sep 27, 2024
eebd57a
Add per-class counting to LineZone, create LineZoneAnnotatorMulticlass
LinasKo Sep 29, 2024
1d77868
:arrow_up: Bump mkdocs-material from 9.5.38 to 9.5.39
dependabot[bot] Sep 30, 2024
3b95c1d
Merge pull request #1556 from roboflow/dependabot/pip/mkdocs-material…
onuralpszr Sep 30, 2024
edda8de
chore(pre_commit): ⬆ pre_commit autoupdate
pre-commit-ci[bot] Sep 30, 2024
1d4b61f
Merge pull request #1557 from roboflow/pre-commit-ci-update-config
onuralpszr Oct 1, 2024
125a858
Apply Onuralps review suggestions
onuralpszr Sep 30, 2024
f01126f
fix(pre_commit): 🎨 auto format pre-commit hooks
pre-commit-ci[bot] Oct 1, 2024
121190b
minor code refactor, if mot -> continue
LinasKo Oct 1, 2024
865cdd3
Minor spelling change, code of conduct
LinasKo Oct 1, 2024
3789f69
Merge pull request #1555 from roboflow/feat/line-zone-per-class-counting
LinasKo Oct 1, 2024
23023e9
Revert default overlap_ratio_wh value, update docs
LinasKo Oct 1, 2024
892bd87
overlap_ratio_wh: remove deprecated param decorator
LinasKo Oct 1, 2024
52c9ec0
Merge pull request #1547 from tibeoh/fix/inference-slicer-overlap
LinasKo Oct 1, 2024
56c269a
:arrow_up: Bump tox from 4.20.0 to 4.21.0
dependabot[bot] Oct 2, 2024
5af3eab
Merge pull request #1559 from roboflow/dependabot/pip/tox-4.21.0
onuralpszr Oct 2, 2024
0bc52bf
moves embedded widget to below the tabs and passes necessary query pa…
joaomarcoscrs Oct 3, 2024
0b931e1
:arrow_up: Bump tox from 4.21.0 to 4.21.1
dependabot[bot] Oct 3, 2024
ef89d8c
Remove the Workflows introduction.
LinasKo Oct 3, 2024
b09559a
Merge pull request #1560 from roboflow/joao/fix/new-embedded-docs-layout
LinasKo Oct 3, 2024
2be5008
Minors docs edit: Tell what classes can be annotated by the embedded …
LinasKo Oct 3, 2024
d6aa72c
Merge pull request #1561 from roboflow/dependabot/pip/tox-4.21.1
onuralpszr Oct 3, 2024
eb0e50a
Update hacktoberfest banner
LinasKo Oct 3, 2024
8755bc8
Merge pull request #1563 from roboflow/hacktoberfest-2024
LinasKo Oct 3, 2024
51e2f9e
Update annotators.md
josephofiowa Oct 3, 2024
f207eac
Update annotators.md
josephofiowa Oct 3, 2024
448a0ab
Merge pull request #1565 from josephofiowa/develop
LinasKo Oct 3, 2024
66067cc
Remove deprecated `frame_resolution_wh` from `PolygonZone`
LinasKo Oct 3, 2024
55d7c8d
:arrow_up: Bump tox from 4.21.1 to 4.21.2
dependabot[bot] Oct 4, 2024
d3d1bfc
Merge pull request #1568 from roboflow/dependabot/pip/tox-4.21.2
onuralpszr Oct 4, 2024
73ed766
fix: 🔥 downgrade mkdocs-git-committers-plugin-2 to version 2.3.0
onuralpszr Oct 4, 2024
f8b6d3c
Merge pull request #1570 from roboflow/package/git-commiter-plugin-do…
LinasKo Oct 4, 2024
61ababd
Revert "fix: 🔥 downgrade mkdocs-git-committers-plugin-2 to version 2.…
onuralpszr Oct 4, 2024
63f5bfd
chore: poetry update and start version 2.4.1 for prevent broken version
onuralpszr Oct 4, 2024
db0a078
Bugfix: missing LineZoneAnnotatorMulticlass.annotate docs
LinasKo Oct 4, 2024
72d0b9b
Merge pull request #1571 from roboflow/revert-1570-package/git-commit…
LinasKo Oct 4, 2024
02ed59b
Add changelog, deprecations
LinasKo Oct 4, 2024
8f61898
Point changelog links to 0.24.0
LinasKo Oct 4, 2024
68d668a
Update "New" tags in documentation
LinasKo Oct 4, 2024
38a1d3a
Docs: missing Return docstring for LineZoneAnnotatorMulticlass.annotate
LinasKo Oct 4, 2024
c9dfdbe
Fixed: Admonitions formatting reformatted incorrectly
LinasKo Oct 4, 2024
b01b321
Merge pull request #1572 from roboflow/feat/changelog-0.24.0
LinasKo Oct 4, 2024
e1e00ff
pathch: minor typo in changelog
LinasKo Oct 4, 2024
953ecba
Bump supervision to 0.24.0
LinasKo Oct 4, 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
19 changes: 9 additions & 10 deletions .github/workflows/publish-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Supervision Test Releases to PyPi
name: Publish Supervision Pre-Releases to PyPI and TestPyPI
on:
push:
tags:
Expand All @@ -9,9 +9,11 @@ on:
workflow_dispatch:

jobs:
build-n-publish:
build-and-publish-pre-release-pypi:
name: Build and publish to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
strategy:
matrix:
python-version: ["3.10"]
Expand All @@ -30,14 +32,11 @@ jobs:
python -m pip install --upgrade build twine
python -m build
twine check --strict dist/*
- name: 🚀 Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}

- name: 🚀 Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1.10

- name: 🚀 Publish to Test-PyPi
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1.10
with:
repository-url: https://test.pypi.org/legacy/
user: ${{ secrets.PYPI_TEST_USERNAME }}
password: ${{ secrets.PYPI_TEST_PASSWORD }}
17 changes: 8 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Supervision Releases to PyPi
name: Publish Supervision Releases to PyPI and TestPyPI
on:
push:
tags:
Expand All @@ -7,8 +7,10 @@ on:
workflow_dispatch:

jobs:
build:
build-and-publish-pre-release:
runs-on: ubuntu-latest
permissions:
id-token: write
strategy:
matrix:
python-version: ["3.10"]
Expand All @@ -27,14 +29,11 @@ jobs:
python -m pip install --upgrade build twine
python -m build
twine check --strict dist/*

- name: 🚀 Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
uses: pypa/gh-action-pypi-publish@release/v1.10

- name: 🚀 Publish to Test-PyPi
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1.10
with:
repository-url: https://test.pypi.org/legacy/
user: ${{ secrets.PYPI_TEST_USERNAME }}
password: ${{ secrets.PYPI_TEST_PASSWORD }}
19 changes: 17 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,31 @@ repos:
- id: mixed-line-ending

- repo: https://github.com/PyCQA/bandit
rev: '1.7.9'
rev: '1.7.10'
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
rev: v0.6.8
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
types_or: [ python, pyi, jupyter ]

# - repo: https://github.com/executablebooks/mdformat
# rev: 0.7.17
# hooks:
# - id: mdformat
# additional_dependencies:
# - "mdformat-mkdocs[recommended]>=2.1.0"
# args: ["--number"]

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli
33 changes: 16 additions & 17 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
identity and expression, level of experience, education, socioeconomic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.

Expand All @@ -18,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall
- Focusing on what is best not just for us as individuals, but for the overall
community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or advances of
- The use of sexualized language or imagery, and sexual attention or advances of
any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address,
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address,
without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -121,14 +120,14 @@ version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].

Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
[Mozilla's code of conduct enforcement ladder][mozilla coc].

For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
[https://www.contributor-covenant.org/faq][faq]. Translations are available at
[https://www.contributor-covenant.org/translations][translations].

[faq]: https://www.contributor-covenant.org/faq
[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[mozilla coc]: https://github.com/mozilla/diversity
[translations]: https://www.contributor-covenant.org/translations
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
78 changes: 43 additions & 35 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ We are actively improving this library to reduce the amount of work you need to

## Code of Conduct

Please read and adhere to our [Code of Conduct](CODE_OF_CONDUCT.md). This document outlines the expected behavior for all participants in our project.
Please read and adhere to our [Code of Conduct](https://supervision.roboflow.com/latest/code_of_conduct/). This document outlines the expected behavior for all participants in our project.

## Table of Contents

- [Contribution Guidelines](#contribution-guidelines)
- [Contributing Features](#contributing-features-)
- [Contributing Features](#contributing-features)
- [How to Contribute Changes](#how-to-contribute-changes)
- [Installation for Contributors](#installation-for-contributors)
- [Code Style and Quality](#-code-style-and-quality)
- [Pre-commit tool](#pre-commit-tool)
- [Docstrings](#docstrings)
- [Type checking](#type-checking)
- [Documentation](#-documentation)
- [Cookbooks](#-cookbooks)
- [Tests](#-tests)
- [License](#-license)
- [Code Style and Quality](#code-style-and-quality)
- [Pre-commit tool](#pre-commit-tool)
- [Docstrings](#docstrings)
- [Type checking](#type-checking)
- [Documentation](#documentation)
- [Cookbooks](#cookbooks)
- [Tests](#tests)
- [License](#license)

## Contribution Guidelines

Expand Down Expand Up @@ -83,9 +83,10 @@ git push -u origin <your_branch_name>

Use conventional commit messages to clearly describe your changes. The format is:

<type>[optional scope]: <description>
<type>\[optional scope\]: <description>

Common types include:

- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
Expand Down Expand Up @@ -128,40 +129,47 @@ PRs must pass all tests and linting requirements before they can be merged.
Before starting your work on the project, set up your development environment:

1. Clone your fork of the project:
```bash
git clone https://github.com/YOUR_USERNAME/supervision.git
cd supervision
```
Replace `YOUR_USERNAME` with your GitHub username.

```bash
git clone https://github.com/YOUR_USERNAME/supervision.git
cd supervision
```

Replace `YOUR_USERNAME` with your GitHub username.

2. Create and activate a virtual environment:
```bash
python3 -m venv .venv
source .venv/bin/activate
```

```bash
python3 -m venv .venv
source .venv/bin/activate
```

3. Install Poetry:

Using pip:
```bash
pip install -U pip setuptools
pip install poetry
```
Using pip:

Or using pipx (recommended for global installation):
```bash
pipx install poetry
```
```bash
pip install -U pip setuptools
pip install poetry
```

Or using pipx (recommended for global installation):

```bash
pipx install poetry
```

4. Install project dependencies:
```bash
poetry install
```

```bash
poetry install
```

5. Run pytest to verify the setup:
```bash
poetry run pytest
```

```bash
poetry run pytest
```

## 🎨 Code Style and Quality

Expand Down
Loading