Comments (4)
After I update the tf-nightly to the most recent version, I got following error:
RuntimeError: tensorflow/lite/kernels/reshape.cc:55 stretch_dim != -1 (0 != -1)Node number 187 (RESHAPE) failed to prepare.
from tensorflowasr.
It's because tflite model doesn't support tensor[index]
(it returns a tensor of 0 elements instead of actual tensor of encoder, which has 144 elements), so I have to use tf.gather_nd
instead. I fixed this issue in master :D
More specific:
...
def body(time, total, encoded, hypothesis):
ytu, new_states = self.decoder_inference(
# avoid using [index] in tflite
encoded=tf.gather_nd(encoded, tf.expand_dims(time, axis=-1)),
predicted=hypothesis.prediction.read(hypothesis.index),
states=hypothesis.states
)
...
from tensorflowasr.
It is all good now, thx!
The inference speed is a little bit slow,
but it is an amazing project anyway!
from tensorflowasr.
It is all good now, thx!
The inference speed is a little bit slow,
but it is an amazing project anyway!
The beam search implementation is single thread so it's slow. I'm finding a way to improve it :D
from tensorflowasr.
Related Issues (20)
- unexpected truncation of the dataset HOT 2
- TypeError: Unable to serialize 144.0 to JSON. Unrecognized type <class 'tensorflow.python.framework.ops.EagerTensor HOT 6
- ValueError: Shape mismatch in layer #1 (named conformer_prediction) for weight conformer/conformer_prediction/conformer_prediction_embedding/embeddings:0 HOT 1
- Multi-GPU card training with MirrorStrategy wait forever after loading the cudnn HOT 1
- Empty TFLite output HOT 3
- rnn_transducer test error HOT 1
- rnn transducer inference
- RNNT loss HOT 1
- conformer.tflite increases the wer compared to tensorflow conformer HOT 3
- Unused dependency Pillow incompatible with python 3.6 HOT 2
- Is the Vietnamese dataset INFoRe a single speaker dataset HOT 2
- full int8 quantisation
- Issue about CharFeaturizer HOT 1
- Inference Problem with DeepSpeech2
- training problem with rnn_transducer HOT 8
- Masking in encoder HOT 2
- Can you make an example HOT 1
- Librispeech_train_4_1030.subword Not compatible HOT 5
- test.py not run with cpu=false HOT 4
- Still maintained? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflowasr.