pbashivan / EEGLearn

A set of functions for supervised feature learning/classification of mental states from EEG based on "EEG images" idea.
GNU General Public License v2.0
710 stars 220 forks source link

Some questions about imshow #30

Closed kirby3345678 closed 6 years ago

kirby3345678 commented 6 years ago

@pbashivan Dear prof, I'm a student from Taiwan, I've some question want to ask you:

I've same error like#27, so I fix eeg_cnn_lib.py that can run and train in python 3.5.4 . When it done, I've weights_lasg_cnn.npz and weights_lasg_mix.npz file, but I can't see any images even I use matplotlib to plot. After I check error msg it said: Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).

I want to know how to solve these problem, I am looking forward to your feedback at your earliest convenience. Thank you

pbashivan commented 6 years ago

You should NOT clip the data. Try rescaling your data to match the value range you mentioned. [0-1] for float or [0-255] for uint8

pbashivan commented 6 years ago

Feel free to reopen.