Coder Social home page Coder Social logo

tractatus / bacteria_segmentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from torellium/bacteria_segmentation

0.0 0.0 0.0 38.99 MB

pretrained and instructions for annotating and training segmentation of bacterial fluorescent images

License: MIT License

Python 97.11% R 2.89%

bacteria_segmentation's Introduction

bacteria_segmentation

pretrained and instructions for annotating and training segmentation of bacterial fluorescent images

Installation

Create environment:

conda create --name napari-env
conda activate napari-env
conda install -c conda-forge napari   
conda install opencv

Install Tensorflow for macOS M1/M2:

pip install tensorflow-macos
pip install tensorflow-metal

Install stardist for cell segmentation:

pip install gputools
pip install stardist
pip install csbdeep

pip install splinedist

How to use

Data augmentation

python augment_image_data.py

Perform training

python training.py

Open up tensorboard to follow the results:

tensorboard --logdir=.

Prediction

python prediction.py './examples/' 

Where examples is the folder that contains .tif files for analysis. Format has to be 16-bit monochrome TIFF.

The output will be produced in the active wokring directory as the original file names with prefix output_.

  • output_*.tif labels, 16-bit TIFF each cell has a unique unint16 value.
  • output_*.zip ImageJ ROI zip file, can be opened in ImageJ/Fiji ROI Manager.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.