majianjia / nnom

A higher-level Neural Network library for microcontrollers.
Apache License 2.0
908 stars 245 forks source link

dataset generation issue #185

Closed rubliw999 closed 1 year ago

rubliw999 commented 1 year ago

Hi, Running into this error while generating the dataset: ......... Reading noisy and clean speech files... generating clean speech MFCC... generating noisy speech MFCC... generating noisy MFCC... Processing training data Traceback (most recent call last): File "gen_dataset.py", line 349, in np.savez("dataset.npz", clnsp_mfcc=clnsp_mfcc, noisy_mfcc=noisy_mfcc, noise_mfcc=noise_mfcc, vad=voice_active, gains=gains_array) File "<__array_function__ internals>", line 200, in savez File "dnnenv\lib\site-packages\numpy\lib\npyio.py", line 615, in savez _savez(file, args, kwds, False) File "dnnenv\lib\site-packages\numpy\lib\npyio.py", line 716, in _savez val = np.asanyarray(val) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (876,) + inhomogeneous part.

Any clue what is happening? Thanks!