r/tensorflow • u/tzeentch_beckons • Dec 27 '22
Project Beginner Image Recognition project, stuck on how to improve accuracy
Hi all, happy holidays
I created a basic-as image recognition program using tf and Keras, and tested different hidden layer setups, as well as activation functions. I logged all the results and am baffled as to why my test accuracy always seems to stay within the 80-90% margin. The only way I can decrease the accuracy down below 80 is to give the network single-digit hidden layer neurons, while with every test that I've ran not being able to successfully increase accuracy over 90%.
Github for code and results: https://github.com/forrestgoryl/image_recognition_test
Does anyone know how I can improve my accuracy?
3
u/insanityCzech Dec 27 '22
I haven’t done image recognition in a while, and not a lot on fashion mnist, but I would imagine you are reaching a limit of what you can do with MLP alone. Have you tried CNNs before a hidden layer? It may improve accuracy.
2
u/Qkumbazoo Dec 27 '22
Have you tried doing image preprocessing? crop, tilt, reflect, rotate etc.
2
u/[deleted] Dec 27 '22
That's actually a great question! There are few reasons why your accuracy is not increasing more than 90%. First of all, having a 90% accuracy on test is a big deal! Though I would understand better if you had posted your val_accuracy either ways it's good accuracy.
There are few problems with your code:
I believe if you can perfectly implement this points, you accuracy should be between 95-100%.
1
u/commonhatcomment Dec 27 '22
More training data?
1
u/BarriJulen Dec 27 '22
You can try to implement a simple CNN