Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1#!/usr/bin/env python
2# coding=utf-8
4"""COVD-IOSTAR for Vessel Segmentation
6* Configuration resolution: 1024 x 1024
8The dataset available in this file is composed of DRIVE, STARE, CHASE-DB1, and
9HRF (with annotated samples).
11For details on those datasets, consult:
13* See :py:mod:`bob.ip.binseg.data.drive`
14* See :py:mod:`bob.ip.binseg.data.stare`
15* See :py:mod:`bob.ip.binseg.data.chasedb1`
16* See :py:mod:`bob.ip.binseg.data.hrf`
17"""
19from torch.utils.data import ConcatDataset
21from bob.ip.binseg.configs.datasets import augment_subset as _augment
22from bob.ip.binseg.configs.datasets.iostar.vessel import dataset as _baseline
23from bob.ip.binseg.configs.datasets.iostar.vessel_mtest import dataset as _mtest
25dataset = dict(**_baseline)
26dataset["__train__"] = ConcatDataset(
27 [
28 _augment(_mtest["drive (train)"], rotation_before=True),
29 _augment(_mtest["drive (test)"], rotation_before=True),
30 _augment(_mtest["stare (train)"], rotation_before=True),
31 _augment(_mtest["stare (test)"], rotation_before=True),
32 _augment(_mtest["chasedb1 (train)"], rotation_before=True),
33 _augment(_mtest["chasedb1 (test)"], rotation_before=True),
34 _augment(_mtest["hrf (train)"], rotation_before=False),
35 _augment(_mtest["hrf (test)"], rotation_before=False),
36 ]
37)
38dataset["train"] = ConcatDataset(
39 [
40 _mtest["drive (train)"],
41 _mtest["drive (test)"],
42 _mtest["stare (train)"],
43 _mtest["stare (test)"],
44 _mtest["chasedb1 (train)"],
45 _mtest["chasedb1 (test)"],
46 _mtest["hrf (train)"],
47 _mtest["hrf (test)"],
48 ]
49)
50dataset["__valid__"] = dataset["train"]