Skip to content

Commit 827b7ed

Browse files
Merge pull request #11 from computational-cell-analytics/update-readme
Update README
2 parents f0fa6c8 + 63bc2f8 commit 827b7ed

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ We require these dependencies:
3535
- [napari](https://napari.org/stable/)
3636
- [elf](https://github.com/constantinpape/elf)
3737

38-
We recommend to use conda and provide two conda environment files with all necessary requirements:
38+
We recommend to use conda and provide two environment files with all necessary requirements:
3939
- `environment_gpu.yaml`: sets up an environment with GPU support.
4040
- `environment_cpu.yaml`: sets up an environment with CPU support.
4141

@@ -62,6 +62,18 @@ And install our napari applications and the `micro_sam` library via
6262
pip install -e .
6363
```
6464

65+
**Troubleshooting:**
66+
67+
- On some systems `conda` is extremely slow and cannot resolve the environment in the step `conda env create ...`. You can use `mamba` instead, which is a faster re-implementation of `conda`. It can resolve the environment in less than a minute on any system we tried. Check out [yhis link](https://mamba.readthedocs.io/en/latest/installation.html) for how to install `mamba`. Once you have installed it, run `mamba env create -f <ENV_FILE>.yaml` to create the env.
68+
- Installation on MAC with a M1 or M2 processor:
69+
- The pytorch installation from `environment_cpu.yaml` does not work with a MAC that has an M1 or M2 processor. Instead you need to:
70+
- Create a clean environment: `conda create -c conda-forge python pip -n sam`
71+
- Activate it va `conda activate sam`
72+
- Follow the instructions for how to install pytorch for MAC via conda from [pytorch.org](https://pytorch.org/).
73+
- Install additional dependencies: `conda install -c conda-forge napari python-elf tqdm`
74+
- Install SegmentAnything: `pip install git+https://github.com/facebookresearch/segment-anything.git`
75+
- Install `micro_sam` by running `pip install -e .` in this folder.
76+
6577
## Usage
6678

6779
After installing the `micro_sam` python application the three interactive annotation tools can be started from the command line or from a python script (see details below).
@@ -142,14 +154,14 @@ TODO link to video tutorial
142154

143155
After installation the `micro_sam` python library is available, which provides several utility functions for using SegmentAnything with napari. Check out [examples/image_series_annotator.py](https://github.com/computational-cell-analytics/micro-sam/blob/master/examples/image_series_annotator_app.py) for an example application for segmenting objects in an image series built with it.
144156

145-
146157
<!---
147158
## Contributing
148159
149160
```
150161
micro_sam <- library with utility functionality for using SAM for microscopy data
151162
/sam_annotator <- the napari plugins for annotation
152163
```
164+
TODO: related projects
153165
-->
154166

155167

0 commit comments

Comments
 (0)