ShunLu91/Single-Path-One-Shot-NAS
소개
SPOS(Single Path One-Shot Neural Architecture Search with Uniform Sampling) rebuilt in Pytorch with single GPU.
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSingle-Path-One-Shot-NAS
This repo provides a Pytorch-based implementation of SPOS(Single Path One-Shot Neural Architecture Search with Uniform
Sampling) by Zichao Guo, and et. al.

It only contains 'Block Search' for reference. It's very time consuming to train this supernet on ImageNet, which makes it impossible for me to finish the experiment under limited resources. Therefore, I mainly focused on CIFAR-10.
Great thanks to Zichao Guo for his advice on some details. Nevertheless, some differences may still exists when compared with the official version such as data preprocessing and some other hyper parameters.
Environments
Python==3.7.10, Pytorch==1.7.1, CUDA==10.2, cuDNN==7.6.5
Dataset
CIFAR-10 can be automatically downloaded using this code. ImageNet needs to be manually downloaded and here are some instructions.
Usage
- Train a supernet on the CIFAR-10 dataset by simply running:
bash scripts/train_supernet.sh
- My pretrained supernet can be downloaded from this link.
- For convenience, I conduct random search by enumerating 1,000 paths to select the best:
bash scripts/random_search.sh
- During my search, the best path is
[1, 0, 3, 1, 3, 0, 3, 0, 0, 3, 3, 0, 1, 0, 1, 2, 2, 1, 1, 3]. - In the original SPOS paper, they adopted the evolutionary algorithm to search architectures. Please refer to their official repo for more details.
- Use the best searched path to modify the "choice" defined in Line 116 of retrain_best_choice.py and re-train the corresponding architecture of this path:
bash scripts/retrain_best_choice.py
- After retraining, the best test accuracy of this searched architecture is
93.31. The checkpoint is provided here.
- As I fix all seeds in the above procedures, same results should be achieved. You can check my logs in the
logdir.
Reference
[1] Single Path One-Shot Neural Architecture Search with Uniform Sampling
[2] Differentiable architecture search for convolutional and recurrent networks
관련 프로젝트 살펴보기
불러오는 중…