04-run_mlp_ae.sh
465 Bytes
in_dir=$1
origin_shelve=$2
cpt=0
folder_list=$(head -n 50 ${in_dir}/ordered_model.txt)
for folder in $folder_list
do
(
mkdir ${in_dir}/${folder}
python 04a-mlp.py ${in_dir}/${folder} ${origin_shelve}
python 04b-mini_ae.py ${in_dir}/${folder} ${origin_shelve}
python 04c-sae.py ${in_dir}/${folder} ${origin_shelve}
) &
cpt=$(( ${cpt} + 1 ))
if [[ $(( $cpt % 5 )) -eq 0 ]]
then
echo " wait"
wait
fi
done