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

Detection IoU #1284

Merged
merged 211 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
57cdcc3
Initial work by @jscottcronin
twsl Oct 13, 2022
d0d43a3
Fix devcontainer
twsl Oct 14, 2022
e76151c
Upgrade pre-commit
twsl Oct 14, 2022
b28111b
Restructuring
twsl Oct 16, 2022
4ff4a38
Raw test structure
twsl Oct 16, 2022
2568301
Box class removal
twsl Oct 17, 2022
c736ff1
Fix test issues
twsl Oct 17, 2022
566edfd
Make class abstract
twsl Oct 18, 2022
5416cd6
Fix iou results
twsl Oct 18, 2022
cbc824c
Merge branch 'master' into feature/iou
SkafteNicki Oct 24, 2022
1eadc78
Update src/torchmetrics/detection/ciou.py
twsl Oct 24, 2022
09ce274
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 24, 2022
948d115
Update src/torchmetrics/detection/diou.py
twsl Oct 24, 2022
9855c83
Update src/torchmetrics/detection/giou.py
twsl Oct 24, 2022
4775314
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 24, 2022
762d635
Update src/torchmetrics/detection/iou.py
twsl Oct 24, 2022
093114f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 24, 2022
224aaca
Update src/torchmetrics/detection/helpers.py
twsl Oct 24, 2022
98555fa
Update src/torchmetrics/detection/helpers.py
twsl Oct 24, 2022
22800e7
Apply suggestions from code review
twsl Oct 24, 2022
5f1c3d1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 24, 2022
696566b
changelog
SkafteNicki Oct 24, 2022
e3bf8e9
docs
SkafteNicki Oct 24, 2022
28c8737
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 24, 2022
1508383
Fix method order, missing args description & iou
twsl Oct 24, 2022
7daa0bb
Merge branch 'master' into feature/iou
SkafteNicki Oct 25, 2022
06b1adf
Merge branch 'master' into feature/iou
SkafteNicki Oct 25, 2022
bb2e6d2
Merge branch 'master' into feature/iou
justusschock Oct 31, 2022
7ff90e2
Merge branch 'master' into feature/iou
SkafteNicki Oct 31, 2022
7ed7701
Merge branch 'master' into feature/iou
SkafteNicki Nov 4, 2022
d5bd36f
Label-respecting approach
twsl Dec 22, 2022
d6e52b5
Merge branch 'master' into feature/iou
twsl Dec 22, 2022
373557b
Merge branch 'master' into feature/iou
twsl Dec 25, 2022
68d875a
Merge branch 'master' into feature/iou
stancld Jan 7, 2023
dd27625
Merge branch 'master' into feature/iou
twsl Jan 22, 2023
c52f592
Fix compare_version & typo
twsl Jan 22, 2023
0c6be00
Update src/torchmetrics/detection/ciou.py
twsl Jan 24, 2023
5874af7
Update src/torchmetrics/detection/diou.py
twsl Jan 24, 2023
e872266
Update src/torchmetrics/detection/diou.py
twsl Jan 24, 2023
c91777a
Update src/torchmetrics/detection/diou.py
twsl Jan 24, 2023
ff3c5fa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 24, 2023
c70d10c
Merge branch 'master' into feature/iou
twsl Jan 28, 2023
43e0512
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 28, 2023
6bd7c67
Merge branch 'master' into feature/iou
twsl Feb 6, 2023
ffebafe
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 6, 2023
54eb1c7
fn variant
twsl Feb 6, 2023
c5ae700
Merge branch 'feature/iou' of https://github.com/twsl/metrics into fe…
twsl Feb 6, 2023
5be9d5f
Applied suggestions
twsl Feb 6, 2023
74a4239
Increase torchvision version
twsl Feb 6, 2023
8f67381
Merge branch 'master' into feature/iou
twsl Feb 6, 2023
f24a48a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 6, 2023
16cbaad
Merge branch 'master' into feature/iou
twsl Feb 6, 2023
a5fa358
Merge branch 'master' into feature/iou
Borda Feb 7, 2023
9ed490a
Fix mypy
twsl Feb 7, 2023
ac9cc26
Add torchvision test condition
twsl Feb 7, 2023
0bf773b
Merge branch 'master' into feature/iou
twsl Feb 7, 2023
a205caf
Attempt to fix tests
twsl Feb 7, 2023
1e1b283
Merge branch 'master' into feature/iou
twsl Feb 9, 2023
334a94c
Merge branch 'master' into feature/iou
twsl Feb 14, 2023
6b6e097
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 14, 2023
8b5109e
Reverse type hint due to python 3.7 conflict
twsl Feb 14, 2023
e945ee0
Merge branch 'master' into feature/iou
twsl Feb 16, 2023
2260d55
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 16, 2023
053f75d
Update __init__.py
twsl Feb 16, 2023
47321bf
Update requirements/detection.txt
twsl Feb 16, 2023
258f1fd
Update requirements/detection_test.txt
twsl Feb 16, 2023
7ef77fb
Merge branch 'master' into feature/iou
mergify[bot] Feb 17, 2023
cac08b6
Merge branch 'master' into feature/iou
mergify[bot] Feb 17, 2023
d29c1d4
Merge branch 'master' into feature/iou
mergify[bot] Feb 17, 2023
3077216
Merge branch 'master' into feature/iou
twsl Feb 22, 2023
adf57e5
Merge branch 'master' into feature/iou
mergify[bot] Feb 23, 2023
ce5fff1
Merge branch 'master' into feature/iou
mergify[bot] Feb 23, 2023
3721da7
Merge branch 'master' into feature/iou
mergify[bot] Feb 23, 2023
927d05e
Merge branch 'master' into feature/iou
mergify[bot] Feb 23, 2023
68a0d3c
Merge branch 'master' into feature/iou
mergify[bot] Feb 23, 2023
3b9f91c
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
ef21d93
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
f7903f6
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
8dc5892
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
3f086ce
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
53566a9
ruff: first line split + imperative mood (#1548)
SkafteNicki Feb 24, 2023
2a3f488
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
a7331b0
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
1a074e9
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
9f40e94
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
eef1f2e
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
5b9dcf0
Merge branch 'master' into feature/iou
mergify[bot] Feb 24, 2023
a7cdf2f
Merge branch 'master' into feature/iou
mergify[bot] Feb 25, 2023
2fcae4d
Merge branch 'master' into feature/iou
mergify[bot] Feb 25, 2023
0969107
Merge branch 'master' into feature/iou
mergify[bot] Feb 25, 2023
4b03a8b
Merge branch 'master' into feature/iou
Borda Feb 27, 2023
b4ac2d6
Merge branch 'master' into feature/iou
mergify[bot] Feb 27, 2023
0998d6e
Merge branch 'master' into feature/iou
mergify[bot] Feb 27, 2023
510dbeb
Merge branch 'master' into feature/iou
mergify[bot] Feb 28, 2023
15187ee
Merge branch 'master' into feature/iou
mergify[bot] Feb 28, 2023
9ab4546
fix docs
Borda Feb 28, 2023
901e819
function as input
Borda Feb 28, 2023
cb92f3c
map
Borda Feb 28, 2023
5329a81
ref name
Borda Feb 28, 2023
8174dbe
Merge branch 'master' into feature/iou
mergify[bot] Feb 28, 2023
4d6cb84
Merge branch 'master' into feature/iou
mergify[bot] Feb 28, 2023
4bac14e
Merge branch 'master' into feature/iou
mergify[bot] Feb 28, 2023
06d8ebf
Merge branch 'master' into feature/iou
mergify[bot] Feb 28, 2023
d00e591
Fix iou type and fn call
twsl Feb 28, 2023
2642f4f
Fix mypy
twsl Feb 28, 2023
4a5859d
Fix doc test results
twsl Feb 28, 2023
eafffda
Merge branch 'master' into feature/iou
mergify[bot] Mar 1, 2023
04eef3c
Fix renamed iou type
twsl Mar 1, 2023
09de1a2
Fix input validator
twsl Mar 1, 2023
5474af9
Update tests
twsl Mar 1, 2023
2c4084b
Fix iou_type check
twsl Mar 1, 2023
9ba74cd
Fix labels_eq
twsl Mar 1, 2023
d09186d
Merge branch 'master' into feature/iou
mergify[bot] Mar 1, 2023
73a47a1
Update iou.py
twsl Mar 1, 2023
68226fb
Merge branch 'master' into feature/iou
twsl Mar 2, 2023
cac5347
Merge branch 'master' into feature/iou
mergify[bot] Mar 3, 2023
2b3a43b
Merge branch 'master' into feature/iou
twsl Mar 4, 2023
0ecadbe
Merge branch 'master' into feature/iou
mergify[bot] Mar 4, 2023
0826edd
Merge branch 'master' into feature/iou
mergify[bot] Mar 4, 2023
208e12e
Merge branch 'master' into feature/iou
mergify[bot] Mar 5, 2023
973e277
Merge branch 'master' into feature/iou
mergify[bot] Mar 6, 2023
b6dd6a7
Merge branch 'master' into feature/iou
mergify[bot] Mar 6, 2023
b580a84
Merge branch 'master' into feature/iou
mergify[bot] Mar 6, 2023
ada72ae
Merge branch 'master' into feature/iou
mergify[bot] Mar 6, 2023
798ec0b
Merge branch 'master' into feature/iou
mergify[bot] Mar 6, 2023
4f926c4
Merge branch 'master' into feature/iou
mergify[bot] Mar 7, 2023
242291a
Merge branch 'master' into feature/iou
mergify[bot] Mar 7, 2023
fa102fb
Merge branch 'master' into feature/iou
mergify[bot] Mar 9, 2023
ccbbc36
Merge branch 'master' into feature/iou
mergify[bot] Mar 9, 2023
a7bb8a2
Merge branch 'master' into feature/iou
mergify[bot] Mar 10, 2023
0d9b638
Merge branch 'master' into feature/iou
mergify[bot] Mar 10, 2023
b7394f6
Merge branch 'master' into feature/iou
mergify[bot] Mar 10, 2023
cec317a
Merge branch 'master' into feature/iou
mergify[bot] Mar 10, 2023
5131e24
Merge branch 'master' into feature/iou
mergify[bot] Mar 10, 2023
3818e81
Merge branch 'master' into feature/iou
mergify[bot] Mar 11, 2023
ffb3414
Merge branch 'master' into feature/iou
mergify[bot] Mar 13, 2023
cbec03d
Merge branch 'master' into feature/iou
mergify[bot] Mar 13, 2023
21562d6
Merge branch 'master' into feature/iou
mergify[bot] Mar 13, 2023
802ad5b
Merge branch 'master' into feature/iou
mergify[bot] Mar 14, 2023
a3ef293
Merge branch 'master' into feature/iou
mergify[bot] Mar 14, 2023
0bf3df1
Merge branch 'master' into feature/iou
mergify[bot] Mar 14, 2023
135859f
Merge branch 'master' into feature/iou
mergify[bot] Mar 14, 2023
d27b833
Merge branch 'master' into feature/iou
mergify[bot] Mar 14, 2023
48f35c8
Merge branch 'master' into feature/iou
mergify[bot] Mar 15, 2023
5f1129b
Merge branch 'master' into feature/iou
mergify[bot] Mar 15, 2023
fdac582
Update devcontainer
twsl Mar 15, 2023
c34592f
Use floats
twsl Mar 15, 2023
df4e3ad
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 15, 2023
a6bdb70
Fix ruff errors
twsl Mar 15, 2023
ac81a81
Merge branch 'master' into feature/iou
mergify[bot] Mar 15, 2023
11bd031
Merge branch 'master' into feature/iou
mergify[bot] Mar 15, 2023
6834e88
Merge branch 'master' into feature/iou
justusschock Mar 17, 2023
7bcf3f0
Merge branch 'master' into feature/iou
mergify[bot] Mar 17, 2023
21e5075
Merge branch 'master' into feature/iou
mergify[bot] Mar 17, 2023
4a3f82e
Merge branch 'master' into feature/iou
Borda Mar 21, 2023
3eb66c9
Merge branch 'master' into feature/iou
mergify[bot] Mar 21, 2023
a4216c1
Merge branch 'master' into feature/iou
mergify[bot] Mar 21, 2023
68bcdbd
Merge branch 'master' into feature/iou
mergify[bot] Mar 21, 2023
c1bf2e2
Merge branch 'master' into feature/iou
mergify[bot] Mar 21, 2023
acca3d5
Clean up
twsl Mar 21, 2023
c3cbf78
Merge branch 'master' into feature/iou
mergify[bot] Mar 28, 2023
8d552ad
Merge branch 'master' into feature/iou
mergify[bot] Mar 28, 2023
b955e3a
Merge branch 'master' into feature/iou
mergify[bot] Mar 28, 2023
ffd2b9b
Merge branch 'master' into feature/iou
mergify[bot] Mar 28, 2023
56196cb
Merge branch 'master' into feature/iou
mergify[bot] Mar 28, 2023
007c095
Merge branch 'master' into feature/iou
mergify[bot] Mar 28, 2023
b6c1ad8
Merge branch 'master' into feature/iou
mergify[bot] Mar 28, 2023
632e33b
Merge branch 'master' into feature/iou
mergify[bot] Mar 28, 2023
d44dfb0
Merge branch 'master' into feature/iou
mergify[bot] Mar 28, 2023
2dfdebf
Merge branch 'master' into feature/iou
mergify[bot] Mar 28, 2023
4c2e726
Merge branch 'master' into feature/iou
mergify[bot] Mar 29, 2023
3ec6240
Merge branch 'master' into feature/iou
mergify[bot] Mar 31, 2023
c99be22
Merge branch 'master' into feature/iou
mergify[bot] Mar 31, 2023
7e213cc
Merge branch 'master' into feature/iou
mergify[bot] Mar 31, 2023
f7b0551
Merge branch 'master' into feature/iou
mergify[bot] Mar 31, 2023
bceb364
Merge branch 'master' into feature/iou
mergify[bot] Mar 31, 2023
7a36261
Merge branch 'master' into feature/iou
mergify[bot] Mar 31, 2023
e5e4611
Merge branch 'master' into feature/iou
mergify[bot] Mar 31, 2023
a916229
missing docs imports
SkafteNicki Apr 13, 2023
d78f01e
merge master
SkafteNicki Apr 13, 2023
753894a
docs
SkafteNicki Apr 13, 2023
15a52e9
changelog
SkafteNicki Apr 13, 2023
b35f077
fix race condition
SkafteNicki Apr 13, 2023
376f0ca
Merge branch 'master' into feature/iou
SkafteNicki Apr 13, 2023
cfc979b
fix test values
SkafteNicki Apr 13, 2023
ca93130
Merge branch 'feature/iou' of https://github.com/twsl/metrics into fe…
SkafteNicki Apr 13, 2023
06a7018
Merge branch 'master' into feature/iou
mergify[bot] Apr 13, 2023
78e13dc
Merge branch 'master' into feature/iou
mergify[bot] Apr 13, 2023
0d3d8bd
Merge branch 'master' into feature/iou
mergify[bot] Apr 13, 2023
023f0fb
add doc examples
SkafteNicki Apr 14, 2023
0b11823
add plot methods
SkafteNicki Apr 14, 2023
d162836
Merge branch 'master' into feature/iou
Borda Apr 14, 2023
c50b6b9
docs require
SkafteNicki Apr 14, 2023
baacd67
add input/output descriptions
SkafteNicki Apr 14, 2023
d2f648c
fix plot doctest
SkafteNicki Apr 14, 2023
adcc552
Merge branch 'master' into feature/iou
SkafteNicki Apr 15, 2023
dbbfd57
Merge branch 'master' into feature/iou
mergify[bot] Apr 17, 2023
aaa0ba1
Merge branch 'master' into feature/iou
Borda Apr 17, 2023
0998047
Merge branch 'master' into feature/iou
mergify[bot] Apr 17, 2023
18d10e6
Merge branch 'master' into feature/iou
mergify[bot] Apr 17, 2023
9e5954a
Merge branch 'master' into feature/iou
mergify[bot] Apr 17, 2023
6fe6a2a
Merge branch 'master' into feature/iou
mergify[bot] Apr 17, 2023
b1ef07a
Merge branch 'master' into feature/iou
mergify[bot] Apr 17, 2023
5a97680
__doctest_requires__
Borda Apr 17, 2023
b7f6b52
doctests
Borda Apr 17, 2023
826c4bb
Merge branch 'master' into feature/iou
mergify[bot] Apr 17, 2023
d088258
import
Borda Apr 17, 2023
1536cde
Merge branch 'feature/iou' of https://github.com/twsl/metrics into fe…
Borda Apr 17, 2023
940eedf
import
Borda Apr 17, 2023
fdc7178
+
Borda Apr 17, 2023
c6d2b74
Merge branch 'master' into feature/iou
mergify[bot] Apr 17, 2023
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
130 changes: 68 additions & 62 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,70 +22,76 @@
//"--shm-size=4gb",
],
// Set *default* container specific settings.json values on container create.
"settings": {
"editor.formatOnSave": true,
"editor.rulers": [
120
],
"python.pythonPath": "/usr/local/bin/python",
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.languageServer": "Pylance",
"python.autoComplete.addBrackets": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.completeFunctionParens": true,
"python.analysis.autoSearchPaths": true,
"python.analysis.useImportHeuristic": true,
"python.sortImports": true,
"python.sortImports.args": [
"--settings-path=${workspaceFolder}/pyproject.toml",
],
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--config=${workspaceFolder}/pyproject.toml"
],
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--config=${workspaceFolder}/setup.cfg",
"--verbose"
],
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"restructuredtext.confPath": "${workspaceFolder}/docs/source",
"restructuredtext.builtDocumentationPath": "${workspaceFolder}/docs/build",
"restructuredtext.languageServer.disabled": false,
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true,
}
"customizations": {
"vscode": {
"settings": {
"editor.formatOnSave": true,
"editor.rulers": [
120
],
"files.exclude": {
"**/__pycache__": true
},
"python.pythonPath": "/usr/local/bin/python",
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.languageServer": "Pylance",
"python.autoComplete.addBrackets": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.completeFunctionParens": true,
"python.analysis.autoSearchPaths": true,
"python.analysis.useImportHeuristic": true,
"python.sortImports": true,
"isort.args": [
"--settings-path=${workspaceFolder}/pyproject.toml"
],
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--config=${workspaceFolder}/pyproject.toml"
],
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--config=${workspaceFolder}/setup.cfg",
"--verbose"
],
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"esbonio.sphinx.confDir": "${workspaceFolder}/docs/source",
"esbonio.sphinx.buildDir": "${workspaceFolder}/docs/build",
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
}
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"visualstudioexptteam.vscodeintellicode",
"kevinrose.vsc-python-indent",
"littlefoxteam.vscode-python-test-adapter",
"hbenl.vscode-test-explorer",
"medo64.render-crlf",
"shardulm94.trailing-spaces",
"njqdev.vscode-python-typehint",
"lextudio.restructuredtext",
"trond-snekvik.simple-rst"
]
}
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"visualstudioexptteam.vscodeintellicode",
"kevinrose.vsc-python-indent",
"littlefoxteam.vscode-python-test-adapter",
"hbenl.vscode-test-explorer",
"medo64.render-crlf",
"shardulm94.trailing-spaces",
"njqdev.vscode-python-typehint",
"lextudio.restructuredtext",
"trond-snekvik.simple-rst",
],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added `PrecisionAtFixedRecall` metric to classification package ([#1683](https://github.com/Lightning-AI/torchmetrics/pull/1683))


- Added multiple metrics to detection package ([#1284](https://github.com/Lightning-AI/metrics/pull/1284))
* `IntersectionOverUnion`
* `GeneralizedIntersectionOverUnion`
* `CompleteIntersectionOverUnion`
* `DistanceIntersectionOverUnion`


### Changed

- Changed `update_count` and `update_called` from private to public methods ([#1370](https://github.com/Lightning-AI/metrics/pull/1370))
Expand Down
21 changes: 21 additions & 0 deletions docs/source/detection/complete_intersection_over_union.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. customcarditem::
:header: Complete Intersection Over Union (cIoU)
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/object_detection.svg
:tags: Detection

#######################################
Complete Intersection Over Union (cIoU)
#######################################

Module Interface
________________

.. autoclass:: torchmetrics.detection.ciou.CompleteIntersectionOverUnion
:noindex:
:exclude-members: update, compute

Functional Interface
____________________

.. autofunction:: torchmetrics.functional.detection.ciou.complete_intersection_over_union
:noindex:
21 changes: 21 additions & 0 deletions docs/source/detection/distance_intersection_over_union.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. customcarditem::
:header: Distance Intersection Over Union (dIoU)
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/object_detection.svg
:tags: Detection

#######################################
Distance Intersection Over Union (dIoU)
#######################################

Module Interface
________________

.. autoclass:: torchmetrics.detection.diou.DistanceIntersectionOverUnion
:noindex:
:exclude-members: update, compute

Functional Interface
____________________

.. autofunction:: torchmetrics.functional.detection.diou.distance_intersection_over_union
:noindex:
21 changes: 21 additions & 0 deletions docs/source/detection/generalized_intersection_over_union.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. customcarditem::
:header: Generalized Intersection Over Union (gIoU)
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/object_detection.svg
:tags: Detection

##########################################
Generalized Intersection Over Union (gIoU)
##########################################

Module Interface
________________

.. autoclass:: torchmetrics.detection.giou.GeneralizedIntersectionOverUnion
:noindex:
:exclude-members: update, compute

Functional Interface
____________________

.. autofunction:: torchmetrics.functional.detection.giou.generalized_intersection_over_union
:noindex:
21 changes: 21 additions & 0 deletions docs/source/detection/intersection_over_union.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. customcarditem::
:header: Intersection Over Union (IoU)
:image: https://pl-flash-data.s3.amazonaws.com/assets/thumbnails/object_detection.svg
:tags: Detection

#############################
Intersection Over Union (IoU)
#############################

Module Interface
________________

.. autoclass:: torchmetrics.detection.iou.IntersectionOverUnion
:noindex:
:exclude-members: update, compute

Functional Interface
____________________

.. autofunction:: torchmetrics.functional.detection.iou.intersection_over_union
:noindex:
18 changes: 15 additions & 3 deletions src/torchmetrics/detection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,23 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from torchmetrics.detection.panoptic_qualities import ModifiedPanopticQuality, PanopticQuality
from torchmetrics.utilities.imports import _TORCHVISION_GREATER_EQUAL_0_8
from torchmetrics.utilities.imports import (
_TORCHVISION_AVAILABLE,
_TORCHVISION_GREATER_EQUAL_0_8,
_TORCHVISION_GREATER_EQUAL_0_13,
)

__all__ = ["ModifiedPanopticQuality", "PanopticQuality"]

if _TORCHVISION_GREATER_EQUAL_0_8:
from torchmetrics.detection.mean_ap import MeanAveragePrecision # noqa: F401
from torchmetrics.detection.giou import GeneralizedIntersectionOverUnion
from torchmetrics.detection.iou import IntersectionOverUnion
from torchmetrics.detection.mean_ap import MeanAveragePrecision

__all__.append("MeanAveragePrecision")
__all__ += ["MeanAveragePrecision", "GeneralizedIntersectionOverUnion", "IntersectionOverUnion"]

if _TORCHVISION_GREATER_EQUAL_0_13:
from torchmetrics.detection.ciou import CompleteIntersectionOverUnion
from torchmetrics.detection.diou import DistanceIntersectionOverUnion

__all__ += ["CompleteIntersectionOverUnion", "DistanceIntersectionOverUnion"]
Loading