|
| 1 | +# Set up your python environment |
| 2 | +# ------------------------------ |
| 3 | + |
| 4 | +# Download the Anaconda installer |
| 5 | +curl -o Anaconda2-4.3.1-Linux-x86_64.sh https://repo.continuum.io/archive/Anaconda2-4.3.1-Linux-x86_64.sh |
| 6 | + |
| 7 | +# Make the installer executable |
| 8 | +chmod u+x ./Anaconda2-4.3.1-Linux-x86_64.sh |
| 9 | + |
| 10 | +# Run the installer, accepting the defaults. |
| 11 | +./Anaconda2-4.3.1-Linux-x86_64.sh |
| 12 | + |
| 13 | +# Add anaconda2/bin to your path (assumes default install location) |
| 14 | +export PATH=$HOME/anaconda2/bin:$PATH |
| 15 | + |
| 16 | +# Install additonal modules not shipped with Anaconda |
| 17 | +conda install -c conda-forge tensorflow |
| 18 | +conda install -c anaconda hdf5=1.8.17 |
| 19 | +pip install git+git://github.com/Theano/Theano.git |
| 20 | +pip install git+git://github.com/fchollet/keras.git |
| 21 | + |
| 22 | + |
| 23 | +# Set up special environment for Pilot2 benchmars using keras version 1 |
| 24 | +# This will go away when Pilot2 benchmarks are upgraded to keras version 2 |
| 25 | +conda create --name keras1 |
| 26 | +source activate |
| 27 | +conda install opencv |
| 28 | +conda install -c conda-forge keras=1 |
| 29 | +conda install -c conda-forge tensorflow |
| 30 | +conda install matplotlib |
| 31 | +conda install PIL |
| 32 | +conda install tqdm |
| 33 | +source deactivate keras1 |
| 34 | + |
| 35 | +# Download the source files for the tutorial |
| 36 | +git clone https://github.com/ECP-Candle/benchmarks |
| 37 | + |
| 38 | +# Run the Pilot1 benchmark |
| 39 | +pushd benchmarks/Pilot1/P1B1/ |
| 40 | +python p1b1_baseline_keras2.py |
| 41 | +popd |
| 42 | + |
| 43 | +pushd benchmarks/Pilot1/P1B2/ |
| 44 | +python p1b2_baseline_keras2.py |
| 45 | +popd |
| 46 | + |
| 47 | +pushd benchmarks/Pilot1/P1B3/ |
| 48 | +python p1b3_baseline_keras2.py |
| 49 | +popd |
| 50 | + |
| 51 | +# Run the Pilot2 benchmarks |
| 52 | +source activate keras1 |
| 53 | + |
| 54 | +pushd benchmarks/Pilot2/P2B1/ |
| 55 | +python p2b1_baseline_keras1.py |
| 56 | +popd |
| 57 | + |
| 58 | +pushd benchmarks/Pilot2/P2B2/ |
| 59 | +python p2b2_baseline_keras1.py |
| 60 | +popd |
| 61 | + |
| 62 | +source deactivate keras1 |
| 63 | + |
| 64 | +# Run the Pilot3 benchmarks |
| 65 | +pushd benchmarks/Pilot3/P3B1/ |
| 66 | +python p3b1_baseline_keras2.py |
| 67 | +popd |
| 68 | + |
| 69 | +pushd benchmarks/Pilot3/P3B2/ |
| 70 | +python p3b2_baseline_keras2.py |
| 71 | +popd |
| 72 | + |
0 commit comments