Skip to content

Commit 0512f2d

Browse files
Bump torchmetrics from 1.6.1 to 1.6.2 in /requirements (microsoft#2623)
* Bump torchmetrics from 1.6.1 to 1.6.2 in /requirements Bumps [torchmetrics](https://github.com/Lightning-AI/torchmetrics) from 1.6.1 to 1.6.2. - [Release notes](https://github.com/Lightning-AI/torchmetrics/releases) - [Changelog](https://github.com/Lightning-AI/torchmetrics/blob/master/CHANGELOG.md) - [Commits](Lightning-AI/torchmetrics@v1.6.1...v1.6.2) --- updated-dependencies: - dependency-name: torchmetrics dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Remove type ignores --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Adam J. Stewart <[email protected]>
1 parent cd6c34a commit 0512f2d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ repos:
2929
- pillow>=10.4.0
3030
- pytest>=6.1.2
3131
- scikit-image>=0.22.0
32-
- timm>=1.0.14
32+
- timm>=1.0.15
3333
- torch>=2.6
34-
- torchmetrics>=0.10
34+
- torchmetrics>=1.6.2
3535
- torchvision>=0.18
3636
exclude: (build|data|dist|logo|logs|output)/
3737
- repo: https://github.com/pre-commit/mirrors-prettier

requirements/required.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ segmentation-models-pytorch==0.4.0
1818
shapely==2.0.7
1919
timm==1.0.15
2020
torch==2.6.0
21-
torchmetrics==1.6.1
21+
torchmetrics==1.6.2
2222
torchvision==0.21.0
2323
typing-extensions==4.12.2

torchgeo/trainers/instance_segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def configure_metrics(self) -> None:
117117
* 'Macro' averaging gives equal weight to each class, and is useful for
118118
balanced performance assessment across imbalanced classes.
119119
"""
120-
metrics = MetricCollection([MeanAveragePrecision(iou_type=('bbox', 'segm'))]) # type: ignore[arg-type]
120+
metrics = MetricCollection([MeanAveragePrecision(iou_type=('bbox', 'segm'))])
121121
self.val_metrics = metrics.clone(prefix='val_')
122122
self.test_metrics = metrics.clone(prefix='test_')
123123

0 commit comments

Comments
 (0)