It is not trained with many images only 7000 (3500- gun image , 3500- other image) if more then 0.5 then it could be a gun else not a gun trained in 120x120 images {resize it yourself one by one or use cv2.resize) 100 times epoch mean 100 times studied all images at the time 98% accuracy - 80% test accuracy which is very low if you have images can share with me thank you