jason9693 / MusicTransformer-tensorflow2.0

implementation of music transformer with tensorflow-2.0 (ICLR2019)
MIT License
352 stars 81 forks source link

Vocabulary size mismatch #1

Closed Jackaryyy closed 5 years ago

Jackaryyy commented 5 years ago

preprocess.py use midi_processor.processor to encode my midi files (PIANO-E-COMPETITION), the vocabulary size is 388, but sequence.py get rid off the notes unused in my midi scores, so the vocabulary size in model decreased to 243, when I run train.py, it reports:

tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,1920] = 361 is not in [0, 243) [Op:ResourceGather] name: encoder/embedding/embedding_lookup/

So how to deal with the vocab size mismatch problem?