Skip to content

Commit cad7c8f

Browse files
Merge pull request #162 from computational-cell-analytics/more-doc-updates
More doc updates
2 parents 7fa1e62 + 927e6cf commit cad7c8f

4 files changed

Lines changed: 71 additions & 41 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ conda install -c conda-forge micro_sam napari pyqt
2727
```
2828
You can then start the `micro_sam` tools by running `$ micro_sam.annotator` in the command line.
2929

30+
For an introduction in how to use the napari based annotation tools check out [the video tutorials](https://www.youtube.com/watch?v=ket7bDUP9tI&list=PLwYZXQJ3f36GQPpKCrSbHjGiH39X4XjSO&pp=gAQBiAQB).
3031
Please check out [the documentation](https://computational-cell-analytics.github.io/micro-sam/) for more details on the installation and usage of `micro_sam`.
3132

3233

doc/annotation_tools.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,22 @@ The annotation tools can be started from the `micro_sam` GUI, the command line o
1313
$ micro_sam.annotator
1414
```
1515

16-
They are built with [napari](https://napari.org/stable/) to implement the viewer and user interaction.
16+
They are built using [napari](https://napari.org/stable/) and [magicgui](https://pyapp-kit.github.io/magicgui/) to provide the viewer and user interface.
1717
If you are not familiar with napari yet, [start here](https://napari.org/stable/tutorials/fundamentals/quick_start.html).
18-
The `micro_sam` applications are mainly based on [the point layer](https://napari.org/stable/howtos/layers/points.html), [the shape layer](https://napari.org/stable/howtos/layers/shapes.html) and [the label layer](https://napari.org/stable/howtos/layers/labels.html).
18+
The `micro_sam` tools use [the point layer](https://napari.org/stable/howtos/layers/points.html), [shape layer](https://napari.org/stable/howtos/layers/shapes.html) and [label layer](https://napari.org/stable/howtos/layers/labels.html).
19+
20+
The annotation tools are explained in detail below. In addition to the documentation here we also provide [video tutorials](https://www.youtube.com/watch?v=ket7bDUP9tI&list=PLwYZXQJ3f36GQPpKCrSbHjGiH39X4XjSO).
21+
22+
23+
## Starting via GUI
24+
25+
The annotation toools can be started from a central GUI, which can be started with the command `$ micro_sam.annotator` or using the executable [from an installer](#from-installer).
26+
27+
In the GUI you can select with of the four annotation tools you want to use:
28+
<img src="https://raw.githubusercontent.com/computational-cell-analytics/micro-sam/master/doc/images/micro-sam-gui.png">
29+
30+
And after selecting them a new window will open where you can select the input file path and other optional parameter. Then click the top button to start the tool. **Note: If you are not starting the annotation tool with a path to pre-computed embeddings then it can take several minutes to open napari after pressing the button because the embeddings are being computed.**
31+
1932

2033
## Annotator 2D
2134

@@ -44,7 +57,7 @@ It contains the following elements:
4457

4558
Note that point prompts and box prompts can be combined. When you're using point prompts you can only segment one object at a time. With box prompts you can segment several objects at once.
4659

47-
Check out [this video](https://youtu.be/DfWE_XRcqN8) for an example of how to use the interactive 2d annotator.
60+
Check out [this video](https://youtu.be/ket7bDUP9tI) for a tutorial for the 2d annotation tool.
4861

4962
We also provide the `image series annotator`, which can be used for running the 2d annotator for several images in a folder. You can start by clicking `Image series annotator` in the GUI, running `micro_sam.image_series_annotator` in the command line or from a [python script](https://github.com/computational-cell-analytics/micro-sam/blob/master/examples/image_series_annotator.py).
5063

@@ -69,7 +82,7 @@ Most elements are the same as in [the 2d annotator](#annotator-2d):
6982

7083
Note that you can only segment one object at a time with the 3d annotator.
7184

72-
Check out [this video](https://youtu.be/5Jo_CtIefTM) for an overview of the interactive 3d segmentation functionality.
85+
Check out [this video](https://youtu.be/PEy9-rTCdS4) for a tutorial for the 3d annotation tool.
7386

7487
## Annotator Tracking
7588

@@ -93,7 +106,7 @@ Most elements are the same as in [the 2d annotator](#annotator-2d):
93106

94107
Note that the tracking annotator only supports 2d image data, volumetric data is not supported.
95108

96-
Check out [this video](https://youtu.be/PBPW0rDOn9w) for an overview of the interactive tracking functionality.
109+
Check out [this video](https://youtu.be/Xi5pRWMO6_w) for a tutorial for how to use the tracking annotation tool.
97110

98111
## Tips & Tricks
99112

doc/images/micro-sam-gui.png

15.7 KB
Loading

doc/installation.md

Lines changed: 52 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Installation
22

3-
`micro_sam` requires the following dependencies:
3+
We provide three different ways of installing `micro_sam`:
4+
- [From conda](#from-conda) is the recommended way if you want to use all functionality.
5+
- [From source](#from-source) for setting up a development environment to change and potentially contribute to our software.
6+
- [From installer](#from-installer) to install without having to use conda. This mode of installation is still experimental! It only provides the annotation tools and does not enable model finetuning.
7+
8+
Our software requires the following dependencies:
49
- [PyTorch](https://pytorch.org/get-started/locally/)
510
- [SegmentAnything](https://github.com/facebookresearch/segment-anything#installation)
611
- [elf](https://github.com/constantinpape/elf)
@@ -14,7 +19,7 @@
1419
$ conda install -c conda-forge micro_sam
1520
```
1621

17-
This command will only install the `micro_sam` library without the required dependencies for the annotation functionality and training.
22+
This command will not install the required dependencies for the annotation tools and for training / finetuning.
1823
To use the annotation functionality you also need to install `napari`:
1924
```
2025
$ conda install -c conda-forge napari pyqt
@@ -27,40 +32,6 @@ $ conda install -c conda-forge torch_em
2732
In case the installation via conda takes too long consider using [mamba](https://mamba.readthedocs.io/en/latest/).
2833
Once you have it installed you can simply replace the `conda` commands with `mamba`.
2934

30-
## From installer
31-
32-
We also provide installers for Linux, Mac and Windows:
33-
- [Linux](https://owncloud.gwdg.de/index.php/s/Cw9RmA3BlyqKJeU)
34-
- [Mac](https://owncloud.gwdg.de/index.php/s/7YupGgACw9SHy2P)
35-
- [Windows](https://owncloud.gwdg.de/index.php/s/1iD1eIcMZvEyE6d)
36-
37-
Note that these installers are stil experimental and not yet fully tested.
38-
If you encounter problems with them then please consider installing `micro_sam` via [conda](#from-conda) instead.
39-
40-
**Linux Installer:**
41-
42-
To use the installer:
43-
- Unpack the you have downloaded.
44-
- Make the installer executable: `$ chmod +x micro_sam-0.2.0post1-Linux-x86_64.sh`
45-
- Run the installer: `$./micro_sam-0.2.0post1-Linux-x86_64.sh$`
46-
- You can select where to install `micro_sam` during the installation. By default it will be installed in `$HOME/micro_sam`.
47-
- The installer will unpack all `micro_sam` files to the installation directory.
48-
- After the installation you can start the annotator with the command `.../micro_sam/bin/micro_sam.annotator`.
49-
- To make it easier to run the annotation tool you can add `.../micro_sam/bin` to your `PATH` or set a softlink to `.../micro_sam/bin/micro_sam.annotator`.
50-
51-
**Mac Installer:**
52-
53-
To use the Mac installer you will need to enable installing unsigned applications. Please follow [the instructions for 'Disabling Gatekeeper for one application only' here](https://disable-gatekeeper.github.io/).
54-
<!---
55-
Alternative link on how to disable gatekeeper.
56-
https://www.makeuseof.com/how-to-disable-gatekeeper-mac/
57-
-->
58-
59-
TODO detailed instruction
60-
61-
**Windows Installer:**
62-
63-
TODO
6435

6536
## From source
6637

@@ -105,3 +76,48 @@ $ pip install -e .
10576
- Install `micro_sam` by running `pip install -e .` in this folder.
10677
- **Note:** we have seen many issues with the pytorch installation on MAC. If a wrong pytorch version is installed for you (which will cause pytorch errors once you run the application) please try again with a clean `mambaforge` installation. Please install the `OS X, arm64` version from [here](https://github.com/conda-forge/miniforge#mambaforge).
10778
- Some MACs require a specific installation order of packages. If the steps layed out above don't work for you please check out the procedure described [in this github issue](https://github.com/computational-cell-analytics/micro-sam/issues/77).
79+
80+
81+
## From installer
82+
83+
We also provide installers for Linuxand Windows:
84+
- [Linux](https://owncloud.gwdg.de/index.php/s/Cw9RmA3BlyqKJeU)
85+
- [Windows](https://owncloud.gwdg.de/index.php/s/1iD1eIcMZvEyE6d)
86+
<!---
87+
- [Mac](https://owncloud.gwdg.de/index.php/s/7YupGgACw9SHy2P)
88+
-->
89+
90+
**The installers are stil experimental and not fully tested.** Mac is not supported yet, but we are working on also providing an installer for it.
91+
92+
If you encounter problems with them then please consider installing `micro_sam` via [conda](#from-conda) instead.
93+
94+
**Linux Installer:**
95+
96+
To use the installer:
97+
- Unpack the zip file you have downloaded.
98+
- Make the installer executable: `$ chmod +x micro_sam-0.2.0post1-Linux-x86_64.sh`
99+
- Run the installer: `$./micro_sam-0.2.0post1-Linux-x86_64.sh$`
100+
- You can select where to install `micro_sam` during the installation. By default it will be installed in `$HOME/micro_sam`.
101+
- The installer will unpack all `micro_sam` files to the installation directory.
102+
- After the installation you can start the annotator with the command `.../micro_sam/bin/micro_sam.annotator`.
103+
- To make it easier to run the annotation tool you can add `.../micro_sam/bin` to your `PATH` or set a softlink to `.../micro_sam/bin/micro_sam.annotator`.
104+
105+
<!---
106+
**Mac Installer:**
107+
108+
To use the Mac installer you will need to enable installing unsigned applications. Please follow [the instructions for 'Disabling Gatekeeper for one application only' here](https://disable-gatekeeper.github.io/).
109+
110+
Alternative link on how to disable gatekeeper.
111+
https://www.makeuseof.com/how-to-disable-gatekeeper-mac/
112+
113+
TODO detailed instruction
114+
-->
115+
116+
**Windows Installer:**
117+
118+
- Unpack the zip file you have downloaded.
119+
- Run the installer by double clicking on it.
120+
- Choose installation type: `Just Me(recommended)` or `All Users(requires admin privileges)`.
121+
- Choose installation path. By default it will be installed in `C:\Users\<Username>\micro_sam` for `Just Me` installation or in `C:\ProgramData\micro_sam` for `All Users`.
122+
- The installer will unpack all micro_sam files to the installation directory.
123+
- After the installation you can start the annotator by double clicking on `.\micro_sam\Scripts\micro_sam.annotator.exe` or with the command `.\micro_sam\Scripts\micro_sam.annotator.exe` from the Command Prompt.

0 commit comments

Comments
 (0)