Here is the link
Project Page: Here is the web-link
The increasing use of deep neural networks in safety-critical applications requires the trained models to be well-calibrated. Most current calibration techniques address classification problems while focusing on improving calibration on in-domain predictions. Little to no attention is paid towards addressing calibration of visual object detectors which occupy similar space and importance in many decision making systems. In this paper, we study the calibration of current object detection models, particularly under domain shift. To this end, we first introduce a plug-and-play train-time calibration loss for object detection. It can be used as an auxiliary loss function to improve detector's calibration. Second, we devise a new uncertainty quantification mechanism for object detection which can implicitly calibrate the commonly used self-training based domain adaptive detectors.
Reliability diagrams. Top row: DNN-based detector (FCOS) trained using task-specific loss. Bottom row: Ours, trained with adding the proposed TCD loss.
This code is setup on: Linux, CUDA>=10.1, Python>=3.8, PyTorch>=1.4.0, torchvision==0.2.1
Single GPU Quadro RTX 6000
This implementation is based on maskrcnn-benchmark. See original maskrcnn-benchmark.
For complete installation, follow here
For VGG based implementation
To train, run the following command
python tools/train_net.py --config-file ./configs/sim10k_VGG_16_FPN_4x.yaml
To evaluate, run the following command
python tools/test_net.py --config-file <CONFIG_PATH> MODEL.WEIGHT <WEIGHT_PATH>
For Detection Expected Calibration Error evaluation, follow the guidelines here
Visual depiction of calibration results for out-of-domain detections with one-stage detector (left column) and one-stage detector trained with our TCD loss (right column)
Please cite the following, if you find this work useful in your research:
@inproceedings{munir2022towards,
title={Towards Improving Calibration in Object Detection Under Domain Shift},
author={Muhammad Akhtar Munir and Muhammad Haris Khan and M. Saquib Sarfraz and Mohsen Ali},
booktitle={Advances in Neural Information Processing Systems},
year={2022},
}
This codebase implementation is based on FCOS, EPM and Detection Calibration