xautodl/scripts-search/NAS-Bench-201-algos/Random.sh

35 lines
973 B
Bash
Raw Permalink Normal View History

2019-11-14 03:55:42 +01:00
#!/bin/bash
2021-06-03 10:32:00 +02:00
# bash ./scripts-search/NAS-Bench-201-algos/Random.sh -1
2019-11-14 03:55:42 +01:00
echo script name: $0
echo $# arguments
if [ "$#" -ne 2 ] ;then
2019-11-14 03:55:42 +01:00
echo "Input illegal number of parameters " $#
echo "Need 2 parameters for dataset and seed"
2019-11-14 03:55:42 +01:00
exit 1
fi
if [ "$TORCH_HOME" = "" ]; then
echo "Must set TORCH_HOME envoriment variable for data dir saving"
exit 1
else
echo "TORCH_HOME : $TORCH_HOME"
fi
dataset=$1
seed=$2
2019-11-14 03:55:42 +01:00
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
2019-11-14 03:55:42 +01:00
2019-12-23 11:29:03 +01:00
save_dir=./output/search-cell-${space}/RAND-${dataset}
2019-11-14 03:55:42 +01:00
2021-06-03 10:32:00 +02:00
OMP_NUM_THREADS=4 python ./exps/NAS-Bench-201-algos/RANDOM.py \
2019-11-14 03:55:42 +01:00
--save_dir ${save_dir} --max_nodes ${max_nodes} --channel ${channel} --num_cells ${num_cells} \
2019-12-31 12:02:11 +01:00
--dataset ${dataset} \
2019-12-23 11:29:03 +01:00
--search_space_name ${space} \
--arch_nas_dataset ${benchmark_file} \
2019-12-24 07:36:47 +01:00
--time_budget 12000 \
2019-11-14 03:55:42 +01:00
--workers 4 --print_freq 200 --rand_seed ${seed}