Giter VIP home page Giter VIP logo

autonl's Introduction

Neural Architecture Search for Lightweight Non-Local Networks

This repository contains the code for CVPR 2020 paper Neural Architecture Search for Lightweight Non-Local Networks. This paper presents a lightweight non-local block and automatically searched state-of-the-art non-local networks for mobile vision. We also provide pytorch implementation here.

If you use the code, please cite:

@inproceedings{li2020neural,
title={Neural Architecture Search for Lightweight Non-local Networks},
author={Li, Yingwei and Jin, Xiaojie and Mei, Jieru and Lian, Xiaochen and Yang, Linjie and Xie, Cihang and Yu, Qihang and Zhou, Yuyin and Bai, Song and Yuille, Alan},
booktitle={CVPR},
year={2020}
}

Requirements

TensorFlow 1.14.0

tensorpack 0.9.8 (for dataset loading)

Model Preparation

Download the AutoNL-L-77.7.zip and AutoNL-S-76.5.zip pretrained models. Unzip and place them at the root directory of the source code.

Usage

Download and place the ImageNet validation set at $PATH_TO_IMAGENET/val.

python eval.py --model_dir=AutoNL-S-76.5 --valdir=$PATH_TO_IMAGENET/val --arch=AutoNL-S-76.5/arch.txt
python eval.py --model_dir=AutoNL-L-77.7 --valdir=$PATH_TO_IMAGENET/val --arch=AutoNL-L-77.7/arch.txt

The last printed line should read:

Test: [50000/50000]     Prec@1 77.7     Prec@5 93.7

for AutoNL-L, and

Test: [50000/50000]     Prec@1 76.5     Prec@5 93.1

for AutoNL-S.

Acknowledgements

Part of code comes from single-path-nas, mnasnet and ImageNet-Adversarial-Training.

If you encounter any problems or have any inquiries, please contact us at [email protected].

autonl's People

Contributors

liyingwei avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.