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

Runtime error on DEAP Dataset #4

Open
ale-pavel opened this issue Nov 28, 2022 · 0 comments
Open

Runtime error on DEAP Dataset #4

ale-pavel opened this issue Nov 28, 2022 · 0 comments

Comments

@ale-pavel
Copy link

Hi,

I've tried to run the Sal_model.py on DEAP, but apart from fixing the number of output units of the classifier (using 4 for the valence/arousal quadrants) I can't get it to work because of an error:

RuntimeError: shape '[168, 5, 1, -1]' is invalid for input of size 43352064
The size is the product of 8064x32x168 (at least that's what it seems), of time samples x channels x (batch_size=128 + 40?)

The line is the following:
https://github.com/numediart/Emotion-EEG/blob/master/Models_DEAP.py#L530

Also I implemented the feature generation part myself, as it was incomplete (only the sensor locations code conversion is in the repo), by using "mne.time_frequency.psd_array_welch" and then averaging the power values of 5 frequency bins that are mentioned in the DEAP paper (for a total of 5 image channels which should be correct).

Best 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

No branches or pull requests

1 participant