Home

Awesome

CNAS

Automatic Convolutional Neural Architecture Search for Image Classification under Different Scenes

Our work is based on DARTS

1. Requirements

NOTE: pytorch 0.4.x also work ok, but will meet ConnectionResetError When use the second approximation.

Todo:

2. Usage

pip3 install requirements.txt

Notice

if you use win10, and want to show the cell architecture with graph, you need install the pygraphviz and add $workdir$\\3rd_tools\\graphviz-2.38\\bin into environment path. Here $workdir$ is the custom work directory. such as E:\\workspace\\cnas

How to search:

python train_search.py --num-meta-node 4 --cutout --data '../data/cifar10'

How to evaluate the CNN architecture we searched

CUDA_VISIBLE_DEVICES=1,2  train_cnn.py --cutout  --multi-gpus
python train_cnn.py --cutout  --multi-gpus

Configure details

Notice: num-meta-node, use-sparse and train-portion invalid in evaluate stage and multi-gpus, auxiliary and auxuliary-weight invalid in search stage

3. Our works

figure1