You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This folder contains the scripts for training a 3D U-Net for cell segmentation in the cochlea data.
4
+
It contains two relevant scripts:
5
+
-`check_training_data.py`, which visualizes the training data and annotations in napari.
6
+
-`train_distance_unet.py`, which trains the 3D U-Net.
7
+
8
+
Both scripts accept the argument `-i /path/to/data`, to specify the root folder with the training data. For example, run `python train_distance_unet.py -i /path/to/data` for training. The scripts will consider all tif files in the sub-folders of the root folder for training.
9
+
They will load the **image data** according to the following rules:
10
+
- Files with the ending `_annotations.tif` or `_cp_masks.tif` will not be considered as image data.
11
+
- The other files will be considered as image data, if a corresponding file with ending `_annotations.tif` can be found. If it cannot be found the file will be excluded; the scripts will print the name of all files being excluded.
12
+
13
+
The training script will save the trained model in `checkpoints/cochlea_distance_unet_<CURRENT_DATE>`, e.g. `checkpoints/cochlea_distance_unet_20250115`.
14
+
For further options for the scripts run `python check_training_data.py -h` / `python train_distance_unet.py -h`.
0 commit comments