I have a list named datas
, it's come from datas.append(data).
And array data
which size is 29*44100 (29 seconds .wav).
Now I have 903 waveform songs.
after load 293 into datas(use append() function),
I convert them from list to array by vstack(datas)
and error happend: ValueError: array is too big.
Is any other way that I can do the same thing but not cause this error?
Thanks.
for more code information:
rates = []
datas = []
labels = []
count = 0
filepath = glob.glob('*.wav')
for fp in filepath:
if (count<293):
count +=1
rate, data0 = read(fp)
data = numpy.asarray(data0,dtype=theano.config.floatX)
data /= numpy.max(numpy.abs(data),axis=0)#normalize to +1..-1
length = data.size
for index in range(0,length,44100):
if (index+44100) < length:
datas.append(data[index:index+44100])
labels.append(random.randint(1,5))
train_set = numpy.vstack(datas)