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
Copy file name to clipboardExpand all lines: docs/res/guides/training_module_guide.rst
+21-15Lines changed: 21 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,12 @@ TRAILMAP An emulation of the `TRAILMAP project on GitHub`_ using `3DUne
23
23
.. _3DUnet for Pytorch: https://github.com/wolny/pytorch-3dunet
24
24
25
25
.. important::
26
-
The machine learning models used by this program require all images of a dataset to be of the same size.
27
-
Please ensure that all the images you are loading are of the **same size**, or to use the **"extract patches" (in augmentation tab)** with an appropriately small size
28
-
to ensure all images being used by the model are of a workable size.
26
+
|The machine learning models used by this program require all images of a dataset to be of the same size.
27
+
|Please ensure that all the images you are loading are of the **same size**, or to use the **"extract patches" (in augmentation tab)** with an appropriately small size to ensure all images being used by the model are of a workable size.
28
+
29
+
.. important::
30
+
|**All image sizes used should be as close to a power of two as possible, if not a power of two.**
31
+
|Images are automatically padded; a 64 pixels cube will be used as is, but a 65 pixel cube will be padded up to 128 pixels, resulting in much higher memory use.
29
32
30
33
The training module is comprised of several tabs.
31
34
@@ -41,36 +44,39 @@ The training module is comprised of several tabs.
41
44
* Whether to use images "as is" (**requires all images to be of the same size and cubic**) or extract patches.
42
45
43
46
* If you're extracting patches :
44
-
* The size of patches to be extracted (ideally, please use a value **close to a power of two**, such as 120 or 60.
45
-
* The number of samples to extract from each of your image to ensure correct size and perform data augmentation. A larger number will likely mean better performances, but longer training and larger memory usage.
47
+
48
+
* The size of patches to be extracted (ideally, please use a value **close to a power of two**, such as 120 or 60 to ensure correct size.)
49
+
* The number of samples to extract from each of your images. A larger number will likely mean better performances, but longer training and larger memory usage.
50
+
46
51
* Whether to perform data augmentation or not (elastic deforms, intensity shifts. random flipping,etc). A rule of thumb for augmentation is :
52
+
47
53
* If you're using the patch extraction method, enable it if you are using more than 10 samples per image with at least 5 images
48
54
* If you have a large dataset and are not using patches extraction, enable it.
49
55
50
56
51
57
3) The third contains training related parameters :
52
58
53
-
* The model to use for training (see table above)
54
-
* The loss function used for training (see table below)
55
-
* The batch size (larger means quicker training and possibly better performance but increased memory usage)
56
-
* The number of epochs (a possibility is to start with 60 epochs, and decrease or increase depending on performance.)
57
-
* The epoch interval for validation (for example, if set to two, the module will use the validation dataset to evaluate the model with the dice metric every two epochs.)
59
+
* The **model** to use for training (see table above)
60
+
* The **loss function** used for training (see table below)
61
+
* The **batch size** (larger means quicker training and possibly better performance but increased memory usage)
62
+
* The **number of epochs** (a possibility is to start with 60 epochs, and decrease or increase depending on performance.)
63
+
* The **epoch interval** for validation (for example, if set to two, the module will use the validation dataset to evaluate the model with the dice metric every two epochs.)
58
64
59
-
If the dice metric is better on that validation interval, the model weights will be saved in the results folder.
65
+
.. note::
66
+
If the dice metric is better on a given validation interval, the model weights will be saved in the results folder.
Copy file name to clipboardExpand all lines: docs/res/welcome.rst
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ Then go into Plugins > napari-cellseg3d, and choose which tool to use.
68
68
- **Review**: This module allows you to review your labels, from predictions or manual labeling, and correct them if needed. It then saves the status of each file in a csv, for easier monitoring.
69
69
- **Utilities**: This module allows you to use several utilities, e.g. to crop your volumes and labels, compute prediction scores or convert labels
70
70
71
+
See above for links to detailed guides regarding the usage of the modules.
0 commit comments