Music_RNN_RBM icon indicating copy to clipboard operation
Music_RNN_RBM copied to clipboard

no such file

Open urumo opened this issue 7 years ago • 3 comments

Hi there, I'm having an issue. I changed the initial midi files given in the git, and now when I try to generate music it bring

python rnn_rbm_generate.py parameter_checkpoints/epoch_149.ckpt

Traceback (most recent call last): File "rnn_rbm_generate.py", line 49, in main(sys) File "rnn_rbm_generate.py", line 32, in main song_primer = midi_manipulation.get_song(primer_song) File "/media/aram/Mordigan/Happy_Music_Generator-master/Music_RNN_RBM/midi_manipulation.py", line 19, in get_song song = np.array(midiToNoteStateMatrix(path)) File "/media/aram/Mordigan/Happy_Music_Generator-master/Music_RNN_RBM/midi_manipulation.py", line 37, in midiToNoteStateMatrix pattern = midi.read_midifile(midifile) File "/usr/local/lib/python2.7/dist-packages/midi/fileio.py", line 156, in read_midifile midifile = open(midifile, 'rb') IOError: [Errno 2] No such file or directory: 'Pop_Music_Midi/Every Time We Touch - Chorus.midi'

There should not be such a file, and I cant get how to fix this, any help?

urumo avatar Mar 09 '17 03:03 urumo

I've just encountered this error, has anyone managed a fix for it yet?

Peter-Sanders avatar Jan 16 '18 01:01 Peter-Sanders

me too

Ddedalous avatar Feb 20 '18 03:02 Ddedalous

I solved this: if you go into your parent directory and open midi_manipulation.py and change the value of the 'primer song' variable to the full path to any midi file you trained with it works.

Ddedalous avatar Feb 20 '18 03:02 Ddedalous