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

Training not working with example midi files #34

Open
tonfeld opened this issue Dec 15, 2024 · 0 comments
Open

Training not working with example midi files #34

tonfeld opened this issue Dec 15, 2024 · 0 comments

Comments

@tonfeld
Copy link

tonfeld commented Dec 15, 2024

Hi, hope somebody can help?
the code from the Train notebook ( converted to python)
gives an error, when executing following line:
data = MusicDataBunch.from_files(midi_files, data_path, processors=processors, bs=2, bptt=12)
numpy is version 2.0.1 ( as dependency of fastai 1.0.61)

setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (18, 2) + inhomogeneous part.
Stack trace:

File "D:\data\vs23\midgen\musicautobot\music_transformer\dataloader.py", line 94, in process (Current frame)
super().process(ds)
File "D:\data\vs23\midgen\musicautobot\music_transformer\dataloader.py", line 39, in from_files
.label_const(label_cls=LMLabelList))
File "D:\data\vs23\midgen\notebooks\music_transformer\Train.py", line 55, in
data = MusicDataBunch.from_files(midi_files, data_path, processors=processors, bs=2, bptt=12)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (18, 2) + inhomogeneous part.

Thanks in advance!

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

1 participant