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
1.**Image Layer**: To select your current image stack.
15
15
2.**Encoder Model**: Sets which model you want to use for feature extraction.
16
16
The **FF** plugins, by default, comes with `MobileSAM`, `SAM (huge)`, `μSAM_LM (base)`, `μSAM_EM_Organelles (base)`, `DINOv2`, `SAM2 (large)`, and `SAM2 (base)` models. It is also possible to introduce a new model by adding a new [*model adapter*](./model_adapter.md) class.
17
-
3.**Features Storage File**: Where you want to save the features as an `HDF5` file.
18
-
4.**Extract Features** button: Will run the feature extraction process.
19
-
5.**Stop** button: To stop the extraction process!
20
-
21
-
## CLI Description
22
-
23
-
You can also extract features by running the `featureforest.feature_extractor` CLI in your terminal.
24
-
25
-
Here is a brief description of the expected input arguments (see `$ featureforest.feature_extractor -h` for details):
26
-
1.`--input_path`: The filepath to an input image.
27
-
2.`--output_path`: The filepath where the extracted features will be stored for the next step, i.e. [_Segmentation_](./segmentation.md).
28
-
3.`--model_choice`: The choice of model that will be used for feature extraction.
29
-
30
-
The extraction process might take some time based on number of image slices and the image resolution. This is due to the fact that in **FF** we turn an image into overlapping patches, then pass those patches to the encoder model to get the features. Why we do this? We need to aquire a feature vector per each pixel and not for the whole image.
17
+
3.**No Patching**: If checked, it means no patching will happen during the feature extraction process. Otherwise, the image will be divided into patches before passing them through the encoder model. By using SAM2 encoders, you might check this box to save some computation power.
18
+
4.**Features Storage File**: Where you want to save the features as an `HDF5` file.
19
+
5.**Extract Features** button: Will run the feature extraction process.
20
+
6.**Stop** button: To stop the extraction process!
31
21
32
22
## Model Selection
33
23
Our experiments tell us usually the `SAM2 (large)` model works the best. However, for less complicated images, using `MobileSAM` or `DINOv2` might also result in a good segmentation as they are lighter and faster.
34
24
35
25
!!! note
36
-
When you use a model for the first time, the model's weight will be downloaded from their repository. So, you might hit a little delay at the first use of model.
26
+
When you use a model for the first time, the model's weight will be downloaded from their repository. So, you might hit a little delay at the first usage of model.
37
27
38
28
Once you have your image features extracted, you can use the [**Segmentation**](./segmentation.md) widget to generate your image masks.
0 commit comments