This page provides basic tutorials about the usage of MMDetection with SCL.
Current code is develop on mmdetection@618dca08.
- Install
mmdet
according to this doc, and runpython setup.py develop
in our repository. - Prepare datasets according to this.
- Create a directory
checkpoints/
in this folder and download pretrained models R-50-C4 caffe 1x and X-101-32x4d-FPN pytorch 1x tocheckpoints/
.
./tools/dist_train.sh ${CONFIG_FILE} ${GPU_NUM} [optional arguments]
More specifically, R-50-C4 can be trained with this command:
./tools/dist_train.sh configs/scl/mask_rcnn_r50_caffe_c4_1x.py 4 --validate
And X-101-32x4d-FPN can be trained with this command:
./tools/dist_train.sh configs/scl/mask_rcnn_x101_32x4d_fpn_1x.py 4 --validate
- Current code isn't compatible with basic models, so training base models (e.g. R-50-C4 without SCL) with this code is not feasible.
- We trained with 4 GPUs and other configuration hasn't been tried.
- Evaluating is similar to the above operations.
Feel free to open an issue if you encounter troubles.
If you use this codebase in your research, please cite our paper:
@InProceedings{Zhou_2020_CVPR,
author = {Zhou, Mohan and Bai, Yalong and Zhang, Wei and Zhao, Tiejun and Mei, Tao},
title = {Look-Into-Object: Self-Supervised Structure Modeling for Object Recognition},
booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2020}
}