This is the official repository of
OpenCounting: An Open Source Implementation of Crowd Counting Methods.
conda env create -f environment.yml
conda activate anomalyconda create --name anomaly python=3.10.13
conda activate anomaly
pip install -r requirements.txt
pip install torch==1.13.0+cu117 torchvision==0.14.0+cu117 --extra-index-url https://download.pytorch.org/whl/cu117For the RGBT-CC dataset, please download it from this link.
For the ShanghaiTech RGB-D dataset, please download it from this repo.
For the UCF-QNRF dataset, please download it from this link
For the NWPU-Crowd dataset, please download it from this link
For the ShanghaiTech dataset, please download it from this link
For the STCrowd dataset, please download it from this link
For the NWPU-MOC dataset, please download it from this repository
For the Towards-vs-Away dataset, please download it from this repository
For the CARPK dataset, please download it from this link
For the FSC147 dataset, please download it from this link
For the FruitNeRF dataset, please download it from this link
For the StackCounting dataset, please download it from this link
For the TRANCOS dataset, please download it from this link
For the PUCPR dataset, please download it from this link
For the Crowd-SR dataset, please download it from this repository
For the Mall dataset, please download it from this repository
For the FDST dataset, please download it from this repository
For the VSCrowd dataset, please download it from this link
For the CroHD dataset, please download it from this link
For the CARLA dataset, please download it from this repository
For the MovingDroneCrowd dataset, please download it from this repository
For the DroneBird dataset, please download it from this repository
| Models | UCF-QNRF | ShanghaiTech |
|---|---|---|
| BayesianCrowd | ✔️ | ✔️ |
| NoisyCC | ✔️ | ❌ |
| Models | RGBT-CC | ShanghaiTechRGBD |
|---|---|---|
| CSCA | ✔️ | ✔️ |
| IADM | ✔️ | ✔️ |
| EAEFNet | ✔️ | ❌ |
| MIANet | ✔️ | ❌ |
| Models | ShanghaiTech | NWPU-Crowd | UCF-QNRF |
|---|---|---|---|
| CLIP-EBC | ✔️ | ✔️ | ✔️ |
| Models | ShanghaiTech | NWPU-Crowd | UCF-QNRF | Arbitrary Image |
|---|---|---|---|---|
| DM-Count | ✔️ | ✔️ | ✔️ | ✔️ |
| OT-M | ❌ | ❌ | ❌ | ✔️ |
| GeneralizedLoss | ❌ | ❌ | ✔️ | ❌ |
| Models | ShanghaiTech | NWPU-Crowd |
|---|---|---|
| APGCC | ✔️ | ✔️ |
| UNIC | ✔️ | ❌ |
| SI-INR | ✔️ | ❌ |
| Models | ShanghaiTech | FDST | UCF-QNRF | STCrowd | CARPK | Towards-vs-Away | Mall | JHU-Crowd++ | NWPU-Crowd | TRANCOS | Crowd-SR |
|---|---|---|---|---|---|---|---|---|---|---|---|
| CSRNet | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| People-Flows | ❌ | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| S-DCNet | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| SS-DCNet | ✔️ | ❌ | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| GCC-SFCN | ❌ | ❌ | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| CACC | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| SASNet | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| PAL | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| CUT | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| SGANet | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| RankBench | ✔️ | ❌ | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| STCrowd | ❌ | ❌ | ❌ | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| FGCC | ❌ | ❌ | ❌ | ❌ | ❌ | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |
| P2PNet | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| UEPNet | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| FIDTM | ✔️ | ❌ | ✔️ | ❌ | ❌ | ❌ | ❌ | ✔️ | ✔️ | ✔️ | ❌ |
| PML | ✔️ | ❌ | ✔️ | ❌ | ❌ | ❌ | ❌ | ✔️ | ✔️ | ❌ | ❌ |
| AutoScale | ✔️ | ❌ | ✔️ | ❌ | ❌ | ❌ | ❌ | ✔️ | ✔️ | ❌ | ❌ |
| IIM | ✔️ | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ | ✔️ | ✔️ | ❌ | ❌ |
| DPD | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| MSSRGN | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✔️ |
| PMLoss | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Models | ShanghaiTech | UCF-QNRF |
|---|---|---|
| MPCount | ✔️ | ✔️ |
| DCCUS | ✔️ | ❌ |
| BLA | ✔️ | ❌ |
| Models | SDD | IND-TIME | FDST | VSCROWD | JRDB | HT21 | ETHUCY |
|---|---|---|---|---|---|---|---|
| CrowdMAC | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| Models | JHU-Crowd++ |
|---|---|
| AWCC-Net | ✔️ |
| Models | JHU-Crowd++ | NWPU | ShanghaiTech | UCF-QNRF | CARPK | NWPU-MOC | TRANCOS |
|---|---|---|---|---|---|---|---|
| CLTR | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ | ✔️ |
| TransCrowd | ❌ | ❌ | ✔️ | ✔️ | ❌ | ❌ | ❌ |
| PET | ❌ | ❌ | ✔️ | ❌ | ✔️ | ❌ | ❌ |
| NWPU-MOC | ❌ | ❌ | ❌ | ❌ | ❌ | ✔️ | ❌ |
| Models | ShanghaiTech |
|---|---|
| HMoDE | ✔️ |
| Models | ShanghaiTech | UCF-QNRF | Mall |
|---|---|---|---|
| SKT | ✔️ | ✔️ | ❌ |
| LCSD | ❌ | ❌ | ✔️ |
| P2RLoss | ✔️ | ❌ | ❌ |
| Models | UCF-QNRF | Shanghaitech | CARPK | PUCPR |
|---|---|---|---|---|
| UGSDA | ✔️ | ❌ | ❌ | ❌ |
| CODA | ❌ | ✔️ | ❌ | ❌ |
| CBD | ❌ | ❌ | ✔️ | ✔️ |
| Models | UCF-QNRF | JHU-Crowd++ | ShanghaiTech |
|---|---|---|---|
| Gramformer | ✔️ | ✔️ | ❌ |
| GAAL | ❌ | ❌ | ✔️ |
| MDGCN | ❌ | ❌ | ❌ |
| DSGCNet | ❌ | ❌ | ✔️ |
| Models | FDST |
|---|---|
| STGN | ✔️ |
| Models | ShanghaiTech | FSC147 |
|---|---|---|
| OVID | ✔️ | ✔️ |
| Models | VSCrowd | CroHD | FDST | CARLA | MovingDroneCrowd | DroneBird |
|---|---|---|---|---|---|---|
| VSCrowd | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |
| DAANet | ✔️ | ✔️ | ❌ | ✔️ | ❌ | ❌ |
| AVCC | ❌ | ❌ | ✔️ | ❌ | ❌ | ❌ |
| OMAN | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |
| FMDC | ❌ | ✔️ | ❌ | ✔️ | ❌ | ❌ |
| CGNet | ✔️ | ❌ | ❌ | ❌ | ❌ | ❌ |
| DRNet | ✔️ | ✔️ | ❌ | ❌ | ❌ | ❌ |
| MovingDroneCrowd | ❌ | ❌ | ❌ | ❌ | ✔️ | ❌ |
| DroneBird | ❌ | ❌ | ❌ | ❌ | ❌ | ✔️ |
| Models | FSC147 |
|---|---|
| FamNet | ✔️ |
| Models | FruitNeRF | StackCounting |
|---|---|---|
| FruitNeRF | ✔️ | ❌ |
| FruitNeRF++ | ✔️ | ❌ |
| 3DC | ❌ | ✔️ |
If you find our work useful, please cite the following:
@misc{Chi2023,
author = {Chi Tran},
title = {OpenCrowd: An Open Source Implementation of Crowd Counting Methods},
publisher = {GitHub},
booktitle = {GitHub repository},
howpublished = {https://github.com/SKKU-AutoLab-VSW/ETSS-05-CongestionDetection},
year = {2025}
}
If you have any questions, feel free to contact Chi Tran
(ctran743@gmail.com).
Our framework is built using multiple open source, thanks for their great contributions.