--- title: Additional Information keywords: fastai sidebar: home_sidebar summary: "This Notebook contains information on use of _deepflash2_." description: "This Notebook contains information on use of _deepflash2_." nb_path: "nbs/add_information.ipynb" ---
Input Details: deepflash2 fuses
Examplary input folder structure:
expert_segmentations -> one parent folder
│
│───expert1 -> one folder per expert
│ │ mask1.png -> segmentation masks
│ │ mask2.png
│
└───expert2
│ mask1.png
│ mask2.png
All common image formats (tif, png, etc.) are supported. See imageio docs.
Examplary input folder structure:
──images -> one image folder
│ 0001.tif
│ 0002.tif
──masks -> one mask folder
│ 0001_mask.png
│ 0002_mask.png
All common image formats (tif, png, etc.) are supported. See imageio docs.
Examplary input folder structure:
──images -> one image folder
│ 0001.tif
│ 0002.tif
──masks -> one masks folder (evaluation only)
│ 0001_mask.png
│ 0002_mask.png
──ensemble -> one model folder
│ Unet_resnet34_2classes-fold1.pth
│ Unet_resnet34_2classes-fold2.pth
The train-validation-split is defined as _k-fold cross validation_ with n_splits
n_splits
is the minimum of: (number of files in dataset, max_splits
(default:5))n_splits
Example for a dataset containing 15 images
model_1
is trained on 12 images (3 validation images) model_2
is trained on 12 images (3 different validation images) model_5
is trained on 12 images (3 different validation images) Example for a dataset containing 2 images
model_1
is trained on 1 image (1 validation image) model_2
is trained on 1 images (1 different validation image) To streamline the training process and allow an easier comparison across differently sized datasets, we decided to use the number of training iterations instead of epochs to define the lenght of a training cycle.
Some useful definitions (adapted from stackoverflow):