Skip to content Skip to sidebar Skip to footer

Keras Accuracy Not Increasing Over 50% On Binary CNN Problem

I am using keras to process the following subset of my data: 5000 images of class A 5000 images of class B With 1000 of these images for each class being used as validation. Scali

Solution 1:

So, after trying all the suggestions the wonderful people had in the comments, I had no luck. I decided to go back to the drawing board, or in this case, try it on an alternative computer. My original code worked!

In the end I narrowed it down to the backend - I was using CNTK on the first computer, and Tensorflow on the second. I tried CNTK on the second computer, and it worked perfectly... So I decided to reinstall CNTK on the first computer. This time, the code worked perfectly. So I have no idea what was broken initially, but it had something to do with my install of CNTK. I guess in the end, this whole Q&A doesn't really help anyone.. but if anyone experiences a similar issue - try the suggestions in the comments on the question - some really good advice there. And if that doesn't work... try changing your backend!

Cheers


Solution 2:

also it is usually a bad idea to use dropout in convolutional layer, use batch normalization instead.


Post a Comment for "Keras Accuracy Not Increasing Over 50% On Binary CNN Problem"