forked from computational-cell-analytics/micro-sam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for micro-sam CLIs (computational-cell-analytics#777)
- Loading branch information
1 parent
3bbf5e3
commit c7b2344
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Using the Command Line Interface (CLI) | ||
|
||
`micro-sam` extends access to a bunch of functionalities using the command line interface (CLI) scripts via terminal. | ||
|
||
The supported CLIs can be used by | ||
- Running `$ micro_sam.precompute_embeddings` for precomputing and caching the image embeddings. | ||
- Running `$ micro_sam.annotator_2d` for starting the 2d annotator. | ||
- Running `$ micro_sam.annotator_3d` for starting the 3d annotator. | ||
- Running `$ micro_sam.annotator_tracking` for starting the tracking annotator. | ||
- Running `$ micro_sam.image_series_annotator` for starting the image series annotator. | ||
- Running `$ micro_sam.automatic_segmentation` for automatic instance segmentation. | ||
- We support all post-processing parameters for automatic instance segmentation (for both AMG and AIS). | ||
- If these parameters are not provided by the user, `micro-sam` makes use of the best post-processing parameters (depending on the choice of model). | ||
- The post-processing parameters can be changed by parsing the parameters via the CLI using `--<PARAMETER_NAME> <VALUE>.` For example, one can update the parameter values (eg. `pred_iou_thresh`, `stability_iou_thresh`, etc. - supported by AMG) using | ||
```bash | ||
$ micro_sam.automatic_segmentation ... --pred_iou_thresh 0.6 --stability_iou_thresh 0.6 ... | ||
``` | ||
- You can check details for supported parameters and their respective default values at `micro_sam/instance_segmentation.py` under the `generate` method for `AutomaticMaskGenerator` and `InstanceSegmentationWithDecoder` class. | ||
|
||
NOTE: For all CLIs above, you can find more details by adding the argument `-h` to the CLI script (eg. `$ micro_sam.annotator_2d -h`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters