Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.45 KB

trainunet-widget.md

File metadata and controls

25 lines (19 loc) · 1.45 KB

Train U-Net.

train_unet

This widget trains a U-Net CNN on training data generated by the Annotate widget.

The current version is indebted to DeLTA for several of the image augmentation functions as well as the implementation of the pixelwise weighted loss.

If you prefer, you can alternately train your model by adapting the Jupyter notebook here.

Parameters

  • Image directory : Location of raw images.
  • Mask directory : Location of segmentation masks.
  • Weights directory : Location of pixelwise weights for training (will be auto-generated if not found).
  • Test data directory : (Optional) location of data to test saved model's performance on.
  • Model file : Path to save trained model.
  • Load pre-trained weights : Option to load pre-trained model.
  • Source model: Pre-trained model location.
  • Training / validation split : Fraction of images to use for training vs. validation.
  • Batch size : Number of samples per epoch (should be a power of 2).
  • Epochs : Number of epochs to train for.
  • Patience : Number of epochs to wait with no improvement in validation loss before early stopping.
  • Image height : Height to rescale images to.
  • Image width : Width to rescale images to.