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

Wavmix for the ESC50 dataset #11

Open
Jimmy2027 opened this issue Mar 25, 2022 · 1 comment
Open

Wavmix for the ESC50 dataset #11

Jimmy2027 opened this issue Mar 25, 2022 · 1 comment

Comments

@Jimmy2027
Copy link

Hello, thanks a lot for you amazing work and for publishing the code!

I was trying to run the ex_esc50.py with wavmix=True but got the error:

RuntimeError: "nll_loss_forward_no_reduce_cuda_kernel_index" not implemented for 'Double'

since when using wavmix the ground truth is not an integer anymore.

Would it not be more appropriate to use the KL-divergence as loss function instead of the crossentropy?

@kkoutini
Copy link
Owner

Hi, Thank you! yes you can use loss functions that accept vectors instead of integers, Here is CE implementation.

For this to work you need to convert the targets from an integer to onehot vector here

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