• Stars
    star
    111
  • Rank 314,510 (Top 7 %)
  • Language
    Python
  • License
    Other
  • Created almost 4 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Code Implementation for EmbedSeg, an Instance Segmentation Method for Microscopy Images

Embedding-based Instance Segmentation in Microscopy

Table of Contents

Introduction

This repository hosts the version of the code used for the publication Embedding-based Instance Segmentation of Microscopy Images.

We refer to the techniques elaborated in the publication, here as EmbedSeg. EmbedSeg is a method to perform instance-segmentation of objects in microscopy images, based on the ideas by Neven et al, 2019.

With EmbedSeg, we obtain state-of-the-art results on multiple real-world microscopy datasets. EmbedSeg has a small enough memory footprint (between 0.7 to about 3 GB) to allow network training on virtually all CUDA enabled hardware, including laptops.

Dependencies

One could execute these lines of code to run this branch with GPU support:

mamba create -n EmbedSeg python
mamba activate EmbedSeg
mamba install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia
git clone https://github.com/juglab/EmbedSeg.git
cd EmbedSeg
pip install -e .

For CPU support, one could execute the following lines of code:

mamba create -n EmbedSeg python
mamba activate EmbedSeg
pip install torch torchvision
git clone https://github.com/juglab/EmbedSeg.git
cd EmbedSeg

Getting Started

Look in the examples directory, and try out the DSB-2018 notebooks for 2D images or Mouse-Organoid-Cells-CBG notebooks for volumetric (3D) images. Please make sure to select Kernel > Change kernel to EmbedSegEnv.

Datasets

3D datasets are available as release assets here. datasets

Training and Inference on your data

*.tif-type images and the corresponding masks should be respectively present under images and masks, under directories train, val and test. (In order to prepare such instance masks, one could use the Fiji plugin Labkit as suggested here). The following would be a desired structure as to how data should be prepared.

$data_dir
โ””โ”€โ”€โ”€$project-name
    |โ”€โ”€โ”€train
        โ””โ”€โ”€โ”€images
            โ””โ”€โ”€โ”€X0.tif
            โ””โ”€โ”€โ”€...
            โ””โ”€โ”€โ”€Xn.tif
        โ””โ”€โ”€โ”€masks
            โ””โ”€โ”€โ”€Y0.tif
            โ””โ”€โ”€โ”€...
            โ””โ”€โ”€โ”€Yn.tif
    |โ”€โ”€โ”€val
        โ””โ”€โ”€โ”€images
            โ””โ”€โ”€โ”€...
        โ””โ”€โ”€โ”€masks
            โ””โ”€โ”€โ”€...
    |โ”€โ”€โ”€test
        โ””โ”€โ”€โ”€images
            โ””โ”€โ”€โ”€...
        โ””โ”€โ”€โ”€masks
            โ””โ”€โ”€โ”€...

Issues

If you encounter any problems, please file an issue along with a detailed description.

Citation

If you find our work useful in your research, please consider citing:

@InProceedings{lalit2021embedseg,
  title = 	 {Embedding-based Instance Segmentation in Microscopy},
  author =       {Lalit, Manan and Tomancak, Pavel and Jug, Florian},
  booktitle = 	 {Proceedings of the Fourth Conference on Medical Imaging with Deep Learning},
  pages = 	 {399--415},
  year = 	 {2021},
  editor = 	 {Heinrich, Mattias and Dou, Qi and de Bruijne, Marleen and Lellmann, Jan and Schlรคfer, Alexander and Ernst, Floris},
  volume = 	 {143},
  series = 	 {Proceedings of Machine Learning Research},
  month = 	 {07--09 Jul},
  publisher =    {PMLR},
  pdf = 	 {https://proceedings.mlr.press/v143/lalit21a/lalit21a.pdf},
  url = 	 {https://proceedings.mlr.press/v143/lalit21a.html},
}

and

@article{lalit2022mia,
title = {EmbedSeg: Embedding-based Instance Segmentation for Biomedical Microscopy Data},
journal = {Medical Image Analysis},
volume = {81},
pages = {102523},
year = {2022},
issn = {1361-8415},
doi = {https://doi.org/10.1016/j.media.2022.102523},
url = {https://www.sciencedirect.com/science/article/pii/S1361841522001700},
author = {Manan Lalit and Pavel Tomancak and Florian Jug},
}

Acknowledgements

The authors would like to thank the Scientific Computing Facility at MPI-CBG, thank Matthias Arzt, Joran Deschamps and Nuno Pimpao Martins for feedback and testing. Alf Honigmann and Anna Goncharova provided the Mouse-Organoid-Cells-CBG data and annotations. Jacqueline Tabler and Diana Afonso provided the Mouse-Skull-Nuclei-CBG dataset and annotations. This work was supported by the German Federal Ministry of Research and Education (BMBF) under the codes 031L0102 (de.NBI) and 01IS18026C (ScaDS2), and the German Research Foundation (DFG) under the code JU3110/1-1(FiSS) and TO563/8-1 (FiSS). P.T. was supported by the European Regional Development Fund in the IT4Innovations national supercomputing center, project number CZ.02.1.01/0.0/0.0/16013/0001791 within the Program Research, Development and Education.

The authors would like to thank the authors of StarDist repository for several useful, helper functions. The authors would also like to thank Sahar Kakavand and Marco Dalla Vecchia for feedback on notebooks.

More Repositories

1

n2v

This is the implementation of Noise2Void training.
Python
396
star
2

FourierImageTransformer

Fourier Image Transformer (FIT) can solve relevant image analysis tasks in Fourier space.
Python
94
star
3

pn2v

This is our implementation of Probabilistic Noise2Void
Python
71
star
4

DenoiSeg

Joint training of denoising and segmentation.
Jupyter Notebook
65
star
5

PPN2V

Code Implementation for the publication "Fully Unsupervised Probabilistic Noise2Void"
Python
54
star
6

DivNoising

DivNoising is an unsupervised denoising method to generate diverse denoised samples for any noisy input image. This repository contains the code to reproduce the results reported in the paper https://openreview.net/pdf?id=agHLCOBM5jP
Python
42
star
7

HDN

This repository hosts the code for HDN (associated with the paper https://arxiv.org/pdf/2104.01374.pdf) for pixel and structured noise removal for microscopy and natural image datasets
Python
35
star
8

labkit-ui

Advanced Tool for Labeling And Segmentation
Java
33
star
9

cryoCARE_pip

PIP package of cryoCARE
Python
26
star
10

cryoCARE_T2T

Singularity image for cryo-CARE
Jupyter Notebook
26
star
11

napari-n2v

A self-supervised denoising algorithm.
Python
24
star
12

N2V_fiji

Jupyter Notebook
21
star
13

VoidSeg

Notebooks for VoidSeg
Python
16
star
14

DecoNoising

Jupyter Notebook
10
star
15

EmbedSeg-napari

Extending EmbedSeg for use in napari
Python
8
star
16

uSplit

Python
6
star
17

napari-denoiseg

Python
6
star
18

labkit-pixel-classification

Java
6
star
19

LabelEditor

Java
4
star
20

PlatyMatch

Accepted at BioImage Computing Workshop in ECCV, 2020
Python
4
star
21

featureforest

A napari plugin for segmentation using vision transformers' features
Python
4
star
22

labkit-command-line

Labkit Command Line - Segment huge images on a cluster
Java
3
star
23

clusterify

Port your projects to be cluster-ready!
Python
2
star
24

DL_TensorFlow_PyTorch

Jupyter Notebook
2
star
25

DenoiSeg_fiji

Java
2
star
26

VoidSeg_cluster

Jupyter Notebook
2
star
27

tiny-uploader-tool_fiji

Tiny Uploader Tool (TUT) for Fiji
Java
2
star
28

MultiOmicsCellSim

Cell Simulator to map parametrical distributions into various modalities
Jupyter Notebook
1
star
29

imagej-logo

1
star
30

MicroSSIM

Range Invariant SSIM
Jupyter Notebook
1
star
31

fiji-howto

How to do things in Fiji from Java
Java
1
star
32

labkit-remote-drawing

JavaScript
1
star
33

PyTr2d

Python based Tracking in 2D
Python
1
star
34

napari-patchcreator

Python
1
star
35

Zebrafish_nuclear_volume_analysis

Hosts the code for the segmentation and quantitative results presented in Vignes et al. (2021, bioRxiv).
Python
1
star
36

denoiSplit

Jupyter Notebook
1
star
37

Noise2Noise-with-CSBDeep

Denoising of Scanning Electron Microscopy (SEM) Data with CSBDeep and Noise2Noise.
Jupyter Notebook
1
star
38

IMPRS-programming-course

Python
1
star
39

AI4LifeSubmissions

Jupyter Notebook
1
star