Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Enable tiling non-PANDA WSI datasets #621

Merged
merged 16 commits into from
Dec 16, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix skipped InnerEye dataset tests
  • Loading branch information
dccastro committed Dec 16, 2021
commit abe7b4a7460f94a8e5251a36087394296b172db9
4 changes: 2 additions & 2 deletions Tests/ML/datasets/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import pandas as pd
import pytest
import torch
from pytorch_lightning.core.step_result import Result
from pytorch_lightning.utilities.data import extract_batch_size

from InnerEye.Common import common_util
from InnerEye.ML.config import PaddingMode, SegmentationModelBase
Expand Down Expand Up @@ -502,7 +502,7 @@ def test_sample_metadata_field() -> None:
assert SAMPLE_METADATA_FIELD in fields
# Lightning attempts to determine the batch size by trying to find a tensor field in the sample.
# This only works if any field other than Metadata is first.
assert Result.unpack_batch_size(fields) == batch_size
assert extract_batch_size(fields) == batch_size


def test_custom_collate() -> None:
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[pytest]
testpaths=Tests TestsOutsidePackage TestSubmodule
norecursedirs=azure-pipelines docs datasets sphinx-docs InnerEye logs outputs test_data
norecursedirs=azure-pipelines docs sphinx-docs InnerEye logs outputs test_data
addopts=--strict-markers
markers=
gpu: Test needs a GPU to run
Expand Down