Giter Club home page Giter Club logo

afm-image-segmentation's Introduction

AFM Image Segmentation

Atomic Force Microscopy (AFM) images with DNA strands and nucleosome can be segmented by Fully Convolutional Neural Networks (FCN). This repository contains scripts to design, train and validate them.

Network architecture

The network architecture is based on [1]. Take VGG16 and transform the fully connected layers to convolutional layers. The features from these layers and the pooling layers get scored and upsampled. There are the architectures FCN-8, FCN-4, and FCN-2 where the number refers to the maximal upsampling factor.
The code was inspired by [2].

Requirments

The code was developed for and tested with Python 3.6.

The following packages are required:

  • tensorflow
  • numpy
  • scipy

To install them run

pip3 install --upgrade tensorflow-gpu
pip3 install numpy scipy

A pretrained version of VGG16 can be downloaded here.

Usage

The files fcn8_vgg.py, fcn4_vgg.py, and fcn2_vgg.py contain the class to create and build the models. This is done like:

vgg_fcn = fcn8_vgg.FCN8VGG()  
vgg_fcn.build(images)

The file utils.py contains a function to save the network predictions as an image. To train the network run

python3 train_fcn8_vgg.py

References

[1] Jonathan Long, Evan Shelhamer, Trevor Darrell: Fully Convolutional Networks for Semantic Segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence, Volume 39, Issue 4, 2016.
[2] https://github.com/MarvinTeichmann/tensorflow-fcn, retrieved May 14, 2018.

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.