Tutorial¶
Run a segmentation on a new dataset¶
Add a new dataset¶
- Create a folder with the dataset title at
ROOT_DATA_FOLDER/EM/. e.g.ROOT_DATA_FOLDER/EM/DATASET_TITLE. - Create a folder titled
rawin this new folder. - Move the files (pngs/tiff) to the
rawfolder.- pngs should be labeled
{prefix}{index}.png, withindexranging from0000to e.g.0049for a dataset with resultion z =50. Note that indexing starts at 0. The prefix can be empty and should be the same for all files to ensure the sorted order. - a tiff file should use the suffix
.tif. A certain filename is not required.
- pngs should be labeled
- Navigate to the dataset create frontend e.g.
http://localhost/main/datasets/create. - Fill in the form and save
- choose file type
pngseqfor multiple png files andtif3dfor a single tiff file. - The resulution of the files can be obtained with e.g. Fiji
Image > Show Info.... Width == x, Height == y and Depth == z. Forpngseq,zis also equal to the number of png files. - location = e.g.
EM/DATASET_TITLE/raw/.
- choose file type
- The dataset should show up in the list and be accessible by the viewer.
Open the dataset in the viewer¶
- Navigate to
http://localhost/dash/viewer. - Use
Selected datasetto show the new dataset.
Run a segmentation using the correct model¶
- Use
Selected modelto pick the correct pretrained model. e.g.mito 2Dwhen only mitochondria are a class of interest. - Choose a descriptive segmentation.
- Click
Start new segmentation. The loading bar should show success after <1min.
View the generated segmentation¶
- Click the Refresh button at
Selected segmentationin the Viewer. - Selected the new segmentation with the dropdown.
Access the files of the segmentation¶
- The segmentation should be visible using the frontend e.g.
http://localhost/main/segmentations/all. In the edit dialogue, the location of the segmentation is visible. You can navigate to this folder on the network disk e.g.ROOT_DATA_FOLDER/segmentations/{DATASET_TITLE}/{SEGMENTATION_TITLE}/.
Add an external annotation to a dataset¶
- Create a folder at
annotations/{DATASET_TITLE}/with the annotation title e.g.ANNOTATION_TITLE. - Add the annotation files to the folder
- Create a new annotation via the frontend e.g.
http://localhost/main/annotations/create.- location = e.g.
annotations/{DATASET_TITLE}/ANNOTATION_FOLDER - TODO type = ...
- location = e.g.
To work from a previous annotation, duplicate the folder with a different name or reexport to a different folder from your external annotation tool. Then add it via the frontend as usual.
Fine-tune a model with an annotation¶
Create a new annotation¶
Use the annotation tools or add an external annotation.
Fine-tune a model using the created annotation¶
- In Fine-tune model
- select the model and annotation
- epochs = amount of iterations
- choose a new model name e.g.
FINETUNED_MODEL_MITO
- Click Retrain model. The loading bar should show success after 10min-1h.
Run a segmentation using the fine-tuned model¶
- Click refresh at Run segmentation > selected model.
- Select the model
FINETUNED_MODEL_MITO, choose a new segmentation name and run.
Now you can view the segmentation as shown in a different tutorial.