model = model_from_json(json)
model.load_weights(hdf5file)
-(_, winlen, winstep, _) = modelfile.split('_')
+(_, winlen, winstep, name) = modelfile.split('_')
winlen = float(winlen)
winstep = float(winstep)
+multiclass = name == 'multi'
+
model.compile(
loss='binary_crossentropy',
optimizer='rmsprop',
print("len(wavdata): ", len(wavdata))
print("len(x): ", len(x))
wav.write('class.wav', int(1.0/winstep), wavdata)
-#for i in smoothed:
-# print(int(i*255))
-
-
-
-
-
tgob.to_file('/dev/stdout')