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: doc/annotation_tools.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,8 @@ You can find additional information on the annotation tools [in the FAQ section]
22
22
HINT: If you would like to start napari to use `micro-sam` from the plugin menu, you must start it by activating the environment where `micro-sam` has been installed using:
Copy file name to clipboardExpand all lines: doc/faq.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ If you encounter a problem or question not addressed here feel free to [open an
7
7
8
8
9
9
### 1. How to install `micro_sam`?
10
-
The [installation](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#installation) for `micro_sam` is supported in three ways: [from mamba](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#from-mamba) (recommended), [from source](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#from-source) and [from installers](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#from-installer). Check out our [tutorial video](https://youtu.be/gcv0fa84mCc) to get started with `micro_sam`, briefly walking you through the installation process and how to start the tool.
10
+
The [installation](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#installation) for `micro_sam` is supported in three ways: [from conda](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#from-conda) (recommended), [from source](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#from-source) and [from installers](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#from-installer). Check out our [tutorial video](https://youtu.be/gcv0fa84mCc) to get started with `micro_sam`, briefly walking you through the installation process and how to start the tool.
11
11
12
12
13
13
### 2. I cannot install `micro_sam` using the installer, I am getting some errors.
14
14
The installer should work out-of-the-box on Windows and Linux platforms. Please open an issue to report the error you encounter.
15
-
>NOTE: The installers enable using `micro_sam` without mamba or conda. However, we recommend the installation from mamba / from source to use all its features seamlessly. Specifically, the installers currently only support the CPU and won't enable you to use the GPU (if you have one).
15
+
>NOTE: The installers enable using `micro_sam` without conda. However, we recommend the installation from conda or from source to use all its features seamlessly. Specifically, the installers currently only support the CPU and won't enable you to use the GPU (if you have one).
16
16
17
17
18
18
### 3. What is the minimum system requirement for `micro_sam`?
@@ -40,7 +40,7 @@ Having a GPU will significantly speed up the annotation tools and especially the
40
40
41
41
42
42
### 5. I am missing a few packages (eg. `ModuleNotFoundError: No module named 'elf.io`). What should I do?
43
-
With the latest release 1.0.0, the installation from mamba and source should take care of this and install all the relevant packages for you.
43
+
With the latest release 1.0.0, the installation from conda and source should take care of this and install all the relevant packages for you.
44
44
So please reinstall `micro_sam`, following [the installation guide](#installation).
45
45
46
46
### 6. Can I install `micro_sam` using pip?
@@ -132,7 +132,7 @@ We want to remove these errors, so we would be very grateful if you can [open an
132
132
133
133
134
134
### 10. The objects are not segmented in my 3d data using the interactive annotation tool.
135
-
The first thing to check is: a) make sure you are using the latest version of `micro_sam` (pull the latest commit from master if your installation is from source, or update the installation from conda / mamba using `mamba update micro_sam`), and b) try out the steps from the [3d annotation tutorial video](https://youtu.be/nqpyNQSyu74) to verify if this shows the same behaviour (or the same errors) as you faced. For 3d images, it's important to pass the inputs in the python axis convention, ZYX.
135
+
The first thing to check is: a) make sure you are using the latest version of `micro_sam` (pull the latest commit from master if your installation is from source, or update the installation from conda using `conda update micro_sam`), and b) try out the steps from the [3d annotation tutorial video](https://youtu.be/nqpyNQSyu74) to verify if this shows the same behaviour (or the same errors) as you faced. For 3d images, it's important to pass the inputs in the python axis convention, ZYX.
136
136
c) try using a different model and change the projection mode for 3d segmentation. This is also explained in the video.
Copy file name to clipboardExpand all lines: doc/installation.md
+38-28Lines changed: 38 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,77 +1,87 @@
1
1
# Installation
2
2
3
3
There are three ways to install `micro_sam`:
4
-
-[From mamba](#from-mamba) is the recommended way if you want to use all functionality.
4
+
-[From conda](#from-conda) is the recommended way if you want to use all functionality.
5
5
-[From source](#from-source) for setting up a development environment to use the latest version and to change and contribute to our software.
6
-
-[From installer](#from-installer) to install it without having to use mamba (supported platforms: Windows and Linux, supports only CPU).
6
+
-[From installer](#from-installer) to install it without having to use conda (supported platforms: Windows and Linux, supports only CPU).
7
7
8
8
You can find more information on the installation and how to troubleshoot it in [the FAQ section](#installation-questions).
9
9
10
-
We do **not**recommend installing `micro-sam` with pip.
10
+
We do **not support** installing `micro_sam` with pip.
11
11
12
-
## From mamba
12
+
## From conda
13
13
14
-
[mamba](https://mamba.readthedocs.io/en/latest/) is a drop-in replacement for conda, but much faster.
15
-
The steps below may also work with `conda`, but we recommend using `mamba`, especially if the installation does not work with `conda`.
16
-
You can follow the instructions [here](https://mamba.readthedocs.io/en/latest/installation/mamba-installation.html)to install `mamba`.
14
+
`conda` is a python package manager. If you don't have it installed yet you can follow the instructions [here](https://conda-forge.org/download/) to set it up on your system.
15
+
Please make sure that you are using an up-to-date version of conda to install `micro_sam`.
16
+
You can also use [mamba](https://mamba.readthedocs.io/en/latest/), which is a drop-in replacement for conda, to install it. In this case, just replace the `conda` command below with`mamba`.
17
17
18
-
**IMPORTANT**: Make sure to avoid installing anything in the base environment.
18
+
**IMPORTANT**: Do not install `micro_sam` in the base conda environment.
19
+
20
+
**Installation on Linux and Mac OS:**
19
21
20
22
`micro_sam` can be installed in an existing environment via:
NOTE: If you create a new enviroment (eg. here called `micro-sam`), you must activate the environment using
37
-
35
+
This will also install `pytorch` from the `conda-forge` channel. If you have a recent enough operating system, it will automatically install the best suitable `pytorch` version on your system.
36
+
This means it will install the CPU version if you don't have a nVidia GPU, and will install a GPU version if you have.
37
+
However, if you have an older operating system, or a CUDA version older than 12, than it may not install the correct version. In this case you will have to specify you're CUDA version, for example for CUDA 11, like this:
You may need to change this command to install the correct CUDA version for your system, see [https://pytorch.org/](https://pytorch.org/) for details.
42
+
**Installation on Windows:**
43
43
44
+
`pytorch` is currently not available on conda-forge for windows. Thus, you have to install it from the `pytorch` conda channel. In addition, you have to specify two specific dependencies to avoid incompatibilities.
To install `micro_sam` from source, we recommend to first set up an environment with the necessary requirements:
48
-
-[environment_gpu.yaml](https://github.com/computational-cell-analytics/micro-sam/blob/master/environment_gpu.yaml): sets up an environment with GPU support.
49
-
-[environment_cpu.yaml](https://github.com/computational-cell-analytics/micro-sam/blob/master/environment_cpu.yaml): sets up an environment with CPU support.
57
+
-[environment.yaml](https://github.com/computational-cell-analytics/micro-sam/blob/master/environment.yaml): to set up an environment on Linux or Mac OS.
58
+
-[environment_cpu_win.yaml](https://github.com/computational-cell-analytics/micro-sam/blob/master/environment_cpu_win.yaml): to set up an environment on windows with CPU support.
59
+
-[environment_gpu_win.yaml](https://github.com/computational-cell-analytics/micro-sam/blob/master/environment_gpu_win.yaml): to set up an environment on windows with GPU support.
50
60
51
61
To create one of these environments and install `micro_sam` into it follow these steps
The installers will not enable you to use a GPU, so if you have one then please consider installing `micro_sam` via [mamba](#from-mamba) instead. They will also not enable using the python library.
102
+
The installers will not enable you to use a GPU, so if you have one then please consider installing `micro_sam` via [conda](#from-conda) instead. They will also not enable using the python library.
Copy file name to clipboardExpand all lines: doc/start_page.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ If you run into any problems or have questions please [open an issue](https://gi
21
21
22
22
## Quickstart
23
23
24
-
You can install `micro_sam` via mamba:
24
+
You can install `micro_sam` via conda:
25
25
```bash
26
-
$ mamba install -c conda-forge micro_sam
26
+
conda install -c conda-forge micro_sam
27
27
```
28
28
We also provide installers for Windows and Linux. For more details on the available installation options, check out [the installation section](#installation).
0 commit comments