Difference between revisions of "Fiji/Unet 2016"

From HPC users
Jump to navigationJump to search
Line 1: Line 1:
== Introduction ==
== Introduction ==
U-Net  is a plugin for [https://imagej.nih.gov/ij/ ImageJ]. It is  a  generic  deep-learning  solution  for  frequently  occurring  quantificationtasks like cell detection and shape measurements in biomedical image data. In this case, Unet is a plugin for [https://fiji.sc/ Fiji], a distribution for ImageJ, specifically build to facilitate scientific image analysis.[https://lmb.informatik.uni-freiburg.de/Publications/2019/FMBCAMBBR19/paper-U-Net.pdf ¹ ] <br/>
U-Net  is a plugin for [https://imagej.nih.gov/ij/ ImageJ]. It is  a  generic  deep-learning  solution  for  frequently  occurring  quantificationtasks like cell detection and shape measurements in biomedical image data. In this case, Unet is a plugin for [https://fiji.sc/ Fiji], which is a distribution for ImageJ, specifically build to facilitate scientific image analysis.[https://lmb.informatik.uni-freiburg.de/Publications/2019/FMBCAMBBR19/paper-U-Net.pdf ¹ ] <br/>
Unet works with and is dependent of a modified version of [https://github.com/BVLC/caffe caffe]: [https://github.com/lmb-freiburg/Unet-Segmentation/wiki/Installation#UNet_Client_Fiji_Plugin caffe_unet].  
Unet works with and is dependent of a modified version of [https://github.com/BVLC/caffe caffe]: [https://github.com/lmb-freiburg/Unet-Segmentation/wiki/Installation#UNet_Client_Fiji_Plugin caffe_unet].  


Line 12: Line 12:
== Using Fiji/Unet ==
== Using Fiji/Unet ==


To use Fiji, you need to have a bash session enabled which forwards X11, especially if you depend on the programs GUI. (For more about this you can consult our [https://wiki.hpcuser.uni-oldenburg.de/index.php?title=Login login manual])
To use Fiji, you need to have a bash session enabled which forwards X11, especially if you depend on the programs GUI. <br/>
(For more about this you can consult our [https://wiki.hpcuser.uni-oldenburg.de/index.php?title=Login login manual])


If you just want to work with Fiji without GPU support, you can load the module and straight ahead start the program:  
If you just want to work with Fiji without GPU support, you can just load the module and straight ahead start the program:  
  module load hpc-uniol-env
  module load hpc-uniol-env
  module load fiji
  module load fiji
Line 29: Line 30:


For the sake of simplicity we will save all files and directories in one subfolder:
For the sake of simplicity we will save all files and directories in one subfolder:
''mkdir ~/unet_data''
''mkdir ~/unet_data''
''cd ~/unet_data''
''cd ~/unet_data''


Now, we will download a pre-trained 2D model for cell segmentation for caffe_unet:
Now, we will download a pre-trained 2D model for cell segmentation for caffe_unet:

Revision as of 13:16, 18 September 2019

Introduction

U-Net is a plugin for ImageJ. It is a generic deep-learning solution for frequently occurring quantificationtasks like cell detection and shape measurements in biomedical image data. In this case, Unet is a plugin for Fiji, which is a distribution for ImageJ, specifically build to facilitate scientific image analysis.¹
Unet works with and is dependent of a modified version of caffe: caffe_unet.


Installed version(s)

This version is installed and currently available on environment hpc-uniol-env:

caffe_unet/99bd99795d-intel-2016b-Python-2.7.12

Using Fiji/Unet

To use Fiji, you need to have a bash session enabled which forwards X11, especially if you depend on the programs GUI.
(For more about this you can consult our login manual)

If you just want to work with Fiji without GPU support, you can just load the module and straight ahead start the program:

module load hpc-uniol-env
module load fiji
fiji-linux64


Should you need to work with GPUs, you will have to do some preparations:


At first, you need to install a modified srun version, like described here.
srun.x11 will be needed to switch to an interactive session on a gpu node.

To work with Unet, you will also need some image files of yours and some base data, which you can get from the project page (section 'Data').

For the sake of simplicity we will save all files and directories in one subfolder:

mkdir ~/unet_data
cd ~/unet_data

Now, we will download a pre-trained 2D model for cell segmentation for caffe_unet:

mkdir caffe_h5 && cd caffe_h5
wget https://lmb.informatik.uni-freiburg.de/resources/opensource/unet/2d_cell_net_v0_model.zip
 unzip 2d_cell_net_v0_model.zip
cd ..

At last, we need the image files. Tecnically, they can be stored anywhere a t the home directory, but it can be helfpful to have everything at one place.

mkdir image_files
cp ~/path/to/image_files/* ./image_files

When everything is prepared, it is time to switch to a gpu node:

x11/srun.x11/srun.x11 -p mpcg.p -N 1 --tasks-per-node 5 --gres=gpu:1

This command sends a interactive bash session as a job into the queue. For this session there are five cores (--tasks-per-node 5) on one single node (-N 1) requestet, including one GPU (--gres=gpu:1) in the gpu partition (-p mpcg.p)

Now you can proceed as shown on the developers video tutorials.

Documentation

The full documentation for Unetcan be found here.
The caffe project page can be fount here.
The Fiji page can be found here.
The ImageJ page can be found here.