-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #179 | Add documentation website
Add documentation folder and Actions to create https://hci-unihd.github.io/plant-seg/
- Loading branch information
Showing
29 changed files
with
968 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: deploy-book | ||
|
||
# Only run this when the master branch changes | ||
on: | ||
push: | ||
branches: | ||
- master | ||
# If your git repository has the Jupyter Book within some-subfolder next to | ||
# unrelated files, you can make this run only if a file within that specific | ||
# folder has been modified. | ||
# | ||
# paths: | ||
# - some-subfolder/** | ||
|
||
# This job installs dependencies, builds the book, and pushes it to `gh-pages` | ||
jobs: | ||
deploy-book: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# Install dependencies | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r docs/requirements.txt | ||
# Build the book | ||
- name: Build the book | ||
run: | | ||
jupyter-book build --all docs/ | ||
# Push the book's HTML to github-pages | ||
- name: GitHub Pages action | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/_build/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ __pycache__/ | |
# Conda build | ||
plantseg.egg-info/ | ||
dist/ | ||
docs/_build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Notes: | ||
|
||
- requirement.txt is used to install the required packages during GitHub Actions. | ||
- GitHub hosted images should be embedded with the `raw` URL instead of the `blob` URL. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Book settings | ||
# Learn more at https://jupyterbook.org/customize/config.html | ||
|
||
title: PlantSeg Documentation | ||
author: Lorenzo Cerrone, Adrian Wolny | ||
copyright: '2019-2024' | ||
logo: logo.png | ||
|
||
# Force re-execution of notebooks on each build. | ||
# See https://jupyterbook.org/content/execute.html | ||
execute: | ||
execute_notebooks: force | ||
|
||
# Define the name of the latex output file for PDF builds | ||
latex: | ||
latex_documents: | ||
targetname: book.tex | ||
|
||
# Add a bibtex file so that we can create citations | ||
bibtex_bibfiles: | ||
- references.bib | ||
|
||
# Information about where the book exists on the web | ||
repository: | ||
url: https://github.com/hci-unihd/plant-seg/ # Online location of your book | ||
path_to_book: docs # Optional path to your book, relative to the repository root | ||
branch: master # Which branch of the repository should be used when creating links (optional) | ||
|
||
# Add GitHub buttons to your book | ||
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository | ||
html: | ||
use_issues_button: true | ||
use_repository_button: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Table of contents | ||
# Learn more at https://jupyterbook.org/customize/toc.html | ||
|
||
format: jb-book | ||
root: intro | ||
parts: | ||
- caption: Getting Started | ||
chapters: | ||
- file: chapters/getting_started/installation | ||
- file: chapters/getting_started/quick_start | ||
- file: chapters/getting_started/troubleshooting | ||
- caption: Interactive PlantSeg with Napari | ||
chapters: | ||
- file: chapters/plantseg_interactive_napari/index | ||
- file: chapters/plantseg_interactive_napari/data_processing | ||
- file: chapters/plantseg_interactive_napari/unet_gasp_workflow | ||
- file: chapters/plantseg_interactive_napari/unet_training | ||
- file: chapters/plantseg_interactive_napari/extra_pred | ||
- file: chapters/plantseg_interactive_napari/extra_seg | ||
- file: chapters/plantseg_interactive_napari/headless_batch_processing | ||
- caption: Classic PlantSeg GUI | ||
chapters: | ||
- file: chapters/plantseg_classic_gui/index | ||
- file: chapters/plantseg_classic_gui/data_processing | ||
- file: chapters/plantseg_classic_gui/cnn_predictions | ||
- file: chapters/plantseg_classic_gui/segmentation | ||
- caption: Classic PlantSeg CLI | ||
chapters: | ||
- file: chapters/plantseg_classic_cli/index | ||
- caption: PlantSeg Python API | ||
chapters: | ||
- file: chapters/python_api/index | ||
- file: chapters/python_api/data_processing | ||
- file: chapters/python_api/cnn_predictions | ||
- file: chapters/python_api/segmentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Installation | ||
|
||
## Prerequisites for Conda package | ||
* Linux or Windows | ||
* (Optional) Nvidia GPU with official Nvidia drivers installed | ||
|
||
* Native MacOS installation (not yet M1) coming soon. | ||
|
||
## Install on Linux | ||
### Install Anaconda python | ||
The first step required to use the pipeline is installing anaconda python. | ||
You can go directly to the next item if you already have a working anaconda setup. Anaconda can be downloaded for all | ||
platforms from here [anaconda](https://www.anaconda.com/products/individual). We suggest using Miniconda | ||
because it is lighter and install fewer unnecessary packages. | ||
|
||
To download Anaconda Python open a terminal and type | ||
```bash | ||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | ||
``` | ||
Then install by typing: | ||
```bash | ||
bash ./Miniconda3-latest-Linux-x86_64.sh | ||
``` | ||
Follow the instructions to complete the anaconda installation. | ||
The `Miniconda3-latest-Linux-x86_64.sh` file can be safely deleted. | ||
|
||
### Install PlantSeg using conda | ||
PlantSeg can be installed directly by executing in the terminal: | ||
```bash | ||
conda create -n plant-seg -c pytorch -c conda-forge -c lcerrone -c awolny python=3.9 pytorch-3dunet=1.3.7 plantseg napari | ||
``` | ||
The above command will create a new Conda environment, `plant-seg`, with all required dependencies. | ||
|
||
## Install on Windows | ||
### Install Anaconda python | ||
The first step required to use the pipeline is installing anaconda python. | ||
You can go directly to the next item if you already have a working anaconda setup. Anaconda can be downloaded for all | ||
platforms from here [anaconda](https://www.anaconda.com/products/individual). We suggest using Miniconda | ||
because it is lighter and install fewer unnecessary packages. | ||
|
||
Miniconda can be downloaded from [miniconda](https://docs.conda.io/en/latest/miniconda.html). Download the | ||
executable `.exe` for your Windows version and follow the installation instructions. | ||
|
||
### Install PlantSeg using conda | ||
PlantSeg can be installed directly by executing in the terminal: | ||
```bash | ||
conda create -n plant-seg -c pytorch -c conda-forge -c lcerrone -c awolny python=3.9 pytorch-3dunet=1.3.7 plantseg napari | ||
``` | ||
The above command will create a new Conda environment, `plant-seg`, with all required dependencies. | ||
|
||
## Optional dependencies (not fully tested on Windows) | ||
Some types of compressed tiff files require an additional package to be load correctly (e.g.: Zlib, | ||
ZSTD, LZMA, ...). To run PlantSeg on those stacks, you need to install `imagecodecs`. | ||
In the terminal: | ||
```bash | ||
conda activate plant-seg | ||
pip install imagecodecs | ||
``` | ||
|
||
Experimental support for SimpleITK watershed segmentation has been added to PlantSeg version 1.1.8. These features can be used only | ||
after installing the SimpleITK package: | ||
```bash | ||
conda activate plant-seg | ||
pip install SimpleITK | ||
``` |
Oops, something went wrong.