code:
https://paste.pythondiscord.com/B4AA
so, i had trained a neural network quite sometime ago on mnist digits 0-9 and that model was doing fine i can't remember the exact accuracy but it was i think above 0.96
now i am using that same model incorporated with pygame to get the digit in real-time preprocess it and let the model do its thing the problem i seem to have is that the model isnt working predicting properly its stuck and always gives 3,5 as predictions mostly 3 and i don't know as when i jad trained it was good on test set as well but now its just ain't doing its thing . the reasons for which i think this might be happening is the preprocessing which i think is my weak
and thats why i think i need help i thought i could do this one go but like always. any help is much appreciated
Thank you all who helps