brunnergino / JamBot

MIT License
64 stars 21 forks source link

Getting error on python polyphonic_lstm_training.py #3

Open hemanth2410 opened 5 years ago

hemanth2410 commented 5 years ago

Traceback (most recent call last): File "polyphonic_lstm_training.py", line 217, in X, Y = make_feature_vector(song, chord_train_set[i], chord_embed_method) File "polyphonic_lstm_training.py", line 147, in make_feature_vector X_chords = list(chord_embed_model.embed_chords_song(chords)) File "C:\Users\saihe\Downloads\JamBot\chord_model.py", line 126, in embed_chords_song embeded_chords.append(self.embed_chord(chord)) File "C:\Users\saihe\Downloads\JamBot\chord_model.py", line 118, in embed_chord return self.embed_layer_output([[[chord]]])[0][0][0] IndexError: invalid index to scalar variable.

Tian-xj commented 3 years ago

remove the later two [0],using return self.embed_layer_output([[[chord]]])[0]