export PATH=/usr/anaconda2/bin:$PATH
#export LD_LIBRARY_PATH=~/Downloads/cuda/lib64:"$LD_LIBRAYR_PATH"
export CUDA_VISIBLE_DEVICES=6

model_dir=checkpoints

for (( e=345;e<=345;e+=2 ));do
filename=$(ls "$model_dir" | grep -o 'params_'${e}'uidx[^\.]*\.ckpt\.index')
filename=${filename:0:-6}

python monitor_checkleft.py --data_dir=./cifar10_data --save_dir=$model_dir --batch_size=12 --show_interval=100 --load_params=${filename} --mode=I2L --useSoftLabel=0

done

for (( e=345;e<=345;e+=2 ));do
filename=$(ls "$model_dir" | grep -o 'params_'${e}'uidx[^\.]*\.ckpt\.index')
filename=${filename:0:-6}

python monitor_checkleft.py --data_dir=./cifar10_data --save_dir=$model_dir --batch_size=12 --show_interval=100 --load_params=${filename} --mode=L2I --useSoftLabel=0

done




: <<'VIRTUAL_ENV'
source ~/virtual_py/bin/activate
export CUDA_VISIBLE_DEVICES=0

model_dir=debug_room

python monitor.py --data_dir=./cifar10_data --save_dir=$model_dir --batch_size=12 --show_interval=100 --load_params=params_9uidx13880.ckpt --mode=L2I --useSoftLabel=0

deactivate

VIRTUAL_ENV




