Need help with NAS-FCOS?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

169 Stars 32 Forks BSD 2-Clause "Simplified" License 12 Commits 4 Opened issues


NAS-FCOS: Fast Neural Architecture Search for Object Detection (CVPR 2020)

Services available


Need anything else?

Contributors list

# 217,424
11 commits
# 427,448
1 commit

NAS-FCOS: Fast Neural Architecture Search for Object Detection

This project hosts the train and inference code with pretrained model for implementing the NAS-FCOS algorithm for object detection, as presented in our paper:

NAS-FCOS: Fast Neural Architecture Search for Object Detection;
Ning Wang, Yang Gao, Hao Chen, Peng Wang, Zhi Tian, Chunhua Shen;
In: Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2020.

The full paper is available at: NAS-FCOS Paper.


  • News: Accepted by CVPR 2020. (24/02/2020)
  • Upload solver module to support self training. (06/02/2020)
  • Support RetinaNet detector in NAS module (pretrained model coming soon). (06/02/2020)
  • Update NAS head module, config files and pretrained model links. (07/01/2020)

Required hardware

We use 4 Nvidia V100 GPUs.


This NAS-FCOS implementation is based on maskrcnn-benchmark. Therefore the installation is the same as original maskrcnn-benchmark.

Please check for installation instructions. You may also want to see the original of maskrcnn-benchmark.


The train command line on coco train:

python -m torch.distributed.launch \
    --nproc_per_node=4 \
    --master_port=1213 \
    tools/ --config-file "configs/search/R_50_NAS_retinanet.yaml"


The inference command line on coco minival split:

python -m torch.distributed.launch \
    --nproc_per_node=1 \
    tools/ --config-file "configs/search/R_50_NAS_densebox.yaml"

Please note that: 1) If your model's name is different, please replace

with your own. 2) If you enounter out-of-memory error, please try to reduce
to 1. 3) If you want to evaluate a different model, please change
to its config file (in configs/search) and
to its weights file.

For your convenience, we provide the following trained models (more models are coming soon).


Multi-scale training AP (minival) AP (test-dev) Link Fetch Code
MobileNAS No 32.6 33.1 download 3dm9
MobileNAShead No 34.4 34.7 download -
R50NAS No 38.5 38.9 download f88u
R50NAShead No 39.5 39.8 download -
R101NAS Yes 42.1 42.5 download euuz
R101NAShead Yes 42.8 43.0 download -
R101X32x8d_NAS Yes 43.4 43.7 download 4cci

Attention: If the above model link cannot be downloaded normally, please refer to the link below. Mobile_NAS, MobileNAShead, R50NAS, R50NAS_head, R101NAS, R101NAS_head R101X32x8dNAS

All results are obtained with a single model and without any test time data augmentation such as multi-scale, flipping and etc..

Contributing to the project

Any pull requests or issues are welcome.


Please consider citing our paper in your publications if the project helps your research. BibTeX reference is as follows.

    author = {Wang, Ning and Gao, Yang and Chen, Hao and Wang, Peng and Tian, Zhi and Shen, Chunhua and Zhang, Yanning},
    title = {NAS-FCOS: Fast Neural Architecture Search for Object Detection},
    booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
    month = {June},
    year = {2020}


For academic use, this project is licensed under the 2-clause BSD License - see the LICENSE file for details. For commercial use, please contact the authors.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.