trainCellpose
Description
trainCellpose(
trains a custom Cellpose model by providing an interface to the Cellpose Library. Use this
syntax to train a model with default options. The function identifies pairs of training and
label images in the dataFolder
,outputModelFile
)dataFolder
folder, and assumes that each label
image has the same file name as the corresponding training image, plus the suffix
"_labels"
.
trainCellpose(
specifies options using one or more name-value arguments. For example,
dataFolder
,outputModelFile
,Name=Value
)ImageSuffix="_imRGB"
trains the model using only images in the
specified data folder with filenames that end in _imRGB
.
Note
This functionality requires Deep Learning Toolbox™, Computer Vision Toolbox™, and the Medical Imaging Toolbox™ Interface for Cellpose Library. You can install the Medical Imaging Toolbox Interface for Cellpose Library from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Examples
Input Arguments
References
[1] Stringer, Carsen, Tim Wang, Michalis Michaelos, and Marius Pachitariu. “Cellpose: A Generalist Algorithm for Cellular Segmentation.” Nature Methods 18, no. 1 (January 2021): 100–106. https://doi.org/10.1038/s41592-020-01018-x.
[2] Pachitariu, Marius, and Carsen Stringer. “Cellpose 2.0: How to Train Your Own Model.” Nature Methods 19, no. 12 (December 2022): 1634–41. https://doi.org/10.1038/s41592-022-01663-4.
Version History
Introduced in R2023b