

## Installation

Please refer to [mmdetection](https://github.com/open-mmlab/mmdetection/blob/master/docs/get_started.md) for installation.
 
  1. Install [mmcv](https://github.com/open-mmlab/mmcv). (mmcv-full==1.2.6 and 1.3.3 was tested)
  2. Install build requirements and then install mmdet.
       ```
       pip install -r requirements/build.txt
       pip install -v -e .  # or "python setup.py develop"
       ```

## Data preparation

### WIDERFace:
  1. Download WIDERFace datasets and annotations, and put it under `data/retinaface`.
 
 
   ```
     data/retinaface/
         train/
             images/
             labelv2.txt
         val/
             images/
             labelv2.txt
             gt/
                 *.mat
             
   ```
 
## Search configs generation examples

 1. Use search_tools/generate_configs_2.5g.py to do CR on 2.5GF.
 2. Use search_tools/generate_scales_2.5g.py to do SR on 2.5GF.

## SCRFD result configs

 There're baselines(resnet/mobilenet), CRFD and SCRFD model configs under configs/scrfd/.

## Training

 Same as mmdet, see train_8gpu.sh
