I am getting the above problem while writing my code on original and tampered images. help me for the same.
img=image.load_img(dir_path+'//'+ i, target_size=(200,200))
plt.imshow(img)
plt.show()
X=image.img_to_array(img)
X=np.expand_dims(X,axis=0)
images=np.vstack([X])
val=model.predict(images)
if val == 0:
print("original")
else:
print("tampered")````
this is my code.