Supported Datasets¶
# |
Name |
H x W |
# imgs |
Train |
Test |
Mask |
Vessel |
OD |
Cup |
Train-Test split reference |
---|---|---|---|---|---|---|---|---|---|---|
1 |
584 x 565 |
40 |
20 |
20 |
x |
x |
||||
2 |
605 x 700 |
20 |
10 |
10 |
x |
|||||
3 |
960 x 999 |
28 |
8 |
20 |
x |
|||||
4 |
2336 x 3504 |
45 |
15 |
30 |
x |
x |
||||
5 |
1024 x 1024 |
30 |
20 |
10 |
x |
x |
x |
|||
6 |
400 x 600 |
110 |
60 |
50 |
x |
|||||
7 |
1424 x 1072 |
159 |
99 |
60 |
x |
x |
||||
8 |
varying |
101 |
50 |
51 |
x |
x |
||||
9 |
REFUGE train |
2056 x 2124 |
400 |
400 |
x |
x |
||||
9 |
REFUGE val |
1634 x 1634 |
400 |
400 |
x |
x |
Add-on: Folder-based Dataset¶
For quick experimentation we also provide a PyTorch class that works with the following dataset folder structure for images and ground-truth (gt):
root
|- images
|- gt
the file names should have the same stem. Currently all image formats that can be read via PIL are supported. Additionally we support hdf5 binary files.
For training a new dataset config needs to be created. You can copy the template ImageFolder and amend accordingly, e.g. the full path of the dataset and if necessary any preprocessing steps such as resizing, cropping, padding etc..
Training can then be started with
bob binseg train M2UNet /path/to/myimagefolderconfig.py -b 4 -d cuda -o /my/output/path -vv
Similary for testing, a test dataset config needs to be created. You can copy the template ImageFolderTest and amend accordingly.
Testing can then be started with
bob binseg test M2UNet /path/to/myimagefoldertestconfig.py -b 2 -d cuda -o /my/output/path -vv