Giter VIP home page Giter VIP logo

cnn-cells's Introduction

CNN cell detection

This code show how to train a cell detector using a convolutional neural network in Lasagne.

Getting started

Look at main.ipynb.

Requirements

  • Python 2 or 3
  • The python packages in requirements.txt, if you have pip you can install them using:
pip3 install -r requirements.txt

Details

  • Each image is manually annotated with the center point of each cell as well as some hard negative examples
  • All points within sample radius of a cell centre are sampled as positive samples
  • An equal number of negative samples are randomly sampled outside the positive radius
  • All points within sample radius of the hard negative examples are sampled as negative samples
  • A convolutional neural network is trained using the negative and positive samples. For each sample, a box of size box_size, is used as input to the network.
  • Given a new image a box_sized window is slided through each possible patch in the image, generating a probability map
  • Local maxima in the probability map are marked as cell centers

Note: There is no padding on the boundary so no detection is possible box_size/2 pixels from the image boundary.

Description

Credit

The network and code structure is based on Lasanges MNIST example https://github.com/Lasagne/Lasagne/blob/master/examples/mnist.py

cnn-cells's People

Contributors

johannesu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cnn-cells's Issues

how to test an image

hello, I am interesting at your this repository. Now I want to do a simple test for a image. But how to save and load trained model in your main file? can you give some advice~
thank you in advance

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.