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

Some questions about imshow #30

Closed
kirby3345678 opened this issue Jul 24, 2018 · 2 comments
Closed

Some questions about imshow #30

kirby3345678 opened this issue Jul 24, 2018 · 2 comments

Comments

@kirby3345678
Copy link

@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
Copy link
Owner

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
Copy link
Owner

Feel free to reopen.

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