Skip to content

Commit 4da76a4

Browse files
authored
Merge pull request #6 from Roboy/develop
Develop
2 parents 36b71c3 + eee49f6 commit 4da76a4

65 files changed

Lines changed: 2909 additions & 373 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### VirtualEnv template
3+
# Virtualenv
4+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
5+
.Python
6+
[Bb]in
7+
[Ii]nclude
8+
[Ll]ib
9+
[Ll]ib64
10+
[Ll]ocal
11+
[Ss]cripts
12+
pyvenv.cfg
13+
.venv
14+
pip-selfcheck.json
15+
### Python template
16+
# Byte-compiled / optimized / DLL files
17+
__pycache__/
18+
*.py[cod]
19+
*$py.class
20+
21+
# C extensions
22+
*.so
23+
24+
# Distribution / packaging
25+
.Python
26+
build/
27+
develop-eggs/
28+
dist/
29+
downloads/
30+
eggs/
31+
.eggs/
32+
lib/
33+
lib64/
34+
parts/
35+
sdist/
36+
var/
37+
wheels/
38+
*.egg-info/
39+
.installed.cfg
40+
*.egg
41+
MANIFEST
42+
43+
# PyInstaller
44+
# Usually these files are written by a python script from a template
45+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
46+
*.manifest
47+
*.spec
48+
49+
# Installer logs
50+
pip-log.txt
51+
pip-delete-this-directory.txt
52+
53+
# Unit test / coverage reports
54+
htmlcov/
55+
.tox/
56+
.coverage
57+
.coverage.*
58+
.cache
59+
nosetests.xml
60+
coverage.xml
61+
*.cover
62+
.hypothesis/
63+
.pytest_cache/
64+
65+
# Translations
66+
*.mo
67+
*.pot
68+
69+
# Django stuff:
70+
*.log
71+
local_settings.py
72+
db.sqlite3
73+
74+
# Flask stuff:
75+
instance/
76+
.webassets-cache
77+
78+
# Scrapy stuff:
79+
.scrapy
80+
81+
# Sphinx documentation
82+
docs/_build/
83+
84+
# PyBuilder
85+
target/
86+
87+
# Jupyter Notebook
88+
.ipynb_checkpoints
89+
90+
# pyenv
91+
.python-version
92+
93+
# celery beat schedule file
94+
celerybeat-schedule
95+
96+
# SageMath parsed files
97+
*.sage.py
98+
99+
# Environments
100+
.env
101+
.venv
102+
env/
103+
venv/
104+
ENV/
105+
env.bak/
106+
venv.bak/
107+
108+
# Spyder project settings
109+
.spyderproject
110+
.spyproject
111+
112+
# Rope project settings
113+
.ropeproject
114+
115+
# mkdocs documentation
116+
/site
117+
118+
# mypy
119+
.mypy_cache/
120+
### Example user template template
121+
### Example user template
122+
123+
# IntelliJ project files
124+
.idea
125+
*.iml
126+
out
127+
gen

.gitignore

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
experiments/
3+
tests/test_wavs/
4+
5+
**/.DS_Store
6+
7+
.idea/
8+
warp-ctc/
9+
### Python template
10+
# Byte-compiled / optimized / DLL files
11+
__pycache__/
12+
*.py[cod]
13+
*$py.class
14+
15+
# C extensionsg
16+
*.so
17+
18+
# Distribution / packaging
19+
.Python
20+
build/
21+
develop-eggs/
22+
dist/
23+
downloads/
24+
eggs/
25+
.eggs/
26+
lib/
27+
lib64/
28+
parts/
29+
sdist/
30+
var/
31+
wheels/
32+
*.egg-info/
33+
.installed.cfg
34+
*.egg
35+
MANIFEST
36+
37+
# PyInstaller
38+
# Usually these files are written by a python script from a template
39+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
40+
*.manifest
41+
*.spec
42+
43+
# Installer logs
44+
pip-log.txt
45+
pip-delete-this-directory.txt
46+
47+
# Unit test / coverage reports
48+
htmlcov/
49+
.tox/
50+
.coverage
51+
.coverage.*
52+
.cache
53+
nosetests.xml
54+
coverage.xml
55+
*.cover
56+
.hypothesis/
57+
.pytest_cache/
58+
59+
# Translations
60+
*.mo
61+
*.pot
62+
63+
# Django stuff:
64+
*.log
65+
local_settings.py
66+
db.sqlite3
67+
68+
# Flask stuff:
69+
instance/
70+
.webassets-cache
71+
72+
# Scrapy stuff:
73+
.scrapy
74+
75+
# Sphinx documentation
76+
docs/_build/
77+
78+
# PyBuilder
79+
target/
80+
81+
# Jupyter Notebook
82+
.ipynb_checkpoints
83+
84+
# pyenv
85+
.python-version
86+
87+
# celery beat schedule file
88+
celerybeat-schedule
89+
90+
# SageMath parsed files
91+
*.sage.py
92+
93+
# Environments
94+
.env
95+
.venv
96+
env/
97+
venv/
98+
ENV/
99+
env.bak/
100+
venv.bak/
101+
102+
# Spyder project settings
103+
.spyderproject
104+
.spyproject
105+
106+
# Rope project settings
107+
.ropeproject
108+
109+
# mkdocs documentation
110+
/site
111+
112+
# mypy
113+
.mypy_cache/
114+
### VirtualEnv template
115+
# Virtualenv
116+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
117+
.Python
118+
[Bb]in
119+
[Ii]nclude
120+
[Ll]ib
121+
[Ll]ib64
122+
[Ll]ocal
123+
[Ss]cripts
124+
pyvenv.cfg
125+
.venv
126+
pip-selfcheck.json
127+

.travis.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: python
2+
3+
python:
4+
- "3.6"
5+
6+
install:
7+
- bash scripts/install_dependencies.sh
8+
- pip install -e .
9+
10+
script:
11+
- pytest

Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM pytorch/pytorch:1.1.0-cuda10.0-cudnn7.5-devel
2+
ARG CUDA=false
3+
4+
5+
WORKDIR /workspace/
6+
COPY . .
7+
# install basics
8+
RUN apt-get update -y
9+
RUN apt-get install -y git curl ca-certificates bzip2 cmake tree htop bmon iotop sox libsox-dev libsox-fmt-all vim wget
10+
11+
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
12+
13+
# install python deps
14+
RUN pip install -r requirements.txt
15+
16+
RUN rm -rf warp-ctc
17+
RUN git clone https://github.com/SeanNaren/warp-ctc.git
18+
RUN if [ "$CUDA" = false ] ; then sed -i 's/option(WITH_OMP \"compile warp-ctc with openmp.\" ON)/option(WITH_OMP \"compile warp-ctc with openmp.\" ${CUDA_FOUND})/' warp-ctc/CMakeLists.txt ; else export CUDA_HOME="/usr/local/cuda" ; fi
19+
RUN cd warp-ctc; mkdir build; cd build; cmake ..; make
20+
RUN cd warp-ctc/pytorch_binding && python setup.py install
21+
RUN rm -rf warp-ctc
22+
23+
RUN pip install -r post_requirements.txt
24+
25+
26+
#TODO: Do we need those two below?
27+
# install ctcdecode
28+
#RUN git clone --recursive https://github.com/parlance/ctcdecode.git
29+
#RUN cd ctcdecode; pip install .
30+
31+
# install deepspeech.pytorch
32+
ADD . /workspace/deepspeech.pytorch
33+
RUN cd deepspeech.pytorch; pip install -r requirements.txt
34+
35+
# launch jupiter
36+
RUN pip install jupyter
37+
RUN mkdir data; mkdir notebooks;
38+
#CMD jupyter-notebook --ip="*" --no-browser --allow-root

0 commit comments

Comments
 (0)