why is it showing that all images belong to 1 class and then during model.fit
it is giving accuracy of only about 33%
pls can anyone help me out with this
This is probably due to a bad string parsing. I would recommend to print all the files identified for class 0 and for class 1. If there are 0 files for 0 class, then the problem is the name of the files (bad string parsing).
The first rule of debugging is “Believe the error message”. If you don’t understand what it says, that’s the first problem you need to solve. Did you read the pathname there? It looks like your “join” operation used backslashes instead of forward slashes. Notice that the rest of the slashes you can see in the earlier part of the path are forward slashes. Maybe you’d be better off writing the string processing operations directly in python, so you can control that.