bricewalker / hey-jetson Goto Github PK
View Code? Open in Web Editor NEWDeep Learning based Automatic Speech Recognition with attention for the Nvidia Jetson.
License: GNU General Public License v3.0
Deep Learning based Automatic Speech Recognition with attention for the Nvidia Jetson.
License: GNU General Public License v3.0
I am interested in this project for doing emotion detection from speech.
Do we need to use flask for inferencing on jetson. I mean there are projects which do inferencing by direct deployment of model like here https://github.com/dusty-nv/jetson-inference
Any advice for emotion detection from speech for this project
Thanks
Hi brice,
I'm getting this error and I don't understand it at all. Some help would be much appreciated. I've installed all the dependencies and prepared the dataset etc... training starts too but getting this annoying error.
2019-07-17 14:57:26.395650: W tensorflow/core/framework/op_kernel.cc:1502] OP_REQUIRES failed at variable_ops.cc:104 : Already exists: Resource __per_step_3/training/Adam/gradients/bidirectional_7/while_1/strided_slice_3/Enter_grad/ArithmeticOptimizer/AddOpsRewrite_Add/tmp_var/N10tensorflow19TemporaryVariableOp6TmpVarE 2019-07-17 14:57:26.396630: W tensorflow/core/framework/op_kernel.cc:1502] OP_REQUIRES failed at variable_ops.cc:104 : Already exists: Resource __per_step_3/training/Adam/gradients/bidirectional_7/while_1/strided_slice_3/Enter_grad/ArithmeticOptimizer/AddOpsRewrite_Add/tmp_var/N10tensorflow19TemporaryVariableOp6TmpVarE 2019-07-17 14:57:26.397577: W tensorflow/core/framework/op_kernel.cc:1502] OP_REQUIRES failed at variable_ops.cc:104 : Already exists: Resource __per_step_3/training/Adam/gradients/bidirectional_7/while_1/strided_slice_3/Enter_grad/ArithmeticOptimizer/AddOpsRewrite_Add/tmp_var/N10tensorflow19TemporaryVariableOp6TmpVarE Traceback (most recent call last): File "train_model.py", line 842, in <module> spectrogram=True) # True for Spectrogram/False for MFCC File "train_model.py", line 536, in train_model callbacks=[checkpointer, terminator, logger, time_machiner, tensor_boarder], verbose=verbose) File "/home/nvidia/anaconda3/lib/python3.7/site-packages/keras/legacy/interfaces.py", line 91, in wrapper return func(*args, **kwargs) File "/home/nvidia/anaconda3/lib/python3.7/site-packages/keras/engine/training.py", line 1418, in fit_generator initial_epoch=initial_epoch) File "/home/nvidia/anaconda3/lib/python3.7/site-packages/keras/engine/training_generator.py", line 217, in fit_generator class_weight=class_weight) File "/home/nvidia/anaconda3/lib/python3.7/site-packages/keras/engine/training.py", line 1217, in train_on_batch outputs = self.train_function(ins) File "/home/nvidia/anaconda3/lib/python3.7/site-packages/keras/backend/tensorflow_backend.py", line 2715, in __call__ return self._call(inputs) File "/home/nvidia/anaconda3/lib/python3.7/site-packages/keras/backend/tensorflow_backend.py", line 2675, in _call fetched = self._callable_fn(*array_vals) File "/home/nvidia/anaconda3/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1458, in __call__ run_metadata_ptr) tensorflow.python.framework.errors_impl.AlreadyExistsError: Resource __per_step_3/training/Adam/gradients/bidirectional_7/while_1/strided_slice_3/Enter_grad/ArithmeticOptimizer/AddOpsRewrite_Add/tmp_var/N10tensorflow19TemporaryVariableOp6TmpVarE [[{{node training/Adam/gradients/bidirectional_7/while_1/strided_slice_3/Enter_grad/ArithmeticOptimizer/AddOpsRewrite_Add/tmp_var}}]]
I have Jetson nano, with L4T 4.2.
The pip install -r jetson_requirement.txt doesn't run to completion.
First package which is not found is apturl.
Hi Bricewalker,
This is a very interest project. Could you please share the hardware components?
Hello @bricewalker ,
thanks for sharing this. Very good work. Can this be scaled to multigpu training?
Getting this error:
conda env create -f environment.yml
Solving environment: failed
ResolvePackageNotFound:
I'm trying to running this model usign a portuguese data corpus, but, I don't know how exactly use a PT-BR dataset because of the accents that have in portuguese, like:
ACCENTS = 'ãõçâêôáíóúàüóé'
how can I add these characters to this model?
ty
So I am trying to translate an audio file from the LibriSpeech data set using the run_inference() function in the make_predictions.py file by loading up model_11.h5, but the predicted translation is only 2 letters long. This is true for the other audio samples I have tried as well where I only get an output text of 2 letters.
The output array generated by the model's predict() method, which is saved under the variable "prediction", for one of the audio samples I've tried is in the shape of (1, 149, 29), but the tensor generated by the ctc_decode() method is in the shape of (1, 2). So I'm guessing that something is wrong with the decoder? I can't quite figure it out.
Is this an issue that you have encountered before? I've attached the python script I've used to run the inference along with the sample audio file and the output to the screen.
2019-07-19 04:56:06.472125: I tensorflow/stream_executor/dso_loader.cc:153] successfully opened CUDA library libcublas.so.10 locally
3455/3455 [==============================] - 21350s 6s/step - loss: 356.8575 - val_loss: 237.5635
Epoch 2/30
1883/3455 [===============>..............] - ETA: 2:39:53 - loss: nan Batch 1882: Invalid loss, terminating training
Hello @bricewalker
Could you clarify what hardware setup you used for inference?
I've been getting problems with Keras regarding generic utility functions and other problems of modules when I try to adapt my own Jetson to get this to work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.