corynguyen19 / midi-lstm-gan

Using LSTMs and GANs to Generate Music from MIDI Files (APM Fall 2018)
82 stars 30 forks source link

KeyError: 468 #4

Closed Shubhamai closed 4 years ago

Shubhamai commented 4 years ago

Just at the last epochs in mlp_gan.py, it gives an error,

Traceback (most recent call last):
  File "mlp_gan.py", line 279, in <module>
    gan.train(epochs=200, batch_size=32, sample_interval=1)
  File "mlp_gan.py", line 249, in train
    self.generate(notes)
  File "mlp_gan.py", line 263, in generate
    pred_notes = [int_to_note[int(x)] for x in pred_notes]
  File "mlp_gan.py", line 263, in <listcomp>
    pred_notes = [int_to_note[int(x)] for x in pred_notes]
KeyError: 468
shreyasv11 commented 4 years ago

Hello man, were you able to solve it? If yes, then how.

Shubhamai commented 4 years ago

Nope, I wasn't able to solve it.