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-HRF for Vessel Segmentation
6* Configuration resolution: 1168 x 1648
8The dataset available in this file is composed of DRIVE STARE, CHASE-DB1, and
9IOSTAR vessel (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.iostar`
17"""
19from torch.utils.data import ConcatDataset
21from bob.ip.binseg.configs.datasets import augment_subset as _augment
22from bob.ip.binseg.configs.datasets.hrf.default import dataset as _baseline
23from bob.ip.binseg.configs.datasets.hrf.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["iostar (train)"], rotation_before=True),
35 _augment(_mtest["iostar (test)"], rotation_before=True),
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["iostar (train)"],
47 _mtest["iostar (test)"],
48 ]
49)
50dataset["__valid__"] = dataset["train"]