update NAS-Bench
This commit is contained in:
38
scripts-search/NASNet-space-search-by-GDAS.sh
Normal file
38
scripts-search/NASNet-space-search-by-GDAS.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
# bash ./scripts-search/NASNet-space-search-by-GDAS.sh cifar10 1 -1
|
||||
echo script name: $0
|
||||
echo $# arguments
|
||||
if [ "$#" -ne 3 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 3 parameters for dataset, track_running_stats, and seed"
|
||||
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
|
||||
track_running_stats=$2
|
||||
seed=$3
|
||||
space=darts
|
||||
|
||||
if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then
|
||||
data_path="$TORCH_HOME/cifar.python"
|
||||
else
|
||||
data_path="$TORCH_HOME/cifar.python/ImageNet16"
|
||||
fi
|
||||
|
||||
save_dir=./output/search-cell-${space}/GDAS-${dataset}-BN${track_running_stats}
|
||||
|
||||
OMP_NUM_THREADS=4 python ./exps/algos/GDAS.py \
|
||||
--save_dir ${save_dir} \
|
||||
--dataset ${dataset} --data_path ${data_path} \
|
||||
--search_space_name ${space} \
|
||||
--config_path configs/search-opts/GDAS-NASNet-CIFAR.config \
|
||||
--model_config configs/search-archs/GDAS-NASNet-CIFAR.config \
|
||||
--tau_max 10 --tau_min 0.1 --track_running_stats ${track_running_stats} \
|
||||
--arch_learning_rate 0.0003 --arch_weight_decay 0.001 \
|
||||
--workers 4 --print_freq 200 --rand_seed ${seed}
|
40
scripts-search/NASNet-space-search-by-SETN.sh
Normal file
40
scripts-search/NASNet-space-search-by-SETN.sh
Normal file
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
# bash ./scripts-search/NASNet-space-search-by-SETN.sh cifar10 1 -1
|
||||
# [TO BE DONE]
|
||||
echo script name: $0
|
||||
echo $# arguments
|
||||
if [ "$#" -ne 3 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 3 parameters for dataset, track_running_stats, and seed"
|
||||
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
|
||||
track_running_stats=$2
|
||||
seed=$3
|
||||
space=darts
|
||||
|
||||
if [ "$dataset" == "cifar10" ] || [ "$dataset" == "cifar100" ]; then
|
||||
data_path="$TORCH_HOME/cifar.python"
|
||||
else
|
||||
data_path="$TORCH_HOME/cifar.python/ImageNet16"
|
||||
fi
|
||||
|
||||
save_dir=./output/search-cell-${space}/SETN-${dataset}-BN${track_running_stats}
|
||||
|
||||
OMP_NUM_THREADS=4 python ./exps/algos/SETN.py \
|
||||
--save_dir ${save_dir} \
|
||||
--dataset ${dataset} --data_path ${data_path} \
|
||||
--search_space_name ${space} \
|
||||
--config_path configs/search-opts/SETN-NASNet-CIFAR.config \
|
||||
--model_config configs/search-archs/SETN-NASNet-CIFAR.config \
|
||||
--track_running_stats ${track_running_stats} \
|
||||
--select_num 1000 \
|
||||
--arch_learning_rate 0.0003 --arch_weight_decay 0.001 \
|
||||
--workers 4 --print_freq 200 --rand_seed ${seed}
|
44
scripts-search/X-X/train-shapes.sh
Normal file
44
scripts-search/X-X/train-shapes.sh
Normal file
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
#####################################################
|
||||
# Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2020.01 #
|
||||
#####################################################
|
||||
# [mars6] CUDA_VISIBLE_DEVICES=0 bash ./scripts-search/X-X/train-shapes.sh 00000-05000 12 777
|
||||
# [mars6] bash ./scripts-search/X-X/train-shapes.sh 05001-10000 12 777
|
||||
# [mars20] bash ./scripts-search/X-X/train-shapes.sh 10001-14500 12 777
|
||||
# [mars20] bash ./scripts-search/X-X/train-shapes.sh 14501-19500 12 777
|
||||
# bash ./scripts-search/X-X/train-shapes.sh 19501-23500 12 777
|
||||
# bash ./scripts-search/X-X/train-shapes.sh 23501-27500 12 777
|
||||
# bash ./scripts-search/X-X/train-shapes.sh 27501-30000 12 777
|
||||
# bash ./scripts-search/X-X/train-shapes.sh 30001-32767 12 777
|
||||
#
|
||||
echo script name: $0
|
||||
echo $# arguments
|
||||
if [ "$#" -ne 3 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 3 parameters for start-and-end, hyper-parameters-opt-file, and seeds"
|
||||
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
|
||||
|
||||
srange=$1
|
||||
opt=$2
|
||||
all_seeds=$3
|
||||
cpus=4
|
||||
|
||||
save_dir=./output/NAS-BENCH-202/
|
||||
|
||||
OMP_NUM_THREADS=${cpus} python exps/NAS-Bench-201/xshapes.py \
|
||||
--mode new --srange ${srange} --hyper ${opt} --save_dir ${save_dir} \
|
||||
--datasets cifar10 cifar10 cifar100 ImageNet16-120 \
|
||||
--splits 1 0 0 0 \
|
||||
--xpaths $TORCH_HOME/cifar.python \
|
||||
$TORCH_HOME/cifar.python \
|
||||
$TORCH_HOME/cifar.python \
|
||||
$TORCH_HOME/cifar.python/ImageNet16 \
|
||||
--workers ${cpus} \
|
||||
--seeds ${all_seeds}
|
Reference in New Issue
Block a user