Commit Graph

352 Commits

Author SHA1 Message Date
Reuben Morais
289e346a66
Merge pull request #2324 from bjornbytes/c-compat
Make deepspeech.h compilable as C
2019-08-28 10:38:15 +02:00
bjorn
f7fc74c078 rm trailing whitespace; 2019-08-27 15:38:39 -07:00
bjorn
73b2bbe8da Use struct typedefs for C compatibility; 2019-08-27 15:34:03 -07:00
bjorn
5d24f19115 Only use extern C when compiling as C++; 2019-08-27 15:25:30 -07:00
Reuben Morais
89f63dcd69 Make Scorer init fallible and check it in callers 2019-08-26 13:59:15 +02:00
Reuben Morais
47b9b71776 Automatically format BUILD file with buildifier 2019-08-26 12:01:26 +02:00
Reuben Morais
c730102867 Avoid rebuilding decoder sources for every binary target 2019-08-26 12:01:26 +02:00
Reuben Morais
1b18494e63 Address review comments 2019-08-23 12:19:32 +02:00
Reuben Morais
b2ef9cca83 Make Alphabet init fallible and check it in model creation 2019-08-23 12:19:32 +02:00
Reuben Morais
4dabd248bc Make Alphabet copyable and default-constructable and avoid pointers 2019-08-23 12:19:32 +02:00
Reuben Morais
4d882a8aec Simplify decoder impl by making it object oriented, avoid pointers where possible 2019-08-23 12:19:32 +02:00
Alexandre Lissy
dfe8be30b4 Move to ARMbian Buster
Fixes #2310
2019-08-21 22:58:10 +02:00
Alexandre Lissy
8534c0f93a Statically link libsox 2019-08-21 21:35:08 +02:00
lissyx
50e2a99316
Merge pull request #2308 from lissyx/remove-prealloc
Remove ununsed prealloc frames
2019-08-21 14:53:47 +02:00
lissyx
0e47048f9c
Merge pull request #2307 from lissyx/rpi-buster
Build for Raspbian Buster
2019-08-20 21:49:51 +02:00
Alexandre Lissy
81b3b159c4 Remove ununsed prealloc frames
Fixes #2298
2019-08-20 18:38:46 +02:00
Alexandre Lissy
e06fce51ac Move Raspbian support to Buster
Fixes #2272
2019-08-20 16:37:26 +02:00
Reuben Morais
e3bf5d3cc6 Only update time step of leaf prefixes
The intention of this check is to improve the accuracy of the timings by recording the time step where the character saw its highest probability rather than the first time step where it was seen. The problem happens when updating the time step of a prefix that already has children. In that case, if any of the children have a time step that is earlier than `new_timestep`, it'll break the linearity of the timings. My fix is to simply check that the prefix we're updating is a leaf.

For example, say during decoding we have the following beams (format is `(char | time)`, tree node id below, nodes with same id are the same object):

```
1. (-1 | 0 ) -> ('s' | 10) -> ('h' | 13) -> ('e' | 14)
        A                B                  C                D

2. (-1 | 0 ) -> ('s' | 10) -> ('h' | 14)
        A                B                  E
```

And the prefix list is [B, C, D, E]. Currently, if we process character 'h' in time step 15 with a probability higher than both C and E, we update both nodes to have time step 15, which breaks linearity in beam 1. With my fix, we only update node E, which is a leaf. In my tests this does fix the problem, but since we don't have any known good quality data to verify against, it's hard to know if it has other side effects.
2019-08-20 12:03:59 +02:00
Reuben Morais
9da99d74e4 Remove additional unneeded op lib deps 2019-07-22 15:40:11 +02:00
Reuben Morais
2c29cda641 Remove trailing whitespace 2019-07-22 14:31:29 +02:00
Reuben Morais
7fb3b8f22d Update kernel/op dependencies 2019-07-22 14:31:29 +02:00
Alexandre Lissy
eca7882b14 Remove useless make target 'bindings-clean'
Fixes #2175
2019-07-19 17:39:56 +02:00
Alexandre Lissy
4fc3c48462 Fix typo in Android doc
X-DeepSpeech: NOBUILD
2019-07-19 15:24:10 +02:00
Reuben Morais
8af1286d87
Exclude generated SWIG wrapper code from decoder sources 2019-07-17 13:16:38 +00:00
Reuben Morais
fe88960c69 Include additional op libs to silence warnings 2019-07-12 01:25:45 +02:00
Reuben Morais
b2a76bd182
Merge pull request #2218 from mozilla/update-1.14
Update to TF 1.14
2019-07-11 10:03:05 +00:00
Alexandre Lissy
c3a2b6ea48 Ensure proper removal of prefix
Fixes #2230
2019-07-10 13:27:18 +02:00
Reuben Morais
93e9ac19c5 Bump references to TF 1.13.1 to TF 1.14.0 2019-07-08 18:56:59 +02:00
Reuben Morais
d52ab9df0b Add TF op libs to libdeepspeech dependencies and rename darwin -> macos 2019-07-08 18:56:59 +02:00
lissyx
1515d3ebb7
Merge pull request #2225 from lissyx/debug-node9-macos
WIP: Debug NodeJS v9 macOS failures
2019-07-05 16:57:59 +02:00
Alexandre Lissy
39b388c1ea Fix NodeJS bindings leakage / GC crash with MetadataItem querying
Fixes #2217
2019-07-05 14:06:28 +02:00
Richard Hamnett
a5c61ea588 Abstract sample rate / update beam width (#2199)
* Abstract sample rate
2019-07-04 14:58:45 +00:00
Reuben Morais
d50c0397c7 Use bazel workspace status to generate versions 2019-06-25 18:03:52 -03:00
Alexandre Lissy
fd156a63f6 Handle git submodules for getting DeepSpeech / TensorFlow versions
Fixes #2209
2019-06-25 15:01:12 +02:00
Reuben Morais
67d6b5f8ca
Merge pull request #2190 from mozilla/update-prodmodel-0.6.0-alpha.0
Update prod tests to point to re-exported 0.5 model
2019-06-24 21:53:11 +00:00
Francis Tyers
6e53fd8fe0
typo
X-DeepSpeech: NOBUILD
2019-06-22 22:18:25 +01:00
Francis Tyers
bc4d266cb2
Update CODINGSTYLE.md 2019-06-22 21:41:48 +01:00
Francis Tyers
11d688fe1a
Create CODINGSTYLE.md
Make a file for keeping track of coding guidelines.
2019-06-22 21:39:55 +01:00
Reuben Morais
31afc6811f Switch to ConstFst from VectorFst and mmap trie file when reading 2019-06-21 22:21:19 -03:00
Reuben Morais
ceb9de9fad Fix concurrent_streams.py on Python 2.7 2019-06-20 21:53:39 -03:00
Reuben Morais
a2306cf822
Merge pull request #2146 from mozilla/refactor-model-impls
Refactor TF and TFLite implementations into their own classes/files and fix concurrent/interleaved stream bugs by tracking LSTM state in StreamingState
2019-06-20 17:03:33 -03:00
Reuben Morais
95a54bfdb8 Modify copies rather than live prefix scores in decoder_decode 2019-06-19 19:39:57 -03:00
Reuben Morais
d5d55958da Clean up formatting in ctc_beam_saerch_decoder.cpp 2019-06-19 19:39:57 -03:00
Reuben Morais
f12ea5e958 Add a test for interleaved/concurrent streams with a single model instance 2019-06-18 19:38:59 -03:00
Reuben Morais
ea1422d47b Document vector/tensor copy functions 2019-06-18 19:38:59 -03:00
Reuben Morais
e51b9d987d Remove previous state model variable, track by hand in StreamingState instead 2019-06-18 19:38:59 -03:00
Reuben Morais
6e78bac799 Address review comments 2019-06-18 19:38:59 -03:00
Reuben Morais
6f953837fa Refactor TF and TFLite model implementations into their own classes/files 2019-06-18 19:38:59 -03:00
Li Li
2604da4bc2 native_client: option to run streaming mode
Signed-off-by: Li Li <eggonlea@msn.com>
2019-06-18 10:44:52 -07:00
Reuben Morais
6f8c902f25
Merge pull request #2165 from mozilla/keep-stream-absolute-timestep
Keep absolute per-stream time step in DecoderState (Fixes #2163)
2019-06-11 11:23:04 -03:00