symbolic-music-diffusion icon indicating copy to clipboard operation
symbolic-music-diffusion copied to clipboard

encode the Lakh dataset Fail

Open ivychill opened this issue 2 years ago • 1 comments

I have converted Lakh MIDI Dataset into NoteSequences with convert_dir_to_note_sequences successfully. Then I tried to encode the Lakh dataset with MusicVAE, use scripts/generate_song_data_beam.py, but I always get prompt "TypeError: PTransform Create: Refusing to treat string as an iterable. (string='../notesequences_tfrecord')" I have checked python package version carefully to ensure that it is the same as requirement.txt, but the problem remained.

ivychill avatar Jan 06 '23 03:01 ivychill

I got the same problem. I solved it by making this change to scripts/generate_song_data_beam.py:106

p |= 'tfrecord_list' >> beam.Create(FLAGS.input)

to

p |= 'tfrecord_list' >> beam.Create([FLAGS.input])

MatthewChau99 avatar Jan 11 '23 16:01 MatthewChau99