forked from awni/ecg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Awni Hannun
committed
May 20, 2018
1 parent
038f0b3
commit 9c2548e
Showing
3 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|