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

show_batch call error on an audio dataloader #17

Closed
iskode opened this issue Sep 29, 2023 · 4 comments · Fixed by #18
Closed

show_batch call error on an audio dataloader #17

iskode opened this issue Sep 29, 2023 · 4 comments · Fixed by #18

Comments

@iskode
Copy link

iskode commented Sep 29, 2023

Hi Benjamin,
I am trying to train a classifier with the melspectogram using the audio module.
Here is datablock instantiation:

dbl = DataBlock(blocks=(MelSpecBlock(TensorAudio), CategoryBlock),
            get_x = ColReader("filename", pref=data_path/"sollicited"), 
            splitter = CrossValidationSplitter(col='kfold', fold=0),
            get_y = ColReader("tb_status")
            )  
dls = dbl.dataloaders(train_df, bs=5)

then executing the code dls.show_batch(max_n=1) produce this error:

...
--> 697         res = L(b).map(partial(batch_to_samples,max_n=max_n))
    698         return retain_types(res.zip(), [b])
    699 

RecursionError: maximum recursion depth exceeded while calling a Python object

More importantly, I have applied the one_batch() method, but the input was still the
filename not a TensorAudio or MelSpectrogram object !
I think that is the problem.

@iskode
Copy link
Author

iskode commented Oct 5, 2023

@warner-benjamin,
please can you help me.

Kind regards

@warner-benjamin
Copy link
Owner

I'm a bit swamped at the moment but will look into this soon.

@warner-benjamin
Copy link
Owner

@iskode #18 should resolve this issue. If not, please reopen it with more details.

@iskode
Copy link
Author

iskode commented Nov 1, 2023

thank you @warner-benjamin. I'll check and get back to you.

Kind regards

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

Successfully merging a pull request may close this issue.

2 participants