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/faq.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,14 @@ If you have any troubles in the aforementioned steps, remember to first check th
25
25
26
26
27
27
### 1. How to install `micro_sam`?
28
-
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.
28
+
The [installation](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#installation) for `micro_sam` is supported in four ways: [from pip](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#from-pip), [from conda](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#from-conda), [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).
29
+
We recommend installation from pip or conda for most users.
30
+
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.
29
31
30
32
31
33
### 2. I cannot install `micro_sam` using the installer, I am getting some errors.
32
34
The installer should work out-of-the-box on Windows and Linux platforms. Please open an issue to report the error you encounter.
33
-
>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).
35
+
>NOTE: The installers enable using `micro_sam` without conda. However, we recommend the installation from pip, from conda, or from source to use all its features seamlessly. Specifically, the installers are out-of-date and currently only support the CPU and won't enable you to use the GPU (if you have one).
34
36
35
37
36
38
### 3. What is the minimum system requirement for `micro_sam`?
@@ -61,17 +63,17 @@ Having a GPU will significantly speed up the annotation tools and especially the
61
63
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.
62
64
So please reinstall `micro_sam`, following [the installation guide](#installation).
63
65
66
+
64
67
### 6. Can I install `micro_sam` using pip?
65
-
We do *not* recommend installing `micro-sam` with pip. It has several dependencies that are only avaoiable from conda-forge, which will not install correctly via pip.
66
68
67
-
Please see [the installation guide](#installation) for the recommended way to install `micro-sam`.
69
+
Yes! We recently made available `micro_sam` with pip. Check out [the installation guide](https://computational-cell-analytics.github.io/micro-sam/micro_sam.html#from-pip) for details.
68
70
69
-
The PyPI page for `micro-sam` exists only so that the [napari-hub](https://www.napari-hub.org/) can find it.
70
71
71
72
### 7. I get the following error: `importError: cannot import name 'UNETR' from 'torch_em.model'`.
72
73
It's possible that you have an older version of `torch-em` installed. Similar errors could often be raised from other libraries, the reasons being: a) Outdated packages installed, or b) Some non-existent module being called. If the source of such error is from `micro_sam`, then `a)` is most likely the reason . We recommend installing the latest version following the [installation instructions](https://github.com/constantinpape/torch-em?tab=readme-ov-file#installation).
73
74
74
-
### 8. My system does not support internet connection. Where should I put the model checkpoints for the `micro-sam` models?
75
+
76
+
### 8. My system does not have a internet connection. Where should I put the model checkpoints for the `micro-sam` models?
75
77
We recommend transferring the model checkpoints to the system-level cache directory (you can find yours by running the following in terminal: `python -c "from micro_sam import util; print(util.microsam_cachedir())`). Once you have identified the cache directory, you need to create an additional `models` directory inside the `micro-sam` cache directory (if not present already) and move the model checkpoints there. At last, you **must** rename the transferred checkpoints as per the respective [key values](https://github.com/computational-cell-analytics/micro-sam/blob/main/micro_sam/util.py#L87) in the url dictionaries located in the `micro_sam.util.models`function(below mentioned is an example for Linux users).
Copy file name to clipboardExpand all lines: doc/installation.md
+19-24Lines changed: 19 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,26 @@
1
1
# Installation
2
2
3
-
There are three ways to install `micro_sam`:
4
-
-[From conda](#from-conda) is the recommended way if you want to use all functionality.
3
+
There are four ways to install `micro_sam`:
4
+
-[From pip](#from-pip) to use all functionality and install via pip.
5
+
-[From conda](#from-conda) to use all functionality and install in an encapsulated environment.
5
6
-[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 conda (supported platforms: Windows and Linux, supports only CPU).
7
+
-[From installer](#from-installer) to install it without having to use pip or conda (supported platforms: Windows and Linux, supports only CPU, deprecated).
7
8
8
9
You can find more information on the installation and how to troubleshoot it in [the FAQ section](#installation-questions).
9
10
10
-
We do **not support** installing `micro_sam` with pip.
11
+
## From pip
12
+
13
+
`pip` is the default python package manager. You can install `micro_sam` via pip with the command:
14
+
```bash
15
+
pip install micro_sam
16
+
```
17
+
18
+
Note: when using pip you have to manage your python environments yourself. For example, you could create a conda environment and install `micro_sam` via pip in there, or use `venv` for this.
19
+
20
+
To use the `vit_t` (MobileSAM) model, you have to additionally install [MobileSAM](https://github.com/ChaoningZhang/MobileSAM) in the environment where `micro_sam` was installed via pip. It is not available on PyPI, so it has to be installed from GitHub:
To use [automatic tracking](#annotator-tracking), you have to install [trackastra](https://github.com/weigertlab/trackastra) in the conda environment where `micro_sam` is installed.
80
-
You can install it with pip:
81
-
```bash
82
-
conda activate sam
83
-
pip install trackastra
84
-
```
85
-
86
-
## MobileSAM installation
87
-
88
-
To use the `vit_t` (MobileSAM) model, you have to install [MobileSAM](https://github.com/ChaoningZhang/MobileSAM) in the environment where `micro_sam` is installed.
89
-
It is not available on PyPI, so it has to be installed from GitHub with pip:
**Note: The installers are not yet up-to-date with the latest version of micro-sam (v1.4.0 onwards). We will update them in the next few weeks.**
92
+
**Note: The installers are not yet up-to-date with the latest version of micro-sam (v1.4.0 onwards). We recommend installing micro-sam via pip or conda instead.**
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.
101
+
The installers will not enable you to use a GPU, so if you have one then please consider installing `micro_sam` via [pip](#from-pip) or [conda](#from-conda) instead.
0 commit comments