Skip to content

Commit ea14ed8

Browse files
committed
2 parents eafe78d + f6ffe0b commit ea14ed8

File tree

4 files changed

+72
-27
lines changed

4 files changed

+72
-27
lines changed

Pilot2/P2B1/p2b1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def dense_auto(weights_path=None,input_shape=(784,),hidden_layers=None,nonlinear
138138
else:
139139
decoded=Dense(input_shape[0],kernel_regularizer=l2(l2_reg))(input_img)
140140

141-
model=Model(input=input_img,output=decoded)
141+
model=Model(outputs=decoded,inputs=input_img)
142142

143143
if weights_path:
144144
print('Loading Model')

Pilot2/P2B2/p2b2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def simple_test_rnn(T=1,D=1):
158158
encoder=TimeDistributed(Dense(20,activation='relu'))(input_img)
159159
rnn=LSTM(10,activation='elu',return_sequences=True, stateful=False)(encoder)
160160
decoder=TimeDistributed(Dense(20,activation='relu'))(rnn)
161-
model=Model(input=input_img,output=decoder)
161+
model=Model(outputs=decoder,inputs=input_img)
162162
return model
163163

164164

@@ -184,7 +184,7 @@ def dense_auto(weights_path=None,input_shape=(784,),hidden_layers=None,nonlinear
184184
else:
185185
decoded=Dense(input_shape[0])(input_img)
186186

187-
model=Model(input=input_img,output=decoded)
187+
model=Model(outputs=decoded,inputs=input_img)
188188

189189
if weights_path:
190190
print('Loading Model')
@@ -221,7 +221,7 @@ def rnn_dense_auto(weights_path=None,T=1,D=1,nonlinearity='relu',hidden_layers=N
221221
else:
222222
decoded=TimeDistributed(Dense(D))(input_img)
223223

224-
model=Model(input=input_img,output=decoded)
224+
model=Model(outputs=decoded,inputs=input_img)
225225

226226
if weights_path:
227227
print('Loading Model')

README.setup.linux

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,18 @@ export PATH=$HOME/anaconda2/bin:$PATH
1616
# Install additonal modules not shipped with Anaconda
1717
conda install -c conda-forge tensorflow
1818
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
19+
conda install -c anaconda theano
20+
conda install -c conda-forge keras=2
2121

22+
# Install additional modules for Pilot2 benchmarks
23+
conda install -c conda-forge opencv
24+
conda install -c conda-forge tqdm
25+
conda update -c conda-forge numpy
2226

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-
conda install scikit-learn
34-
conda install mkl-service
35-
36-
source deactivate keras1
37-
38-
# Download the source files for the tutorial
27+
# Download the source files for the benchmarks
3928
git clone https://github.com/ECP-Candle/benchmarks
4029

41-
# Run the Pilot1 benchmark
30+
# Run the Pilot1 benchmark
4231
pushd benchmarks/Pilot1/P1B1/
4332
python p1b1_baseline_keras2.py
4433
popd
@@ -52,8 +41,6 @@ python p1b3_baseline_keras2.py
5241
popd
5342

5443
# Run the Pilot2 benchmarks
55-
source activate keras1
56-
5744
pushd benchmarks/Pilot2/P2B1/
5845
python p2b1_baseline_keras1.py
5946
popd
@@ -62,8 +49,6 @@ pushd benchmarks/Pilot2/P2B2/
6249
python p2b2_baseline_keras1.py
6350
popd
6451

65-
source deactivate keras1
66-
6752
# Run the Pilot3 benchmarks
6853
pushd benchmarks/Pilot3/P3B1/
6954
python p3b1_baseline_keras2.py

README.setup.mac

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Set up your python environment
2+
# ------------------------------
3+
4+
# Download the Anaconda installer
5+
curl -o Anaconda2-4.3.1-MacOSX-x86_64.sh https://repo.continuum.io/archive/Anaconda2-4.3.1-MacOSX-x86_64.sh
6+
7+
# Make the installer executable
8+
chmod u+x ./Anaconda2-4.3.1-MacOSX-x86_64.sh
9+
10+
# Run the installer, accepting the defaults.
11+
./Anaconda2-4.3.1-MacOSX-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+
conda install -c anaconda theano
20+
conda install -c conda-forge keras=2
21+
22+
# Install additional modules for Pilot2 benchmarks
23+
conda install -c conda-forge opencv
24+
conda install -c conda-forge tqdm
25+
conda update -c conda-forge numpy
26+
27+
# Download the source files for the benchmarks
28+
git clone https://github.com/ECP-Candle/benchmarks
29+
30+
# Run the Pilot1 benchmarks
31+
pushd benchmarks/Pilot1/P1B1/
32+
python p1b1_baseline_keras2.py
33+
popd
34+
35+
pushd benchmarks/Pilot1/P1B2/
36+
python p1b2_baseline_keras2.py
37+
popd
38+
39+
pushd benchmarks/Pilot1/P1B3/
40+
python p1b3_baseline_keras2.py
41+
popd
42+
43+
# Run the Pilot2 benchmarks
44+
pushd benchmarks/Pilot2/P2B1/
45+
python p2b1_baseline_keras1.py
46+
popd
47+
48+
pushd benchmarks/Pilot2/P2B2/
49+
python p2b2_baseline_keras1.py
50+
popd
51+
52+
# Run the Pilot3 benchmarks
53+
pushd benchmarks/Pilot3/P3B1/
54+
python p3b1_baseline_keras2.py
55+
popd
56+
57+
pushd benchmarks/Pilot3/P3B2/
58+
python p3b2_baseline_keras2.py
59+
popd
60+

0 commit comments

Comments
 (0)