update
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
# bash scripts-cnn/DMS-V-TrainV3.sh 1
|
||||
if [ "$#" -ne 1 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 1 parameters for the GPUs and the epochs"
|
||||
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
|
||||
epoch=200
|
||||
SAVED=./snapshots/NAS/ACC-V3-Search-${arch}-${dataset}-cut${cutout}-${epoch}-E600
|
||||
|
||||
CUDA_VISIBLE_DEVICES=${gpus} python ./exps-cnn/GDAS-Search.py \
|
||||
--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 \
|
||||
--model_config ./configs/nas-cifar-cos-cut.config \
|
||||
--print_freq 100 --workers 10
|
@@ -1,29 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
if [ "$#" -ne 2 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 2 parameters for the GPUs and the network"
|
||||
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=$2
|
||||
cutout=0
|
||||
dataset=cifar10
|
||||
epoch=200
|
||||
SAVED=./snapshots/NAS/ACC-V2-Search-${arch}-${dataset}-cut${cutout}-${epoch}-E600
|
||||
|
||||
CUDA_VISIBLE_DEVICES=${gpus} python ./exps-cnn/GDAS-Search.py \
|
||||
--data_path $TORCH_HOME/cifar.python \
|
||||
--arch ${arch} --dataset ${dataset} --batch_size 128 \
|
||||
--save_path ${SAVED} \
|
||||
--learning_rate_max 0.025 --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 \
|
||||
--model_config ./configs/nas-cifar-cos-cut.config \
|
||||
--print_freq 100 --workers 10
|
@@ -1,44 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
if [ "$#" -ne 3 ] ;then
|
||||
echo "Input illegal number of parameters " $#
|
||||
echo "Need 3 parameters for the GPUs and the network and the dataset"
|
||||
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=$2
|
||||
cutout=0
|
||||
dataset=$3
|
||||
epoch=50
|
||||
SAVED=./snapshots/NAS/Search-${arch}-${dataset}-cut${cutout}-${epoch}
|
||||
|
||||
if [ "$dataset" == "cifar10" ] ;then
|
||||
dataset_root=$TORCH_HOME/cifar.python
|
||||
print_freq=100
|
||||
elif [ "$dataset" == "cifar100" ] ;then
|
||||
dataset_root=$TORCH_HOME/cifar.python
|
||||
print_freq=100
|
||||
elif [ "$dataset" == "tiered" ] ;then
|
||||
dataset_root=$TORCH_HOME/tiered-imagenet
|
||||
print_freq=500
|
||||
else
|
||||
echo 'invalid dataset-name :'${dataset}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CUDA_VISIBLE_DEVICES=${gpus} python ./exps-cnn/DARTS-Search.py \
|
||||
--data_path ${dataset_root} \
|
||||
--arch ${arch} \
|
||||
--dataset ${dataset} --batch_size 64 \
|
||||
--save_path ${SAVED} \
|
||||
--learning_rate_max 0.025 --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 \
|
||||
--model_config ./configs/nas-cifar-cos-cut.config \
|
||||
--print_freq ${print_freq} --workers 8
|
@@ -17,9 +17,10 @@ arch=$2
|
||||
dataset=$3
|
||||
cutout=$4
|
||||
SAVED=./snapshots/NAS/${arch}-${dataset}-${cutout}-E600
|
||||
#--data_path $TORCH_HOME/cifar.python \
|
||||
|
||||
CUDA_VISIBLE_DEVICES=${gpus} python ./exps-cnn/train_base.py \
|
||||
--data_path $TORCH_HOME/cifar.python \
|
||||
--data_path ./data/data/cifar.python \
|
||||
--dataset ${dataset} --arch ${arch} \
|
||||
--save_path ${SAVED} \
|
||||
--grad_clip 5 \
|
||||
|
Reference in New Issue
Block a user