Upgrade NAS-Bench-201 to APIv1.3/FILEv1.1
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
# bash ./scripts-search/algos/BOHB.sh -1
|
||||
echo script name: $0
|
||||
echo $# arguments
|
||||
if [ "$#" -ne 1 ] ;then
|
||||
if [ "$#" -ne 2 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 1 parameters for seed"
|
||||
echo "Need 2 parameters for dataset and seed"
|
||||
exit 1
|
||||
fi
|
||||
if [ "$TORCH_HOME" = "" ]; then
|
||||
@@ -14,12 +14,14 @@ else
|
||||
echo "TORCH_HOME : $TORCH_HOME"
|
||||
fi
|
||||
|
||||
dataset=cifar10
|
||||
seed=$1
|
||||
dataset=$1
|
||||
seed=$2
|
||||
channel=16
|
||||
num_cells=5
|
||||
max_nodes=4
|
||||
space=nas-bench-201
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/BOHB-${dataset}
|
||||
|
||||
@@ -27,7 +29,7 @@ OMP_NUM_THREADS=4 python ./exps/algos/BOHB.py \
|
||||
--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \
|
||||
--dataset ${dataset} \
|
||||
--search_space_name ${space} \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--time_budget 12000 \
|
||||
--n_iters 50 --num_samples 4 --random_fraction 0.0 --bandwidth_factor 3 \
|
||||
--workers 4 --print_freq 200 --rand_seed ${seed}
|
||||
|
@@ -27,6 +27,8 @@ if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then
|
||||
else
|
||||
data_path="$TORCH_HOME/cifar.python/ImageNet16"
|
||||
fi
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/DARTS-V1-${dataset}-BN${BN}
|
||||
|
||||
@@ -35,7 +37,7 @@ OMP_NUM_THREADS=4 python ./exps/algos/DARTS-V1.py \
|
||||
--dataset ${dataset} --data_path ${data_path} \
|
||||
--search_space_name ${space} \
|
||||
--config_path configs/nas-benchmark/algos/DARTS.config \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--track_running_stats ${BN} \
|
||||
--arch_learning_rate 0.0003 --arch_weight_decay 0.001 \
|
||||
--workers 4 --print_freq 200 --rand_seed ${seed}
|
||||
|
@@ -27,6 +27,8 @@ if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then
|
||||
else
|
||||
data_path="$TORCH_HOME/cifar.python/ImageNet16"
|
||||
fi
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/DARTS-V2-${dataset}-BN${BN}
|
||||
|
||||
@@ -35,7 +37,7 @@ OMP_NUM_THREADS=4 python ./exps/algos/DARTS-V2.py \
|
||||
--dataset ${dataset} --data_path ${data_path} \
|
||||
--search_space_name ${space} \
|
||||
--config_path configs/nas-benchmark/algos/DARTS.config \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--track_running_stats ${BN} \
|
||||
--arch_learning_rate 0.0003 --arch_weight_decay 0.001 \
|
||||
--workers 4 --print_freq 200 --rand_seed ${seed}
|
||||
|
@@ -28,6 +28,8 @@ if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then
|
||||
else
|
||||
data_path="$TORCH_HOME/cifar.python/ImageNet16"
|
||||
fi
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/ENAS-${dataset}-BN${BN}
|
||||
|
||||
@@ -35,7 +37,7 @@ OMP_NUM_THREADS=4 python ./exps/algos/ENAS.py \
|
||||
--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \
|
||||
--dataset ${dataset} --data_path ${data_path} \
|
||||
--search_space_name ${space} \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--track_running_stats ${BN} \
|
||||
--config_path ./configs/nas-benchmark/algos/ENAS.config \
|
||||
--controller_entropy_weight 0.0001 \
|
||||
|
@@ -27,6 +27,8 @@ if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then
|
||||
else
|
||||
data_path="$TORCH_HOME/cifar.python/ImageNet16"
|
||||
fi
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/GDAS-${dataset}-BN${BN}
|
||||
|
||||
@@ -34,7 +36,7 @@ OMP_NUM_THREADS=4 python ./exps/algos/GDAS.py \
|
||||
--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \
|
||||
--dataset ${dataset} --data_path ${data_path} \
|
||||
--search_space_name ${space} \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--config_path configs/nas-benchmark/algos/GDAS.config \
|
||||
--tau_max 10 --tau_min 0.1 --track_running_stats ${BN} \
|
||||
--arch_learning_rate 0.0003 --arch_weight_decay 0.001 \
|
||||
|
@@ -23,6 +23,8 @@ channel=16
|
||||
num_cells=5
|
||||
max_nodes=4
|
||||
space=nas-bench-201
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/R-EA-${dataset}-SS${sample_size}
|
||||
|
||||
@@ -30,7 +32,7 @@ OMP_NUM_THREADS=4 python ./exps/algos/R_EA.py \
|
||||
--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \
|
||||
--dataset ${dataset} \
|
||||
--search_space_name ${space} \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--time_budget 12000 \
|
||||
--ea_cycles 200 --ea_population 10 --ea_sample_size ${sample_size} --ea_fast_by_api 1 \
|
||||
--workers 4 --print_freq 200 --rand_seed ${seed}
|
||||
|
@@ -28,6 +28,8 @@ if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then
|
||||
else
|
||||
data_path="$TORCH_HOME/cifar.python/ImageNet16"
|
||||
fi
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/RANDOM-NAS-${dataset}-BN${BN}
|
||||
|
||||
@@ -36,7 +38,7 @@ OMP_NUM_THREADS=4 python ./exps/algos/RANDOM-NAS.py \
|
||||
--dataset ${dataset} --data_path ${data_path} \
|
||||
--search_space_name ${space} \
|
||||
--track_running_stats ${BN} \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--config_path ./configs/nas-benchmark/algos/RANDOM.config \
|
||||
--select_num 100 \
|
||||
--workers 4 --print_freq 200 --rand_seed ${seed}
|
||||
|
@@ -2,9 +2,9 @@
|
||||
# bash ./scripts-search/algos/REINFORCE.sh 0.001 -1
|
||||
echo script name: $0
|
||||
echo $# arguments
|
||||
if [ "$#" -ne 2 ] ;then
|
||||
if [ "$#" -ne 3 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 2 parameters for LR and seed"
|
||||
echo "Need 3 parameters for dataset, LR, and seed"
|
||||
exit 1
|
||||
fi
|
||||
if [ "$TORCH_HOME" = "" ]; then
|
||||
@@ -14,13 +14,15 @@ else
|
||||
echo "TORCH_HOME : $TORCH_HOME"
|
||||
fi
|
||||
|
||||
dataset=cifar10
|
||||
LR=$1
|
||||
seed=$2
|
||||
dataset=$1
|
||||
LR=$2
|
||||
seed=$3
|
||||
channel=16
|
||||
num_cells=5
|
||||
max_nodes=4
|
||||
space=nas-bench-201
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/REINFORCE-${dataset}-${LR}
|
||||
|
||||
@@ -28,7 +30,7 @@ OMP_NUM_THREADS=4 python ./exps/algos/reinforce.py \
|
||||
--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \
|
||||
--dataset ${dataset} \
|
||||
--search_space_name ${space} \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--time_budget 12000 \
|
||||
--learning_rate ${LR} --EMA_momentum 0.9 \
|
||||
--workers 4 --print_freq 200 --rand_seed ${seed}
|
||||
|
@@ -2,9 +2,9 @@
|
||||
# bash ./scripts-search/algos/Random.sh -1
|
||||
echo script name: $0
|
||||
echo $# arguments
|
||||
if [ "$#" -ne 1 ] ;then
|
||||
if [ "$#" -ne 2 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 1 parameters for seed"
|
||||
echo "Need 2 parameters for dataset and seed"
|
||||
exit 1
|
||||
fi
|
||||
if [ "$TORCH_HOME" = "" ]; then
|
||||
@@ -14,12 +14,14 @@ else
|
||||
echo "TORCH_HOME : $TORCH_HOME"
|
||||
fi
|
||||
|
||||
dataset=cifar10
|
||||
seed=$1
|
||||
dataset=$1
|
||||
seed=$2
|
||||
channel=16
|
||||
num_cells=5
|
||||
max_nodes=4
|
||||
space=nas-bench-201
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/RAND-${dataset}
|
||||
|
||||
@@ -27,7 +29,6 @@ OMP_NUM_THREADS=4 python ./exps/algos/RANDOM.py \
|
||||
--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \
|
||||
--dataset ${dataset} \
|
||||
--search_space_name ${space} \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--time_budget 12000 \
|
||||
--workers 4 --print_freq 200 --rand_seed ${seed}
|
||||
# --random_num 100 \
|
||||
|
@@ -28,6 +28,8 @@ if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then
|
||||
else
|
||||
data_path="$TORCH_HOME/cifar.python/ImageNet16"
|
||||
fi
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/SETN-${dataset}-BN${BN}
|
||||
|
||||
@@ -35,7 +37,7 @@ OMP_NUM_THREADS=4 python ./exps/algos/SETN.py \
|
||||
--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \
|
||||
--dataset ${dataset} --data_path ${data_path} \
|
||||
--search_space_name ${space} \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--config_path configs/nas-benchmark/algos/SETN.config \
|
||||
--track_running_stats ${BN} \
|
||||
--arch_learning_rate 0.0003 --arch_weight_decay 0.001 \
|
||||
|
@@ -28,6 +28,8 @@ if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then
|
||||
else
|
||||
data_path="$TORCH_HOME/cifar.python/ImageNet16"
|
||||
fi
|
||||
#benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth
|
||||
benchmark_file=${TORCH_HOME}/NAS-Bench-201-v1_1-096897.pth
|
||||
|
||||
save_dir=./output/search-cell-${space}/DARTS-V1-${dataset}-BN${BN}-Gradient${gradient_clip}
|
||||
|
||||
@@ -36,7 +38,7 @@ OMP_NUM_THREADS=4 python ./exps/algos/DARTS-V1.py \
|
||||
--dataset ${dataset} --data_path ${data_path} \
|
||||
--search_space_name ${space} \
|
||||
--config_path configs/nas-benchmark/algos/DARTS.config \
|
||||
--arch_nas_dataset ${TORCH_HOME}/NAS-Bench-201-v1_0-e61699.pth \
|
||||
--arch_nas_dataset ${benchmark_file} \
|
||||
--track_running_stats ${BN} --gradient_clip ${gradient_clip} \
|
||||
--arch_learning_rate 0.0003 --arch_weight_decay 0.001 \
|
||||
--workers 4 --print_freq 200 --rand_seed ${seed}
|
Reference in New Issue
Block a user