It seems you are using TensorFlow and Keras, so you might get a better answer on StackOverflow. 
While I cannot debug the code, I would generally recommend to try to overfit a small data sample (such as 10 images) and make sure your model is able to learn these samples.