Comments (20)
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.
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.
Does the forward phase runs smoothly ? Can you see it ?
from pytorch-kaldi.
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.
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.
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.
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.
Weird ..
from pytorch-kaldi.
@mravanelli Do you have any insight about this issue?
from pytorch-kaldi.
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.
The forward phase lasted ~10 minutes. I ran latgen-faster-mapped without any errors, but the lattices were empty.
from pytorch-kaldi.
So in TIMIT_test output out_dnn2 all the lat.*.gz are empty ?
from pytorch-kaldi.
If so please check that your $finalfeats (don't know where you saved them) are ok (not empty).
from pytorch-kaldi.
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.
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.
No, the final.mdl only appears if you reach the number of epochs given in the config file.
from pytorch-kaldi.
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.
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.
@TParcollet @mravanelli I just wanted to follow up and ask if you have any more insight about this issue.
from pytorch-kaldi.
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)
- How to setup parameters in "cfg/TIMIT_baselines/TIMIT_liGRU_fmllr.cfg"? HOT 1
- Do bidirectional layers share the input-to-hidden weights? HOT 2
- Can we resume training from the epoch we got interruption HOT 4
- input shape of nns HOT 3
- Question about the Dimension of wx.0.weight in my mlp model HOT 1
- The loss curve of train and dev is reasonable but why the Test Error keeps 53% or so? HOT 8
- Support for torch.nn.Transformer Class? HOT 1
- KaldiFatalError during decoding phase
- No WER stdout when decoding
- Does pytorch-kaldi support chain model training? HOT 1
- Word transcription of TIMIT dataset HOT 1
- How to train/decode on reverberant speech? HOT 1
- x-vector DNN model
- Unable to run forwarding step on test set
- Before switch to SpeechBrain, how to use trained model in pytorch
- Use final_architecture1.pkl for live test HOT 4
- err_te is 1
- using different features instead of FMLLR
- res.res
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 pytorch-kaldi.