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

Couldn't cast because column names don't match #2

Closed
mattgallivan opened this issue Sep 16, 2022 · 2 comments
Closed

Couldn't cast because column names don't match #2

mattgallivan opened this issue Sep 16, 2022 · 2 comments

Comments

@mattgallivan
Copy link

I'm attempting to run the command

python audio_to_images.py --resolution 64 --hop_length 1024 --input_dir data-in --output_dir data-out

on a directory of .wav files, but I keep receiving the error

ValueError: Couldn't cast
__index_level_0__: null
-- schema metadata --
pandas: '{"index_columns": ["__index_level_0__"], "column_indexes": [{"na' + 310
to
{'image': Image(decode=True, id=None), 'audio_file': Value(dtype='string', id=None), 'slice': Value(dtype='int16', id=None)}
because column names don't match

Is there a specific filetype for the audio I should be using?

@teticio
Copy link
Owner

teticio commented Sep 17, 2022

Yes, a bit of a cryptic error I'm afraid. Coincidentally, I put a more user friendly warning for when no suitable files are found. It should find wav files fine - I just tested it and it works. Can you double check they are valid and in the directory (and not in a subddirectory)?

@mattgallivan
Copy link
Author

Ah you're right! There was an issue with the path in WSL 2. Thanks!

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