Git Product home page Git Product logo

da-net-crowd-counting's Introduction

DA-Net

This is a Pytorch implementation of IEEE Access paper DA-Net: Learning the fine-grained density distribution with deformation aggregation network.

Enviroment

python pytorch CUDA

Getting Started

Data Preparation

Datasets Method
ShanghaiTech Part A Geometry-adaptive kernels
ShanghaiTech Part B Normal Fixed kernel: σ = 4
UCSD Normal Fixed kernel: σ = 4
The WorldExpo’10 Perspective
UCF_CC_50 Geometry-adaptive kernels
TRANCOS Normal Fixed kernel: σ = 4

For ShanghaiTech Part A and UCF_CC_50, use the code in "data_preparation/geometry-kernel"; For The WorldExpo’10, use the code in "data_preparation/perspective"; For UCSD and TRANCOS, use the code in "data_preparation/normal". In geometry-kernel, we augment the data by cropping 100 patches that each of them is 1/4 size of the original image. In perpective, we augment the data by cropping 10 patches that each of them is size of 256*256. In normal, data enhancement is not performed.

Run

  1. Train: python train.py
    a. Set pretrained_vgg16 = False
    b. Set fine_tune = False
  2. Test: python test.py
    a. Set save_output = True to save output density maps
  3. pretrained model:
    [Shanghai Tech A]
    [Shanghai Tech B]

Cite

If you use the code, please cite the following paper:

@ARTICLE{8497050, 
author={Z. Zou and X. Su and X. Qu and P. Zhou}, 
journal={IEEE Access}, 
title={DA-Net: Learning the Fine-Grained Density Distribution With Deformation Aggregation Network}, 
year={2018}, 
volume={6}, 
number={}, 
pages={60745-60756}, 
keywords={Feature extraction;Strain;Kernel;Adaptation models;Diamond;Switches;Training;Crowd counting;deformable convolution;adaptive receptive fields;fine-grained density distribution}, 
doi={10.1109/ACCESS.2018.2875495}, 
ISSN={2169-3536}, 
month={},}

da-net-crowd-counting's People

Contributors

bigteacher-777 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

da-net-crowd-counting's Issues

how do we calculate the head count from ET values

Sorry if my question is too basic.
I got 100 GT and 100 ET values but my doubt is how do we calculate the head count from it?
For shanghaitech part A image no. 23, GT mention in paper is 429 and ET is 425. how we got it from those GT/ET 100 values?

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.