All Projects → rongliangzi → MARUNet

rongliangzi / MARUNet

Licence: other
Multi-level Attention Refined UNet for crowd counting

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to MARUNet

Crowd-Counting-with-MCNNs
Crowd counting on the ShanghaiTech dataset, using multi-column convolutional neural networks.
Stars: ✭ 23 (-23.33%)
Mutual labels:  crowd-counting, crowdcounting
Smart-City-Sample
The smart city reference pipeline shows how to integrate various media building blocks, with analytics powered by the OpenVINO™ Toolkit, for traffic or stadium sensing, analytics and management tasks.
Stars: ✭ 141 (+370%)
Mutual labels:  crowd-counting
Awesome Crowd Counting
Awesome Crowd Counting
Stars: ✭ 1,720 (+5633.33%)
Mutual labels:  crowd-counting
Dense-Scale-Network-for-Crowd-Counting
An unofficial implement of paper "Dense Scale Network for Crowd Counting", link: https://arxiv.org/abs/1906.09707
Stars: ✭ 25 (-16.67%)
Mutual labels:  crowd-counting
pytorch-ACSCP
Unofficial implementation of "Crowd Counting via Adversarial Cross-Scale Consistency Pursuit" with pytorch - CVPR 2018
Stars: ✭ 18 (-40%)
Mutual labels:  crowd-counting
PCC-Net
PCC Net: Perspective Crowd Counting via Spatial Convolutional Network
Stars: ✭ 63 (+110%)
Mutual labels:  crowd-counting
keras-mcnn
keras实现的人群密度检测网络"Single Image Crowd Counting via Multi Column Convolutional Neural Network",欢迎试用、关注并反馈问题...
Stars: ✭ 23 (-23.33%)
Mutual labels:  crowd-counting
ACSCP cGAN
Code implementation for paper that "ACSCS: Crowd Counting via Adversarial Cross-Scale Consistency Pursuit"; This is method of Crowd counting by conditional generation adversarial networks
Stars: ✭ 36 (+20%)
Mutual labels:  crowd-counting
Variations-of-SFANet-for-Crowd-Counting
The official implementation of "Encoder-Decoder Based Convolutional Neural Networks with Multi-Scale-Aware Modules for Crowd Counting"
Stars: ✭ 78 (+160%)
Mutual labels:  crowd-counting
PyramidScaleNetwork
To the best of our knowledge, this is the first work to explicitly address feature similarity issue in multi-column design. Extensive experiments on four challenging benchmarks (ShanghaiTech, UCF_CC_50, UCF-QNRF, and Mall) demonstrate the effectiveness of the proposed innovations as well as the superior performance over the state-of-the-art. Mor…
Stars: ✭ 17 (-43.33%)
Mutual labels:  crowd-counting
ailia-models
The collection of pre-trained, state-of-the-art AI models for ailia SDK
Stars: ✭ 1,102 (+3573.33%)
Mutual labels:  crowd-counting
crowd-counting
Image Crowd Counting Using Convolutional Neural Network and Markov Random Field
Stars: ✭ 32 (+6.67%)
Mutual labels:  crowd-counting
W-Net-Keras
An unofficial implementation of W-Net for crowd counting.
Stars: ✭ 20 (-33.33%)
Mutual labels:  crowd-counting
CSRNet-keras
Implementation of the CSRNet paper (CVPR 18) in keras-tensorflow
Stars: ✭ 107 (+256.67%)
Mutual labels:  crowd-counting
S-DCNet
Unofficial Pytorch implementation of S-DCNet and SS-DCNet
Stars: ✭ 17 (-43.33%)
Mutual labels:  crowd-counting
NWPU-Crowd-Sample-Code
The sample code for a large-scale crowd counting dataset, NWPU-Crowd.
Stars: ✭ 140 (+366.67%)
Mutual labels:  crowd-counting
IIM
PyTorch implementations of the paper: "Learning Independent Instance Maps for Crowd Localization"
Stars: ✭ 94 (+213.33%)
Mutual labels:  crowd-counting
CrowdFlow
Optical Flow Dataset and Benchmark for Visual Crowd Analysis
Stars: ✭ 87 (+190%)
Mutual labels:  crowd-counting
People-Flows
The code for our ECCV 2020 paper: Estimating People Flows to Better Count Them in Crowded Scenes
Stars: ✭ 44 (+46.67%)
Mutual labels:  crowdcounting

To everyone interested in our work CFANet in WACV2021:

MARUNet in this repo is identical to the the CFANet without Density level estimator, that means only density map estimator and crowd region recognizer are used. The second row w. CRR means the MARUNet in Table 7 of our paper. The name MARUNet is unchanged since we wrote another manuscript before and upgrade it to CFANet and submit it to WACV2021. I have graduated last summer, so just use MARUNet is ok, which is also a good baseline, since it can get 56.9 MAE on SHA.

MARUNet

Multi-level Attention Refined UNet for crowd counting.

Data preparation

Images and groundtruth are read into dataset via .json file which is specified in json directory. Preprocessed Shanghaitech and UCF-QNRF datasets can be downloaded from:

(1) Baidu disk: link(Extraction Code: xvd2).

(2) Google drive: UCF-QNRF(For images with width or height larger than 1024, we resize the larger side to 1024, e.g., 2048*1024 -> 1024*512), ShanghaiTech

Modifying the path in .json file and data can be read.

Training

python train_generic.py --model MARNet --epochs 100 --dataset qnrf --train_json json/qnrf_train.json --val_json json/qnrf_val.json --loss 3avg-ms-ssim --lazy_val 0

(MARNet is identical to MARUNet.)

Testing

Use test_one_image.py to test a given image. You need to set divide to 50 and ds(downsample) to 1 in img_test() to get correct results. Some unused functions are not removed so you need to remove them to run it. If you want to test a model on a dataset, you need to modify it.

Pretrained Models

Download links:

MARUNet(MARNet)
SHA Google Drive Baidu Disk, Extraction Code: hg9y
SHB Google Drive Baidu Disk Extraction Code: 21x7
QNRF Baidu Disk Extraction Code: 5ns9

Performance

Shanghaitech PartA

Method MAE RMSE SSIM PSNR
MARUNet 56.9 91.8 0.86 29.90

Shanghaitech PartB

Method MAE RMSE SSIM PSNR
MARUNet 6.6 10.6 0.96 31.04

UCF_CC_50

Method MAE RMSE SSIM PSNR
MARUNet 233.3 313.8 0.63 19.82

UCF-QNRF

Method MAE RMSE SSIM PSNR
MARUNet 90.8 155.1 0.90 32.79

Other Retrained Models with MSL

We retrain existing models on SHA dataset with our Multi-scale Structural Loss(MSL). Compared to original MSE loss, better performance is achieved.

Link MAE(MSE/MSL) RMSE(MSE/MSL)
MCNN Baidu Disk Extraction Code: ubx5 110.2/89.1 173.2/142.9
CSRNet Baidu Disk Extraction Code: iqme 68.2/63.4 115.0/103.1
CAN Baidu Disk Extraction Code: s93r 62.3/59.1 100.0/90.5
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].