autodl-projects/scripts-cnn/DMS-V-TrainV3.sh

32 lines
985 B
Bash
Raw Normal View History

2019-01-31 15:27:38 +01:00
#!/usr/bin/env sh
2019-02-01 07:17:02 +01:00
# bash scripts-cnn/DMS-V-TrainV3.sh 1
if [ "$#" -ne 1 ] ;then
2019-01-31 15:27:38 +01:00
echo "Input illegal number of parameters " $#
2019-02-01 07:17:02 +01:00
echo "Need 1 parameters for the GPUs and the epochs"
2019-01-31 15:27:38 +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
gpus=$1
arch=acc2
cutout=0
dataset=cifar10
2019-02-01 07:17:02 +01:00
epoch=200
2019-01-31 15:27:38 +01:00
SAVED=./snapshots/NAS/ACC-V3-Search-${arch}-${dataset}-cut${cutout}-${epoch}-E600
2019-02-01 07:17:02 +01:00
CUDA_VISIBLE_DEVICES=${gpus} python ./exps-cnn/GDAS-Search.py \
2019-01-31 15:27:38 +01:00
--data_path $TORCH_HOME/cifar.python \
--arch ${arch} --dataset ${dataset} --batch_size 128 \
--save_path ${SAVED} \
--learning_rate_max 0.01 --learning_rate_min 0.001 --momentum 0.9 --weight_decay 0.0003 \
--epochs ${epoch} --cutout ${cutout} --validate --grad_clip 5 \
--init_channels 16 --layers 8 \
--tau_max 10 --tau_min 1 \
2019-02-01 07:17:02 +01:00
--model_config ./configs/nas-cifar-cos-cut.config \
--print_freq 100 --workers 10