Giter VIP home page Giter VIP logo

context-aware_crowd_counting-pytorch's Introduction

Context-Aware_Crowd_Counting-pytorch

This is an simple and clean unoffical implemention of CVPR 2019 paper "Context-Aware Crowd Counting".

Installation

 1. Install pytorch 1.0.0 later and python 3.6 later
 2. Install visdom

pip install visdom

 3. Install tqdm

pip install tqdm

 4. Clone this repository

git clone https://github.com/CommissarMa/Context-Aware_Crowd_Counting-pytorch.git

We'll call the directory that you cloned Context-Aware_Crowd_Counting-pytorch as ROOT.

Data Setup

 1. Download ShanghaiTech Dataset from Dropbox: link or Baidu Disk: link
 2. Put ShanghaiTech Dataset in ROOT and use "data_preparation/k_nearest_gaussian_kernel.py" to generate ground truth density-map. (Mind that you need modify the root_path in the main function of "data_preparation/k_nearest_gaussian_kernel.py")

Training

 1. Modify the root path in "train.py" according to your dataset position.
 2. In command line:

python -m visdom.server

 3. Run train.py

Testing

 1. Modify the root path in "test.py" according to your dataset position.
 2. Run test.py for calculate MAE of test images or just show an estimated density-map.

Other notes

we got the comparable MAE at the 353 epoch BaiduDisk download with Extraction code: yfwb or Dropbox Link which is reported in paper. Thanks for the author's(Weizhe Liu) response by email. His mainpage is link.

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.