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

Color channels on input images are shuffled #33

Open
filipux opened this issue Apr 30, 2018 · 0 comments
Open

Color channels on input images are shuffled #33

filipux opened this issue Apr 30, 2018 · 0 comments

Comments

@filipux
Copy link

filipux commented Apr 30, 2018

I downloaded your pretrained models and got your code working on my macbook with great results. However, when I did some experimentation I noticed the colors of the image_stimuli in the predict function where wrong. I then found that when the images are being loaded on line 17 in 03-predict.py you seem to shuffle the color channels:

cv2.cvtColor( ... , cv2.COLOR_BGR2RGB)

What is the reason for doing this? Have your pretrained models been trained using shuffled image channels too?

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