Skip to content

Commit

Permalink
cleanup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Awni Hannun committed May 20, 2018
1 parent 038f0b3 commit 9c2548e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Clone the repository
git clone [email protected]:awni/ecg.git
```


Install `virtualenv` with
If you don't have `virtualenv`, install it with

```
pip install virtualenv
Expand All @@ -22,22 +21,14 @@ source ecg_env/bin/activate

Install the requirements (this may take a few minutes).

**NB** If you do not have a GPU, change line 67 in requirements.txt from

For CPU only support run
```
tensorflow-gpu==1.0.1
./setup.sh
```

to

```
tensorflow==1.0.1
```

Now run

To install with GPU support run
```
pip install -r requirements.txt
env TF=gpu ./setup.sh
```

## Training
Expand All @@ -63,7 +54,7 @@ python ecg/train.py
After each epoch the model is saved in
`ecg/saved/default/<experiment_id>/<model_id>.hdf5`.

**NB** this model is only trained on 128 examples. This is far too few to see
**NB**: this model is only trained on 128 examples. This is far too few to see
good generalization performance, but the code should run and produce a valid
model.

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ six==1.10.0
sklearn==0.0
subprocess32==3.2.7
tabulate==0.7.7
tensorflow-gpu==1.0.1
terminado==0.6
testpath==0.3.1
Theano==0.8.2
Expand Down
13 changes: 13 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

if [ -z "$TF" ]
then
TF=tensorflow
else
TF=tensorflow-gpu
fi


#pip install -r requirements.txt
pip install --upgrade $TF==1.0.1

0 comments on commit 9c2548e

Please sign in to comment.