Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Wolny committed Jan 20, 2020
1 parent 1a82c30 commit d3fa716
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM continuumio/miniconda3
RUN conda create -n plant-seg -c lcerrone -c abailoni -c cpape -c awolny -c conda-forge plantseg
ENTRYPOINT ["conda", "run", "-n", "plant-seg", "plantseg", "--gui"]
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,23 @@ The PlantSeg related files (models, configs) will be placed inside your home dir
Our pipeline uses the PyTorch library for the CNN predictions. PlantSeg can be run on systems without GPU, however
for maximum performance we recommend that the application is run on a machine with a high performance GPU for deep learning.

## Training on New Data:
## Docker image
We also provide a docker image with plantseg package.

**Linux only**: In oder to execute the docker image in the GUI mode, fist we need to allow everyone to access X server
on the docker host. This can be done by invoking the following command in the terminal:
```bash
xhost +

```
The just run:
```
docker run -it --rm -v PATH_TO_DATASET:/root/datasets -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY plantseg
```
this will start the _PlantSeg_ GUI application. `PATH_TO_DATASET` is the directory on the docker host where the data to be processed are stored.

## Training on New Data
For training new models we rely on the [pytorch-3dunet](https://github.com/hci-unihd/pytorch-3dunet).
A similar configuration file can be used for training on new data and all the instructions can be found in the repo.
When the network is trained it is enough to copy the following files into the `~/.plantseg_models/` directory:
Expand All @@ -92,4 +108,4 @@ Now you can simply use your model for prediction by editing the [model_name:](ex

If you want your model to be part of the open-source model zoo provided with this package, please contact us.

## Citation:
## Citation

0 comments on commit d3fa716

Please sign in to comment.