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

KeyError #5

Open
marvinschopf opened this issue May 11, 2018 · 1 comment
Open

KeyError #5

marvinschopf opened this issue May 11, 2018 · 1 comment

Comments

@marvinschopf
Copy link

Hello,
When I'm executing predict.py using Keras' Theano backend, I always get an error like this:

Traceback (most recent call last):
  File "predict.py", line 134, in <module>
    generate()
  File "predict.py", line 25, in generate
    prediction_output = generate_notes(model, network_input, pitchnames, n_vocab)
  File "predict.py", line 92, in generate_notes
    result = int_to_note[index]
KeyError: 68 [or something similar, a.e. 143 or something else]

I switched to the theano backend, because TensorFlow gave me an error while installing.

I hope you can help me.

MagicMarvMan

@Skuldur
Copy link
Owner

Skuldur commented Jun 13, 2018

Hi,
I have not used the Theano backend with the program before so I'm not sure what is causing the error.

However, I would recommend trying to get Tensorflow to work since Theano is no longer being supported by the developers.

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