musicautobot icon indicating copy to clipboard operation
musicautobot copied to clipboard

MusicTransformer error: Non midi note detected. Only returning valid portion. Index, seed 5 (50, 2)0/100 00:02<00:00]

Open BShennette opened this issue 4 years ago • 4 comments

Hi, I was wondering if someone might have some insight.

I've followed the "Train" notebook, but when I try to run it, I get the titular error. I am using the .mid files from "/data/midi/examples" as training data or a different set.The "Index, seed #" number changes on different runs.

Additionally, I cannot run the Generate notebook with the example.pth file generated either, it gives the following:

\learner.py", line 18, in music_model_learner if config is None: config = state['config'] KeyError: 'config'

BShennette avatar Nov 17 '20 05:11 BShennette

This may resolve your error encode_position = True config = default_config() config['encode_position'] = encode_position learn_country = music_model_learner(data_country, config=config.copy())

RoguePower avatar May 22 '22 15:05 RoguePower

I'm having the same error. Both "pred" and "full" contain non-midi notes if I train the model on my own. No error would happen if I use the pretrained model.

MatthewChau99 avatar Jul 25 '22 22:07 MatthewChau99

I found consecutive "xxsep"s in the predicted stream. Not sure what the reason is..

MatthewChau99 avatar Aug 02 '22 22:08 MatthewChau99

Hello @BShennette ,

could you resolve this issue with the anwers or by yourself?

I am currently facing the same problem (Non midi note detected. Only returning valid portion. Index, seed 5 (50, 2)) and i just can't find a propert solution or workaround...

Thanks in advance, Michael

MichaelLehenaur avatar Nov 15 '23 15:11 MichaelLehenaur