Giter VIP home page Giter VIP logo

adaxpert0's Introduction

AdaXpert: Adapting Neural Architecture for Growing Data

The PyTorch implementation of ICML 2021 paper "AdaXpert: Adapting Neural Architecture for Growing Data".

AdaXpert

The code will be coming soon.

Requirements and Install

python >= 3.6, pytorch >= 1.3.0, torchvision>=0.4.0

pip install -r requirements.txt

Training method (for supernet)

Train a supernet first, and then perform search based on the trained supernet. The training method of supernet follows SPOS [paper].

CUDA_VISIBLE_DEVICES=0,1 horovodrun -np 2 -H localhost:2 python3 adaxpert/train_spos_supernet.py

If only a single GPU is available:

CUDA_VISIBLE_DEVICES=0 horovodrun -np 1 -H localhost:1 python3 adaxpert/train_spos_supernet.py

Training method (for search)

Train in the Mobile block search space,

python3 adaxpert/train_mb_spos.py --dataset_class_num 100 --dataset_ratio 1.0 --supernet_path "/path/to/trained-supernet"

Evaluation method

Evaluate the adaxpert models. Well-trained adaxpert models are available in folders "/models".

python3 adaxpert/eval_mb_specnet.py --eval_model "adaxpert-100" --pretrained_submodel_path "/path/to/pre-trained model"

Results on two data growing scenarios

The data volume is growing while the label space remains the same:

s1

The label space is growing:

s2

Citation

If you use any part of our code in your research, please cite our paper:

@InProceedings{niu2021adaxpert,
  title = {AdaXpert: Adapting Neural Architecture for Growing Data},
  author = {Shuaicheng Niu and Jiaxiang Wu and Guanghui Xu and Yifan Zhang and Yong Guo and Peilin Zhao and Peng Wang and Mingkui Tan},
  booktitle = {The Internetional Conference on Machine Learning},
  year = {2021}
}

Acknowledgment

The code is greatly inspired by the OFA and SPOS.

adaxpert0's People

Contributors

mr-eggplant avatar

Watchers

 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.