ML-KWS-for-MCU icon indicating copy to clipboard operation
ML-KWS-for-MCU copied to clipboard

Bad error flow in input_data.py

Open OrDavidi opened this issue 7 years ago • 1 comments

Hi When trying to evaluate on the latest version of speech_data ( http://download.tensorflow.org/data/speech_commands_v0.02.tar.gz )

some of the data is probably corrupted or too short and i got this fatal error :

tensorflow/core/framework/op_kernel.cc:1202] OP_REQUIRES failed at decode_wav_op.cc:55 : Invalid argument: Data too short when trying to read RIFF exception in data

I suggest to wrap this line : data[i - offset, :] = sess.run(self.mfcc_, feed_dict=input_dict).flatten()

with try,except block to avoid train script crash on a single corrupted wav file.

Thanks

OrDavidi avatar Jul 18 '18 08:07 OrDavidi

I meet same ERRO , How to solve it by try catch?

fmbao avatar Nov 14 '19 09:11 fmbao