• Stars
    star
    110
  • Rank 314,911 (Top 7 %)
  • Language
    Python
  • License
    Other
  • Created over 3 years ago
  • Updated 7 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
384
star
2

FourierImageTransformer

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

pn2v

This is our implementation of Probabilistic Noise2Void
Python
69
star
4

DenoiSeg

Joint training of denoising and segmentation.
Jupyter Notebook
62
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
41
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
25
star
10

cryoCARE_T2T

Singularity image for cryo-CARE
Jupyter Notebook
25
star
11

napari-n2v

A self-supervised denoising algorithm.
Python
23
star
12

N2V_fiji

Jupyter Notebook
20
star
13

VoidSeg

Notebooks for VoidSeg
Python
16
star
14

DecoNoising

Jupyter Notebook
9
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

imagej-logo

1
star
29

fiji-howto

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

labkit-remote-drawing

JavaScript
1
star
31

PyTr2d

Python based Tracking in 2D
Python
1
star
32

napari-patchcreator

Python
1
star
33

Zebrafish_nuclear_volume_analysis

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

denoiSplit

Jupyter Notebook
1
star
35

Noise2Noise-with-CSBDeep

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

IMPRS-programming-course

Python
1
star
37

AI4LifeSubmissions

Jupyter Notebook
1
star