run.sh 862 B

12345678910111213141516
  1. #!/bin/bash
  2. size=$1
  3. if [ -z ${size} ]; then
  4. echo "Need size parameter : ./run.sh 20";
  5. else
  6. echo "Run algorithms with image of size ${size}.."
  7. fi
  8. python classification_cnn_keras.py --directory ../models/$size/ --output cnn_model --batch_size 32 --epochs 150 --img $size
  9. python classification_cnn_keras_cross_validation.py --directory ../models/$size/ --output cnn_cross_validation_model --batch_size 32 --epochs 150 --img $size
  10. python classification_cnn_keras_svd.py --directory ../models/$size/ --output svd_model --batch_size 32 --epochs 150 --img $size
  11. #python classification_cnn_keras_svd_img.py --directory ../models/$size/ --output svd_img_model --batch_size 32 --epochs 150 --img $size --generate y
  12. python classification_cnn_keras_svd_img.py --directory ../models/$size/ --output svd_img_model --batch_size 32 --epochs 150 --img $size --generate n