Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 0 additions & 3 deletions tests/_commands/test_predict_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#
from __future__ import annotations

import os
import sys
from pathlib import Path

Expand All @@ -17,8 +16,6 @@

from .. import helpers

is_self_hosted_docker_runner = "GH_RUNNER_NAME" in os.environ


def create_dinov2_vittest14_eomt_test_checkpoint(
directory: Path, num_channels: int = 3
Expand Down
59 changes: 0 additions & 59 deletions tests/_commands/test_train_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
pytest.skip("Transformers not installed", allow_module_level=True)

import logging
import os
import sys

import torch
Expand All @@ -71,8 +70,6 @@

from .. import helpers

is_self_hosted_docker_runner = "GH_RUNNER_NAME" in os.environ

try:
import pydicom
except ImportError:
Expand Down Expand Up @@ -295,13 +292,6 @@ def test_train_object_detection_yolo(tmp_path: Path, num_workers: int) -> None:
assert (image_examples_dir / "val_predictions_0.jpg").exists()


@pytest.mark.skipif(
is_self_hosted_docker_runner,
reason=(
"Fails on self-hosted CI with GPU (insufficient shared memory causes worker "
"bus error"
),
)
def test_train_instance_segmentation(
tmp_path: Path,
) -> None:
Expand Down Expand Up @@ -349,13 +339,6 @@ def test_train_instance_segmentation(
assert (image_examples_dir / "val_predictions_0.jpg").exists()


@pytest.mark.skipif(
is_self_hosted_docker_runner,
reason=(
"Fails on self-hosted CI with GPU (insufficient shared memory causes worker "
"bus error"
),
)
def test_train_panoptic_segmentation(
tmp_path: Path,
) -> None:
Expand Down Expand Up @@ -408,13 +391,6 @@ def test_train_panoptic_segmentation(
assert (image_examples_dir / "val_predictions_0.jpg").exists()


@pytest.mark.skipif(
is_self_hosted_docker_runner,
reason=(
"Fails on self-hosted CI with GPU (insufficient shared memory causes worker "
"bus error"
),
)
def test_train_panoptic_segmentation__dinov2(
tmp_path: Path,
) -> None:
Expand Down Expand Up @@ -468,13 +444,6 @@ def test_train_panoptic_segmentation__dinov2(
assert (image_examples_dir / "val_predictions_0.jpg").exists()


@pytest.mark.skipif(
is_self_hosted_docker_runner,
reason=(
"Fails on self-hosted CI with GPU (insufficient shared memory causes worker "
"bus error)"
),
)
@pytest.mark.parametrize(
"model_name, model_args",
[
Expand Down Expand Up @@ -635,13 +604,6 @@ def test_train_semantic_segmentation__dicom(
)


@pytest.mark.skipif(
is_self_hosted_docker_runner,
reason=(
"Fails on self-hosted CI with GPU (insufficient shared memory causes worker "
"bus error)"
),
)
@pytest.mark.parametrize(
"model_name, model_args",
[
Expand Down Expand Up @@ -707,13 +669,6 @@ def test_train_semantic_segmentation__export(
assert torch.equal(ckpt_model_state_dict[key], exported_model_state_dict[key])


@pytest.mark.skipif(
is_self_hosted_docker_runner,
reason=(
"Fails on self-hosted CI with GPU (insufficient shared memory causes worker "
"bus error)"
),
)
def test_train_semantic_segmentation__checkpoint(
tmp_path: Path, caplog: LogCaptureFixture
) -> None:
Expand Down Expand Up @@ -818,13 +773,6 @@ def test_train_semantic_segmentation__checkpoint(
assert "Checkpoint provides 2 classes but module expects 3." in caplog.text


@pytest.mark.skipif(
is_self_hosted_docker_runner,
reason=(
"Fails on self-hosted CI with GPU (insufficient shared memory causes worker "
"bus error)"
),
)
def test_train_semantic_segmentation__resume_interrupted(
tmp_path: Path, caplog: LogCaptureFixture
) -> None:
Expand Down Expand Up @@ -900,13 +848,6 @@ def test_train_semantic_segmentation__resume_interrupted(
assert "Resuming training from step 1/1..." in caplog.text


@pytest.mark.skipif(
is_self_hosted_docker_runner,
reason=(
"Fails on self-hosted CI with GPU (insufficient shared memory causes worker "
"bus error)"
),
)
def test_train_semantic_segmentation_multihead__integration__runs_with_multiple_heads(
tmp_path: Path,
) -> None:
Expand Down
Loading