DeepMIB - Directories and Preprocessing tab

This tab allows choosing directories with images for training and prediction as well as various parameters used during image loading and preprocessing

Back to Index --> User Guide --> Menu --> Tools Menu --> Deep learning segmentation

 

Contents

 

Widgets and settings

Directory with images and labels for training
[ used only for training ]

use these widgets to select directory that contain images and model to be used for training. For the organization of directories see the organization schemes below.
For 2D networks the files should contain individual 2D images, while for 3D networks individual 3D datasets.
The extension ▼ dropdown menu on the right-hand side can be used to specify extension of the image files.
The [✓] Bio checkbox toggles standard or Bio-format readers for loading images. If the Bio-Format file is a collection of image, the Index... edit box can be used to specify an index of the file within the container.
For better performance, it is recommended to convert Bio-Formats compatible images to standard formats or to use the Preprocessing option (see below).

Important notes considering training files

  • Number of model or mask files should match the number of image files (one exception is 2D networks, where it is allowed to have a single model file in MIB *.model format, when Single MIB model file: ticked). This option requires data preprocessing
  • For labels in standard image formats it is important to specify number of classes including the Exterior into the Number of classes edit box
  • Important! It is not possible to use numbers as names of materials, please name materials in a sensible way when using the *.model format!


Directory with images for prediction
[ used only for prediction ]
use these widgets to specify directory with images for prediction (named 2_Prediction in the file organization schemes below).

The image files should be placed under Images subfolder (it is also possible to place images directly into a folder specified in this panel). Optionally, when the ground truth labels for prediction images are available, they can be placed under Labels subfolder.

When the preprocessing mode is used the images from this folder are converted and saved to 3_Results\Prediction images directory. When the ground truth labels are present, they are also processed and copied to 3_Results\PredictionImages\GroundTruthLabels. These labels can be used for evaluation of results (see for details).

For 2D networks the files should contain individual 2D images or 3D stacks, while for 3D networks individual 3D datasets.

The extension ▼ dropdown menu on the right-hand side can be used to specify extension of the image files. The [✓] Bio checkbox toggles standard or Bio-format readers for loading the images. If the Bio-Format file is a collection of image, the Index edit box can be used to specify an index of the file within the container.


Directory with resulting images
use these widgets to specify the main output directory; results and all preprocessed images are stored there.

All subfolders inside this directory are automatically created by Deep MIB:

Description of directories created by DeepMIB

  • PredictionImages, place for the prepocessed images for prediction
  • PredictionImages\GroundTruthLabels, place for ground truth labels for prediction images, when available
  • PredictionImages\ResultsModels, the main outout directory with generated labels after prediction. The 2D models can be combined in MIB by selecting the files using the ⇧ Shift+left mouse click during loading
  • PredictionImages\ResultsScores, folder for generated prediction scores (probability) for each material. The score values are scaled between 0 and 255
  • ScoreNetwork, for accuracy and loss score plots, when the Export training plots option of the Train tab is ticked and for storing checkpoints of the network after each epoch (or specified frequency), when the [✓] Save progress after each epoch checkbox is ticked. The score files are started with a date-time tag and overwritten when a new training is started
  • TrainImages, images to be used for training (only for preprocessing mode)
  • TrainLabels, labels accompanying images to be used for training (only for preprocessing mode)
  • ValidationImages, images to be used for validation during training (only for preprocessing mode)
  • ValidationLabels, labels accompanying images for validation (only for preprocessing mode)

Label file details