Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode the Lakh dataset Fail #6

Open
ivychill opened this issue Jan 6, 2023 · 1 comment
Open

encode the Lakh dataset Fail #6

ivychill opened this issue Jan 6, 2023 · 1 comment

Comments

@ivychill
Copy link

ivychill commented Jan 6, 2023

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.

@MatthewChau99
Copy link

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])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants