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/inference_module_guide.rst
+48-12Lines changed: 48 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,38 +31,74 @@ Interface and functionalities
31
31
32
32
* **Loading data** :
33
33
34
-
|When launching the module, you will be asked to provide an image folder containing all the volumes you'd like to be labeled.
35
-
|All images with the chosen (**.tif** or **.tiff** currently supported) extension in this folder will be labeled.
36
-
|You can then choose an output folder, where all the results will be saved.
34
+
|When launching the module, you will be asked to provide an **image folder** containing all the volumes you'd like to be labeled.
35
+
|All images with the chosen extension (**.tif** or **.tiff** currently supported) in this folder will be labeled.
36
+
|You can then choose an **output folder**, where all the results will be saved.
37
37
38
38
39
39
* **Model choice** :
40
40
41
-
|You can then choose one of the provided models above, which will be used for inference.
42
-
|You may also choose to load custom weights rather than the pre-trained ones, simply ensure they are compatible (e.g. produced from the training module for the same model)
41
+
|You can then choose one of the provided **models** above, which will be used for inference.
42
+
|You may also choose to **load custom weights** rather than the pre-trained ones, simply ensure they are **compatible** (e.g. produced from the training module for the same model)
43
+
44
+
.. note::
45
+
Currently the SegResNet model requires you to provide the size of the images the model was trained with due to the VAE module.
46
+
Provided weights use a size of 128, please leave it as is if you're not using custom weights.
47
+
48
+
* **Inference parameters** :
49
+
50
+
|You can choose to use inference on the whole image at once, which generally yields better performance at the cost of more memory,
51
+
|or you can use a specific window size to run inference on smaller chunks one by one, for lower memory usage.
52
+
|You can also choose to keep the dataset in the RAM rather than the VRAM (cpu vs cuda device) to avoid running out of VRAM
53
+
|if you have several images.
43
54
44
55
45
56
* **Anisotropy** :
46
57
47
-
|If you want to see your results without anisotropy when you have anisotropic images, you can specify that you have anisotropic data
48
-
|and set the resolution of your image in micron, this wil save and show the results without anisotropy.
58
+
|If you want to see your results without **anisotropy** when you have anisotropic images, you can specify that you have anisotropic data
59
+
|and set the **resolution of your imaging method in micron**, this wil save and show the results without anisotropy.
49
60
50
61
51
62
* **Thresholding** :
52
63
53
-
|You can perform thresholding to binarize your labels, all values beneath the confidence threshold will be set to 0 using this.
54
-
|If you wish to use instance segmentation it is recommended to use thresholding.
64
+
|You can perform thresholding to **binarize your labels**,
65
+
|all values beneath the **confidence threshold** will be set to 0 using this.
55
66
56
67
* **Instance segmentation** :
57
68
58
-
|You can convert the semantic segmentation into instance labels by using either the watershed or connected components method.
69
+
|You can convert the semantic segmentation into instance labels by using either the `watershed`_ or `connected components`_ method.
59
70
|You can set the probability threshold from which a pixel is considered as a valid instance, as well as the minimum size in pixels for objects. All smaller objects will be removed.
60
71
|Instance labels will be saved (and shown if applicable) separately from other results.
0 commit comments