svishwa/crowdcount-mcnn
소개
MCNN을 이용한 단일 이미지 군중 수 계산(비공식 구현)
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSingle Image Crowd Counting via Multi Column Convolutional Neural Network
This is an unofficial implementation of CVPR 2016 paper "Single Image Crowd Counting via Multi Column Convolutional Neural Network"
Installation
- Install pytorch
- Clone this repository
git clone https://github.com/svishwa/crowdcount-mcnn.git
We'll call the directory that you cloned crowdcount-mcnn ROOT
Data Setup
Download ShanghaiTech Dataset from
Dropbox: https://www.dropbox.com/s/fipgjqxl7uj8hd5/ShanghaiTech.zip?dl=0Baidu Disk: http://pan.baidu.com/s/1nuAYslz
Create Directory
mkdir ROOT/data/original/shanghaitech/
Save "part_A_final" under ROOT/data/original/shanghaitech/
Save "part_B_final" under ROOT/data/original/shanghaitech/
cd ROOT/data_preparation/
run create_gt_test_set_shtech.m in matlab to create ground truth files for test data
cd ROOT/data_preparation/
run create_training_set_shtech.m in matlab to create training and validataion set along with ground truth files
Test
Follow steps 1,2,3,4 and 5 from Data Setup
Download pre-trained model files:
Save the model files under ROOT/final_models
Run test.py
a. Set save_output = True to save output density maps
b. Errors are saved in output directory
Training
- Follow steps 1,2,3,4 and 6 from Data Setup
- Run train.py
Training with TensorBoard
With the aid of Crayon, we can access the visualisation power of TensorBoard for any deep learning framework.
To use the TensorBoard, install Crayon (https://github.com/torrvision/crayon)
and set use_tensorboard = True in ROOT/train.py.
Other notes
During training, the best model is chosen using error on the validation set. (It is not clear how the authors in the original implementation choose the best model).
10% of the training set is set asised for validation. The validation set is chosen randomly.
The ground truth density maps are obtained using simple gaussian maps unlike the original method described in the paper.
Following are the results on Shanghai Tech A and B dataset:
| | MAE | MSE | ------------------------ | A | 110 | 169 | ------------------------ | B | 25 | 44 |Also, please take a look at our new work on crowd counting using cascaded cnn and high-level prior (https://github.com/svishwa/crowdcount-cascaded-mtl), which has improved results as compared to this work.
관련 프로젝트 살펴보기
불러오는 중…