Coverage for src/deepdraw/configs/datasets/drive/mtest.py: 100%
5 statements
« prev ^ index » next coverage.py v7.3.1, created at 2023-11-30 15:00 +0100
« prev ^ index » next coverage.py v7.3.1, created at 2023-11-30 15:00 +0100
1# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
2#
3# SPDX-License-Identifier: GPL-3.0-or-later
5"""DRIVE cross-evaluation dataset with matched resolution.
7* Configuration resolution: 544 x 544
8"""
10from ....data.transforms import Crop, Pad, Resize
11from .xtest import dataset as _xt
12from .xtest import second_annotator # noqa
14dataset = {
15 "train": _xt["train"],
16 "test": _xt["test"],
17 "stare (train)": _xt["stare (train)"].copy(
18 [Resize(471), Pad((0, 37, 0, 36))]
19 ),
20 "stare (test)": _xt["stare (test)"].copy(
21 [Resize(471), Pad((0, 37, 0, 36))]
22 ),
23 "chasedb1 (train)": _xt["chasedb1 (train)"].copy(
24 [Resize(544), Crop(0, 12, 544, 544)]
25 ),
26 "chasedb1 (test)": _xt["chasedb1 (test)"].copy(
27 [Resize(544), Crop(0, 12, 544, 544)]
28 ),
29 "hrf (train)": _xt["hrf (train)"].copy([Resize(363), Pad((0, 90, 0, 91))]),
30 "hrf (test)": _xt["hrf (test)"].copy([Resize(363), Pad((0, 90, 0, 91))]),
31 "iostar (train)": _xt["iostar (train)"].copy([Resize(544)]),
32 "iostar (test)": _xt["iostar (test)"].copy([Resize(544)]),
33}