download_caffe_gradient_ascent.sh 447 B

12345678910111213141516171819
  1. #!/bin/bash
  2. if [ -d "./caffe" ]; then
  3. echo "Please remove the existing [caffe] folder and re-run this script."
  4. exit 1
  5. fi
  6. # Download the version of Caffe that can be used for generating fooling images via EAs.
  7. echo "Downloading Caffe ..."
  8. wget https://github.com/Evolving-AI-Lab/fooling/archive/ascent.zip
  9. echo "Extracting into ./caffe"
  10. unzip ascent.zip
  11. mv ./fooling-ascent/caffe ./
  12. # Clean up
  13. rm -rf fooling-ascent ascent.zip
  14. echo "Done."