Skip to content

Repo for paper "NU-Net: a self-supervised smart filter for enhancing blobs in bioimages", BIC workshop, ICCV2023

Notifications You must be signed in to change notification settings

LaboratoryOpticsBiosciences/nunet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NU-Net: a self-supervised smart filter for enhancing blobs in bioimages

While supervised deep neural networks have become the dominant method for image analysis tasks in bioimages, truly versatile methods are not available yet because of the diversity of modalities and conditions and the cost of retraining. In practice, day-to-day biological image analysis still largely relies on ad hoc workflows often using classical linear filters. We propose NU-Net, a convolutional neural network filter selectively enhancing cells and nuclei, as a drop-in replacement of chains of classical linear filters in bioimage analysis pipelines. Using a style transfer architecture, a novel perceptual loss implicitly learns a soft separation of background and foreground. We used self-supervised training using 25 datasets covering diverse modalities of nuclear and cellular images. We show its ability to selectively improve contrast, remove background and enhance objects across a wide range of datasets and workflow while keeping image content. The pre-trained models are light and practical, and published as free and open-source software for the community. NU-Net is also available as a plugin for Napari.

Installation

Use PyPI (Python Package Index)

pip install nunet

or clone this repo and install it locally

git clone https://github.com/LaboratoryOpticsBiosciences/nunet.git
cd nunet
pip install -e .

Usage

The repo provides two scripts: one to test and the other to train a NU-Net.

For common steps to test and train NU-Nets,

  1. Go to release page https://github.com/LaboratoryOpticsBiosciences/nunet/releases

  2. Download an archive called nunet_models.tar and unzip it in the root directory of the repo. It should unzip config/ folder and models_filter_slider/ folder.

To test pre-trained NU-Nets,

  • Execute ./scripts/test_nunet.py following its instruction on the top of the script.

Get help message by invoking the script python scripts/test_nunet.py --help.

To train the pre-trained NU-Nets

  • Execute ./scripts/train_nunet.py folowing its instruction.

Note that the provided NU-Net models on the releases page are not reproducible until we later release private datasets, namely ones prefixed with LOB_. Find more details in the paper.

Citation

This work was accepted by BIC (Bio-Image Computing) workshop at ICCV2023. The paper will become available soon.

About

Repo for paper "NU-Net: a self-supervised smart filter for enhancing blobs in bioimages", BIC workshop, ICCV2023

Resources

Stars

Watchers

Forks

Packages

No packages published