Comments (5)
Hi, @razor1179. Sorry for the delay on answering your question.
If I understood this right, you wan't to train this model with more than 1 data, am I right?
To do this, you need to generate a tensor for input of size [n_batch, max_timesteps, n_features]
where max_timesteps
will be the maximum length of input along the batch. train_seq_len
will be an one dimensional vector (n_batch,)
where you'll put the length of each input, and this will help the network at the calculation of the cost function and on unrolling. Finally, your targets must be an sparse tensor of shape (n_batch, max_utterance_size)
.
For you second question: did you initialize the weights in the proper way?
Best regards, IMQ
from ctc_tensorflow_example.
Hi,
I've was watching this code to try to make my own speech recognition for latin spanish. I'm trying to use audio book files to train my net but I can't get a good result when i switch to another file. I can save and restore the model pretty well but when I use a female voice to train and a male voice to recognize only got some pieces of words.
What could be the problem? Should I apply some audio filters? how can I add more features to the inputs? (ex. mffc, fft, amplitud, etc)
Regards,
Sergio
from ctc_tensorflow_example.
Hi @igormq,
I followed the instructions to generate a tensor for input of size [n_batch, max_timesteps, n_features]
, but as multiple training samples do not have the same timestep
I padded them with zeros to match the training sample which has the the max_timestep
. The train_seq_len
however has the actual timestep
of each input sample in a one dimensional vector (n_batch)
. Is this correct? Also in the example you have chosen the MomentumOptimizer, is there any reason why you chose this out of the many Optimizers provided by Ternsorflow?
from ctc_tensorflow_example.
Hi @igormq,
I've been trying to write a version of my own so as to use CTC loss to process languages. I came across one thing that I cannot figure out even after going through your code and tensorflow official document. It would be great if you could help me:
When we feed the labels
(targets
) into ctc_loss
, how are we organizing the tuple for sparse tensor? My understanding is that each row of indices
corresponds to the [batch, time]
, where, for batch size as 2, it can be [0, 0], [0, 1], [1, 0], [1, 1] and represents the labels of two sentences with two words (or letters) in each one?
Hi @razor1179 @zergioguitar , I noticed that you both had some experience playing with this, can you kindly help me on this one?
Thanks in advance!
Biyi
from ctc_tensorflow_example.
From my understanding the targets
are usually a 1D list for each utterance, converting it to the appropriate sparse tensor can be done using the code suggested here: http://stackoverflow.com/questions/42127505/tensorflow-dense-to-sparse. Hope this helps.
from ctc_tensorflow_example.
Related Issues (20)
- This project is not suitable for Tensorflow newst versions, like 0.12.1 and 1.0.0 HOT 1
- Save and restore problem HOT 4
- Normalization for multiple WAV inputs HOT 5
- Multiple Data HOT 2
- Multilayer problem HOT 5
- Saw a non-null label issue HOT 1
- urle error HOT 3
- [No issue] Thanks for this great work, it really helped in my work HOT 1
- when I run ctc_greedy_decoder function,how can I get the align information from all frames probability . HOT 1
- OCR: clarification about input and output HOT 3
- multi layer LSTM gives error HOT 1
- num_features HOT 1
- Input to sparse_tuple_from?
- BLSTM
- other way for increasing Batch size
- all possible alignments
- how to modify the connectionist Temporal Classification (CTC) layer of the network to also give us a confidence score?
- sth. about spare_tuple_from? HOT 1
- Regarding the output nodes of the model
- Bidirectional LSTM
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 ctc_tensorflow_example.