Giter Site home page Giter Site logo

Comments (5)

igormq avatar igormq commented on August 20, 2024

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.

zergioguitar avatar zergioguitar commented on August 20, 2024

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.

razor1179 avatar razor1179 commented on August 20, 2024

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.

fangbiyi avatar fangbiyi commented on August 20, 2024

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.

razor1179 avatar razor1179 commented on August 20, 2024

@Jackyfff ,

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.