Giter Club home page Giter Club logo

fusioncount's Introduction

FusionCount

Official PyTorch implementation of the ICIP 2022 paper FusionCount: Efficient Crowd Counting via Multiscale Feature Fusion.

Requirements

The code was writen in Python 3.9.10. The PyTorch version used is 1.10.0

Datasets

ShanghaiTech A & B can be found on Kaggle.

Model Structure

FusionCount

Training

Please refer to DM-Count for data preparation and training details. Please notice that you will also have to normalise the predicted density map, as illustrated in the code snippet from DM-Count/models.py below.

...
mu = self.density_layer(x)
B, C, H, W = mu.size()
mu_sum = mu.view([B, -1]).sum(1).unsqueeze(1).unsqueeze(2).unsqueeze(3)
mu_normed = mu / (mu_sum + 1e-6)
return mu, mu_normed

Results

Model Multi-Adds MAE (SHA) RMSE (SHA) MAE (SHB) RMSE (SHB)
CSRNet 856.99 G 68.2 115.0 10.6 16.0
CAN 908.05 G 62.3 100.0 7.8 12.2
BL 853.70 G 62.8 101.8 7.7 12.7
DM-Count 853.70 G 59.7 95.7 7.4 11.8
FusionCount (ours) 815.00 G 62.2 101.2 6.9 11.8

sha_img_96 sha_img_116 shb_img_21 shb_img_30

Citation

The paper has been accepted by ICIP 2022 and published on IEEE Xplore. You can also find the arXiv version here. Please cite us if you find it useful!

@INPROCEEDINGS{9897322,
  author={Ma, Yiming and Sanchez, Victor and Guha, Tanaya},
  booktitle={2022 IEEE International Conference on Image Processing (ICIP)},
  title={Fusioncount: Efficient Crowd Counting Via Multiscale Feature Fusion},
  year={2022},
  volume={},
  number={},
  pages={3256-3260},
  doi={10.1109/ICIP46576.2022.9897322}
}

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.