You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I install all requirements and run the generate code.
When I run python generate
there is a error
Writing file out/samples/output_0.mid
Traceback (most recent call last):
File "generate.py", line 153, in
main()
File "generate.py", line 150, in main
write_file('output', generate(models, args.bars, styles))
File "generate.py", line 134, in write_file
midi.write_midifile(fpath, mf)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 169, in write_midifile
return write_midifile(out,pattern)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 171, in write_midifile
return writer.write(pattern)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 105, in write
self.write_track(track)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 122, in write_track
buf.extend(self.encode_midi_event(event))
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 161, in encode_midi_event
ret.extend(event.data)
ValueError: byte must be in range(0, 256)
I just use the pertained model, I am not sure if it is my environment's mismatch.
The text was updated successfully, but these errors were encountered:
Hi, I install all requirements and run the generate code.
When I run python generate
there is a error
Writing file out/samples/output_0.mid
Traceback (most recent call last):
File "generate.py", line 153, in
main()
File "generate.py", line 150, in main
write_file('output', generate(models, args.bars, styles))
File "generate.py", line 134, in write_file
midi.write_midifile(fpath, mf)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 169, in write_midifile
return write_midifile(out,pattern)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 171, in write_midifile
return writer.write(pattern)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 105, in write
self.write_track(track)
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 122, in write_track
buf.extend(self.encode_midi_event(event))
File "/home/inspur/anaconda3/lib/python3.6/site-packages/midi/fileio.py", line 161, in encode_midi_event
ret.extend(event.data)
ValueError: byte must be in range(0, 256)
I just use the pertained model, I am not sure if it is my environment's mismatch.
The text was updated successfully, but these errors were encountered: