ipython /
ipython
Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
Loading repository data…
Shimmer93 / repository
Official repo for CVPR2024 paper "Single Domain Generalization for Crowd Counting"
This is an official repository for our CVPR2024 work, "Single Domain Generalization for Crowd Counting". You can read our paper here.
python utils/preprocess_data.py --dataset sta --origin-dir [path_to_ShanghaiTech]/part_A --data-dir data/sta
python utils/preprocess_data.py --dataset stb --origin-dir [path_to_ShanghaiTech]/part_B --data-dir data/stb
python utils/preprocess_data.py --dataset qnrf --origin-dir [path_to_UCF-QNRF] --data-dir data/qnrf
python utils/dmap_gen.py --path data/sta
python utils/dmap_gen.py --path data/stb
python utils/dmap_gen.py --path data/qnrf
Run the following command:
python main.py --task train --config configs/sta_train.yml
You may edit the .yml config file as you like.
Run the following commands after you specify the path to the model weight in the config file:
python main.py --task test --config configs/sta_test_stb.yml
python main.py --task test --config configs/sta_test_qnrf.yml
Run the following command:
python inference.py --img_path [path_to_img_file_or_directory] --model_path [path_to_model_weight] --save_path output.txt --vis_dir vis
We provide pretrained weights that produce the results in our original paper in the table below. Note that due to the use of non-deterministic torch.nn.functional.interpolate, the results are not reproducible by training from scratch.
| Source | Performance | Weights |
|---|---|---|
| A | B: 11.4MAE, 19.7MSEQ: 115.7MAE, 199.8MSE | OneDriveGoogle Drive |
| B | A: 99.6MAE, 182.9MSEQ: 165.6MAE, 290.4MSE | OneDriveGoogle Drive |
| Q | A: 65.5MAE, 110.1MSEB: 12.3MAE, 24.1MSE |
To make the results fully reproducible, we implement a new version of MPCount which does not use torch.nn.functional.interpolate. We will release more results and weights soon.
| Source | Performance | Weights |
|---|---|---|
| A | B: 11.2MAE, 20.0MSEQ: 112.8MAE, 193.8MSE | OneDriveGoogle Drive |
If you find this work helpful in your research, please cite the following:
@inproceedings{pengMPCount2024,
title = {Single Domain Generalization for Crowd Counting},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR 2024)},
author = {Peng, Zhuoxuan and Chan, S.-H. Gary},
year = {2024}
}
Selected from shared topics, language and repository description—not editorial ratings.
ipython /
Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
bytedance /
The official repo for “Dolphin: Document Image Parsing via Heterogeneous Anchor Prompting”, ACL, 2025.
s3tools /
Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront).
urwid /
Console user interface library for Python (official repo)
cdk-patterns /
This is intended to be a repo containing all of the official AWS Serverless architecture patterns built with CDK for developers to use. All patterns come in Typescript and Python with the exported CloudFormation also included.
ashishpatel26 /
💁 Awesome Treasure of Transformers Models for Natural Language processing contains papers, videos, blogs, official repo along with colab Notebooks. 🛫☑️