numediart / EEGLearn-Pytorch

GNU General Public License v2.0
126 stars 33 forks source link

About running the code #13

Open lwlBCI opened 2 years ago

lwlBCI commented 2 years ago

I have encountered some problems, in the network structure after training maxcnn, an error is reported: IndexError: boolean index did not match indexed array along dimension 0; dimension is 7 but corresponding boolean dimension is 2670 I don't know what this means, please see and give me a reply, thank you

guoyongjian111 commented 2 years ago

I had the same problem

y-y-o commented 1 year ago

I had the same problem. please see and give me a reply, thank you!

xizhou111 commented 1 year ago

Perhaps it is possible to convert the dimensions of Images.

Images = sio.loadmat("Sample Data/images_time.mat")["img"] #corresponding to the images mean for all the seven windows
Images = np.swapaxes(Images, 0, 1)

(7,2670,3,32,32) --> (2670,7,3,32,32) My approach is this, but I am not sure if it is correct