Giter VIP home page Giter VIP logo

Comments (20)

TParcollet avatar TParcollet commented on May 25, 2024

Hi, as we can see from the log, "Done 0 lattices" hence something went wrong during the forward phase. I would recommend removing all the directories related to the decoding and remove the forward files generated by pytorch Kaldi (the one created when forward the test). Then start again and check that the forward process goes smoothly.

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

Thanks for the quick reply. I removed the decoding directories and forward files and reran the model on the test set, but I obtained the same error as before.

from pytorch-kaldi.

TParcollet avatar TParcollet commented on May 25, 2024

Does the forward phase runs smoothly ? Can you see it ?

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

This is the output I obtain when I run the model on the test data:

  • Reading config file......OK!
  • Chunk creation......OK!

Testing TIMIT_test chunk = 1 / 1
[========================================] 100% Forwarding | (Batch 192/192))
Decoding TIMIT_test output out_dnn2

Does this indicate that the forward phase ran smoothly?

from pytorch-kaldi.

TParcollet avatar TParcollet commented on May 25, 2024

Yep. Is the final.mdl model existing ? Can you check his size ? Also, you could try to run manually the Kaldi command line that fails ..

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

Yes, final.mdl exists and has a size of 5.2MB.

As for manually re-running latgen-faster-mapped, where can I find the values of the $thread_string, $min_active, $max_active, etc.?

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

Also, I was able to run the decoder for an LSTM trained on MFCCs, which makes me think there is something wrong with my features.

from pytorch-kaldi.

TParcollet avatar TParcollet commented on May 25, 2024

Weird ..

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

@mravanelli Do you have any insight about this issue?

from pytorch-kaldi.

TParcollet avatar TParcollet commented on May 25, 2024

It is most likely that the forwarded data are empty. How fast was the forward phase ? If it is super quick, it might indicate that your input features are indeed not good. You definitely should try to call the command manually to get the different output, like checking if the lattices are empty.

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

The forward phase lasted ~10 minutes. I ran latgen-faster-mapped without any errors, but the lattices were empty.

from pytorch-kaldi.

TParcollet avatar TParcollet commented on May 25, 2024

So in TIMIT_test output out_dnn2 all the lat.*.gz are empty ?

from pytorch-kaldi.

TParcollet avatar TParcollet commented on May 25, 2024

If so please check that your $finalfeats (don't know where you saved them) are ok (not empty).

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

I just realized I forgot to change the fea_name in the configuration file. However, when I changed fea_name to the correct name, I obtained this error:

ERROR: the input "mfcc" is not defined before (possible inputs are ['xxxx'])

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

I removed all directories relating to the trained model and re-trained over 1 epoch. However, I am not getting a final.mdl file when training finishes. The log.log file does not show any errors or warnings. I did receive this warning on the terminal:

/home/lab/anaconda3/lib/python3.6/site-packages/matplotlib/axes/_base.py:1717: UserWarning: Attempting to set identical left==right results
in singular transformations; automatically expanding.
left=0, right=0
self.set_xlim([v[0], v[1]], emit=emit, auto=False)

Does this explain the missing final.mdl file?

from pytorch-kaldi.

TParcollet avatar TParcollet commented on May 25, 2024

No, the final.mdl only appears if you reach the number of epochs given in the config file.

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

To clarify, in the cfg file I set n_epochs_tr to 1 but still did not get a final.mdl. Is there something else I am supposed to change if I only want tot train over 1 epoch?

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

I solved the problem with the missing final.mdl. I split run_exp.py into training and testing scripts, and it turns out I needed to run the testing script for final.mdl to appear.

However, I am experiencing the same problem as before during decoding where the forward phase runs smoothly, but I do not obtain any output. My lat.1.gz file is only 20 bytes. forward_TIMIT_test_ep0_ck0_out_dnn2_to_decode.ark is 2.1GB, which seems reasonable. Any other ideas?

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

@TParcollet @mravanelli I just wanted to follow up and ask if you have any more insight about this issue.

from pytorch-kaldi.

kevinmchu avatar kevinmchu commented on May 25, 2024

I figured out the problem. The issue was a mismatch between my lab_graph and lab_folder, which by default raises a segmentation fault.

from pytorch-kaldi.

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.