Coverage for src/deepdraw/configs/datasets/chasedb1/mtest.py: 100%

5 statements  

« 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 

4 

5"""CHASE-DB1 cross-evaluation dataset with matched resolution. 

6 

7* Configuration resolution (height x width): 960 x 960 

8""" 

9 

10from ....data.transforms import CenterCrop, Pad, Resize 

11from .xtest import dataset as _xt 

12from .xtest import second_annotator # noqa 

13 

14dataset = { 

15 "train": _xt["train"], 

16 "test": _xt["test"], 

17 "drive (train)": _xt["drive (train)"].copy( 

18 [CenterCrop((544, 544)), Resize(960)] 

19 ), 

20 "drive (test)": _xt["drive (test)"].copy( 

21 [CenterCrop((544, 544)), Resize(960)] 

22 ), 

23 "stare (train)": _xt["stare (train)"].copy( 

24 [Pad((0, 32, 0, 32)), Resize(960), CenterCrop(960)] 

25 ), 

26 "stare (test)": _xt["stare (test)"].copy( 

27 [Pad((0, 32, 0, 32)), Resize(960), CenterCrop(960)] 

28 ), 

29 "hrf (train)": _xt["hrf (train)"].copy( 

30 [Pad((0, 584, 0, 584)), Resize(960)] 

31 ), 

32 "hrf (test)": _xt["hrf (test)"].copy([Pad((0, 584, 0, 584)), Resize(960)]), 

33 "iostar (train)": _xt["iostar (train)"].copy([Resize(960)]), 

34 "iostar (test)": _xt["iostar (test)"].copy([Resize(960)]), 

35}