Giter Site home page Giter Site logo

yangheng111 / ghostnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huawei-noah/efficient-ai-backbones

0.0 1.0 0.0 18.97 MB

[CVPR2020] Surpassing MobileNetV3: "GhostNet: More Features from Cheap Operations"

Home Page: https://arxiv.org/abs/1911.11907

License: Apache License 2.0

Python 100.00%

ghostnet's Introduction

GhostNet

GhostNet: More Features from Cheap Operations. CVPR 2020. [arXiv]

By Kai Han, Yunhe Wang, Qi Tian, Jianyuan Guo, Chunjing Xu, Chang Xu.

  • Approach
  • Performance

GhostNet beats other SOTA lightweight CNNs such as MobileNetV3 and FBNet.

Implementation

This repo provides the TensorFlow code and pretrained model of GhostNet on ImageNet. The PyTorch implementation can be found at https://github.com/iamhankai/ghostnet.pytorch.

myconv2d.py implemented GhostModule and ghost_net.py implemented GhostNet.

Requirements

The code was verified on Python3.6, TensorFlow-1.13.1, Tensorpack-0.9.7. Not sure on other version.

Usage

Run python main.py --eval --data_dir=/path/to/imagenet/dir/ --load=./models/ghostnet_checkpoint to evaluate on val set.

You'll get the accuracy: top-1 error=0.26066, top-5 error=0.08614 with only 141M Flops (or say MAdds).

Data Preparation

ImageNet data dir should have the following structure, and val and caffe_ilsvrc12 subdirs are essential:

dir/
  train/
    ...
  val/
    n01440764/
      ILSVRC2012_val_00000293.JPEG
      ...
    ...
  caffe_ilsvrc12/
    ...

caffe_ilsvrc12 data can be downloaded from http://dl.caffe.berkeleyvision.org/caffe_ilsvrc12.tar.gz

Citation

@inproceedings{ghostnet,
  title={GhostNet: More Features from Cheap Operations},
  author={Han, Kai and Wang, Yunhe and Tian, Qi and Guo, Jianyuan and Xu, Chunjing and Xu, Chang},
  booktitle={CVPR},
  year={2020}
}

Other versions

This repo provides the TensorFlow code of GhostNet. Other versions can be found in the following:

  1. Pytorch: code
  2. Darknet: cfg file, and description
  3. Gluon/Keras/Chainer: code
  4. Pytorch for human pose estimation: code

ghostnet's People

Contributors

iamhankai avatar

Watchers

James Cloos 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.