Skip to content

Commit 414b4cb

Browse files
Update doc and envs
1 parent 8e8c25d commit 414b4cb

File tree

4 files changed

+69
-17
lines changed

4 files changed

+69
-17
lines changed

doc/start_page.md

Lines changed: 41 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,53 @@ especially throught the [domain adaptation](domain-adaptation) functionality.
1414
SynapseNet offers a [napari plugin](napari-plugin), [command line interface](command-line-interface), and [python library](python-library).
1515
Please cite our [bioRxiv preprint](TODO) if you use it in your research.
1616

17-
**The rest of the documentation will be updated in the next days!**
1817

1918
## Requirements & Installation
2019

21-
- Requirements: Tested on Linux but should work on Mac/Windows.
22-
- GPU needed to use 3d segmentation networks
23-
- Installation via conda and local pip install
24-
- GPU support
20+
SynapseNet was developed and tested on Linux. It should be possible to install and use it on Mac or Windows, but we have not tested this.
21+
Furthermore, SynapseNet requires a GPU for segmentation of 3D volumes.
22+
23+
You need a [conda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html) or [mamba](https://mamba.readthedocs.io/en/latest/installation/mamba-installation.html) installation. Follow the instruction at the respective links if you have installed neither. We assume you have `conda` for the rest of the instructions. After installing it, you can use the `conda` command.
24+
25+
To install it you should follow these steps:
26+
- First, download the SynapseNet repository via
27+
```bash
28+
git clone https://github.com/computational-cell-analytics/synapse-net
29+
```
30+
- Then, enter the `synapse-net` folder:
31+
```bash
32+
cd synapse-net
33+
```
34+
- Now you can install the environment for SynapseNet with `conda` from the environment file we proved:
35+
```bash
36+
conda env create -f environment.yaml
37+
```
38+
- You will need to confirm this step. It will take a while. Afterwards you can activate the environment:
39+
```bash
40+
conda activate synapse-net
41+
```
42+
- Finally, install SynapseNet itself into the environment:
43+
```bash
44+
pip install -e .
45+
```
46+
47+
Now you can use all SynapseNet features. From now on, just activate the environment via
48+
```
49+
conda activate synapse-net
50+
```
51+
to use them.
52+
53+
> Note: If you use `mamba` instead of conda just replace `conda` in the commands above with `mamba`.
54+
55+
> Note: We also provide an environment for a CPU version of SynapseNet. You can install it by replacing `environment.yaml` with `environment_cpu.yaml` in the respective command above. This version can be used for 2D vesicle segmentation, but it does not work for 3D segmentation.
56+
57+
> Note: If you have issues with the CUDA version then install a PyTorch that matches your nvidia drivers. See [pytorch.org](https://pytorch.org/) for details.
2558
26-
- Make sure conda or mamba is installed.
27-
- If you don't have a conda installation yet we recommend [micromamba](https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html)
28-
- Create the environment with all required dependencies: `mamba env create -f environment.yaml`
29-
- Activate the environment: `mamba activate synaptic-reconstruction`
30-
- Install the package: `pip install -e .`
3159

3260
## Napari Plugin
3361

34-
lorem ipsum
62+
**The rest of the documentation will be updated in the next days!**
63+
3564

3665
## Command Line Functionality
3766

@@ -40,6 +69,7 @@ lorem ipsum
4069
- vesicles / spheres
4170
- objects
4271

72+
4373
## Python Library
4474

4575
- segmentation functions

environment.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
channels:
2+
- pytorch
3+
- nvidia
24
- conda-forge
35
name:
4-
synaptic-reconstruction
6+
synapse-net
57
dependencies:
6-
- python-elf
8+
- bioimageio.core
9+
- kornia
10+
- magicgui
711
- napari
812
- pip
913
- pyqt
10-
- magicgui
14+
- python-elf
1115
- pytorch
12-
- bioimageio.core
13-
- kornia
16+
- pytorch-cuda=12.4
1417
- tensorboard
18+
- torch_em
19+
- torchvision
1520
- trimesh
1621
- pip:
1722
- napari-skimage-regionprops

environment_cpu.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
channels:
2+
- conda-forge
3+
name:
4+
synapse-net
5+
dependencies:
6+
- bioimageio.core
7+
- kornia
8+
- magicgui
9+
- napari
10+
- pip
11+
- pyqt
12+
- python-elf
13+
- pytorch
14+
- tensorboard
15+
- torch_em
16+
- trimesh
17+
- pip:
18+
- napari-skimage-regionprops

plot_distances.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)