Giter Site home page Giter Site logo

ens_nas_ood's Introduction

Ens_NAS_OOD

Usage

Start training Ensemble OFA super-net

CUDA_VISIBLE_DEVICES=1 python train_ofa_net.py \
--task 'expand' --phase 2 --ens 2 --lr 0.005 \
--e '0.125,0.25,0.375,0.5,0.625,0.75,0.875,1.0,1.25,1.5,1.75,2.0' \
--save-path 'exp/test'

start evolutionary search

CUDA_VISIBLE_DEVICES=5 python ens_evo_search.py \
--ens 2 --expand_list '0.125,0.25,0.375,0.5,0.625,0.75,0.875,1.0,1.25,1.5,1.75,2.0' \
--pretrained 'exp/0218/ID50_Ens2_cecb_e[0.25~2.0]_w[2]_d[0,1]/checkpoint/model_best.pth.tar'

fine-tune searched sub-net

CUDA_VISIBLE_DEVICES=5 python finetune_cifar.py --manualSeed 1 \
--pretrained 'exp/0218/ID50_Ens2_cecb_e[0.25~2.0]_w[2]_d[0,1]/checkpoint/model_best.pth.tar' \
--beta 0.9999 --gama 1.0 \
--lr 0.1 --train-batch 512 --ens 2 --epochs 300 \
-c "checkpoint/0224/ID56_Searched_subnet2_ft300" 

History

03-13

channel selection(mask method)

imp_est.py

The script is a demo of implementing mask channel selection for ensemble model with weight sharing.

On working :

ofa/imagenet_classification/elastic_nn/modules/dynamic_layers.py & dynamic_op.py
   -DynamicMaskConvLayer()

ofa/imagenet_classification/elastic_nn/networks/ofa_resnets.py
   -OFAMskedResNets18()

ens_nas_ood's People

Contributors

lawsonx 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.