subpath / Keras_music_gereration

Music generation with Keras and LSTM
104 stars 40 forks source link

some error at the end of the code #1

Closed Tempest6 closed 6 years ago

Tempest6 commented 6 years ago

ValueError: Error when checking model input: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 1 array(s), but instead got the following list of 8734 arrays: [array([[-0.61290323, 0.42222222]

it is laocation is about line 101 i have no idea how to fix it

line 99 mid = MidiFile()

line100 track = MidiTrack()

line 101

line 102 t = 0

subpath commented 6 years ago

Hi! Thanks for your feedback! Sorry, it did not run in the first attempt :(. I will try to look at this and fix it during the day. Cheers!

Tempest6 commented 6 years ago

cheers!

subpath commented 6 years ago

Hi! Sorry for delay! Could you please try again? There was an error, when I was passing list to fit method instead of numpy array Let me know if it worked

Tempest6 commented 6 years ago

it work thank you!