Giter Site home page Giter Site logo

cv-ip / asymmnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spark001/asymmnet

0.0 0.0 0.0 43.37 MB

[CVPRW 2021] AsymmNet: Towards ultralight convolution neural networks using asymmetrical bottlenecks.

License: Apache License 2.0

Python 100.00%

asymmnet's Introduction

AsymmNet

This repo is the official implementation with MXNet/Gluon for:

Video presentation on YouTube:

What's New

  • 2021.08.18 release MXNet trained weight && log.txt && mac.txt
  • 2021.07.06 pytorch version released

Block design

Structure compare

Requirements

  • Python >= 3.6
  • MXNet >= 1.5.1
  • GluonCV >= 0.7.0
  • mxboard >= 0.1.0
  • scipy
  • tqdm
  • portalocker

What is included

├── README.md
├── models
│   ├── asymmnet.py
│   ├── common.py
│   ├── ghostnet.py
│   ├── mobilenetv2.py
│   └── mobilenetv3.py
├── utils
│   ├── args_helper.py
│   ├── utils.py
│   └── visualization.py
└── train.py

How to use

Referred gluoncv_examples_classification

For training ImageNet

  1. First, prepare data recordfile for ImageNet.
  2. Training
export MXNET_SAFE_ACCUMULATION=1 && export MXNET_ENABLE_GPU_P2P=1
python train.py \
    --dataset imagenet \
    --rec-train /path/to/train.rec \
    --rec-train-idx /path/to/train.idx \
    --rec-val /path/to/val.rec \
    --rec-val-idx /path/to/val.idx \
    --batch-size 256 --model asymmnet_large \
    --mode hybrid --wd 0.00003 \
    --lr 2.6 --lr-mode cosine --num-epochs 360 --num-gpus 8 -j 48 \
    --warmup-epochs 5  --no-wd --last-gamma \
    --label-smoothing --width-scale 1.0 \
    --dtype float16 --dropout 0.1 \
    --tag-name 1.0x-fp16-8gpu-lr2.6-360e-drop0.1 \
    --log-interval 100

Citation

@article{yang2021asymmnet,
  title={AsymmNet: Towards ultralight convolution neural networks using asymmetrical bottlenecks},
  author={Yang, Haojin and Shen, Zhen and Zhao, Yucheng},
  journal={arXiv preprint arXiv:2104.07770},
  year={2021}
}

Reference

asymmnet's People

Contributors

spark001 avatar yanghaojin 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.