Giter VIP home page Giter VIP logo

pacnn-perspectiveaware-crowdcounting's Introduction

Perspective-Aware CNN For Crowd Counting

By SHI Miaojing, YANG Zhaohui, XU Chao and CHEN Qijun. This implementation is written by SHI Miaojing and YANG Zhaohui

Introduction

This project is an implementation of the proposed method in our arXiv paper - Perspective-Aware CNN For Crowd Counting (PACNN). A major challenge of the crowd counting lies in the drastic changes of scales and perspectives in images. Recent trends employs different (large) sized filters or conduct patch-based estimations to tackle it. This work does not follow them, it instead directly predicts a perspective map in the network and encodes it as a perspective-aware weighting layer to adaptively combine the density outputs from multi-scale feature maps. The weights are learned at every pixel of the map such that the final combination is robust to perspective changes and pedestrian size variations. PACNN achieves state-of-the-art results and runs as fast as the fastest. The ground truth perspective maps used in this work is also provided.

License

This code is released under the MIT License (Please refer to the LICENSE file for details). It can only be used for academic research purposes.

Citation

@article{shi18pacnn,
Author = {Miaojing Shi, Zhaohui Yang, Chao Xu and Qijun Chen},
Title = {Perspective-Aware CNN For Crowd Counting},
booktitle= = {arXiv:1807.01989},
Year = {2018}
}

Dependencies and Installation

We tested the implementation on Linux 14.04 with GPU Nvidia Titan, CUDA8 and CuDNN v5. The other versions should work as well. You should first be able to compile tools/lmdb2txt and sigmoid_learn layer with Caffe.

Train and Test

Train and deploy prototxt are available in folder TrainTest. You can use the matlab code to load configurations, prepare data and test model. Our trained model on ShanghaiTech PartB is also included for test.

Perspective Dataset on ShanghaiTech

We also provide the ground truth perspective map for every image in the ShanghaiTech Dataset. Please refer to our paper about the generation of GT perspective maps. If you find the perspective data useful in your research, please kindly cite our paper above.

Q&A

Please submit a bug report on the Github site of the project if you run into any problems with the code.

pacnn-perspectiveaware-crowdcounting's People

Contributors

miao0913 avatar

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.