flashlight / wav2letter

Facebook AI Research's Automatic Speech Recognition Toolkit
https://github.com/facebookresearch/wav2letter/wiki
Other
6.39k stars 1.01k forks source link

bad argument #1 to 'readShort' (the number of frames must be positive) #27

Closed salehgundogdu closed 6 years ago

salehgundogdu commented 6 years ago

Issue

I keep getting an error when attempting to run create.lua command. I have already commented the data that I am not using 'train-other-500'.

Is there anything that I can do?

I am running : luajit ~/wav2letter/data/librispeech/create.lua ~/LibriSpeech/ ~/librispeech-proc

Here is the error that I am getting:

wav2letter/data/librispeech/create.lua:35: bad argument #1 to 'readShort' (the number of frames must be positive) stack traceback: [C]: in function 'readShort' /wav2letter/data/librispeech/create.lua:35: in function 'copytoflac' /wav2letter/data/librispeech/create.lua:95: in function 'createidx' /wav2letter/data/librispeech/create.lua:152: in main chunk [C]: at 0x00405e90

saisrinivas047 commented 6 years ago

check if you are out of memory ?

VitaliyLi commented 6 years ago

Try to print out file name in copytoflac function in create.lua. You'll see on what file it is failing. That file might be corrupted.

bolt163 commented 6 years ago

i meet the same problem, after delete the total .tar.gz and re-download it and decompress the file again, the error disappeared, very oddly~....~