update scripts
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
# bash scripts-cnn/train-cifar.sh 0 GDAS cifar10 cut
|
||||
if [ "$#" -ne 4 ] ;then
|
||||
# bash scripts-cnn/train-cifar.sh GDAS cifar10 cut
|
||||
if [ "$#" -ne 3 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 4 parameters for the GPUs, the architecture, and the dataset-name, and the cutout"
|
||||
echo "Need 3 parameters for the architecture, and the dataset-name, and the cutout"
|
||||
exit 1
|
||||
fi
|
||||
if [ "$TORCH_HOME" = "" ]; then
|
||||
@@ -12,18 +12,27 @@ else
|
||||
echo "TORCH_HOME : $TORCH_HOME"
|
||||
fi
|
||||
|
||||
gpus=$1
|
||||
arch=$2
|
||||
dataset=$3
|
||||
cutout=$4
|
||||
SAVED=./snapshots/NAS/${arch}-${dataset}-${cutout}-E600
|
||||
#--data_path $TORCH_HOME/cifar.python \
|
||||
arch=$1
|
||||
dataset=$2
|
||||
cutout=$3
|
||||
SAVED=./output/NAS-CNN/${arch}-${dataset}-${cutout}-E600
|
||||
|
||||
CUDA_VISIBLE_DEVICES=${gpus} python ./exps-cnn/train_base.py \
|
||||
--data_path ./data/data/cifar.python \
|
||||
PY_C="./env/bin/python"
|
||||
|
||||
if [ ! -f ${PY_C} ]; then
|
||||
echo "Local Run with Python: "`which python`
|
||||
PY_C="python"
|
||||
else
|
||||
echo "Cluster Run with Python: "${PY_C}
|
||||
fi
|
||||
|
||||
${PY_C} --version
|
||||
|
||||
${PY_C} ./exps-cnn/train_base.py \
|
||||
--data_path $TORCH_HOME/cifar.python \
|
||||
--dataset ${dataset} --arch ${arch} \
|
||||
--save_path ${SAVED} \
|
||||
--grad_clip 5 \
|
||||
--init_channels 36 --layers 20 \
|
||||
--model_config ./configs/nas-cifar-cos-${cutout}.config \
|
||||
--print_freq 100 --workers 8
|
||||
--print_freq 100 --workers 6
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
if [ "$#" -ne 4 ] ;then
|
||||
if [ "$#" -ne 3 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 4 parameters for the GPUs, the architecture, and the channel and the layers"
|
||||
echo "Need 3 parameters for the architecture, and the channel and the layers"
|
||||
exit 1
|
||||
fi
|
||||
if [ "$TORCH_HOME" = "" ]; then
|
||||
@@ -11,14 +11,24 @@ else
|
||||
echo "TORCH_HOME : $TORCH_HOME"
|
||||
fi
|
||||
|
||||
gpus=$1
|
||||
arch=$2
|
||||
arch=$1
|
||||
dataset=imagenet
|
||||
channels=$3
|
||||
layers=$4
|
||||
SAVED=./snapshots/NAS/${arch}-${dataset}-C${channels}-L${layers}-E250
|
||||
channels=$2
|
||||
layers=$3
|
||||
SAVED=./output/NAS-CNN/${arch}-${dataset}-C${channels}-L${layers}-E250
|
||||
|
||||
CUDA_VISIBLE_DEVICES=${gpus} python ./exps-cnn/train_base.py \
|
||||
PY_C="./env/bin/python"
|
||||
|
||||
if [ ! -f ${PY_C} ]; then
|
||||
echo "Local Run with Python: "`which python`
|
||||
PY_C="python"
|
||||
else
|
||||
echo "Cluster Run with Python: "${PY_C}
|
||||
fi
|
||||
|
||||
${PY_C} --version
|
||||
|
||||
${PY_C} ./exps-cnn/train_base.py \
|
||||
--data_path $TORCH_HOME/ILSVRC2012 \
|
||||
--dataset ${dataset} --arch ${arch} \
|
||||
--save_path ${SAVED} \
|
||||
|
Reference in New Issue
Block a user