Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error on python polyphonic_lstm_training.py #3

Open
hemanth2410 opened this issue Nov 23, 2019 · 1 comment
Open

Getting error on python polyphonic_lstm_training.py #3

hemanth2410 opened this issue Nov 23, 2019 · 1 comment

Comments

@hemanth2410
Copy link

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
Copy link

Tian-xj commented Oct 28, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants