From df2521e623e5a892546931db00f21a3777ce2077 Mon Sep 17 00:00:00 2001 From: D-X-Y <280835372@qq.com> Date: Mon, 25 Oct 2021 10:23:01 -0700 Subject: [PATCH] Fix the script path issues due to code re-org --- scripts-search/GDAS-search-NASNet-space.sh | 38 ------------------- ...e.sh => NASNet-space-search-by-DARTS1V.sh} | 4 +- scripts-search/NASNet-space-search-by-GDAS.sh | 2 +- scripts-search/NASNet-space-search-by-SETN.sh | 2 +- 4 files changed, 4 insertions(+), 42 deletions(-) delete mode 100644 scripts-search/GDAS-search-NASNet-space.sh rename scripts-search/{DARTS1V-search-NASNet-space.sh => NASNet-space-search-by-DARTS1V.sh} (88%) diff --git a/scripts-search/GDAS-search-NASNet-space.sh b/scripts-search/GDAS-search-NASNet-space.sh deleted file mode 100644 index 24130ea..0000000 --- a/scripts-search/GDAS-search-NASNet-space.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# bash ./scripts-search/GDAS-search-NASNet-space.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} diff --git a/scripts-search/DARTS1V-search-NASNet-space.sh b/scripts-search/NASNet-space-search-by-DARTS1V.sh similarity index 88% rename from scripts-search/DARTS1V-search-NASNet-space.sh rename to scripts-search/NASNet-space-search-by-DARTS1V.sh index 359fd13..95c73a5 100644 --- a/scripts-search/DARTS1V-search-NASNet-space.sh +++ b/scripts-search/NASNet-space-search-by-DARTS1V.sh @@ -1,5 +1,5 @@ #!/bin/bash -# bash ./scripts-search/DARTS1V-search-NASNet-space.sh cifar10 -1 +# bash ./scripts-search/NASNet-space-search-by-DARTS1V.sh cifar10 -1 echo script name: $0 echo $# arguments if [ "$#" -ne 2 ] ;then @@ -30,7 +30,7 @@ fi save_dir=./output/search-cell-${space}/DARTS-V1-${dataset}-BN${BN} -OMP_NUM_THREADS=4 python ./exps/algos/DARTS-V1.py \ +OMP_NUM_THREADS=4 python ./exps/NAS-Bench-201-algos/DARTS-V1.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} \ diff --git a/scripts-search/NASNet-space-search-by-GDAS.sh b/scripts-search/NASNet-space-search-by-GDAS.sh index ef79569..1a28bd5 100644 --- a/scripts-search/NASNet-space-search-by-GDAS.sh +++ b/scripts-search/NASNet-space-search-by-GDAS.sh @@ -27,7 +27,7 @@ fi save_dir=./output/search-cell-${space}/GDAS-${dataset}-BN${track_running_stats} -OMP_NUM_THREADS=4 python ./exps/algos/GDAS.py \ +OMP_NUM_THREADS=4 python ./exps/NAS-Bench-201-algos/GDAS.py \ --save_dir ${save_dir} \ --dataset ${dataset} --data_path ${data_path} \ --search_space_name ${space} \ diff --git a/scripts-search/NASNet-space-search-by-SETN.sh b/scripts-search/NASNet-space-search-by-SETN.sh index 40f1193..f99437f 100644 --- a/scripts-search/NASNet-space-search-by-SETN.sh +++ b/scripts-search/NASNet-space-search-by-SETN.sh @@ -28,7 +28,7 @@ fi save_dir=./output/search-cell-${space}/SETN-${dataset}-BN${track_running_stats} -OMP_NUM_THREADS=4 python ./exps/algos/SETN.py \ +OMP_NUM_THREADS=4 python ./exps/NAS-Bench-201-algos/SETN.py \ --save_dir ${save_dir} \ --dataset ${dataset} --data_path ${data_path} \ --search_space_name ${space} \