Skip to content

Trainers: add Instance Segmentation Task #10449

Trainers: add Instance Segmentation Task

Trainers: add Instance Segmentation Task #10449

Triggered via pull request January 27, 2025 13:24
Status Failure
Total duration 3m 32s
Artifacts

style.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 3 warnings
Ruff (I001): tests/trainers/test_instancesegmentation.py#L1
tests/trainers/test_instancesegmentation.py:1:1: I001 Import block is un-sorted or un-formatted
Ruff (F401): tests/trainers/test_instancesegmentation.py#L3
tests/trainers/test_instancesegmentation.py:3:31: F401 `pytorch_lightning.LightningModule` imported but unused
Ruff (F401): tests/trainers/test_instancesegmentation.py#L6
tests/trainers/test_instancesegmentation.py:6:27: F401 `torchgeo.main.main` imported but unused
Ruff (ANN201): tests/trainers/test_instancesegmentation.py#L12
tests/trainers/test_instancesegmentation.py:12:5: ANN201 Missing return type annotation for public function `collate_fn`
Ruff (ANN001): tests/trainers/test_instancesegmentation.py#L12
tests/trainers/test_instancesegmentation.py:12:16: ANN001 Missing type annotation for function argument `batch`
Ruff (I001): torchgeo/trainers/__init__.py#L6
torchgeo/trainers/__init__.py:6:1: I001 Import block is un-sorted or un-formatted
Ruff (F401): torchgeo/trainers/__init__.py#L10
torchgeo/trainers/__init__.py:10:22: F401 `.iobench.IOBenchTask` imported but unused; consider removing, adding to `__all__`, or using a redundant alias
Ruff (F401): torchgeo/trainers/__init__.py#L15
torchgeo/trainers/__init__.py:15:36: F401 `.instance_segmentation.InstanceSegmentationTask` imported but unused; consider removing, adding to `__all__`, or using a redundant alias
Ruff (I001): torchgeo/trainers/instance_segmentation.py#L6
torchgeo/trainers/instance_segmentation.py:6:1: I001 Import block is un-sorted or un-formatted
Ruff (D202): torchgeo/trainers/instance_segmentation.py#L205
torchgeo/trainers/instance_segmentation.py:205:9: D202 No blank lines allowed after function docstring (found 1)
mypy
Process completed with exit code 1.
prettier
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ruff
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
mypy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636