Git Product home page Git Product logo

multi_column_cnn_in_keras's Introduction

Multi_column_CNN_in_Keras_for_crowd_counting

A simple and unofficial Keras version implementation of Multi-column CNN for crowd counting.

Multi-column CNN is the crowd counting algorithm proposed in a CVPR 2016 paper "Single Image Crowd Counting via Multi Column Convolutional Neural Network".

Data preprocessing:

The data can be downloaded on dropbox or Baidu Disk can't be used directly without some preprocessing.

  1. Create directory data/original in the root path of this repository, then move the decompressed ShanghaiTech to it.

  2. Run the create_gt_test_set_shtech.py to generate the csv files for test which can be loaded as:

    csv_sample

  3. Run the create_training_set_shtech.py to generate selected images and csv files randomly for training and validation. in formatted_trainval.

These three python files in data_preparation are adapted from the original MATLAB version preprocessing implemented in this mcnn repository in pytorch.

Results:

Some outputs after 200 epochs -- loss curves:loss

  • Good one:

result_sample_good

  • Acceptable one:

result_sample_normal

  • Bad one:

result_sample_bad

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.