I have built an image classification program using 32 images for train and 16 images for validation with batch size of 16 and 10 epochs.
I have used ImageDataGenerator(rescale=1./255).flow_from_directory(image path and other parameters) for train and validation images.
I want to classify images on 1 category or on single class.
But as I compile the program with model.fit_generator(with hinge loss, and optimizer used- 'rmsprop' and 'Adam') for keras sequential() model, the output I get is is train and validation accuracy near 1 on 1st epoch, and for remaining epochs, the train and validation is same as exactly 1.
Please send answer, how I can fix the output of train accuracy and validation accuracy as start from .63 or similar and gradually increase at each epoch as 6 % to 10 % increase.
As a mention, I want to train and validate images of 1 or single class.
Please comment if you need more details on this program.